(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)},644033,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:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))});e.s(["f",0,n],644033)},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)},828342,e=>{"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;ne(n(n({},t),r)),r;function r(e,...n){let i="string"==typeof e?[e]:e.raw,{alignValues:a=!1,escapeSpecialCharacters:o=Array.isArray(e),trimWhitespace:l=!0}=t,s="";for(let e=0;e" "===t[0]||" "===t[0]?t.slice(e):t).join("\n")}return l&&(s=s.trim()),o&&(s=s.replace(/\\n/g,"\n").replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\v/g,"\v").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\0/g,"\0").replace(/\\x([\da-fA-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g,(e,t)=>String.fromCodePoint(parseInt(t,16))).replace(/\\u([\da-fA-F]{4})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))),"u">typeof Bun&&(s=s.replace(/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,(e,t,n)=>{var r;return String.fromCodePoint(parseInt(null!=(r=null!=t?t:n)?r:"",16))})),s}}({});e.s(["f",0,r])},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])},10460,e=>{"use strict";var t=e.i(651681);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],10460)},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])},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),l=e.i(16043);function s(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}`:s(r)&&s(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 w(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 w(e){return Object.keys(e)}function k(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function _(){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 j(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(w(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=w(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=>w(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(E),L=(u=[],{init:function(e,t){return(u=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){u=u.filter(e=>e.destroy())}}),D=_(),O=(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:T,optionsAtMedia:F,optionsMediaQueries:R}=A,{on:P,off:H,emit:I}=O,V=!1,B=T(M,C.globalOptions),W=T(B),U=[];function q(t,n){V||(W=F(B=T(B,t)),U=n||U,function(){let{container:t,slides:n}=W;s=(f(t)?e.querySelector(t):t)||e.children[0];let r=f(n)?s.querySelectorAll(n):n;c=[].slice.call(r||s.children)}(),o=function t(n){let r=function(e,t,n,r,i,a,o){var l,s;let c,u,h,M,C,N,E,A,L,D,O,T,F,R,{align:P,axis:H,direction:I,startIndex:V,loop:B,duration:W,dragFree:U,dragThreshold:q,inViewThreshold:$,slidesToScroll:G,skipSnaps:X,containScroll:Z,watchResize:K,watchSlides:Y,watchDrag:Q,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"===I,M=(h="y"===H)||!u?1:-1,C=h?"top":u?"right":"left",N=h?"bottom":u?"left":"right",{scroll:h?"y":"x",cross:h?"x":"y",startEdge:C,endEdge:N,measureSize:function(e){let{height:t,width:n}=e;return h?t:n},direction:function(e){return e*M}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},eo=(l=P,s=ei,c={start:function(){return 0},center:function(e){return(s-e)/2},end:function(e){return s-e}},{measure:function(e,t){return f(l)?c[l](e):l(s,e,t)}}),el=!B&&!!Z,{slideSizes:es,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,n,r,i,a){let{measureSize:o,startEdge:l,endEdge:s}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return p(t[l]-e[l])}(),d=c?parseFloat(a.getComputedStyle(b(r)).getPropertyValue(`margin-${s}`)):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][l]-e[l]:f[t]+u}).map(p);return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}(er,et,en,n,B||!!Z,i),ef=function(e,t,n,r,i,a,o,l){let{startEdge:s,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[s]-a[m][s],v=i[s]-a[d][c],y=r||0!==m?0:u(o),w=p(v-(!r&&h?u(l):0)-(g+y));return f&&w>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,G,B,et,en,eu,ed),{snaps:em,snapsAligned:eh}=function(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:l}=i,s=l(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=l(c).map(e=>e[0]).map((e,t)=>e+s[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=j(-t+e,0),l=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),l=t===x(n);return t?l||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))),s=(i=l[0],a=b(l),j(l.lastIndexOf(i),l.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return l;let{min:n,max:i}=s;return l.slice(n,i)}(),scrollContainLimit:s}}(ei,ep,eh,Z),eb=el?eg:eh,{limit:ex}=(E=eb[0],{limit:j(B?E-ep:b(eb),E)}),ey=function e(t,n,r){let{constrain:i}=j(0,t),a=t+1,o=l(n);function l(e){return r?p((a+e)%a):i(e)}function s(){return e(t,o,r)}let c={get:function(){return o},set:function(e){return o=l(e),c},add:function(e){return s().set(o+e)},clone:s};return c}(x(eb),V,B),ew=ey.clone(),ek=v(n),e_=function(e,t,n,r){let i=_(),a=1e3/60,o=null,l=0,s=0;function c(e){if(!s)return;o||(o=e,n(),n());let i=e-o;for(o=e,l+=i;l>=a;)n(),l-=a;r(l/a),s&&(s=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(s),o=null,l=0,s=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(o=null,l=0)})},destroy:function(){u(),i.clear()},start:function(){s||(s=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:l,animation:s,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{let m=e.settled(),h=!u.shouldConstrain(),p=d?m:m&&h,g=p&&!l.pointerDown();g&&s.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)),ej=eb[ey.get()],ez=z(ej),eS=z(ej),eM=z(ej),eC=z(ej),eN=function(e,t,n,r,i){let a=0,o=0,l=i,s=.68,c=e.get(),u=0;function d(e){return l=e,m}function f(e){return s=e,m}let m={direction:function(){return o},duration:function(){return l},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return l?(n.set(e),a+=t/l,a*=s,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}(ez,eM,eS,eC,W),eE=function(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:l}=r;function s(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 s(i);let a=i.filter(e=>g(e)===r);return a.length?s(a):b(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:u,distance:d}=function(n){let r=e?o(n):l(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}}(s),f=!e&&a(s);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}}(B,eb,ep,ex,eC),eA=function(e,t,n,r,i,a,o){function l(i){let l=i.distance,s=i.index!==t.get();a.add(l),l&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){l(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);l(i.byIndex(r.get(),n))}}}(e_,ey,ew,eN,eE,eC,o),eL=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ex),eD=_(),eO=(L={},D=null,O=null,T=!1,{init:function(){A=new IntersectionObserver(e=>{T||(e.forEach(e=>{L[n.indexOf(e.target)]=e}),D=null,O=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:$}),n.forEach(e=>A.observe(e))},destroy:function(){A&&A.disconnect(),T=!0},get:function(e=!0){if(e&&D)return D;if(!e&&O)return O;let t=w(L).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=L[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(D=t),e||(O=t),t}}),{slideRegistry:eT}=function(e,t,n,r,i,a){let o,{groupSlides:l}=i,{min:s,max:c}=r;return{slideRegistry:(o=l(a),1===n.length?[a]:e&&"keepSnaps"!==t?o.slice(s,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)}}(el,Z,eb,ev,ef,ek),eF=function(e,t,n,r,i,a,o,l){let s={passive:!0,capture:!0},c=0;function u(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(f){l&&(a.add(document,"keydown",u,!1),t.forEach((t,u)=>{a.add(t,"focus",t=>{(m(l)||l(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)},s)}))}}}(e,n,eT,eA,eN,eD,o,J),eR={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:et,slideRects:en,animation:e_,axis:er,dragHandler:function(e,t,n,r,i,a,o,l,s,c,u,d,f,h,v,b,x,y){let{cross:w,direction:z}=e,S=["INPUT","SELECT","TEXTAREA"],M={passive:!1},C=_(),N=_(),E=j(50,225).constrain(h.measure(20)),A={mouse:300,touch:400},L={mouse:500,touch:600},D=v?43:25,O=!1,T=0,F=0,R=!1,P=!1,H=!1,I=!1;function V(e){if(!k(e,r)&&e.touches.length>=2)return B(e);let t=a.readPoint(e),n=a.readPoint(e,w),o=p(t-T),s=p(n-F);if(!P&&!I&&(!e.cancelable||!(P=o>s)))return B(e);let u=a.pointerMove(e);o>b&&(H=!0),c.useFriction(.3).useDuration(.75),l.start(),i.add(z(u)),e.preventDefault()}function B(e){var t;let n,r,i=u.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(v?L:A)[I?"mouse":"touch"],l=(t=z(o),n=d.add(-1*g(t)),r=u.byDistance(t,!v).distance,v||p(t)e.preventDefault(),M).add(t,"touchmove",()=>void 0,M).add(t,"touchend",()=>void 0).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",B).add(t,"contextmenu",B).add(t,"click",W,!0);function l(l){(m(y)||y(e,l))&&function(e){let l,s=k(e,r);if((I=s,H=v&&s&&!e.buttons&&O,O=p(i.get()-o.get())>=2,!s||0===e.button)&&(l=e.target.nodeName||"",!S.includes(l))){let r;R=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(o),r=I?n:t,N.add(r,"touchmove",V,M).add(r,"touchend",B).add(r,"mousemove",V,M).add(r,"mouseup",B),T=a.readPoint(e),F=a.readPoint(e,w),f.emit("pointerDown")}}(l)}},destroy:function(){C.clear(),N.clear()},pointerDown:function(){return R}}}(er,e,r,i,eC,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(k(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),l=i(e)-i(r)>170,s=t/o;return o&&!l&&p(s)>.1?s:0},readPoint:a}}(er,i),ez,e_,eA,eN,eE,ey,o,ea,U,q,X,Q),eventStore:eD,percentOfView:ea,index:ey,indexPrevious:ew,limit:ex,location:ez,offsetLocation:eM,previousLocation:eS,options:a,resizeHandler:function(e,t,n,r,i,a,o){let l,s,c=[e].concat(r),u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(s=f(e),u=r.map(f),l=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),l=n?s:u[o];if(p(f(n?e:r[o])-l)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(e=>l.observe(e))}))},destroy:function(){d=!0,l&&l.disconnect()}}}(t,o,i,n,er,K,ee),scrollBody:eN,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),l=j(.1,.99),s=!1;function c(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let s=e.reachedMin(t.get())?"min":"max",u=p(e[s]-t.get()),d=n.get()-t.get(),f=l.constrain(u/o);n.subtract(d*f),!i&&p(d)e.add(o))}}}(ep,ex,eM,[ez,eM,eS,eC]),scrollProgress:eL,scrollSnapList:eb.map(eL.get),scrollSnaps:eb,scrollTarget:eE,scrollTo:eA,slideLooper:function(e,t,n,r,i,a,o,l,s){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:z(-1),translate:S(e,s[t]),target:()=>l.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,es,ec,em,eb,eM,n),slideFocus:eF,slidesHandler:(R=!1,{init:function(e){Y&&(F=new MutationObserver(t=>{!R&&(m(Y)||Y(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(){F&&F.disconnect(),R=!0}}),slidesInView:eO,slideIndexes:ek,slideRegistry:eT,slidesToScroll:ef,target:eC,translate:S(er,t)};return eR}(e,s,c,N,E,n,O);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(W),R([B,...U.map(({options:e})=>e)]).forEach(e=>D.add(e,"change",$)),W.active&&(o.translate.to(o.location.get()),o.animation.init(),o.slidesInView.init(),o.slideFocus.init(K),o.eventHandler.init(K),o.resizeHandler.init(K),o.slidesHandler.init(K),o.options.loop&&o.slideLooper.loop(),s.offsetParent&&c.length&&o.dragHandler.init(K),l=L.init(K,U)))}function $(e,t){let n=Z();G(),q(T({startIndex:n},e),t),O.emit("reInit")}function G(){o.dragHandler.destroy(),o.eventStore.clear(),o.translate.clear(),o.slideLooper.clear(),o.resizeHandler.destroy(),o.slidesHandler.destroy(),o.slidesInView.destroy(),o.animation.destroy(),L.destroy(),D.clear()}function X(e,t,n){W.active&&!V&&(o.scrollBody.useBaseFriction().useDuration(!0===t?0:W.duration),o.scrollTo.index(e,n||0))}function Z(){return o.index.get()}let K={canScrollNext:function(){return o.index.add(1).get()!==Z()},canScrollPrev:function(){return o.index.add(-1).get()!==Z()},containerNode:function(){return s},internalEngine:function(){return o},destroy:function(){V||(V=!0,D.clear(),G(),O.emit("destroy"),O.clear())},off:H,on:P,emit:I,plugins:function(){return l},previousScrollSnap:function(){return o.indexPrevious.get()},reInit:$,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:Z,slideNodes:function(){return c},slidesInView:function(){return o.slidesInView.get()},slidesNotInView:function(){return o.slidesInView.get(!1)}};return q(t,n),setTimeout(()=>O.emit("init"),0),K}function N(e={},t=[]){let n=(0,l.useRef)(e),r=(0,l.useRef)(t),[i,a]=(0,l.useState)(),[o,s]=(0,l.useState)(),d=(0,l.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,l.useEffect)(()=>{c(n.current,e)||(n.current=e,d())},[e,d]),(0,l.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,l.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&o){C.globalOptions=N.globalOptions;let e=C(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[s,i]}function E(){return(E=Object.assign||function(e){for(var t=1;ttypeof window&&window.innerHeight||800],T=[-1,-1,-1],F=D({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 P=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 D({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)})}})}(),l=o.on,s=o.off,c=o.dispatch,u=F,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=D(E({},F,u,e))},p=function(e){var t=E({event:i,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:d.isMomentum,axisDelta:[0,0,0],axisVelocity:d.axisVelocity,axisMovement:d.axisMovement,get axisMovementProjection(){return A(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);c("wheel",E({},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?T:t.map(function(e){return e?-1:1});return E({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*O[e.deltaMode],n=e.deltaY*O[e.deltaMode],r=(e.deltaZ||0)*O[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,r]}),u.reverseSign),E({},a,{axisDelta:a.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),l=o.axisDelta,s=o.timeStamp,c=L(l);if(e.preventDefault&&g(c,l)&&e.preventDefault(),d.isStarted?d.isMomentum&&c>Math.max(2,2*d.lastAbsDelta)&&(M(!0),z()):z(),0===c&&Object.is&&Object.is(e.deltaX,-0)){f=!0;return}i=e,d.axisMovement=A(d.axisMovement,l),d.lastAbsDelta=c,d.scrollPointsToMerge.push({axisDelta:l,timeStamp:s}),b(),p({axisDelta:l,isStart:!d.isStartPublished}),d.isStartPublished=!0,S()},b=function(){if(2===d.scrollPointsToMerge.length){var e;d.scrollPoints.unshift({axisDeltaSum:d.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(A),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||_()}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),w(r)}},w=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))},k=function(e){return 0===e||e<=.96&&e>=.6},_=function(){if(d.accelerationFactors.length>=5){if(f&&(f=!1,L(d.axisVelocity)>=.2))return void j();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(k).length===e.length;return t||n})&&j(),d.accelerationFactors=e}},j=function(){d.isMomentum=!0},z=function(){(d=R()).isStarted=!0,d.startTime=Date.now(),a=void 0,f=!1},S=function(){clearTimeout(t),t=setTimeout(M,d.willEndTimeout)},M=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)},C=(n=[],D({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)}})),N=C.observe,P=C.unobserve,H=C.disconnect;return h(e),D({on:l,off:s,observe:N,unobserve:P,disconnect:H,feedWheel:m,updateOptions:h})};var H={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function I(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(r,i){var a,o,l,s=i.mergeOptions,c=i.optionsAtMedia,u=s(H,I.globalOptions);t=c(s(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=P({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,s="x"===m?a:i,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(o)>Math.abs(s))||b||e.isMomentum||w||function(e){try{l=new MouseEvent("mousedown",e.event),S(l)}catch(e){return n()}b=!0,x=0,document.documentElement.addEventListener("mousemove",j,!0),document.documentElement.addEventListener("mouseup",j,!0),document.documentElement.addEventListener("mousedown",j,!0),t.wheelDraggingClass&&f.classList.add(t.wheelDraggingClass)}(e),w&&e.isEnding&&(w=!1),b&&!function(e){var t=M(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if((x+=Math.abs(r))>y)return w=!0,k(e),!0}else x=0;return!1}(e)&&(u?k(e):S(z("mousemove",e)))}),b=!1,x=0,y=0,w=!1;function k(e){b=!1,S(z("mouseup",e)),_(),t.wheelDraggingClass&&f.classList.remove(t.wheelDraggingClass)}function _(){document.documentElement.removeEventListener("mousemove",j,!0),document.documentElement.removeEventListener("mouseup",j,!0),document.documentElement.removeEventListener("mousedown",j,!0)}function j(e){b&&e.isTrusted&&e.stopImmediatePropagation()}function z(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(M(t).isAtBoundary){var o=Math.min(x/y,1),s=x*(n>0?-1:1)*(.25+.5*o);n+=s,r+=s}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:l.clientX+n,clientY:l.clientY+r,screenX:l.screenX+n,screenY:l.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function S(e){r.containerNode().dispatchEvent(e)}function M(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),_()}},destroy:function(){return n()}}}I.globalOptions=void 0;var V=e.i(196991),B=e.i(288265),W=e.i(139697);let U=(0,o.f)("flex",{variants:{orientation:{horizontal:"-ml-4",vertical:"-mt-4 flex-col"}},defaultVariants:{orientation:"horizontal"}}),q=(0,o.f)("min-w-0 shrink-0 grow-0 basis-full",{variants:{orientation:{horizontal:"pl-4",vertical:"pt-4"}},defaultVariants:{orientation:"horizontal"}}),$=(0,l.createContext)(null);function G(){let e=(0,l.useContext)($);if(!e)throw Error("useCarousel must be used within a ");return e}let X=e=>{let i,a,o,s,c,u,d,f,m,h,p,g,v,b,x,y,w,k,_,j,z,S,M,C=(0,n.c)(54);C[0]!==e?({orientation:m,opts:s,setApi:f,plugins:u,onScrollStatusChange:o,className:a,children:i,ref:d,...c}=e,C[0]=e,C[1]=i,C[2]=a,C[3]=o,C[4]=s,C[5]=c,C[6]=u,C[7]=d,C[8]=f,C[9]=m):(i=C[1],a=C[2],o=C[3],s=C[4],c=C[5],u=C[6],d=C[7],f=C[8],m=C[9]);let E=void 0===m?"horizontal":m;C[10]!==s||C[11]!==E||C[12]!==u?(h={opts:s,orientation:E,plugins:u},C[10]=s,C[11]=E,C[12]=u,C[13]=h):h=C[13];let[A,L]=function(e){let t,r,i=(0,n.c)(5),{opts:a,orientation:o,plugins:l}=e;i[0]!==l?(t=l??[I()],i[0]=l,i[1]=t):t=i[1];let s=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],N(r,s)}(h),[D,O]=(0,l.useState)(!1),[T,F]=(0,l.useState)(!1),R=(0,B.f)();C[14]!==o?(p=e=>{if(!e)return;let t={canScrollPrev:e.canScrollPrev(),canScrollNext:e.canScrollNext()};O(t.canScrollPrev),F(t.canScrollNext),o?.(t)},C[14]=o,C[15]=p):p=C[15];let P=p;C[16]!==L?(g=()=>{L?.scrollPrev()},C[16]=L,C[17]=g):g=C[17];let H=g;C[18]!==L?(v=()=>{L?.scrollNext()},C[18]=L,C[19]=v):v=C[19];let V=v;C[20]!==V||C[21]!==H?(b=e=>{"ArrowLeft"===e.key?(e.preventDefault(),H()):"ArrowRight"===e.key&&(e.preventDefault(),V())},C[20]=V,C[21]=H,C[22]=b):b=C[22];let W=b;C[23]!==L||C[24]!==f?(x=()=>{L&&f&&f(L)},y=[L,f],C[23]=L,C[24]=f,C[25]=x,C[26]=y):(x=C[25],y=C[26]),(0,l.useEffect)(x,y),C[27]!==L||C[28]!==P?(k=()=>{if(L)return P(L),L.on("reInit",P),L.on("select",P),L.on("scroll",P),()=>{L?.off("reInit",P),L?.off("select",P),L?.off("scroll",P)}},w=[L,P],C[27]=L,C[28]=P,C[29]=w,C[30]=k):(w=C[29],k=C[30]),(0,l.useEffect)(k,w);let U=E||(s?.axis==="y"?"vertical":"horizontal");C[31]!==L||C[32]!==T||C[33]!==D||C[34]!==A||C[35]!==s||C[36]!==V||C[37]!==H||C[38]!==U?(_={carouselRef:A,api:L,opts:s,orientation:U,scrollPrev:H,scrollNext:V,canScrollPrev:D,canScrollNext:T},C[31]=L,C[32]=T,C[33]=D,C[34]=A,C[35]=s,C[36]=V,C[37]=H,C[38]=U,C[39]=_):_=C[39];let q=_;return C[40]!==a?(j=(0,r.f)("group/carousel relative hover:cursor-move",a),C[40]=a,C[41]=j):j=C[41],C[42]!==R?(z=R("carousel"),C[42]=R,C[43]=z):z=C[43],C[44]!==i||C[45]!==W||C[46]!==c||C[47]!==d||C[48]!==j||C[49]!==z?(S=(0,t.jsx)("section",{ref:d,onKeyDownCapture:W,className:j,"aria-roledescription":z,...c,children:i}),C[44]=i,C[45]=W,C[46]=c,C[47]=d,C[48]=j,C[49]=z,C[50]=S):S=C[50],C[51]!==q||C[52]!==S?(M=(0,t.jsx)($.Provider,{value:q,children:S}),C[51]=q,C[52]=S,C[53]=M):M=C[53],M},Z=e=>{let i,a,o,l,s,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}=G();return u[4]!==i||u[5]!==f?(l=(0,r.f)(U({orientation:f}),i),u[4]=i,u[5]=f,u[6]=l):l=u[6],u[7]!==a||u[8]!==o||u[9]!==l?(s=(0,t.jsx)("div",{ref:o,className:l,...a}),u[7]=a,u[8]=o,u[9]=l,u[10]=s):s=u[10],u[11]!==d||u[12]!==s?(c=(0,t.jsx)("div",{ref:d,children:s}),u[11]=d,u[12]=s,u[13]=c):c=u[13],c},K=e=>{let i,a,o,l,s,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}=G(),f=(0,B.f)();return u[4]!==f?(l=f("slide"),u[4]=f,u[5]=l):l=u[5],u[6]!==i||u[7]!==d?(s=(0,r.f)(q({orientation:d}),i),u[6]=i,u[7]=d,u[8]=s):s=u[8],u[9]!==a||u[10]!==o||u[11]!==l||u[12]!==s?(c=(0,t.jsx)("div",{ref:o,role:"group","aria-roledescription":l,className:s,...a}),u[9]=a,u[10]=o,u[11]=l,u[12]=s,u[13]=c):c=u[13],c},Y=e=>{let a,o,l,s,c,u,d,f,m,h=(0,n.c)(19);h[0]!==e?({className:a,variant:s,size:c,ref:l,...o}=e,h[0]=e,h[1]=a,h[2]=o,h[3]=l,h[4]=s,h[5]=c):(a=h[1],o=h[2],l=h[3],s=h[4],c=h[5]);let p=void 0===s?"ghost":s,g=void 0===c?"icon-sm":c,{orientation:v,scrollPrev:b,canScrollPrev:x}=G(),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 w=!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)(V.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})}),h[10]=f):f=h[10],h[11]!==o||h[12]!==l||h[13]!==b||h[14]!==g||h[15]!==u||h[16]!==w||h[17]!==p?(m=(0,t.jsxs)(W.Button,{ref:l,variant:p,size:g,shape:"pill",className:u,disabled:w,onClick:b,...o,children:[d,f]}),h[11]=o,h[12]=l,h[13]=b,h[14]=g,h[15]=u,h[16]=w,h[17]=p,h[18]=m):m=h[18],m},Q=e=>{let i,o,l,s,c,u,d,f,m,h=(0,n.c)(19);h[0]!==e?({className:i,variant:s,size:c,ref:l,...o}=e,h[0]=e,h[1]=i,h[2]=o,h[3]=l,h[4]=s,h[5]=c):(i=h[1],o=h[2],l=h[3],s=h[4],c=h[5]);let p=void 0===s?"ghost":s,g=void 0===c?"icon-sm":c,{orientation:v,scrollNext:b,canScrollNext:x}=G(),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 w=!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)(V.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})}),h[10]=f):f=h[10],h[11]!==o||h[12]!==l||h[13]!==b||h[14]!==g||h[15]!==u||h[16]!==w||h[17]!==p?(m=(0,t.jsxs)(W.Button,{ref:l,variant:p,size:g,shape:"pill",className:u,disabled:w,onClick:b,...o,children:[d,f]}),h[11]=o,h[12]=l,h[13]=b,h[14]=g,h[15]=u,h[16]=w,h[17]=p,h[18]=m):m=h[18],m};function J(e){return(0,t.jsx)(K,{className:"basis-auto",children:e.body},e.id)}e.s(["f",0,function(e){let i,a,o,l,s,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?(l=m.map(J),f[8]=m,f[9]=l):l=f[9],f[10]!==l?(s=(0,t.jsx)(Z,{children:l}),f[10]=l,f[11]=s):s=f[11],f[12]!==v||f[13]!==g?.align?(c=!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Y,{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)(Q,{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]!==s||f[18]!==c?(u=(0,t.jsxs)(X,{className:a,opts:o,children:[s,c]}),f[15]=a,f[16]=o,f[17]=s,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)},913743,9634,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(647204),i=e.i(16043),a=e.i(136562),o=e.i(535072);let l=()=>{if("u"0?e:void 0};var s=e.i(866969),c=e.i(67089);let u=null,d=new Map,f=null,m=0,h=(e,t)=>{let n=d.get(e);n&&(d.delete(e),clearTimeout(n.timeoutId),n.resolve(t))},p=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={highlight:g},t[0]=e):e=t[0],e};function g(t,n,i){return(({code:t,lang:n,theme:i})=>new Promise(a=>{let o=(()=>{if(f)return null;if(u)return u;let t=(0,r.$)(()=>e.r(405266)(Worker));return(0,r.V)(t)?((0,c.L)("Failed to initialize highlight worker",{message:"Failed to initialize highlight worker",error:t.error,metadata:{location:"highlight.singleton.ts"}}),f=t.error instanceof Error?t.error:Error(String(t.error)),u=null,null):((u=t.data).onmessage=e=>{let{id:t,lines:n,preStyle:r,error:i}=e.data;if(i){(0,c.L)("highlight worker processing error",{message:"highlight worker processing error",error:i,metadata:{location:"highlight.singleton.ts"}}),h(t,null);return}m=0,h(t,{lines:n??[],preStyle:r??""})},u.onerror=e=>{for(let t of((0,c.L)("highlight worker script error",{message:"highlight worker script error",error:e,metadata:{location:"highlight.singleton.ts"}}),(m+=1)>2&&(f=Error(e.message||"highlight worker script error")),u?.terminate(),u=null,d.keys()))h(t,null)},u)})();if(!o)return void a(null);let l=crypto.randomUUID(),s=setTimeout(()=>h(l,null),1e4);d.set(l,{resolve:a,timeoutId:s});let p=(0,r.$)(()=>o.postMessage({id:l,code:t,lang:n,theme:i}));(0,r.V)(p)&&h(l,null)}))({code:t,lang:n,theme:i})}e.s(["f",0,p],9634);let v=(0,i.memo)(e=>{let r,i=(0,n.c)(2),{html:a}=e;return i[0]!==a?(r=(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),i[0]=a,i[1]=r):r=i[1],r}),b=(0,i.memo)(e=>{let r,i=(0,n.c)(2),{text:a}=e,o=a||" ";return i[0]!==o?(r=(0,t.jsx)("div",{children:o}),i[0]=o,i[1]=r):r=i[1],r});e.s(["f",0,({code:e,lang:c,theme:u,roundedCorners:d=!0,border:f=!0,codeBackgroundClassName:m="bg-doc-surface",lineNumbers:h=!1,wrap:g=!1})=>{let[x,y]=(0,i.useState)([]),[w,k]=(0,i.useState)({}),[_,j]=(0,i.useState)(""),z=(0,i.useRef)(!1),S=(0,i.useRef)(null),M=(0,i.useRef)(0),{highlight:C}=p(),N=((e=500)=>{let t=(0,i.useMemo)(l,[]),n=(0,o.o)("(min-width: 768px)");return(0,i.useMemo)(()=>void 0!==t?t<2?4e3:t<4?2e3:e:n?e:2e3,[t,n,e])})(500),E=(0,i.useCallback)(e=>{var t;let n,r=(t=e.preStyle,n={},t&&t.split(";").forEach(e=>{let[t,r]=e.split(/:(.*)/s);t&&r&&(n[t.trim().replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())]=r.trim())}),n);r.backgroundColor="transparent",r.whiteSpace="pre",k(r)},[]);(0,i.useEffect)(()=>{let e=!1;return(0,r.$)(()=>C("",c,u)).then(t=>{e||!(0,r.V)(t)&&t.data&&E(t.data)}),()=>{e=!0}},[c,u,C,E]),(0,i.useEffect)(()=>{S.current={code:e,lang:c,theme:u},M.current=0},[e,c,u]);let A=(0,i.useCallback)(async()=>{if(z.current||!S.current)return;z.current=!0;let e=S.current;S.current=null;let t=await (0,r.$)(()=>C(e.code,e.lang,e.theme));(0,r.V)(t)||!t.data?(M.current+=1,M.current<=5&&(S.current??=e)):(M.current=0,E(t.data),y(t.data.lines),j(e.code)),z.current=!1},[C,E]);!function(e){let t,r,a=(0,n.c)(5),{run:o,intervalMs:l,jobKey:c}=e;a[0]!==o?(t=()=>{o()},a[0]=o,a[1]=t):t=a[1],a[2]!==c||a[3]!==o?(r=[c,o],a[2]=c,a[3]=o,a[4]=r):r=a[4],(0,i.useEffect)(t,r),(0,s.f)(o,l)}({run:(0,i.useCallback)(()=>{A()},[A]),intervalMs:N,jobKey:`${c}|${u}|${e}`});let L=(0,i.useMemo)(()=>_&&e.startsWith(_)?e.substring(_.length):e,[e,_]);(0,i.useEffect)(()=>{_&&!e.startsWith(_)&&y([])},[e,_]);let D=(0,i.useMemo)(()=>L.split("\n"),[L]);return(0,t.jsx)("pre",{className:(0,a.f)("highlights overflow-x-auto min-w-0",f&&"border border-border",d&&"rounded-lg"),style:w,children:(0,t.jsxs)("code",{className:(0,a.f)("p-4",g?"block whitespace-pre-wrap break-words":"inline-block min-w-full whitespace-pre",!h&&!g&&"md:whitespace-pre-wrap",h&&"[counter-reset:line] [&>div]:before:[counter-increment:line] [&>div]:before:content-[counter(line)] [&>div]:before:mr-3 [&>div]:before:inline-block [&>div]:before:w-7 [&>div]:before:text-right [&>div]:before:tabular-nums [&>div]:before:select-none [&>div]:before:text-faint",h&&g&&"[&>div]:pl-10 [&>div]:-indent-10",m),children:[x.map((e,n)=>(0,t.jsx)(v,{html:e},`h-${n}`)),D.slice(+!!_).map((e,n)=>(0,t.jsx)(b,{text:e},`r-${n}`))]})})}],913743)},246705,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(207298),i=e.i(288265),a=e.i(872635),o=e.i(354896),l=e.i(10460),s=e.i(961160),c=e.i(16043),u=e.i(136562),d=e.i(192668),f=e.i(199630),m=e.i(913743),h=e.i(139697),p=e.i(988590),g=e.i(828342);let v={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"shell",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},b={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"bash",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},x="code",y=new Map([["javascript","JavaScript"],["typescript","TypeScript"],["tsx","TSX"],["python","Python"],["shell","Shell"],["rust","Rust"],["go","Go"],["json","JSON"],["html","HTML"],["ruby","Ruby"]]);function w(e){let t=e.toLowerCase();return(0,p.q)(t,v)?t:void 0}var k=e.i(609623);let _={Block:"block",Line:"line"};function j(e){return"string"==typeof e.value}let z=(0,r.f)("overflow-auto bg-doc-surface font-mono text-body leading-relaxed text-foreground",{variants:{maxHeight:{sm:"max-h-80",md:"max-h-96",lg:"max-h-128",xl:"max-h-none"}},defaultVariants:{maxHeight:"md"}});e.s(["CodeBlock",0,e=>{var r,p;let v,S,M,C,N,E,A,L,D,O,T,F,R,P,H,I,V,B,W,U=(0,n.c)(69),q=(0,i.f)();U[0]!==q?(v=e=>{let t;return e===x?q("Code"):(void 0===(t=w(e))?void 0:y.get(t))??e},U[0]=q,U[1]=v):v=U[1];let $=v,{resolvedTheme:G}=(0,s.i)(),X=!(0,f.f)(),{isCopied:Z,copyToClipboard:K}=(0,d.f)(1200),[Y,Q]=(0,c.useState)(0),J=!0===e.collapsible,[ee,et]=(0,c.useState)(J&&!0===e.defaultCollapsed),en=(0,c.useId)(),er=(B=(0,n.c)(2),W=(0,c.useRef)(null),B[0]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{let e=W.current;if(!e)return;let t=function(){var t;let n,r;if(!e)return;let i=(n=(t=e).scrollLeft>2,r=t.scrollLeft+t.clientWidth{e.removeEventListener("scroll",t),n.disconnect()}},V=[],B[0]=I,B[1]=V):(I=B[0],V=B[1]),(0,c.useEffect)(I,V),W),{value:ei}=e,ea=j(e)?e.title:void 0,eo=j(e)?e.language:void 0,el=j(e)?e.rawLanguage:void 0;U[2]!==eo||U[3]!==el||U[4]!==ea||U[5]!==ei?(r={title:ea,language:eo,rawLanguage:el},S="string"==typeof ei?[{code:ei,title:r.title??r.language??r.rawLanguage??x,language:r.language,rawLanguage:r.rawLanguage}]:Array.isArray(ei)?ei:Object.entries(ei).map(([e,t])=>({rawLanguage:e,title:e,code:t??"",language:w(e)})),U[2]=eo,U[3]=el,U[4]=ea,U[5]=ei,U[6]=S):S=U[6];let es=S,ec="light"===G?e.lightTheme??"github-light":e.darkTheme??"github-dark",eu=void 0!==es[Y]?Y:0,ed=es[eu]??es[0];U[7]!==ed.code||U[8]!==e.dedent?(p=ed.code,M=e.dedent?(0,g.f)(p):p,U[7]=ed.code,U[8]=e.dedent,U[9]=M):M=U[9];let ef=M;U[10]!==ed?(C=function(e){if(e.language)return b[e.language];if(!e.rawLanguage)return"text";let t=w(e.rawLanguage);return t?b[t]:e.rawLanguage}(ed),U[10]=ed,U[11]=C):C=U[11];let em=C;U[12]!==ef||U[13]!==K||U[14]!==e?(N=()=>{K(ef,{shouldWaitForReset:!1}).then(t=>{t&&e.onCopy?.()})},U[12]=ef,U[13]=K,U[14]=e,U[15]=N):N=U[15];let eh=N;U[16]!==eh||U[17]!==Z||U[18]!==q||U[19]!==e.hideCopy?(E=e.hideCopy?null:(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm",touchTarget:"below-sm","aria-label":Z?q("Copied code"):q("Copy code"),onClick:eh,className:"shrink-0",children:(0,t.jsx)(k.f,{active:Z,from:(0,t.jsx)(l.f,{className:"size-4"}),to:(0,t.jsx)(a.f,{className:"size-4"})})}),U[16]=eh,U[17]=Z,U[18]=q,U[19]=e.hideCopy,U[20]=E):E=U[20];let ep=E;if(e.variant===_.Line){let n,r,i;return U[21]!==e.className?(n=(0,u.f)("flex items-center gap-2 rounded-lg border border-border bg-doc-surface pr-1 pl-4",e.className),U[21]=e.className,U[22]=n):n=U[22],U[23]!==ef||U[24]!==er?(r=(0,t.jsx)("code",{ref:er,"data-testid":"code-block",className:"min-w-0 flex-1 overflow-x-auto overscroll-x-contain bg-transparent py-3 font-mono text-body whitespace-pre text-foreground scrollbar-hide",children:ef}),U[23]=ef,U[24]=er,U[25]=r):r=U[25],U[26]!==ep||U[27]!==n||U[28]!==r?(i=(0,t.jsxs)("div",{className:n,children:[r,ep]}),U[26]=ep,U[27]=n,U[28]=r,U[29]=i):i=U[29],i}let eg=es.length>1;U[30]!==e.bodyClassName||U[31]!==e.maxHeight?(A=(0,u.f)(z({maxHeight:e.maxHeight}),e.bodyClassName),U[30]=e.bodyClassName,U[31]=e.maxHeight,U[32]=A):A=U[32];let ev=A;U[33]!==ef||U[34]!==em||U[35]!==ev||U[36]!==en||U[37]!==ec||U[38]!==X?(L=X?(0,t.jsx)("pre",{"data-testid":"code-block",id:en,className:ev,children:(0,t.jsx)("code",{className:"inline-block min-w-full whitespace-pre bg-transparent p-4 md:whitespace-pre-wrap",children:ef})}):(0,t.jsx)("div",{"data-testid":"code-block",id:en,className:ev,children:(0,t.jsx)(m.f,{code:ef,lang:em,theme:ec,roundedCorners:!1,border:!1,codeBackgroundClassName:"bg-transparent"})}),U[33]=ef,U[34]=em,U[35]=ev,U[36]=en,U[37]=ec,U[38]=X,U[39]=L):L=U[39];let eb=L;U[40]!==e.className?(D=(0,u.f)("overflow-hidden rounded-lg border border-border bg-card",e.className),U[40]=e.className,U[41]=D):D=U[41];let ex=!ee&&"border-b border-border";U[42]!==e.tabClassName||U[43]!==ex?(O=(0,u.f)("flex h-9 items-center justify-between gap-2 px-3",ex,e.tabClassName),U[42]=e.tabClassName,U[43]=ex,U[44]=O):O=U[44],U[45]!==ed.title||U[46]!==en||U[47]!==q||U[48]!==ee||U[49]!==J?(T=J?(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-controls":en,"aria-expanded":!ee,"aria-label":ee?q("Show {title}",{title:ed.title}):q("Hide {title}",{title:ed.title}),onClick:()=>et(!ee),className:"shrink-0",children:(0,t.jsx)(o.f,{className:(0,u.f)("size-4 transition-transform",ee&&"-rotate-90")})}):null,U[45]=ed.title,U[46]=en,U[47]=q,U[48]=ee,U[49]=J,U[50]=T):T=U[50],U[51]!==ed.title||U[52]!==eg||U[53]!==e||U[54]!==eu||U[55]!==es||U[56]!==$?(F=eg?(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:es.map((n,r)=>(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"xs","aria-pressed":eu===r,onClick:()=>{Q(r),e.onTabChange?.(r)},tone:eu===r?void 0:"subdued",className:eu===r?"bg-accent text-accent-foreground":void 0,children:$(n.title)},n.title))}):(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:$(ed.title)}),U[51]=ed.title,U[52]=eg,U[53]=e,U[54]=eu,U[55]=es,U[56]=$,U[57]=F):F=U[57],U[58]!==T||U[59]!==F?(R=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1",children:[T,F]}),U[58]=T,U[59]=F,U[60]=R):R=U[60],U[61]!==ep||U[62]!==O||U[63]!==R?(P=(0,t.jsxs)("div",{className:O,children:[R,ep]}),U[61]=ep,U[62]=O,U[63]=R,U[64]=P):P=U[64];let ey=ee?null:eb;return U[65]!==P||U[66]!==ey||U[67]!==D?(H=(0,t.jsxs)("div",{className:D,children:[P,ey]}),U[65]=P,U[66]=ey,U[67]=D,U[68]=H):H=U[68],H},"CodeBlockVariant",0,_],246705)},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},l=function(e,t){"function"==typeof e?e(t):e.current=t},s=function(e,t){var n=i.default.useRef();return i.default.useCallback(function(r){e.current=r,n.current&&l(n.current,null),n.current=t,t&&l(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)},w=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],k=i.forwardRef(function(e,t){var n=e.cacheMeasurements,a=e.maxRows,o=e.minRows,l=e.onChange,c=void 0===l?m:l,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,w),k=void 0!==v.value,_=i.useRef(null),j=s(_,t),z=i.useRef(0),S=i.useRef(),M=function(){var e=_.current,t=n&&S.current?S.current:g(e);if(t){S.current=t;var r,i,l,s,c,m,h,v,b,x,y,w=(r=e.value||e.placeholder||"x",void 0===(i=o)&&(i=1),void 0===(l=a)&&(l=1/0),d||((d=document.createElement("textarea")).setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),u(d)),null===d.parentNode&&document.body.appendChild(d),s=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-s)*i,"border-box"===h&&(x=x+s+c),v=Math.max(x,v),y=b*l,"border-box"===h&&(y=y+s+c),[v=Math.min(y,v),b]),k=w[0],j=w[1];z.current!==k&&(z.current=k,e.style.setProperty("height",k+"px","important"),p(k,{rowHeight:j}))}};return i.useLayoutEffect(M),b(_,function(){if(!k){var e=_.current.value;requestAnimationFrame(function(){var t=_.current;t&&e!==t.value&&M()})}}),x(M),y(M),i.createElement("textarea",r({},v,{onChange:function(e){k||M(),c(e)},ref:j}))}),_=e.i(136562),j=e.i(199630),z=e.i(554395);e.s(["f",0,function(e){let r,i,a,o,l,s,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,j.f)();c[5]!==r||c[6]!==i?(l=(0,_.f)(z.g,"resize-none",i,r),c[5]=r,c[6]=i,c[7]=l):l=c[7];let d=l;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?(s=(0,t.jsx)(k,{className:d,ref:o,...a}),c[13]=d,c[14]=a,c[15]=o,c[16]=s):s=c[16],s}],626499)},866969,e=>{"use strict";var t=e.i(663456),n=e.i(16043),r=e.i(143253);e.s(["f",0,function(e,i){let a,o,l,s,c=(0,t.c)(6),u=(0,n.useRef)(e);c[0]!==e?(a=()=>{u.current=e},o=[e],c[0]=e,c[1]=a,c[2]=o):(a=c[1],o=c[2]),(0,r.f)(a,o),c[3]!==i?(l=()=>{if(null===i)return;let e=setInterval(()=>{u.current()},i);return()=>{clearInterval(e)}},s=[i],c[3]=i,c[4]=l,c[5]=s):(l=c[4],s=c[5]),(0,n.useEffect)(l,s)}])},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",l=(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"),s=(0,i.f)(o,"border object-cover ph-no-capture");e.s(["V",0,function(e){let i,o,l=(0,n.c)(5),{children:s,hint:c}=e;return l[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,l[0]=c,l[1]=i):i=l[1],l[2]!==s||l[3]!==i?(o=(0,t.jsxs)("span",{className:"flex h-4 items-center gap-1 whitespace-nowrap text-2xs text-muted-foreground",children:[s,i]}),l[2]=s,l[3]=i,l[4]=o):o=l[4],o},"S",0,l,"k",0,s])},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),l=e.i(16043),s=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,w=(0,s.f)(),k=(0,c.P)(),[,_]=(0,l.useReducer)(f,0);if(v[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{let e=setInterval(_,6e4);return()=>clearInterval(e)},h=[],v[0]=m,v[1]=h):(m=v[0],h=v[1]),(0,l.useEffect)(m,h),void 0===b)return null;let j=1e3*b;v[2]!==j||v[3]!==y?(p=d(j,y()),v[2]=j,v[3]=y,v[4]=p):p=v[4];let z=p;v[5]!==j||v[6]!==w||v[7]!==k?(g=w.dateTime(j,{timeZone:k,preset:"medium"})??new Date(j).toISOString(),v[5]=j,v[6]=w,v[7]=k,v[8]=g):g=v[8];let S=g;switch(z.kind){case"expired":{let e,n,i;return v[9]!==S?(e=(0,t.jsx)(o.d,{children:S}),v[9]=S,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]!==z.minutes?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.d,{children:z.minutes})," minute"]}),n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.d,{children:z.minutes})," minutes"]}),v[14]=z.minutes,v[15]=e,v[16]=n):(e=v[15],n=v[16]),v[17]!==z.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:z.minutes,one:e,other:n}),". Download it to keep a copy."]})}),v[17]=z.minutes,v[18]=e,v[19]=n,v[20]=r):r=v[20],r}case"available":{let e;return v[21]!==S?(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:S}),". Download it to keep a copy."]})}),v[21]=S,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:l}=e;return o[0]!==l?(r=(0,i.f)("braille-sequence inline-flex w-4 shrink-0 justify-start font-mono text-sm leading-none text-muted-foreground",l),o[0]=l,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,l,s,c,u=(0,n.c)(12);u[0]!==e?({className:r,label:a,shouldShimmer:l,...o}=e,u[0]=e,u[1]=r,u[2]=a,u[3]=o,u[4]=l):(r=u[1],a=u[2],o=u[3],l=u[4]);let d=void 0===l||l?"processing-label":"";return u[5]!==r||u[6]!==d?(s=(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]=s):s=u[7],u[8]!==a||u[9]!==o||u[10]!==s?(c=(0,t.jsx)("span",{...o,className:s,"data-label":a,children:a}),u[8]=a,u[9]=o,u[10]=s,u[11]=c):c=u[11],c}function l(){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 s,c,u,d,f,m,h,p=(0,n.c)(14),{className:g,label:v}=e,b=(0,r.f)();return p[0]!==g?(s=(0,i.f)("inline-flex items-center justify-start gap-2",g),p[0]=g,p[1]=s):s=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]!==s||p[9]!==d?(f=(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:s,children:[c,d]}),p[8]=s,p[9]=d,p[10]=f):f=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(l,{}),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,l,"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])},769715,e=>{e.q("/_next/static/immutable/media/highlight.worker.3-ioem5915ckg.ts")},405266,e=>{e.v(e.r(510914).f("static/immutable/chunks/turbopack-worker-38eq_8frvyaul.js",["static/immutable/chunks/0t_n-r81acfo9.js","static/immutable/chunks/418fptazfd3br.js","static/immutable/chunks/turbopack-0bzpzepyyv54r.js","static/immutable/chunks/turbopack-35u-62ruoxs7i.js"]))},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 l=e.i(173589);let s={NonRetryable:"non_retryable",Retryable:"retryable",Unknown:"unknown"},c=t.z.enum([s.NonRetryable,s.Retryable,s.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,s,"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"},w=t.z.enum([y.Healthy,y.Degraded,y.Bypassed]),k={Healthy:"healthy",Unhealthy:"unhealthy"},_=t.z.enum([k.Healthy,k.Unhealthy]),j=t.z.enum(["rebooted_empty","vm_not_running","inconclusive"]),z={NoRemote:"no_remote",NotAGitRepository:"not_a_git_repository"},S=t.z.enum([z.NoRemote,z.NotAGitRepository]),M=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:S}).nullish(),observed_at:t.z.string().datetime()}),C=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:l.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:w.nullish().catch(void 0),health_observed_at:t.z.string().datetime().nullish().catch(void 0),live_health:_.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:j.nullish().catch(void 0),backup_status:M.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:C.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 N=t.z.string().min(1).max(255);t.z.object({vcs_org:N,repo:t.z.string().nullable(),default_branch:t.z.string().nullish()});let E=t.z.object({snapshot_name:t.z.string(),requested_at:t.z.string()}),A={Rust:"rust"},L=t.z.enum([A.Rust]),D={Gce:"gce",Substrate:"substrate"};t.z.enum([D.Gce,D.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:E.optional().catch(void 0),intern_runtime:L.optional().catch(void 0)}).extend({status:g.optional(),intern_runtime:L.optional()}).partial(),e.s(["S",0,x,"D",0,z,"K",0,y,"P",0,D,"T",0,k,"U",0,v,"a",0,A,"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])},473028,e=>{"use strict";var t=e.i(647204);let n=/^[A-Za-z0-9+/\-_=\s]*$/,r=/^$/,i="data:",a=";base64,";function o(e){let t=n.test(e);return r.test(""),t}e.s(["k",0,function(e){let n=e.indexOf(";");if(e.startsWith(i)&&n>i.length&&e.startsWith(a,n)){let r=e.slice(i.length,n),l=e.slice(n+a.length);if(r&&l&&!r.includes(":")&&o(l))return(0,t.N)({mimeType:r,base64:l})}return function(e){let[n,r]=e.split(";");if(!n||!r)return(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: missing data prefix or base64 payload"});let i=n.split(":")[1],a=r.split(",")[1];return i&&a?o(a)?(0,t.N)({mimeType:i,base64:a}):(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: payload is not base64-encoded data"}):(0,t.Y)({location:"decodeBase64DataURL",message:"Invalid base64 data URL: missing mime type or base64 content"})}(e)},"d",0,function({mimeType:e,base64:t}){return`data:${e};base64,${t}`},"i",0,function(e){return e.startsWith("data:")&&e.includes(";base64,",5)&&!e.includes("\n")&&!e.includes("\r")&&!e.includes("\u2028")&&!e.includes("\u2029")}])},820223,e=>{"use strict";let t;var n=e.i(647204),r=e.i(167182);let i="function"==typeof r.Buffer,a="function"==typeof TextDecoder?new TextDecoder:void 0,o="function"==typeof TextEncoder?new TextEncoder:void 0,l=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),s=(t={},l.forEach((e,n)=>t[e]=n),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),f=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m="function"==typeof btoa?e=>btoa(e):i?e=>r.Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,i,a="",o=e.length%3;for(let o=0;o255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError("invalid character found");a+=l[(t=n<<16|r<<8|i)>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},h=i?e=>r.Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;nt?f(h(e)):h(e),g=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b=i?e=>r.Buffer.from(e,"utf8").toString("base64"):o?e=>h(o.encode(e)):e=>m(e.replace(v,g)),x=(e,t=!1)=>t?f(b(e)):b(e),y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u((1023&t)+56320);case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):i?e=>r.Buffer.from(e,"base64").toString("binary"):e=>{let t,n,r;if(e=e.replace(/\s+/g,""),!c.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let i=[];for(let a=0;a>16&255)):64===r?i.push(u(t>>16&255,t>>8&255)):i.push(u(t>>16&255,t>>8&255,255&t));return i.join("")},_=i?e=>d(r.Buffer.from(e,"base64")):e=>d(k(e).split("").map(e=>e.charCodeAt(0))),j=e=>_(S(e)),z=i?e=>r.Buffer.from(e,"base64").toString("utf8"):a?e=>a.decode(_(e)):e=>k(e).replace(y,w),S=e=>e.replace(/[-_]/g,e=>"-"==e?"+":"/").replace(/[^A-Za-z0-9\+\/]/g,"");function M(e){let t=0,n=0,r=!1,i=!1;for(let a=0;a=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){if(n>0)return!1;t+=1}else if(43===o||47===o){if(n>0)return!1;r=!0,t+=1}else if(45===o||95===o){if(n>0)return!1;i=!0,t+=1}else if(61===o){if((n+=1)>2)return!1}else if(!(32===o||o>=9&&o<=13||160===o||5760===o||o>=8192&&o<=8202||8232===o||8233===o||8239===o||8287===o||12288===o||65279===o))return!1}let a=0===n||(t+n)%4==0;return t>0&&!(r&&i)&&t%4!=1&&a}let C=/^data:[^,]{0,255};base64,/i;e.s(["T",0,function(e){try{if(!M(e))return;let t=e.replaceAll(/\s/g,""),r=(0,n.$)(()=>new Uint8Array(j(t)));return(0,n.C)(r)?r.data:void 0}finally{/(?:)/.test("")}},"L",0,function(e){return p(e)},"Y",0,function(e){return x(e)},"D",0,function(e){return"data:"===e.slice(0,5).toLowerCase()},"o",0,function(e){try{return M(e.replace(C,""))}finally{/(?:)/.test("")}}],820223)},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),l=e.i(609303),s=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),l=(0,d.f)();return o[0]!==l?(e=l("TypeScript file"),o[0]=l,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),l=(0,d.f)();return o[0]!==l?(e=l("JavaScript file"),o[0]=l,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,l,s=(0,n.c)(8),c=(0,d.f)();return s[0]!==c?(e=c("HTML file"),s[0]=c,s[1]=e):e=s[1],s[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"}),s[2]=r,s[3]=i,s[4]=a,s[5]=o):(r=s[2],i=s[3],a=s[4],o=s[5]),s[6]!==e?(l=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 128 128",role:"img","aria-label":e,children:[r,i,a,o]}),s[6]=e,s[7]=l):l=s[7],l}function g(){let e,r,i,a,o,l,s,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"}),l=(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"}),s=(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]=l,u[7]=s):(r=u[2],i=u[3],a=u[4],o=u[5],l=u[6],s=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,l,s]}),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),l=(0,d.f)();return o[0]!==l?(e=l("Python file"),o[0]=l,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),l=(0,d.f)();return o[0]!==l?(e=l("Markdown file"),o[0]=l,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,l=(0,n.c)(7),s=(0,d.f)();return l[0]!==s?(e=s("Shell script"),l[0]=s,l[1]=e):e=l[1],l[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"}),l[2]=r,l[3]=i,l[4]=a):(r=l[2],i=l[3],a=l[4]),l[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]}),l[5]=e,l[6]=o):o=l[6],o}function w(){let e,r,i,a,o=(0,n.c)(6),l=(0,d.f)();return o[0]!==l?(e=l("Generic file"),o[0]=l,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 k(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)(w,{})}function _(e){let r,i,o,d,f,m,h,p,g,v,b,x,y,w,z,S,M,C,N,E=(0,n.c)(80),{node:A,depth:L,isExpanded:D,toggleExpanded:O,isSelected:T,onSelectClick:F,onRename:R}=e,[P,H]=(0,a.useState)(!1),[I,V]=(0,a.useState)(A.label);if(E[0]!==L||E[1]!==D||E[2]!==P||E[3]!==T||E[4]!==A||E[5]!==R||E[6]!==F||E[7]!==I||E[8]!==O){let e,n,a,_,j=D(A.id);i=A.children.length>0;let M=T(A.id);E[25]!==A.id||E[26]!==A.label||E[27]!==R||E[28]!==I?(e=()=>{let e=I.trim();if(0===e.length){H(!1),V(A.label);return}e!==A.label&&R(A.id,e),H(!1)},E[25]=A.id,E[26]=A.label,E[27]=R,E[28]=I,E[29]=e):e=E[29];let C=e;E[30]!==i||E[31]!==A.id||E[32]!==F||E[33]!==O?(n=()=>{i?O(A.id):F(A.id)},E[30]=i,E[31]=A.id,E[32]=F,E[33]=O,E[34]=n):n=E[34];let N=n;E[35]!==i||E[36]!==A.id||E[37]!==F||E[38]!==O?(a=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i?O(A.id):F(A.id))},E[35]=i,E[36]=A.id,E[37]=F,E[38]=O,E[39]=a):a=E[39];let B=a;E[40]!==i||E[41]!==A.label?(_=i?null:k(A.label),E[40]=i,E[41]=A.label,E[42]=_):_=E[42];let W=_,U="generating"===A.status,q=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}}(A.status);r=c.Collapsible,h=i&&j,E[43]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)("li",{}),E[43]=p):p=E[43],o="button",g=0,v=(0,s.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&&M&&"bg-muted hover:bg-muted","overflow-hidden",U&&"animate-row-pulse motion-reduce:animate-none",(q||A.endAdornment)&&"pr-7","min-h-6 py-0.75 pl-(--tree-indent)"),b=!0;let $=`${6+12*L}px`;E[44]!==$?(x={"--tree-indent":$},E[44]=$,E[45]=x):x=E[45],y=N,w=B,z=A.label,E[46]!==U?(S=U&&(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"})]}),E[46]=U,E[47]=S):S=E[47];let G=i?(0,t.jsx)(l.f,{className:(0,s.f)("h-4 w-4 text-muted-foreground transition-transform",j&&"rotate-90")}):(0,t.jsx)("span",{className:"inline-flex h-4 w-4 items-center justify-center",children:W});E[48]!==G?(d=(0,t.jsx)("div",{className:"flex w-4.5 min-w-4.5 items-center justify-center select-none","aria-hidden":!0,children:G}),E[48]=G,E[49]=d):d=E[49];let X=P?(0,t.jsx)(u.f,{autoFocus:!0,value:I,onChange:e=>V(e.target.value),onKeyDown:e=>{"Enter"===e.key?C():"Escape"===e.key&&(H(!1),V(A.label))},onBlur:C,className:"h-6 text-sm font-medium tracking-tight"}):(0,t.jsx)("span",{className:(0,s.f)("truncate text-sm leading-snug select-none",q?.colorClassName,q?.labelClassName),children:A.label});E[50]!==X?(f=(0,t.jsx)("div",{className:"ml-1.5 flex min-w-0 items-center",children:X}),E[50]=X,E[51]=f):f=E[51],m=q?(0,t.jsx)("span",{role:"img","aria-label":q.name,title:q.name,className:(0,s.f)("absolute right-2 text-body font-semibold select-none",q.colorClassName),children:q.letter}):A.endAdornment&&(0,t.jsx)("span",{className:"absolute right-2 flex items-center",children:A.endAdornment}),E[0]=L,E[1]=D,E[2]=P,E[3]=T,E[4]=A,E[5]=R,E[6]=F,E[7]=I,E[8]=O,E[9]=r,E[10]=i,E[11]=o,E[12]=d,E[13]=f,E[14]=m,E[15]=h,E[16]=p,E[17]=g,E[18]=v,E[19]=b,E[20]=x,E[21]=y,E[22]=w,E[23]=z,E[24]=S}else r=E[9],i=E[10],o=E[11],d=E[12],f=E[13],m=E[14],h=E[15],p=E[16],g=E[17],v=E[18],b=E[19],x=E[20],y=E[21],w=E[22],z=E[23],S=E[24];return E[52]!==o||E[53]!==d||E[54]!==f||E[55]!==m||E[56]!==g||E[57]!==v||E[58]!==b||E[59]!==x||E[60]!==y||E[61]!==w||E[62]!==z||E[63]!==S?(M=(0,t.jsxs)("div",{role:o,tabIndex:g,className:v,"data-allow-inline-style":b,style:x,onClick:y,onKeyDown:w,title:z,children:[S,d,f,m]}),E[52]=o,E[53]=d,E[54]=f,E[55]=m,E[56]=g,E[57]=v,E[58]=b,E[59]=x,E[60]=y,E[61]=w,E[62]=z,E[63]=S,E[64]=M):M=E[64],E[65]!==L||E[66]!==i||E[67]!==D||E[68]!==T||E[69]!==A.children||E[70]!==R||E[71]!==F||E[72]!==O?(C=i&&(0,t.jsx)(c.CollapsibleContent,{render:(0,t.jsx)("ul",{}),children:A.children.map(e=>(0,t.jsx)(_,{node:e,depth:L+1,isExpanded:D,toggleExpanded:O,isSelected:T,onSelectClick:F,onRename:R,onDelete:j},e.id))}),E[65]=L,E[66]=i,E[67]=D,E[68]=T,E[69]=A.children,E[70]=R,E[71]=F,E[72]=O,E[73]=C):C=E[73],E[74]!==r||E[75]!==h||E[76]!==p||E[77]!==M||E[78]!==C?(N=(0,t.jsxs)(r,{open:h,render:p,children:[M,C]}),E[74]=r,E[75]=h,E[76]=p,E[77]=M,E[78]=C,E[79]=N):N=E[79],N}function j(){}function z(e){return e??[]}function S(e){return new Set(e)}e.s(["f",0,k],508701),e.s(["f",0,function(e){let a,l,s,c,u,d,f,m,h,p=(0,n.c)(39),{items:g,className:v,onRename:b,onDelete:x,onSelectionChange:y,onToggle:w,defaultExpandedIds:k,defaultSelectedIds:j}=e,M=(0,i.useLocale)();p[0]!==g||p[1]!==M?(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 l=[];for(let e of n.values())e.parentId&&n.has(e.parentId)||l.push(e);let s=(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(s),e))t.children.length>0&&c(t.children)};return c(l),l}(M,g),p[0]=g,p[1]=M,p[2]=a):a=p[2];let C=a,[N,E]=(0,r.f)(k,S),[A,L]=(0,r.f)(j,z);p[3]!==N?(l=e=>N.has(e),p[3]=N,p[4]=l):l=p[4];let D=l;p[5]!==N||p[6]!==w||p[7]!==E?(s=e=>{let t=N.has(e),n=new Set(N);t?n.delete(e):n.add(e),E(n),w&&w({id:e,expanded:!t})},p[5]=N,p[6]=w,p[7]=E,p[8]=s):s=p[8];let O=s;p[9]!==A?(c=e=>A.includes(e),p[9]=A,p[10]=c):c=p[10];let T=c;p[11]!==y||p[12]!==L?(u=e=>{let t=[e];L(t),y?.({selectedIds:t})},p[11]=y,p[12]=L,p[13]=u):u=p[13];let F=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]!==A||p[19]!==L?(f=e=>{x&&x({ids:e});let t=A.filter(t=>!e.includes(t));L(t),y&&y({selectedIds:t})},p[16]=x,p[17]=y,p[18]=A,p[19]=L,p[20]=f):f=p[20];let P=f,H=v??"flex flex-col gap-0.25";if(p[21]!==P||p[22]!==R||p[23]!==D||p[24]!==T||p[25]!==F||p[26]!==O||p[27]!==C){let e;p[29]!==P||p[30]!==R||p[31]!==D||p[32]!==T||p[33]!==F||p[34]!==O?(e=e=>(0,t.jsx)(_,{node:e,depth:0,isExpanded:D,toggleExpanded:O,isSelected:T,onSelectClick:F,onRename:R,onDelete:P},e.id),p[29]=P,p[30]=R,p[31]=D,p[32]=T,p[33]=F,p[34]=O,p[35]=e):e=p[35],m=C.map(e),p[21]=P,p[22]=R,p[23]=D,p[24]=T,p[25]=F,p[26]=O,p[27]=C,p[28]=m}else m=p[28];return p[36]!==H||p[37]!==m?(h=(0,t.jsx)("ul",{className:H,children:m}),p[36]=H,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:l,prefetchSeal:s,onSignupIntent:c,className:u,children:d}=e,f=(0,r.f)(l,s);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}])},780397,e=>{"use strict";var t=e.i(624621);e.s(["f",0,()=>t.f.getState().currentRoomId])},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)}])},510914,e=>{"use strict";e.s(["f",0,function(t,n){return(r,i)=>(function(t,n,r,i){let a="SharedWorker"===t.name,o=e.b,l=[r.map(t=>e.h("string"==typeof t?t:t.path,o)).reverse(),e.X,o],s=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];for(let e=0;e