(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,552898,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.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:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"}))});e.s(["f",0,n],552898)},866882,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.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:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))});e.s(["f",0,n],866882)},103545,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.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:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"}))});e.s(["f",0,n],103545)},835561,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.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:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))});e.s(["f",0,n],835561)},421072,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.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:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))});e.s(["f",0,n],421072)},308932,e=>{"use strict";var t=e.i(651681);let n={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],308932)},9848,e=>{"use strict";var t=e.i(651681);let n={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},62210,e=>{"use strict";var t=e.i(9848);e.s(["f",()=>t.f])},258990,e=>{"use strict";var t=e.i(651681);let n={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],258990)},837533,e=>{"use strict";var t=e.i(651681);let n={name:"ellipsis-vertical",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],aliases:["more-vertical"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},922366,e=>{"use strict";var t=e.i(837533);e.s(["f",()=>t.f])},526475,e=>{"use strict";var t=e.i(651681);let n={name:"expand",size:24,node:[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],526475)},721289,e=>{"use strict";var t=e.i(651681);let n={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},445482,e=>{"use strict";var t=e.i(721289);e.s(["f",()=>t.f])},63135,e=>{"use strict";var t=e.i(651681);let n={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],63135)},121514,e=>{"use strict";var t=e.i(651681);let n={name:"route",size:24,node:[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},40181,e=>{"use strict";var t=e.i(651681);let n={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],40181)},5122,e=>{"use strict";var t=e.i(651681);let n={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],5122)},293859,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(73867),a=e.i(246601),o=e.i(207298),s=e.i(16043);function l(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function c(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],i=t[n];return"function"==typeof r?`${r}`==`${i}`:l(r)&&l(i)?c(r,i):r===i})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function d(e){return"number"==typeof e}function f(e){return"string"==typeof e}function m(e){return"boolean"==typeof e}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return Math.abs(e)}function g(e){return Math.sign(e)}function v(e){return _(e).map(Number)}function b(e){return e[x(e)]}function x(e){return Math.max(0,e.length-1)}function y(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function _(e){return Object.keys(e)}function z(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function w(){let e=[],t={add:function(n,r,i,a={passive:!0}){let o;return"addEventListener"in n?(n.addEventListener(r,i,a),o=()=>n.removeEventListener(r,i,a)):(n.addListener(i),o=()=>n.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function k(e=0,t=0){let n=p(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(_(n).forEach(r=>{let i=t[r],a=n[r],o=h(i)&&h(a);t[r]=o?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=_(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>_(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(C),A=(u=[],{init:function(e,t){return(u=t.filter(({options:e})=>!1!==D.optionsAtMedia(e).active)).forEach(t=>t.init(e,D)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){u=u.filter(e=>e.destroy())}}),L=w(),H=(i={},a={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),a},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),{mergeOptions:O,optionsAtMedia:T,optionsMediaQueries:R}=D,{on:F,off:V,emit:P}=H,W=!1,I=O(S,N.globalOptions),B=O(I),q=[];function U(t,n){W||(B=T(I=O(I,t)),q=n||q,function(){let{container:t,slides:n}=B;l=(f(t)?e.querySelector(t):t)||e.children[0];let r=f(n)?l.querySelectorAll(n):n;c=[].slice.call(r||l.children)}(),o=function t(n){let r=function(e,t,n,r,i,a,o){var s,l;let c,u,h,S,N,E,C,D,A,L,H,O,T,R,{align:F,axis:V,direction:P,startIndex:W,loop:I,duration:B,dragFree:q,dragThreshold:U,inViewThreshold:G,slidesToScroll:K,skipSnaps:X,containScroll:Q,watchResize:Z,watchSlides:$,watchDrag:Y,watchFocus:J}=a,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(u="rtl"===P,S=(h="y"===V)||!u?1:-1,N=h?"top":u?"right":"left",E=h?"bottom":u?"left":"right",{scroll:h?"y":"x",cross:h?"x":"y",startEdge:N,endEdge:E,measureSize:function(e){let{height:t,width:n}=e;return h?t:n},direction:function(e){return e*S}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},eo=(s=F,l=ei,c={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return f(s)?c[s](e):s(l,e,t)}}),es=!I&&!!Q,{slideSizes:el,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return p(t[s]-e[s])}(),d=c?parseFloat(a.getComputedStyle(b(r)).getPropertyValue(`margin-${l}`)):0,f=n.map(o),m=n.map((e,t,n)=>{let r=t===x(n);return t?r?f[t]+d:n[t+1][s]-e[s]:f[t]+u}).map(p);return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}(er,et,en,n,I||!!Q,i),ef=function(e,t,n,r,i,a,o,s){let{startEdge:l,endEdge:c,direction:u}=e,f=d(n);return{groupSlides:function(e){return f?v(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?v(e).reduce((n,d,f)=>{let m=b(n)||0,h=d===x(e),g=i[l]-a[m][l],v=i[l]-a[d][c],y=r||0!==m?0:u(o),_=p(v-(!r&&h?u(s):0)-(g+y));return f&&_>t+2&&n.push(d),h&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,K,I,et,en,eu,ed),{snaps:em,snapsAligned:eh}=function(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=s(r).map(e=>b(e)[o]-e[0][a]).map(p).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-p(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(er,eo,et,en,ef),ep=-b(em)+b(ec),{snapsContained:eg,scrollContainLimit:ev}=function(e,t,n,r){let i,a,o=k(-t+e,0),s=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),s=t===x(n);return t?s||function(e,t){return 1>=p(e-t)}(r,a)?r:function(e,t){return 1>=p(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=(i=s[0],a=b(s),k(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;let{min:n,max:i}=l;return s.slice(n,i)}(),scrollContainLimit:l}}(ei,ep,eh,Q),eb=es?eg:eh,{limit:ex}=(C=eb[0],{limit:k(I?C-ep:b(eb),C)}),ey=function e(t,n,r){let{constrain:i}=k(0,t),a=t+1,o=s(n);function s(e){return r?p((a+e)%a):i(e)}function l(){return e(t,o,r)}let c={get:function(){return o},set:function(e){return o=s(e),c},add:function(e){return l().set(o+e)},clone:l};return c}(x(eb),W,I),e_=ey.clone(),ez=v(n),ew=function(e,t,n,r){let i=w(),a=1e3/60,o=null,s=0,l=0;function c(e){if(!l)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(o=null,s=0)})},destroy:function(){u(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eR),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{let m=e.settled(),h=!u.shouldConstrain(),p=d?m:m&&h,g=p&&!s.pointerDown();g&&l.stop();let v=n.get()*f+i.get()*(1-f);r.set(v),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&c.emit("settle"),p||c.emit("scroll")})(eR,e)),ek=eb[ey.get()],ej=j(ek),eM=j(ek),eS=j(ek),eN=j(ek),eE=function(e,t,n,r,i){let a=0,o=0,s=i,l=.68,c=e.get(),u=0;function d(e){return s=e,m}function f(e){return l=e,m}let m={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return s?(n.set(e),a+=t/s,a*=l,c+=a,e.add(a),i=c-u):(a=0,n.set(r),e.set(r),i=t),o=g(i),u=c,m},settled:function(){return .001>p(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return m}(ej,eS,eM,eN,B),eC=function(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>p(e)-p(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let a=i.filter(e=>g(e)===r);return a.length?l(a):b(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:u,distance:d}=function(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>p(e.diff)-p(t.diff))[0];return{index:i,distance:r}}(l),f=!e&&a(l);if(!r||f)return{index:u,distance:n};let m=n+c(t[u]-d,0);return{index:u,distance:m}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}(I,eb,ep,ex,eN),eD=function(e,t,n,r,i,a,o){function s(i){let s=i.distance,l=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}}}(ew,ey,e_,eE,eC,eN,o),eA=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ex),eL=w(),eH=(A={},L=null,H=null,O=!1,{init:function(){D=new IntersectionObserver(e=>{O||(e.forEach(e=>{A[n.indexOf(e.target)]=e}),L=null,H=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:G}),n.forEach(e=>D.observe(e))},destroy:function(){D&&D.disconnect(),O=!0},get:function(e=!0){if(e&&L)return L;if(!e&&H)return H;let t=_(A).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=A[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(L=t),e||(H=t),t}}),{slideRegistry:eO}=function(e,t,n,r,i,a){let o,{groupSlides:s}=i,{min:l,max:c}=r;return{slideRegistry:(o=s(a),1===n.length?[a]:e&&"keepSnaps"!==t?o.slice(l,c).map((e,t,n)=>{let r=t===x(n);return t?r?y(x(a)-b(n)[0]+1,b(n)[0]):e:y(b(n[0])+1)}):o)}}(es,Q,eb,ev,ef,ez),eT=function(e,t,n,r,i,a,o,s){let l={passive:!0,capture:!0},c=0;function u(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(f){s&&(a.add(document,"keydown",u,!1),t.forEach((t,u)=>{a.add(t,"focus",t=>{(m(s)||s(f,t))&&function(t){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));d(a)&&(i.useDuration(0),r.index(a,0),o.emit("slideFocus"))}(u)},l)}))}}}(e,n,eO,eD,eE,eL,o,J),eR={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:et,slideRects:en,animation:ew,axis:er,dragHandler:function(e,t,n,r,i,a,o,s,l,c,u,d,f,h,v,b,x,y){let{cross:_,direction:j}=e,M=["INPUT","SELECT","TEXTAREA"],S={passive:!1},N=w(),E=w(),C=k(50,225).constrain(h.measure(20)),D={mouse:300,touch:400},A={mouse:500,touch:600},L=v?43:25,H=!1,O=0,T=0,R=!1,F=!1,V=!1,P=!1;function W(e){if(!z(e,r)&&e.touches.length>=2)return I(e);let t=a.readPoint(e),n=a.readPoint(e,_),o=p(t-O),l=p(n-T);if(!F&&!P&&(!e.cancelable||!(F=o>l)))return I(e);let u=a.pointerMove(e);o>b&&(V=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(j(u)),e.preventDefault()}function I(e){var t;let n,r,i=u.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(v?A:D)[P?"mouse":"touch"],s=(t=j(o),n=d.add(-1*g(t)),r=u.byDistance(t,!v).distance,v||p(t)e.preventDefault(),S).add(t,"touchmove",()=>void 0,S).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",I).add(t,"contextmenu",I).add(t,"click",B,!0);function s(s){(m(y)||y(e,s))&&function(e){let s,l=z(e,r);if((P=l,V=v&&l&&!e.buttons&&H,H=p(i.get()-o.get())>=2,!l||0===e.button)&&(s=e.target.nodeName||"",!M.includes(s))){let r;R=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(o),r=P?n:t,E.add(r,"touchmove",W,S).add(r,"touchend",I).add(r,"mousemove",W,S).add(r,"mouseup",I),O=a.readPoint(e),T=a.readPoint(e,_),f.emit("pointerDown")}}(s)}},destroy:function(){N.clear(),E.clear()},pointerDown:function(){return R}}}(er,e,r,i,eN,function(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=r||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(z(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,l=t/o;return o&&!s&&p(l)>.1?l:0},readPoint:a}}(er,i),ej,ew,eD,eE,eC,ey,o,ea,q,U,X,Y),eventStore:eL,percentOfView:ea,index:ey,indexPrevious:e_,limit:ex,location:ej,offsetLocation:eS,previousLocation:eM,options:a,resizeHandler:function(e,t,n,r,i,a,o){let s,l,c=[e].concat(r),u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=f(e),u=r.map(f),s=new ResizeObserver(n=>{(m(a)||a(i,n))&&function(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(p(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(e=>s.observe(e))}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,i,n,er,Z,ee),scrollBody:eE,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=k(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",u=p(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(u/o);n.subtract(d*f),!i&&p(d)e.add(o))}}}(ep,ex,eS,[ej,eS,eM,eN]),scrollProgress:eA,scrollSnapList:eb.map(eA.get),scrollSnaps:eb,scrollTarget:eC,scrollTo:eD,slideLooper:function(e,t,n,r,i,a,o,s,l){let c=v(i),u=v(i).reverse(),d=h(m(u,o[0]),n,!1).concat(h(m(c,t-o[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function h(i,o,c){let u=a.map((e,n)=>({start:e-r[n]+.5+o,end:e+t-.5+o}));return i.map(t=>{let r=c?0:-n,i=c?n:0,a=u[t][c?"end":"start"];return{index:t,loopPoint:a,slideLocation:j(-1),translate:M(e,l[t]),target:()=>s.get()>a?r:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(c.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}(er,ei,ep,el,ec,em,eb,eS,n),slideFocus:eT,slidesHandler:(R=!1,{init:function(e){$&&(T=new MutationObserver(t=>{!R&&(m($)||$(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),o.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){T&&T.disconnect(),R=!0}}),slidesInView:eH,slideIndexes:ez,slideRegistry:eO,slidesToScroll:ef,target:eN,translate:M(er,t)};return eR}(e,l,c,E,C,n,H);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(B),R([I,...q.map(({options:e})=>e)]).forEach(e=>L.add(e,"change",G)),B.active&&(o.translate.to(o.location.get()),o.animation.init(),o.slidesInView.init(),o.slideFocus.init(Z),o.eventHandler.init(Z),o.resizeHandler.init(Z),o.slidesHandler.init(Z),o.options.loop&&o.slideLooper.loop(),l.offsetParent&&c.length&&o.dragHandler.init(Z),s=A.init(Z,q)))}function G(e,t){let n=Q();K(),U(O({startIndex:n},e),t),H.emit("reInit")}function K(){o.dragHandler.destroy(),o.eventStore.clear(),o.translate.clear(),o.slideLooper.clear(),o.resizeHandler.destroy(),o.slidesHandler.destroy(),o.slidesInView.destroy(),o.animation.destroy(),A.destroy(),L.clear()}function X(e,t,n){B.active&&!W&&(o.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),o.scrollTo.index(e,n||0))}function Q(){return o.index.get()}let Z={canScrollNext:function(){return o.index.add(1).get()!==Q()},canScrollPrev:function(){return o.index.add(-1).get()!==Q()},containerNode:function(){return l},internalEngine:function(){return o},destroy:function(){W||(W=!0,L.clear(),K(),H.emit("destroy"),H.clear())},off:V,on:F,emit:P,plugins:function(){return s},previousScrollSnap:function(){return o.indexPrevious.get()},reInit:G,rootNode:function(){return e},scrollNext:function(e){X(o.index.add(1).get(),e,-1)},scrollPrev:function(e){X(o.index.add(-1).get(),e,1)},scrollProgress:function(){return o.scrollProgress.get(o.offsetLocation.get())},scrollSnapList:function(){return o.scrollSnapList},scrollTo:X,selectedScrollSnap:Q,slideNodes:function(){return c},slidesInView:function(){return o.slidesInView.get()},slidesNotInView:function(){return o.slidesInView.get(!1)}};return U(t,n),setTimeout(()=>H.emit("init"),0),Z}function E(e={},t=[]){let n=(0,s.useRef)(e),r=(0,s.useRef)(t),[i,a]=(0,s.useState)(),[o,l]=(0,s.useState)(),d=(0,s.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,s.useEffect)(()=>{c(n.current,e)||(n.current=e,d())},[e,d]),(0,s.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=u(e),r=u(t);return n.every((e,t)=>c(e,r[t]))}(r.current,t)&&(r.current=t,d())},[t,d]),(0,s.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&o){N.globalOptions=E.globalOptions;let e=N(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[l,i]}function C(){return(C=Object.assign||function(e){for(var t=1;ttypeof window&&window.innerHeight||800],O=[-1,-1,-1],T=L({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function R(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}let F=function(e){void 0===e&&(e={});var t,n,r,i,a,o=function(){var e={};function t(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}return L({on:function(n,r){return e[n]=(e[n]||[]).concat(r),function(){return t(n,r)}},off:t,dispatch:function(t,n){t in e&&e[t].forEach(function(e){return e(n)})}})}(),s=o.on,l=o.off,c=o.dispatch,u=T,d=R(),f=!1,m=function(e){Array.isArray(e)?e.forEach(function(e){return v(e)}):v(e)},h=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?u:u=L(C({},T,u,e))},p=function(e){var t=C({event:i,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:d.isMomentum,axisDelta:[0,0,0],axisVelocity:d.axisVelocity,axisMovement:d.axisMovement,get axisMovementProjection(){return D(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);c("wheel",C({},t,{previous:a})),a=t},g=function(e,t){var n=u.preventWheelAction,r=t[0],i=t[1],a=t[2];if("boolean"==typeof n)return n;switch(n){case"x":return Math.abs(r)>=e;case"y":return Math.abs(i)>=e;case"z":return Math.abs(a)>=e;default:return!1}},v=function(e){var t,n,r,a,o=(a=function(e,t){if(!t)return e;var n=!0===t?O:t.map(function(e){return e?-1:1});return C({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*H[e.deltaMode],n=e.deltaY*H[e.deltaMode],r=(e.deltaZ||0)*H[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,r]}),u.reverseSign),C({},a,{axisDelta:a.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),s=o.axisDelta,l=o.timeStamp,c=A(s);if(e.preventDefault&&g(c,s)&&e.preventDefault(),d.isStarted?d.isMomentum&&c>Math.max(2,2*d.lastAbsDelta)&&(S(!0),j()):j(),0===c&&Object.is&&Object.is(e.deltaX,-0)){f=!0;return}i=e,d.axisMovement=D(d.axisMovement,s),d.lastAbsDelta=c,d.scrollPointsToMerge.push({axisDelta:s,timeStamp:l}),b(),p({axisDelta:s,isStart:!d.isStartPublished}),d.isStartPublished=!0,M()},b=function(){if(2===d.scrollPointsToMerge.length){var e;d.scrollPoints.unshift({axisDeltaSum:d.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(D),timeStamp:(e=d.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),y(),d.scrollPointsToMerge.length=0,d.scrollPoints.length=1,d.isMomentum||w()}else d.isStartPublished||x()},x=function(){var e;d.axisVelocity=(e=d.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/d.willEndTimeout})},y=function(){var e=d.scrollPoints,t=e[0],n=e[1];if(n&&t){var r=t.timeStamp-n.timeStamp;if(r<=0)return;var i=t.axisDeltaSum.map(function(e){return e/r}),a=i.map(function(e,t){return e/(d.axisVelocity[t]||1)});d.axisVelocity=i,d.accelerationFactors.push(a),_(r)}},_=function(e){var t=10*Math.ceil(e/10)*1.2;d.isMomentum||(t=Math.max(100,2*t)),d.willEndTimeout=Math.min(1e3,Math.round(t))},z=function(e){return 0===e||e<=.96&&e>=.6},w=function(){if(d.accelerationFactors.length>=5){if(f&&(f=!1,A(d.axisVelocity)>=.2))return void k();var e=d.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(z).length===e.length;return t||n})&&k(),d.accelerationFactors=e}},k=function(){d.isMomentum=!0},j=function(){(d=R()).isStarted=!0,d.startTime=Date.now(),a=void 0,f=!1},M=function(){clearTimeout(t),t=setTimeout(S,d.willEndTimeout)},S=function(e){void 0===e&&(e=!1),d.isStarted&&(d.isMomentum&&e?p({isEnding:!0,isMomentumCancel:!0}):p({isEnding:!0}),d.isMomentum=!1,d.isStarted=!1)},N=(n=[],L({observe:function(e){return e.addEventListener("wheel",m,{passive:!1}),n.push(e),function(){return r(e)}},unobserve:r=function(e){e.removeEventListener("wheel",m),n=n.filter(function(t){return t!==e})},disconnect:function(){n.forEach(r)}})),E=N.observe,F=N.unobserve,V=N.disconnect;return h(e),L({on:s,off:l,observe:E,unobserve:F,disconnect:V,feedWheel:m,updateOptions:h})};var V={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function P(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(r,i){var a,o,s,l=i.mergeOptions,c=i.optionsAtMedia,u=l(V,P.globalOptions);t=c(l(u,e));var d=r.internalEngine(),f=null!=(a=t.target)?a:r.containerNode().parentNode,m=null!=(o=t.forceWheelAxis)?o:d.options.axis,h=F({preventWheelAction:m,reverseSign:[!0,!0,!1]});function p(){y=("x"===m?d.containerRect.width:d.containerRect.height)/2}var g=h.observe(f),v=h.on("wheel",function(e){var r=e.axisDelta,i=r[0],a=r[1],o="x"===m?i:a,l="x"===m?a:i,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(o)>Math.abs(l))||b||e.isMomentum||_||function(e){try{s=new MouseEvent("mousedown",e.event),M(s)}catch(e){return n()}b=!0,x=0,document.documentElement.addEventListener("mousemove",k,!0),document.documentElement.addEventListener("mouseup",k,!0),document.documentElement.addEventListener("mousedown",k,!0),t.wheelDraggingClass&&f.classList.add(t.wheelDraggingClass)}(e),_&&e.isEnding&&(_=!1),b&&!function(e){var t=S(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if((x+=Math.abs(r))>y)return _=!0,z(e),!0}else x=0;return!1}(e)&&(u?z(e):M(j("mousemove",e)))}),b=!1,x=0,y=0,_=!1;function z(e){b=!1,M(j("mouseup",e)),w(),t.wheelDraggingClass&&f.classList.remove(t.wheelDraggingClass)}function w(){document.documentElement.removeEventListener("mousemove",k,!0),document.documentElement.removeEventListener("mouseup",k,!0),document.documentElement.removeEventListener("mousedown",k,!0)}function k(e){b&&e.isTrusted&&e.stopImmediatePropagation()}function j(e,t){if(m===d.options.axis){var n,r,i=t.axisMovement;n=i[0],r=i[1]}else{var a=t.axisMovement;r=a[0],n=a[1]}if(S(t).isAtBoundary){var o=Math.min(x/y,1),l=x*(n>0?-1:1)*(.25+.5*o);n+=l,r+=l}if(!d.options.skipSnaps&&!d.options.dragFree){var c=d.containerRect.width,u=d.containerRect.height;n=n<0?Math.max(n,-c):Math.min(n,c),r=r<0?Math.max(r,-u):Math.min(r,u)}return new MouseEvent(e,{clientX:s.clientX+n,clientY:s.clientY+r,screenX:s.screenX+n,screenY:s.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function M(e){r.containerNode().dispatchEvent(e)}function S(e){var t=e.axisDelta,n=t[0],i=t[1],a=r.scrollProgress(),o="x"===m?n:i;return{isAtBoundary:o<0&&!(a<1)||o>0&&!(a>0),primaryAxisDelta:o}}p(),r.on("resize",p),n=function(){g(),v(),r.off("resize",p),w()}},destroy:function(){return n()}}}P.globalOptions=void 0;var W=e.i(196991),I=e.i(288265),B=e.i(139697);let q=(0,o.f)("flex",{variants:{orientation:{horizontal:"-ml-4",vertical:"-mt-4 flex-col"}},defaultVariants:{orientation:"horizontal"}}),U=(0,o.f)("min-w-0 shrink-0 grow-0 basis-full",{variants:{orientation:{horizontal:"pl-4",vertical:"pt-4"}},defaultVariants:{orientation:"horizontal"}}),G=(0,s.createContext)(null);function K(){let e=(0,s.useContext)(G);if(!e)throw Error("useCarousel must be used within a ");return e}let X=e=>{let i,a,o,l,c,u,d,f,m,h,p,g,v,b,x,y,_,z,w,k,j,M,S,N=(0,n.c)(54);N[0]!==e?({orientation:m,opts:l,setApi:f,plugins:u,onScrollStatusChange:o,className:a,children:i,ref:d,...c}=e,N[0]=e,N[1]=i,N[2]=a,N[3]=o,N[4]=l,N[5]=c,N[6]=u,N[7]=d,N[8]=f,N[9]=m):(i=N[1],a=N[2],o=N[3],l=N[4],c=N[5],u=N[6],d=N[7],f=N[8],m=N[9]);let C=void 0===m?"horizontal":m;N[10]!==l||N[11]!==C||N[12]!==u?(h={opts:l,orientation:C,plugins:u},N[10]=l,N[11]=C,N[12]=u,N[13]=h):h=N[13];let[D,A]=function(e){let t,r,i=(0,n.c)(5),{opts:a,orientation:o,plugins:s}=e;i[0]!==s?(t=s??[P()],i[0]=s,i[1]=t):t=i[1];let l=t,c="horizontal"===o?"x":"y";return i[2]!==a||i[3]!==c?(r={...a,axis:c},i[2]=a,i[3]=c,i[4]=r):r=i[4],E(r,l)}(h),[L,H]=(0,s.useState)(!1),[O,T]=(0,s.useState)(!1),R=(0,I.f)();N[14]!==o?(p=e=>{if(!e)return;let t={canScrollPrev:e.canScrollPrev(),canScrollNext:e.canScrollNext()};H(t.canScrollPrev),T(t.canScrollNext),o?.(t)},N[14]=o,N[15]=p):p=N[15];let F=p;N[16]!==A?(g=()=>{A?.scrollPrev()},N[16]=A,N[17]=g):g=N[17];let V=g;N[18]!==A?(v=()=>{A?.scrollNext()},N[18]=A,N[19]=v):v=N[19];let W=v;N[20]!==W||N[21]!==V?(b=e=>{"ArrowLeft"===e.key?(e.preventDefault(),V()):"ArrowRight"===e.key&&(e.preventDefault(),W())},N[20]=W,N[21]=V,N[22]=b):b=N[22];let B=b;N[23]!==A||N[24]!==f?(x=()=>{A&&f&&f(A)},y=[A,f],N[23]=A,N[24]=f,N[25]=x,N[26]=y):(x=N[25],y=N[26]),(0,s.useEffect)(x,y),N[27]!==A||N[28]!==F?(z=()=>{if(A)return F(A),A.on("reInit",F),A.on("select",F),A.on("scroll",F),()=>{A?.off("reInit",F),A?.off("select",F),A?.off("scroll",F)}},_=[A,F],N[27]=A,N[28]=F,N[29]=_,N[30]=z):(_=N[29],z=N[30]),(0,s.useEffect)(z,_);let q=C||(l?.axis==="y"?"vertical":"horizontal");N[31]!==A||N[32]!==O||N[33]!==L||N[34]!==D||N[35]!==l||N[36]!==W||N[37]!==V||N[38]!==q?(w={carouselRef:D,api:A,opts:l,orientation:q,scrollPrev:V,scrollNext:W,canScrollPrev:L,canScrollNext:O},N[31]=A,N[32]=O,N[33]=L,N[34]=D,N[35]=l,N[36]=W,N[37]=V,N[38]=q,N[39]=w):w=N[39];let U=w;return N[40]!==a?(k=(0,r.f)("group/carousel relative hover:cursor-move",a),N[40]=a,N[41]=k):k=N[41],N[42]!==R?(j=R("carousel"),N[42]=R,N[43]=j):j=N[43],N[44]!==i||N[45]!==B||N[46]!==c||N[47]!==d||N[48]!==k||N[49]!==j?(M=(0,t.jsx)("section",{ref:d,onKeyDownCapture:B,className:k,"aria-roledescription":j,...c,children:i}),N[44]=i,N[45]=B,N[46]=c,N[47]=d,N[48]=k,N[49]=j,N[50]=M):M=N[50],N[51]!==U||N[52]!==M?(S=(0,t.jsx)(G.Provider,{value:U,children:M}),N[51]=U,N[52]=M,N[53]=S):S=N[53],S},Q=e=>{let i,a,o,s,l,c,u=(0,n.c)(14);u[0]!==e?({className:i,ref:o,...a}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=o):(i=u[1],a=u[2],o=u[3]);let{carouselRef:d,orientation:f}=K();return u[4]!==i||u[5]!==f?(s=(0,r.f)(q({orientation:f}),i),u[4]=i,u[5]=f,u[6]=s):s=u[6],u[7]!==a||u[8]!==o||u[9]!==s?(l=(0,t.jsx)("div",{ref:o,className:s,...a}),u[7]=a,u[8]=o,u[9]=s,u[10]=l):l=u[10],u[11]!==d||u[12]!==l?(c=(0,t.jsx)("div",{ref:d,children:l}),u[11]=d,u[12]=l,u[13]=c):c=u[13],c},Z=e=>{let i,a,o,s,l,c,u=(0,n.c)(14);u[0]!==e?({className:i,ref:o,...a}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=o):(i=u[1],a=u[2],o=u[3]);let{orientation:d}=K(),f=(0,I.f)();return u[4]!==f?(s=f("slide"),u[4]=f,u[5]=s):s=u[5],u[6]!==i||u[7]!==d?(l=(0,r.f)(U({orientation:d}),i),u[6]=i,u[7]=d,u[8]=l):l=u[8],u[9]!==a||u[10]!==o||u[11]!==s||u[12]!==l?(c=(0,t.jsx)("div",{ref:o,role:"group","aria-roledescription":s,className:l,...a}),u[9]=a,u[10]=o,u[11]=s,u[12]=l,u[13]=c):c=u[13],c},$=e=>{let a,o,s,l,c,u,d,f,m,h=(0,n.c)(19);h[0]!==e?({className:a,variant:l,size:c,ref:s,...o}=e,h[0]=e,h[1]=a,h[2]=o,h[3]=s,h[4]=l,h[5]=c):(a=h[1],o=h[2],s=h[3],l=h[4],c=h[5]);let p=void 0===l?"ghost":l,g=void 0===c?"icon-sm":c,{orientation:v,scrollPrev:b,canScrollPrev:x}=K(),y="horizontal"===v?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90";h[6]!==a||h[7]!==y?(u=(0,r.f)("absolute opacity-0 transition-opacity group-hover/carousel:opacity-100 disabled:opacity-0",y,a),h[6]=a,h[7]=y,h[8]=u):u=h[8];let _=!x;return h[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(i.f,{className:"size-4"}),h[9]=d):d=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(W.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})}),h[10]=f):f=h[10],h[11]!==o||h[12]!==s||h[13]!==b||h[14]!==g||h[15]!==u||h[16]!==_||h[17]!==p?(m=(0,t.jsxs)(B.Button,{ref:s,variant:p,size:g,shape:"pill",className:u,disabled:_,onClick:b,...o,children:[d,f]}),h[11]=o,h[12]=s,h[13]=b,h[14]=g,h[15]=u,h[16]=_,h[17]=p,h[18]=m):m=h[18],m},Y=e=>{let i,o,s,l,c,u,d,f,m,h=(0,n.c)(19);h[0]!==e?({className:i,variant:l,size:c,ref:s,...o}=e,h[0]=e,h[1]=i,h[2]=o,h[3]=s,h[4]=l,h[5]=c):(i=h[1],o=h[2],s=h[3],l=h[4],c=h[5]);let p=void 0===l?"ghost":l,g=void 0===c?"icon-sm":c,{orientation:v,scrollNext:b,canScrollNext:x}=K(),y="horizontal"===v?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90";h[6]!==i||h[7]!==y?(u=(0,r.f)("absolute opacity-0 transition-opacity group-hover/carousel:opacity-100 disabled:opacity-0",y,i),h[6]=i,h[7]=y,h[8]=u):u=h[8];let _=!x;return h[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(a.f,{className:"size-4"}),h[9]=d):d=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(W.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})}),h[10]=f):f=h[10],h[11]!==o||h[12]!==s||h[13]!==b||h[14]!==g||h[15]!==u||h[16]!==_||h[17]!==p?(m=(0,t.jsxs)(B.Button,{ref:s,variant:p,size:g,shape:"pill",className:u,disabled:_,onClick:b,...o,children:[d,f]}),h[11]=o,h[12]=s,h[13]=b,h[14]=g,h[15]=u,h[16]=_,h[17]=p,h[18]=m):m=h[18],m};function J(e){return(0,t.jsx)(Z,{className:"basis-auto",children:e.body},e.id)}e.s(["f",0,function(e){let i,a,o,s,l,c,u,d,f=(0,n.c)(23),{items:m,className:h,carouselClassName:p,opts:g}=e,v=m.length<=1;f[0]!==h?(i=(0,r.f)("overflow-hidden",h),f[0]=h,f[1]=i):i=f[1];let b=v&&"hover:cursor-default";return f[2]!==p||f[3]!==b?(a=(0,r.f)("relative w-full",b,p),f[2]=p,f[3]=b,f[4]=a):a=f[4],f[5]!==v||f[6]!==g?(o=function({isSingleItem:e,opts:t}){return e?{slidesToScroll:1,...t,loop:!1,watchDrag:!1}:{slidesToScroll:1,loop:!0,dragFree:!0,...t}}({isSingleItem:v,opts:g}),f[5]=v,f[6]=g,f[7]=o):o=f[7],f[8]!==m?(s=m.map(J),f[8]=m,f[9]=s):s=f[9],f[10]!==s?(l=(0,t.jsx)(Q,{children:s}),f[10]=s,f[11]=l):l=f[11],f[12]!==v||f[13]!==g?.align?(c=!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{className:(0,r.f)("transition-opacity","-left-6 z-10 hidden h-full w-16 rounded-lg md:flex","via-background to-background from-transparent","hover:bg-gradient-to-l",g?.align==="start"?"bg-inherit group-hover/carousel:opacity-0 hover:!opacity-100 disabled:opacity-0":"bg-gradient-to-l group-hover/carousel:bg-gradient-to-l")}),(0,t.jsx)(Y,{className:(0,r.f)("transition-opacity","-right-6 z-10 hidden h-full w-16 rounded-lg md:flex","via-background to-background from-transparent","hover:bg-gradient-to-r",g?.align==="end"?"bg-inherit group-hover/carousel:opacity-0 hover:!opacity-100 disabled:opacity-0":"bg-gradient-to-r group-hover/carousel:bg-gradient-to-r")})]}),f[12]=v,f[13]=g?.align,f[14]=c):c=f[14],f[15]!==a||f[16]!==o||f[17]!==l||f[18]!==c?(u=(0,t.jsxs)(X,{className:a,opts:o,children:[l,c]}),f[15]=a,f[16]=o,f[17]=l,f[18]=c,f[19]=u):u=f[19],f[20]!==i||f[21]!==u?(d=(0,t.jsx)("div",{className:i,children:u}),f[20]=i,f[21]=u,f[22]=d):d=f[22],d}],293859)},626499,e=>{"use strict";var t=e.i(659350),n=e.i(663456);function r(){return(r=Object.assign.bind()).apply(null,arguments)}var i=e.i(16043),a=i.useLayoutEffect,o=function(e){var t=i.default.useRef(e);return a(function(){t.current=e}),t},s=function(e,t){"function"==typeof e?e(t):e.current=t},l=function(e,t){var n=i.default.useRef();return i.default.useCallback(function(r){e.current=r,n.current&&s(n.current,null),n.current=t,t&&s(t,r)},[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},u=function(e){Object.keys(c).forEach(function(t){e.style.setProperty(t,c[t],"important")})},d=null,f=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},m=function(){},h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],p=!!document.documentElement.currentStyle,g=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=h.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;p&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:a}};function v(e,t,n){var r=o(n);i.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var b=function(e,t){v(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},x=function(e){v(window,"resize",e)},y=function(e){v(document.fonts,"loadingdone",e)},_=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],z=i.forwardRef(function(e,t){var n=e.cacheMeasurements,a=e.maxRows,o=e.minRows,s=e.onChange,c=void 0===s?m:s,h=e.onHeightChange,p=void 0===h?m:h,v=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,_),z=void 0!==v.value,w=i.useRef(null),k=l(w,t),j=i.useRef(0),M=i.useRef(),S=function(){var e=w.current,t=n&&M.current?M.current:g(e);if(t){M.current=t;var r,i,s,l,c,m,h,v,b,x,y,_=(r=e.value||e.placeholder||"x",void 0===(i=o)&&(i=1),void 0===(s=a)&&(s=1/0),d||((d=document.createElement("textarea")).setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),u(d)),null===d.parentNode&&document.body.appendChild(d),l=t.paddingSize,c=t.borderSize,h=(m=t.sizingStyle).boxSizing,Object.keys(m).forEach(function(e){d.style[e]=m[e]}),u(d),d.value=r,v=f(d,t),d.value=r,v=f(d,t),d.value="x",x=(b=d.scrollHeight-l)*i,"border-box"===h&&(x=x+l+c),v=Math.max(x,v),y=b*s,"border-box"===h&&(y=y+l+c),[v=Math.min(y,v),b]),z=_[0],k=_[1];j.current!==z&&(j.current=z,e.style.setProperty("height",z+"px","important"),p(z,{rowHeight:k}))}};return i.useLayoutEffect(S),b(w,function(){if(!z){var e=w.current.value;requestAnimationFrame(function(){var t=w.current;t&&e!==t.value&&S()})}}),x(S),y(S),i.createElement("textarea",r({},v,{onChange:function(e){z||S(),c(e)},ref:k}))}),w=e.i(136562),k=e.i(199630),j=e.i(554395);e.s(["f",0,function(e){let r,i,a,o,s,l,c=(0,n.c)(17);c[0]!==e?({className:r,inputClassName:i,ref:o,...a}=e,c[0]=e,c[1]=r,c[2]=i,c[3]=a,c[4]=o):(r=c[1],i=c[2],a=c[3],o=c[4]);let u=(0,k.f)();c[5]!==r||c[6]!==i?(s=(0,w.f)(j.g,"resize-none",i,r),c[5]=r,c[6]=i,c[7]=s):s=c[7];let d=s;if(!u){let e,n;if(c[8]!==a){let{minRows:t,maxRows:n,cacheMeasurements:r,onHeightChange:i,...o}=a;e=o,c[8]=a,c[9]=e}else e=c[9];return c[10]!==d||c[11]!==e?(n=(0,t.jsx)("textarea",{className:d,...e}),c[10]=d,c[11]=e,c[12]=n):n=c[12],n}return c[13]!==d||c[14]!==a||c[15]!==o?(l=(0,t.jsx)(z,{className:d,ref:o,...a}),c[13]=d,c[14]=a,c[15]=o,c[16]=l):l=c[16],l}],626499)},971289,e=>{"use strict";var t=e.i(337132);e.s(["f",0,function(e,n){return(0,t.f)(e<=0?0:e,n)??"—"}])},146320,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(563867);e.i(16043);var i=e.i(136562),a=e.i(751155);let o="size-16 shrink-0 rounded-md",s=(0,i.f)(o,"flex flex-col items-center justify-center gap-1 border border-dashed border-border/60","text-muted-foreground/50 hover:bg-muted/30 hover:text-muted-foreground","transition-colors disabled:cursor-not-allowed disabled:opacity-50"),l=(0,i.f)(o,"border object-cover ph-no-capture");e.s(["V",0,function(e){let i,o,s=(0,n.c)(5),{children:l,hint:c}=e;return s[0]!==c?(i=c?(0,t.jsx)(a.Tooltip,{content:c,children:(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":c,className:"inline-flex cursor-help text-muted-foreground/60 transition-colors hover:text-muted-foreground",children:(0,t.jsx)(r.f,{className:"size-3"})})}):null,s[0]=c,s[1]=i):i=s[1],s[2]!==l||s[3]!==i?(o=(0,t.jsxs)("span",{className:"flex h-4 items-center gap-1 whitespace-nowrap text-2xs text-muted-foreground",children:[l,i]}),s[2]=l,s[3]=i,s[4]=o):o=s[4],o},"S",0,s,"k",0,l])},609270,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(93237),i=e.i(359980),a=e.i(196991),o=e.i(153746),s=e.i(16043),l=e.i(797521),c=e.i(304903);let u=()=>Date.now();function d(e,t){let n=e-t;return n<=0?{kind:"expired"}:n<=36e5?{kind:"expiring",minutes:Math.ceil(n/6e4)}:{kind:"available"}}function f(e){return e+1}e.s(["y",0,function(e){let m,h,p,g,v=(0,n.c)(23),{expiresAt:b,now:x}=e,y=void 0===x?u:x,_=(0,l.f)(),z=(0,c.P)(),[,w]=(0,s.useReducer)(f,0);if(v[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=setInterval(w,6e4);return()=>clearInterval(e)},h=[],v[0]=m,v[1]=h):(m=v[0],h=v[1]),(0,s.useEffect)(m,h),void 0===b)return null;let k=1e3*b;v[2]!==k||v[3]!==y?(p=d(k,y()),v[2]=k,v[3]=y,v[4]=p):p=v[4];let j=p;v[5]!==k||v[6]!==_||v[7]!==z?(g=_.dateTime(k,{timeZone:z,preset:"medium"})??new Date(k).toISOString(),v[5]=k,v[6]=_,v[7]=z,v[8]=g):g=v[8];let M=g;switch(j.kind){case"expired":{let e,n,i;return v[9]!==M?(e=(0,t.jsx)(o.d,{children:M}),v[9]=M,v[10]=e):e=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(o.d,{children:r.f}),v[11]=n):n=v[11],v[12]!==e?(i=(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,t.jsxs)(a.T,{children:["Expired ",e,". Generated videos are kept for"," ",n," hours."]})}),v[12]=e,v[13]=i):i=v[13],i}case"expiring":{let e,n,r;return v[14]!==j.minutes?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.d,{children:j.minutes})," minute"]}),n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.d,{children:j.minutes})," minutes"]}),v[14]=j.minutes,v[15]=e,v[16]=n):(e=v[15],n=v[16]),v[17]!==j.minutes||v[18]!==e||v[19]!==n?(r=(0,t.jsx)("p",{className:"text-xs text-warning",children:(0,t.jsxs)(a.T,{children:["Expires in"," ",(0,t.jsx)(i.f,{n:j.minutes,one:e,other:n}),". Download it to keep a copy."]})}),v[17]=j.minutes,v[18]=e,v[19]=n,v[20]=r):r=v[20],r}case"available":{let e;return v[21]!==M?(e=(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,t.jsxs)(a.T,{children:["Available until ",(0,t.jsx)(o.d,{children:M}),". Download it to keep a copy."]})}),v[21]=M,v[22]=e):e=v[22],e}}},"N",0,d])},257557,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(288265),i=e.i(136562);function a(e){let r,a,o=(0,n.c)(4),{className:s}=e;return o[0]!==s?(r=(0,i.f)("braille-sequence inline-flex w-4 shrink-0 justify-start font-mono text-sm leading-none text-muted-foreground",s),o[0]=s,o[1]=r):r=o[1],o[2]!==r?(a=(0,t.jsx)("span",{"aria-hidden":!0,className:r}),o[2]=r,o[3]=a):a=o[3],a}function o(e){let r,a,o,s,l,c,u=(0,n.c)(12);u[0]!==e?({className:r,label:a,shouldShimmer:s,...o}=e,u[0]=e,u[1]=r,u[2]=a,u[3]=o,u[4]=s):(r=u[1],a=u[2],o=u[3],s=u[4]);let d=void 0===s||s?"processing-label":"";return u[5]!==r||u[6]!==d?(l=(0,i.f)(d,"relative inline-block overflow-hidden text-sm font-medium text-muted-foreground",r),u[5]=r,u[6]=d,u[7]=l):l=u[7],u[8]!==a||u[9]!==o||u[10]!==l?(c=(0,t.jsx)("span",{...o,className:l,"data-label":a,children:a}),u[8]=a,u[9]=o,u[10]=l,u[11]=c):c=u[11],c}function s(){let e,r=(0,n.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("style",{children:"\n .braille-sequence::before {\n animation: brailleFrames 960ms steps(1, end) infinite;\n content: '⠋';\n }\n\n .processing-label::after {\n animation: processingTextShimmer 1600ms ease-in-out infinite;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n hsl(var(--foreground)) 42%,\n hsl(var(--primary)) 50%,\n hsl(var(--foreground)) 58%,\n transparent 100%\n );\n background-clip: text;\n background-repeat: no-repeat;\n background-size: 45% 100%;\n color: transparent;\n content: attr(data-label);\n inset: 0;\n position: absolute;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n @keyframes brailleFrames {\n 0% {\n content: '⠋';\n }\n 10% {\n content: '⠙';\n }\n 20% {\n content: '⠹';\n }\n 30% {\n content: '⠸';\n }\n 40% {\n content: '⠼';\n }\n 50% {\n content: '⠴';\n }\n 60% {\n content: '⠦';\n }\n 70% {\n content: '⠧';\n }\n 80% {\n content: '⠇';\n }\n 90%,\n 100% {\n content: '⠏';\n }\n }\n\n @keyframes processingTextShimmer {\n from {\n background-position: -80% 0;\n }\n to {\n background-position: 180% 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .braille-sequence::before {\n animation: none;\n content: '⠿';\n }\n\n .processing-label::after {\n animation: none;\n content: '';\n }\n }\n "}),r[0]=e):e=r[0],e}e.s(["p",0,a,"l",0,function(e){let l,c,u,d,f,m,h,p=(0,n.c)(14),{className:g,label:v}=e,b=(0,r.f)();return p[0]!==g?(l=(0,i.f)("inline-flex items-center justify-start gap-2",g),p[0]=g,p[1]=l):l=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(a,{}),p[2]=c):c=p[2],p[3]!==b||p[4]!==v?(u=v??b("Processing"),p[3]=b,p[4]=v,p[5]=u):u=p[5],p[6]!==u?(d=(0,t.jsx)(o,{label:u}),p[6]=u,p[7]=d):d=p[7],p[8]!==l||p[9]!==d?(f=(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:l,children:[c,d]}),p[8]=l,p[9]=d,p[10]=f):f=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(s,{}),p[11]=m):m=p[11],p[12]!==f?(h=(0,t.jsxs)(t.Fragment,{children:[f,m]}),p[12]=f,p[13]=h):h=p[13],h},"V",0,s,"a",0,o])},897269,e=>{"use strict";var t=e.i(387086);let n={queued:(0,t.b)("Queued"),processing:(0,t.b)("Generating video"),loading:(0,t.b)("Downloading video")};e.s(["f",0,n])},264635,299153,89550,e=>{"use strict";e.i(882844);var t=e.i(635157);let n={SlackAppUnowned:"slack_app_unowned",WorkspaceBackupFailed:"workspace_backup_failed",DeletionUnverified:"deletion_unverified",DestroyUnhandledException:"destroy_unhandled_exception"},r=t.z.object({step:t.z.string(),message:t.z.string(),code:t.z.string().optional(),backup_refusal:t.z.string().optional(),observed_at:t.z.string().datetime()}).passthrough(),i=t.z.object({started_at:t.z.string().datetime().optional(),current_step:t.z.string().optional(),status_before:t.z.string().optional(),attempt:t.z.number().int().nonnegative().optional(),failures:t.z.array(r).optional()}).passthrough(),a=new Set([n.SlackAppUnowned]),o=[n.DeletionUnverified];e.s(["f",0,10,"s",0,5,"r",0,n,"z",0,{Terminal:"terminal",Retryable:"retryable",Unclassified:"unclassified"},"I",0,i,"m",0,o,"e",0,a,"n",0,{SnapshotUnconfirmed:"snapshot_unconfirmed",NoRecentSnapshot:"no_recent_snapshot"}],299153);var s=e.i(173589);let l={NonRetryable:"non_retryable",Retryable:"retryable",Unknown:"unknown"},c=t.z.enum([l.NonRetryable,l.Retryable,l.Unknown]),u={Running:"running",Succeeded:"succeeded",Failed:"failed"},d=t.z.enum([u.Running,u.Succeeded,u.Failed]),f=t.z.object({at:t.z.string().datetime(),message:t.z.string(),category:c}),m=t.z.object({status:d,attempts:t.z.number().int().nonnegative(),failures:t.z.array(f),last_failure:f.nullish()}),h=t.z.record(t.z.string(),m);e.s(["X",0,l,"P",0,u,"w",0,h],89550);let p={AwaitingSlackInstall:"awaiting_slack_install",Queued:"queued",EnsureOrKey:"ensure_or_key",CreateCfTunnel:"create_cf_tunnel",CreateGcpVm:"create_gcp_vm",CreateSubstrateEnv:"create_substrate_env",Running:"running",Failed:"failed",Stopped:"stopped",Destroying:"destroying",DestroyFailed:"destroy_failed"},g=t.z.enum([p.AwaitingSlackInstall,p.Queued,p.EnsureOrKey,p.CreateCfTunnel,p.CreateGcpVm,p.CreateSubstrateEnv,p.Running,p.Failed,p.Stopped,p.Destroying,p.DestroyFailed]),v={Queued:"queued",EnsureOrKey:"ensure_or_key",CreateCfTunnel:"create_cf_tunnel",CreateGcpVm:"create_gcp_vm",CreateSubstrateEnv:"create_substrate_env",Running:"running",Failed:"failed"},b=t.z.enum([v.Queued,v.EnsureOrKey,v.CreateCfTunnel,v.CreateGcpVm,v.CreateSubstrateEnv,v.Running,v.Failed]),x={[v.Queued]:{label:"Queued",stepNumber:1},[v.EnsureOrKey]:{label:"Minting OpenRouter API key",stepNumber:1},[v.CreateCfTunnel]:{label:"Creating Cloudflare tunnel",stepNumber:2},[v.CreateGcpVm]:{label:"Provisioning runtime VM",stepNumber:3},[v.CreateSubstrateEnv]:{label:"Provisioning Substrate environment",stepNumber:3},[v.Running]:{label:"Live",stepNumber:3},[v.Failed]:{label:"Failed",stepNumber:3}};t.z.object({current_step:b,step_label:t.z.string().optional(),step_number:t.z.number().optional(),total_steps:t.z.number().optional(),step_started_at:t.z.string().datetime().optional(),updated_at:t.z.string().datetime().optional()});let y={Healthy:"healthy",Degraded:"degraded",Bypassed:"bypassed"},_=t.z.enum([y.Healthy,y.Degraded,y.Bypassed]),z={Healthy:"healthy",Unhealthy:"unhealthy"},w=t.z.enum([z.Healthy,z.Unhealthy]),k=t.z.enum(["rebooted_empty","vm_not_running","inconclusive"]),j={NoRemote:"no_remote",NotAGitRepository:"not_a_git_repository"},M=t.z.enum([j.NoRemote,j.NotAGitRepository]),S=t.z.object({last_success:t.z.object({at:t.z.string().datetime(),remote:t.z.string(),short_sha:t.z.string()}).nullable(),last_failure:t.z.object({at:t.z.string().datetime(),detail:t.z.string()}).nullable(),last_skip:t.z.object({at:t.z.string().datetime(),reason:M}).nullish(),observed_at:t.z.string().datetime()}),N=t.z.object({features:t.z.array(t.z.object({feature_id:t.z.string(),feature_key:t.z.string(),status:t.z.enum(["needs_repair","previous_version"])})),observed_at:t.z.string().datetime()});t.z.object({instance_id:t.z.string().nullish(),cf_tunnel_hostname:t.z.string().nullish(),cf_tunnel_ingress_hash:t.z.string().nullish(),provisioning_state:t.z.unknown().nullish(),slack_install_skipped_at:t.z.string().datetime().nullish().catch(void 0),vm_birth_config:t.z.object({zone:t.z.string().nullish(),runtime_image:t.z.string().nullish(),slack_mode:t.z.enum(["installed","none"]).nullish(),home_mcp_layer:t.z.boolean().nullish()}).passthrough().nullish(),vm_insert_projects:t.z.array(t.z.string()).nullish(),desired_runtime_image:t.z.string().nullish(),desired_runtime_image_set_at:t.z.string().datetime().nullish().catch(void 0),running_runtime_image:t.z.string().nullish(),running_ori_version:t.z.string().nullish(),runtime_image_state:s.C.nullish().catch(void 0),runtime_image_observed_at:t.z.string().datetime().nullish().catch(void 0),runtime_refresh_reset:t.z.object({attempt:t.z.number().int().nonnegative(),reason:t.z.enum(["health_gate","stopped_vm_start"]).nullish(),requested_at:t.z.string().datetime().nullish(),reset_operation_name:t.z.string().nullish(),completed_at:t.z.string().datetime().nullish()}).nullish().catch(void 0),vm_stop:t.z.object({attempt:t.z.number().int().nonnegative(),reason:t.z.enum(["health_gate","customer_suspend"]),stop_operation_name:t.z.string().nullish(),confirmed_at:t.z.string().datetime().nullish()}).nullish().catch(void 0),transfer:t.z.object({from_entity_id:t.z.string().min(1),from_workspace_id:t.z.string().min(1).nullish(),to_entity_id:t.z.string().min(1),to_workspace_id:t.z.string().min(1),to_creator_user_id:t.z.string().min(1),started_at:t.z.string().datetime(),steps_done:t.z.array(t.z.string()),completed_at:t.z.string().datetime().nullish()}).nullish().catch(void 0),running_model:t.z.string().nullish(),running_model_observed_at:t.z.string().datetime().nullish().catch(void 0),health_outcome:_.nullish().catch(void 0),health_observed_at:t.z.string().datetime().nullish().catch(void 0),live_health:w.nullish().catch(void 0),live_health_observed_at:t.z.string().datetime().nullish().catch(void 0),last_healthy_at:t.z.string().datetime().nullish().catch(void 0),consecutive_failures:t.z.number().int().nonnegative().nullish().catch(void 0),empty_reboot:k.nullish().catch(void 0),backup_status:S.nullish().catch(void 0),backup_remote_url:t.z.string().nullish().catch(void 0),backup_remote_wired_at:t.z.string().nullish().catch(void 0),feature_repair:N.nullish().catch(void 0),workflow_instance_id:t.z.string().nullish(),provisioning_attempt:t.z.number().int().nonnegative().nullish(),intern_log_id:t.z.string().uuid().nullish(),reprovision_enqueued_at:t.z.string().datetime().nullish().catch(void 0),reprovision_enqueue_claim_token:t.z.string().uuid().nullish().catch(void 0),rebootstrap_attempted_at:t.z.string().datetime().nullish().catch(void 0)}).passthrough(),t.z.string().min(1).max(39).regex(/^[a-zA-Z0-9](?:[a-zA-Z0-9]|-(?=[a-zA-Z0-9])){0,38}$/,"GitHub org must be 1-39 chars, alphanumerics + single hyphens (no leading/trailing/consecutive).").transform(e=>e.toLowerCase());let E=t.z.string().min(1).max(255);t.z.object({vcs_org:E,repo:t.z.string().nullable(),default_branch:t.z.string().nullish()});let C=t.z.object({snapshot_name:t.z.string(),requested_at:t.z.string()}),D={Rust:"rust"},A=t.z.enum([D.Rust]),L={Gce:"gce",Substrate:"substrate"};t.z.enum([L.Gce,L.Substrate]),t.z.object({status:g.optional().catch(void 0),last_failure:t.z.object({step:t.z.string(),error:t.z.string(),at:t.z.string().datetime()}).nullish(),instructions:t.z.string().nullish(),model:t.z.string().nullish(),features_source:t.z.string().nullish(),steps:h.optional(),destroy:i.optional(),restore:C.optional().catch(void 0),intern_runtime:A.optional().catch(void 0)}).extend({status:g.optional(),intern_runtime:A.optional()}).partial(),e.s(["S",0,x,"D",0,j,"K",0,y,"P",0,L,"T",0,z,"U",0,v,"a",0,D,"L",0,p,"o",0,function(e,t){let n=e.last_skip??null;if(null==t)return{last_failure:e.last_failure,last_skip:n,last_success:e.last_success};let r=Date.parse(t),i=e=>Date.parse(e.at)>r;return{last_failure:null!==e.last_failure&&i(e.last_failure)?e.last_failure:null,last_skip:null!==n&&i(n)?n:null,last_success:null!==e.last_success&&i(e.last_success)?e.last_success:null}},"_",0,function(e){return null===e||null===e.repo?null:{org:e.vcs_org,repo:e.repo}},"k",0,function(e){let t=e.last_skip??null;if(null===t)return null;let n=Date.parse(t.at);return[e.last_success?.at,e.last_failure?.at].every(e=>void 0===e||Date.parse(e){"use strict";e.i(647204),e.i(691880),e.s(["f",0,24])},540191,508701,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(887604),i=e.i(138257),a=e.i(16043),o=e.i(339814),s=e.i(609303),l=e.i(136562),c=e.i(548204),u=e.i(181870);e.i(707060);var d=e.i(288265),f=e.i(308932);function m(){let e,r,i,a,o=(0,n.c)(6),s=(0,d.f)();return o[0]!==s?(e=s("TypeScript file"),o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{className:"fill-logo-white",d:"M22.67 47h99.67v73.67H22.67z"}),i=(0,t.jsx)("path",{"data-name":"original",className:"fill-logo-typescript",d:"M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"}),o[2]=r,o[3]=i):(r=o[2],i=o[3]),o[4]!==e?(a=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i]}),o[4]=e,o[5]=a):a=o[5],a}function h(){let e,r,i,a,o=(0,n.c)(6),s=(0,d.f)();return o[0]!==s?(e=s("JavaScript file"),o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{className:"fill-logo-javascript",d:"M1.408 1.408h125.184v125.185H1.408z"}),i=(0,t.jsx)("path",{className:"fill-logo-javascript-text",d:"M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"}),o[2]=r,o[3]=i):(r=o[2],i=o[3]),o[4]!==e?(a=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i]}),o[4]=e,o[5]=a):a=o[5],a}function p(){let e,r,i,a,o,s,l=(0,n.c)(8),c=(0,d.f)();return l[0]!==c?(e=c("HTML file"),l[0]=c,l[1]=e):e=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{className:"fill-logo-html",d:"M19.037 113.876L9.032 1.661h109.936l-10.016 112.198-45.019 12.48z"}),i=(0,t.jsx)("path",{className:"fill-logo-html-light",d:"M64 116.8l36.378-10.086 8.559-95.878H64z"}),a=(0,t.jsx)("path",{className:"fill-logo-html-css-light-gray",d:"M64 52.455H45.788L44.53 38.361H64V24.599H29.489l.33 3.692 3.382 37.927H64zm0 35.743l-.061.017-15.327-4.14-.979-10.975H33.816l1.928 21.609 28.193 7.826.063-.017z"}),o=(0,t.jsx)("path",{className:"fill-logo-white",d:"M63.952 52.455v13.763h16.947l-1.597 17.849-15.35 4.143v14.319l28.215-7.82.207-2.325 3.234-36.233.335-3.696h-3.708zm0-27.856v13.762h33.244l.276-3.092.628-6.978.329-3.692z"}),l[2]=r,l[3]=i,l[4]=a,l[5]=o):(r=l[2],i=l[3],a=l[4],o=l[5]),l[6]!==e?(s=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i,a,o]}),l[6]=e,l[7]=s):s=l[7],s}function g(){let e,r,i,a,o,s,l,c,u=(0,n.c)(10),f=(0,d.f)();return u[0]!==f?(e=f("CSS file"),u[0]=f,u[1]=e):e=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{className:"fill-logo-css",d:"M18.814 114.123L8.76 1.352h110.48l-10.064 112.754-45.243 12.543-45.119-12.526z"}),i=(0,t.jsx)("path",{className:"fill-logo-css-light",d:"M64.001 117.062l36.559-10.136 8.601-96.354h-45.16v106.49z"}),a=(0,t.jsx)("path",{className:"fill-logo-white",d:"M64.001 51.429h18.302l1.264-14.163H64.001V23.435h34.682l-.332 3.711-3.4 38.114h-30.95V51.429z"}),o=(0,t.jsx)("path",{className:"fill-logo-html-css-light-gray",d:"M64.083 87.349l-.061.018-15.403-4.159-.985-11.031H33.752l1.937 21.717 28.331 7.863.063-.018v-14.39z"}),s=(0,t.jsx)("path",{className:"fill-logo-white",d:"M81.127 64.675l-1.666 18.522-15.426 4.164v14.39l28.354-7.858.208-2.337 2.406-26.881H81.127z"}),l=(0,t.jsx)("path",{className:"fill-logo-html-css-light-gray",d:"M64.048 23.435v13.831H30.64l-.277-3.108-.63-7.012-.331-3.711h34.646zm-.047 27.996v13.831H48.792l-.277-3.108-.631-7.012-.33-3.711h16.447z"}),u[2]=r,u[3]=i,u[4]=a,u[5]=o,u[6]=s,u[7]=l):(r=u[2],i=u[3],a=u[4],o=u[5],s=u[6],l=u[7]),u[8]!==e?(c=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i,a,o,s,l]}),u[8]=e,u[9]=c):c=u[9],c}function v(){let e,r,i=(0,n.c)(4),a=(0,d.f)();return i[0]!==a?(e=a("JSON file"),i[0]=a,i[1]=e):e=i[1],i[2]!==e?(r=(0,t.jsx)(f.f,{size:16,className:"text-logo-json",strokeWidth:1.75,role:"img","aria-label":e}),i[2]=e,i[3]=r):r=i[3],r}function b(){let e,r,i,a,o=(0,n.c)(6),s=(0,d.f)();return o[0]!==s?(e=s("Python file"),o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{className:"fill-logo-python-blue",d:"M63.391 1.988c-4.222.02-8.252.379-11.8 1.007-10.45 1.846-12.346 5.71-12.346 12.837v9.411h24.693v3.137H29.977c-7.176 0-13.46 4.313-15.426 12.521-2.268 9.405-2.368 15.275 0 25.096 1.755 7.311 5.947 12.519 13.124 12.519h8.491V67.234c0-8.151 7.051-15.34 15.426-15.34h24.665c6.866 0 12.346-5.654 12.346-12.548V15.833c0-6.693-5.646-11.72-12.346-12.837-4.244-.706-8.645-1.027-12.866-1.008zM50.037 9.557c2.55 0 4.634 2.117 4.634 4.721 0 2.593-2.083 4.69-4.634 4.69-2.56 0-4.633-2.097-4.633-4.69-.001-2.604 2.073-4.721 4.633-4.721z"}),i=(0,t.jsx)("path",{className:"fill-logo-python-yellow",d:"M91.682 28.38v10.966c0 8.5-7.208 15.655-15.426 15.655H51.591c-6.756 0-12.346 5.783-12.346 12.549v23.515c0 6.691 5.818 10.628 12.346 12.547 7.816 2.297 15.312 2.713 24.665 0 6.216-1.801 12.346-5.423 12.346-12.547v-9.412H63.938v-3.138h37.012c7.176 0 9.852-5.005 12.348-12.519 2.578-7.735 2.467-15.174 0-25.096-1.774-7.145-5.161-12.521-12.348-12.521h-9.268zM77.809 87.927c2.561 0 4.634 2.097 4.634 4.692 0 2.602-2.074 4.719-4.634 4.719-2.55 0-4.633-2.117-4.633-4.719 0-2.595 2.083-4.692 4.633-4.692z"}),o[2]=r,o[3]=i):(r=o[2],i=o[3]),o[4]!==e?(a=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i]}),o[4]=e,o[5]=a):a=o[5],a}function x(){let e,r,i,a,o=(0,n.c)(6),s=(0,d.f)();return o[0]!==s?(e=s("Markdown file"),o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("rect",{x:"5",y:"5",width:"198",height:"118",rx:"10",ry:"10",fill:"none",className:"stroke-logo-markdown",strokeWidth:"10"}),i=(0,t.jsx)("path",{className:"fill-logo-markdown",d:"M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"}),o[2]=r,o[3]=i):(r=o[2],i=o[3]),o[4]!==e?(a=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 208 128",role:"img","aria-label":e,children:[r,i]}),o[4]=e,o[5]=a):a=o[5],a}function y(){let e,r,i,a,o,s=(0,n.c)(7),l=(0,d.f)();return s[0]!==l?(e=l("Shell script"),s[0]=l,s[1]=e):e=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("rect",{x:"1",y:"2",width:"14",height:"12",rx:"2",className:"fill-logo-shell-background stroke-logo-shell-border"}),i=(0,t.jsx)("path",{d:"M4 6l2.5 2L4 10",fill:"none",className:"stroke-logo-shell-prompt",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),a=(0,t.jsx)("path",{d:"M8 10.5h4",className:"stroke-logo-shell-text",strokeWidth:"1.3",strokeLinecap:"round"}),s[2]=r,s[3]=i,s[4]=a):(r=s[2],i=s[3],a=s[4]),s[5]!==e?(o=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",role:"img","aria-label":e,children:[r,i,a]}),s[5]=e,s[6]=o):o=s[6],o}function _(){let e,r,i,a,o=(0,n.c)(6),s=(0,d.f)();return o[0]!==s?(e=s("Generic file"),o[0]=s,o[1]=e):e=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{d:"M4 1.5h5.5L13 5v8.5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1z",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),i=(0,t.jsx)("path",{d:"M9.5 1.5V5H13",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),o[2]=r,o[3]=i):(r=o[2],i=o[3]),o[4]!==e?(a=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",role:"img","aria-label":e,className:"text-slate-9",children:[r,i]}),o[4]=e,o[5]=a):a=o[5],a}function z(e){let n=e.toLowerCase();return n.endsWith(".ts")||n.endsWith(".tsx")?(0,t.jsx)(m,{}):n.endsWith(".js")||n.endsWith(".jsx")||n.endsWith(".mjs")||n.endsWith(".cjs")?(0,t.jsx)(h,{}):n.endsWith(".html")||n.endsWith(".htm")?(0,t.jsx)(p,{}):n.endsWith(".css")?(0,t.jsx)(g,{}):n.endsWith(".json")?(0,t.jsx)(v,{}):n.endsWith(".py")||n.endsWith(".pyi")?(0,t.jsx)(b,{}):n.endsWith(".md")||n.endsWith(".mdx")||n.endsWith(".markdown")?(0,t.jsx)(x,{}):n.endsWith(".sh")||n.endsWith(".bash")||n.endsWith(".zsh")?(0,t.jsx)(y,{}):(0,t.jsx)(_,{})}function w(e){let r,i,o,d,f,m,h,p,g,v,b,x,y,_,j,M,S,N,E,C=(0,n.c)(80),{node:D,depth:A,isExpanded:L,toggleExpanded:H,isSelected:O,onSelectClick:T,onRename:R}=e,[F,V]=(0,a.useState)(!1),[P,W]=(0,a.useState)(D.label);if(C[0]!==A||C[1]!==L||C[2]!==F||C[3]!==O||C[4]!==D||C[5]!==R||C[6]!==T||C[7]!==P||C[8]!==H){let e,n,a,w,k=L(D.id);i=D.children.length>0;let S=O(D.id);C[25]!==D.id||C[26]!==D.label||C[27]!==R||C[28]!==P?(e=()=>{let e=P.trim();if(0===e.length){V(!1),W(D.label);return}e!==D.label&&R(D.id,e),V(!1)},C[25]=D.id,C[26]=D.label,C[27]=R,C[28]=P,C[29]=e):e=C[29];let N=e;C[30]!==i||C[31]!==D.id||C[32]!==T||C[33]!==H?(n=()=>{i?H(D.id):T(D.id)},C[30]=i,C[31]=D.id,C[32]=T,C[33]=H,C[34]=n):n=C[34];let E=n;C[35]!==i||C[36]!==D.id||C[37]!==T||C[38]!==H?(a=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i?H(D.id):T(D.id))},C[35]=i,C[36]=D.id,C[37]=T,C[38]=H,C[39]=a):a=C[39];let I=a;C[40]!==i||C[41]!==D.label?(w=i?null:z(D.label),C[40]=i,C[41]=D.label,C[42]=w):w=C[42];let B=w,q="generating"===D.status,U=function(e){switch(e){case"new":return{letter:"A",name:"Added",colorClassName:"text-success",labelClassName:""};case"modified":return{letter:"M",name:"Modified",colorClassName:"text-warning",labelClassName:""};case"removed":return{letter:"D",name:"Removed",colorClassName:"text-negative",labelClassName:"line-through"};default:return null}}(D.status);r=c.Collapsible,h=i&&k,C[43]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)("li",{}),C[43]=p):p=C[43],o="button",g=0,v=(0,l.f)("group relative grid w-full items-center pr-2","grid-cols-[auto_1fr] gap-1","text-muted-foreground font-medium tracking-tight","hover:bg-muted/30 focus-visible:outline-hidden focus-visible:ring-0 focus:outline-hidden",!i&&S&&"bg-muted hover:bg-muted","overflow-hidden",q&&"animate-row-pulse motion-reduce:animate-none",(U||D.endAdornment)&&"pr-7","min-h-6 py-0.75 pl-(--tree-indent)"),b=!0;let G=`${6+12*A}px`;C[44]!==G?(x={"--tree-indent":G},C[44]=G,C[45]=x):x=C[45],y=E,_=I,j=D.label,C[46]!==q?(M=q&&(0,t.jsxs)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[(0,t.jsx)("span",{className:"absolute inset-0 bg-primary/12 dark:bg-primary/15"}),(0,t.jsx)("span",{className:"absolute inset-y-0 -left-1/2 w-1/2 bg-gradient-to-r from-transparent via-primary/30 to-transparent animate-file-shimmer mask-[linear-gradient(90deg,transparent_0%,black_18%,black_82%,transparent_100%)] [-webkit-mask-image:linear-gradient(90deg,transparent_0%,black_18%,black_82%,transparent_100%)] motion-reduce:animate-none"}),(0,t.jsx)("span",{className:"absolute inset-y-0 -left-1/2 w-1/2 bg-gradient-to-r from-transparent via-primary/30 to-transparent animate-file-shimmer [animation-delay:1s] mask-[linear-gradient(90deg,transparent_0%,black_18%,black_82%,transparent_100%)] [-webkit-mask-image:linear-gradient(90deg,transparent_0%,black_18%,black_82%,transparent_100%)] motion-reduce:animate-none"})]}),C[46]=q,C[47]=M):M=C[47];let K=i?(0,t.jsx)(s.f,{className:(0,l.f)("h-4 w-4 text-muted-foreground transition-transform",k&&"rotate-90")}):(0,t.jsx)("span",{className:"inline-flex h-4 w-4 items-center justify-center",children:B});C[48]!==K?(d=(0,t.jsx)("div",{className:"flex w-4.5 min-w-4.5 items-center justify-center select-none","aria-hidden":!0,children:K}),C[48]=K,C[49]=d):d=C[49];let X=F?(0,t.jsx)(u.f,{autoFocus:!0,value:P,onChange:e=>W(e.target.value),onKeyDown:e=>{"Enter"===e.key?N():"Escape"===e.key&&(V(!1),W(D.label))},onBlur:N,className:"h-6 text-sm font-medium tracking-tight"}):(0,t.jsx)("span",{className:(0,l.f)("truncate text-sm leading-snug select-none",U?.colorClassName,U?.labelClassName),children:D.label});C[50]!==X?(f=(0,t.jsx)("div",{className:"ml-1.5 flex min-w-0 items-center",children:X}),C[50]=X,C[51]=f):f=C[51],m=U?(0,t.jsx)("span",{role:"img","aria-label":U.name,title:U.name,className:(0,l.f)("absolute right-2 text-body font-semibold select-none",U.colorClassName),children:U.letter}):D.endAdornment&&(0,t.jsx)("span",{className:"absolute right-2 flex items-center",children:D.endAdornment}),C[0]=A,C[1]=L,C[2]=F,C[3]=O,C[4]=D,C[5]=R,C[6]=T,C[7]=P,C[8]=H,C[9]=r,C[10]=i,C[11]=o,C[12]=d,C[13]=f,C[14]=m,C[15]=h,C[16]=p,C[17]=g,C[18]=v,C[19]=b,C[20]=x,C[21]=y,C[22]=_,C[23]=j,C[24]=M}else r=C[9],i=C[10],o=C[11],d=C[12],f=C[13],m=C[14],h=C[15],p=C[16],g=C[17],v=C[18],b=C[19],x=C[20],y=C[21],_=C[22],j=C[23],M=C[24];return C[52]!==o||C[53]!==d||C[54]!==f||C[55]!==m||C[56]!==g||C[57]!==v||C[58]!==b||C[59]!==x||C[60]!==y||C[61]!==_||C[62]!==j||C[63]!==M?(S=(0,t.jsxs)("div",{role:o,tabIndex:g,className:v,"data-allow-inline-style":b,style:x,onClick:y,onKeyDown:_,title:j,children:[M,d,f,m]}),C[52]=o,C[53]=d,C[54]=f,C[55]=m,C[56]=g,C[57]=v,C[58]=b,C[59]=x,C[60]=y,C[61]=_,C[62]=j,C[63]=M,C[64]=S):S=C[64],C[65]!==A||C[66]!==i||C[67]!==L||C[68]!==O||C[69]!==D.children||C[70]!==R||C[71]!==T||C[72]!==H?(N=i&&(0,t.jsx)(c.CollapsibleContent,{render:(0,t.jsx)("ul",{}),children:D.children.map(e=>(0,t.jsx)(w,{node:e,depth:A+1,isExpanded:L,toggleExpanded:H,isSelected:O,onSelectClick:T,onRename:R,onDelete:k},e.id))}),C[65]=A,C[66]=i,C[67]=L,C[68]=O,C[69]=D.children,C[70]=R,C[71]=T,C[72]=H,C[73]=N):N=C[73],C[74]!==r||C[75]!==h||C[76]!==p||C[77]!==S||C[78]!==N?(E=(0,t.jsxs)(r,{open:h,render:p,children:[S,N]}),C[74]=r,C[75]=h,C[76]=p,C[77]=S,C[78]=N,C[79]=E):E=C[79],E}function k(){}function j(e){return e??[]}function M(e){return new Set(e)}e.s(["f",0,z],508701),e.s(["f",0,function(e){let a,s,l,c,u,d,f,m,h,p=(0,n.c)(39),{items:g,className:v,onRename:b,onDelete:x,onSelectionChange:y,onToggle:_,defaultExpandedIds:z,defaultSelectedIds:k}=e,S=(0,i.useLocale)();p[0]!==g||p[1]!==S?(a=function(e,t){let n=new Map;for(let e of t)n.set(e.id,{id:e.id,label:e.label,parentId:e.parentId??null,children:[],status:e.status,endAdornment:e.endAdornment});let r=new Set,i=new Set,a=e=>{if(r.has(e))return;r.add(e),i.add(e);let t=n.get(e),o=t?.parentId??null;o&&n.has(o)&&(i.has(o)?t.parentId=null:a(o)),i.delete(e)};for(let e of n.values())a(e.id);for(let e of n.values()){let t=e.parentId;t&&n.has(t)&&n.get(t).children.push(e)}let s=[];for(let e of n.values())e.parentId&&n.has(e.parentId)||s.push(e);let l=(t,n)=>{let r=t.children.length>0;return r!==n.children.length>0?r?-1:1:(0,o.o)(t.label,n.label,{locale:e,comparison:"base"})},c=e=>{for(let t of(e.sort(l),e))t.children.length>0&&c(t.children)};return c(s),s}(S,g),p[0]=g,p[1]=S,p[2]=a):a=p[2];let N=a,[E,C]=(0,r.f)(z,M),[D,A]=(0,r.f)(k,j);p[3]!==E?(s=e=>E.has(e),p[3]=E,p[4]=s):s=p[4];let L=s;p[5]!==E||p[6]!==_||p[7]!==C?(l=e=>{let t=E.has(e),n=new Set(E);t?n.delete(e):n.add(e),C(n),_&&_({id:e,expanded:!t})},p[5]=E,p[6]=_,p[7]=C,p[8]=l):l=p[8];let H=l;p[9]!==D?(c=e=>D.includes(e),p[9]=D,p[10]=c):c=p[10];let O=c;p[11]!==y||p[12]!==A?(u=e=>{let t=[e];A(t),y?.({selectedIds:t})},p[11]=y,p[12]=A,p[13]=u):u=p[13];let T=u;p[14]!==b?(d=(e,t)=>{b&&b({id:e,nextLabel:t})},p[14]=b,p[15]=d):d=p[15];let R=d;p[16]!==x||p[17]!==y||p[18]!==D||p[19]!==A?(f=e=>{x&&x({ids:e});let t=D.filter(t=>!e.includes(t));A(t),y&&y({selectedIds:t})},p[16]=x,p[17]=y,p[18]=D,p[19]=A,p[20]=f):f=p[20];let F=f,V=v??"flex flex-col gap-0.25";if(p[21]!==F||p[22]!==R||p[23]!==L||p[24]!==O||p[25]!==T||p[26]!==H||p[27]!==N){let e;p[29]!==F||p[30]!==R||p[31]!==L||p[32]!==O||p[33]!==T||p[34]!==H?(e=e=>(0,t.jsx)(w,{node:e,depth:0,isExpanded:L,toggleExpanded:H,isSelected:O,onSelectClick:T,onRename:R,onDelete:F},e.id),p[29]=F,p[30]=R,p[31]=L,p[32]=O,p[33]=T,p[34]=H,p[35]=e):e=p[35],m=N.map(e),p[21]=F,p[22]=R,p[23]=L,p[24]=O,p[25]=T,p[26]=H,p[27]=N,p[28]=m}else m=p[28];return p[36]!==V||p[37]!==m?(h=(0,t.jsx)("ul",{className:V,children:m}),p[36]=V,p[37]=m,p[38]=h):h=p[38],h}],540191)},811507,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(346754);e.s(["f",0,function(e){let i,a,o=(0,n.c)(7),{isSignedIn:s,prefetchSeal:l,onSignupIntent:c,className:u,children:d}=e,f=(0,r.f)(s,l);o[0]!==c||o[1]!==f?(i=()=>{f(),c?.()},o[0]=c,o[1]=f,o[2]=i):i=o[2];let m=i;return o[3]!==d||o[4]!==u||o[5]!==m?(a=(0,t.jsx)("div",{className:u,onPointerDown:m,onKeyDown:m,children:d}),o[3]=d,o[4]=u,o[5]=m,o[6]=a):a=o[6],a}])},178190,e=>{"use strict";var t=e.i(663456),n=e.i(624621);function r(e,t){let{pendingMessage:n,pendingMessageQueuedAt:r}=e;return null===n||null===r?null:t-r<=18e5?n:null}e.s(["L",0,r,"X",0,function(e){let i,a=(0,t.c)(2);return a[0]!==e?(i=t=>"chat-handoff"===t.pendingMessageSource?null:r(t,e()),a[0]=e,a[1]=i):i=a[1],(0,n.f)(i)}])}]); //# sourceMappingURL=1tkja6iokn6rp.js.map