Skip to main content
Glama
6874803807788e22.js48.7 kB
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var r=e.i(43476);function s(){for(var e,r,s=0,t="",a=arguments.length;s<a;s++)(e=arguments[s])&&(r=function e(r){var s,t,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r)if(Array.isArray(r)){var o=r.length;for(s=0;s<o;s++)r[s]&&(t=e(r[s]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}(e))&&(t&&(t+=" "),t+=r);return t}let t=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=(e,r)=>a=>{var o;if((null==r?void 0:r.variants)==null)return s(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:l,defaultVariants:n}=r,i=Object.keys(l).map(e=>{let r=null==a?void 0:a[e],s=null==n?void 0:n[e];if(null===r)return null;let o=t(r)||t(s);return l[e][o]}),c=a&&Object.entries(a).reduce((e,r)=>{let[s,t]=r;return void 0===t||(e[s]=t),e},{});return s(e,i,null==r||null==(o=r.compoundVariants)?void 0:o.reduce((e,r)=>{let{class:s,className:t,...a}=r;return Object.entries(a).every(e=>{let[r,s]=e;return Array.isArray(s)?s.includes({...n,...c}[r]):({...n,...c})[r]===s})?[...e,s,t]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)};var o=e.i(71645);let l=(e,r)=>{if(0===e.length)return r.classGroupId;let s=e[0],t=r.nextPart.get(s),a=t?l(e.slice(1),t):void 0;if(a)return a;if(0===r.validators.length)return;let o=e.join("-");return r.validators.find(({validator:e})=>e(o))?.classGroupId},n=/^\[(.+)\]$/,i=(e,r,s,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:c(r,e)).classGroupId=s;return}"function"==typeof e?d(e)?i(e(t),r,s,t):r.validators.push({validator:e,classGroupId:s}):Object.entries(e).forEach(([e,a])=>{i(a,c(r,e),s,t)})})},c=(e,r)=>{let s=e;return r.split("-").forEach(e=>{s.nextPart.has(e)||s.nextPart.set(e,{nextPart:new Map,validators:[]}),s=s.nextPart.get(e)}),s},d=e=>e.isThemeGetter,m=/\s+/;function p(){let e,r,s=0,t="";for(;s<arguments.length;)(e=arguments[s++])&&(r=u(e))&&(t&&(t+=" "),t+=r);return t}let u=e=>{let r;if("string"==typeof e)return e;let s="";for(let t=0;t<e.length;t++)e[t]&&(r=u(e[t]))&&(s&&(s+=" "),s+=r);return s},f=e=>{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,h=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g=/^\d+\/\d+$/,b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,k=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>g.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),C=e=>!!e&&Number.isInteger(Number(e)),z=e=>e.endsWith("%")&&N(e.slice(0,-1)),S=e=>b.test(e),P=()=>!0,M=e=>y.test(e)&&!v.test(e),R=()=>!1,A=e=>w.test(e),E=e=>k.test(e),T=e=>!D(e)&&!_(e),I=e=>H(e,J,R),D=e=>x.test(e),O=e=>H(e,Q,M),$=e=>H(e,ee,N),B=e=>H(e,Y,R),F=e=>H(e,Z,E),L=e=>H(e,es,A),_=e=>h.test(e),V=e=>X(e,Q),G=e=>X(e,er),W=e=>X(e,Y),q=e=>X(e,J),K=e=>X(e,Z),U=e=>X(e,es,!0),H=(e,r,s)=>{let t=x.exec(e);return!!t&&(t[1]?r(t[1]):s(t[2]))},X=(e,r,s=!1)=>{let t=h.exec(e);return!!t&&(t[1]?r(t[1]):s)},Y=e=>"position"===e||"percentage"===e,Z=e=>"image"===e||"url"===e,J=e=>"length"===e||"size"===e||"bg-size"===e,Q=e=>"length"===e,ee=e=>"number"===e,er=e=>"family-name"===e,es=e=>"shadow"===e,et=function(e,...r){let s,t,a,o=function(d){var m;let p;return t=(s={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,s=new Map,t=new Map,a=(a,o)=>{s.set(a,o),++r>e&&(r=0,t=s,s=new Map)};return{get(e){let r=s.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(a(e,r),r):void 0},set(e,r){s.has(e)?s.set(e,r):a(e,r)}}})((m=r.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{prefix:r,experimentalParseClassName:s}=e,t=e=>{let r,s,t=[],a=0,o=0,l=0;for(let r=0;r<e.length;r++){let n=e[r];if(0===a&&0===o){if(":"===n){t.push(e.slice(l,r)),l=r+1;continue}if("/"===n){s=r;continue}}"["===n?a++:"]"===n?a--:"("===n?o++:")"===n&&o--}let n=0===t.length?e:e.substring(l),i=(r=n).endsWith("!")?r.substring(0,r.length-1):r.startsWith("!")?r.substring(1):r;return{modifiers:t,hasImportantModifier:i!==n,baseClassName:i,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};if(r){let e=r+":",s=t;t=r=>r.startsWith(e)?s(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(s){let e=t;t=r=>s({className:r,parseClassName:e})}return t})(m),sortModifiers:(p=Object.fromEntries(m.orderSensitiveModifiers.map(e=>[e,!0])),e=>{if(e.length<=1)return e;let r=[],s=[];return e.forEach(e=>{"["===e[0]||p[e]?(r.push(...s.sort(),e),s=[]):s.push(e)}),r.push(...s.sort()),r}),...(e=>{let r=(e=>{let{theme:r,classGroups:s}=e,t={nextPart:new Map,validators:[]};for(let e in s)i(s[e],t,e,r);return t})(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let s=e.split("-");return""===s[0]&&1!==s.length&&s.shift(),l(s,r)||(e=>{if(n.test(e)){let r=n.exec(e)[1],s=r?.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}})(e)},getConflictingClassGroupIds:(e,r)=>{let a=s[e]||[];return r&&t[e]?[...a,...t[e]]:a}}})(m)}).cache.get,a=s.cache.set,o=c,c(d)};function c(e){let r=t(e);if(r)return r;let o=((e,r)=>{let{parseClassName:s,getClassGroupId:t,getConflictingClassGroupIds:a,sortModifiers:o}=r,l=[],n=e.trim().split(m),i="";for(let e=n.length-1;e>=0;e-=1){let r=n[e],{isExternal:c,modifiers:d,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=s(r);if(c){i=r+(i.length>0?" "+i:i);continue}let f=!!u,x=t(f?p.substring(0,u):p);if(!x){if(!f||!(x=t(p))){i=r+(i.length>0?" "+i:i);continue}f=!1}let h=o(d).join(":"),g=m?h+"!":h,b=g+x;if(l.includes(b))continue;l.push(b);let y=a(x,f);for(let e=0;e<y.length;++e){let r=y[e];l.push(g+r)}i=r+(i.length>0?" "+i:i)}return i})(e,s);return a(e,o),o}return function(){return o(p.apply(null,arguments))}}(()=>{let e=f("color"),r=f("font"),s=f("text"),t=f("font-weight"),a=f("tracking"),o=f("leading"),l=f("breakpoint"),n=f("container"),i=f("spacing"),c=f("radius"),d=f("shadow"),m=f("inset-shadow"),p=f("text-shadow"),u=f("drop-shadow"),x=f("blur"),h=f("perspective"),g=f("aspect"),b=f("ease"),y=f("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),_,D],M=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],A=()=>[_,D,i],E=()=>[j,"full","auto",...A()],H=()=>[C,"none","subgrid",_,D],X=()=>["auto",{span:["full",C,_,D]},C,_,D],Y=()=>[C,"auto",_,D],Z=()=>["auto","min","max","fr",_,D],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...A()],er=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],es=()=>[e,_,D],et=()=>[...w(),W,B,{position:[_,D]}],ea=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eo=()=>["auto","cover","contain",q,I,{size:[_,D]}],el=()=>[z,V,O],en=()=>["","none","full",c,_,D],ei=()=>["",N,V,O],ec=()=>["solid","dashed","dotted","double"],ed=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],em=()=>[N,z,W,B],ep=()=>["","none",x,_,D],eu=()=>["none",N,_,D],ef=()=>["none",N,_,D],ex=()=>[N,_,D],eh=()=>[j,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[S],breakpoint:[S],color:[P],container:[S],"drop-shadow":[S],ease:["in","out","in-out"],font:[T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[S],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[S],shadow:[S],spacing:["px",N],text:[S],"text-shadow":[S],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,D,_,g]}],container:["container"],columns:[{columns:[N,D,_,n]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[C,"auto",_,D]}],basis:[{basis:[j,"full","auto",n,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,j,"auto","initial","none",D]}],grow:[{grow:["",N,_,D]}],shrink:[{shrink:["",N,_,D]}],order:[{order:[C,"first","last","none",_,D]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:er()}],w:[{w:[n,"screen",...er()]}],"min-w":[{"min-w":[n,"screen","none",...er()]}],"max-w":[{"max-w":[n,"screen","none","prose",{screen:[l]},...er()]}],h:[{h:["screen","lh",...er()]}],"min-h":[{"min-h":["screen","lh","none",...er()]}],"max-h":[{"max-h":["screen","lh",...er()]}],"font-size":[{text:["base",s,V,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,_,$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",z,D]}],"font-family":[{font:[G,D,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,_,D]}],"line-clamp":[{"line-clamp":[N,"none",_,$]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",_,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:es()}],"text-color":[{text:es()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",_,O]}],"text-decoration-color":[{decoration:es()}],"underline-offset":[{"underline-offset":[N,"auto",_,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:et()}],"bg-repeat":[{bg:ea()}],"bg-size":[{bg:eo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},C,_,D],radial:["",_,D],conic:[C,_,D]},K,F]}],"bg-color":[{bg:es()}],"gradient-from-pos":[{from:el()}],"gradient-via-pos":[{via:el()}],"gradient-to-pos":[{to:el()}],"gradient-from":[{from:es()}],"gradient-via":[{via:es()}],"gradient-to":[{to:es()}],rounded:[{rounded:en()}],"rounded-s":[{"rounded-s":en()}],"rounded-e":[{"rounded-e":en()}],"rounded-t":[{"rounded-t":en()}],"rounded-r":[{"rounded-r":en()}],"rounded-b":[{"rounded-b":en()}],"rounded-l":[{"rounded-l":en()}],"rounded-ss":[{"rounded-ss":en()}],"rounded-se":[{"rounded-se":en()}],"rounded-ee":[{"rounded-ee":en()}],"rounded-es":[{"rounded-es":en()}],"rounded-tl":[{"rounded-tl":en()}],"rounded-tr":[{"rounded-tr":en()}],"rounded-br":[{"rounded-br":en()}],"rounded-bl":[{"rounded-bl":en()}],"border-w":[{border:ei()}],"border-w-x":[{"border-x":ei()}],"border-w-y":[{"border-y":ei()}],"border-w-s":[{"border-s":ei()}],"border-w-e":[{"border-e":ei()}],"border-w-t":[{"border-t":ei()}],"border-w-r":[{"border-r":ei()}],"border-w-b":[{"border-b":ei()}],"border-w-l":[{"border-l":ei()}],"divide-x":[{"divide-x":ei()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ei()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:es()}],"border-color-x":[{"border-x":es()}],"border-color-y":[{"border-y":es()}],"border-color-s":[{"border-s":es()}],"border-color-e":[{"border-e":es()}],"border-color-t":[{"border-t":es()}],"border-color-r":[{"border-r":es()}],"border-color-b":[{"border-b":es()}],"border-color-l":[{"border-l":es()}],"divide-color":[{divide:es()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,_,D]}],"outline-w":[{outline:["",N,V,O]}],"outline-color":[{outline:es()}],shadow:[{shadow:["","none",d,U,L]}],"shadow-color":[{shadow:es()}],"inset-shadow":[{"inset-shadow":["none",m,U,L]}],"inset-shadow-color":[{"inset-shadow":es()}],"ring-w":[{ring:ei()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:es()}],"ring-offset-w":[{"ring-offset":[N,O]}],"ring-offset-color":[{"ring-offset":es()}],"inset-ring-w":[{"inset-ring":ei()}],"inset-ring-color":[{"inset-ring":es()}],"text-shadow":[{"text-shadow":["none",p,U,L]}],"text-shadow-color":[{"text-shadow":es()}],opacity:[{opacity:[N,_,D]}],"mix-blend":[{"mix-blend":[...ed(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ed()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":em()}],"mask-image-linear-to-pos":[{"mask-linear-to":em()}],"mask-image-linear-from-color":[{"mask-linear-from":es()}],"mask-image-linear-to-color":[{"mask-linear-to":es()}],"mask-image-t-from-pos":[{"mask-t-from":em()}],"mask-image-t-to-pos":[{"mask-t-to":em()}],"mask-image-t-from-color":[{"mask-t-from":es()}],"mask-image-t-to-color":[{"mask-t-to":es()}],"mask-image-r-from-pos":[{"mask-r-from":em()}],"mask-image-r-to-pos":[{"mask-r-to":em()}],"mask-image-r-from-color":[{"mask-r-from":es()}],"mask-image-r-to-color":[{"mask-r-to":es()}],"mask-image-b-from-pos":[{"mask-b-from":em()}],"mask-image-b-to-pos":[{"mask-b-to":em()}],"mask-image-b-from-color":[{"mask-b-from":es()}],"mask-image-b-to-color":[{"mask-b-to":es()}],"mask-image-l-from-pos":[{"mask-l-from":em()}],"mask-image-l-to-pos":[{"mask-l-to":em()}],"mask-image-l-from-color":[{"mask-l-from":es()}],"mask-image-l-to-color":[{"mask-l-to":es()}],"mask-image-x-from-pos":[{"mask-x-from":em()}],"mask-image-x-to-pos":[{"mask-x-to":em()}],"mask-image-x-from-color":[{"mask-x-from":es()}],"mask-image-x-to-color":[{"mask-x-to":es()}],"mask-image-y-from-pos":[{"mask-y-from":em()}],"mask-image-y-to-pos":[{"mask-y-to":em()}],"mask-image-y-from-color":[{"mask-y-from":es()}],"mask-image-y-to-color":[{"mask-y-to":es()}],"mask-image-radial":[{"mask-radial":[_,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":em()}],"mask-image-radial-to-pos":[{"mask-radial-to":em()}],"mask-image-radial-from-color":[{"mask-radial-from":es()}],"mask-image-radial-to-color":[{"mask-radial-to":es()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":em()}],"mask-image-conic-to-pos":[{"mask-conic-to":em()}],"mask-image-conic-from-color":[{"mask-conic-from":es()}],"mask-image-conic-to-color":[{"mask-conic-to":es()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:et()}],"mask-repeat":[{mask:ea()}],"mask-size":[{mask:eo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,D]}],filter:[{filter:["","none",_,D]}],blur:[{blur:ep()}],brightness:[{brightness:[N,_,D]}],contrast:[{contrast:[N,_,D]}],"drop-shadow":[{"drop-shadow":["","none",u,U,L]}],"drop-shadow-color":[{"drop-shadow":es()}],grayscale:[{grayscale:["",N,_,D]}],"hue-rotate":[{"hue-rotate":[N,_,D]}],invert:[{invert:["",N,_,D]}],saturate:[{saturate:[N,_,D]}],sepia:[{sepia:["",N,_,D]}],"backdrop-filter":[{"backdrop-filter":["","none",_,D]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[N,_,D]}],"backdrop-contrast":[{"backdrop-contrast":[N,_,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,_,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,_,D]}],"backdrop-invert":[{"backdrop-invert":["",N,_,D]}],"backdrop-opacity":[{"backdrop-opacity":[N,_,D]}],"backdrop-saturate":[{"backdrop-saturate":[N,_,D]}],"backdrop-sepia":[{"backdrop-sepia":["",N,_,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",_,D]}],ease:[{ease:["linear","initial",b,_,D]}],delay:[{delay:[N,_,D]}],animate:[{animate:["none",y,_,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,_,D]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:eu()}],"rotate-x":[{"rotate-x":eu()}],"rotate-y":[{"rotate-y":eu()}],"rotate-z":[{"rotate-z":eu()}],scale:[{scale:ef()}],"scale-x":[{"scale-x":ef()}],"scale-y":[{"scale-y":ef()}],"scale-z":[{"scale-z":ef()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[_,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eh()}],"translate-x":[{"translate-x":eh()}],"translate-y":[{"translate-y":eh()}],"translate-z":[{"translate-z":eh()}],"translate-none":["translate-none"],accent:[{accent:es()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:es()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,D]}],fill:[{fill:["none",...es()]}],"stroke-w":[{stroke:[N,V,O,$]}],stroke:[{stroke:["none",...es()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ea(...e){return et(s(e))}let eo=a("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),el=o.forwardRef(({className:e,variant:s,...t},a)=>(0,r.jsx)("div",{ref:a,role:"alert",className:ea(eo({variant:s}),e),...t}));el.displayName="Alert",o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("h5",{ref:t,className:ea("mb-1 font-medium leading-none tracking-tight",e),...s})).displayName="AlertTitle";let en=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("text-sm [&_p]:leading-relaxed",e),...s}));en.displayName="AlertDescription";var ei=e.i(91918);let ec=a("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ed=o.forwardRef(({className:e,variant:s,size:t,asChild:a=!1,...o},l)=>{let n=a?ei.Slot:"button";return(0,r.jsx)(n,{className:ea(ec({variant:s,size:t,className:e})),ref:l,...o})});ed.displayName="Button";let em=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("rounded-xl border bg-card text-card-foreground shadow",e),...s}));em.displayName="Card";let ep=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("flex flex-col space-y-1.5 p-6",e),...s}));ep.displayName="CardHeader";let eu=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("font-semibold leading-none tracking-tight",e),...s}));eu.displayName="CardTitle";let ef=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("text-sm text-muted-foreground",e),...s}));ef.displayName="CardDescription";let ex=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("p-6 pt-0",e),...s}));ex.displayName="CardContent";let eh=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)("div",{ref:t,className:ea("flex items-center p-6 pt-0",e),...s}));eh.displayName="CardFooter";let eg=o.forwardRef(({className:e,type:s,...t},a)=>(0,r.jsx)("input",{type:s,className:ea("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...t}));eg.displayName="Input";var eb=e.i(48425),ey=o.forwardRef((e,s)=>(0,r.jsx)(eb.Primitive.label,{...e,ref:s,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ey.displayName="Label";let ev=a("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ew=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)(ey,{ref:t,className:ea(ev(),e),...s}));ew.displayName=ey.displayName;var ek=e.i(26209);let ej=ek.Root,eN=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)(ek.List,{ref:t,className:ea("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...s}));eN.displayName=ek.List.displayName;let eC=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)(ek.Trigger,{ref:t,className:ea("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...s}));eC.displayName=ek.Trigger.displayName;let ez=o.forwardRef(({className:e,...s},t)=>(0,r.jsx)(ek.Content,{ref:t,className:ea("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...s}));ez.displayName=ek.Content.displayName;let eS=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,s)=>s?s.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},eP=(...e)=>e.filter((e,r,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===r).join(" ").trim();var eM={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 eR=(0,o.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t,className:a="",children:l,iconNode:n,...i},c)=>(0,o.createElement)("svg",{ref:c,...eM,width:r,height:r,stroke:e,strokeWidth:t?24*Number(s)/Number(r):s,className:eP("lucide",a),...!l&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(i)&&{"aria-hidden":"true"},...i},[...n.map(([e,r])=>(0,o.createElement)(e,r)),...Array.isArray(l)?l:[l]])),eA=(e,r)=>{let s=(0,o.forwardRef)(({className:s,...t},a)=>(0,o.createElement)(eR,{ref:a,iconNode:r,className:eP(`lucide-${eS(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...t}));return s.displayName=eS(e),s},eE=eA("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),eT=eA("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),eI=eA("copy",[["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"}]]),eD=eA("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),eO=eA("external-link",[["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"}]]),e$=eA("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),eB=eA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),eF=eA("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),eL=eA("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),e_=eA("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),eV=eA("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);function eG(){let[s,t]=(0,o.useState)(""),[a,l]=(0,o.useState)(!1),[n,i]=(0,o.useState)(""),[c,d]=(0,o.useState)(""),[m,p]=(0,o.useState)(""),[u,f]=(0,o.useState)(""),[x,h]=(0,o.useState)(!0),[g,b]=(0,o.useState)(""),[y,v]=(0,o.useState)(!1),[w,k]=(0,o.useState)(""),j=(0,o.useRef)(null),N=async r=>{let s=r.target.files?.[0];if(s)try{let r=await s.text();k(r);try{let s=JSON.parse(r);if("wif"in s&&s.wif||"derivedPrivateKey"in s&&s.derivedPrivateKey)t(s.wif),h(!1),v(!1),b(""),i("");else if("xprv"in s&&"mnemonic"in s)try{let{HD:r,PrivateKey:a}=await e.A(28627),o=r.fromString(s.xprv).deriveChild(0).deriveChild(0),l=new a(o.privKey);t(l.toWif()),h(!1),v(!1),b(""),i("")}catch(e){i("Failed to derive key from BAP master backup")}else"ordPk"in s&&"payPk"in s?(t(s.payPk),h(!1),v(!1),b(""),i("")):i("Invalid backup format - no usable private key found")}catch(e){/^[A-Za-z0-9+/]+=*$/.test(r.trim())?(v(!0),i("")):i("Invalid backup file format")}}catch(e){i(e instanceof Error?e.message:"Failed to read backup file")}},C=async r=>{if(r?.preventDefault(),g)try{if(!w)return void i("No file content found");let{decryptBackup:r}=await e.A(25146),s=await r(w,g);if("wif"in s&&s.wif)t(s.wif),h(!1),v(!1),b(""),i("");else if("xprv"in s&&"mnemonic"in s)try{let{HD:r,PrivateKey:a}=await e.A(28627),o=r.fromString(s.xprv).deriveChild(0).deriveChild(0),l=new a(o.privKey);t(l.toWif()),h(!1),v(!1),b(""),i("")}catch(e){i("Failed to derive key from BAP master backup")}else"ordPk"in s&&"payPk"in s?(t(s.payPk),h(!1),v(!1),b(""),i("")):i("Invalid backup format - no usable private key found")}catch(e){i(e instanceof Error?e.message:"Failed to decrypt backup. Check your password.")}},z=async()=>{try{let{PrivateKey:r}=await e.A(28627),s=r.fromRandom();t(s.toWif()),h(!0)}catch(e){i("Failed to generate new key")}},S=async(r=!1)=>{if(s)try{let t,a,o={wif:s,label:"BSV MCP Key",createdAt:new Date().toISOString()};if(r&&g){let{encryptBackup:r}=await e.A(25146);t=await r(o,g),a=`bsv-mcp-backup-${Date.now()}.bep`}else t=JSON.stringify(o,null,2),a=`bsv-mcp-backup-${Date.now()}.json`;let l=new Blob([t],{type:"application/json"}),n=URL.createObjectURL(l),i=document.createElement("a");i.href=n,i.download=a,i.click(),URL.revokeObjectURL(n)}catch(e){i("Failed to create backup")}},P=async r=>{r.preventDefault(),i(""),l(!0);try{let{getAuthToken:r}=await e.A(47194),t=r({privateKeyWif:s,requestPath:"/api/create-session"}),a=await fetch("/api/create-session",{method:"POST",headers:{"Content-Type":"application/json","X-Auth-Token":t},body:JSON.stringify({authToken:t})});if(!a.ok)throw Error("Failed to create session");let{sessionToken:o}=await a.json();d(o),p(`${window.location.origin}/mcp`)}catch(e){i(e instanceof Error?e.message:"Authentication failed")}finally{l(!1)}},M=async(e,r)=>{await navigator.clipboard.writeText(e),f(r),setTimeout(()=>f(""),2e3)},R=()=>`claude mcp add --transport sse bsv-mcp-hosted ${m} --header X-Session-Token="${c}"`,A=()=>`{ "mcpServers": { "bsv-mcp-hosted": { "url": "${m}", "headers": { "X-Session-Token": "${c}" } } } }`,E=()=>`{ "mcpServers": { "bsv-mcp": { "transport": "stdio", "command": "bunx", "args": ["bsv-mcp@latest"] } } }`,T=()=>`docker run -it \\ -e PRIVATE_KEY_WIF="YOUR_WIF_HERE" \\ -e USE_DROPLET_API=false \\ ghcr.io/rohenaz/bsv-mcp:latest`;return(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gray-900 text-white",children:(0,r.jsxs)("div",{className:"w-full max-w-lg space-y-8",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h1",{className:"text-4xl font-bold tracking-tight",children:"BSV MCP"}),(0,r.jsx)("p",{className:"text-gray-400 mt-2",children:"Model Context Protocol for Bitcoin SV"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"MCP 2025-03-26 Specification"})]}),(0,r.jsxs)(em,{className:"bg-gray-800 border-gray-700",children:[(0,r.jsxs)(ep,{children:[(0,r.jsx)(eu,{children:"Authenticate"}),(0,r.jsx)(ef,{className:"text-gray-400",children:"Generate a new key or import an existing backup to connect to the BSV MCP server."})]}),(0,r.jsx)(ex,{children:(0,r.jsxs)("form",{onSubmit:P,className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)(ed,{type:"button",variant:"outline",onClick:z,className:"flex-1",children:[(0,r.jsx)(e$,{className:"mr-2 h-4 w-4"}),"Generate New Key"]}),(0,r.jsxs)(ed,{type:"button",variant:"outline",onClick:()=>j.current?.click(),className:"flex-1",children:[(0,r.jsx)(eV,{className:"mr-2 h-4 w-4"}),"Import Backup"]})]}),(0,r.jsx)("input",{ref:j,type:"file",accept:".json,.bep",onChange:N,className:"hidden"}),y&&(0,r.jsxs)("form",{onSubmit:C,className:"space-y-2",children:[(0,r.jsx)(ew,{htmlFor:"backupPassword",children:"Backup Password"}),(0,r.jsx)(eg,{id:"backupPassword",type:"password",value:g,onChange:e=>b(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g&&C()},placeholder:"Enter backup password",className:"bg-gray-700 border-gray-600",autoFocus:!0}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"This backup file is encrypted. Enter your password and press Enter."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(ew,{htmlFor:"wif",children:"Private Key (WIF)"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(eg,{id:"wif",type:"password",value:s,onChange:e=>t(e.target.value),placeholder:"5K... or import backup above",required:!0,className:"pr-10 bg-gray-700 border-gray-600"}),(0,r.jsx)(e$,{className:"absolute right-3 top-3 h-4 w-4 text-gray-400"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:"Your private key is only used for authentication and never sent to our servers."})]})]}),n&&(0,r.jsx)(el,{variant:"destructive",children:(0,r.jsx)(en,{children:n})}),(0,r.jsx)(ed,{type:"submit",className:"w-full",disabled:a||!s,children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eB,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating Session..."]}):"Create Session"})]})})]}),c&&(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsxs)(em,{className:"bg-gray-800 border-gray-700",children:[(0,r.jsxs)(ep,{children:[(0,r.jsx)(eu,{children:"Step 1: Download Your Backup"}),(0,r.jsx)(ef,{className:"text-gray-400",children:"Save your private key securely before proceeding."})]}),(0,r.jsxs)(ex,{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)(ed,{variant:"outline",onClick:()=>S(!1),className:"flex-1",children:[(0,r.jsx)(eD,{className:"mr-2 h-4 w-4"}),"Download Backup"]}),(0,r.jsxs)(ed,{variant:"outline",onClick:()=>S(!0),className:"flex-1",disabled:!g,children:[(0,r.jsx)(eD,{className:"mr-2 h-4 w-4"}),"Encrypted Backup"]})]}),!g&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(ew,{htmlFor:"encryptPassword",children:"Encryption Password (optional)"}),(0,r.jsx)(eg,{id:"encryptPassword",type:"password",value:g,onChange:e=>b(e.target.value),placeholder:"Enter password for encrypted backup",className:"bg-gray-700 border-gray-600"})]}),(0,r.jsx)(el,{children:(0,r.jsxs)(en,{children:["⚠️ ",(0,r.jsx)("strong",{children:"Important:"})," Store your backup file safely. This is the only way to recover your access if you lose your private key."]})})]})]}),(0,r.jsxs)(em,{className:"bg-gray-800 border-gray-700",children:[(0,r.jsxs)(ep,{children:[(0,r.jsxs)(eu,{children:["Step ",x?"2":"1",": Installation & Configuration"]}),(0,r.jsx)(ef,{className:"text-gray-400",children:"Choose your platform and deployment method"})]}),(0,r.jsxs)(ex,{className:"space-y-4",children:[(0,r.jsxs)(ej,{defaultValue:"claude",className:"w-full",children:[(0,r.jsxs)(eN,{className:"grid w-full grid-cols-4 bg-gray-700",children:[(0,r.jsx)(eC,{value:"claude",children:"Claude"}),(0,r.jsx)(eC,{value:"cursor",children:"Cursor"}),(0,r.jsx)(eC,{value:"local",children:"Local"}),(0,r.jsx)(eC,{value:"docker",children:"Docker"})]}),(0,r.jsx)(ez,{value:"claude",className:"space-y-4",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"p-4 bg-gray-700/50 rounded-lg space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(eT,{className:"h-4 w-4 text-blue-400"}),(0,r.jsx)("p",{className:"text-sm font-medium",children:"Hosted Mode (SSE Transport)"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Connects to our hosted MCP server using Server-Sent Events. Requires session authentication."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Claude Code CLI"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("code",{className:"text-xs text-gray-300 flex-1 pr-2 break-all",children:R()}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M(R(),"claude-cli"),className:"ml-2 px-2 py-1 shrink-0",children:"claude-cli"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Claude Desktop Configuration"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("pre",{className:"text-xs overflow-x-auto text-gray-300 flex-1 pr-2",children:(0,r.jsx)("code",{children:A()})}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M(A(),"claude-json"),className:"ml-2 px-2 py-1 shrink-0",children:"claude-json"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]})]})}),(0,r.jsx)(ez,{value:"cursor",className:"space-y-4",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"p-4 bg-gray-700/50 rounded-lg space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(e_,{className:"h-4 w-4 text-green-400"}),(0,r.jsx)("p",{className:"text-sm font-medium",children:"Local Mode (STDIO Transport)"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Runs locally on your machine. Uses your local BSV keys. Prompts for passphrase on first run."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Add to ~/.cursor/mcp.json"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("pre",{className:"text-xs overflow-x-auto text-gray-300 flex-1 pr-2",children:(0,r.jsx)("code",{children:E()})}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M(E(),"cursor-json"),className:"ml-2 px-2 py-1 shrink-0",children:"cursor-json"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]}),(0,r.jsx)(el,{className:"bg-blue-900/20 border-blue-700/50",children:(0,r.jsxs)(en,{className:"text-blue-200 text-xs",children:[(0,r.jsx)("strong",{children:"Note:"})," Restart Cursor after updating mcp.json"]})})]})}),(0,r.jsx)(ez,{value:"local",className:"space-y-4",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"p-4 bg-gray-700/50 rounded-lg space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(eF,{className:"h-4 w-4 text-purple-400"}),(0,r.jsx)("p",{className:"text-sm font-medium",children:"NPX/Bunx Mode"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Run directly from npm/bunx without installation. Great for testing or one-time use."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Run with bunx (recommended)"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("code",{className:"text-xs text-gray-300 flex-1 pr-2",children:"bunx bsv-mcp@latest"}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M("bunx bsv-mcp@latest","local-cmd"),className:"ml-2 px-2 py-1 shrink-0",children:"local-cmd"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Or run with npx"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("code",{className:"text-xs text-gray-300 flex-1 pr-2",children:"npx bsv-mcp@latest"}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M("npx bsv-mcp@latest","npx-cmd"),className:"ml-2 px-2 py-1 shrink-0",children:"npx-cmd"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]})]})}),(0,r.jsx)(ez,{value:"docker",className:"space-y-4",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"p-4 bg-gray-700/50 rounded-lg space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(eL,{className:"h-4 w-4 text-orange-400"}),(0,r.jsx)("p",{className:"text-sm font-medium",children:"Container Mode"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Run in an isolated Docker container. Perfect for production deployments or CI/CD pipelines."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-300",children:"Docker run command"}),(0,r.jsx)("div",{className:"rounded-lg bg-gray-900 p-4",children:(0,r.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,r.jsx)("code",{className:"text-xs text-gray-300 flex-1 pr-2 whitespace-pre",children:T()}),(0,r.jsx)(ed,{variant:"outline",size:"sm",onClick:()=>M(T(),"docker-cmd"),className:"ml-2 px-2 py-1 shrink-0",children:"docker-cmd"===u?(0,r.jsx)(eE,{className:"h-3 w-3"}):(0,r.jsx)(eI,{className:"h-3 w-3"})})]})})]}),(0,r.jsx)(el,{className:"bg-yellow-900/20 border-yellow-700/50",children:(0,r.jsxs)(en,{className:"text-yellow-200 text-xs",children:[(0,r.jsx)("strong",{children:"Security:"})," Never include your private key in Docker images. Always pass it as an environment variable."]})})]})})]}),(0,r.jsx)(el,{className:"bg-blue-900/20 border-blue-700/50",children:(0,r.jsxs)(en,{className:"text-blue-200 text-xs",children:[(0,r.jsx)("strong",{children:"Config File Locations:"}),(0,r.jsx)("br",{}),"• Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)",(0,r.jsx)("br",{}),"• Cursor: ~/.cursor/mcp.json",(0,r.jsx)("br",{}),"• VS Code: ~/.vscode/mcp.json"]})})]}),(0,r.jsxs)(eh,{className:"flex gap-2",children:[(0,r.jsx)(ed,{variant:"outline",className:"flex-1",asChild:!0,children:(0,r.jsxs)("a",{href:"https://github.com/rohenaz/bsv-mcp",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(eO,{className:"mr-2 h-4 w-4"}),"Documentation"]})}),(0,r.jsx)(ed,{variant:"outline",className:"flex-1",asChild:!0,children:(0,r.jsxs)("a",{href:"https://docs.anthropic.com/en/docs/claude-code/tutorials#set-up-model-context-protocol-mcp",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(e_,{className:"mr-2 h-4 w-4"}),"MCP Guide"]})})]})]})]})]})})}e.s(["default",()=>eG],31713)}]);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/b-open-io/bsv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server