sqlmesh 0.181.2.dev22__py3-none-any.whl → 0.181.2.dev24__py3-none-any.whl
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.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/RECORD +50 -49
- web/client/dist/assets/Audits-7rP8WdsD.js +1 -0
- web/client/dist/assets/{Banner-OvD39mOq.js → Banner-jMPu9_jP.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BqleRn_G.js → ChevronDownIcon-BZk6URUK.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-CXKkTIzW.js → ChevronRightIcon-Ctcbr61G.js} +1 -1
- web/client/dist/assets/{Content-COW0vEIQ.js → Content-C43kcRta.js} +2 -2
- web/client/dist/assets/Content-DITnFT31.js +1 -0
- web/client/dist/assets/Data-B5q1KzIa.js +1 -0
- web/client/dist/assets/{DataCatalog-iRjvB2C3.js → DataCatalog-BRzSrlJL.js} +2 -2
- web/client/dist/assets/{Editor-BLhCfpzx.js → Editor-7muj9lbw.js} +1 -1
- web/client/dist/assets/Editor-CAMzYH0x.js +1 -0
- web/client/dist/assets/Errors-Bbd2EOQg.js +1 -0
- web/client/dist/assets/{FileExplorer-gjDFmLLh.js → FileExplorer-DMR02idl.js} +3 -3
- web/client/dist/assets/{Footer-CfHqR8wm.js → Footer-Cnu_IoqE.js} +1 -1
- web/client/dist/assets/{Header-sstE4Gqk.js → Header-NJkxh8bb.js} +1 -1
- web/client/dist/assets/Input-CYm3h-zG.js +41 -0
- web/client/dist/assets/Lineage-HZl7aUI5.js +1 -0
- web/client/dist/assets/{ListboxShow-nvacUoI1.js → ListboxShow-CwgOYGSe.js} +1 -1
- web/client/dist/assets/ModelLineage-Bnes5PV4.js +1 -0
- web/client/dist/assets/Models-B_sukTY5.js +1 -0
- web/client/dist/assets/{Page-D0nUv5ck.js → Page-DxTzPmYT.js} +1 -1
- web/client/dist/assets/{Plan-Cj_0vc_H.js → Plan-B2b637kI.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-C2xHHnL-.js → PlusCircleIcon-FgfUjgrM.js} +1 -1
- web/client/dist/assets/{ReportErrors-D88IZz3n.js → ReportErrors-xnNgNULg.js} +1 -1
- web/client/dist/assets/Root-BMcIwqdc.js +1 -0
- web/client/dist/assets/{SearchList-Dltx9F6k.js → SearchList-9n_6_E0k.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-CZAVUJhY.js → SelectEnvironment-DC6x26Ax.js} +1 -1
- web/client/dist/assets/{SourceList-Diwt0dWW.js → SourceList-Chz492Ne.js} +1 -1
- web/client/dist/assets/{SourceListItem-CjW93oYe.js → SourceListItem-DIieM0S_.js} +1 -1
- web/client/dist/assets/{SplitPane-B-vlCkrS.js → SplitPane-CmzNrZQN.js} +1 -1
- web/client/dist/assets/Tests-DbVFKqeG.js +1 -0
- web/client/dist/assets/{Welcome-DbFwSigj.js → Welcome-DxKW_LKA.js} +1 -1
- web/client/dist/assets/{context-Dvup3XDX.js → context-CzM900aY.js} +1 -1
- web/client/dist/assets/{context-CA-MXfZ6.js → context-DhymIb_N.js} +4 -4
- web/client/dist/assets/{editor-DmJY3IbC.js → editor-Bf9rhumO.js} +2 -2
- web/client/dist/assets/{file-DYgUpg8u.js → file-CcK5Oobc.js} +1 -1
- web/client/dist/assets/{help-CNdZX-7b.js → help-DtLmoC0U.js} +1 -1
- web/client/dist/assets/index-BdXOfeCo.js +1 -0
- web/client/dist/assets/{index-D-9edHVb.js → index-CLuHMKlN.js} +2 -2
- web/client/dist/assets/index-KZcJd7F1.js +58 -0
- web/client/dist/assets/{plan-Cdj5QED6.js → plan-e4fPD47J.js} +1 -1
- web/client/dist/assets/{project-BlT_dmGo.js → project-CjyecwCx.js} +1 -1
- web/client/dist/assets/{transition-nHCHMLQ-.js → transition-C8EjNcgL.js} +2 -2
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Audits-BZWk3jlL.js +0 -1
- web/client/dist/assets/Content-CkK8L7V3.js +0 -1
- web/client/dist/assets/Data-CQQQmeF1.js +0 -1
- web/client/dist/assets/Editor-DKqRG32p.js +0 -1
- web/client/dist/assets/Errors-x-oFeSch.js +0 -1
- web/client/dist/assets/Input-A6Hrwz1k.js +0 -41
- web/client/dist/assets/Lineage-CzdZCXc6.js +0 -1
- web/client/dist/assets/ModelLineage-B6geDuI6.js +0 -1
- web/client/dist/assets/Models-B1vLawzn.js +0 -1
- web/client/dist/assets/Root-DCNtqbqI.js +0 -1
- web/client/dist/assets/Tests-D8lyWcVm.js +0 -1
- web/client/dist/assets/index-L7UJWCGi.js +0 -74
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev22.dist-info → sqlmesh-0.181.2.dev24.dist-info}/top_level.txt +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{r as c,R as J,j as U,b as Jn,c as we,ac as ot,f as eo,ad as to,af as ge,ae as pn,ag as no,m as ee,i as Bt}from"./index-L7UJWCGi.js";function oo({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const ro=c.forwardRef(oo);function co({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const io=c.forwardRef(co);function so({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const ao=c.forwardRef(so);function lo({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"}))}const uo=c.forwardRef(lo);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},O.apply(null,arguments)}const fo=J.forwardRef(function({type:t="text",value:n,placeholder:o,className:r,disabled:i=!1,autoFocus:a=!1,onInput:s,onKeyDown:l},u){return n=n??"",U.jsx("input",{ref:u,className:we("placeholder:text-neutral-300 dark:placeholder:text-neutral-700",i&&"opacity-50 cursor-not-allowed",r),type:t,value:n,placeholder:o,disabled:i,autoFocus:a,readOnly:Jn(!!s),onInput:s,onKeyDown:l})});function Wt(e,[t,n]){return Math.min(n,Math.max(t,e))}function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ot(e,t=[]){let n=[];function o(i,a){const s=c.createContext(a),l=n.length;n=[...n,a];function u(d){const{scope:x,children:m,...h}=d,f=(x==null?void 0:x[e][l])||s,v=c.useMemo(()=>h,Object.values(h));return c.createElement(f.Provider,{value:v},m)}function p(d,x){const m=(x==null?void 0:x[e][l])||s,h=c.useContext(m);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const r=()=>{const i=n.map(a=>c.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[o,po(r,...t)]}function po(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=o.reduce((s,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...s,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function mo(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mn(...e){return t=>e.forEach(n=>mo(n,t))}function K(...e){return c.useCallback(mn(...e),e)}const Be=c.forwardRef((e,t)=>{const{children:n,...o}=e,r=c.Children.toArray(n),i=r.find(vo);if(i){const a=i.props.children,s=r.map(l=>l===i?c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null:l);return c.createElement(bt,O({},o,{ref:t}),c.isValidElement(a)?c.cloneElement(a,void 0,s):null)}return c.createElement(bt,O({},o,{ref:t}),n)});Be.displayName="Slot";const bt=c.forwardRef((e,t)=>{const{children:n,...o}=e;return c.isValidElement(n)?c.cloneElement(n,{...go(o,n.props),ref:t?mn(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});bt.displayName="SlotClone";const ho=({children:e})=>c.createElement(c.Fragment,null,e);function vo(e){return c.isValidElement(e)&&e.type===ho}function go(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{i(...s),r(...s)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function wo(e){const t=e+"CollectionProvider",[n,o]=Ot(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:f}=m,v=J.useRef(null),g=J.useRef(new Map).current;return J.createElement(r,{scope:h,itemMap:g,collectionRef:v},f)},s=e+"CollectionSlot",l=J.forwardRef((m,h)=>{const{scope:f,children:v}=m,g=i(s,f),w=K(h,g.collectionRef);return J.createElement(Be,{ref:w},v)}),u=e+"CollectionItemSlot",p="data-radix-collection-item",d=J.forwardRef((m,h)=>{const{scope:f,children:v,...g}=m,w=J.useRef(null),$=K(h,w),b=i(u,f);return J.useEffect(()=>(b.itemMap.set(w,{ref:w,...g}),()=>void b.itemMap.delete(w))),J.createElement(Be,{[p]:"",ref:$},v)});function x(m){const h=i(e+"CollectionConsumer",m);return J.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((b,y)=>g.indexOf(b.ref.current)-g.indexOf(y.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},x,o]}const xo=c.createContext(void 0);function $o(e){const t=c.useContext(xo);return e||t||"ltr"}const bo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=bo.reduce((e,t)=>{const n=c.forwardRef((o,r)=>{const{asChild:i,...a}=o,s=i?Be:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(s,O({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yo(e,t){e&&ot.flushSync(()=>e.dispatchEvent(t))}function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Eo(e,t=globalThis==null?void 0:globalThis.document){const n=de(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const yt="dismissableLayer.update",So="dismissableLayer.pointerDownOutside",Co="dismissableLayer.focusOutside";let Ht;const Ro=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Po=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,p=c.useContext(Ro),[d,x]=c.useState(null),m=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=c.useState({}),f=K(t,E=>x(E)),v=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(g),$=d?v.indexOf(d):-1,b=p.layersWithOutsidePointerEventsDisabled.size>0,y=$>=w,R=To(E=>{const A=E.target,_=[...p.branches].some(I=>I.contains(A));!y||_||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},m),S=Oo(E=>{const A=E.target;[...p.branches].some(I=>I.contains(A))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},m);return Eo(E=>{$===p.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},m),c.useEffect(()=>{if(d)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ht=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),Vt(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ht)}},[d,m,o,p]),c.useEffect(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),Vt())},[d,p]),c.useEffect(()=>{const E=()=>h({});return document.addEventListener(yt,E),()=>document.removeEventListener(yt,E)},[]),c.createElement(Z.div,O({},u,{ref:f,style:{pointerEvents:b?y?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,S.onFocusCapture),onBlurCapture:z(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,R.onPointerDownCapture)}))});function To(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const i=s=>{if(s.target&&!o.current){let u=function(){hn(So,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Oo(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=i=>{i.target&&!o.current&&hn(Co,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Vt(){const e=new CustomEvent(yt);document.dispatchEvent(e)}function hn(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?yo(r,i):r.dispatchEvent(i)}let ft=0;function Ao(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:jt()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jt()),ft++,()=>{ft===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ft--}},[])}function jt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const pt="focusScope.autoFocusOnMount",mt="focusScope.autoFocusOnUnmount",Ut={bubbles:!1,cancelable:!0},Do=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,l]=c.useState(null),u=de(r),p=de(i),d=c.useRef(null),x=K(t,f=>l(f)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let f=function($){if(m.paused||!s)return;const b=$.target;s.contains(b)?d.current=b:ve(d.current,{select:!0})},v=function($){if(m.paused||!s)return;const b=$.relatedTarget;b!==null&&(s.contains(b)||ve(d.current,{select:!0}))},g=function($){const b=document.activeElement;for(const y of $)y.removedNodes.length>0&&(s!=null&&s.contains(b)||ve(s))};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[o,s,m.paused]),c.useEffect(()=>{if(s){Kt.add(m);const f=document.activeElement;if(!s.contains(f)){const g=new CustomEvent(pt,Ut);s.addEventListener(pt,u),s.dispatchEvent(g),g.defaultPrevented||(_o(Lo(vn(s)),{select:!0}),document.activeElement===f&&ve(s))}return()=>{s.removeEventListener(pt,u),setTimeout(()=>{const g=new CustomEvent(mt,Ut);s.addEventListener(mt,p),s.dispatchEvent(g),g.defaultPrevented||ve(f??document.body,{select:!0}),s.removeEventListener(mt,p),Kt.remove(m)},0)}}},[s,u,p,m]);const h=c.useCallback(f=>{if(!n&&!o||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(v&&g){const w=f.currentTarget,[$,b]=Io(w);$&&b?!f.shiftKey&&g===b?(f.preventDefault(),n&&ve($,{select:!0})):f.shiftKey&&g===$&&(f.preventDefault(),n&&ve(b,{select:!0})):g===w&&f.preventDefault()}},[n,o,m.paused]);return c.createElement(Z.div,O({tabIndex:-1},a,{ref:x,onKeyDown:h}))});function _o(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ve(o,{select:t}),document.activeElement!==n)return}function Io(e){const t=vn(e),n=zt(t,e),o=zt(t.reverse(),e);return[n,o]}function vn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zt(e,t){for(const n of e)if(!No(n,{upTo:t}))return n}function No(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 Mo(e){return e instanceof HTMLInputElement&&"select"in e}function ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mo(e)&&t&&e.select()}}const Kt=ko();function ko(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Yt(e,t),e.unshift(t)},remove(t){var n;e=Yt(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Yt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Lo(e){return e.filter(t=>t.tagName!=="A")}const te=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Fo=eo.useId||(()=>{});let Bo=0;function gn(e){const[t,n]=c.useState(Fo());return te(()=>{n(o=>o??String(Bo++))},[e]),e||(t?`radix-${t}`:"")}const Wo=["top","right","bottom","left"],xe=Math.min,G=Math.max,Je=Math.round,Ue=Math.floor,ie=e=>({x:e,y:e}),Ho={left:"right",right:"left",bottom:"top",top:"bottom"},Vo={start:"end",end:"start"};function Et(e,t,n){return G(e,xe(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function pe(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function At(e){return e==="x"?"y":"x"}function Dt(e){return e==="y"?"height":"width"}function ue(e){return["top","bottom"].includes(pe(e))?"y":"x"}function _t(e){return At(ue(e))}function jo(e,t,n){n===void 0&&(n=!1);const o=_e(e),r=_t(e),i=Dt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=et(a)),[a,et(a)]}function Uo(e){const t=et(e);return[St(e),t,St(t)]}function St(e){return e.replace(/start|end/g,t=>Vo[t])}function zo(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}function Ko(e,t,n,o){const r=_e(e);let i=zo(pe(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(St)))),i}function et(e){return e.replace(/left|right|bottom|top/g,t=>Ho[t])}function Yo(e){return{top:0,right:0,bottom:0,left:0,...e}}function wn(e){return typeof e!="number"?Yo(e):{top:e,right:e,bottom:e,left:e}}function tt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xt(e,t,n){let{reference:o,floating:r}=e;const i=ue(t),a=_t(t),s=Dt(a),l=pe(t),u=i==="y",p=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,x=o[s]/2-r[s]/2;let m;switch(l){case"top":m={x:p,y:o.y-r.height};break;case"bottom":m={x:p,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}switch(_e(t)){case"start":m[a]-=x*(n&&u?-1:1);break;case"end":m[a]+=x*(n&&u?-1:1);break}return m}const Xo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:d}=Xt(u,o,l),x=o,m={},h=0;for(let f=0;f<s.length;f++){const{name:v,fn:g}=s[f],{x:w,y:$,data:b,reset:y}=await g({x:p,y:d,initialPlacement:o,placement:x,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});p=w??p,d=$??d,m={...m,[v]:{...m[v],...b}},y&&h<=50&&(h++,typeof y=="object"&&(y.placement&&(x=y.placement),y.rects&&(u=y.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:p,y:d}=Xt(u,x,l)),f=-1)}return{x:p,y:d,placement:x,strategy:r,middlewareData:m}};async function We(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:x=!1,padding:m=0}=fe(t,e),h=wn(m),v=s[x?d==="floating"?"reference":"floating":d],g=tt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:p,strategy:l})),w=d==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},y=tt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}const Zo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:p=0}=fe(e,t)||{};if(u==null)return{};const d=wn(p),x={x:n,y:o},m=_t(r),h=Dt(m),f=await a.getDimensions(u),v=m==="y",g=v?"top":"left",w=v?"bottom":"right",$=v?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[m]-x[m]-i.floating[h],y=x[m]-i.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=R?R[$]:0;(!S||!await(a.isElement==null?void 0:a.isElement(R)))&&(S=s.floating[$]||i.floating[h]);const E=b/2-y/2,A=S/2-f[h]/2-1,_=xe(d[g],A),I=xe(d[w],A),F=_,D=S-f[h]-I,W=S/2-f[h]/2+E,T=Et(F,W,D),N=!l.arrow&&_e(r)!=null&&W!==T&&i.reference[h]/2-(W<F?_:I)-f[h]/2<0,V=N?W<F?W-F:W-D:0;return{[m]:x[m]+V,data:{[m]:T,centerOffset:W-T-V,...N&&{alignmentOffset:V}},reset:N}}}),qo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:x,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...v}=fe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=pe(r),w=ue(s),$=pe(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),y=x||($||!f?[et(s)]:Uo(s)),R=h!=="none";!x&&R&&y.push(...Ko(s,f,h,b));const S=[s,...y],E=await We(t,v),A=[];let _=((o=i.flip)==null?void 0:o.overflows)||[];if(p&&A.push(E[g]),d){const T=jo(r,a,b);A.push(E[T[0]],E[T[1]])}if(_=[..._,{placement:r,overflows:A}],!A.every(T=>T<=0)){var I,F;const T=(((I=i.flip)==null?void 0:I.index)||0)+1,N=S[T];if(N){var D;const P=d==="alignment"?w!==ue(N):!1,B=((D=_[0])==null?void 0:D.overflows[0])>0;if(!P||B)return{data:{index:T,overflows:_},reset:{placement:N}}}let V=(F=_.filter(P=>P.overflows[0]<=0).sort((P,B)=>P.overflows[1]-B.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(m){case"bestFit":{var W;const P=(W=_.filter(B=>{if(R){const j=ue(B.placement);return j===w||j==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(j=>j>0).reduce((j,me)=>j+me,0)]).sort((B,j)=>B[1]-j[1])[0])==null?void 0:W[0];P&&(V=P);break}case"initialPlacement":V=s;break}if(r!==V)return{reset:{placement:V}}}return{}}}};function Zt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qt(e){return Wo.some(t=>e[t]>=0)}const Go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=fe(e,t);switch(o){case"referenceHidden":{const i=await We(t,{...r,elementContext:"reference"}),a=Zt(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qt(a)}}}case"escaped":{const i=await We(t,{...r,altBoundary:!0}),a=Zt(i,n.floating);return{data:{escapedOffsets:a,escaped:qt(a)}}}default:return{}}}}};async function Qo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=pe(n),s=_e(n),l=ue(n)==="y",u=["left","top"].includes(a)?-1:1,p=i&&l?-1:1,d=fe(t,e);let{mainAxis:x,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),l?{x:m*p,y:x*u}:{x:x*u,y:m*p}}const Jo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await Qo(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:g,y:w}=v;return{x:g,y:w}}},...l}=fe(e,t),u={x:n,y:o},p=await We(t,l),d=ue(pe(r)),x=At(d);let m=u[x],h=u[d];if(i){const v=x==="y"?"top":"left",g=x==="y"?"bottom":"right",w=m+p[v],$=m-p[g];m=Et(w,m,$)}if(a){const v=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=h+p[v],$=h-p[g];h=Et(w,h,$)}const f=s.fn({...t,[x]:m,[d]:h});return{...f,data:{x:f.x-n,y:f.y-o,enabled:{[x]:i,[d]:a}}}}}},tr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fe(e,t),p={x:n,y:o},d=ue(r),x=At(d);let m=p[x],h=p[d];const f=fe(s,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const $=x==="y"?"height":"width",b=i.reference[x]-i.floating[$]+v.mainAxis,y=i.reference[x]+i.reference[$]-v.mainAxis;m<b?m=b:m>y&&(m=y)}if(u){var g,w;const $=x==="y"?"width":"height",b=["top","left"].includes(pe(r)),y=i.reference[d]-i.floating[$]+(b&&((g=a.offset)==null?void 0:g[d])||0)+(b?0:v.crossAxis),R=i.reference[d]+i.reference[$]+(b?0:((w=a.offset)==null?void 0:w[d])||0)-(b?v.crossAxis:0);h<y?h=y:h>R&&(h=R)}return{[x]:m,[d]:h}}}},nr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=fe(e,t),p=await We(t,u),d=pe(r),x=_e(r),m=ue(r)==="y",{width:h,height:f}=i.floating;let v,g;d==="top"||d==="bottom"?(v=d,g=x===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v=x==="end"?"top":"bottom");const w=f-p.top-p.bottom,$=h-p.left-p.right,b=xe(f-p[v],w),y=xe(h-p[g],$),R=!t.middlewareData.shift;let S=b,E=y;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=$),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=w),R&&!x){const _=G(p.left,0),I=G(p.right,0),F=G(p.top,0),D=G(p.bottom,0);m?E=h-2*(_!==0||I!==0?_+I:G(p.left,p.right)):S=f-2*(F!==0||D!==0?F+D:G(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const A=await a.getDimensions(s.floating);return h!==A.width||f!==A.height?{reset:{rects:!0}}:{}}}};function rt(){return typeof window<"u"}function Ie(e){return xn(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xn(e){return rt()?e instanceof Node||e instanceof Q(e).Node:!1}function re(e){return rt()?e instanceof Element||e instanceof Q(e).Element:!1}function se(e){return rt()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Gt(e){return!rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function or(e){return["table","td","th"].includes(Ie(e))}function ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function It(e){const t=Nt(),n=re(e)?ce(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="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(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function rr(e){let t=$e(e);for(;se(t)&&!Ae(t);){if(It(t))return t;if(ct(t))return null;t=$e(t)}return null}function Nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(Ie(e))}function ce(e){return Q(e).getComputedStyle(e)}function it(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gt(e)&&e.host||ae(e);return Gt(t)?t.host:t}function $n(e){const t=$e(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:se(t)&&Ve(t)?t:$n(t)}function He(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$n(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),a=Q(r);if(i){const s=Ct(a);return t.concat(a,a.visualViewport||[],Ve(r)?r:[],s&&n?He(s):[])}return t.concat(r,He(r,[],n))}function Ct(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){const t=ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=se(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Je(n)!==i||Je(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function Mt(e){return re(e)?e:e.contextElement}function Te(e){const t=Mt(e);if(!se(t))return ie(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=bn(t);let a=(i?Je(n.width):n.width)/o,s=(i?Je(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const cr=ie(0);function yn(e){const t=Q(e);return!Nt()||!t.visualViewport?cr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ir(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Q(e)?!1:t}function be(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Mt(e);let a=ie(1);t&&(o?re(o)&&(a=Te(o)):a=Te(e));const s=ir(i,n,o)?yn(i):ie(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,p=r.width/a.x,d=r.height/a.y;if(i){const x=Q(i),m=o&&re(o)?Q(o):o;let h=x,f=Ct(h);for(;f&&o&&m!==h;){const v=Te(f),g=f.getBoundingClientRect(),w=ce(f),$=g.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,b=g.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,p*=v.x,d*=v.y,l+=$,u+=b,h=Q(f),f=Ct(h)}}return tt({width:p,height:d,x:l,y:u})}function kt(e,t){const n=it(e).scrollLeft;return t?t.left+n:be(ae(e)).left+n}function En(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:kt(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function sr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",a=ae(o),s=t?ct(t.floating):!1;if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ie(1);const p=ie(0),d=se(o);if((d||!d&&!i)&&((Ie(o)!=="body"||Ve(a))&&(l=it(o)),se(o))){const m=be(o);u=Te(o),p.x=m.x+o.clientLeft,p.y=m.y+o.clientTop}const x=a&&!d&&!i?En(a,l,!0):ie(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x+x.x,y:n.y*u.y-l.scrollTop*u.y+p.y+x.y}}function ar(e){return Array.from(e.getClientRects())}function lr(e){const t=ae(e),n=it(e),o=e.ownerDocument.body,r=G(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=G(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+kt(e);const s=-n.scrollTop;return ce(o).direction==="rtl"&&(a+=G(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}function ur(e,t){const n=Q(e),o=ae(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const u=Nt();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}function dr(e,t){const n=be(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=se(e)?Te(e):ie(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:a,height:s,x:l,y:u}}function Qt(e,t,n){let o;if(t==="viewport")o=ur(e,n);else if(t==="document")o=lr(ae(e));else if(re(t))o=dr(t,n);else{const r=yn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tt(o)}function Sn(e,t){const n=$e(e);return n===t||!re(n)||Ae(n)?!1:ce(n).position==="fixed"||Sn(n,t)}function fr(e,t){const n=t.get(e);if(n)return n;let o=He(e,[],!1).filter(s=>re(s)&&Ie(s)!=="body"),r=null;const i=ce(e).position==="fixed";let a=i?$e(e):e;for(;re(a)&&!Ae(a);){const s=ce(a),l=It(a);!l&&s.position==="fixed"&&(r=null),(i?!l&&!r:!l&&s.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ve(a)&&!l&&Sn(e,a))?o=o.filter(p=>p!==a):r=s,a=$e(a)}return t.set(e,o),o}function pr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?ct(t)?[]:fr(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((u,p)=>{const d=Qt(t,p,r);return u.top=G(d.top,u.top),u.right=xe(d.right,u.right),u.bottom=xe(d.bottom,u.bottom),u.left=G(d.left,u.left),u},Qt(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function hr(e,t,n){const o=se(t),r=ae(t),i=n==="fixed",a=be(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ie(0);function u(){l.x=kt(r)}if(o||!o&&!i)if((Ie(t)!=="body"||Ve(r))&&(s=it(t)),o){const m=be(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&u();i&&!o&&r&&u();const p=r&&!o&&!i?En(r,s):ie(0),d=a.left+s.scrollLeft-l.x-p.x,x=a.top+s.scrollTop-l.y-p.y;return{x:d,y:x,width:a.width,height:a.height}}function ht(e){return ce(e).position==="static"}function Jt(e,t){if(!se(e)||ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ae(e)===n&&(n=n.ownerDocument.body),n}function Cn(e,t){const n=Q(e);if(ct(e))return n;if(!se(e)){let r=$e(e);for(;r&&!Ae(r);){if(re(r)&&!ht(r))return r;r=$e(r)}return n}let o=Jt(e,t);for(;o&&or(o)&&ht(o);)o=Jt(o,t);return o&&Ae(o)&&ht(o)&&!It(o)?n:o||rr(e)||n}const vr=async function(e){const t=this.getOffsetParent||Cn,n=this.getDimensions,o=await n(e.floating);return{reference:hr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gr(e){return ce(e).direction==="rtl"}const wr={convertOffsetParentRelativeRectToViewportRelativeRect:sr,getDocumentElement:ae,getClippingRect:pr,getOffsetParent:Cn,getElementRects:vr,getClientRects:ar,getDimensions:mr,getScale:Te,isElement:re,isRTL:gr};function Rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xr(e,t){let n=null,o;const r=ae(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:p,top:d,width:x,height:m}=u;if(s||t(),!x||!m)return;const h=Ue(d),f=Ue(r.clientWidth-(p+x)),v=Ue(r.clientHeight-(d+m)),g=Ue(p),$={rootMargin:-h+"px "+-f+"px "+-v+"px "+-g+"px",threshold:G(0,xe(1,l))||1};let b=!0;function y(R){const S=R[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):o=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!Rn(u,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(y,{...$,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,$)}n.observe(e)}return a(!0),i}function $r(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Mt(e),p=r||i?[...u?He(u):[],...He(t)]:[];p.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&s?xr(u,n):null;let x=-1,m=null;a&&(m=new ResizeObserver(g=>{let[w]=g;w&&w.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var $;($=m)==null||$.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let h,f=l?be(e):null;l&&v();function v(){const g=be(e);f&&!Rn(f,g)&&n(),f=g,h=requestAnimationFrame(v)}return n(),()=>{var g;p.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const br=Jo,yr=er,Er=qo,Sr=nr,Cr=Go,en=Zo,Rr=tr,Pr=(e,t,n)=>{const o=new Map,r={platform:wr,...n},i={...r.platform,_c:o};return Xo(e,t,{...r,platform:i})};var qe=typeof document<"u"?c.useLayoutEffect:c.useEffect;function nt(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,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!nt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!nt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tn(e,t){const n=Pn(e);return Math.round(t*n)/n}function vt(e){const t=c.useRef(e);return qe(()=>{t.current=e}),t}function Tr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[p,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,m]=c.useState(o);nt(x,o)||m(o);const[h,f]=c.useState(null),[v,g]=c.useState(null),w=c.useCallback(P=>{P!==R.current&&(R.current=P,f(P))},[]),$=c.useCallback(P=>{P!==S.current&&(S.current=P,g(P))},[]),b=i||h,y=a||v,R=c.useRef(null),S=c.useRef(null),E=c.useRef(p),A=l!=null,_=vt(l),I=vt(r),F=vt(u),D=c.useCallback(()=>{if(!R.current||!S.current)return;const P={placement:t,strategy:n,middleware:x};I.current&&(P.platform=I.current),Pr(R.current,S.current,P).then(B=>{const j={...B,isPositioned:F.current!==!1};W.current&&!nt(E.current,j)&&(E.current=j,ot.flushSync(()=>{d(j)}))})},[x,t,n,I,F]);qe(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const W=c.useRef(!1);qe(()=>(W.current=!0,()=>{W.current=!1}),[]),qe(()=>{if(b&&(R.current=b),y&&(S.current=y),b&&y){if(_.current)return _.current(b,y,D);D()}},[b,y,D,_,A]);const T=c.useMemo(()=>({reference:R,floating:S,setReference:w,setFloating:$}),[w,$]),N=c.useMemo(()=>({reference:b,floating:y}),[b,y]),V=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!N.floating)return P;const B=tn(N.floating,p.x),j=tn(N.floating,p.y);return s?{...P,transform:"translate("+B+"px, "+j+"px)",...Pn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:j}},[n,s,N.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:D,refs:T,elements:N,floatingStyles:V}),[p,D,T,N,V])}const Or=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?en({element:o.current,padding:r}).fn(n):{}:o?en({element:o,padding:r}).fn(n):{}}}},Ar=(e,t)=>({...br(e),options:[e,t]}),Dr=(e,t)=>({...yr(e),options:[e,t]}),_r=(e,t)=>({...Rr(e),options:[e,t]}),Ir=(e,t)=>({...Er(e),options:[e,t]}),Nr=(e,t)=>({...Sr(e),options:[e,t]}),Mr=(e,t)=>({...Cr(e),options:[e,t]}),kr=(e,t)=>({...Or(e),options:[e,t]});function Lr(e){const[t,n]=c.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const Tn="Popper",[On,An]=Ot(Tn),[Fr,Dn]=On(Tn),Br=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return c.createElement(Fr,{scope:t,anchor:o,onAnchorChange:r},n)},Wr="PopperAnchor",Hr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Dn(Wr,n),a=c.useRef(null),s=K(t,a);return c.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:c.createElement(Z.div,O({},r,{ref:s}))}),_n="PopperContent",[Vr,_i]=On(_n),jr=c.forwardRef((e,t)=>{var n,o,r,i,a,s,l,u;const{__scopePopper:p,side:d="bottom",sideOffset:x=0,align:m="center",alignOffset:h=0,arrowPadding:f=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:w="partial",hideWhenDetached:$=!1,avoidCollisions:b=!0,onPlaced:y,...R}=e,S=Dn(_n,p),[E,A]=c.useState(null),_=K(t,X=>A(X)),[I,F]=c.useState(null),D=Lr(I),W=(n=D==null?void 0:D.width)!==null&&n!==void 0?n:0,T=(o=D==null?void 0:D.height)!==null&&o!==void 0?o:0,N=d+(m!=="center"?"-"+m:""),V=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],B=P.length>0,j={padding:V,boundary:P.filter(Ur),altBoundary:B},{refs:me,floatingStyles:Se,placement:Me,isPositioned:ne,middlewareData:oe}=Tr({strategy:"fixed",placement:N,whileElementsMounted:$r,elements:{reference:S.anchor},middleware:[Ar({mainAxis:x+T,alignmentAxis:h}),b&&Dr({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?_r():void 0,...j}),b&&Ir({...j}),Nr({...j,apply:({elements:X,rects:ke,availableWidth:Le,availableHeight:Fe})=>{const{width:Gn,height:Qn}=ke.reference,je=X.floating.style;je.setProperty("--radix-popper-available-width",`${Le}px`),je.setProperty("--radix-popper-available-height",`${Fe}px`),je.setProperty("--radix-popper-anchor-width",`${Gn}px`),je.setProperty("--radix-popper-anchor-height",`${Qn}px`)}}),I&&kr({element:I,padding:f}),zr({arrowWidth:W,arrowHeight:T}),$&&Mr({strategy:"referenceHidden"})]}),[he,C]=In(Me),M=de(y);te(()=>{ne&&(M==null||M())},[ne,M]);const Y=(r=oe.arrow)===null||r===void 0?void 0:r.x,H=(i=oe.arrow)===null||i===void 0?void 0:i.y,k=((a=oe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[L,q]=c.useState();return te(()=>{E&&q(window.getComputedStyle(E).zIndex)},[E]),c.createElement("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ne?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:L,"--radix-popper-transform-origin":[(s=oe.transformOrigin)===null||s===void 0?void 0:s.x,(l=oe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},c.createElement(Vr,{scope:p,placedSide:he,onArrowChange:F,arrowX:Y,arrowY:H,shouldHideArrow:k},c.createElement(Z.div,O({"data-side":he,"data-align":C},R,{ref:_,style:{...R.style,animation:ne?void 0:"none",opacity:(u=oe.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Ur(e){return e!==null}const zr=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:s,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,x=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[h,f]=In(s),v={start:"0%",center:"50%",end:"100%"}[f],g=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+x/2,w=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+m/2;let $="",b="";return h==="bottom"?($=d?v:`${g}px`,b=`${-m}px`):h==="top"?($=d?v:`${g}px`,b=`${l.floating.height+m}px`):h==="right"?($=`${-m}px`,b=d?v:`${w}px`):h==="left"&&($=`${l.floating.width+m}px`,b=d?v:`${w}px`),{data:{x:$,y:b}}}});function In(e){const[t,n="center"]=e.split("-");return[t,n]}const Kr=Br,Yr=Hr,Xr=jr,Zr=c.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?to.createPortal(c.createElement(Z.div,O({},r,{ref:t})),o):null});function nn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=qr({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:o,s=de(n),l=c.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&s(d)}else r(u)},[i,e,r,s]);return[a,l]}function qr({defaultProp:e,onChange:t}){const n=c.useState(e),[o]=n,r=c.useRef(o),i=de(t);return c.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}function Gr(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Qr(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Jr(...e){return t=>e.forEach(n=>Qr(n,t))}const Nn=c.forwardRef((e,t)=>{const{children:n,...o}=e,r=c.Children.toArray(n),i=r.find(tc);if(i){const a=i.props.children,s=r.map(l=>l===i?c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null:l);return c.createElement(Rt,O({},o,{ref:t}),c.isValidElement(a)?c.cloneElement(a,void 0,s):null)}return c.createElement(Rt,O({},o,{ref:t}),n)});Nn.displayName="Slot";const Rt=c.forwardRef((e,t)=>{const{children:n,...o}=e;return c.isValidElement(n)?c.cloneElement(n,{...nc(o,n.props),ref:t?Jr(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});Rt.displayName="SlotClone";const ec=({children:e})=>c.createElement(c.Fragment,null,e);function tc(e){return c.isValidElement(e)&&e.type===ec}function nc(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{i(...s),r(...s)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const oc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rc=oc.reduce((e,t)=>{const n=c.forwardRef((o,r)=>{const{asChild:i,...a}=o,s=i?Nn:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(s,O({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cc=c.forwardRef((e,t)=>c.createElement(rc.span,O({},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}})));var ic=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ce=new WeakMap,ze=new WeakMap,Ke={},gt=0,Mn=function(e){return e&&(e.host||Mn(e.parentNode))},sc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Mn(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ac=function(e,t,n,o){var r=sc(t,Array.isArray(e)?e:[e]);Ke[n]||(Ke[n]=new WeakMap);var i=Ke[n],a=[],s=new Set,l=new Set(r),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};r.forEach(u);var p=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(x){if(s.has(x))p(x);else try{var m=x.getAttribute(o),h=m!==null&&m!=="false",f=(Ce.get(x)||0)+1,v=(i.get(x)||0)+1;Ce.set(x,f),i.set(x,v),a.push(x),f===1&&h&&ze.set(x,!0),v===1&&x.setAttribute(n,"true"),h||x.setAttribute(o,"true")}catch(g){console.error("aria-hidden: cannot operate on ",x,g)}})};return p(t),s.clear(),gt++,function(){a.forEach(function(d){var x=Ce.get(d)-1,m=i.get(d)-1;Ce.set(d,x),i.set(d,m),x||(ze.has(d)||d.removeAttribute(o),ze.delete(d)),m||d.removeAttribute(n)}),gt--,gt||(Ce=new WeakMap,Ce=new WeakMap,ze=new WeakMap,Ke={})}},lc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=ic(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),ac(o,r,n,"aria-hidden")):function(){return null}},Ge="right-scroll-bar-position",Qe="width-before-scroll-bar",uc="with-scroll-bars-hidden",dc="--removed-body-scroll-bar-size";function wt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fc(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var pc=typeof window<"u"?c.useLayoutEffect:c.useEffect,on=new WeakMap;function mc(e,t){var n=fc(null,function(o){return e.forEach(function(r){return wt(r,o)})});return pc(function(){var o=on.get(n);if(o){var r=new Set(o),i=new Set(e),a=n.current;r.forEach(function(s){i.has(s)||wt(s,null)}),i.forEach(function(s){r.has(s)||wt(s,a)})}on.set(n,e)},[e]),n}function hc(e){return e}function vc(e,t){t===void 0&&(t=hc);var n=[],o=!1,r={read:function(){if(o)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(i){var a=t(i,o);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(o=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var p=a;a=[],p.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return r}function gc(e){e===void 0&&(e={});var t=vc(null);return t.options=ge({async:!0,ssr:!1},e),t}var kn=function(e){var t=e.sideCar,n=pn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,ge({},n))};kn.isSideCarExport=!0;function wc(e,t){return e.useMedium(t),kn}var Ln=gc(),xt=function(){},st=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:xt,onWheelCapture:xt,onTouchMoveCapture:xt}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,x=e.sideCar,m=e.noIsolation,h=e.inert,f=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=pn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=x,b=mc([n,t]),y=ge(ge({},w),r);return c.createElement(c.Fragment,null,p&&c.createElement($,{sideCar:Ln,removeScrollBar:u,shards:d,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!f,lockRef:n}),a?c.cloneElement(c.Children.only(s),ge(ge({},y),{ref:b})):c.createElement(g,ge({},y,{className:l,ref:b}),s))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:Qe,zeroRight:Ge};var xc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xc();return t&&e.setAttribute("nonce",t),e}function bc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ec=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$c())&&(bc(t,n),yc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sc=function(){var e=Ec();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fn=function(){var e=Sc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Cc={left:0,top:0,right:0,gap:0},$t=function(e){return parseInt(e||"",10)||0},Rc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[$t(n),$t(o),$t(r)]},Pc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cc;var t=Rc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Tc=Fn(),Oe="data-scroll-locked",Oc=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(uc,` {
|
|
3
|
-
overflow: hidden `).concat(o,`;
|
|
4
|
-
padding-right: `).concat(s,"px ").concat(o,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(Oe,`] {
|
|
7
|
-
overflow: hidden `).concat(o,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
10
|
-
padding-left: `.concat(r,`px;
|
|
11
|
-
padding-top: `).concat(i,`px;
|
|
12
|
-
padding-right: `).concat(a,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(s,"px ").concat(o,`;
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(Ge,` {
|
|
20
|
-
right: `).concat(s,"px ").concat(o,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(Qe,` {
|
|
24
|
-
margin-right: `).concat(s,"px ").concat(o,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(Ge," .").concat(Ge,` {
|
|
28
|
-
right: 0 `).concat(o,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Qe," .").concat(Qe,` {
|
|
32
|
-
margin-right: 0 `).concat(o,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(Oe,`] {
|
|
36
|
-
`).concat(dc,": ").concat(s,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},rn=function(){var e=parseInt(document.body.getAttribute(Oe)||"0",10);return isFinite(e)?e:0},Ac=function(){c.useEffect(function(){return document.body.setAttribute(Oe,(rn()+1).toString()),function(){var e=rn()-1;e<=0?document.body.removeAttribute(Oe):document.body.setAttribute(Oe,e.toString())}},[])},Dc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Ac();var i=c.useMemo(function(){return Pc(r)},[r]);return c.createElement(Tc,{styles:Oc(i,!t,r,n?"":"!important")})},Pt=!1;if(typeof window<"u")try{var Ye=Object.defineProperty({},"passive",{get:function(){return Pt=!0,!0}});window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{Pt=!1}var Re=Pt?{passive:!1}:!1,_c=function(e){return e.tagName==="TEXTAREA"},Bn=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_c(e)&&n[t]==="visible")},Ic=function(e){return Bn(e,"overflowY")},Nc=function(e){return Bn(e,"overflowX")},cn=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Wn(e,n);if(o){var r=Hn(e,n),i=r[1],a=r[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Mc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},kc=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Wn=function(e,t){return e==="v"?Ic(t):Nc(t)},Hn=function(e,t){return e==="v"?Mc(t):kc(t)},Lc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fc=function(e,t,n,o,r){var i=Lc(e,window.getComputedStyle(t).direction),a=i*o,s=n.target,l=t.contains(s),u=!1,p=a>0,d=0,x=0;do{var m=Hn(e,s),h=m[0],f=m[1],v=m[2],g=f-v-i*h;(h||g)&&Wn(e,s)&&(d+=g,x+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&d===0||!p&&x===0)&&(u=!0),u},Xe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},an=function(e){return e&&"current"in e?e.current:e},Bc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wc=function(e){return`
|
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},Hc=0,Pe=[];function Vc(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Hc++)[0],i=c.useState(function(){return Fn()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var f=no([e.lockRef.current],(e.shards||[]).map(an),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(f,v){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var g=Xe(f),w=n.current,$="deltaX"in f?f.deltaX:w[0]-g[0],b="deltaY"in f?f.deltaY:w[1]-g[1],y,R=f.target,S=Math.abs($)>Math.abs(b)?"h":"v";if("touches"in f&&S==="h"&&R.type==="range")return!1;var E=cn(S,R);if(!E)return!0;if(E?y=S:(y=S==="v"?"h":"v",E=cn(S,R)),!E)return!1;if(!o.current&&"changedTouches"in f&&($||b)&&(o.current=y),!y)return!0;var A=o.current||y;return Fc(A,v,f,A==="h"?$:b)},[]),l=c.useCallback(function(f){var v=f;if(!(!Pe.length||Pe[Pe.length-1]!==i)){var g="deltaY"in v?sn(v):Xe(v),w=t.current.filter(function(y){return y.name===v.type&&y.target===v.target&&Bc(y.delta,g)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var $=(a.current.shards||[]).map(an).filter(Boolean).filter(function(y){return y.contains(v.target)}),b=$.length>0?s(v,$[0]):!a.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),u=c.useCallback(function(f,v,g,w){var $={name:f,delta:v,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(b){return b!==$})},1)},[]),p=c.useCallback(function(f){n.current=Xe(f),o.current=void 0},[]),d=c.useCallback(function(f){u(f.type,sn(f),f.target,s(f,e.lockRef.current))},[]),x=c.useCallback(function(f){u(f.type,Xe(f),f.target,s(f,e.lockRef.current))},[]);c.useEffect(function(){return Pe.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:x}),document.addEventListener("wheel",l,Re),document.addEventListener("touchmove",l,Re),document.addEventListener("touchstart",p,Re),function(){Pe=Pe.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Re),document.removeEventListener("touchmove",l,Re),document.removeEventListener("touchstart",p,Re)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(i,{styles:Wc(r)}):null,m?c.createElement(Dc,{gapMode:"margin"}):null)}const jc=wc(Ln,Vc);var Vn=c.forwardRef(function(e,t){return c.createElement(st,ge({},e,{ref:t,sideCar:jc}))});Vn.classNames=st.classNames;const Uc=[" ","Enter","ArrowUp","ArrowDown"],zc=[" ","Enter"],at="Select",[lt,ut,Kc]=wo(at),[Ne,Ii]=Ot(at,[Kc,An]),Lt=An(),[Yc,ye]=Ne(at),[Xc,Zc]=Ne(at),qc=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:p,autoComplete:d,disabled:x,required:m}=e,h=Lt(t),[f,v]=c.useState(null),[g,w]=c.useState(null),[$,b]=c.useState(!1),y=$o(u),[R=!1,S]=nn({prop:o,defaultProp:r,onChange:i}),[E,A]=nn({prop:a,defaultProp:s,onChange:l}),_=c.useRef(null),I=f?!!f.closest("form"):!0,[F,D]=c.useState(new Set),W=Array.from(F).map(T=>T.props.value).join(";");return c.createElement(Kr,h,c.createElement(Yc,{required:m,scope:t,trigger:f,onTriggerChange:v,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:b,contentId:gn(),value:E,onValueChange:A,open:R,onOpenChange:S,dir:y,triggerPointerDownPosRef:_,disabled:x},c.createElement(lt.Provider,{scope:t},c.createElement(Xc,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(T=>{D(N=>new Set(N).add(T))},[]),onNativeOptionRemove:c.useCallback(T=>{D(N=>{const V=new Set(N);return V.delete(T),V})},[])},n)),I?c.createElement(Kn,{key:W,"aria-hidden":!0,required:m,tabIndex:-1,name:p,autoComplete:d,value:E,onChange:T=>A(T.target.value),disabled:x},E===void 0?c.createElement("option",{value:""}):null,Array.from(F)):null))},Gc="SelectTrigger",Qc=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,i=Lt(n),a=ye(Gc,n),s=a.disabled||o,l=K(t,a.onTriggerChange),u=ut(n),[p,d,x]=Yn(h=>{const f=u().filter(w=>!w.disabled),v=f.find(w=>w.value===a.value),g=Xn(f,h,v);g!==void 0&&a.onValueChange(g.value)}),m=()=>{s||(a.onOpenChange(!0),x())};return c.createElement(Yr,O({asChild:!0},i),c.createElement(Z.button,O({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},r,{ref:l,onClick:z(r.onClick,h=>{h.currentTarget.focus()}),onPointerDown:z(r.onPointerDown,h=>{const f=h.target;f.hasPointerCapture(h.pointerId)&&f.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:z(r.onKeyDown,h=>{const f=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(f&&h.key===" ")&&Uc.includes(h.key)&&(m(),h.preventDefault())})})))}),Jc="SelectValue",ei=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:i,placeholder:a,...s}=e,l=ye(Jc,n),{onValueNodeHasChildrenChange:u}=l,p=i!==void 0,d=K(t,l.onValueNodeChange);return te(()=>{u(p)},[u,p]),c.createElement(Z.span,O({},s,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:i)}),ti=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return c.createElement(Z.span,O({"aria-hidden":!0},r,{ref:t}),o||"▼")}),ni=e=>c.createElement(Zr,O({asChild:!0},e)),De="SelectContent",oi=c.forwardRef((e,t)=>{const n=ye(De,e.__scopeSelect),[o,r]=c.useState();if(te(()=>{r(new DocumentFragment)},[]),!n.open){const i=o;return i?ot.createPortal(c.createElement(jn,{scope:e.__scopeSelect},c.createElement(lt.Slot,{scope:e.__scopeSelect},c.createElement("div",null,e.children))),i):null}return c.createElement(ri,O({},e,{ref:t}))}),le=10,[jn,Ee]=Ne(De),ri=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:x,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:v,...g}=e,w=ye(De,n),[$,b]=c.useState(null),[y,R]=c.useState(null),S=K(t,C=>b(C)),[E,A]=c.useState(null),[_,I]=c.useState(null),F=ut(n),[D,W]=c.useState(!1),T=c.useRef(!1);c.useEffect(()=>{if($)return lc($)},[$]),Ao();const N=c.useCallback(C=>{const[M,...Y]=F().map(L=>L.ref.current),[H]=Y.slice(-1),k=document.activeElement;for(const L of C)if(L===k||(L==null||L.scrollIntoView({block:"nearest"}),L===M&&y&&(y.scrollTop=0),L===H&&y&&(y.scrollTop=y.scrollHeight),L==null||L.focus(),document.activeElement!==k))return},[F,y]),V=c.useCallback(()=>N([E,$]),[N,E,$]);c.useEffect(()=>{D&&V()},[D,V]);const{onOpenChange:P,triggerPointerDownPosRef:B}=w;c.useEffect(()=>{if($){let C={x:0,y:0};const M=H=>{var k,L,q,X;C={x:Math.abs(Math.round(H.pageX)-((k=(L=B.current)===null||L===void 0?void 0:L.x)!==null&&k!==void 0?k:0)),y:Math.abs(Math.round(H.pageY)-((q=(X=B.current)===null||X===void 0?void 0:X.y)!==null&&q!==void 0?q:0))}},Y=H=>{C.x<=10&&C.y<=10?H.preventDefault():$.contains(H.target)||P(!1),document.removeEventListener("pointermove",M),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",Y,{capture:!0})}}},[$,P,B]),c.useEffect(()=>{const C=()=>P(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[P]);const[j,me]=Yn(C=>{const M=F().filter(k=>!k.disabled),Y=M.find(k=>k.ref.current===document.activeElement),H=Xn(M,C,Y);H&&setTimeout(()=>H.ref.current.focus())}),Se=c.useCallback((C,M,Y)=>{const H=!T.current&&!Y;(w.value!==void 0&&w.value===M||H)&&(A(C),H&&(T.current=!0))},[w.value]),Me=c.useCallback(()=>$==null?void 0:$.focus(),[$]),ne=c.useCallback((C,M,Y)=>{const H=!T.current&&!Y;(w.value!==void 0&&w.value===M||H)&&I(C)},[w.value]),oe=o==="popper"?ln:ci,he=oe===ln?{side:s,sideOffset:l,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:x,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:v}:{};return c.createElement(jn,{scope:n,content:$,viewport:y,onViewportChange:R,itemRefCallback:Se,selectedItem:E,onItemLeave:Me,itemTextRefCallback:ne,focusSelectedItem:V,selectedItemText:_,position:o,isPositioned:D,searchRef:j},c.createElement(Vn,{as:Be,allowPinchZoom:!0},c.createElement(Do,{asChild:!0,trapped:w.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:z(r,C=>{var M;(M=w.trigger)===null||M===void 0||M.focus({preventScroll:!0}),C.preventDefault()})},c.createElement(Po,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},c.createElement(oe,O({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:C=>C.preventDefault()},g,he,{onPlaced:()=>W(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:z(g.onKeyDown,C=>{const M=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!M&&C.key.length===1&&me(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let H=F().filter(k=>!k.disabled).map(k=>k.ref.current);if(["ArrowUp","End"].includes(C.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const k=C.target,L=H.indexOf(k);H=H.slice(L+1)}setTimeout(()=>N(H)),C.preventDefault()}})}))))))}),ci=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,i=ye(De,n),a=Ee(De,n),[s,l]=c.useState(null),[u,p]=c.useState(null),d=K(t,S=>p(S)),x=ut(n),m=c.useRef(!1),h=c.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:g,focusSelectedItem:w}=a,$=c.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&f&&v&&g){const S=i.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),_=g.getBoundingClientRect();if(i.dir!=="rtl"){const k=_.left-E.left,L=A.left-k,q=S.left-L,X=S.width+q,ke=Math.max(X,E.width),Le=window.innerWidth-le,Fe=Wt(L,[le,Le-ke]);s.style.minWidth=X+"px",s.style.left=Fe+"px"}else{const k=E.right-_.right,L=window.innerWidth-A.right-k,q=window.innerWidth-S.right-L,X=S.width+q,ke=Math.max(X,E.width),Le=window.innerWidth-le,Fe=Wt(L,[le,Le-ke]);s.style.minWidth=X+"px",s.style.right=Fe+"px"}const I=x(),F=window.innerHeight-le*2,D=f.scrollHeight,W=window.getComputedStyle(u),T=parseInt(W.borderTopWidth,10),N=parseInt(W.paddingTop,10),V=parseInt(W.borderBottomWidth,10),P=parseInt(W.paddingBottom,10),B=T+N+D+P+V,j=Math.min(v.offsetHeight*5,B),me=window.getComputedStyle(f),Se=parseInt(me.paddingTop,10),Me=parseInt(me.paddingBottom,10),ne=S.top+S.height/2-le,oe=F-ne,he=v.offsetHeight/2,C=v.offsetTop+he,M=T+N+C,Y=B-M;if(M<=ne){const k=v===I[I.length-1].ref.current;s.style.bottom="0px";const L=u.clientHeight-f.offsetTop-f.offsetHeight,q=Math.max(oe,he+(k?Me:0)+L+V),X=M+q;s.style.height=X+"px"}else{const k=v===I[0].ref.current;s.style.top="0px";const q=Math.max(ne,T+f.offsetTop+(k?Se:0)+he)+Y;s.style.height=q+"px",f.scrollTop=M-ne+f.offsetTop}s.style.margin=`${le}px 0`,s.style.minHeight=j+"px",s.style.maxHeight=F+"px",o==null||o(),requestAnimationFrame(()=>m.current=!0)}},[x,i.trigger,i.valueNode,s,u,f,v,g,i.dir,o]);te(()=>$(),[$]);const[b,y]=c.useState();te(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const R=c.useCallback(S=>{S&&h.current===!0&&($(),w==null||w(),h.current=!1)},[$,w]);return c.createElement(ii,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R},c.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},c.createElement(Z.div,O({},r,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),ln=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=le,...i}=e,a=Lt(n);return c.createElement(Xr,O({},a,i,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.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)"}}))}),[ii,Ft]=Ne(De,{}),un="SelectViewport",si=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ee(un,n),i=Ft(un,n),a=K(t,r.onViewportChange),s=c.useRef(0);return c.createElement(c.Fragment,null,c.createElement("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}"}}),c.createElement(lt.Slot,{scope:n},c.createElement(Z.div,O({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:z(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:d}=i;if(d!=null&&d.current&&p){const x=Math.abs(s.current-u.scrollTop);if(x>0){const m=window.innerHeight-le*2,h=parseFloat(p.style.minHeight),f=parseFloat(p.style.height),v=Math.max(h,f);if(v<m){const g=v+x,w=Math.min(m,g),$=g-w;p.style.height=w+"px",p.style.bottom==="0px"&&(u.scrollTop=$>0?$:0,p.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),ai="SelectGroup",[Ni,Mi]=Ne(ai),Tt="SelectItem",[li,Un]=Ne(Tt),ui=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:i,...a}=e,s=ye(Tt,n),l=Ee(Tt,n),u=s.value===o,[p,d]=c.useState(i??""),[x,m]=c.useState(!1),h=K(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,o,r)}),f=gn(),v=()=>{r||(s.onValueChange(o),s.onOpenChange(!1))};return c.createElement(li,{scope:n,value:o,disabled:r,textId:f,isSelected:u,onItemTextChange:c.useCallback(g=>{d(w=>{var $;return w||(($=g==null?void 0:g.textContent)!==null&&$!==void 0?$:"").trim()})},[])},c.createElement(lt.ItemSlot,{scope:n,value:o,disabled:r,textValue:p},c.createElement(Z.div,O({role:"option","aria-labelledby":f,"data-highlighted":x?"":void 0,"aria-selected":u&&x,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},a,{ref:h,onFocus:z(a.onFocus,()=>m(!0)),onBlur:z(a.onBlur,()=>m(!1)),onPointerUp:z(a.onPointerUp,v),onPointerMove:z(a.onPointerMove,g=>{if(r){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(a.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:z(a.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(zc.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})}))))}),Ze="SelectItemText",di=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...i}=e,a=ye(Ze,n),s=Ee(Ze,n),l=Un(Ze,n),u=Zc(Ze,n),[p,d]=c.useState(null),x=K(t,g=>d(g),l.onItemTextChange,g=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,g,l.value,l.disabled)}),m=p==null?void 0:p.textContent,h=c.useMemo(()=>c.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},m),[l.disabled,l.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return te(()=>(f(h),()=>v(h)),[f,v,h]),c.createElement(c.Fragment,null,c.createElement(Z.span,O({id:l.textId},i,{ref:x})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ot.createPortal(i.children,a.valueNode):null)}),fi="SelectItemIndicator",pi=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Un(fi,n).isSelected?c.createElement(Z.span,O({"aria-hidden":!0},o,{ref:t})):null}),dn="SelectScrollUpButton",mi=c.forwardRef((e,t)=>{const n=Ee(dn,e.__scopeSelect),o=Ft(dn,e.__scopeSelect),[r,i]=c.useState(!1),a=K(t,o.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=s.scrollTop>0;i(u)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?c.createElement(zn,O({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),fn="SelectScrollDownButton",hi=c.forwardRef((e,t)=>{const n=Ee(fn,e.__scopeSelect),o=Ft(fn,e.__scopeSelect),[r,i]=c.useState(!1),a=K(t,o.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=s.scrollHeight-s.clientHeight,p=Math.ceil(s.scrollTop)<u;i(p)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?c.createElement(zn,O({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),zn=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,i=Ee("SelectScrollButton",n),a=c.useRef(null),s=ut(n),l=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),te(()=>{var u;const p=s().find(d=>d.ref.current===document.activeElement);p==null||(u=p.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),c.createElement(Z.div,O({"aria-hidden":!0},r,{ref:t,style:{flexShrink:0,...r.style},onPointerDown:z(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:z(r.onPointerMove,()=>{var u;(u=i.onItemLeave)===null||u===void 0||u.call(i),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:z(r.onPointerLeave,()=>{l()})}))}),Kn=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=c.useRef(null),i=K(t,r),a=Gr(n);return c.useEffect(()=>{const s=r.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&p){const d=new Event("change",{bubbles:!0});p.call(s,n),s.dispatchEvent(d)}},[a,n]),c.createElement(cc,{asChild:!0},c.createElement("select",O({},o,{ref:i,defaultValue:n})))});Kn.displayName="BubbleSelect";function Yn(e){const t=de(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(a=>{const s=n.current+a;t(s),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}function Xn(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=vi(e,Math.max(i,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function vi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const gi=qc,wi=Qc,xi=ei,$i=ti,bi=ni,yi=oi,Ei=si,Si=ui,Ci=di,Ri=pi,Pi=mi,Ti=hi,Oi=J.forwardRef(function({list:t=[],required:n=!1,disabled:o=!1,autoFocus:r=!1,size:i=ee.md,name:a,value:s="default",className:l,onChange:u},p){const d=t.find(x=>x.value===s)??t[0]??{value:s};return o=o||t.length<2,U.jsxs(gi,{name:a,value:d.value,disabled:o,required:n,onValueChange:u,children:[U.jsxs(wi,{ref:p,className:we(l,o&&"opacity-50 cursor-not-allowed"),autoFocus:r,children:[U.jsx(xi,{}),U.jsx($i,{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1",children:U.jsx(ao,{className:"w-4","aria-hidden":"true"})})]}),U.jsx(bi,{className:"z-50",children:U.jsxs(yi,{className:we("overflow-auto rounded-md bg-theme p-1 shadow-2xl border-2 border-neutral-200 dark:border-neutral-700 ring-opacity-5 focus:outline-none",i===ee.sm&&"text-xs",i===ee.md&&"text-sm",i===ee.lg&&"text-sm"),children:[U.jsx(Pi,{className:"flex items-center justify-center h-3 cursor-default",children:U.jsx(uo,{className:"w-4","aria-hidden":"true"})}),U.jsx(Ei,{className:"p-1",children:t.map(({text:x,value:m})=>U.jsx(Ai,{value:m,children:x},m))}),U.jsx(Ti,{className:"flex items-center justify-center h-3 cursor-default",children:U.jsx(io,{className:"w-4","aria-hidden":"true"})})]})})]})});function Ai({disabled:e=!1,value:t,children:n,className:o}){return U.jsxs(Si,{value:t,className:we("leading-none rounded-md flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-brand-500 data-[highlighted]:text-brand-100",e&&"opacity-50 cursor-not-allowed",o),children:[U.jsx(Ci,{children:n}),U.jsx(Ri,{className:"absolute left-0 w-4 inline-flex items-center justify-center",children:U.jsx(ro,{})})]})}function dt({label:e,info:t,size:n=ee.md,className:o,children:r,disabled:i=!1,required:a=!1,autoFocus:s=!1}){const l=we("text-left relative block bg-theme-lighter border-neutral-200 dark:border-neutral-700","focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",n===ee.sm&&"px-2 py-0.5 text-xs leading-4 border-2 focus:ring-2 rounded-[0.25rem] min-w-[7rem]",n===ee.md&&"px-3 py-2 text-sm leading-4 border-2 focus:ring-4 rounded-md min-w-[10rem]",n===ee.lg&&"px-3 py-2 text-sm leading-6 border-2 focus:ring-4 rounded-md min-w-[10rem]");return U.jsxs("div",{className:we("inline-block relative m-1 text-left",i&&"opacity-50 cursor-not-allowed",o),children:[Bt(e)&&U.jsx(Zn,{size:n,children:e}),typeof r=="function"?r({disabled:i,required:a,autoFocus:s,size:n,className:l}):r,Bt(t)&&U.jsx(qn,{children:t})]})}function Zn({htmlFor:e,className:t,children:n,size:o=ee.md}){return U.jsx("label",{htmlFor:e,className:we("block mb-1 px-2 text-sm whitespace-nowrap",o===ee.sm&&"text-xs",o===ee.md&&"text-sm",o===ee.lg&&"text-md",t),children:n})}function qn({className:e,children:t}){return U.jsx("small",{className:we("block text-xs mt-1 px-3 text-neutral-400 dark:text-neutral-600",e),children:t})}dt.Label=Zn;dt.Info=qn;dt.Textfield=fo;dt.Selector=Oi;export{ao as F,dt as I,Dc as R,O as _,Nr as a,kr as b,$r as c,gc as d,mc as e,Ir as f,Qe as g,Mr as h,Fn as i,wc as j,lc as k,_r as l,uo as m,io as n,Ar as o,ro as p,Dr as s,Tr as u,Ge as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as u,U as c,a as m,w as a,j as s,e as f}from"./index-L7UJWCGi.js";import{L as g}from"./context-CA-MXfZ6.js";import x from"./ModelLineage-B6geDuI6.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./Input-A6Hrwz1k.js";import"./editor-DmJY3IbC.js";import"./file-DYgUpg8u.js";import"./project-BlT_dmGo.js";import"./help-6Q7f7fjd.js";import"./SourceList-Diwt0dWW.js";import"./index-D-9edHVb.js";import"./transition-nHCHMLQ-.js";import"./ListboxShow-nvacUoI1.js";import"./SearchList-Dltx9F6k.js";function I(){const l=u(),{modelName:t}=c(),i=m(e=>e.models),o=m(e=>e.lastSelectedModel),r=a(t)||t===(o==null?void 0:o.name)?o:i.get(encodeURI(t));function d(e){const n=i.get(e);a(n)||l(f.LineageModels+"/"+n.name)}function p(e){console.log(e==null?void 0:e.message)}return s.jsx("div",{className:"flex overflow-hidden w-full h-full",children:s.jsx(g,{showColumns:!0,handleClickModel:d,handleError:p,children:s.jsx(x,{model:r})})})}export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,R as r,j as s,c as _,B as Q,m as P,n as ee,aB as ie,h as le,w as H,b as F,i as W,W as ce,Z as de,aC as ue,v as me,L as te,S as se,F as q,I as fe}from"./index-L7UJWCGi.js";import{d as he,e as ne,f as B,P as ae,h as G,b as $,i as pe,E as A,R as ge,j as we,k as xe,l as ve,m as X,n as Y,o as J,p as ye,q as Ne,r as be,s as Ee}from"./context-CA-MXfZ6.js";import{W as ke}from"./editor-DmJY3IbC.js";import{F as Ce,L as ze}from"./ListboxShow-nvacUoI1.js";import{S as Me}from"./SearchList-Dltx9F6k.js";import{n as Se}from"./Input-A6Hrwz1k.js";import{B as T}from"./transition-nHCHMLQ-.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./file-DYgUpg8u.js";import"./project-BlT_dmGo.js";import"./help-6Q7f7fjd.js";import"./SourceList-Diwt0dWW.js";import"./index-D-9edHVb.js";function je({title:e,titleId:t,...n},a){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))}const Le=o.forwardRef(je);function Ie(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,d]of e)if(!Object.is(d,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}function He(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},r.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function Oe(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},r.createElement("path",{d:"M0 0h32v4.2H0z"}))}function Re(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},r.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function _e(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function De(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},r.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}const D=({children:e,className:t,...n})=>r.createElement("button",{type:"button",className:G(["react-flow__controls-button",t]),...n},e);D.displayName="ControlButton";const Fe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),re=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:a=!0,fitViewOptions:d,onZoomIn:i,onZoomOut:l,onFitView:f,onInteractiveChange:h,className:p,children:c,position:N="bottom-left"})=>{const g=he(),[z,k]=o.useState(!1),{isInteractive:w,minZoomReached:x,maxZoomReached:u}=ne(Fe,Ie),{zoomIn:v,zoomOut:E,fitView:m}=B();if(o.useEffect(()=>{k(!0)},[]),!z)return null;const j=()=>{v(),i==null||i()},C=()=>{E(),l==null||l()},S=()=>{m(d),f==null||f()},y=()=>{g.setState({nodesDraggable:!w,nodesConnectable:!w,elementsSelectable:!w}),h==null||h(!w)};return r.createElement(ae,{className:G(["react-flow__controls",p]),position:N,style:e,"data-testid":"rf__controls"},t&&r.createElement(r.Fragment,null,r.createElement(D,{onClick:j,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:u},r.createElement(He,null)),r.createElement(D,{onClick:C,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:x},r.createElement(Oe,null))),n&&r.createElement(D,{className:"react-flow__controls-fitview",onClick:S,title:"fit view","aria-label":"fit view"},r.createElement(Re,null)),a&&r.createElement(D,{className:"react-flow__controls-interactive",onClick:y,title:"toggle interactivity","aria-label":"toggle interactivity"},w?r.createElement(De,null):r.createElement(_e,null)),c)};re.displayName="Controls";var $e=o.memo(re);function We(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,d]of e)if(!Object.is(d,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const a of n)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}var M;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(M||(M={}));function Ue({color:e,dimensions:t,lineWidth:n}){return r.createElement("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function Ve({color:e,radius:t}){return r.createElement("circle",{cx:t,cy:t,r:t,fill:e})}const Ae={[M.Dots]:"#91919a",[M.Lines]:"#eee",[M.Cross]:"#e2e2e2"},Te={[M.Dots]:1,[M.Lines]:1,[M.Cross]:6},Pe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function oe({id:e,variant:t=M.Dots,gap:n=20,size:a,lineWidth:d=1,offset:i=2,color:l,style:f,className:h}){const p=o.useRef(null),{transform:c,patternId:N}=ne(Pe,We),g=l||Ae[t],z=a||Te[t],k=t===M.Dots,w=t===M.Cross,x=Array.isArray(n)?n:[n,n],u=[x[0]*c[2]||1,x[1]*c[2]||1],v=z*c[2],E=w?[v,v]:u,m=k?[v/i,v/i]:[E[0]/i,E[1]/i];return r.createElement("svg",{className:G(["react-flow__background",h]),style:{...f,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background"},r.createElement("pattern",{id:N+e,x:c[0]%u[0],y:c[1]%u[1],width:u[0],height:u[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${m[0]},-${m[1]})`},k?r.createElement(Ve,{color:g,radius:v/i}):r.createElement(Ue,{dimensions:E,color:g,lineWidth:d})),r.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${N+e})`}))}oe.displayName="Background";var Be=o.memo(oe);function Ge({handleSelect:e}){const{models:t,lineage:n,mainNode:a,connectedNodes:d}=$(),[i,l]=o.useState(!1),[f,h]=o.useState([]),[p,c]=o.useState(!1);o.useEffect(()=>{h([])},[a,t,n]);function N(){l(!0)}function g(){l(!1)}function z(k){k.length<1||le(f)||H(a)||H(n)||(c(!0),setTimeout(()=>{const w=Array.from(pe(n,a));h(Object.keys(n).map(x=>{var u;return{name:x,displayName:((u=t.get(x))==null?void 0:u.displayName)??decodeURI(x),description:`${w.includes(x)?"Upstream":"Downstream"} | ${d.has(x)?"Directly":"Indirectly"} Connected`}})),c(!1)},300))}return s.jsxs("div",{className:_("w-full",i?"block absolute top-0 left-0 right-0 z-10 pr-10 bg-light dark:bg-dark @[40rem]:items-end @[40rem]:justify-end @[40rem]:flex @[40rem]:static @[40rem]:pr-0":"items-end justify-end flex"),children:[s.jsx(Q,{shape:ie.Circle,className:_("flex @[40rem]:hidden !py-1 border-transparent",i?"hidden":"flex"),variant:ee.Alternative,size:P.sm,"aria-label":"Show search",onClick:N,children:s.jsx(Le,{className:"w-3 h-3 text-primary-500"})}),s.jsx(Me,{list:f,placeholder:"Find",searchBy:"displayName",displayBy:"displayName",direction:"top",descriptionBy:"description",showIndex:!1,size:P.sm,onSelect:e,isLoading:p,className:_("w-full @sm:min-w-[12rem] @[40rem]:flex",i?"flex max-w-none":"hidden max-w-[20rem]"),isFullWidth:!0,onInput:z}),s.jsx("button",{className:_("flex @[40rem]:hidden bg-none border-none px-2 py-1 absolute right-0 top-0",i?"flex":"hidden"),"aria-label":"Hide search",onClick:g,children:s.jsx(Ce,{className:"w-6 h-6 text-primary-500"})})]})}function K({nodes:e=[]}){const{setCenter:t}=B(),{activeNodes:n,models:a,mainNode:d,nodesMap:i,selectedNodes:l,setSelectedNodes:f,withImpacted:h,connectedNodes:p,lineageCache:c,setActiveEdges:N,setConnections:g,setLineage:z,setLineageCache:k}=$(),w=H(d)?void 0:a.get(d),x=n.size>0?n.size:p.size,u=l.size,v=p.size-1,E=e.filter(y=>y.hidden).length,m=e.filter(y=>F(y.hidden)&&(y.data.type===A.external||y.data.type===A.seed)).length,j=e.filter(y=>F(y.hidden)&&y.data.type===A.cte).length,C=x>0&&x!==v+1;function S(){if(H(d))return;const y=i[d];H(y)||setTimeout(()=>{t(y.position.x,y.position.y,{zoom:.5,duration:0})},200)}return s.jsxs(s.Fragment,{children:[W(w)&&s.jsx("a",{className:"mr-2 w-full whitespace-nowrap text-ellipsis overflow-hidden @lg:block font-bold text-neutral-600 dark:text-neutral-400 cursor-pointer hover:underline",onClick:S,children:ce(w.displayName,50,25)}),s.jsxs("span",{className:"bg-neutral-5 px-2 py-0.5 flex rounded-full mr-2",children:[s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"All:"})," ",e.length]}),E>0&&s.jsxs("span",{className:"whitespace-nowrap block mr-2",children:[s.jsx("b",{children:"Hidden:"})," ",E]}),u>0&&s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"Selected:"})," ",u]}),C&&s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"Active:"})," ",x]}),(C||u>0||W(c))&&s.jsx(Q,{size:P.xs,variant:ee.Neutral,format:de.Ghost,className:"!m-0 px-1",onClick:()=>{N(new Map),g(new Map),f(new Set),W(c)&&(z(c),k(void 0))},children:"Reset"})]}),m>0&&s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"Sources"}),": ",m]}),F(C)&&h&&u===0&&v>0&&s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"Upstream/Downstream:"})," ",v]}),j>0&&s.jsxs("span",{className:"mr-2 whitespace-nowrap block",children:[s.jsx("b",{children:"CTEs:"})," ",j]})]})}const Ze=30;function ct({model:e,highlightedNodes:t}){const{setActiveNodes:n,setActiveEdges:a,setConnections:d,setLineage:i,handleError:l,setSelectedNodes:f,setMainNode:h,setWithColumns:p,setHighlightedNodes:c,setNodeConnections:N,setLineageCache:g,setUnknownModels:z,models:k,unknownModels:w}=$(),{refetch:x,isFetching:u,cancel:v}=ue(e.name),{isFetching:E}=me(),[m,j]=o.useState(!1),[C,S]=o.useState(void 0);o.useEffect(()=>{const b=ke();return b.addEventListener("message",y),x().then(({data:L})=>{S(L),!H(L)&&(j(!0),b.postMessage({topic:"lineage",payload:{currentLineage:{},newLineage:L,mainNode:e.fqn}}))}).catch(L=>{l==null||l(L)}).finally(()=>{n(new Set),a(new Map),d(new Map),f(new Set),g(void 0),h(e.fqn)}),()=>{v==null||v(),b.removeEventListener("message",y),b.terminate(),i({}),N({}),h(void 0),c({})}},[e.name,e.hash]),o.useEffect(()=>{Object.keys(C??{}).forEach(b=>{b=encodeURI(b),F(k.has(b))&&F(w.has(b))&&w.add(b)}),z(new Set(w))},[C,k]),o.useEffect(()=>{c(t??{})},[t]);function y(b){var L;b.data.topic==="lineage"&&(j(!1),N(b.data.payload.nodesConnections),i(b.data.payload.lineage),Object.values(((L=b.data.payload)==null?void 0:L.lineage)??{}).length>Ze&&p(!1)),b.data.topic==="error"&&(l==null||l(b.data.error),j(!1))}const O=u||E||m;return s.jsxs("div",{className:"relative h-full w-full overflow-hidden",children:[O&&s.jsxs("div",{className:"absolute top-0 left-0 z-10 flex justify-center items-center w-full h-full",children:[s.jsx("span",{className:"absolute w-full h-full z-10 bg-transparent-20 backdrop-blur-lg"}),s.jsxs(te,{className:"inline-block z-10",children:[s.jsx(se,{className:"w-3 h-3 border border-neutral-10 mr-4"}),s.jsx("h3",{className:"text-md whitespace-nowrap",children:O?"Loading Model's Lineage...":"Merging Model's..."})]})]}),s.jsx(ge,{children:s.jsx(qe,{})})]})}function qe(){const{withColumns:e,lineage:t,mainNode:n,selectedEdges:a,selectedNodes:d,withConnected:i,withImpacted:l,withSecondary:f,hasBackground:h,activeEdges:p,connectedNodes:c,connections:N,nodesMap:g,showControls:z,handleError:k,setActiveNodes:w}=$(),{setCenter:x}=B(),[u,v]=o.useState(!1),E=o.useMemo(()=>({model:we}),[]),m=o.useMemo(()=>xe(t),[t]),j=o.useMemo(()=>ve(t),[t]),[C,S]=o.useState([]),[y,O]=o.useState([]);o.useEffect(()=>{if(q(m)||H(n))return;v(!0);const I=X(m,p,a,g),U=Y(Object.values(g),I,n,c,d,N,i,l,f),V=J(m,N,p,I,a,d,c,i,l,f),Z=ye({nodesMap:g,nodes:U,edges:V});return Z.create().then(R=>{O(R.edges),S(R.nodes)}).catch(R=>{k==null||k(R),O([]),S([])}).finally(()=>{const R=H(n)?void 0:g[n];W(R)&&x(R.position.x,R.position.y,{zoom:.5,duration:0}),setTimeout(()=>{v(!1)},100)}),()=>{Z.terminate(),O([]),S([])}},[p,g,j]),o.useEffect(()=>{if(H(n)||q(C))return;const I=X(m,p,a,g),U=Y(C,I,n,c,d,N,i,l,f),V=J(m,N,p,I,a,d,c,i,l,f);O(V),S(U),w(I)},[N,g,m,p,d,a,c,i,l,f,e,n]);function b(I){S(Ee(I,C))}function L(I){O(be(I,y))}return s.jsxs(s.Fragment,{children:[u&&s.jsxs("div",{className:"absolute top-0 left-0 z-10 flex justify-center items-center w-full h-full",children:[s.jsx("span",{className:"absolute w-full h-full z-10 bg-transparent-20 backdrop-blur-lg"}),s.jsxs(te,{className:"inline-block z-10",children:[s.jsx(se,{className:"w-3 h-3 border border-neutral-10 mr-4"}),s.jsx("h3",{className:"text-md whitespace-nowrap",children:"Building Lineage..."})]})]}),s.jsxs(Ne,{nodes:C,edges:y,nodeTypes:E,onNodesChange:b,onEdgesChange:L,nodeOrigin:[.5,.5],minZoom:.05,maxZoom:1.5,snapGrid:[16,16],snapToGrid:!0,children:[z&&s.jsxs(ae,{position:"top-right",className:"bg-theme !m-0 w-full !z-10",children:[s.jsx(Xe,{nodes:C}),s.jsx(fe,{})]}),s.jsx($e,{className:"bg-light p-1 rounded-md !border-none !shadow-lg"}),s.jsx(Be,{variant:M.Cross,gap:32,size:4,className:_(h?"opacity-100 stroke-neutral-200 dark:stroke-neutral-800":"opacity-0")})]})]})}function Xe({nodes:e=[]}){const{withColumns:t,mainNode:n,selectedNodes:a,withConnected:d,withImpacted:i,withSecondary:l,hasBackground:f,activeNodes:h,highlightedNodes:p,setSelectedNodes:c,setWithColumns:N,setWithConnected:g,setWithImpacted:z,setWithSecondary:k,setHasBackground:w}=$(),x=o.useRef(null),u=o.useMemo(()=>Object.values(p??{}).flat(),[p]);function v(E){u.includes(E.name)||n===E.name||c(m=>(m.has(E.name)?m.delete(E.name):m.add(E.name),new Set(m)))}return s.jsxs("div",{className:"px-2 flex items-center text-xs text-neutral-400 @container",children:[s.jsxs("div",{className:"contents",children:[s.jsxs(T,{className:"flex @lg:hidden bg-none border-none","aria-label":"Show lineage node details",children:[s.jsxs(T.Button,{ref:x,className:"flex items-center relative w-full cursor-pointer bg-primary-10 text-xs rounded-full text-primary-500 py-1 px-3 text-center focus:outline-none focus-visible:border-accent-500 focus-visible:ring-2 focus-visible:ring-light focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-brand-300 border-1 border-transparent",children:["Details",s.jsx(Se,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]}),s.jsx(T.Panel,{className:"absolute left-2 right-2 flex-col z-50 mt-8 transform flex px-4 py-3 bg-theme-lighter shadow-xl focus:ring-2 ring-opacity-5 rounded-lg",children:s.jsx(K,{nodes:e})})]}),s.jsx("div",{className:"hidden @lg:contents w-full",children:s.jsx(K,{nodes:e})})]}),s.jsxs("div",{className:"flex w-full justify-end items-center",children:[s.jsx(Ge,{handleSelect:v}),s.jsx(ze,{options:{Background:w,Columns:h.size>0&&a.size===0?void 0:N,Connected:h.size>0?void 0:g,"Upstream/Downstream":h.size>0?void 0:z,All:h.size>0?void 0:k},value:[t&&"Columns",f&&"Background",d&&"Connected",i&&"Upstream/Downstream",l&&"All"].filter(Boolean)})]})]})}export{ct as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as B,U as M,t as $,a as d,r as h,v as F,w as m,i as x,e as L,j as s,H as b,h as T,m as E,I as z,V as K,a8 as P,O as w,F as A,b as O}from"./index-L7UJWCGi.js";import{S as R,b as k,m as C,n as I,o as H,p as U,f as D,g as G}from"./SearchList-Dltx9F6k.js";import{P as V}from"./Page-D0nUv5ck.js";import{g as W}from"./context-CA-MXfZ6.js";import{u as f}from"./project-BlT_dmGo.js";import"./Input-A6Hrwz1k.js";import"./help-6Q7f7fjd.js";import"./transition-nHCHMLQ-.js";import"./SplitPane-B-vlCkrS.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./editor-DmJY3IbC.js";import"./file-DYgUpg8u.js";import"./SourceList-Diwt0dWW.js";import"./index-D-9edHVb.js";function ne({route:g=L.Home}){const{pathname:j}=B(),{modelName:i}=M(),u=$(),l=d(e=>e.models),r=d(e=>e.lastSelectedModel),N=d(e=>e.setLastSelectedModel),p=f(e=>e.files),S=f(e=>e.setSelectedFile),n=h.useMemo(()=>Array.from(new Set(l.values())),[l]),{isFetching:c}=F(),t=`${g}/models`,a=m(i)||i===(r==null?void 0:r.name)?r:l.get(encodeURI(i));h.useEffect(()=>{if(m(a))return;const e=p.get(a.path);x(e)&&S(e),N(a),u(`${t}/${a.name}`,{replace:!0})},[p,a,t]);const y=m(a)&&x(i)&&O(c);return s.jsx(V,{sidebar:A(n)?void 0:s.jsx(k,{"update-selector":"tbk-model-name",children:s.jsx(C,{selectable:!0,onChange:e=>u(e.detail.value),className:"pt-3 px-2",children:Object.entries(I.categorize(n)).map(([e,v])=>s.jsx(H,{headline:e,open:!0,children:v.map(o=>s.jsx(U,{size:"xs","hide-icon":!0,active:j===`${t}/${o.name}`,value:`${t}/${o.name}`,"search-value":o.displayName,compact:!0,children:s.jsx(D,{"hide-schema":!0,"hide-catalog":!0,"hide-tooltip":!0,text:o.displayName,children:s.jsx(G,{size:"2xs",slot:"after",children:W(o.type)})})},o.name))},e))})}),content:s.jsx(b.Page,{children:s.jsxs("div",{className:"flex flex-col w-full h-full overflow-hidden",children:[T(n)&&s.jsx(R,{list:n,size:E.lg,searchBy:"index",displayBy:"displayName",to:e=>`${t}/${e.name}`,direction:"top",className:"p-2",isFullWidth:!0,disabled:c}),s.jsx(z,{}),y?s.jsx(K,{link:t,message:"Go Back",description:`Model "${i}" not found.`}):c?s.jsx(P,{children:"Loading Model page..."}):s.jsx(w,{})]})})})}export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var en=Object.defineProperty;var tn=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>tn(e,typeof t!="symbol"?t+"":t,n);import{r as s,j as o,N as nn,c as _,b as V,d as Lt,a as E,e as Y,R as C,f as Qe,g as Le,h as le,k as it,l as ct,B as et,m as St,n as tt,o as $t,L as rn,S as nt,p as an,q as sn,s as on,t as Dt,v as Ot,w as S,x as ln,i as $,y as cn,z as un,A as dn,C as qe,D as fn,F as mn,G as Et,H as hn,I as yt,O as pn}from"./index-L7UJWCGi.js";import{R as vn}from"./ReportErrors-D88IZz3n.js";import{u as y,M as gn,a as rt,E as ce}from"./plan-Cdj5QED6.js";import{G as wn,w as xn,E as B,P as jt,S as bn}from"./SelectEnvironment-CZAVUJhY.js";import{o as U,U as de,y as fe,l as Ht,n as Bt,a as En,u as be,s as Te,O as Me,M as ue,p as yn,b as Ct,c as kt,C as me,d as jn,e as ne,f as Zt,E as It,t as zt,N as Cn,g as kn,h as _t,i as ut,I as Ee,j as Rn,k as Fe,m as An,q as Nn,r as Pn,v as at,w as st,x as Rt,z as Tn,A as Fn,B as At,D as ot}from"./transition-nHCHMLQ-.js";import{F as Mn}from"./ChevronRightIcon-CXKkTIzW.js";import{u as X,M as Ue}from"./project-BlT_dmGo.js";import{M as Nt}from"./file-DYgUpg8u.js";import{u as ee,c as Ln}from"./editor-DmJY3IbC.js";import{EnumFileExplorerChange as Ge}from"./context-Dvup3XDX.js";import"./PlusCircleIcon-C2xHHnL-.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-B-vlCkrS.js";import"./context-CA-MXfZ6.js";import"./Input-A6Hrwz1k.js";import"./help-6Q7f7fjd.js";import"./SourceList-Diwt0dWW.js";import"./index-D-9edHVb.js";import"./ModelLineage-B6geDuI6.js";import"./ListboxShow-nvacUoI1.js";import"./SearchList-Dltx9F6k.js";import"./ChevronDownIcon-BqleRn_G.js";function Sn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z",clipRule:"evenodd"}))}const $n=s.forwardRef(Sn);function Dn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))}const On=s.forwardRef(Dn);function Hn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M3 3.5A1.5 1.5 0 0 1 4.5 2h6.879a1.5 1.5 0 0 1 1.06.44l4.122 4.12A1.5 1.5 0 0 1 17 7.622V16.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 16.5v-13Zm10.857 5.691a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 0 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Bn=s.forwardRef(Hn);function Zn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))}const In=s.forwardRef(Zn);function zn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const _n=s.forwardRef(zn);function Vn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M3.75 3A1.75 1.75 0 0 0 2 4.75v3.26a3.235 3.235 0 0 1 1.75-.51h12.5c.644 0 1.245.188 1.75.51V6.75A1.75 1.75 0 0 0 16.25 5h-4.836a.25.25 0 0 1-.177-.073L9.823 3.513A1.75 1.75 0 0 0 8.586 3H3.75ZM3.75 9A1.75 1.75 0 0 0 2 10.75v4.5c0 .966.784 1.75 1.75 1.75h12.5A1.75 1.75 0 0 0 18 15.25v-4.5A1.75 1.75 0 0 0 16.25 9H3.75Z"}))}const Wn=s.forwardRef(Vn);function Yn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const Vt=s.forwardRef(Yn);function qn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M9.661 2.237a.531.531 0 0 1 .678 0 11.947 11.947 0 0 0 7.078 2.749.5.5 0 0 1 .479.425c.069.52.104 1.05.104 1.59 0 5.162-3.26 9.563-7.834 11.256a.48.48 0 0 1-.332 0C5.26 16.564 2 12.163 2 7c0-.538.035-1.069.104-1.589a.5.5 0 0 1 .48-.425 11.947 11.947 0 0 0 7.077-2.75Zm4.196 5.954a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Un=s.forwardRef(qn);function Gn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M15.98 1.804a1 1 0 0 0-1.96 0l-.24 1.192a1 1 0 0 1-.784.785l-1.192.238a1 1 0 0 0 0 1.962l1.192.238a1 1 0 0 1 .785.785l.238 1.192a1 1 0 0 0 1.962 0l.238-1.192a1 1 0 0 1 .785-.785l1.192-.238a1 1 0 0 0 0-1.962l-1.192-.238a1 1 0 0 1-.785-.785l-.238-1.192ZM6.949 5.684a1 1 0 0 0-1.898 0l-.683 2.051a1 1 0 0 1-.633.633l-2.051.683a1 1 0 0 0 0 1.898l2.051.684a1 1 0 0 1 .633.632l.683 2.051a1 1 0 0 0 1.898 0l.683-2.051a1 1 0 0 1 .633-.633l2.051-.683a1 1 0 0 0 0-1.898l-2.051-.683a1 1 0 0 1-.633-.633L6.95 5.684ZM13.949 13.684a1 1 0 0 0-1.898 0l-.184.551a1 1 0 0 1-.632.633l-.551.183a1 1 0 0 0 0 1.898l.551.183a1 1 0 0 1 .633.633l.183.551a1 1 0 0 0 1.898 0l.184-.551a1 1 0 0 1 .632-.633l.551-.183a1 1 0 0 0 0-1.898l-.551-.184a1 1 0 0 1-.633-.632l-.183-.551Z"}))}const Pt=s.forwardRef(Gn);function Kn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M.99 5.24A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25l.01 9.5A2.25 2.25 0 0 1 16.76 17H3.26A2.267 2.267 0 0 1 1 14.74l-.01-9.5Zm8.26 9.52v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.615c0 .414.336.75.75.75h5.373a.75.75 0 0 0 .627-.74Zm1.5 0a.75.75 0 0 0 .627.74h5.373a.75.75 0 0 0 .75-.75v-.615a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625Zm6.75-3.63v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75ZM17.5 7.5v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))}const Tt=s.forwardRef(Kn);function Jn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}))}const Xn=s.forwardRef(Jn);function Qn({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const er=s.forwardRef(Qn);function tr({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const nr=s.forwardRef(tr);function rr({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const ar=s.forwardRef(rr);function sr({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"}))}const Wt=s.forwardRef(sr);function or({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const lr=s.forwardRef(or);function q({title:e,to:t,icon:n,iconActive:r,classActive:i="px-2 bg-neutral-10",disabled:l=!1,children:u,before:c,className:d}){return o.jsx(nn,{title:e,to:t,className:({isActive:v})=>_("flex items-center",l&&"opacity-50 cursor-not-allowed",v&&V(l)&&i,d),style:({isActive:v})=>v||l?{pointerEvents:"none"}:{},children:({isActive:v})=>o.jsxs("span",{className:_("flex items-center",v?"font-bold":"font-normal"),children:[c,v?r:n,u]})})}function ir({className:e}){const{errors:t}=Lt(),n=E(l=>l.models),r=E(l=>l.modules),i=Array.from(new Set(n.values())).length;return o.jsxs("div",{className:e,children:[r.hasEditor&&o.jsx(q,{title:"File Explorer",to:Y.Editor,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-primary-500 rounded-xl my-1",classActive:"bg-primary-10 text-primary-500",icon:o.jsx(ar,{className:"min-w-6 w-6"}),iconActive:o.jsx(Wn,{className:"min-w-6 w-6"})}),r.hasDataCatalog&&o.jsx(q,{title:"Data Catalog",to:Y.DataCatalog,icon:o.jsx(er,{className:"min-w-6 w-6"}),iconActive:o.jsx(In,{className:"min-w-6 w-6"}),className:"relative rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-600 dark:text-neutral-300",children:o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-primary-500 text-primary-100",children:i})}),r.hasErrors&&o.jsx(q,{title:"Errors",to:Y.Errors,className:_("relative px-2 py-1 rounded-xl my-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10",t.size>0?"text-danger-500":"text-neutral-600"),classActive:"px-2 bg-danger-10 text-danger-500",icon:o.jsx(nr,{className:"w-6"}),iconActive:o.jsx(_n,{className:"w-6"}),disabled:t.size===0,children:t.size>0&&o.jsx("span",{className:"min-w-[1rem] px-1 h-4 py-0.5 text-center text-[9px] absolute bottom-0 right-0 font-black rounded-full bg-danger-500 text-danger-100",children:t.size})}),r.hasPlans&&o.jsx(q,{title:"Plan",to:Y.Plan,className:"px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-success-500 rounded-xl my-1",classActive:"bg-success-10 text-success-500",icon:o.jsx(Wt,{className:"w-6"}),iconActive:o.jsx(Vt,{className:"w-6"})}),r.hasTests&&o.jsx(q,{title:"Tests",to:Y.Tests,icon:o.jsx(Xn,{className:"w-6"}),iconActive:o.jsx(Bn,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),r.hasAudits&&o.jsx(q,{title:"Audits",to:Y.Audits,icon:o.jsx(lr,{className:"w-6"}),iconActive:o.jsx(Un,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10"}),r.hasData&&o.jsx(q,{title:"Data",to:Y.Data,icon:o.jsx(Tt,{className:"w-6"}),iconActive:o.jsx(Tt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"}),r.hasLineage&&o.jsx(q,{title:"Lineage",to:Y.Lineage,icon:o.jsx(Pt,{className:"w-6"}),iconActive:o.jsx(Pt,{className:"w-6"}),className:"rounded-xl my-1 px-2 py-1 h-10 hover:bg-neutral-5 dark:hover:bg-neutral-10 text-neutral-500 dark:text-neutral-300"})]})}function dt(e,t){let n=s.useRef([]),r=U(e);s.useEffect(()=>{let i=[...n.current];for(let[l,u]of t.entries())if(n.current[l]!==u){let c=r(t,i);return n.current=t,c}},[r,...t])}function cr(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Q=[];cr(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Q[0]!==t.target&&(Q.unshift(t.target),Q=Q.filter(n=>n!=null&&n.isConnected),Q.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Yt(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let ur="div";var qt=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(qt||{});function dr(e,t){let n=s.useRef(null),r=fe(n,t),{initialFocus:i,containers:l,features:u=30,...c}=e;Ht()||(u=1);let d=Bt(n);hr({ownerDocument:d},!!(u&16));let v=pr({ownerDocument:d,container:n,initialFocus:i},!!(u&2));vr({ownerDocument:d,container:n,containers:l,previousActiveElement:v},!!(u&8));let w=En(),Z=U(A=>{let f=n.current;f&&(N=>N())(()=>{be(w.current,{[Te.Forwards]:()=>{Me(f,ue.First,{skipElements:[A.relatedTarget]})},[Te.Backwards]:()=>{Me(f,ue.Last,{skipElements:[A.relatedTarget]})}})})}),G=yn(),P=s.useRef(!1),R={ref:r,onKeyDown(A){A.key=="Tab"&&(P.current=!0,G.requestAnimationFrame(()=>{P.current=!1}))},onBlur(A){let f=Yt(l);n.current instanceof HTMLElement&&f.add(n.current);let N=A.relatedTarget;N instanceof HTMLElement&&N.dataset.headlessuiFocusGuard!=="true"&&(Ut(f,N)||(P.current?Me(n.current,be(w.current,{[Te.Forwards]:()=>ue.Next,[Te.Backwards]:()=>ue.Previous})|ue.WrapAround,{relativeTo:A.target}):A.target instanceof HTMLElement&&ne(A.target)))}};return C.createElement(C.Fragment,null,!!(u&4)&&C.createElement(Ct,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:Z,features:kt.Focusable}),me({ourProps:R,theirProps:c,defaultTag:ur,name:"FocusTrap"}),!!(u&4)&&C.createElement(Ct,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:Z,features:kt.Focusable}))}let fr=de(dr),ge=Object.assign(fr,{features:qt});function mr(e=!0){let t=s.useRef(Q.slice());return dt(([n],[r])=>{r===!0&&n===!1&&zt(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Q.slice())},[e,Q,t]),U(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function hr({ownerDocument:e},t){let n=mr(t);dt(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ne(n())},[t]),jn(()=>{t&&ne(n())})}function pr({ownerDocument:e,container:t,initialFocus:n},r){let i=s.useRef(null),l=Zt();return dt(()=>{if(!r)return;let u=t.current;u&&zt(()=>{if(!l.current)return;let c=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){i.current=c;return}}else if(u.contains(c)){i.current=c;return}n!=null&&n.current?ne(n.current):Me(u,ue.First)===Cn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=e==null?void 0:e.activeElement})},[r]),i}function vr({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let l=Zt();It(e==null?void 0:e.defaultView,"focus",u=>{if(!i||!l.current)return;let c=Yt(n);t.current instanceof HTMLElement&&c.add(t.current);let d=r.current;if(!d)return;let v=u.target;v&&v instanceof HTMLElement?Ut(c,v)?(r.current=v,ne(v)):(u.preventDefault(),u.stopPropagation(),ne(d)):ne(r.current)},!0)}function Ut(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function gr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const wr=typeof Object.is=="function"?Object.is:gr,{useState:xr,useEffect:br,useLayoutEffect:Er,useDebugValue:yr}=Qe;function jr(e,t,n){const r=t(),[{inst:i},l]=xr({inst:{value:r,getSnapshot:t}});return Er(()=>{i.value=r,i.getSnapshot=t,Ke(i)&&l({inst:i})},[e,r,t]),br(()=>(Ke(i)&&l({inst:i}),e(()=>{Ke(i)&&l({inst:i})})),[e]),yr(r),r}function Ke(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!wr(n,r)}catch{return!0}}function Cr(e,t,n){return t()}const kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rr=!kr,Ar=Rr?Cr:jr,Nr="useSyncExternalStore"in Qe?(e=>e.useSyncExternalStore)(Qe):Ar;function Pr(e){return Nr(e.subscribe,e.getSnapshot,e.getSnapshot)}function Tr(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...l){let u=t[i].call(n,...l);u&&(n=u,r.forEach(c=>c()))}}}function Fr(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,l=e-i;n.style(r,"paddingRight",`${l}px`)}}}function Mr(){return kn()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(l=>l()).some(l=>l.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=_t();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let l=(i=window.scrollY)!=null?i:window.pageYOffset,u=null;t.addEventListener(e,"click",c=>{if(c.target instanceof HTMLElement)try{let d=c.target.closest("a");if(!d)return;let{hash:v}=new URL(d.href),w=e.querySelector(v);w&&!r(w)&&(u=w)}catch{}},!0),t.addEventListener(e,"touchstart",c=>{if(c.target instanceof HTMLElement)if(r(c.target)){let d=c.target;for(;d.parentElement&&r(d.parentElement);)d=d.parentElement;t.style(d,"overscrollBehavior","contain")}else t.style(c.target,"touchAction","none")}),t.addEventListener(e,"touchmove",c=>{if(c.target instanceof HTMLElement)if(r(c.target)){let d=c.target;for(;d.parentElement&&d.dataset.headlessuiPortal!==""&&!(d.scrollHeight>d.clientHeight||d.scrollWidth>d.clientWidth);)d=d.parentElement;d.dataset.headlessuiPortal===""&&c.preventDefault()}else c.preventDefault()},{passive:!1}),t.add(()=>{var c;let d=(c=window.scrollY)!=null?c:window.pageYOffset;l!==d&&window.scrollTo(0,l),u&&u.isConnected&&(u.scrollIntoView({block:"nearest"}),u=null)})})}}:{}}function Lr(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Sr(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let te=Tr(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:_t(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Sr(n)},i=[Mr(),Fr(),Lr()];i.forEach(({before:l})=>l==null?void 0:l(r)),i.forEach(({after:l})=>l==null?void 0:l(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});te.subscribe(()=>{let e=te.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&te.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&te.dispatch("TEARDOWN",n)}});function $r(e,t,n){let r=Pr(te),i=e?r.get(e):void 0,l=i?i.count>0:!1;return ut(()=>{if(!(!e||!t))return te.dispatch("PUSH",e,n),()=>te.dispatch("POP",e,n)},[t,e]),l}let Je=new Map,we=new Map;function Ft(e,t=!0){ut(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function i(){var u;if(!r)return;let c=(u=we.get(r))!=null?u:1;if(c===1?we.delete(r):we.set(r,c-1),c!==1)return;let d=Je.get(r);d&&(d["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",d["aria-hidden"]),r.inert=d.inert,Je.delete(r))}let l=(n=we.get(r))!=null?n:0;return we.set(r,l+1),l!==0||(Je.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),i},[e,t])}let ft=s.createContext(()=>{});ft.displayName="StackContext";var lt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(lt||{});function Dr(){return s.useContext(ft)}function Or({children:e,onUpdate:t,type:n,element:r,enabled:i}){let l=Dr(),u=U((...c)=>{t==null||t(...c),l(...c)});return ut(()=>{let c=i===void 0||i===!0;return c&&u(0,n,r),()=>{c&&u(1,n,r)}},[u,n,r,i]),C.createElement(ft.Provider,{value:u},e)}var Hr=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Hr||{}),Br=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Br||{});let Zr={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Se=s.createContext(null);Se.displayName="DialogContext";function ye(e){let t=s.useContext(Se);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ye),n}return t}function Ir(e,t,n=()=>[document.body]){$r(e,t,r=>{var i;return{containers:[...(i=r.containers)!=null?i:[],n]}})}function zr(e,t){return be(t.type,Zr,e,t)}let _r="div",Vr=Rt.RenderStrategy|Rt.Static;function Wr(e,t){let n=Ee(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:l,initialFocus:u,role:c="dialog",__demoMode:d=!1,...v}=e,[w,Z]=s.useState(0),G=s.useRef(!1);c=function(){return c==="dialog"||c==="alertdialog"?c:(G.current||(G.current=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let P=Rn();i===void 0&&P!==null&&(i=(P&Fe.Open)===Fe.Open);let R=s.useRef(null),A=fe(R,t),f=Bt(R),N=e.hasOwnProperty("open")||P!==null,p=e.hasOwnProperty("onClose");if(!N&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!N)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let j=i?0:1,[re,$e]=s.useReducer(zr,{titleId:null,descriptionId:null,panelRef:s.createRef()}),K=U(()=>l(!1)),je=U(b=>$e({type:0,id:b})),I=Ht()?d?!1:j===0:!1,ae=w>1,Ce=s.useContext(Se)!==null,[De,ke]=An(),he={get current(){var b;return(b=re.panelRef.current)!=null?b:R.current}},{resolveContainers:pe,mainTreeNodeRef:se,MainTreeNode:Re}=Nn({portals:De,defaultContainers:[he]}),Oe=ae?"parent":"leaf",ve=P!==null?(P&Fe.Closing)===Fe.Closing:!1,He=Ce||ve?!1:I,Be=s.useCallback(()=>{var b,O;return(O=Array.from((b=f==null?void 0:f.querySelectorAll("body > *"))!=null?b:[]).find(T=>T.id==="headlessui-portal-root"?!1:T.contains(se.current)&&T instanceof HTMLElement))!=null?O:null},[se]);Ft(Be,He);let Ze=ae?!0:I,Ie=s.useCallback(()=>{var b,O;return(O=Array.from((b=f==null?void 0:f.querySelectorAll("[data-headlessui-portal]"))!=null?b:[]).find(T=>T.contains(se.current)&&T instanceof HTMLElement))!=null?O:null},[se]);Ft(Ie,Ze),Pn(pe,b=>{b.preventDefault(),K()},!(!I||ae));let ze=!(ae||j!==0);It(f==null?void 0:f.defaultView,"keydown",b=>{ze&&(b.defaultPrevented||b.key===Tn.Escape&&(b.preventDefault(),b.stopPropagation(),K()))}),Ir(f,!(ve||j!==0||Ce),pe),s.useEffect(()=>{if(j!==0||!R.current)return;let b=new ResizeObserver(O=>{for(let T of O){let z=T.target.getBoundingClientRect();z.x===0&&z.y===0&&z.width===0&&z.height===0&&K()}});return b.observe(R.current),()=>b.disconnect()},[j,R,K]);let[Ae,_e]=xn(),Ve=s.useMemo(()=>[{dialogState:j,close:K,setTitleId:je},re],[j,re,K,je]),Ne=s.useMemo(()=>({open:j===0}),[j]),Pe={ref:A,id:r,role:c,"aria-modal":j===0?!0:void 0,"aria-labelledby":re.titleId,"aria-describedby":Ae};return C.createElement(Or,{type:"Dialog",enabled:j===0,element:R,onUpdate:U((b,O)=>{O==="Dialog"&&be(b,{[lt.Add]:()=>Z(T=>T+1),[lt.Remove]:()=>Z(T=>T-1)})})},C.createElement(at,{force:!0},C.createElement(st,null,C.createElement(Se.Provider,{value:Ve},C.createElement(st.Group,{target:R},C.createElement(at,{force:!1},C.createElement(_e,{slot:Ne,name:"Dialog.Description"},C.createElement(ge,{initialFocus:u,containers:pe,features:I?be(Oe,{parent:ge.features.RestoreFocus,leaf:ge.features.All&~ge.features.FocusLock}):ge.features.None},C.createElement(ke,null,me({ourProps:Pe,theirProps:v,slot:Ne,defaultTag:_r,features:Vr,visible:j===0,name:"Dialog"}))))))))),C.createElement(Re,null))}let Yr="div";function qr(e,t){let n=Ee(),{id:r=`headlessui-dialog-overlay-${n}`,...i}=e,[{dialogState:l,close:u}]=ye("Dialog.Overlay"),c=fe(t),d=U(w=>{if(w.target===w.currentTarget){if(Fn(w.currentTarget))return w.preventDefault();w.preventDefault(),w.stopPropagation(),u()}}),v=s.useMemo(()=>({open:l===0}),[l]);return me({ourProps:{ref:c,id:r,"aria-hidden":!0,onClick:d},theirProps:i,slot:v,defaultTag:Yr,name:"Dialog.Overlay"})}let Ur="div";function Gr(e,t){let n=Ee(),{id:r=`headlessui-dialog-backdrop-${n}`,...i}=e,[{dialogState:l},u]=ye("Dialog.Backdrop"),c=fe(t);s.useEffect(()=>{if(u.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[u.panelRef]);let d=s.useMemo(()=>({open:l===0}),[l]);return C.createElement(at,{force:!0},C.createElement(st,null,me({ourProps:{ref:c,id:r,"aria-hidden":!0},theirProps:i,slot:d,defaultTag:Ur,name:"Dialog.Backdrop"})))}let Kr="div";function Jr(e,t){let n=Ee(),{id:r=`headlessui-dialog-panel-${n}`,...i}=e,[{dialogState:l},u]=ye("Dialog.Panel"),c=fe(t,u.panelRef),d=s.useMemo(()=>({open:l===0}),[l]),v=U(w=>{w.stopPropagation()});return me({ourProps:{ref:c,id:r,onClick:v},theirProps:i,slot:d,defaultTag:Kr,name:"Dialog.Panel"})}let Xr="h2";function Qr(e,t){let n=Ee(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:l,setTitleId:u}]=ye("Dialog.Title"),c=fe(t);s.useEffect(()=>(u(r),()=>u(null)),[r,u]);let d=s.useMemo(()=>({open:l===0}),[l]);return me({ourProps:{ref:c,id:r},theirProps:i,slot:d,defaultTag:Xr,name:"Dialog.Title"})}let ea=de(Wr),ta=de(Gr),na=de(Jr),ra=de(qr),aa=de(Qr),Gt=Object.assign(ea,{Backdrop:ta,Panel:na,Overlay:ra,Title:aa,Description:wn});function ie({headline:e,type:t,changes:n,className:r}){const[i,l]=s.useState(!1);return o.jsx(At,{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},className:"relative flex",children:()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:_("transition-all flex min-w-[1rem] h-4 text-center mx-0.5 px-1 rounded-full text-[10px] font-black text-neutral-100 cursor-default border border-inherit",t===B.Add&&"bg-success-500 border-success-500",t===B.Remove&&"bg-danger-500 border-danger-500",t===B.Direct&&"bg-secondary-500 border-secondary-500",t===B.Indirect&&"bg-warning-500 border-warning-500",t===B.Metadata&&"bg-neutral-400 border-neutral-400",t===B.Default&&"bg-neutral-600 border-neutral-600",r),children:n.length}),o.jsx(ot,{show:i,as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:o.jsx(At.Panel,{className:"absolute top-6 right-0 z-10 transform flex p-2 bg-theme-lighter shadow-xl focus:ring-2 ring-opacity-5 rounded-lg ",children:o.jsx(jt,{headline:e,type:t,className:"w-full h-full max-w-[50vw] max-h-[40vh] overflow-hidden overflow-y-auto hover:scrollbar scrollbar--vertical",children:o.jsx(jt.Default,{type:t,changes:n})})})})]})})}function sa(){const e=y(i=>i.planOverview),[t,n]=s.useState(e);return s.useEffect(()=>{V(e.isEmpty)&&e.isFinished&&n(new gn(e))},[e]),(V(e.isLatest)||e.isFetching)&&t.hasUpdates?o.jsxs("span",{className:"flex group items-center bg-neutral-5 dark:bg-neutral-20 px-1 py-1 rounded-full",children:[(Le(t.hasChanges)||Le(t.hasBackfills))&&o.jsx(Mt,{className:"mr-2",children:"Changes"}),le(t.added)&&o.jsx(ie,{headline:"Added",type:B.Add,changes:t.added,className:"-mr-2 group-hover:mr-0 z-[5]"}),le(t.direct)&&o.jsx(ie,{headline:"Directly Modified",type:B.Direct,changes:t.direct,className:"-mr-2 group-hover:mr-0 z-[4]"}),le(t.indirect)&&o.jsx(ie,{headline:"Indirectly Modified",type:B.Indirect,changes:t.indirect,className:"-mr-2 group-hover:mr-0 z-[3]"}),le(t.metadata)&&o.jsx(ie,{headline:"Metadata",type:B.Metadata,changes:t.metadata,className:"-mr-2 group-hover:mr-0 z-[2]"}),le(t.removed)&&o.jsx(ie,{headline:"Removed",type:B.Remove,changes:t.removed,className:"-mr-2 group-hover:mr-0 z-[1]"}),le(t.backfills)?o.jsx(ie,{headline:"Backfills",type:B.Default,changes:t.backfills,className:"ml-4 group-hover:ml-2 z-[6]"}):o.jsx("div",{className:"ml-2 group-hover:ml-2 z-[6]"})]}):o.jsx(Mt,{className:"pr-2 pl-0.5 py-1 rounded-full bg-neutral-5 dark:bg-neutral-20 text-neutral-500 dark:text-neutral-300",children:"No Changes"})}function Mt({className:e,children:t}){const n=E(d=>d.environment),r=E(d=>d.addRemoteEnvironments),i=y(d=>d.planAction),{refetch:l}=it(),{refetch:u}=ct(n.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});function c(d){const{environments:v,default_target_environment:w,pinned_environments:Z}=d??{};$t(v)&&r(Object.values(v),w,Z)}return o.jsxs("p",{className:_("flex items-center text-xs text-neutral-600 dark:text-neutral-300 font-bold text-center whitespace-nowrap",e),children:[o.jsx(et,{className:"w-5 h-5 !p-0 !m-0 !ml-0.5 !mr-1 border-none !rounded-full bg-neutral-10 dark:bg-neutral-20",variant:tt.Info,size:St.sm,disabled:i.isProcessing,onClick:d=>{d.stopPropagation(),l().then(({data:v})=>{u(),c(v)})},children:o.jsx($n,{className:"text-neutral-500 dark:text-neutral-300 w-4 h-4"})}),t]})}function Kt({children:e}){return o.jsxs(rn,{className:"inline-block",children:[o.jsx(nt,{className:"w-3 h-3 border border-neutral-10 mr-2"}),o.jsx("span",{className:"inline-block text-xs whitespace-nowrap",children:e})]})}let Xe;function oa(){const e=E(p=>p.modules),t=E(p=>p.environment),n=E(p=>p.models),r=y(p=>p.planAction),i=y(p=>p.planApply),l=y(p=>p.planOverview),u=y(p=>p.planCancel),c=y(p=>p.setPlanApply),d=y(p=>p.setPlanOverview),v=y(p=>p.setPlanCancel),w=y(p=>p.setPlanAction),Z=y(p=>p.resetPlanTrackers),G=y(p=>p.clearPlanApply),{isFetching:P}=an(t.name),{isFetching:R}=sn(),{isFetching:A}=it(),{refetch:f,isFetching:N}=ct(t.name,{planOptions:{skip_tests:!0,include_unmodified:!0}});return s.useEffect(()=>{n.size>0&&V(r.isProcessing)&&V(r.isRunningTask)&&(Z(),G(),f())},[n,t]),s.useEffect(()=>{N&&(l.isFetching=!0,d(l)),P&&(i.isFetching=!0,c(i)),R&&(u.isFetching=!0,v(u))},[N,P,R]),s.useEffect(()=>{clearTimeout(Xe);const p=rt.getPlanAction({planOverview:l,planApply:i,planCancel:u});p===ce.Done&&r.isRunningTask||p===r.value||(Xe=setTimeout(()=>{w(new rt({value:p})),Xe=void 0},on([ce.Running,ce.RunningTask,ce.Cancelling,ce.Applying],p)?0:500))},[l,i,u]),o.jsx("div",{className:"min-h-8 max-h-8 flex w-full items-center justify-end text-neutral-500",children:A?o.jsx(Kt,{children:"Loading Environments..."}):o.jsxs(o.Fragment,{children:[V(e.hasOnlyPlans)&&V(e.hasOnlyPlansAndErrors)&&o.jsx(q,{title:r.isProcessing?r.displayStatus(l):"Plan",to:Y.Plan,icon:r.isProcessing?o.jsx(nt,{variant:tt.Success,className:"w-3 py-1"}):o.jsx(Wt,{className:_("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),iconActive:r.isProcessing?o.jsx(nt,{variant:tt.Success,className:"w-3 py-1"}):o.jsx(Vt,{className:_("w-5",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100")}),before:o.jsx("p",{className:_("block mx-1 text-xs font-bold whitespace-nowrap",l.isFailed?"text-danger-500 dark:text-danger-100":"text-success-100"),children:r.isProcessing?r.displayStatus(l):"Plan"}),className:_("px-2 rounded-full py-0.5 mr-1",l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500"),classActive:_(l.isFailed?"bg-danger-10 dark:bg-danger-500":"bg-success-500")}),o.jsx("div",{className:"flex justify-center items-center min-w-[6rem] max-w-full",children:o.jsx(bn,{className:"border-none mx-2 w-full",size:St.sm,showAddEnvironment:!0,disabled:N||r.isProcessing||t.isInitialProd})}),o.jsx(sa,{})]})})}function la(){const e=Dt();return o.jsxs("div",{className:"flex",children:[o.jsx("button",{onClick:()=>e(-1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx(On,{className:"min-w-4 h-4"})}),o.jsx("button",{onClick:()=>e(1),className:"inline-block text-neutral-700 dark:text-neutral-300 text-xs hover:bg-neutral-5 dark:hover:bg-neutral-10 px-1 py-1 rounded-full",children:o.jsx(Mn,{className:"min-w-4 h-4"})})]})}function ia(){const e=E(n=>n.modules),{isFetching:t}=Ot();return o.jsxs("div",{className:_("relative min-w-[10rem] px-2 min-h-[2rem] max-h-[2rem] w-full flex items-center",e.showHistoryNavigation?"justify-between":"justify-end",t&&"overflow-hidden"),children:[e.showHistoryNavigation&&o.jsx(la,{}),t&&o.jsx("div",{className:"absolute w-full h-full flex justify-center items-center z-10 bg-transparent-20 backdrop-blur-lg",children:o.jsx(Kt,{children:"Loading Models..."})}),e.hasPlans&&o.jsx(oa,{}),e.hasErrors&&o.jsx(vn,{})]})}function ca({show:e,children:t,afterLeave:n,onClose:r=()=>{}}){return o.jsx(ot,{appear:!0,show:e,as:s.Fragment,afterLeave:n,children:o.jsxs(Gt,{as:"div",className:"relative z-50",onClose:r,children:[o.jsx("div",{className:"fixed inset-0 bg-overlay opacity-90"}),o.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:o.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:o.jsx(ot.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:t})})})]})})}function D({show:e,children:t,onClose:n,afterLeave:r}){return o.jsx(ca,{show:e,onClose:n,afterLeave:r,children:o.jsx(Gt.Panel,{className:"min-w-[20rem] max-w-[50rem] transform rounded-xl bg-theme text-left align-middle shadow-xl transition-all overflow-hidden",children:t})})}function ua({children:e}){return o.jsx("div",{className:"py-4 px-5 m-2",children:e})}function da({children:e}){return o.jsx("h2",{className:"font-bold text-xl mb-2",children:e})}function fa({children:e}){return o.jsx("h4",{className:"font-bold",children:e})}function ma({children:e}){return o.jsx("p",{className:"text-sm",children:e})}function ha({children:e}){return o.jsx("div",{className:"flex justify-end items-center py-3 px-3",children:e})}function pa({details:e}){return o.jsx("ul",{className:"my-2 p-4 bg-warning-10 rounded-md max-h-[20vh] overflow-y-auto hover:scrollbar scrollbar--vertical",children:e.map(t=>o.jsx("li",{className:"text-sm",children:t},t))})}D.Headline=da;D.Tagline=fa;D.Description=ma;D.Actions=ha;D.Main=ua;D.Details=pa;const va=2e4,ga=3e3;class wa{constructor(t,n){oe(this,"channels",new Map);oe(this,"eventSource");oe(this,"timerId");oe(this,"source");oe(this,"delay",va);this.source=t,this.delay=n??this.delay,this.setEventSource()}listen(t){t.addEventListener("error",n=>{this.reconnect(ga)}),t.addEventListener("ping",n=>{this.reconnect(this.delay)})}cleanup(){var t;this.channels.forEach((n,r)=>{var i;$(n)&&((i=this.eventSource)==null||i.removeEventListener(r,n))}),(t=this.eventSource)==null||t.close(),this.eventSource=void 0}resubscribe(){this.channels.forEach((t,n)=>{var r;$(t)&&((r=this.eventSource)==null||r.addEventListener(n,t))})}reconnect(t){clearTimeout(this.timerId),this.timerId=setTimeout(()=>{console.log(`Reconnecting Event Source ${this.source}`),this.cleanup(),this.setEventSource(),this.resubscribe()},t)}getEventSource(){return new EventSource(this.source,{withCredentials:!0})}setEventSource(){this.eventSource=this.getEventSource(),this.listen(this.eventSource)}addChannel(t,n){var i;const r=this.getChannelHandler(t,n);(i=this.eventSource)==null||i.addEventListener(t,r),this.channels.set(t,r)}removeChannel(t){var r;const n=this.getChannel(t);$(n)&&((r=this.eventSource)==null||r.removeEventListener(t,n),this.channels.delete(t))}hasChannel(t){return $(this.getChannel(t))}getChannel(t){return this.channels.get(t)}getChannelHandler(t,n){return r=>{if(this.reconnect(this.delay),!(S(t)||S(n)||S(r.data)))try{n(JSON.parse(r.data))}catch(i){console.warn(i)}}}}let xe;function xa(){return S(xe)&&(xe=new wa(ln("/api/events"))),(e,t)=>({subscribe(){$(e)&&$(t)&&V(xe.hasChannel(e))&&xe.addChannel(e,t)},unsubscribe(){xe.removeChannel(e)}})}function _a({content:e}){const t=cn(),n=Dt(),{removeError:r,addError:i}=Lt(),l=E(a=>a.modules),u=E(a=>a.environment),c=E(a=>a.environments),d=E(a=>a.showConfirmation),v=E(a=>a.confirmations),w=E(a=>a.setShowConfirmation),Z=E(a=>a.removeConfirmation),G=E(a=>a.setModels),P=E(a=>a.addRemoteEnvironments),R=E(a=>a.addLocalEnvironment),A=E(a=>a.setEnvironment);let f;V(l.hasOnlyDataCatalog)&&(f=xa());const N=y(a=>a.planApply),p=y(a=>a.planOverview),j=y(a=>a.planCancel),re=y(a=>a.setPlanApply),$e=y(a=>a.setPlanOverview),K=y(a=>a.setPlanCancel),je=y(a=>a.setPlanAction),I=X(a=>a.files),ae=X(a=>a.selectedFile),Ce=X(a=>a.setProject),De=X(a=>a.setFiles),ke=X(a=>a.refreshFiles),he=X(a=>a.findArtifactByPath),pe=X(a=>a.setTests),se=X(a=>a.setActiveRange),Re=ee(a=>a.storedTabs),Oe=ee(a=>a.storedTabId),ve=ee(a=>a.selectTab),He=ee(a=>a.createTab),Be=ee(a=>a.addTabs),Ze=ee(a=>a.closeTab),Ie=ee(a=>a.inTabs),mt=E(a=>a.setVersion),{refetch:ze,cancel:ht}=un(),{refetch:Ae,cancel:_e}=Ot(),{refetch:Ve,cancel:Ne}=dn(),{refetch:Pe,cancel:b}=it(),{refetch:O,cancel:T}=ct(u.name,{planOptions:{skip_tests:!0,include_unmodified:!0}}),z=s.useCallback(function(m){const x=Array.from(c).find(g=>g.name===m);S(x)?R(m):A(x)},[c]),pt=s.useCallback(function(m){p.update(m),m.environment!==u.name&&z(m.environment),$e(p)},[z,u]),vt=s.useCallback(function(m){var g,L;N.update(m,p),m.environment!==u.name&&z(m.environment),re(N);const x=Le((g=m.meta)==null?void 0:g.done)&&((L=m.meta)==null?void 0:L.status)!==qe.init;j.isFinished||j.isRunning||V(x)||Pe().then(({data:k})=>{O(),bt(k)})},[j,p,z,u]),gt=s.useCallback(function(m){var x,g;j.update(m),m.environment!==u.name&&z(m.environment),K(j),!(fn((x=m.meta)==null?void 0:x.done)||((g=m.meta)==null?void 0:g.status)===qe.init)&&O()},[z,u]),wt=s.useCallback(function({changes:m,directories:x}){var g,L;m.sort(k=>k.change===Ge.Deleted?-1:1),m.forEach(({change:k,path:J,file:F})=>{var M,W;if(k===Ge.Modified){const H=I.get(J);if(S(H)||S(F))return;H.update(F)}if(k===Ge.Deleted){const H=he(J)??I.get(J);if(S(H))return;H instanceof Ue&&((M=H.parent)==null||M.removeDirectory(H)),H instanceof Nt&&((W=H.parent)==null||W.removeFile(H),Ie(H)&&Ze(H))}});for(const k in x){const J=x[k],F=he(k);S(F)||((g=J.directories)==null||g.forEach(M=>{const W=he(M.path);S(W)&&F.addDirectory(new Ue(M,F))}),(L=J.files)==null||L.forEach(M=>{const W=I.get(M.path);S(W)&&F.addFile(new Nt(M,F))}),F.directories.sort((M,W)=>M.name>W.name?1:-1),F.files.sort((M,W)=>M.name>W.name?1:-1))}ke(),se(),Ae().then(({data:k})=>We(k))},[I]),xt=s.useCallback(function(m){const x=I.get(m.path);$(x)&&(x.isFormatted=m.status===qe.success,ke())},[I]),Jt=s.useCallback(function(m){if(mn(Re))return;const x=Re.map(({id:L,content:k})=>{const J=m.find(M=>M.id===L)??Ln(L),F=He(J);return F.file.content=k??F.file.content??"",F}),g=x.find(L=>L.file.id===Oe);Be(x),$(g)&&S(ae)&&ve(g)},[ve]);s.useEffect(()=>{ze().then(({data:g})=>{mt(g==null?void 0:g.version),Le(g==null?void 0:g.has_running_task)&&je(new rt({value:ce.RunningTask}))}),Ae().then(({data:g})=>We(g));const a=f==null?void 0:f("errors",Xt),m=f==null?void 0:f("tests",Qt),x=f==null?void 0:f("models",We);return x==null||x.subscribe(),l.hasPlans&&(m==null||m.subscribe(),Pe().then(({data:g})=>bt(g))),l.hasErrors&&(a==null||a.subscribe()),l.hasFiles&&Ve().then(({data:g})=>{if(S(g))return;const L=new Ue(g),k=L.allFiles;Jt(k),De(k),Ce(L)}),()=>{ht(),_e(),x==null||x.unsubscribe(),l.hasPlans&&(b(),T()),l.hasErrors&&(a==null||a.unsubscribe()),l.hasTests&&(m==null||m.unsubscribe()),l.hasFiles&&Ne()}},[l]),s.useEffect(()=>{const a=f==null?void 0:f("plan-apply",vt);return l.hasPlans&&(a==null||a.subscribe()),()=>{l.hasPlans&&(a==null||a.unsubscribe())}},[vt,l]),s.useEffect(()=>{const a=f==null?void 0:f("plan-overview",pt);return l.hasPlans&&(a==null||a.subscribe()),()=>{l.hasPlans&&(a==null||a.unsubscribe())}},[pt,l]),s.useEffect(()=>{const a=f==null?void 0:f("plan-cancel",gt);return l.hasPlans&&(a==null||a.subscribe()),()=>{l.hasPlans&&(a==null||a.unsubscribe())}},[gt,l]),s.useEffect(()=>{const a=f==null?void 0:f("file",wt);return a==null||a.subscribe(),()=>{a==null||a.unsubscribe()}},[wt]),s.useEffect(()=>{const a=f==null?void 0:f("format-file",xt);return a==null||a.subscribe(),()=>{a==null||a.unsubscribe()}},[xt]),s.useEffect(()=>{(V(l.isEmpty)&&t.pathname===Y.Home||t.pathname==="")&&n(l.defaultNavigationRoute(),{replace:!0})},[t,l]),s.useEffect(()=>{w(v.length>0)},[v]);function We(a){$(a)&&(r(Et.Models),G(a))}function Xt(a){i(Et.General,a)}function Qt(a){pe(a)}function bt(a){const{environments:m,default_target_environment:x,pinned_environments:g}=a??{};$t(m)&&P(Object.values(m),x,g)}function Ye(a){var m;(m=a==null?void 0:a.cancel)==null||m.call(a),w(!1)}const h=v[0];return o.jsxs(hn.Page,{layout:"horizontal",children:[l.showModuleNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(ir,{className:"overflow-hidden py-1 px-2 flex flex-col items-center"}),o.jsx(yt,{orientation:"vertical"})]}),o.jsxs("div",{className:"flex flex-col overflow-hidden w-full h-full",children:[l.showNavigation&&o.jsxs(o.Fragment,{children:[o.jsx(ia,{}),o.jsx(yt,{})]}),e??o.jsx(pn,{}),o.jsxs(D,{show:d,onClose:()=>{Ye(h)},afterLeave:()=>{Z()},onKeyDown:a=>{a.key==="Escape"&&Ye(h)},children:[o.jsxs(D.Main,{children:[$(h==null?void 0:h.headline)&&o.jsx(D.Headline,{children:h==null?void 0:h.headline}),$(h==null?void 0:h.tagline)&&o.jsx(D.Tagline,{children:h==null?void 0:h.tagline}),$(h==null?void 0:h.details)&&o.jsx(D.Details,{details:h==null?void 0:h.details}),$(h==null?void 0:h.description)&&o.jsx(D.Description,{children:h==null?void 0:h.description}),h==null?void 0:h.children]}),o.jsxs(D.Actions,{children:[o.jsx(et,{className:"font-bold",size:"md",variant:"danger",onClick:a=>{var m;a.stopPropagation(),(m=h==null?void 0:h.action)==null||m.call(h),w(!1)},children:(h==null?void 0:h.yesText)??"Confirm"}),o.jsx(et,{size:"md",variant:"alternative",onClick:a=>{a.stopPropagation(),Ye(h)},children:(h==null?void 0:h.noText)??"Cancel"})]})]})]})]})}export{_a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as u,j as s,O as f,e as t,I as c,B as p,n as x,m as j}from"./index-L7UJWCGi.js";import{P as d}from"./Page-D0nUv5ck.js";import{u as h}from"./project-BlT_dmGo.js";import{S as v}from"./SourceList-Diwt0dWW.js";import{S as y}from"./SourceListItem-CjW93oYe.js";import"./SplitPane-B-vlCkrS.js";import"./file-DYgUpg8u.js";import"./Input-A6Hrwz1k.js";import"./index-D-9edHVb.js";function T(){const{pathname:a}=u(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("tests"));return s.jsx(d,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Tests,items:r,isActive:e=>`${t.Tests}/${e}`===a,listItem:({to:e,name:o,description:m,text:n,disabled:l=!1})=>s.jsx(y,{to:e,name:o,text:n,description:m,disabled:l})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:j.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{T as default};
|