sidenetai-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sidenetai-sdk.css +1 -1
- package/dist/sidenetai-sdk.es.js +191 -191
- package/dist/sidenetai-sdk.umd.js +1 -1
- package/package.json +1 -1
|
@@ -272,7 +272,7 @@ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="func
|
|
|
272
272
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ep.createRoot=function(t,e){if(!ot(t))throw Error("Target container is not a DOM element.");Lg(t);var a=!1,o="",c=Lh,f=qh,y=_y;return e!=null&&(e.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof e=="object"&&e!==null&&e.$$typeof===Rl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
273
273
|
|
|
274
274
|
let root = createRoot(domContainer);
|
|
275
|
-
root.render(<App />);`),e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(o=e.identifierPrefix),e.onUncaughtError!==void 0&&(c=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError)),e=td(t,1,!1,null,null,a,o,null,c,f,y,Rb),t[jo]=e.current,Su(t),new Hg(e)},Ep.hydrateRoot=function(t,e,a){if(!ot(t))throw Error("Target container is not a DOM element.");Lg(t),e===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,c="",f=Lh,y=qh,g=_y,E=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),e=td(t,1,!0,e,a??null,o,c,E,f,y,g,Rb),e.context=Cb(null),a=e.current,o=ua(a),o=Yu(o),c=zn(o),c.callback=null,zi(a,c,o),Di(o,"hydrateRoot()",null),a=o,e.current.lanes=a,Zo(e,a),Ha(e),t[jo]=e.current,Su(t),new li(e)},Ep.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ep}var P2;function HM(){if(P2)return X0.exports;P2=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(u(),X0.exports=BM()):X0.exports=VM(),X0.exports}var LM=HM();const qM=RM(LM);function tA(u){var r,d,m="";if(typeof u=="string"||typeof u=="number")m+=u;else if(typeof u=="object")if(Array.isArray(u)){var v=u.length;for(r=0;r<v;r++)u[r]&&(d=tA(u[r]))&&(m&&(m+=" "),m+=d)}else for(d in u)u[d]&&(m&&(m+=" "),m+=d);return m}function YM(){for(var u,r,d=0,m="",v=arguments.length;d<v;d++)(u=arguments[d])&&(r=tA(u))&&(m&&(m+=" "),m+=r);return m}const L1="-",GM=u=>{const r=QM(u),{conflictingClassGroups:d,conflictingClassGroupModifiers:m}=u;return{getClassGroupId:b=>{const A=b.split(L1);return A[0]===""&&A.length!==1&&A.shift(),eA(A,r)||XM(b)},getConflictingClassGroupIds:(b,A)=>{const x=d[b]||[];return A&&m[b]?[...x,...m[b]]:x}}},eA=(u,r)=>{if(u.length===0)return r.classGroupId;const d=u[0],m=r.nextPart.get(d),v=m?eA(u.slice(1),m):void 0;if(v)return v;if(r.validators.length===0)return;const T=u.join(L1);return r.validators.find(({validator:b})=>b(T))?.classGroupId},nA=/^\[(.+)\]$/,XM=u=>{if(nA.test(u)){const r=nA.exec(u)[1],d=r?.substring(0,r.indexOf(":"));if(d)return"arbitrary.."+d}},QM=u=>{const{theme:r,classGroups:d}=u,m={nextPart:new Map,validators:[]};for(const v in d)q1(d[v],m,v,r);return m},q1=(u,r,d,m)=>{u.forEach(v=>{if(typeof v=="string"){const T=v===""?r:aA(r,v);T.classGroupId=d;return}if(typeof v=="function"){if(ZM(v)){q1(v(m),r,d,m);return}r.validators.push({validator:v,classGroupId:d});return}Object.entries(v).forEach(([T,b])=>{q1(b,aA(r,T),d,m)})})},aA=(u,r)=>{let d=u;return r.split(L1).forEach(m=>{d.nextPart.has(m)||d.nextPart.set(m,{nextPart:new Map,validators:[]}),d=d.nextPart.get(m)}),d},ZM=u=>u.isThemeGetter,kM=u=>{if(u<1)return{get:()=>{},set:()=>{}};let r=0,d=new Map,m=new Map;const v=(T,b)=>{d.set(T,b),r++,r>u&&(r=0,m=d,d=new Map)};return{get(T){let b=d.get(T);if(b!==void 0)return b;if((b=m.get(T))!==void 0)return v(T,b),b},set(T,b){d.has(T)?d.set(T,b):v(T,b)}}},Y1="!",G1=":",JM=G1.length,KM=u=>{const{prefix:r,experimentalParseClassName:d}=u;let m=v=>{const T=[];let b=0,A=0,x=0,z;for(let X=0;X<v.length;X++){let lt=v[X];if(b===0&&A===0){if(lt===G1){T.push(v.slice(x,X)),x=X+JM;continue}if(lt==="/"){z=X;continue}}lt==="["?b++:lt==="]"?b--:lt==="("?A++:lt===")"&&A--}const M=T.length===0?v:v.substring(x),O=$M(M),w=O!==M,Q=z&&z>x?z-x:void 0;return{modifiers:T,hasImportantModifier:w,baseClassName:O,maybePostfixModifierPosition:Q}};if(r){const v=r+G1,T=m;m=b=>b.startsWith(v)?T(b.substring(v.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:b,maybePostfixModifierPosition:void 0}}if(d){const v=m;m=T=>d({className:T,parseClassName:v})}return m},$M=u=>u.endsWith(Y1)?u.substring(0,u.length-1):u.startsWith(Y1)?u.substring(1):u,FM=u=>{const r=Object.fromEntries(u.orderSensitiveModifiers.map(m=>[m,!0]));return m=>{if(m.length<=1)return m;const v=[];let T=[];return m.forEach(b=>{b[0]==="["||r[b]?(v.push(...T.sort(),b),T=[]):T.push(b)}),v.push(...T.sort()),v}},WM=u=>({cache:kM(u.cacheSize),parseClassName:KM(u),sortModifiers:FM(u),...GM(u)}),IM=/\s+/,PM=(u,r)=>{const{parseClassName:d,getClassGroupId:m,getConflictingClassGroupIds:v,sortModifiers:T}=r,b=[],A=u.trim().split(IM);let x="";for(let z=A.length-1;z>=0;z-=1){const M=A[z],{isExternal:O,modifiers:w,hasImportantModifier:Q,baseClassName:X,maybePostfixModifierPosition:lt}=d(M);if(O){x=M+(x.length>0?" "+x:x);continue}let ot=!!lt,nt=m(ot?X.substring(0,lt):X);if(!nt){if(!ot){x=M+(x.length>0?" "+x:x);continue}if(nt=m(X),!nt){x=M+(x.length>0?" "+x:x);continue}ot=!1}const dt=T(w).join(":"),ht=Q?dt+Y1:dt,Tt=ht+nt;if(b.includes(Tt))continue;b.push(Tt);const St=v(nt,ot);for(let bt=0;bt<St.length;++bt){const Dt=St[bt];b.push(ht+Dt)}x=M+(x.length>0?" "+x:x)}return x};function t3(){let u=0,r,d,m="";for(;u<arguments.length;)(r=arguments[u++])&&(d=lA(r))&&(m&&(m+=" "),m+=d);return m}const lA=u=>{if(typeof u=="string")return u;let r,d="";for(let m=0;m<u.length;m++)u[m]&&(r=lA(u[m]))&&(d&&(d+=" "),d+=r);return d};function e3(u,...r){let d,m,v,T=b;function b(x){const z=r.reduce((M,O)=>O(M),u());return d=WM(z),m=d.cache.get,v=d.cache.set,T=A,A(x)}function A(x){const z=m(x);if(z)return z;const M=PM(x,d);return v(x,M),M}return function(){return T(t3.apply(null,arguments))}}const Wn=u=>{const r=d=>d[u]||[];return r.isThemeGetter=!0,r},iA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,n3=/^\d+\/\d+$/,a3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l3=/\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$/,i3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,o3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_d=u=>n3.test(u),de=u=>!!u&&!Number.isNaN(Number(u)),Ws=u=>!!u&&Number.isInteger(Number(u)),X1=u=>u.endsWith("%")&&de(u.slice(0,-1)),_u=u=>a3.test(u),s3=()=>!0,r3=u=>l3.test(u)&&!i3.test(u),uA=()=>!1,c3=u=>o3.test(u),f3=u=>u3.test(u),d3=u=>!zt(u)&&!Ot(u),h3=u=>Nd(u,dA,uA),zt=u=>iA.test(u),Vc=u=>Nd(u,hA,r3),Q1=u=>Nd(u,v3,de),sA=u=>Nd(u,cA,uA),m3=u=>Nd(u,fA,f3),Z0=u=>Nd(u,mA,c3),Ot=u=>oA.test(u),xp=u=>jd(u,hA),p3=u=>jd(u,b3),rA=u=>jd(u,cA),y3=u=>jd(u,dA),g3=u=>jd(u,fA),k0=u=>jd(u,mA,!0),Nd=(u,r,d)=>{const m=iA.exec(u);return m?m[1]?r(m[1]):d(m[2]):!1},jd=(u,r,d=!1)=>{const m=oA.exec(u);return m?m[1]?r(m[1]):d:!1},cA=u=>u==="position"||u==="percentage",fA=u=>u==="image"||u==="url",dA=u=>u==="length"||u==="size"||u==="bg-size",hA=u=>u==="length",v3=u=>u==="number",b3=u=>u==="family-name",mA=u=>u==="shadow",S3=e3(()=>{const u=Wn("color"),r=Wn("font"),d=Wn("text"),m=Wn("font-weight"),v=Wn("tracking"),T=Wn("leading"),b=Wn("breakpoint"),A=Wn("container"),x=Wn("spacing"),z=Wn("radius"),M=Wn("shadow"),O=Wn("inset-shadow"),w=Wn("text-shadow"),Q=Wn("drop-shadow"),X=Wn("blur"),lt=Wn("perspective"),ot=Wn("aspect"),nt=Wn("ease"),dt=Wn("animate"),ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Tt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],St=()=>[...Tt(),Ot,zt],bt=()=>["auto","hidden","clip","visible","scroll"],Dt=()=>["auto","contain","none"],I=()=>[Ot,zt,x],wt=()=>[_d,"full","auto",...I()],yt=()=>[Ws,"none","subgrid",Ot,zt],Qt=()=>["auto",{span:["full",Ws,Ot,zt]},Ws,Ot,zt],Bt=()=>[Ws,"auto",Ot,zt],Vt=()=>["auto","min","max","fr",Ot,zt],Lt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Gt=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...I()],F=()=>[_d,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],k=()=>[u,Ot,zt],gt=()=>[...Tt(),rA,sA,{position:[Ot,zt]}],Mt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",y3,h3,{size:[Ot,zt]}],pt=()=>[X1,xp,Vc],st=()=>["","none","full",z,Ot,zt],ft=()=>["",de,xp,Vc],Ht=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xt=()=>[de,X1,rA,sA],be=()=>["","none",X,Ot,zt],It=()=>["none",de,Ot,zt],Kt=()=>["none",de,Ot,zt],mt=()=>[de,Ot,zt],se=()=>[_d,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_u],breakpoint:[_u],color:[s3],container:[_u],"drop-shadow":[_u],ease:["in","out","in-out"],font:[d3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_u],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_u],shadow:[_u],spacing:["px",de],text:[_u],"text-shadow":[_u],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_d,zt,Ot,ot]}],container:["container"],columns:[{columns:[de,zt,Ot,A]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"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:St()}],overflow:[{overflow:bt()}],"overflow-x":[{"overflow-x":bt()}],"overflow-y":[{"overflow-y":bt()}],overscroll:[{overscroll:Dt()}],"overscroll-x":[{"overscroll-x":Dt()}],"overscroll-y":[{"overscroll-y":Dt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:wt()}],"inset-x":[{"inset-x":wt()}],"inset-y":[{"inset-y":wt()}],start:[{start:wt()}],end:[{end:wt()}],top:[{top:wt()}],right:[{right:wt()}],bottom:[{bottom:wt()}],left:[{left:wt()}],visibility:["visible","invisible","collapse"],z:[{z:[Ws,"auto",Ot,zt]}],basis:[{basis:[_d,"full","auto",A,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,_d,"auto","initial","none",zt]}],grow:[{grow:["",de,Ot,zt]}],shrink:[{shrink:["",de,Ot,zt]}],order:[{order:[Ws,"first","last","none",Ot,zt]}],"grid-cols":[{"grid-cols":yt()}],"col-start-end":[{col:Qt()}],"col-start":[{"col-start":Bt()}],"col-end":[{"col-end":Bt()}],"grid-rows":[{"grid-rows":yt()}],"row-start-end":[{row:Qt()}],"row-start":[{"row-start":Bt()}],"row-end":[{"row-end":Bt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Vt()}],"auto-rows":[{"auto-rows":Vt()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...Lt(),"normal"]}],"justify-items":[{"justify-items":[...Gt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Gt()]}],"align-content":[{content:["normal",...Lt()]}],"align-items":[{items:[...Gt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Gt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Lt()}],"place-items":[{"place-items":[...Gt(),"baseline"]}],"place-self":[{"place-self":["auto",...Gt()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[A,"screen",...F()]}],"min-w":[{"min-w":[A,"screen","none",...F()]}],"max-w":[{"max-w":[A,"screen","none","prose",{screen:[b]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",d,xp,Vc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[m,Ot,Q1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",X1,zt]}],"font-family":[{font:[p3,zt,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:[v,Ot,zt]}],"line-clamp":[{"line-clamp":[de,"none",Ot,Q1]}],leading:[{leading:[T,...I()]}],"list-image":[{"list-image":["none",Ot,zt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ot,zt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ht(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Ot,Vc]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[de,"auto",Ot,zt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ot,zt]}],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",Ot,zt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:gt()}],"bg-repeat":[{bg:Mt()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ws,Ot,zt],radial:["",Ot,zt],conic:[Ws,Ot,zt]},g3,m3]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:pt()}],"gradient-via-pos":[{via:pt()}],"gradient-to-pos":[{to:pt()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"border-w":[{border:ft()}],"border-w-x":[{"border-x":ft()}],"border-w-y":[{"border-y":ft()}],"border-w-s":[{"border-s":ft()}],"border-w-e":[{"border-e":ft()}],"border-w-t":[{"border-t":ft()}],"border-w-r":[{"border-r":ft()}],"border-w-b":[{"border-b":ft()}],"border-w-l":[{"border-l":ft()}],"divide-x":[{"divide-x":ft()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ft()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ht(),"hidden","none"]}],"divide-style":[{divide:[...Ht(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Ht(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Ot,zt]}],"outline-w":[{outline:["",de,xp,Vc]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",M,k0,Z0]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",O,k0,Z0]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ft()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[de,Vc]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ft()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",w,k0,Z0]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[de,Ot,zt]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":xt()}],"mask-image-linear-to-pos":[{"mask-linear-to":xt()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":xt()}],"mask-image-t-to-pos":[{"mask-t-to":xt()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":xt()}],"mask-image-r-to-pos":[{"mask-r-to":xt()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":xt()}],"mask-image-b-to-pos":[{"mask-b-to":xt()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":xt()}],"mask-image-l-to-pos":[{"mask-l-to":xt()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":xt()}],"mask-image-x-to-pos":[{"mask-x-to":xt()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":xt()}],"mask-image-y-to-pos":[{"mask-y-to":xt()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[Ot,zt]}],"mask-image-radial-from-pos":[{"mask-radial-from":xt()}],"mask-image-radial-to-pos":[{"mask-radial-to":xt()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":Tt()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":xt()}],"mask-image-conic-to-pos":[{"mask-conic-to":xt()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:gt()}],"mask-repeat":[{mask:Mt()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ot,zt]}],filter:[{filter:["","none",Ot,zt]}],blur:[{blur:be()}],brightness:[{brightness:[de,Ot,zt]}],contrast:[{contrast:[de,Ot,zt]}],"drop-shadow":[{"drop-shadow":["","none",Q,k0,Z0]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",de,Ot,zt]}],"hue-rotate":[{"hue-rotate":[de,Ot,zt]}],invert:[{invert:["",de,Ot,zt]}],saturate:[{saturate:[de,Ot,zt]}],sepia:[{sepia:["",de,Ot,zt]}],"backdrop-filter":[{"backdrop-filter":["","none",Ot,zt]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[de,Ot,zt]}],"backdrop-contrast":[{"backdrop-contrast":[de,Ot,zt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Ot,zt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Ot,zt]}],"backdrop-invert":[{"backdrop-invert":["",de,Ot,zt]}],"backdrop-opacity":[{"backdrop-opacity":[de,Ot,zt]}],"backdrop-saturate":[{"backdrop-saturate":[de,Ot,zt]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Ot,zt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ot,zt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",Ot,zt]}],ease:[{ease:["linear","initial",nt,Ot,zt]}],delay:[{delay:[de,Ot,zt]}],animate:[{animate:["none",dt,Ot,zt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[lt,Ot,zt]}],"perspective-origin":[{"perspective-origin":St()}],rotate:[{rotate:It()}],"rotate-x":[{"rotate-x":It()}],"rotate-y":[{"rotate-y":It()}],"rotate-z":[{"rotate-z":It()}],scale:[{scale:Kt()}],"scale-x":[{"scale-x":Kt()}],"scale-y":[{"scale-y":Kt()}],"scale-z":[{"scale-z":Kt()}],"scale-3d":["scale-3d"],skew:[{skew:mt()}],"skew-x":[{"skew-x":mt()}],"skew-y":[{"skew-y":mt()}],transform:[{transform:[Ot,zt,"","none","gpu","cpu"]}],"transform-origin":[{origin:St()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",Ot,zt]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",Ot,zt]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[de,xp,Vc,Q1]}],stroke:[{stroke:["none",...k()]}],"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 yl(...u){return S3(YM(u))}function Z1(u){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let d="";for(let m=0;m<u;m++)d+=r.charAt(Math.floor(Math.random()*r.length));return d}function T3(u){const r=Date.now(),d=Z1(12);return`sdk_${u}_${r}_${d}`}function pA(u){if(!u||u.length===0)return u;let r=u;return(r.startsWith("'")||r.startsWith('"'))&&(r=r.substring(1)),(r.endsWith("'")||r.endsWith('"'))&&(r=r.substring(0,r.length-1)),r}function A3(u){if(!u||u.length===0)return u;const r=u.indexOf("_v");return(r!==-1?u.substring(0,r):u).replace(/-/g," ").split(" ").map(T=>T.length===0?T:T.charAt(0).toUpperCase()+T.slice(1).toLowerCase()).join(" ")}const yA=qe.forwardRef(({className:u,...r},d)=>$.jsx("textarea",{className:yl("flex min-h-[80px] w-full rounded-md px-3 py-2 placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",u),ref:d,...r}));yA.displayName="Textarea";const E3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 1.39644C8.31659 1.00592 7.68342 1.00592 7.2929 1.39644L2.21968 6.46966L1.68935 6.99999L2.75001 8.06065L3.28034 7.53032L7.25001 3.56065V14.25V15H8.75001V14.25V3.56065L12.7197 7.53032L13.25 8.06065L14.3107 6.99999L13.7803 6.46966L8.70711 1.39644Z",fill:"currentColor"})}),x3=({size:u=16})=>$.jsx("svg",{height:u,viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H13V13H3V3Z",fill:"currentColor"})}),D3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 8.75,1 H7.25 V7.25 H1.5 V8.75 H7.25 V15 H8.75 V8.75 H14.5 V7.25 H8.75 V1.75 Z",fill:"currentColor"})}),C3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.96452 2.5C11.0257 2.5 13.5 4.96643 13.5 8C13.5 11.0336 11.0257 13.5 7.96452 13.5C6.12055 13.5 4.48831 12.6051 3.48161 11.2273L3.03915 10.6217L1.828 11.5066L2.27046 12.1122C3.54872 13.8617 5.62368 15 7.96452 15C11.8461 15 15 11.87 15 8C15 4.13001 11.8461 1 7.96452 1C5.06835 1 2.57851 2.74164 1.5 5.23347V3.75V3H0V3.75V7.25C0 7.66421 0.335786 8 0.75 8H3.75H4.5V6.5H3.75H2.63724C3.29365 4.19393 5.42843 2.5 7.96452 2.5ZM8.75 5.25V4.5H7.25V5.25V7.8662C7.25 8.20056 7.4171 8.51279 7.6953 8.69825L9.08397 9.62404L9.70801 10.0401L10.5401 8.79199L9.91603 8.37596L8.75 7.59861V5.25Z",fill:"currentColor"})}),k1={project_id:"",user_id:"",width:"50vw",maxWidth:"80vw",resizable:!0,keyboardShortcut:"b",userMessage:"bg-black dark:bg-gray-600 text-white dark:text-gray-100 text-base",assistantMessage:"text-black dark dark:text-gray-100 text-base",headerButtons:"p-2 my-2 rounded-lg border bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-700 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",headerButtonSize:20,headerTitle:"text-base text-gray-900 dark:text-gray-100",sendButton:"p-2 m-2 rounded-lg border bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-700 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",sendButtonSize:16,placeholder:"Ask me anything",textArea:"flex min-h-[80px] w-full rounded-md border focus:border-black dark:focus:border-white focus-visible:outline-none border-gray-300 dark:border-gray-700 bg-background px-3 py-2 placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 text-base",sidebarContainer:"bg-white dark:bg-gray-900 text-black dark:text-gray-100 border-gray-300 dark:border-gray-700",suggestions:"bg-white dark:bg-gray-800 text-black dark:text-gray-100 border-gray-300 dark:border-gray-700",cardContainer:"dark:bg-gray-800",cardTitle:"dark:text-gray-100",cardSubtitle:"text-gray-500 text-sm dark:text-gray-400",defaultOpen:!0,debug:!0};let gA={...k1};function J1(){return gA}function M3(u){gA={...k1,...u}}async function z3(u){const r=u.projectId||u.copilotId,d=u.userId,m=u.apiKey;if(!r)return console.warn("No projectId or copilotId provided, using default config"),{};if(!m)return console.warn("No API key provided, using default config"),{};try{const v=`http://localhost:8080/api/v1/copilot/${r}/config`,T={"Content-Type":"application/json",Authorization:`Bearer ${m}`};d&&(T["X-User-Id"]=d);const b=await fetch(v,{method:"GET",headers:T});if(!b.ok){if(b.status===404)return console.warn("Config endpoint not found (404), using default config"),{};throw new Error(`Failed to fetch config: ${b.status} ${b.statusText}`)}const A=await b.json();return k1.debug&&console.log("✅ Successfully fetched config from database:",A),A}catch(v){return console.warn("⚠️ Failed to fetch config from database, using defaults:",v),{}}}const vA=ut.createContext(J1());function Dp(){return ut.useContext(vA)}function bA({children:u}){const r=J1();return $.jsx(vA.Provider,{value:r,children:u})}function O3({onSendMessage:u,isStreaming:r,inputValue:d,onInputChange:m,onFocusRequest:v}){const[T,b]=ut.useState(""),A=d!==void 0?d:T,x=m||b,z=ut.useRef(null),M=Dp(),O=()=>{if(z.current){z.current.focus();const X=z.current.value.length;z.current.setSelectionRange(X,X)}};ut.useEffect(()=>{v&&v(O)},[v]);const w=X=>{X.preventDefault(),A.trim()&&!r&&u(A.trim())},Q=X=>{if(X.key==="Enter"&&!X.shiftKey){X.preventDefault();const lt=new Event("submit",{bubbles:!0,cancelable:!0});w(lt)}};return $.jsx("div",{className:"my-4",children:$.jsxs("form",{onSubmit:w,className:"space-y-3 m relative",children:[$.jsx("div",{className:"",children:$.jsx(yA,{ref:z,value:A,onChange:X=>x(X.target.value),onKeyDown:Q,placeholder:M.placeholder,disabled:r,className:`min-h-[80px] resize-none ${M.textArea} `})}),$.jsx("div",{className:"absolute bottom-0 right-0 h-fit justify-end p-0 ",children:$.jsx("button",{type:"submit",disabled:!A.trim()||r,className:`
|
|
275
|
+
root.render(<App />);`),e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(o=e.identifierPrefix),e.onUncaughtError!==void 0&&(c=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError)),e=td(t,1,!1,null,null,a,o,null,c,f,y,Rb),t[jo]=e.current,Su(t),new Hg(e)},Ep.hydrateRoot=function(t,e,a){if(!ot(t))throw Error("Target container is not a DOM element.");Lg(t),e===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,c="",f=Lh,y=qh,g=_y,E=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),e=td(t,1,!0,e,a??null,o,c,E,f,y,g,Rb),e.context=Cb(null),a=e.current,o=ua(a),o=Yu(o),c=zn(o),c.callback=null,zi(a,c,o),Di(o,"hydrateRoot()",null),a=o,e.current.lanes=a,Zo(e,a),Ha(e),t[jo]=e.current,Su(t),new li(e)},Ep.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ep}var P2;function HM(){if(P2)return X0.exports;P2=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(u(),X0.exports=BM()):X0.exports=VM(),X0.exports}var LM=HM();const qM=RM(LM);function tA(u){var r,d,m="";if(typeof u=="string"||typeof u=="number")m+=u;else if(typeof u=="object")if(Array.isArray(u)){var v=u.length;for(r=0;r<v;r++)u[r]&&(d=tA(u[r]))&&(m&&(m+=" "),m+=d)}else for(d in u)u[d]&&(m&&(m+=" "),m+=d);return m}function YM(){for(var u,r,d=0,m="",v=arguments.length;d<v;d++)(u=arguments[d])&&(r=tA(u))&&(m&&(m+=" "),m+=r);return m}const L1="-",GM=u=>{const r=QM(u),{conflictingClassGroups:d,conflictingClassGroupModifiers:m}=u;return{getClassGroupId:b=>{const A=b.split(L1);return A[0]===""&&A.length!==1&&A.shift(),eA(A,r)||XM(b)},getConflictingClassGroupIds:(b,A)=>{const x=d[b]||[];return A&&m[b]?[...x,...m[b]]:x}}},eA=(u,r)=>{if(u.length===0)return r.classGroupId;const d=u[0],m=r.nextPart.get(d),v=m?eA(u.slice(1),m):void 0;if(v)return v;if(r.validators.length===0)return;const T=u.join(L1);return r.validators.find(({validator:b})=>b(T))?.classGroupId},nA=/^\[(.+)\]$/,XM=u=>{if(nA.test(u)){const r=nA.exec(u)[1],d=r?.substring(0,r.indexOf(":"));if(d)return"arbitrary.."+d}},QM=u=>{const{theme:r,classGroups:d}=u,m={nextPart:new Map,validators:[]};for(const v in d)q1(d[v],m,v,r);return m},q1=(u,r,d,m)=>{u.forEach(v=>{if(typeof v=="string"){const T=v===""?r:aA(r,v);T.classGroupId=d;return}if(typeof v=="function"){if(ZM(v)){q1(v(m),r,d,m);return}r.validators.push({validator:v,classGroupId:d});return}Object.entries(v).forEach(([T,b])=>{q1(b,aA(r,T),d,m)})})},aA=(u,r)=>{let d=u;return r.split(L1).forEach(m=>{d.nextPart.has(m)||d.nextPart.set(m,{nextPart:new Map,validators:[]}),d=d.nextPart.get(m)}),d},ZM=u=>u.isThemeGetter,kM=u=>{if(u<1)return{get:()=>{},set:()=>{}};let r=0,d=new Map,m=new Map;const v=(T,b)=>{d.set(T,b),r++,r>u&&(r=0,m=d,d=new Map)};return{get(T){let b=d.get(T);if(b!==void 0)return b;if((b=m.get(T))!==void 0)return v(T,b),b},set(T,b){d.has(T)?d.set(T,b):v(T,b)}}},Y1="!",G1=":",JM=G1.length,KM=u=>{const{prefix:r,experimentalParseClassName:d}=u;let m=v=>{const T=[];let b=0,A=0,x=0,z;for(let X=0;X<v.length;X++){let lt=v[X];if(b===0&&A===0){if(lt===G1){T.push(v.slice(x,X)),x=X+JM;continue}if(lt==="/"){z=X;continue}}lt==="["?b++:lt==="]"?b--:lt==="("?A++:lt===")"&&A--}const M=T.length===0?v:v.substring(x),O=$M(M),w=O!==M,Q=z&&z>x?z-x:void 0;return{modifiers:T,hasImportantModifier:w,baseClassName:O,maybePostfixModifierPosition:Q}};if(r){const v=r+G1,T=m;m=b=>b.startsWith(v)?T(b.substring(v.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:b,maybePostfixModifierPosition:void 0}}if(d){const v=m;m=T=>d({className:T,parseClassName:v})}return m},$M=u=>u.endsWith(Y1)?u.substring(0,u.length-1):u.startsWith(Y1)?u.substring(1):u,FM=u=>{const r=Object.fromEntries(u.orderSensitiveModifiers.map(m=>[m,!0]));return m=>{if(m.length<=1)return m;const v=[];let T=[];return m.forEach(b=>{b[0]==="["||r[b]?(v.push(...T.sort(),b),T=[]):T.push(b)}),v.push(...T.sort()),v}},WM=u=>({cache:kM(u.cacheSize),parseClassName:KM(u),sortModifiers:FM(u),...GM(u)}),IM=/\s+/,PM=(u,r)=>{const{parseClassName:d,getClassGroupId:m,getConflictingClassGroupIds:v,sortModifiers:T}=r,b=[],A=u.trim().split(IM);let x="";for(let z=A.length-1;z>=0;z-=1){const M=A[z],{isExternal:O,modifiers:w,hasImportantModifier:Q,baseClassName:X,maybePostfixModifierPosition:lt}=d(M);if(O){x=M+(x.length>0?" "+x:x);continue}let ot=!!lt,nt=m(ot?X.substring(0,lt):X);if(!nt){if(!ot){x=M+(x.length>0?" "+x:x);continue}if(nt=m(X),!nt){x=M+(x.length>0?" "+x:x);continue}ot=!1}const dt=T(w).join(":"),ht=Q?dt+Y1:dt,Tt=ht+nt;if(b.includes(Tt))continue;b.push(Tt);const St=v(nt,ot);for(let bt=0;bt<St.length;++bt){const Dt=St[bt];b.push(ht+Dt)}x=M+(x.length>0?" "+x:x)}return x};function t3(){let u=0,r,d,m="";for(;u<arguments.length;)(r=arguments[u++])&&(d=lA(r))&&(m&&(m+=" "),m+=d);return m}const lA=u=>{if(typeof u=="string")return u;let r,d="";for(let m=0;m<u.length;m++)u[m]&&(r=lA(u[m]))&&(d&&(d+=" "),d+=r);return d};function e3(u,...r){let d,m,v,T=b;function b(x){const z=r.reduce((M,O)=>O(M),u());return d=WM(z),m=d.cache.get,v=d.cache.set,T=A,A(x)}function A(x){const z=m(x);if(z)return z;const M=PM(x,d);return v(x,M),M}return function(){return T(t3.apply(null,arguments))}}const Wn=u=>{const r=d=>d[u]||[];return r.isThemeGetter=!0,r},iA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,n3=/^\d+\/\d+$/,a3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l3=/\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$/,i3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,o3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_d=u=>n3.test(u),de=u=>!!u&&!Number.isNaN(Number(u)),Ws=u=>!!u&&Number.isInteger(Number(u)),X1=u=>u.endsWith("%")&&de(u.slice(0,-1)),_u=u=>a3.test(u),s3=()=>!0,r3=u=>l3.test(u)&&!i3.test(u),uA=()=>!1,c3=u=>o3.test(u),f3=u=>u3.test(u),d3=u=>!zt(u)&&!Ot(u),h3=u=>Nd(u,dA,uA),zt=u=>iA.test(u),Vc=u=>Nd(u,hA,r3),Q1=u=>Nd(u,v3,de),sA=u=>Nd(u,cA,uA),m3=u=>Nd(u,fA,f3),Z0=u=>Nd(u,mA,c3),Ot=u=>oA.test(u),xp=u=>jd(u,hA),p3=u=>jd(u,b3),rA=u=>jd(u,cA),y3=u=>jd(u,dA),g3=u=>jd(u,fA),k0=u=>jd(u,mA,!0),Nd=(u,r,d)=>{const m=iA.exec(u);return m?m[1]?r(m[1]):d(m[2]):!1},jd=(u,r,d=!1)=>{const m=oA.exec(u);return m?m[1]?r(m[1]):d:!1},cA=u=>u==="position"||u==="percentage",fA=u=>u==="image"||u==="url",dA=u=>u==="length"||u==="size"||u==="bg-size",hA=u=>u==="length",v3=u=>u==="number",b3=u=>u==="family-name",mA=u=>u==="shadow",S3=e3(()=>{const u=Wn("color"),r=Wn("font"),d=Wn("text"),m=Wn("font-weight"),v=Wn("tracking"),T=Wn("leading"),b=Wn("breakpoint"),A=Wn("container"),x=Wn("spacing"),z=Wn("radius"),M=Wn("shadow"),O=Wn("inset-shadow"),w=Wn("text-shadow"),Q=Wn("drop-shadow"),X=Wn("blur"),lt=Wn("perspective"),ot=Wn("aspect"),nt=Wn("ease"),dt=Wn("animate"),ht=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Tt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],St=()=>[...Tt(),Ot,zt],bt=()=>["auto","hidden","clip","visible","scroll"],Dt=()=>["auto","contain","none"],I=()=>[Ot,zt,x],wt=()=>[_d,"full","auto",...I()],yt=()=>[Ws,"none","subgrid",Ot,zt],Qt=()=>["auto",{span:["full",Ws,Ot,zt]},Ws,Ot,zt],Bt=()=>[Ws,"auto",Ot,zt],Vt=()=>["auto","min","max","fr",Ot,zt],Lt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Gt=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...I()],F=()=>[_d,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],k=()=>[u,Ot,zt],gt=()=>[...Tt(),rA,sA,{position:[Ot,zt]}],Mt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",y3,h3,{size:[Ot,zt]}],pt=()=>[X1,xp,Vc],st=()=>["","none","full",z,Ot,zt],ft=()=>["",de,xp,Vc],Ht=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xt=()=>[de,X1,rA,sA],be=()=>["","none",X,Ot,zt],It=()=>["none",de,Ot,zt],Kt=()=>["none",de,Ot,zt],mt=()=>[de,Ot,zt],se=()=>[_d,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_u],breakpoint:[_u],color:[s3],container:[_u],"drop-shadow":[_u],ease:["in","out","in-out"],font:[d3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_u],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_u],shadow:[_u],spacing:["px",de],text:[_u],"text-shadow":[_u],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_d,zt,Ot,ot]}],container:["container"],columns:[{columns:[de,zt,Ot,A]}],"break-after":[{"break-after":ht()}],"break-before":[{"break-before":ht()}],"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:St()}],overflow:[{overflow:bt()}],"overflow-x":[{"overflow-x":bt()}],"overflow-y":[{"overflow-y":bt()}],overscroll:[{overscroll:Dt()}],"overscroll-x":[{"overscroll-x":Dt()}],"overscroll-y":[{"overscroll-y":Dt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:wt()}],"inset-x":[{"inset-x":wt()}],"inset-y":[{"inset-y":wt()}],start:[{start:wt()}],end:[{end:wt()}],top:[{top:wt()}],right:[{right:wt()}],bottom:[{bottom:wt()}],left:[{left:wt()}],visibility:["visible","invisible","collapse"],z:[{z:[Ws,"auto",Ot,zt]}],basis:[{basis:[_d,"full","auto",A,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,_d,"auto","initial","none",zt]}],grow:[{grow:["",de,Ot,zt]}],shrink:[{shrink:["",de,Ot,zt]}],order:[{order:[Ws,"first","last","none",Ot,zt]}],"grid-cols":[{"grid-cols":yt()}],"col-start-end":[{col:Qt()}],"col-start":[{"col-start":Bt()}],"col-end":[{"col-end":Bt()}],"grid-rows":[{"grid-rows":yt()}],"row-start-end":[{row:Qt()}],"row-start":[{"row-start":Bt()}],"row-end":[{"row-end":Bt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Vt()}],"auto-rows":[{"auto-rows":Vt()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...Lt(),"normal"]}],"justify-items":[{"justify-items":[...Gt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Gt()]}],"align-content":[{content:["normal",...Lt()]}],"align-items":[{items:[...Gt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Gt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Lt()}],"place-items":[{"place-items":[...Gt(),"baseline"]}],"place-self":[{"place-self":["auto",...Gt()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[A,"screen",...F()]}],"min-w":[{"min-w":[A,"screen","none",...F()]}],"max-w":[{"max-w":[A,"screen","none","prose",{screen:[b]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",d,xp,Vc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[m,Ot,Q1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",X1,zt]}],"font-family":[{font:[p3,zt,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:[v,Ot,zt]}],"line-clamp":[{"line-clamp":[de,"none",Ot,Q1]}],leading:[{leading:[T,...I()]}],"list-image":[{"list-image":["none",Ot,zt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ot,zt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ht(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Ot,Vc]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[de,"auto",Ot,zt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ot,zt]}],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",Ot,zt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:gt()}],"bg-repeat":[{bg:Mt()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ws,Ot,zt],radial:["",Ot,zt],conic:[Ws,Ot,zt]},g3,m3]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:pt()}],"gradient-via-pos":[{via:pt()}],"gradient-to-pos":[{to:pt()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"border-w":[{border:ft()}],"border-w-x":[{"border-x":ft()}],"border-w-y":[{"border-y":ft()}],"border-w-s":[{"border-s":ft()}],"border-w-e":[{"border-e":ft()}],"border-w-t":[{"border-t":ft()}],"border-w-r":[{"border-r":ft()}],"border-w-b":[{"border-b":ft()}],"border-w-l":[{"border-l":ft()}],"divide-x":[{"divide-x":ft()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ft()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ht(),"hidden","none"]}],"divide-style":[{divide:[...Ht(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Ht(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Ot,zt]}],"outline-w":[{outline:["",de,xp,Vc]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",M,k0,Z0]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",O,k0,Z0]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ft()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[de,Vc]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ft()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",w,k0,Z0]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[de,Ot,zt]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":xt()}],"mask-image-linear-to-pos":[{"mask-linear-to":xt()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":xt()}],"mask-image-t-to-pos":[{"mask-t-to":xt()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":xt()}],"mask-image-r-to-pos":[{"mask-r-to":xt()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":xt()}],"mask-image-b-to-pos":[{"mask-b-to":xt()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":xt()}],"mask-image-l-to-pos":[{"mask-l-to":xt()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":xt()}],"mask-image-x-to-pos":[{"mask-x-to":xt()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":xt()}],"mask-image-y-to-pos":[{"mask-y-to":xt()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[Ot,zt]}],"mask-image-radial-from-pos":[{"mask-radial-from":xt()}],"mask-image-radial-to-pos":[{"mask-radial-to":xt()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":Tt()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":xt()}],"mask-image-conic-to-pos":[{"mask-conic-to":xt()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:gt()}],"mask-repeat":[{mask:Mt()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ot,zt]}],filter:[{filter:["","none",Ot,zt]}],blur:[{blur:be()}],brightness:[{brightness:[de,Ot,zt]}],contrast:[{contrast:[de,Ot,zt]}],"drop-shadow":[{"drop-shadow":["","none",Q,k0,Z0]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",de,Ot,zt]}],"hue-rotate":[{"hue-rotate":[de,Ot,zt]}],invert:[{invert:["",de,Ot,zt]}],saturate:[{saturate:[de,Ot,zt]}],sepia:[{sepia:["",de,Ot,zt]}],"backdrop-filter":[{"backdrop-filter":["","none",Ot,zt]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[de,Ot,zt]}],"backdrop-contrast":[{"backdrop-contrast":[de,Ot,zt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Ot,zt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Ot,zt]}],"backdrop-invert":[{"backdrop-invert":["",de,Ot,zt]}],"backdrop-opacity":[{"backdrop-opacity":[de,Ot,zt]}],"backdrop-saturate":[{"backdrop-saturate":[de,Ot,zt]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Ot,zt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ot,zt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",Ot,zt]}],ease:[{ease:["linear","initial",nt,Ot,zt]}],delay:[{delay:[de,Ot,zt]}],animate:[{animate:["none",dt,Ot,zt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[lt,Ot,zt]}],"perspective-origin":[{"perspective-origin":St()}],rotate:[{rotate:It()}],"rotate-x":[{"rotate-x":It()}],"rotate-y":[{"rotate-y":It()}],"rotate-z":[{"rotate-z":It()}],scale:[{scale:Kt()}],"scale-x":[{"scale-x":Kt()}],"scale-y":[{"scale-y":Kt()}],"scale-z":[{"scale-z":Kt()}],"scale-3d":["scale-3d"],skew:[{skew:mt()}],"skew-x":[{"skew-x":mt()}],"skew-y":[{"skew-y":mt()}],transform:[{transform:[Ot,zt,"","none","gpu","cpu"]}],"transform-origin":[{origin:St()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",Ot,zt]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",Ot,zt]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[de,xp,Vc,Q1]}],stroke:[{stroke:["none",...k()]}],"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 yl(...u){return S3(YM(u))}function Z1(u){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let d="";for(let m=0;m<u;m++)d+=r.charAt(Math.floor(Math.random()*r.length));return d}function T3(u){const r=Date.now(),d=Z1(12);return`sdk_${u}_${r}_${d}`}function pA(u){if(!u||u.length===0)return u;let r=u;return(r.startsWith("'")||r.startsWith('"'))&&(r=r.substring(1)),(r.endsWith("'")||r.endsWith('"'))&&(r=r.substring(0,r.length-1)),r}function A3(u){if(!u||u.length===0)return u;const r=u.indexOf("_v");return(r!==-1?u.substring(0,r):u).replace(/-/g," ").split(" ").map(T=>T.length===0?T:T.charAt(0).toUpperCase()+T.slice(1).toLowerCase()).join(" ")}const yA=qe.forwardRef(({className:u,...r},d)=>$.jsx("textarea",{className:yl("flex min-h-[80px] w-full rounded-md px-3 py-2 placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",u),ref:d,...r}));yA.displayName="Textarea";const E3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 1.39644C8.31659 1.00592 7.68342 1.00592 7.2929 1.39644L2.21968 6.46966L1.68935 6.99999L2.75001 8.06065L3.28034 7.53032L7.25001 3.56065V14.25V15H8.75001V14.25V3.56065L12.7197 7.53032L13.25 8.06065L14.3107 6.99999L13.7803 6.46966L8.70711 1.39644Z",fill:"currentColor"})}),x3=({size:u=16})=>$.jsx("svg",{height:u,viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H13V13H3V3Z",fill:"currentColor"})}),D3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 8.75,1 H7.25 V7.25 H1.5 V8.75 H7.25 V15 H8.75 V8.75 H14.5 V7.25 H8.75 V1.75 Z",fill:"currentColor"})}),C3=({size:u=16})=>$.jsx("svg",{height:u,strokeLinejoin:"round",viewBox:"0 0 16 16",width:u,style:{color:"currentcolor"},children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.96452 2.5C11.0257 2.5 13.5 4.96643 13.5 8C13.5 11.0336 11.0257 13.5 7.96452 13.5C6.12055 13.5 4.48831 12.6051 3.48161 11.2273L3.03915 10.6217L1.828 11.5066L2.27046 12.1122C3.54872 13.8617 5.62368 15 7.96452 15C11.8461 15 15 11.87 15 8C15 4.13001 11.8461 1 7.96452 1C5.06835 1 2.57851 2.74164 1.5 5.23347V3.75V3H0V3.75V7.25C0 7.66421 0.335786 8 0.75 8H3.75H4.5V6.5H3.75H2.63724C3.29365 4.19393 5.42843 2.5 7.96452 2.5ZM8.75 5.25V4.5H7.25V5.25V7.8662C7.25 8.20056 7.4171 8.51279 7.6953 8.69825L9.08397 9.62404L9.70801 10.0401L10.5401 8.79199L9.91603 8.37596L8.75 7.59861V5.25Z",fill:"currentColor"})}),k1={project_id:"",user_id:"",width:"50vw",maxWidth:"80vw",resizable:!0,keyboardShortcut:"b",userMessage:"bg-black dark:bg-gray-600 text-white dark:text-gray-100 text-base",assistantMessage:"text-black dark dark:text-gray-100 text-base",headerButtons:"p-2 my-2 rounded-lg border bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-700 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",headerButtonSize:20,headerTitle:"text-base text-gray-900 dark:text-gray-100",sendButton:"p-2 m-2 rounded-lg border bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-700 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",sendButtonSize:16,placeholder:"Ask me anything",textArea:"flex min-h-[80px] w-full rounded-md border focus:border-black dark:focus:border-white focus-visible:outline-none border-gray-300 dark:border-gray-700 bg-background px-3 py-2 placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 text-base",sidebarContainer:"bg-white dark:bg-gray-900 text-black dark:text-gray-100 border-l-1 border-gray-300 dark:border-gray-700 shadow-lg border-shadow-lg",suggestions:"bg-white dark:bg-gray-800 text-black dark:text-gray-100 border-gray-300 dark:border-gray-700",cardContainer:"dark:bg-gray-800",cardTitle:"dark:text-gray-100",cardSubtitle:"text-gray-500 text-sm dark:text-gray-400",defaultOpen:!0,debug:!0};let gA={...k1};function J1(){return gA}function M3(u){gA={...k1,...u}}async function z3(u){const r=u.projectId||u.copilotId,d=u.userId,m=u.apiKey;if(!r)return console.warn("No projectId or copilotId provided, using default config"),{};if(!m)return console.warn("No API key provided, using default config"),{};try{const v=`http://localhost:8080/api/v1/copilot/${r}/config`,T={"Content-Type":"application/json",Authorization:`Bearer ${m}`};d&&(T["X-User-Id"]=d);const b=await fetch(v,{method:"GET",headers:T});if(!b.ok){if(b.status===404)return console.warn("Config endpoint not found (404), using default config"),{};throw new Error(`Failed to fetch config: ${b.status} ${b.statusText}`)}const A=await b.json();return k1.debug&&console.log("✅ Successfully fetched config from database:",A),A}catch(v){return console.warn("⚠️ Failed to fetch config from database, using defaults:",v),{}}}const vA=ut.createContext(J1());function Dp(){return ut.useContext(vA)}function bA({children:u}){const r=J1();return $.jsx(vA.Provider,{value:r,children:u})}function O3({onSendMessage:u,isStreaming:r,inputValue:d,onInputChange:m,onFocusRequest:v}){const[T,b]=ut.useState(""),A=d!==void 0?d:T,x=m||b,z=ut.useRef(null),M=Dp(),O=()=>{if(z.current){z.current.focus();const X=z.current.value.length;z.current.setSelectionRange(X,X)}};ut.useEffect(()=>{v&&v(O)},[v]);const w=X=>{X.preventDefault(),A.trim()&&!r&&u(A.trim())},Q=X=>{if(X.key==="Enter"&&!X.shiftKey){X.preventDefault();const lt=new Event("submit",{bubbles:!0,cancelable:!0});w(lt)}};return $.jsx("div",{className:"my-4",children:$.jsxs("form",{onSubmit:w,className:"space-y-3 m relative",children:[$.jsx("div",{className:"",children:$.jsx(yA,{ref:z,value:A,onChange:X=>x(X.target.value),onKeyDown:Q,placeholder:M.placeholder,disabled:r,className:`min-h-[80px] resize-none ${M.textArea} `})}),$.jsx("div",{className:"absolute bottom-0 right-0 h-fit justify-end p-0 ",children:$.jsx("button",{type:"submit",disabled:!A.trim()||r,className:`
|
|
276
276
|
${M.sendButton}
|
|
277
277
|
${r||!A.trim()?" cursor-not-allowed":""}
|
|
278
278
|
`,children:r?$.jsx(x3,{size:M.sendButtonSize}):$.jsx(E3,{size:M.sendButtonSize})})})]})})}const R3=({children:u})=>(d=>{const m=d.replace(/^###### (.*$)/gim,"<h6>$1</h6>").replace(/^##### (.*$)/gim,"<h5>$1</h5>").replace(/^#### (.*$)/gim,"<h4>$1</h4>").replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/```([\s\S]*?)```/g,"<pre><code>$1</code></pre>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/!\[([^\]]*)\]\(([^)]+)\)/g,`<div class="my-4"><img src="$2" alt="$1" class="max-w-full h-auto rounded-lg shadow-md border border-gray-200" loading="lazy" onerror="this.style.display='none'; this.nextElementSibling.style.display='block';" /><div class="hidden text-sm text-gray-500 mt-2 text-center">Failed to load image: $1</div></div>`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer" title="Open $2">$1</a>').replace(/\n/g,"<br>");return $.jsx("div",{dangerouslySetInnerHTML:{__html:m}})})(u),w3=ut.memo(R3),K1=ut.createContext({});function $1(u){const r=ut.useRef(null);return r.current===null&&(r.current=u()),r.current}const F1=typeof window<"u",SA=F1?ut.useLayoutEffect:ut.useEffect,J0=ut.createContext(null);function W1(u,r){u.indexOf(r)===-1&&u.push(r)}function I1(u,r){const d=u.indexOf(r);d>-1&&u.splice(d,1)}const Nu=(u,r,d)=>d>r?r:d<u?u:d;function P1(u,r){return r?`${u}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${r}`:u}let Bd=()=>{},ju=()=>{};process.env.NODE_ENV!=="production"&&(Bd=(u,r,d)=>{!u&&typeof console<"u"&&console.warn(P1(r,d))},ju=(u,r,d)=>{if(!u)throw new Error(P1(r,d))});const Bu={},TA=u=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(u);function AA(u){return typeof u=="object"&&u!==null}const EA=u=>/^0[^.\s]+$/u.test(u);function tS(u){let r;return()=>(r===void 0&&(r=u()),r)}const hi=u=>u,U3=(u,r)=>d=>r(u(d)),Cp=(...u)=>u.reduce(U3),Mp=(u,r,d)=>{const m=r-u;return m===0?1:(d-u)/m};class eS{constructor(){this.subscriptions=[]}add(r){return W1(this.subscriptions,r),()=>I1(this.subscriptions,r)}notify(r,d,m){const v=this.subscriptions.length;if(v)if(v===1)this.subscriptions[0](r,d,m);else for(let T=0;T<v;T++){const b=this.subscriptions[T];b&&b(r,d,m)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const so=u=>u*1e3,mi=u=>u/1e3;function xA(u,r){return r?u*(1e3/r):0}const DA=new Set;function nS(u,r,d){u||DA.has(r)||(console.warn(P1(r,d)),DA.add(r))}const CA=(u,r,d)=>(((1-3*d+3*r)*u+(3*d-6*r))*u+3*r)*u,_3=1e-7,N3=12;function j3(u,r,d,m,v){let T,b,A=0;do b=r+(d-r)/2,T=CA(b,m,v)-u,T>0?d=b:r=b;while(Math.abs(T)>_3&&++A<N3);return b}function zp(u,r,d,m){if(u===r&&d===m)return hi;const v=T=>j3(T,0,1,u,d);return T=>T===0||T===1?T:CA(v(T),r,m)}const MA=u=>r=>r<=.5?u(2*r)/2:(2-u(2*(1-r)))/2,zA=u=>r=>1-u(1-r),OA=zp(.33,1.53,.69,.99),aS=zA(OA),RA=MA(aS),wA=u=>(u*=2)<1?.5*aS(u):.5*(2-Math.pow(2,-10*(u-1))),lS=u=>1-Math.sin(Math.acos(u)),UA=zA(lS),_A=MA(lS),B3=zp(.42,0,1,1),V3=zp(0,0,.58,1),NA=zp(.42,0,.58,1),H3=u=>Array.isArray(u)&&typeof u[0]!="number",jA=u=>Array.isArray(u)&&typeof u[0]=="number",BA={linear:hi,easeIn:B3,easeInOut:NA,easeOut:V3,circIn:lS,circInOut:_A,circOut:UA,backIn:aS,backInOut:RA,backOut:OA,anticipate:wA},L3=u=>typeof u=="string",VA=u=>{if(jA(u)){ju(u.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[r,d,m,v]=u;return zp(r,d,m,v)}else if(L3(u))return ju(BA[u]!==void 0,`Invalid easing type '${u}'`,"invalid-easing-type"),BA[u];return u},K0=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function q3(u,r){let d=new Set,m=new Set,v=!1,T=!1;const b=new WeakSet;let A={delta:0,timestamp:0,isProcessing:!1};function x(M){b.has(M)&&(z.schedule(M),u()),M(A)}const z={schedule:(M,O=!1,w=!1)=>{const X=w&&v?d:m;return O&&b.add(M),X.has(M)||X.add(M),M},cancel:M=>{m.delete(M),b.delete(M)},process:M=>{if(A=M,v){T=!0;return}v=!0,[d,m]=[m,d],d.forEach(x),d.clear(),v=!1,T&&(T=!1,z.process(M))}};return z}const Y3=40;function HA(u,r){let d=!1,m=!0;const v={delta:0,timestamp:0,isProcessing:!1},T=()=>d=!0,b=K0.reduce((ht,Tt)=>(ht[Tt]=q3(T),ht),{}),{setup:A,read:x,resolveKeyframes:z,preUpdate:M,update:O,preRender:w,render:Q,postRender:X}=b,lt=()=>{const ht=Bu.useManualTiming?v.timestamp:performance.now();d=!1,Bu.useManualTiming||(v.delta=m?1e3/60:Math.max(Math.min(ht-v.timestamp,Y3),1)),v.timestamp=ht,v.isProcessing=!0,A.process(v),x.process(v),z.process(v),M.process(v),O.process(v),w.process(v),Q.process(v),X.process(v),v.isProcessing=!1,d&&r&&(m=!1,u(lt))},ot=()=>{d=!0,m=!0,v.isProcessing||u(lt)};return{schedule:K0.reduce((ht,Tt)=>{const St=b[Tt];return ht[Tt]=(bt,Dt=!1,I=!1)=>(d||ot(),St.schedule(bt,Dt,I)),ht},{}),cancel:ht=>{for(let Tt=0;Tt<K0.length;Tt++)b[K0[Tt]].cancel(ht)},state:v,steps:b}}const{schedule:sn,cancel:Is,state:ha,steps:iS}=HA(typeof requestAnimationFrame<"u"?requestAnimationFrame:hi,!0);let $0;function G3(){$0=void 0}const gl={now:()=>($0===void 0&&gl.set(ha.isProcessing||Bu.useManualTiming?ha.timestamp:performance.now()),$0),set:u=>{$0=u,queueMicrotask(G3)}},LA=u=>r=>typeof r=="string"&&r.startsWith(u),oS=LA("--"),X3=LA("var(--"),uS=u=>X3(u)?Q3.test(u.split("/*")[0].trim()):!1,Q3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vd={test:u=>typeof u=="number",parse:parseFloat,transform:u=>u},Op={...Vd,transform:u=>Nu(0,1,u)},F0={...Vd,default:1},Rp=u=>Math.round(u*1e5)/1e5,sS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z3(u){return u==null}const k3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rS=(u,r)=>d=>!!(typeof d=="string"&&k3.test(d)&&d.startsWith(u)||r&&!Z3(d)&&Object.prototype.hasOwnProperty.call(d,r)),qA=(u,r,d)=>m=>{if(typeof m!="string")return m;const[v,T,b,A]=m.match(sS);return{[u]:parseFloat(v),[r]:parseFloat(T),[d]:parseFloat(b),alpha:A!==void 0?parseFloat(A):1}},J3=u=>Nu(0,255,u),cS={...Vd,transform:u=>Math.round(J3(u))},Hc={test:rS("rgb","red"),parse:qA("red","green","blue"),transform:({red:u,green:r,blue:d,alpha:m=1})=>"rgba("+cS.transform(u)+", "+cS.transform(r)+", "+cS.transform(d)+", "+Rp(Op.transform(m))+")"};function K3(u){let r="",d="",m="",v="";return u.length>5?(r=u.substring(1,3),d=u.substring(3,5),m=u.substring(5,7),v=u.substring(7,9)):(r=u.substring(1,2),d=u.substring(2,3),m=u.substring(3,4),v=u.substring(4,5),r+=r,d+=d,m+=m,v+=v),{red:parseInt(r,16),green:parseInt(d,16),blue:parseInt(m,16),alpha:v?parseInt(v,16)/255:1}}const fS={test:rS("#"),parse:K3,transform:Hc.transform},wp=u=>({test:r=>typeof r=="string"&&r.endsWith(u)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${u}`}),Ps=wp("deg"),Go=wp("%"),Jt=wp("px"),$3=wp("vh"),F3=wp("vw"),YA={...Go,parse:u=>Go.parse(u)/100,transform:u=>Go.transform(u*100)},Hd={test:rS("hsl","hue"),parse:qA("hue","saturation","lightness"),transform:({hue:u,saturation:r,lightness:d,alpha:m=1})=>"hsla("+Math.round(u)+", "+Go.transform(Rp(r))+", "+Go.transform(Rp(d))+", "+Rp(Op.transform(m))+")"},jn={test:u=>Hc.test(u)||fS.test(u)||Hd.test(u),parse:u=>Hc.test(u)?Hc.parse(u):Hd.test(u)?Hd.parse(u):fS.parse(u),transform:u=>typeof u=="string"?u:u.hasOwnProperty("red")?Hc.transform(u):Hd.transform(u),getAnimatableNone:u=>{const r=jn.parse(u);return r.alpha=0,jn.transform(r)}},W3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I3(u){return isNaN(u)&&typeof u=="string"&&(u.match(sS)?.length||0)+(u.match(W3)?.length||0)>0}const GA="number",XA="color",P3="var",tz="var(",QA="${}",ez=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Up(u){const r=u.toString(),d=[],m={color:[],number:[],var:[]},v=[];let T=0;const A=r.replace(ez,x=>(jn.test(x)?(m.color.push(T),v.push(XA),d.push(jn.parse(x))):x.startsWith(tz)?(m.var.push(T),v.push(P3),d.push(x)):(m.number.push(T),v.push(GA),d.push(parseFloat(x))),++T,QA)).split(QA);return{values:d,split:A,indexes:m,types:v}}function ZA(u){return Up(u).values}function kA(u){const{split:r,types:d}=Up(u),m=r.length;return v=>{let T="";for(let b=0;b<m;b++)if(T+=r[b],v[b]!==void 0){const A=d[b];A===GA?T+=Rp(v[b]):A===XA?T+=jn.transform(v[b]):T+=v[b]}return T}}const nz=u=>typeof u=="number"?0:jn.test(u)?jn.getAnimatableNone(u):u;function az(u){const r=ZA(u);return kA(u)(r.map(nz))}const tr={test:I3,parse:ZA,createTransformer:kA,getAnimatableNone:az};function dS(u,r,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(r-u)*6*d:d<1/2?r:d<2/3?u+(r-u)*(2/3-d)*6:u}function lz({hue:u,saturation:r,lightness:d,alpha:m}){u/=360,r/=100,d/=100;let v=0,T=0,b=0;if(!r)v=T=b=d;else{const A=d<.5?d*(1+r):d+r-d*r,x=2*d-A;v=dS(x,A,u+1/3),T=dS(x,A,u),b=dS(x,A,u-1/3)}return{red:Math.round(v*255),green:Math.round(T*255),blue:Math.round(b*255),alpha:m}}function W0(u,r){return d=>d>0?r:u}const mn=(u,r,d)=>u+(r-u)*d,hS=(u,r,d)=>{const m=u*u,v=d*(r*r-m)+m;return v<0?0:Math.sqrt(v)},iz=[fS,Hc,Hd],oz=u=>iz.find(r=>r.test(u));function JA(u){const r=oz(u);if(Bd(!!r,`'${u}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!r)return!1;let d=r.parse(u);return r===Hd&&(d=lz(d)),d}const KA=(u,r)=>{const d=JA(u),m=JA(r);if(!d||!m)return W0(u,r);const v={...d};return T=>(v.red=hS(d.red,m.red,T),v.green=hS(d.green,m.green,T),v.blue=hS(d.blue,m.blue,T),v.alpha=mn(d.alpha,m.alpha,T),Hc.transform(v))},mS=new Set(["none","hidden"]);function uz(u,r){return mS.has(u)?d=>d<=0?u:r:d=>d>=1?r:u}function sz(u,r){return d=>mn(u,r,d)}function pS(u){return typeof u=="number"?sz:typeof u=="string"?uS(u)?W0:jn.test(u)?KA:fz:Array.isArray(u)?$A:typeof u=="object"?jn.test(u)?KA:rz:W0}function $A(u,r){const d=[...u],m=d.length,v=u.map((T,b)=>pS(T)(T,r[b]));return T=>{for(let b=0;b<m;b++)d[b]=v[b](T);return d}}function rz(u,r){const d={...u,...r},m={};for(const v in d)u[v]!==void 0&&r[v]!==void 0&&(m[v]=pS(u[v])(u[v],r[v]));return v=>{for(const T in m)d[T]=m[T](v);return d}}function cz(u,r){const d=[],m={color:0,var:0,number:0};for(let v=0;v<r.values.length;v++){const T=r.types[v],b=u.indexes[T][m[T]],A=u.values[b]??0;d[v]=A,m[T]++}return d}const fz=(u,r)=>{const d=tr.createTransformer(r),m=Up(u),v=Up(r);return m.indexes.var.length===v.indexes.var.length&&m.indexes.color.length===v.indexes.color.length&&m.indexes.number.length>=v.indexes.number.length?mS.has(u)&&!v.values.length||mS.has(r)&&!m.values.length?uz(u,r):Cp($A(cz(m,v),v.values),d):(Bd(!0,`Complex values '${u}' and '${r}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),W0(u,r))};function FA(u,r,d){return typeof u=="number"&&typeof r=="number"&&typeof d=="number"?mn(u,r,d):pS(u)(u,r)}const dz=u=>{const r=({timestamp:d})=>u(d);return{start:(d=!0)=>sn.update(r,d),stop:()=>Is(r),now:()=>ha.isProcessing?ha.timestamp:gl.now()}},WA=(u,r,d=10)=>{let m="";const v=Math.max(Math.round(r/d),2);for(let T=0;T<v;T++)m+=Math.round(u(T/(v-1))*1e4)/1e4+", ";return`linear(${m.substring(0,m.length-2)})`},I0=2e4;function yS(u){let r=0;const d=50;let m=u.next(r);for(;!m.done&&r<I0;)r+=d,m=u.next(r);return r>=I0?1/0:r}function hz(u,r=100,d){const m=d({...u,keyframes:[0,r]}),v=Math.min(yS(m),I0);return{type:"keyframes",ease:T=>m.next(v*T).value/r,duration:mi(v)}}const mz=5;function IA(u,r,d){const m=Math.max(r-mz,0);return xA(d-u(m),r-m)}const pn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},gS=.001;function pz({duration:u=pn.duration,bounce:r=pn.bounce,velocity:d=pn.velocity,mass:m=pn.mass}){let v,T;Bd(u<=so(pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let b=1-r;b=Nu(pn.minDamping,pn.maxDamping,b),u=Nu(pn.minDuration,pn.maxDuration,mi(u)),b<1?(v=z=>{const M=z*b,O=M*u,w=M-d,Q=vS(z,b),X=Math.exp(-O);return gS-w/Q*X},T=z=>{const O=z*b*u,w=O*d+d,Q=Math.pow(b,2)*Math.pow(z,2)*u,X=Math.exp(-O),lt=vS(Math.pow(z,2),b);return(-v(z)+gS>0?-1:1)*((w-Q)*X)/lt}):(v=z=>{const M=Math.exp(-z*u),O=(z-d)*u+1;return-gS+M*O},T=z=>{const M=Math.exp(-z*u),O=(d-z)*(u*u);return M*O});const A=5/u,x=gz(v,T,A);if(u=so(u),isNaN(x))return{stiffness:pn.stiffness,damping:pn.damping,duration:u};{const z=Math.pow(x,2)*m;return{stiffness:z,damping:b*2*Math.sqrt(m*z),duration:u}}}const yz=12;function gz(u,r,d){let m=d;for(let v=1;v<yz;v++)m=m-u(m)/r(m);return m}function vS(u,r){return u*Math.sqrt(1-r*r)}const vz=["duration","bounce"],bz=["stiffness","damping","mass"];function PA(u,r){return r.some(d=>u[d]!==void 0)}function Sz(u){let r={velocity:pn.velocity,stiffness:pn.stiffness,damping:pn.damping,mass:pn.mass,isResolvedFromDuration:!1,...u};if(!PA(u,bz)&&PA(u,vz))if(u.visualDuration){const d=u.visualDuration,m=2*Math.PI/(d*1.2),v=m*m,T=2*Nu(.05,1,1-(u.bounce||0))*Math.sqrt(v);r={...r,mass:pn.mass,stiffness:v,damping:T}}else{const d=pz(u);r={...r,...d,mass:pn.mass},r.isResolvedFromDuration=!0}return r}function P0(u=pn.visualDuration,r=pn.bounce){const d=typeof u!="object"?{visualDuration:u,keyframes:[0,1],bounce:r}:u;let{restSpeed:m,restDelta:v}=d;const T=d.keyframes[0],b=d.keyframes[d.keyframes.length-1],A={done:!1,value:T},{stiffness:x,damping:z,mass:M,duration:O,velocity:w,isResolvedFromDuration:Q}=Sz({...d,velocity:-mi(d.velocity||0)}),X=w||0,lt=z/(2*Math.sqrt(x*M)),ot=b-T,nt=mi(Math.sqrt(x/M)),dt=Math.abs(ot)<5;m||(m=dt?pn.restSpeed.granular:pn.restSpeed.default),v||(v=dt?pn.restDelta.granular:pn.restDelta.default);let ht;if(lt<1){const St=vS(nt,lt);ht=bt=>{const Dt=Math.exp(-lt*nt*bt);return b-Dt*((X+lt*nt*ot)/St*Math.sin(St*bt)+ot*Math.cos(St*bt))}}else if(lt===1)ht=St=>b-Math.exp(-nt*St)*(ot+(X+nt*ot)*St);else{const St=nt*Math.sqrt(lt*lt-1);ht=bt=>{const Dt=Math.exp(-lt*nt*bt),I=Math.min(St*bt,300);return b-Dt*((X+lt*nt*ot)*Math.sinh(I)+St*ot*Math.cosh(I))/St}}const Tt={calculatedDuration:Q&&O||null,next:St=>{const bt=ht(St);if(Q)A.done=St>=O;else{let Dt=St===0?X:0;lt<1&&(Dt=St===0?so(X):IA(ht,St,bt));const I=Math.abs(Dt)<=m,wt=Math.abs(b-bt)<=v;A.done=I&&wt}return A.value=A.done?b:bt,A},toString:()=>{const St=Math.min(yS(Tt),I0),bt=WA(Dt=>Tt.next(St*Dt).value,St,30);return St+"ms "+bt},toTransition:()=>{}};return Tt}P0.applyToOptions=u=>{const r=hz(u,100,P0);return u.ease=r.ease,u.duration=so(r.duration),u.type="keyframes",u};function bS({keyframes:u,velocity:r=0,power:d=.8,timeConstant:m=325,bounceDamping:v=10,bounceStiffness:T=500,modifyTarget:b,min:A,max:x,restDelta:z=.5,restSpeed:M}){const O=u[0],w={done:!1,value:O},Q=I=>A!==void 0&&I<A||x!==void 0&&I>x,X=I=>A===void 0?x:x===void 0||Math.abs(A-I)<Math.abs(x-I)?A:x;let lt=d*r;const ot=O+lt,nt=b===void 0?ot:b(ot);nt!==ot&&(lt=nt-O);const dt=I=>-lt*Math.exp(-I/m),ht=I=>nt+dt(I),Tt=I=>{const wt=dt(I),yt=ht(I);w.done=Math.abs(wt)<=z,w.value=w.done?nt:yt};let St,bt;const Dt=I=>{Q(w.value)&&(St=I,bt=P0({keyframes:[w.value,X(w.value)],velocity:IA(ht,I,w.value),damping:v,stiffness:T,restDelta:z,restSpeed:M}))};return Dt(0),{calculatedDuration:null,next:I=>{let wt=!1;return!bt&&St===void 0&&(wt=!0,Tt(I),Dt(I)),St!==void 0&&I>=St?bt.next(I-St):(!wt&&Tt(I),w)}}}function Tz(u,r,d){const m=[],v=d||Bu.mix||FA,T=u.length-1;for(let b=0;b<T;b++){let A=v(u[b],u[b+1]);if(r){const x=Array.isArray(r)?r[b]||hi:r;A=Cp(x,A)}m.push(A)}return m}function Az(u,r,{clamp:d=!0,ease:m,mixer:v}={}){const T=u.length;if(ju(T===r.length,"Both input and output ranges must be the same length","range-length"),T===1)return()=>r[0];if(T===2&&r[0]===r[1])return()=>r[1];const b=u[0]===u[1];u[0]>u[T-1]&&(u=[...u].reverse(),r=[...r].reverse());const A=Tz(r,m,v),x=A.length,z=M=>{if(b&&M<u[0])return r[0];let O=0;if(x>1)for(;O<u.length-2&&!(M<u[O+1]);O++);const w=Mp(u[O],u[O+1],M);return A[O](w)};return d?M=>z(Nu(u[0],u[T-1],M)):z}function Ez(u,r){const d=u[u.length-1];for(let m=1;m<=r;m++){const v=Mp(0,r,m);u.push(mn(d,1,v))}}function xz(u){const r=[0];return Ez(r,u.length-1),r}function Dz(u,r){return u.map(d=>d*r)}function Cz(u,r){return u.map(()=>r||NA).splice(0,u.length-1)}function Ld({duration:u=300,keyframes:r,times:d,ease:m="easeInOut"}){const v=H3(m)?m.map(VA):VA(m),T={done:!1,value:r[0]},b=Dz(d&&d.length===r.length?d:xz(r),u),A=Az(b,r,{ease:Array.isArray(v)?v:Cz(r,v)});return{calculatedDuration:u,next:x=>(T.value=A(x),T.done=x>=u,T)}}const Mz=u=>u!==null;function SS(u,{repeat:r,repeatType:d="loop"},m,v=1){const T=u.filter(Mz),A=v<0||r&&d!=="loop"&&r%2===1?0:T.length-1;return!A||m===void 0?T[A]:m}const zz={decay:bS,inertia:bS,tween:Ld,keyframes:Ld,spring:P0};function tE(u){typeof u.type=="string"&&(u.type=zz[u.type])}class TS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,d){return this.finished.then(r,d)}}const Oz=u=>u/100;class AS extends TS{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:d}=this.options;d&&d.updatedAt!==gl.now()&&this.tick(gl.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;tE(r);const{type:d=Ld,repeat:m=0,repeatDelay:v=0,repeatType:T,velocity:b=0}=r;let{keyframes:A}=r;const x=d||Ld;process.env.NODE_ENV!=="production"&&x!==Ld&&ju(A.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${A}`,"spring-two-frames"),x!==Ld&&typeof A[0]!="number"&&(this.mixKeyframes=Cp(Oz,FA(A[0],A[1])),A=[0,100]);const z=x({...r,keyframes:A});T==="mirror"&&(this.mirroredGenerator=x({...r,keyframes:[...A].reverse(),velocity:-b})),z.calculatedDuration===null&&(z.calculatedDuration=yS(z));const{calculatedDuration:M}=z;this.calculatedDuration=M,this.resolvedDuration=M+v,this.totalDuration=this.resolvedDuration*(m+1)-v,this.generator=z}updateTime(r){const d=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=d}tick(r,d=!1){const{generator:m,totalDuration:v,mixKeyframes:T,mirroredGenerator:b,resolvedDuration:A,calculatedDuration:x}=this;if(this.startTime===null)return m.next(0);const{delay:z=0,keyframes:M,repeat:O,repeatType:w,repeatDelay:Q,type:X,onUpdate:lt,finalKeyframe:ot}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-v/this.speed,this.startTime)),d?this.currentTime=r:this.updateTime(r);const nt=this.currentTime-z*(this.playbackSpeed>=0?1:-1),dt=this.playbackSpeed>=0?nt<0:nt>v;this.currentTime=Math.max(nt,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let ht=this.currentTime,Tt=m;if(O){const I=Math.min(this.currentTime,v)/A;let wt=Math.floor(I),yt=I%1;!yt&&I>=1&&(yt=1),yt===1&&wt--,wt=Math.min(wt,O+1),!!(wt%2)&&(w==="reverse"?(yt=1-yt,Q&&(yt-=Q/A)):w==="mirror"&&(Tt=b)),ht=Nu(0,1,yt)*A}const St=dt?{done:!1,value:M[0]}:Tt.next(ht);T&&(St.value=T(St.value));let{done:bt}=St;!dt&&x!==null&&(bt=this.playbackSpeed>=0?this.currentTime>=v:this.currentTime<=0);const Dt=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&bt);return Dt&&X!==bS&&(St.value=SS(M,this.options,ot,this.speed)),lt&<(St.value),Dt&&this.finish(),St}then(r,d){return this.finished.then(r,d)}get duration(){return mi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+mi(r)}get time(){return mi(this.currentTime)}set time(r){r=so(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(gl.now());const d=this.playbackSpeed!==r;this.playbackSpeed=r,d&&(this.time=mi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=dz,startTime:d}=this.options;this.driver||(this.driver=r(v=>this.tick(v))),this.options.onPlay?.();const m=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=m):this.holdTime!==null?this.startTime=m-this.holdTime:this.startTime||(this.startTime=d??m),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gl.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function Rz(u){for(let r=1;r<u.length;r++)u[r]??(u[r]=u[r-1])}const Lc=u=>u*180/Math.PI,ES=u=>{const r=Lc(Math.atan2(u[1],u[0]));return xS(r)},wz={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:u=>(Math.abs(u[0])+Math.abs(u[3]))/2,rotate:ES,rotateZ:ES,skewX:u=>Lc(Math.atan(u[1])),skewY:u=>Lc(Math.atan(u[2])),skew:u=>(Math.abs(u[1])+Math.abs(u[2]))/2},xS=u=>(u=u%360,u<0&&(u+=360),u),eE=ES,nE=u=>Math.sqrt(u[0]*u[0]+u[1]*u[1]),aE=u=>Math.sqrt(u[4]*u[4]+u[5]*u[5]),Uz={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:nE,scaleY:aE,scale:u=>(nE(u)+aE(u))/2,rotateX:u=>xS(Lc(Math.atan2(u[6],u[5]))),rotateY:u=>xS(Lc(Math.atan2(-u[2],u[0]))),rotateZ:eE,rotate:eE,skewX:u=>Lc(Math.atan(u[4])),skewY:u=>Lc(Math.atan(u[1])),skew:u=>(Math.abs(u[1])+Math.abs(u[4]))/2};function DS(u){return u.includes("scale")?1:0}function CS(u,r){if(!u||u==="none")return DS(r);const d=u.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let m,v;if(d)m=Uz,v=d;else{const A=u.match(/^matrix\(([-\d.e\s,]+)\)$/u);m=wz,v=A}if(!v)return DS(r);const T=m[r],b=v[1].split(",").map(Nz);return typeof T=="function"?T(b):b[T]}const _z=(u,r)=>{const{transform:d="none"}=getComputedStyle(u);return CS(d,r)};function Nz(u){return parseFloat(u.trim())}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yd=new Set(qd),lE=u=>u===Vd||u===Jt,jz=new Set(["x","y","z"]),Bz=qd.filter(u=>!jz.has(u));function Vz(u){const r=[];return Bz.forEach(d=>{const m=u.getValue(d);m!==void 0&&(r.push([d,m.get()]),m.set(d.startsWith("scale")?1:0))}),r}const qc={width:({x:u},{paddingLeft:r="0",paddingRight:d="0"})=>u.max-u.min-parseFloat(r)-parseFloat(d),height:({y:u},{paddingTop:r="0",paddingBottom:d="0"})=>u.max-u.min-parseFloat(r)-parseFloat(d),top:(u,{top:r})=>parseFloat(r),left:(u,{left:r})=>parseFloat(r),bottom:({y:u},{top:r})=>parseFloat(r)+(u.max-u.min),right:({x:u},{left:r})=>parseFloat(r)+(u.max-u.min),x:(u,{transform:r})=>CS(r,"x"),y:(u,{transform:r})=>CS(r,"y")};qc.translateX=qc.x,qc.translateY=qc.y;const Yc=new Set;let MS=!1,zS=!1,OS=!1;function iE(){if(zS){const u=Array.from(Yc).filter(m=>m.needsMeasurement),r=new Set(u.map(m=>m.element)),d=new Map;r.forEach(m=>{const v=Vz(m);v.length&&(d.set(m,v),m.render())}),u.forEach(m=>m.measureInitialState()),r.forEach(m=>{m.render();const v=d.get(m);v&&v.forEach(([T,b])=>{m.getValue(T)?.set(b)})}),u.forEach(m=>m.measureEndState()),u.forEach(m=>{m.suspendedScrollY!==void 0&&window.scrollTo(0,m.suspendedScrollY)})}zS=!1,MS=!1,Yc.forEach(u=>u.complete(OS)),Yc.clear()}function oE(){Yc.forEach(u=>{u.readKeyframes(),u.needsMeasurement&&(zS=!0)})}function Hz(){OS=!0,oE(),iE(),OS=!1}class RS{constructor(r,d,m,v,T,b=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=d,this.name=m,this.motionValue=v,this.element=T,this.isAsync=b}scheduleResolve(){this.state="scheduled",this.isAsync?(Yc.add(this),MS||(MS=!0,sn.read(oE),sn.resolveKeyframes(iE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:d,element:m,motionValue:v}=this;if(r[0]===null){const T=v?.get(),b=r[r.length-1];if(T!==void 0)r[0]=T;else if(m&&d){const A=m.readValue(d,b);A!=null&&(r[0]=A)}r[0]===void 0&&(r[0]=b),v&&T===void 0&&v.set(r[0])}Rz(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Yc.delete(this)}cancel(){this.state==="scheduled"&&(Yc.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Lz=u=>u.startsWith("--");function qz(u,r,d){Lz(r)?u.style.setProperty(r,d):u.style[r]=d}const Yz=tS(()=>window.ScrollTimeline!==void 0),Gz={};function Xz(u,r){const d=tS(u);return()=>Gz[r]??d()}const uE=Xz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_p=([u,r,d,m])=>`cubic-bezier(${u}, ${r}, ${d}, ${m})`,sE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_p([0,.65,.55,1]),circOut:_p([.55,0,1,.45]),backIn:_p([.31,.01,.66,-.59]),backOut:_p([.33,1.53,.69,.99])};function rE(u,r){if(u)return typeof u=="function"?uE()?WA(u,r):"ease-out":jA(u)?_p(u):Array.isArray(u)?u.map(d=>rE(d,r)||sE.easeOut):sE[u]}function Qz(u,r,d,{delay:m=0,duration:v=300,repeat:T=0,repeatType:b="loop",ease:A="easeOut",times:x}={},z=void 0){const M={[r]:d};x&&(M.offset=x);const O=rE(A,v);Array.isArray(O)&&(M.easing=O);const w={delay:m,duration:v,easing:Array.isArray(O)?"linear":O,fill:"both",iterations:T+1,direction:b==="reverse"?"alternate":"normal"};return z&&(w.pseudoElement=z),u.animate(M,w)}function cE(u){return typeof u=="function"&&"applyToOptions"in u}function Zz({type:u,...r}){return cE(u)&&uE()?u.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class kz extends TS{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:d,name:m,keyframes:v,pseudoElement:T,allowFlatten:b=!1,finalKeyframe:A,onComplete:x}=r;this.isPseudoElement=!!T,this.allowFlatten=b,this.options=r,ju(typeof r.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const z=Zz(r);this.animation=Qz(d,m,v,z,T),z.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!T){const M=SS(v,this.options,A,this.speed);this.updateMotionValue?this.updateMotionValue(M):qz(d,m,M),this.animation.cancel()}x?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return mi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+mi(r)}get time(){return mi(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=so(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:d}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&Yz()?(this.animation.timeline=r,hi):d(this)}}const fE={anticipate:wA,backInOut:RA,circInOut:_A};function Jz(u){return u in fE}function Kz(u){typeof u.ease=="string"&&Jz(u.ease)&&(u.ease=fE[u.ease])}const dE=10;class $z extends kz{constructor(r){Kz(r),tE(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:d,onUpdate:m,onComplete:v,element:T,...b}=this.options;if(!d)return;if(r!==void 0){d.set(r);return}const A=new AS({...b,autoplay:!1}),x=so(this.finishedTime??this.time);d.setWithVelocity(A.sample(x-dE).value,A.sample(x).value,dE),A.stop()}}const hE=(u,r)=>r==="zIndex"?!1:!!(typeof u=="number"||Array.isArray(u)||typeof u=="string"&&(tr.test(u)||u==="0")&&!u.startsWith("url("));function Fz(u){const r=u[0];if(u.length===1)return!0;for(let d=0;d<u.length;d++)if(u[d]!==r)return!0}function Wz(u,r,d,m){const v=u[0];if(v===null)return!1;if(r==="display"||r==="visibility")return!0;const T=u[u.length-1],b=hE(v,r),A=hE(T,r);return Bd(b===A,`You are trying to animate ${r} from "${v}" to "${T}". "${b?T:v}" is not an animatable value.`,"value-not-animatable"),!b||!A?!1:Fz(u)||(d==="spring"||cE(d))&&m}function wS(u){u.duration=0,u.type="keyframes"}const Iz=new Set(["opacity","clipPath","filter","transform"]),Pz=tS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function tO(u){const{motionValue:r,name:d,repeatDelay:m,repeatType:v,damping:T,type:b}=u;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:x,transformTemplate:z}=r.owner.getProps();return Pz()&&d&&Iz.has(d)&&(d!=="transform"||!z)&&!x&&!m&&v!=="mirror"&&T!==0&&b!=="inertia"}const eO=40;class nO extends TS{constructor({autoplay:r=!0,delay:d=0,type:m="keyframes",repeat:v=0,repeatDelay:T=0,repeatType:b="loop",keyframes:A,name:x,motionValue:z,element:M,...O}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gl.now();const w={autoplay:r,delay:d,type:m,repeat:v,repeatDelay:T,repeatType:b,name:x,motionValue:z,element:M,...O},Q=M?.KeyframeResolver||RS;this.keyframeResolver=new Q(A,(X,lt,ot)=>this.onKeyframesResolved(X,lt,w,!ot),x,z,M),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,d,m,v){this.keyframeResolver=void 0;const{name:T,type:b,velocity:A,delay:x,isHandoff:z,onUpdate:M}=m;this.resolvedAt=gl.now(),Wz(r,T,b,A)||((Bu.instantAnimations||!x)&&M?.(SS(r,m,d)),r[0]=r[r.length-1],wS(m),m.repeat=0);const w={startTime:v?this.resolvedAt?this.resolvedAt-this.createdAt>eO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:d,...m,keyframes:r},Q=!z&&tO(w)?new $z({...w,element:w.motionValue.owner.current}):new AS(w);Q.finished.then(()=>this.notifyFinished()).catch(hi),this.pendingTimeline&&(this.stopTimeline=Q.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Q}get finished(){return this._animation?this.animation.finished:this._finished}then(r,d){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hz()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const aO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lO(u){const r=aO.exec(u);if(!r)return[,];const[,d,m,v]=r;return[`--${d??m}`,v]}const iO=4;function mE(u,r,d=1){ju(d<=iO,`Max CSS variable fallback depth detected in property "${u}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[m,v]=lO(u);if(!m)return;const T=window.getComputedStyle(r).getPropertyValue(m);if(T){const b=T.trim();return TA(b)?parseFloat(b):b}return uS(v)?mE(v,r,d+1):v}function US(u,r){return u?.[r]??u?.default??u}const pE=new Set(["width","height","top","left","right","bottom",...qd]),oO={test:u=>u==="auto",parse:u=>u},yE=u=>r=>r.test(u),gE=[Vd,Jt,Go,Ps,F3,$3,oO],vE=u=>gE.find(yE(u));function uO(u){return typeof u=="number"?u===0:u!==null?u==="none"||u==="0"||EA(u):!0}const sO=new Set(["brightness","contrast","saturate","opacity"]);function rO(u){const[r,d]=u.slice(0,-1).split("(");if(r==="drop-shadow")return u;const[m]=d.match(sS)||[];if(!m)return u;const v=d.replace(m,"");let T=sO.has(r)?1:0;return m!==d&&(T*=100),r+"("+T+v+")"}const cO=/\b([a-z-]*)\(.*?\)/gu,_S={...tr,getAnimatableNone:u=>{const r=u.match(cO);return r?r.map(rO).join(" "):u}},bE={...Vd,transform:Math.round},NS={borderWidth:Jt,borderTopWidth:Jt,borderRightWidth:Jt,borderBottomWidth:Jt,borderLeftWidth:Jt,borderRadius:Jt,radius:Jt,borderTopLeftRadius:Jt,borderTopRightRadius:Jt,borderBottomRightRadius:Jt,borderBottomLeftRadius:Jt,width:Jt,maxWidth:Jt,height:Jt,maxHeight:Jt,top:Jt,right:Jt,bottom:Jt,left:Jt,padding:Jt,paddingTop:Jt,paddingRight:Jt,paddingBottom:Jt,paddingLeft:Jt,margin:Jt,marginTop:Jt,marginRight:Jt,marginBottom:Jt,marginLeft:Jt,backgroundPositionX:Jt,backgroundPositionY:Jt,...{rotate:Ps,rotateX:Ps,rotateY:Ps,rotateZ:Ps,scale:F0,scaleX:F0,scaleY:F0,scaleZ:F0,skew:Ps,skewX:Ps,skewY:Ps,distance:Jt,translateX:Jt,translateY:Jt,translateZ:Jt,x:Jt,y:Jt,z:Jt,perspective:Jt,transformPerspective:Jt,opacity:Op,originX:YA,originY:YA,originZ:Jt},zIndex:bE,fillOpacity:Op,strokeOpacity:Op,numOctaves:bE},fO={...NS,color:jn,backgroundColor:jn,outlineColor:jn,fill:jn,stroke:jn,borderColor:jn,borderTopColor:jn,borderRightColor:jn,borderBottomColor:jn,borderLeftColor:jn,filter:_S,WebkitFilter:_S},SE=u=>fO[u];function TE(u,r){let d=SE(u);return d!==_S&&(d=tr),d.getAnimatableNone?d.getAnimatableNone(r):void 0}const dO=new Set(["auto","none","0"]);function hO(u,r,d){let m=0,v;for(;m<u.length&&!v;){const T=u[m];typeof T=="string"&&!dO.has(T)&&Up(T).values.length&&(v=u[m]),m++}if(v&&d)for(const T of r)u[T]=TE(d,v)}class mO extends RS{constructor(r,d,m,v,T){super(r,d,m,v,T,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:d,name:m}=this;if(!d||!d.current)return;super.readKeyframes();for(let x=0;x<r.length;x++){let z=r[x];if(typeof z=="string"&&(z=z.trim(),uS(z))){const M=mE(z,d.current);M!==void 0&&(r[x]=M),x===r.length-1&&(this.finalKeyframe=z)}}if(this.resolveNoneKeyframes(),!pE.has(m)||r.length!==2)return;const[v,T]=r,b=vE(v),A=vE(T);if(b!==A)if(lE(b)&&lE(A))for(let x=0;x<r.length;x++){const z=r[x];typeof z=="string"&&(r[x]=parseFloat(z))}else qc[m]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:d}=this,m=[];for(let v=0;v<r.length;v++)(r[v]===null||uO(r[v]))&&m.push(v);m.length&&hO(r,m,d)}measureInitialState(){const{element:r,unresolvedKeyframes:d,name:m}=this;if(!r||!r.current)return;m==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qc[m](r.measureViewportBox(),window.getComputedStyle(r.current)),d[0]=this.measuredOrigin;const v=d[d.length-1];v!==void 0&&r.getValue(m,v).jump(v,!1)}measureEndState(){const{element:r,name:d,unresolvedKeyframes:m}=this;if(!r||!r.current)return;const v=r.getValue(d);v&&v.jump(this.measuredOrigin,!1);const T=m.length-1,b=m[T];m[T]=qc[d](r.measureViewportBox(),window.getComputedStyle(r.current)),b!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=b),this.removedTransforms?.length&&this.removedTransforms.forEach(([A,x])=>{r.getValue(A).set(x)}),this.resolveNoneKeyframes()}}function pO(u,r,d){if(u instanceof EventTarget)return[u];if(typeof u=="string"){let m=document;const v=d?.[u]??m.querySelectorAll(u);return v?Array.from(v):[]}return Array.from(u)}const AE=(u,r)=>r&&typeof u=="number"?r.transform(u):u;function EE(u){return AA(u)&&"offsetHeight"in u}const xE=30,yO=u=>!isNaN(parseFloat(u));class gO{constructor(r,d={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=m=>{const v=gl.now();if(this.updatedAt!==v&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(m),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const T of this.dependents)T.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=d.owner}setCurrent(r){this.current=r,this.updatedAt=gl.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=yO(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return process.env.NODE_ENV!=="production"&&nS(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",r)}on(r,d){this.events[r]||(this.events[r]=new eS);const m=this.events[r].add(d);return r==="change"?()=>{m(),sn.read(()=>{this.events.change.getSize()||this.stop()})}:m}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,d){this.passiveEffect=r,this.stopPassiveEffect=d}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,d,m){this.set(d),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-m}jump(r,d=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,d&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=gl.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>xE)return 0;const d=Math.min(this.updatedAt-this.prevUpdatedAt,xE);return xA(parseFloat(this.current)-parseFloat(this.prevFrameValue),d)}start(r){return this.stop(),new Promise(d=>{this.hasAnimated=!0,this.animation=r(d),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gd(u,r){return new gO(u,r)}const{schedule:jS}=HA(queueMicrotask,!1),ro={x:!1,y:!1};function DE(){return ro.x||ro.y}function vO(u){return u==="x"||u==="y"?ro[u]?null:(ro[u]=!0,()=>{ro[u]=!1}):ro.x||ro.y?null:(ro.x=ro.y=!0,()=>{ro.x=ro.y=!1})}function CE(u,r){const d=pO(u),m=new AbortController,v={passive:!0,...r,signal:m.signal};return[d,v,()=>m.abort()]}function ME(u){return!(u.pointerType==="touch"||DE())}function bO(u,r,d={}){const[m,v,T]=CE(u,d),b=A=>{if(!ME(A))return;const{target:x}=A,z=r(x,A);if(typeof z!="function"||!x)return;const M=O=>{ME(O)&&(z(O),x.removeEventListener("pointerleave",M))};x.addEventListener("pointerleave",M,v)};return m.forEach(A=>{A.addEventListener("pointerenter",b,v)}),T}const zE=(u,r)=>r?u===r?!0:zE(u,r.parentElement):!1,BS=u=>u.pointerType==="mouse"?typeof u.button!="number"||u.button<=0:u.isPrimary!==!1,SO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TO(u){return SO.has(u.tagName)||u.tabIndex!==-1}const tv=new WeakSet;function OE(u){return r=>{r.key==="Enter"&&u(r)}}function VS(u,r){u.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const AO=(u,r)=>{const d=u.currentTarget;if(!d)return;const m=OE(()=>{if(tv.has(d))return;VS(d,"down");const v=OE(()=>{VS(d,"up")}),T=()=>VS(d,"cancel");d.addEventListener("keyup",v,r),d.addEventListener("blur",T,r)});d.addEventListener("keydown",m,r),d.addEventListener("blur",()=>d.removeEventListener("keydown",m),r)};function RE(u){return BS(u)&&!DE()}function EO(u,r,d={}){const[m,v,T]=CE(u,d),b=A=>{const x=A.currentTarget;if(!RE(A))return;tv.add(x);const z=r(x,A),M=(Q,X)=>{window.removeEventListener("pointerup",O),window.removeEventListener("pointercancel",w),tv.has(x)&&tv.delete(x),RE(Q)&&typeof z=="function"&&z(Q,{success:X})},O=Q=>{M(Q,x===window||x===document||d.useGlobalTarget||zE(x,Q.target))},w=Q=>{M(Q,!1)};window.addEventListener("pointerup",O,v),window.addEventListener("pointercancel",w,v)};return m.forEach(A=>{(d.useGlobalTarget?window:A).addEventListener("pointerdown",b,v),EE(A)&&(A.addEventListener("focus",z=>AO(z,v)),!TO(A)&&!A.hasAttribute("tabindex")&&(A.tabIndex=0))}),T}function wE(u){return AA(u)&&"ownerSVGElement"in u}function xO(u){return wE(u)&&u.tagName==="svg"}const Ua=u=>!!(u&&u.getVelocity),DO=[...gE,jn,tr],CO=u=>DO.find(yE(u)),HS=ut.createContext({transformPagePoint:u=>u,isStatic:!1,reducedMotion:"never"});function UE(u,r){if(typeof u=="function")return u(r);u!=null&&(u.current=r)}function MO(...u){return r=>{let d=!1;const m=u.map(v=>{const T=UE(v,r);return!d&&typeof T=="function"&&(d=!0),T});if(d)return()=>{for(let v=0;v<m.length;v++){const T=m[v];typeof T=="function"?T():UE(u[v],null)}}}}function zO(...u){return qe.useCallback(MO(...u),u)}class OO extends qe.Component{getSnapshotBeforeUpdate(r){const d=this.props.childRef.current;if(d&&r.isPresent&&!this.props.isPresent){const m=d.offsetParent,v=EE(m)&&m.offsetWidth||0,T=this.props.sizeRef.current;T.height=d.offsetHeight||0,T.width=d.offsetWidth||0,T.top=d.offsetTop,T.left=d.offsetLeft,T.right=v-T.width-T.left}return null}componentDidUpdate(){}render(){return this.props.children}}function RO({children:u,isPresent:r,anchorX:d,root:m}){const v=ut.useId(),T=ut.useRef(null),b=ut.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:A}=ut.useContext(HS),x=zO(T,u?.ref);return ut.useInsertionEffect(()=>{const{width:z,height:M,top:O,left:w,right:Q}=b.current;if(r||!T.current||!z||!M)return;const X=d==="left"?`left: ${w}`:`right: ${Q}`;T.current.dataset.motionPopId=v;const lt=document.createElement("style");A&&(lt.nonce=A);const ot=m??document.head;return ot.appendChild(lt),lt.sheet&<.sheet.insertRule(`
|