1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60908,e=>{"use strict";e.s(["default",()=>d],60908);var t=e.i(79556);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.forwardRef)((e,r)=>{let{color:o="currentColor",size:d=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:l,...u}=e;return(0,t.createElement)("svg",{ref:r,...n,width:d,height:d,stroke:o,strokeWidth:s?24*Number(i)/Number(d):i,className:a("lucide",c),...!f&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...l.map(e=>{let[r,a]=e;return(0,t.createElement)(r,a)}),...Array.isArray(f)?f:[f]])}),d=(e,n)=>{let d=(0,t.forwardRef)((d,i)=>{let{className:s,...c}=d;return(0,t.createElement)(o,{ref:i,iconNode:n,className:a("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...c})});return d.displayName=r(e),d}},39660,(e,t,r)=>{"use strict";var a=e.r(79556);function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var d={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},i=Symbol.for("react.portal"),s=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,r.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==a?null:""+a,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},r.flushSync=function(e){var t=s.T,r=d.p;try{if(s.T=null,d.p=2,e)return e()}finally{s.T=t,d.p=r,d.d.f()}},r.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,d.d.C(e,t))},r.prefetchDNS=function(e){"string"==typeof e&&d.d.D(e)},r.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,a=c(r,t.crossOrigin),n="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?d.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:o}):"script"===r&&d.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},r.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=c(t.as,t.crossOrigin);d.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&d.d.M(e)},r.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,a=c(r,t.crossOrigin);d.d.L(e,r,{crossOrigin:a,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},r.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=c(t.as,t.crossOrigin);
1d.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else d.d.m(e)},r.requestFormReset=function(e){d.d.r(e)},r.unstable_batchedUpdates=function(e,t){return e(t)},r.useFormState=function(e,t,r){return s.H.useFormState(e,t,r)},r.useFormStatus=function(){return s.H.useHostTransitionStatus()},r.version="19.1.0"},1109,(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(39660)},14586,e=>{"use strict";e.s(["Button",()=>s],14586);var t=e.i(98401),r=e.i(13062),a=e.i(97649);let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=a.clsx;var d=e.i(86547);let i=((e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:d,defaultVariants:i}=t,s=Object.keys(d).map(e=>{let t=null==r?void 0:r[e],a=null==i?void 0:i[e];if(null===t)return null;let o=n(t)||n(a);return d[e][o]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return o(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...c}[t]):({...i,...c})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:active:focus:scale-95",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground hover:shadow-md hover:active:focus:shadow-none hover:active:focus:duration-100 dark:bg-input/90 dark:border-input dark:hover:bg-input",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function s(e){let{className:a,variant:n,size:o,asChild:s=!1,...c}=e,f=s?r.Slot:"button";return(0,t.jsx)(f,{"data-slot":"button",className:(0,d.cn)(i({variant:n,size:o,className:a})),...c})}},11947,e=>{"use strict";e.s(["default",()=>t]);let t=(0,e.i(60908).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},74466,75964,7860,98881,52158,59217,76688,43319,97993,e=>{"use strict";e.s(["__assign",()=>r,"__rest",()=>a,"__spreadArray",()=>n],74466);var t,r=function(){return(r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)0>t.indexOf(a[n])&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}Object.create;function n(e,t,r){if(r||2==arguments.length)for(var a,n=0,o=t.length;n<o;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError,e.
1s(["fullWidthClassName",()=>d,"noScrollbarsClassName",()=>i,"removedBarSizeVariable",()=>s,"zeroRightClassName",()=>o],75964);var o="right-scroll-bar-position",d="width-before-scroll-bar",i="with-scroll-bars-hidden",s="--removed-body-scroll-bar-size";e.s(["useMergeRefs",()=>m],7860);var c=e.i(79556);function f(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var l="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,u=new WeakMap;function m(e,t){var r,a,n,o=(r=t||null,a=function(t){return e.forEach(function(e){return f(e,t)})},(n=(0,c.useState)(function(){return{value:r,callback:a,facade:{get current(){return n.value},set current(value){var e=n.value;e!==value&&(n.value=value,n.callback(value,e))}}}})[0]).callback=a,n.facade);return l(function(){var t=u.get(o);if(t){var r=new Set(t),a=new Set(e),n=o.current;r.forEach(function(e){a.has(e)||f(e,null)}),a.forEach(function(e){r.has(e)||f(e,n)})}u.set(o,e)},[e]),o}function p(e){return e}function h(e){void 0===e&&(e={});var t,a,n,o=(void 0===t&&(t=p),a=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var r=t(e,n);return a.push(r),function(){a=a.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(n=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){n=!0;var t=[];if(a.length){var r=a;a=[],r.forEach(e),t=a}var o=function(){var r=t;t=[],r.forEach(e)},d=function(){return Promise.resolve().then(o)};d(),a={push:function(e){t.push(e),d()},filter:function(e){return t=t.filter(e),a}}}});return o.options=r({async:!0,ssr:!1},e),o}e.s(["createSidecarMedium",()=>h],98881),e.s(["exportSidecar",()=>g],52158);var y=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return c.createElement(o,r({},n))};function g(e,t){return e.useMedium(t),y}y.isSideCarExport=!0,e.s([],97993),e.s(["RemoveScrollBar",()=>_],43319),e.s([],76688),e.s(["styleSingleton",()=>x],59217);var b=function(){var e=0,r=null;return{add:function(a){if(0==e&&(r=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=t||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return r&&e.setAttribute("nonce",r),e}())){var n,o;(n=r).styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a)),o=r,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!r||(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},v=function(){var e=b();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},x=function(){var e=v();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||"",10)||0},T=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],n=t["padding"===e?"paddingRight":"marginRight"];return[A(r),A(a),A(n)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=T(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}},N=x(),R="data-scroll-locked",j=function(e,t,r,a){var n=e.left,c=e.top,f=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(i," {\n overflow: hidden ").concat(a,";\n padding-right: ").concat(l,"px ").concat(a,";\n }\n body[").concat(R,"] {\n overflow: hidden ").concat(a,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(a,";"),"margin"===r&&"\n padding-left: ".concat(n,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(f,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(a,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(a,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(o," {\n right: ").concat(l,"px ").concat(a,";\n }\n \n .").concat(d," {\n margin-right: ").concat(l,"px ").concat(a,";\n }\n \n .").concat(o," .").concat(o," {\n right: 0 ").concat(a,";\n }\n \n .").concat(d," .").concat(d," {\n margin-right: 0 ").concat(a,";\n }\n \n body[").concat(R,"] {\n ").concat(s,": ").concat(l,"px;\n }\n")},S=function(){var e=parseInt(document.body.getAttribute(R)||"0",10);return isFinite(e)?e:0},C=function(){c.useEffect(function(){return document.body.setAttribute(R,(S()+1).toString()),function(){var e=S()-1;e<=0?document.body.removeAttribute(R):document.body.setAttribute(R,e.toString())}},[])},_=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,n=void 0===a?"margin":a;C();var o=c.useMemo(function(){return k(n)},[n]);return c.createElement(N,{styles:j(o,!t,n,r?"":"!important")})}},3300,e=>{"use strict";e.s(["hideOthers",()=>i]);var t=new WeakMap,r=new WeakMap,a={},n=0,o=function(e){return e&&(e.host||o(e.parentNode))},d=function(e,d,i,s){var c=(Array.isArray(e)?e:[e]).map(function(e){if(d.contains(e))return e;var t=o(e);return t&&d.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",d,". Doing nothing"),null)}).filter(function(e){return!!e});a[i]||(a[i]=new WeakMap);var f=a[i],l=[],u=new Set,m=new Set(c),p=function(e){!e||u.has(e)||(u.add(e),p(e.parentNode))};c.forEach(p);var h=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))h(e);else try{var a=e.getAttribute(s),n=null!==a&&"false"!==a,o=(t.get(e)||0)+1,d=(f.get(e)||0)+1;t.set(e,o),f.set(e,d),l.push(e),1===o&&n&&r.set(e,!0),1===d&&e.setAttribute(i,"true"),n||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(d),u.clear(),n++,function(){l.forEach(function(e){var a=t.get(e)-1,n=f.get(e)-1;t.set(e,a),f.set(e,n),a||(r.has(e)||e.removeAttribute(s),r.delete(e)),n||e.removeAttribute(i)}),--n||(t=new WeakMap,t=new WeakMap,r=new WeakMap,a={})}},i=function(e,t,r){void 0===r&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),d(a,n,r,"aria-hidden")):function(){return null}}},98976,e=>{"use strict";function t(e,t){let r=e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"");return"".concat(r,"-").concat(t)}e.s(["generateBlogSlug",()=>t])},80111,82818,e=>{"use strict";e.s(["default",()=>m],80111);var t=e.i(98401),r=e.i(79556);e.s(["themes",()=>a],82818);let a={"tokyo-night":{name:"tokyo-night",displayName:"Tokyo Night",themeType:"dark",colors:{text:"#c0caf5",base:"#1a1b26",primary:"#bb9af7",tool:"#7dcfff",success:"#7AF778",error:"#f7768e",secondary:"#565f89",info:"#2ac3de",warning:"#e0af68",diffAdded:"#1e2f1e",diffRemoved:"#2f1e1e",diffAddedText:"#9ece6a",diffRemovedText:"#f7768e"}},"synthwave-84":{name:"synthwave-84",displayName:"Synthwave '84",themeType:"dark",colors:{text:"#f8f8f2",base:"#2b213a",primary:"#ff006a",tool:"#00d9ff",success:"#a6e22e",error:"#ff3838",secondary:"#8a7ca8",info:"#66d9ef",warning:"#ffb86c",diffAdded:"#2d4a1e",diffRemoved:"#4a1e2d",diffAddedText:"#a6e22e",diffRemovedText:"#ff3838"}},"forest-night":{name:"forest-night",displayName:"Forest Night",themeType:"dark",colors:{text:"#d3c6aa",base:"#2d353b",primary:"#a7c080",tool:"#83c092",success:"#a7c080",error:"#e67e80",secondary:"#859289",info:"#7fbbb3",warning:"#dbbc7f",diffAdded:"#2d3f2d",diffRemoved:"#3f2d2d",diffAddedText:"#a7c080",diffRemovedText:"#e67e80"}},"material-ocean":{name:"material-ocean",displayName:"Material Ocean",themeType:"dark",colors:{text:"#b3e5fc",base:"#0d1117",primary:"#26c6da",tool:"#4fc3f7",success:"#66bb6a",error:"#ef5350",secondary:"#78909c",info:"#29b6f6",warning:"#ffa726",diffAdded:"#1a3d2e",diffRemoved:"#3d1a1a",diffAddedText:"#66bb6a",diffRemovedText:"#ef5350"}},"sunset-glow":{name:"sunset-glow",displayName:"Sunset Glow",themeType:"dark",colors:{text:"#fdf4dc",base:"#2d1b14",primary:"#ff6b35",tool:"#f7941d",success:"#52c41a",error:"#ff4757",secondary:"#a0826d",info:"#ffa726",warning:"#ffca28",diffAdded:"#2d4a1e",diffRemoved:"#4a1e1e",diffAddedText:"#52c41a",diffRemovedText:"#ff4757"}},"nord-frost":{name:"nord-frost",displayName:"Nord Frost",themeType:"dark",colors:{text:"#eceff4",base:"#2e3440",primary:"#88c0d0",tool:"#8fbcbb",success:"#a3be8c",error:"#bf616a",secondary:"#4c566a",info:"#5e81ac",warning:"#ebcb8b",diffAdded:"#2d3f2d",diffRemoved:"#3f2d2d",diffAddedText:"#a3be8c",diffRemovedText:"#bf616a"}},"rose-pine-dawn":{name:"rose-pine-dawn",displayName:"Rosé Pine Dawn",themeType:"light",colors:{text:"#575279",base:"#faf4ed",primary:"#907aa9",tool:"#56949f",success:"#618a3d",error:"#b4637a",secondary:"#9893a
15",info:"#286983",warning:"#ea9d34",diffAdded:"#f0f0e8",diffRemoved:"#f2e9e1",diffAddedText:"#618a3d",diffRemovedText:"#b4637a"}},"neon-jungle":{name:"neon-jungle",displayName:"Neon Jungle",themeType:"dark",colors:{text:"#e0ffe0",base:"#0d1f0d",primary:"#39ff14",tool:"#00ff7f",success:"#32cd32",error:"#ff1493",secondary:"#4a7c59",info:"#00ffff",warning:"#ffff00",diffAdded:"#1a4d1a",diffRemoved:"#4d1a4d",diffAddedText:"#32cd32",diffRemovedText:"#ff1493"}},"midnight-amethyst":{name:"midnight-amethyst",displayName:"Midnight Amethyst",themeType:"dark",colors:{text:"#e6e6fa",base:"#0f0a1a",primary:"#9966cc",tool:"#ba55d3",success:"#9370db",error:"#dc143c",secondary:"#6a5acd",info:"#c0c0c0",warning:"#dda0dd",diffAdded:"#2d1a4d",diffRemoved:"#4d1a1a",diffAddedText:"#9370db",diffRemovedText:"#dc143c"}},"desert-mirage":{name:"desert-mirage",displayName:"Desert Mirage",themeType:"dark",colors:{text:"#fff8dc",base:"#2f1b14",primary:"#ffd700",tool:"#daa520",success:"#228b22",error:"#dc143c",secondary:"#d2691e",info:"#40e0d0",warning:"#ffa500",diffAdded:"#2d4a1e",diffRemoved:"#4a1e1e",diffAddedText:"#228b22",diffRemovedText:"#dc143c"}},"cherry-blossom":{name:"cherry-blossom",displayName:"Cherry Blossom",themeType:"light",colors:{text:"#5a5a5a",base:"#fef7f0",primary:"#ffb6c1",tool:"#20b2aa",success:"#3cb371",error:"#cd5c5c",secondary:"#bc8f8f",info:"#4682b4",warning:"#f4a460",diffAdded:"#f0fff0",diffRemoved:"#ffe4e1",diffAddedText:"#3cb371",diffRemovedText:"#cd5c5c"}},"electric-storm":{name:"electric-storm",displayName:"Electric Storm",themeType:"dark",colors:{text:"#f0f0f0",base:"#1c1c1c",primary:"#ffff00",tool:"#00bfff",success:"#adff2f",error:"#ff4500",secondary:"#696969",info:"#87ceeb",warning:"#ffd700",diffAdded:"#2d4a1e",diffRemoved:"#4a1e1e",diffAddedText:"#adff2f",diffRemovedText:"#ff4500"}},"deep-sea":{name:"deep-sea",displayName:"Deep Sea",themeType:"dark",colors:{text:"#b0e0e6",base:"#000080",primary:"#008b8b",tool:"#00ced1",success:"#20b2aa",error:"#ff6347",secondary:"#4682b4",info:"#40e0d0",warning:"#ffa500",diffAdded:"#1e3a3a",diffRemoved:"#3a1e1e",diffAddedText:"#20b2aa",diffRemovedText:"#ff6347"}},"volcanic-ash":{name:"volcanic-ash",displayName:"Volcanic Ash",themeType:"dark",colors:{text:"#dcdcdc",base:"#2f2f2f",primary:"#dc143c",tool:"#ff4500",success:"#32cd32",error:"#ff0000",secondary:"#708090",info:"#ffa500",warning:"#ffff00",diffAdded:"#2d4a1e",diffRemoved:"#4a1e1e",diffAddedText:"#32cd32",diffRemovedText:"#ff0000"}},"cyberpunk-mint":{name:"cyberpunk-mint",displayName:"Cyberpunk Mint",themeType:"dark",colors:{text:"#f0fff0",base:"#000000",primary:"#00ff7f",tool:"#98fb98",success:"#32cd32",error:"#ff00ff",secondary:"#2e8b57",info:"#40e0d0",warning:"#ffff00",diffAdded:"#1a4d1a",diffRemoved:"#4d1a4d",diffAddedText:"#32cd32",diffRemovedText:"#ff00ff"}},dracula:{name:"dracula",displayName:"Dracula",themeType:"dark",colors:{text:"#f8f8f2",base:"#282a36",primary:"#ff79c6",tool:"#8be9fd",success:"#50fa7b",error:"#ff5555",secondary:"#bd93f9",info:"#f1fa8c",warning:"#ffb86c",diffAdded:"#2d4a2d",diffRemoved:"#4a2d2d",diffAddedText:"#50fa7b",diffRemovedText:"#ff5555"}},"catppuccin-latte":{name:"catppuccin-latte",displayName:"Catppuccin Latte",themeType:"light",colors:{text:"#4c4f69",base:"#eff1f5",primary:"#8839ef",tool:"#1e66f5",secondary:"#5c5f77",success:"#40a02b",error:"#d20f39",info:"#209fb5",warning:"#df8e1d",diffAdded:"#d5e8d4",diffRemoved:"#f5d5dc",diffAddedText:"#40a02b",diffRemovedText:"#d20f39",gradientColors:["#dc8a78","#8839ef","#1e66f5"]}},"catppuccin-frappe":{name:"catppuccin-frappe",displayName:"Catppuccin Frappé",themeType:"dark",colors:{text:"#c6d0f5",base:"#303446",primary:"#ea999c",tool:"#81c8be",secondary:"#b5bfe2",success:"#a6d189",error:"#e78284",info:"#99d1db",warning:"#e5c890",diffAdded:"#2d4a2d",diffRemoved:"#4a2d2d",diffAddedText:"#a6d189",diffRemovedText:"#e78284",gradientColors:["#ea999c","#81c8be","#99d1db"]}},"catppuccin-macchiato":{name:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",themeType:"dark",colors:{text:"#cad3f5",base:"#24273a",primary:"#f5a97f",tool:"#91d7e3",secondary:"#b8c0e0",success:"#a6da95",error:"#ed8796",info:"#8aadf4",warning:"#eed49f",diffAdded:"#2d4a2d",diffRemoved:"#4a2d2d",diffAddedText:"#a6da95",diffRemovedText:"#ed8796",gradientColors:["#f5a97f","#91d7e3","#8aadf4"]}}
1,"catppuccin-mocha":{name:"catppuccin-mocha",displayName:"Catppuccin Mocha",themeType:"dark",colors:{text:"#cdd6f4",base:"#1e1e2e",primary:"#cba6f7",tool:"#89b4fa",secondary:"#bac2de",success:"#a6e3a1",error:"#f38ba8",info:"#74c7ec",warning:"#f9e2af",diffAdded:"#2d4a2d",diffRemoved:"#4a2d2d",diffAddedText:"#a6e3a1",diffRemovedText:"#f38ba8",gradientColors:["#f5e0dc","#cba6f7","#89b4fa"]}},"gruvbox-dark":{name:"gruvbox-dark",displayName:"Gruvbox Dark",themeType:"dark",colors:{text:"#ebdbb2",base:"#282828",primary:"#fe8019",tool:"#83a598",secondary:"#928374",success:"#b8bb26",error:"#fb4934",info:"#8ec07c",warning:"#fabd2f",diffAdded:"#3d4220",diffRemoved:"#4c2020",diffAddedText:"#b8bb26",diffRemovedText:"#fb4934"}},"gruvbox-light":{name:"gruvbox-light",displayName:"Gruvbox Light",themeType:"light",colors:{text:"#3c3836",base:"#fbf1c7",primary:"#af3a03",tool:"#076678",secondary:"#928374",success:"#79740e",error:"#9d0006",info:"#427b58",warning:"#b57614",diffAdded:"#e8e5c0",diffRemoved:"#f0d5d5",diffAddedText:"#79740e",diffRemovedText:"#9d0006"}},"solarized-dark":{name:"solarized-dark",displayName:"Solarized Dark",themeType:"dark",colors:{text:"#839496",base:"#002b36",primary:"#268bd2",tool:"#2aa198",secondary:"#586e75",success:"#859900",error:"#dc322f",info:"#6c71c4",warning:"#b58900",diffAdded:"#1a3a20",diffRemoved:"#3a1a1a",diffAddedText:"#859900",diffRemovedText:"#dc322f"}},"solarized-light":{name:"solarized-light",displayName:"Solarized Light",themeType:"light",colors:{text:"#586e75",base:"#fdf6e3",primary:"#268bd2",tool:"#2aa198",secondary:"#93a1a1",success:"#859900",error:"#dc322f",info:"#6c71c4",warning:"#b58900",diffAdded:"#e8f0e0",diffRemoved:"#f0e0e0",diffAddedText:"#859900",diffRemovedText:"#dc322f"}},"one-dark":{name:"one-dark",displayName:"One Dark",themeType:"dark",colors:{text:"#abb2bf",base:"#282c34",primary:"#61afef",tool:"#56b6c2",secondary:"#5c6370",success:"#98c379",error:"#e06c75",info:"#c678dd",warning:"#e5c07b",diffAdded:"#2d4a2d",diffRemoved:"#4a2d2d",diffAddedText:"#98c379",diffRemovedText:"#e06c75"}},"one-light":{name:"one-light",displayName:"One Light",themeType:"light",colors:{text:"#383a42",base:"#fafafa",primary:"#4078f2",tool:"#0184bc",secondary:"#a0a1a7",success:"#50a14f",error:"#e45649",info:"#a626a4",warning:"#c18401",diffAdded:"#e6f4e6",diffRemoved:"#f4e6e6",diffAddedText:"#50a14f",diffRemovedText:"#e45649"}},monokai:{name:"monokai",displayName:"Monokai",themeType:"dark",colors:{text:"#f8f8f2",base:"#272822",primary:"#f92672",tool:"#66d9ef",secondary:"#75715e",success:"#a6e22e",error:"#f92672",info:"#ae81ff",warning:"#e6db74",diffAdded:"#3e4a22",diffRemoved:"#4a2232",diffAddedText:"#a6e22e",diffRemovedText:"#f92672"}},"github-dark":{name:"github-dark",displayName:"GitHub Dark",themeType:"dark",colors:{text:"#c9d1d9",base:"#0d1117",primary:"#58a6ff",tool:"#39c5cf",secondary:"#8b949e",success:"#3fb950",error:"#f85149",info:"#a371f7",warning:"#d29922",diffAdded:"#1b4721",diffRemoved:"#5c2125",diffAddedText:"#3fb950",diffRemovedText:"#f85149"}},"github-light":{name:"github-light",displayName:"GitHub Light",themeType:"light",colors:{text:"#24292f",base:"#ffffff",primary:"#0969da",tool:"#0550ae",secondary:"#57606a",success:"#1a7f37",error:"#cf222e",info:"#8250df",warning:"#9a6700",diffAdded:"#d4f8db",diffRemoved:"#ffcecb",diffAddedText:"#1a7f37",diffRemovedText:"#cf222e"}},"rose-pine":{name:"rose-pine",displayName:"Rosé Pine",themeType:"dark",colors:{text:"#e0def4",base:"#191724",primary:"#ebbcba",tool:"#9ccfd8",secondary:"#6e6a86",success:"#31748f",error:"#eb6f92",info:"#c4a7e7",warning:"#f6c177",diffAdded:"#1f2d3d",diffRemoved:"#3d1f2d",diffAddedText:"#9ccfd8",diffRemovedText:"#eb6f92"}},"rose-pine-moon":{name:"rose-pine-moon",displayName:"Rosé Pine Moon",themeType:"dark",colors:{text:"#e0def4",base:"#232136",primary:"#ea9a97",tool:"#9ccfd8",secondary:"#6e6a86",success:"#3e8fb0",error:"#eb6f92",info:"#c4a7e7",warning:"#f6c177",diffAdded:"#1f2d3d",diffRemoved:"#3d1f2d",diffAddedText:"#9ccfd8",diffRemovedText:"#eb6f92"}},"ayu-dark":{name:"ayu-dark",displayName:"Ayu Dark",themeType:"dark",colors:{text:"#b3b1ad",base:"#0a0e14",primary:"#ffb454",tool:"#59c2ff",secondary:"#626a73",success:"#c2d94c",error:"#f07178",info:"#d2a6ff",warning:"#ff8f40",diffAdded:"#1a2d1a",diffRemoved:"#2d1a1a",diffAddedText:"#c2d94c",diffRemovedText:"#f07178"}},"ayu-mirage":{name:"ayu-mirage",displayName:"Ayu Mirage",themeType:"dark",colors:{text:"#cbccc6",base:"#1f2430",primary:"#ffcc66",tool:"#73d0ff",secondary:"#707a8c",success:"#bae67e",error:"#f28779",info:"#d4bfff",warning:"#ffa759",diffAdded:"#2d3d2d",diffRemoved:"#3d2d2d",diffAddedText:"#bae67e",diffRemovedText:"#f28779"}},"ayu-light":{name:"ayu-light",displayName:"Ayu Light",themeType:"light",colors:{text:"#5c6166",base:"#fafafa",primary:"#ff9940",tool:"#399ee6",secondary:"#8a9199",success:"#86b300",error:"#f07171",info:"#a37acc",warning:"#fa8d3e",diffAdded:"#e8f4e8",diffRemoved:"#f4e8e8",diffAddedText:"#86b300",diffRemovedText:"#f07171"}},"night-owl":{name:"night-owl",displayName:"Night Owl",themeType:"dark",colors:{text:"#d6deeb",base:"#011627",primary:"#82aaff",tool:"#7fdbca",secondary:"#637777",success:"#addb
167",error:"#ef5350",info:"#c792ea",warning:"#f78c6c",diffAdded:"#1a3d2d",diffRemoved:"#3d1a1a",diffAddedText:"#addb67",diffRemovedText:"#ef5350"}},palenight:{name:"palenight",displayName:"Palenight",themeType:"dark",colors:{text:"#a6accd",base:"#292d3e",primary:"#82aaff",tool:"#89ddff",secondary:"#676e95",success:"#c3e88d",error:"#ff5370",info:"#c792ea",warning:"#ffcb6b",diffAdded:"#2d3d2d",diffRemoved:"#3d2d2d",diffAddedText:"#c3e88d",diffRemovedText:"#ff5370"}},horizon:{name:"horizon",displayName:"Horizon",themeType:"dark",colors:{text:"#e0e0e0",base:"#1c1e26",primary:"#e95678",tool:"#26bbd9",secondary:"#6c6f93",success:"#29d398",error:"#e95678",info:"#ee64ae",warning:"#fab795",diffAdded:"#1a3d2d",diffRemoved:"#3d1a2d",diffAddedText:"#29d398",diffRemovedText:"#e95678"}}},n=["tokyo-night","synthwave-84","forest-night","sunset-glow","deep-sea"],o=["github-light","catppuccin-latte","solarized-light","rose-pine-dawn","one-light"],d=["ââââ âââ ââââââ ââââ âââ âââââââ âââââââ âââââââ âââââââ ââââââââ âââââââ","âââââ âââ ââââââââ âââââ âââ âââââââââ ââââââââ âââââââââ ââââââââ ââââââââ ââââââââ","ââââââ âââ ââââââââ ââââââ âââ âââ âââ âââ âââ âââ âââ âââ ââââââ ââââââââ","ââââââââââ ââââââââ ââââââââââ âââ âââ âââ âââ âââ âââ âââ ââââââ ââââââââ","âââ ââââââ âââ âââ âââ ââââââ âââââââââ ââââââââ âââââââââ ââââââââ ââââââââ âââ âââ","âââ âââââ âââ âââ âââ âââââ âââââââ âââââââ âââââââ âââââââ ââââââââ âââ âââ"],i=["ââââ âââ âââââââ","âââââ âââ ââââââââ","ââââââ âââ âââ","ââââââââââ âââ","âââ ââââââ ââââââââ","âââ âââââ âââââââ"],s=[["Resume session","/resume"],["Select model","/model"],["Help","/help"],["Quit","/exit"]],c=Math.max(...s.map(e=>{let[t,r]=e;return t.length+r.length}))+4,f=["Use @ followed by a file path to add that file to context.","Press Shift+Tab to cycle between development modes.","Run /checkpoint create before a risky refactor so you can restore it later.","Run /model to switch providers or models without restarting your session.","Press Ctrl+J to add a new line without sending your prompt.","Use /explorer to browse project files and add them to context."],l={"â":[[[0,.8],[1,.8]],[[0,1.2],[1,1.2]]],"â":[[[.35,0],[.35,2]],[[.65,0],[.65,2]]],"â":[[[1,.8],[.35,.8],[.35,2]],[[1,1.2],[.65,1.2],[.65,2]]],"â":[[[0,.8],[.65,.8],[.65,2]],[[0,1.2],[.35,1.2],[.35,2]]],"â":[[[1,1.2],[.35,1.2],[.35,0]],[[1,.8],[.65,.8],[.65,0]]],"â":[[[0,1.2],[.65,1.2],[.65,0]],[[0,.8],[.35,.8],[.35,0]]]};function u(e){let{lines:a,from:n,to:o,className:d}=e,i="logo-".concat((0,r.useId)().replace(/[^a-zA-Z0-9_-]/g,"")),s=Math.max(...a.map(e=>e.length)),c=2*a.length,f="url(#".concat(i,")"),u="",m="";return a.forEach((e,t)=>{[...e].forEach((e,r)=>{var a;for(let n of("â"===e&&(u+="M".concat(r," ").concat(2*t,"h1.02v2.02h-1.02z")),null!=(a=l[e])?a:[]))m+=n.map((e,a)=>{let[n,o]=e;return"".concat(a?"L":"M").concat(r+n," ").concat(2*t+o)}).join("")})}),(0,t.jsxs)("svg",{viewBox:"0 0 ".concat(s," ").concat(c),className:d,"aria-hidden":"true",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:i,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:s,y2:"0",children:[(0,t.jsx)("stop",{offset:"0",stopColor:n}),(0,t.jsx)("stop",{offset:"1",stopColor:o})]})}),(0,t.jsx)("path",{d:u,fill:f}),(0,t.jsx)("path",{d:m,fill:"none",stroke:f,strokeWidth:.12})]})}function m(e){let{onThemeChange:l,version:m="1.0.0",themeMode:p="dark",variant:h="default"}=e,y=(0,r.useMemo)(()=>"light"===p?o:"mixed"===p?[...n,...o]:n,[p]),g=(0,r.useMemo)(()=>["Build a RESTful API with authentication","Create a React component with TypeScript","Add unit tests for user service","Refactor database queries for performance","Implement a WebSocket chat feature","Set up CI/CD pipeline with GitHub Actions","Optimize image loading performance","Add dark mode support to application","Create a responsive navbar component","Implement infinite scroll for feed","Add error boundary to catch React errors","Write documentation for API endpoints","Set up PostgreSQL database with Docker","Create a custom React hook for state management","Add TypeScript interfaces for API responses","Implement user authentication with JWT tokens","Build a reusable button component library","Add lazy loading for React components","Create a GraphQL server with Apollo","Set up unit testing with Jest and React Testing Library","Implement search functionality with debouncing","Add form validation with Zod","Create a dashboard layout with sidebar navigation","Implement real-time notifications with WebSockets","Add internationalization (i18n) support","Create a data fetching hook with React Query","Implement file upload with progress indicator","Add caching layer for API responses","Create a modal component with backdrop blur","Set up logging with Winston and Morgan","Implement rate limiting for API endpoints","Add accessibility (a11y) attributes to components","Create a pagination component for data tables","Implement theme switching with localStorage persistence","Add skeleton loading screens for better UX","Create a toast notification system","Set up end-to-e
1nd testing with Playwright","Implement password strength validation","Add CSV export functionality for data tables","Create a multi-step form wizard","Implement search suggestions with autocomplete","Add keyboard shortcuts for better accessibility","Create a context provider for app state","Set up monitoring with Sentry","Implement optimistic UI updates","Add drag-and-drop file upload zone","Create a responsive grid layout system","Implement deep linking for shareable URLs","Add session timeout with inactivity detection","Create a date picker component","Implement virtual scrolling for large lists","Add unit test coverage reporting","Create a tooltip component with positioning","Set up API versioning strategy","Implement request cancellation with AbortController","Add dark mode with system preference detection","Create a table component with sorting","Implement concurrent mode for better performance","Add client-side search with Fuse.js","Create a progress stepper for multi-step flows","Implement debounced search for API calls","Add audio notifications for events","Create a color picker component","Set up database migrations","Implement role-based access control (RBAC)","Add skeleton screens for content loading","Create a tag input component","Implement offline support with service workers","Add analytics tracking for user events","Create a carousel/slider component","Set up error handling middleware","Implement request retry logic with exponential backoff","Add clipboard copy functionality","Create a chart component with recharts","Implement data validation with Yup","Add responsive images with next/image","Create a dropdown menu component","Set up WebSocket connection management","Implement text-to-speech for accessibility"],[]),[b,v]=(0,r.useState)(0),[x,w]=(0,r.useState)(a[y[0]]),[A,T]=(0,r.useState)(0),[k,N]=(0,r.useState)(""),[R,j]=(0,r.useState)(!0),[S,C]=(0,r.useState)(!1),[_,O]=(0,r.useState)(!1),[E,M]=(0,r.useState)(0);(0,r.useEffect)(()=>{var e,t,r;C(!0),O(null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r),T(Math.floor(Math.random()*g.length)),M(Math.floor(Math.random()*f.length))},[g.length]),(0,r.useEffect)(()=>{if(!S||_)return;let e=setInterval(()=>{v(e=>(e+1)%y.length)},5e3);return()=>clearInterval(e)},[S,_,y.length]),(0,r.useEffect)(()=>{let e=a[y[b]];w(e),null==l||l(e)},[b,l,y]),(0,r.useEffect)(()=>{if(!S)return;let e=g[A];if(_){k!==e&&N(e);return}if(R)if(k.length<e.length){let t=setTimeout(()=>{N(e.slice(0,k.length+1))},50);return()=>clearTimeout(t)}else{let e=setTimeout(()=>{j(!1)},2e3);return()=>clearTimeout(e)}if(k.length>0){let e=setTimeout(()=>{N(k.slice(0,-1))},30);return()=>clearTimeout(e)}{let e;do e=Math.floor(Math.random()*g.length);while(e===A&&g.length>1)T(e),j(!0)}},[k,R,A,g,S,_]);let I=x.colors,z="light"===x.themeType?"#ffffff":"#000000",P="brutalist"===h,L=P?"dark"===p?"rgba(255,255,255,0.2)":"#000000":null;return(0,t.jsx)("div",{className:"transition-all duration-700 ease-in-out",children:(0,t.jsxs)("div",{className:"overflow-hidden border ".concat(P?"rounded-none shadow-none":"rounded-lg shadow-2xl"),style:{backgroundColor:z,borderColor:null!=L?L:"".concat(I.tool,"4d")},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3 border-b",style:{backgroundColor:z,borderColor:null!=L?L:"".concat(I.tool,"33")},children:[(0,t.jsx)("div",{className:"w-3 h-3 bg-red-500 ".concat(P?"rounded-none":"rounded-full")}),(0,t.jsx)("div",{className:"w-3 h-3 bg-yellow-500 ".concat(P?"rounded-none":"rounded-full")}),(0,t.jsx)("div",{className:"w-3 h-3 bg-green-500 ".concat(P?"rounded-none":"rounded-full")})]}),(0,t.jsxs)("div",{className:"@container flex flex-col min-h-[420px] sm:min-h-[500px] p-4 sm:p-6 font-mono text-[10px] sm:text-xs w-full",children:[(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center text-center gap-4 sm:gap-5 pb-6",children:[(0,t.jsxs)("div",{className:"w-full flex justify-center",children:[(0,t.jsx)(u,{lines:i,from:I.primary,to:I.tool,className:"@sm:hidden w-full max-w-[130px]"}),(0,t.jsx)(u,{lines:d,from:I.primary,to:I.tool,className:"hidden @sm:block w-full max-w-[580px]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-bold",style:{color:I.text},children:"nanocoder"}),(0,t.jsxs)("span",{style:{color:I.secondary},children:[" v",m]})]}),(0,t.jsxs)("div",{className:"max-w-[72ch]",children:[(0,t.jsx)("div",{className:"font-bold",style:{color:I.text},children:"Welcome to Nanocoder"}),(0,t.jsx)("div",{style:{color:I.secondary},children:"An open coding agent for your terminal, built by a community collective rather than a company. Bring your own model, keep your code on your machine, and owe nothing to anyone."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{style:{color:I.primary},children:"â main (default)"}),(0,t.jsx)("span",{style:{color:I.secondary},children:" · ~/code/my-app"})]}),(0,t.jsx)("div",{className:"whitespace-pre text-left",children:s.map(e=>{let[r,a]=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-bold",style:{color:I.text},children:r})," ".repeat(c-r.length-a.length),(0,t.jsx)("span",{className:"opacity-70",style:{color:I.secondary},children:a})]},r)})}),(0,t.jsxs)("div",{className:"opacity-70",style:{color:I.secondary},children:["Tip: ",f[E]]})]}),(0,t.jsxs)("div",{className:"rounded-md px-2 py-1 sm:py-1.5",style:{border:"1px solid ".concat(I.primary)},children:[(0,t.jsxs)("span",{style:{color:k?I.primary:I.secondary},children:[">"," "]}),k?(0,t.jsxs)("span",{style:{color:I.text},children:[k,(0,t.jsx)("span",{children:"â"})]}):(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{style:{backgroundColor:I.text,color:z},children:"A"}),(0,t.jsx)("span",{className:"opacity-70",style:{color:I.secondary},children:"sk anything..."})]})]}),(0,t.jsxs)("div",{className:"mt-1 px-2",style:{color:I.secondary},children:[(0,t.jsx)("span",{className:"font-bold",children:"â¶ normal mode on"})," · ctx: ~1%"]})]})]})})}},45750,e=>{"use strict";e.s(["default",()=>o]);var t=e.i(98401),r=e.i(79556);let a=[{iter:2,loss:1.07},{iter:4,loss:.78},{iter:6,loss:.56},{iter:9,loss:.41},{iter:12,loss:.31},{iter:16,loss:.26},{iter:26,loss:.225},{iter:40,loss:.205},{iter:56,loss:.192},{iter:74,loss:.181},{iter:94,loss:.171},{iter:114,loss:.163},{iter:132,loss:.156},{iter:150,loss:.15}],n="text-green-600 dark:text-green-400";function o(){let[e,o]=(0,r.useState)(150),[d,i]=(0,r.useState)(!1),[s,c]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e,t,r;i(!0),c(null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r)},[]),(0,r.useEffect)(()=>
1{if(!d)return;if(s)return void o(150);let e=setInterval(()=>{o(e=>e>=210?0:e+6)},190);return()=>clearInterval(e)},[d,s]);let f=Math.min(e,150),l=Math.round(f/150*100),u=a.filter(e=>e.iter<=f),m=u.length?u:[a[0]],p=m[m.length-1].loss,h=Math.round(l/100*20),y=m.map(e=>({x:7+e.iter/150*88,y:8+(1.07-e.loss)/.92*84}));return(0,t.jsx)("div",{className:"border border-black bg-white text-zinc-800 dark:border-white/20 dark:bg-black dark:text-zinc-200",children:(0,t.jsxs)("div",{className:"p-4 sm:p-6 font-mono text-[10px] sm:text-xs leading-5 w-full",children:[(0,t.jsx)("div",{className:"font-bold ".concat(n),children:"Nanotune - Training"}),(0,t.jsx)("div",{className:"h-4"}),(0,t.jsxs)("div",{children:["Model:"," ",(0,t.jsx)("span",{className:n,children:"Qwen/Qwen2.5-Coder-1.5B-Instruct"})]}),(0,t.jsxs)("div",{children:["Examples: ",(0,t.jsx)("span",{className:n,children:"782"})]}),(0,t.jsxs)("div",{children:["Iterations: ",(0,t.jsx)("span",{className:n,children:150})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Progress:"}),(0,t.jsxs)("span",{className:"whitespace-pre tracking-tighter",children:[(0,t.jsx)("span",{className:"text-green-600 dark:text-green-500",children:"â".repeat(h)}),(0,t.jsx)("span",{className:"text-zinc-300 dark:text-zinc-700",children:"â".repeat(20-h)})]}),(0,t.jsxs)("span",{className:n,children:[l,"%"]})]}),(0,t.jsxs)("div",{children:["Iteration:"," ",(0,t.jsxs)("span",{className:n,children:[f,"/",150]})]}),(0,t.jsx)("div",{className:"h-4"}),(0,t.jsx)("div",{className:"font-bold mb-1",children:"Training Loss"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between text-[9px] sm:text-[10px]",children:[(0,t.jsx)("span",{children:"1.07"}),(0,t.jsx)("span",{children:p.toFixed(2)})]}),(0,t.jsxs)("div",{className:"relative w-36 sm:w-44 h-16 sm:h-20 border border-zinc-300 dark:border-zinc-700",children:[(0,t.jsx)("svg",{className:"absolute inset-0 h-full w-full",viewBox:"0 0 100 100",preserveAspectRatio:"none","aria-hidden":"true",children:(0,t.jsx)("polyline",{points:y.map(e=>"".concat(e.x,",").concat(e.y)).join(" "),fill:"none",className:"stroke-green-600 dark:stroke-green-500",strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"})}),y.map((e,r)=>(0,t.jsx)("span",{className:"absolute w-1 h-1 rounded-full bg-green-600 dark:bg-green-500 -translate-x-1/2 -translate-y-1/2",style:{left:"".concat(e.x,"%"),top:"".concat(e.y,"%")}},m[r].iter))]})]}),(0,t.jsx)("div",{className:"h-2"}),(0,t.jsxs)("div",{children:["Train Loss:"," ",(0,t.jsx)("span",{className:"font-bold text-green-600 dark:text-green-400",children:p.toFixed(4)})]}),(0,t.jsx)("div",{className:"h-4"}),(0,t.jsx)("div",{className:"text-zinc-400 dark:text-zinc-500",children:"[Ctrl+C] Stop training (checkpoint saved)"})]})})}},63511,e=>{e.v(t=>Promise.all(["static/chunks/31492ae109970aee.js"].map(t=>e.l(t))).then(()=>t(16943)))},45740,e=>{e.v(t=>Promise.all(["static/chunks/73f1d5aa6afbd386.js"].map(t=>e.l(t))).then(()=>t(86803)))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.