@opencx/widget 2.3.0 → 2.3.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/basic.cjs +1 -1
- package/dist/basic.cjs.map +1 -1
- package/dist/basic.js +1 -1
- package/dist/basic.js.map +1 -1
- package/dist/{index-B7LNpE9i.cjs → index-CHWVttUy.cjs} +4 -4
- package/dist/index-CHWVttUy.cjs.map +1 -0
- package/dist/{index-BQfnx4Er.js → index-pl-6K_wU.js} +539 -534
- package/dist/index-pl-6K_wU.js.map +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/dist/src/@components/ChatEvent.component.d.ts +1 -1
- package/dist/src/@components/Fallback.component.d.ts +1 -1
- package/dist/src/@components/Text.component.d.ts +1 -1
- package/dist/src/components/userMessage.d.ts +1 -1
- package/dist/src/designs/basic/index.d.ts +1 -1
- package/dist-embed/script.js +24 -24
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-B7LNpE9i.cjs.map +0 -1
- package/dist/index-BQfnx4Er.js.map +0 -1
- /package/dist/{react-lib → react-web}/Root.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/index.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/use-sound.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/use-sound.test.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/use-sync-state.test.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useAbstractChat.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useAxiosInstance.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useScrollTo.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useSyncState.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useTimeoutState.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useUploadFiles.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useVote.d.ts +0 -0
- /package/dist/{react-lib → react-web}/hooks/useWidgetContentHeight.d.ts +0 -0
- /package/dist/{react-lib → react-web}/index.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/ar.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/de.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/en.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/fr.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/helper.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/index.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/nl.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/locales/pt.locale.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/ChatProvider.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/ConfigDataProvider.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/ContactProvider.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/LocalesProvider.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/componentRegistry.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/use-widget-sfx.d.ts +0 -0
- /package/dist/{react-lib → react-web}/providers/usePreludeData.d.ts +0 -0
- /package/dist/{react-lib → react-web}/types/components.d.ts +0 -0
- /package/dist/{react-lib → react-web}/types/index.d.ts +0 -0
- /package/dist/{react-lib → react-web}/types/options.d.ts +0 -0
- /package/dist/{react-lib → react-web}/utils/create-safe-context.d.ts +0 -0
- /package/dist/{react-lib → react-web}/utils/debug.d.ts +0 -0
- /package/dist/{react-lib → react-web}/utils/getters.d.ts +0 -0
- /package/dist/{react-lib → react-web}/utils/index.d.ts +0 -0
package/dist/basic.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),Tt=require("./index-B7LNpE9i.cjs"),ML=require("@radix-ui/react-tooltip"),vt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),ta=require("framer-motion"),JC=require("tinycolor2"),FL=require("date-fns"),Yn=require("lucide-react"),Pw=require("@radix-ui/react-slot"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./schemas-wky4fpbc.cjs"),NT=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(vt),$f=Fm(PL),qn=Fm(UL),sw=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=vt.useRef(null);return vt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const Fw="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(Fw);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(Fw);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lw(d,s,p,n)}),s},lw=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lw(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lw(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(Fw).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let T=0,C=0,S;for(let U=0;U<g.length;U++){let H=g[U];if(T===0){if(H===f&&(s||g.slice(U,U+p)===n)){E.push(g.slice(C,U)),C=U+p;continue}if(H==="/"){S=U;continue}}H==="["?T++:H==="]"&&T--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const T=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(T);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=T+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=T+(g.length>0?" "+g:g);continue}D=!1}const U=XL(C).join(":"),H=S?U+KA:U,G=H+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(H+J)}g=T+(g.length>0?" "+g:g)}return g};function eI(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function tI(e,...n){let a,s,f,p=d;function d(E){const T=n.reduce((C,S)=>S(C),e());return a=KL(T),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const T=s(E);if(T)return T;const C=JL(E,a);return f(E,C),C}return function(){return p(eI.apply(null,arguments))}}const pn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,nI=/^\d+\/\d+$/,rI=new Set(["px","full","screen"]),aI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iI=/\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$/,oI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ou=e=>Bf(e)||rI.has(e)||nI.test(e),qs=e=>Gf(e,"length",gI),Bf=e=>!!e&&!Number.isNaN(Number(e)),DT=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),lI=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),Qs=e=>aI.test(e),cI=new Set(["length","size","percentage"]),dI=e=>Gf(e,cI,ek),fI=e=>Gf(e,"position",ek),hI=new Set(["image","url"]),pI=e=>Gf(e,hI,yI),mI=e=>Gf(e,"",vI),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},gI=e=>iI.test(e)&&!oI.test(e),ek=()=>!1,vI=e=>uI.test(e),yI=e=>sI.test(e),EI=()=>{const e=pn("colors"),n=pn("spacing"),a=pn("blur"),s=pn("brightness"),f=pn("borderColor"),p=pn("borderRadius"),d=pn("borderSpacing"),g=pn("borderWidth"),E=pn("contrast"),T=pn("grayscale"),C=pn("hueRotate"),S=pn("invert"),R=pn("gap"),A=pn("gradientColorStops"),D=pn("gradientColorStopPositions"),L=pn("inset"),U=pn("margin"),H=pn("opacity"),G=pn("padding"),W=pn("saturate"),Z=pn("scale"),J=pn("sepia"),X=pn("skew"),ce=pn("space"),we=pn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Ou,qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Ou,qs],blur:["none","",Qs,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",Qs,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[lI,qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Qs]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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"],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:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[U]}],mx:[{mx:[U]}],my:[{my:[U]}],ms:[{ms:[U]}],me:[{me:[U]}],mt:[{mt:[U]}],mr:[{mr:[U]}],mb:[{mb:[U]}],ml:[{ml:[U]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[Qs]},Qs]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Qs,qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DT]}],"font-family":[{font:[Em]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,DT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ou,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ou,qs]}],"underline-offset":[{"underline-offset":["auto",Ou,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),fI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Ou,xt]}],"outline-w":[{outline:[Ou,qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[Ou,qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qs,mI]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Qs,xt]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ou,qs,DT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},bI=tI(EI);function jt(...e){return bI($A.clsx(e))}const TI=Um.Provider,wI=Um.Root,xI=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(Um.Content,{ref:s,sideOffset:n,className:jt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cw({children:e,content:n,side:a,align:s}){return z.jsxs(wI,{children:[z.jsx(xI,{asChild:!0,children:e}),z.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=il(/[A-Za-z]/),na=il(/[\dA-Za-z]/),SI=il(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dw=il(/\d/),CI=il(/[\dA-Fa-f]/),_I=il(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=il(new RegExp("\\p{P}|\\p{S}","u")),_c=il(/\s/);function il(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function AI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return DI;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?kI(e):RI(e);if(typeof e=="string")return NI(e);throw new Error("Expected function, string, or object as test")};function kI(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function RI(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function NI(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(OI(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function DI(){return!0}function OI(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],LI=!0,fw=!1,II="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,T,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,U;if((!n||p(E,T,C[C.length-1]||void 0))&&(A=MI(a(E,C)),A[0]===fw))return A;if("children"in E&&E.children){const H=E;if(H.children&&A[0]!==II)for(L=(s?H.children.length:-1)+d,U=C.concat(H);L>-1&&L<H.children.length;){const G=H.children[L];if(D=g(G,L,U)(),D[0]===fw)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function MI(e){return Array.isArray(e)?e:typeof e=="number"?[LI,e]:e==null?nk:[e]}function PI(e,n,a){const f=F1((a||{}).ignore||[]),p=FI(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(T,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(T,C)}function E(T,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const U=S.children.indexOf(T);let H=!1,G=[];R.lastIndex=0;let W=R.exec(T.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,T]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:T.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,H=!0),!R.global)break;W=R.exec(T.value)}return H?(D<T.value.length&&G.push({type:"text",value:T.value.slice(D)}),S.children.splice(U,1,...G)):G=[T],U+G.length}}function FI(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([UI(f[0]),BI(f[1])])}return n}function UI(e){return typeof e=="string"?new RegExp(AI(e),"g"):e}function BI(e){return typeof e=="function"?e:function(){return e}}const OT="phrasing",LT=["autolink","link","image","label"];function HI(){return{transforms:[QI],enter:{literalAutolink:jI,literalAutolinkEmail:IT,literalAutolinkHttp:IT,literalAutolinkWww:IT},exit:{literalAutolink:qI,literalAutolinkEmail:WI,literalAutolinkHttp:VI,literalAutolinkWww:YI}}}function zI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:":",before:"[ps]",after:"\\/",inConstruct:OT,notInConstruct:LT}]}}function jI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function IT(e){this.config.enter.autolinkProtocol.call(this,e)}function VI(e){this.config.exit.autolinkProtocol.call(this,e)}function YI(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function WI(e){this.config.exit.autolinkEmail.call(this,e)}function qI(e){this.exit(e)}function QI(e){PI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$I],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),GI]],{ignore:["link","linkReference"]})}function $I(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!XI(a)))return!1;const d=KI(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function GI(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function XI(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function KI(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||_c(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=s5;function ZI(){return{enter:{gfmFootnoteDefinition:e5,gfmFootnoteDefinitionLabelString:t5,gfmFootnoteCall:a5,gfmFootnoteCallString:i5},exit:{gfmFootnoteDefinition:r5,gfmFootnoteDefinitionLabelString:n5,gfmFootnoteCall:u5,gfmFootnoteCallString:o5}}}function JI(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l5,footnoteReference:ik}}}function e5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t5(){this.buffer()}function n5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function r5(e){this.exit(e)}function a5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i5(){this.buffer()}function o5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function u5(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function s5(){return"["}function l5(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),c5)),d(),p}function c5(e,n,a){return n===0?e:(a?"":" ")+e}const d5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=g5;function f5(){return{canContainEols:["delete"],enter:{strikethrough:p5},exit:{strikethrough:m5}}}function h5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d5}],handlers:{delete:ok}}}function p5(e){this.enter({type:"delete",children:[]},e)}function m5(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function g5(){return"~"}function v5(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||E5,f=[],p=[],d=[],g=[];let E=0,T=-1;for(;++T<e.length;){const D=[],L=[];let U=-1;for(e[T].length>E&&(E=e[T].length);++U<e[T].length;){const H=y5(e[T][U]);if(n.alignDelimiters!==!1){const G=s(H);L[U]=G,(g[U]===void 0||G>g[U])&&(g[U]=G)}D.push(H)}p[T]=D,d[T]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",U="";D===99?(L=":",U=":"):D===108?L=":":D===114&&(U=":");let H=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-U.length);const G=L+"-".repeat(H)+U;n.alignDelimiters!==!1&&(H=L.length+H+U.length,H>g[C]&&(g[C]=H),R[C]=H),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),T=-1;const A=[];for(;++T<p.length;){const D=p[T],L=d[T];C=-1;const U=[];for(;++C<E;){const H=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&U.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&H==="")&&(n.delimiterStart!==!1||C)&&U.push(" "),n.alignDelimiters!==!1&&U.push(G),U.push(H),n.alignDelimiters!==!1&&U.push(W),n.padding!==!1&&U.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&U.push("|")}A.push(n.delimiterEnd===!1?U.join("").replace(/ +$/,""):U.join(""))}return A.join(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),Tt=require("./index-CHWVttUy.cjs"),ML=require("@radix-ui/react-tooltip"),vt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),ta=require("framer-motion"),JC=require("tinycolor2"),FL=require("date-fns"),Yn=require("lucide-react"),Pw=require("@radix-ui/react-slot"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./schemas-wky4fpbc.cjs"),NT=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(vt),$f=Fm(PL),qn=Fm(UL),sw=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=vt.useRef(null);return vt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const Fw="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(Fw);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(Fw);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lw(d,s,p,n)}),s},lw=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lw(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lw(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(Fw).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let T=0,C=0,S;for(let U=0;U<g.length;U++){let H=g[U];if(T===0){if(H===f&&(s||g.slice(U,U+p)===n)){E.push(g.slice(C,U)),C=U+p;continue}if(H==="/"){S=U;continue}}H==="["?T++:H==="]"&&T--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const T=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(T);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=T+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=T+(g.length>0?" "+g:g);continue}D=!1}const U=XL(C).join(":"),H=S?U+KA:U,G=H+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(H+J)}g=T+(g.length>0?" "+g:g)}return g};function eI(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function tI(e,...n){let a,s,f,p=d;function d(E){const T=n.reduce((C,S)=>S(C),e());return a=KL(T),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const T=s(E);if(T)return T;const C=JL(E,a);return f(E,C),C}return function(){return p(eI.apply(null,arguments))}}const pn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,nI=/^\d+\/\d+$/,rI=new Set(["px","full","screen"]),aI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iI=/\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$/,oI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ou=e=>Bf(e)||rI.has(e)||nI.test(e),qs=e=>Gf(e,"length",gI),Bf=e=>!!e&&!Number.isNaN(Number(e)),DT=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),lI=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),Qs=e=>aI.test(e),cI=new Set(["length","size","percentage"]),dI=e=>Gf(e,cI,ek),fI=e=>Gf(e,"position",ek),hI=new Set(["image","url"]),pI=e=>Gf(e,hI,yI),mI=e=>Gf(e,"",vI),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},gI=e=>iI.test(e)&&!oI.test(e),ek=()=>!1,vI=e=>uI.test(e),yI=e=>sI.test(e),EI=()=>{const e=pn("colors"),n=pn("spacing"),a=pn("blur"),s=pn("brightness"),f=pn("borderColor"),p=pn("borderRadius"),d=pn("borderSpacing"),g=pn("borderWidth"),E=pn("contrast"),T=pn("grayscale"),C=pn("hueRotate"),S=pn("invert"),R=pn("gap"),A=pn("gradientColorStops"),D=pn("gradientColorStopPositions"),L=pn("inset"),U=pn("margin"),H=pn("opacity"),G=pn("padding"),W=pn("saturate"),Z=pn("scale"),J=pn("sepia"),X=pn("skew"),ce=pn("space"),we=pn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Ou,qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Ou,qs],blur:["none","",Qs,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",Qs,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[lI,qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Qs]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"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"],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:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[U]}],mx:[{mx:[U]}],my:[{my:[U]}],ms:[{ms:[U]}],me:[{me:[U]}],mt:[{mt:[U]}],mr:[{mr:[U]}],mb:[{mb:[U]}],ml:[{ml:[U]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[Qs]},Qs]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Qs,qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DT]}],"font-family":[{font:[Em]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,DT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ou,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ou,qs]}],"underline-offset":[{"underline-offset":["auto",Ou,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),fI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Ou,xt]}],"outline-w":[{outline:[Ou,qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[Ou,qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qs,mI]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Qs,xt]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ou,qs,DT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},bI=tI(EI);function jt(...e){return bI($A.clsx(e))}const TI=Um.Provider,wI=Um.Root,xI=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(Um.Content,{ref:s,sideOffset:n,className:jt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cw({children:e,content:n,side:a,align:s}){return z.jsxs(wI,{children:[z.jsx(xI,{asChild:!0,children:e}),z.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=il(/[A-Za-z]/),na=il(/[\dA-Za-z]/),SI=il(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dw=il(/\d/),CI=il(/[\dA-Fa-f]/),_I=il(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=il(new RegExp("\\p{P}|\\p{S}","u")),_c=il(/\s/);function il(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function AI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return DI;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?kI(e):RI(e);if(typeof e=="string")return NI(e);throw new Error("Expected function, string, or object as test")};function kI(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function RI(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function NI(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(OI(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function DI(){return!0}function OI(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],LI=!0,fw=!1,II="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,T,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,U;if((!n||p(E,T,C[C.length-1]||void 0))&&(A=MI(a(E,C)),A[0]===fw))return A;if("children"in E&&E.children){const H=E;if(H.children&&A[0]!==II)for(L=(s?H.children.length:-1)+d,U=C.concat(H);L>-1&&L<H.children.length;){const G=H.children[L];if(D=g(G,L,U)(),D[0]===fw)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function MI(e){return Array.isArray(e)?e:typeof e=="number"?[LI,e]:e==null?nk:[e]}function PI(e,n,a){const f=F1((a||{}).ignore||[]),p=FI(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(T,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(T,C)}function E(T,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const U=S.children.indexOf(T);let H=!1,G=[];R.lastIndex=0;let W=R.exec(T.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,T]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:T.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,H=!0),!R.global)break;W=R.exec(T.value)}return H?(D<T.value.length&&G.push({type:"text",value:T.value.slice(D)}),S.children.splice(U,1,...G)):G=[T],U+G.length}}function FI(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([UI(f[0]),BI(f[1])])}return n}function UI(e){return typeof e=="string"?new RegExp(AI(e),"g"):e}function BI(e){return typeof e=="function"?e:function(){return e}}const OT="phrasing",LT=["autolink","link","image","label"];function HI(){return{transforms:[QI],enter:{literalAutolink:jI,literalAutolinkEmail:IT,literalAutolinkHttp:IT,literalAutolinkWww:IT},exit:{literalAutolink:qI,literalAutolinkEmail:WI,literalAutolinkHttp:VI,literalAutolinkWww:YI}}}function zI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:":",before:"[ps]",after:"\\/",inConstruct:OT,notInConstruct:LT}]}}function jI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function IT(e){this.config.enter.autolinkProtocol.call(this,e)}function VI(e){this.config.exit.autolinkProtocol.call(this,e)}function YI(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function WI(e){this.config.exit.autolinkEmail.call(this,e)}function qI(e){this.exit(e)}function QI(e){PI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$I],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),GI]],{ignore:["link","linkReference"]})}function $I(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!XI(a)))return!1;const d=KI(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function GI(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function XI(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function KI(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||_c(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=s5;function ZI(){return{enter:{gfmFootnoteDefinition:e5,gfmFootnoteDefinitionLabelString:t5,gfmFootnoteCall:a5,gfmFootnoteCallString:i5},exit:{gfmFootnoteDefinition:r5,gfmFootnoteDefinitionLabelString:n5,gfmFootnoteCall:u5,gfmFootnoteCallString:o5}}}function JI(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l5,footnoteReference:ik}}}function e5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t5(){this.buffer()}function n5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function r5(e){this.exit(e)}function a5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i5(){this.buffer()}function o5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function u5(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function s5(){return"["}function l5(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),c5)),d(),p}function c5(e,n,a){return n===0?e:(a?"":" ")+e}const d5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=g5;function f5(){return{canContainEols:["delete"],enter:{strikethrough:p5},exit:{strikethrough:m5}}}function h5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d5}],handlers:{delete:ok}}}function p5(e){this.enter({type:"delete",children:[]},e)}function m5(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function g5(){return"~"}function v5(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||E5,f=[],p=[],d=[],g=[];let E=0,T=-1;for(;++T<e.length;){const D=[],L=[];let U=-1;for(e[T].length>E&&(E=e[T].length);++U<e[T].length;){const H=y5(e[T][U]);if(n.alignDelimiters!==!1){const G=s(H);L[U]=G,(g[U]===void 0||G>g[U])&&(g[U]=G)}D.push(H)}p[T]=D,d[T]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",U="";D===99?(L=":",U=":"):D===108?L=":":D===114&&(U=":");let H=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-U.length);const G=L+"-".repeat(H)+U;n.alignDelimiters!==!1&&(H=L.length+H+U.length,H>g[C]&&(g[C]=H),R[C]=H),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),T=-1;const A=[];for(;++T<p.length;){const D=p[T],L=d[T];C=-1;const U=[];for(;++C<E;){const H=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&U.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&H==="")&&(n.delimiterStart!==!1||C)&&U.push(" "),n.alignDelimiters!==!1&&U.push(G),U.push(H),n.alignDelimiters!==!1&&U.push(W),n.padding!==!1&&U.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&U.push("|")}A.push(n.delimiterEnd===!1?U.join("").replace(/ +$/,""):U.join(""))}return A.join(`
|
|
2
2
|
`)}function y5(e){return e==null?"":String(e)}function E5(e){return e.length}function a_(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const i_={}.hasOwnProperty;function uk(e,n){const a=n||{};function s(f,...p){let d=s.invalid;const g=s.handlers;if(f&&i_.call(f,e)){const E=String(f[e]);d=i_.call(g,E)?g[E]:s.unknown}if(d)return d.call(this,f,...p)}return s.handlers=a.handlers||{},s.invalid=a.invalid,s.unknown=a.unknown,s}function b5(e,n,a,s){const f=a.enter("blockquote"),p=a.createTracker(s);p.move("> "),p.shift(2);const d=a.indentLines(a.containerFlow(e,p.current()),T5);return f(),d}function T5(e,n,a){return">"+(a?"":" ")+e}function w5(e,n){return o_(e,n.inConstruct,!0)&&!o_(e,n.notInConstruct,!1)}function o_(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let s=-1;for(;++s<n.length;)if(e.includes(n[s]))return!0;return!1}function u_(e,n,a,s){let f=-1;for(;++f<a.unsafe.length;)if(a.unsafe[f].character===`
|
|
3
3
|
`&&w5(a.stack,a.unsafe[f]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
4
4
|
`}function x5(e,n){const a=String(e);let s=a.indexOf(n),f=s,p=0,d=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===f?++p>d&&(d=p):p=1,f=s+n.length,s=a.indexOf(n,f);return d}function S5(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function C5(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function _5(e,n,a,s){const f=C5(a),p=e.value||"",d=f==="`"?"GraveAccent":"Tilde";if(S5(e,a)){const S=a.enter("codeIndented"),R=a.indentLines(p,A5);return S(),R}const g=a.createTracker(s),E=f.repeat(Math.max(x5(p,f)+1,3)),T=a.enter("codeFenced");let C=g.move(E);if(e.lang){const S=a.enter(`codeFencedLang${d}`);C+=g.move(a.safe(e.lang,{before:C,after:" ",encode:["`"],...g.current()})),S()}if(e.lang&&e.meta){const S=a.enter(`codeFencedMeta${d}`);C+=g.move(" "),C+=g.move(a.safe(e.meta,{before:C,after:`
|