PageSourceSearch

https://teamia.lovable.app/assets/index-DMs6QUt5.js

js teamia.lovable.app collected 2026-10-03 03:44:47 UTC 356,971 bytes, 142 lines download raw bytes

1import{S as Hc,s as Wc,h as no,g as qc,n as Ts,u as Gc,r as p,a as Kc,b as Yc,j as s,R as yi,c as nr,d as Xc,e as Ct,t as ze,f as _s,_ as ro,o as Qc}from"./index-CSr9JzOW.js";var Zc=class extends Hc{#t;#r=void 0;#e;#n;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Wc(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#e,observer:this}),n?.mutationKey&&this.options.mutationKey&&no(n.mutationKey)!==no(this.options.mutationKey)?this.reset():this.#e?.state.status==="pending"&&this.#e.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#e?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#r}reset(){this.#e?.removeObserver(this),this.#e=void 0,this.#i(),this.#o()}mutate(t,n){return this.#n=n,this.#e?.removeObserver(this),this.#e=this.#t.getMutationCache().build(this.#t,this.options),this.#e.addObserver(this),this.#e.execute(t)}#i(){const t=this.#e?.state??qc();this.#r={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Ts.batch(()=>{if(this.#n&&this.hasListeners()){const n=this.#r.variables,r=this.#r.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,n,r,i)}catch(o){Promise.reject(o)}
1try{this.#n.onSettled?.(t.data,null,n,r,i)}catch(o){Promise.reject(o)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,n,r,i)}catch(o){Promise.reject(o)}try{this.#n.onSettled?.(void 0,t.error,n,r,i)}catch(o){Promise.reject(o)}}}this.listeners.forEach(n=>{n(this.#r)})})}};function st(e,t){const n=Gc(),[r]=p.useState(()=>new Zc(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const i=p.useSyncExternalStore(p.useCallback(a=>r.subscribe(Ts.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=p.useCallback((a,l)=>{r.mutate(a,l).catch(Kc)},[r]);if(i.error&&Yc(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function io(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _t(...e){return t=>{let n=!1;const r=e.map(i=>{const o=io(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():io(e[i],null)}}}}function ge(...e){return p.useCallback(_t(...e),e)}var Jc=Symbol.for("react.lazy"),Wn=yi[" use ".trim().toString()];function eu(e){return typeof e=="object"&&e!==null&&"then"in e}function Os(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Jc&&"_payload"in e&&eu(e._payload)}function Ds(e){const t=nu(e),n=p.forwardRef((r,i)=>{let{children:o,...a}=r;Os(o)&&typeof Wn=="function"&&(o=Wn(o._payload));const l=p.Children.toArray(o),u=l.find(iu);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var tu=Ds("Slot");function nu(e){const t=p.forwardRef((n,r)=>{let{children:i,...o}=n;if(Os(i)&&typeof Wn=="function"&&(i=Wn(i._payload)),p.isValidElement(i)){const a=su(i),l=ou(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ru=Symbol("radix.slottable");function iu(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ru}function ou(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function su(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ls(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ls(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ms(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ls(e))&&(r&&(r+=" "),r+=t);return r}const oo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,so=Ms,zs=(e,t)=>n=>{var r;if(t?.variants==null)return so(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(c=>{const d=n?.[c],f=o?.[c];if(d===null)return null;const h=oo(d)||oo(f);return i[c][h]}),l=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(v=>{let[x,y]=v;return Array.isArray(y)?y.includes({...o,...l}[x]):{...o,...l}[x]===y})?[...c,f,h]:c},[]);return so(e,a,u,n?.class,n?.className)},au=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},lu=(e,t)=>({classGroupId:e,validator:t}),Bs=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qn="-",ao=[],cu="arbitrary..",uu=e=>{const t=fu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>
vendor: 4,731 bytes, line 1
1{if(a.startsWith("[")&&a.endsWith("]"))return du(a);const l=a.split(qn),u=l[0]===""&&l.length>1?1:0;return $s(l,u,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const u=r[a],c=n[a];return u?c?au(c,u):u:c||ao}return n[a]||ao}}},$s=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const c=$s(e,t+1,o);if(c)return c}const a=n.validators;if(a===null)return;const l=t===0?e.join(qn):e.slice(t).join(qn),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(l))return d.classGroupId}},du=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?cu+r:void 0})(),fu=e=>{const{theme:t,classGroups:n}=e;return pu(n,t)},pu=(e,t)=>{const n=Bs();for(const r in e){const i=e[r];vi(i,n,r,t)}return n},vi=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];mu(a,t,n,r)}},mu=(e,t,n,r)=>{if(typeof e=="string"){hu(e,t,n);return}if(typeof e=="function"){xu(e,t,n,r);return}gu(e,t,n,r)},hu=(e,t,n)=>{const r=e===""?t:Vs(t,e);r.classGroupId=n},xu=(e,t,n,r)=>{if(bu(e)){vi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(lu(n,e))},gu=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[l,u]=i[a];vi(u,Vs(t,l),n,r)}},Vs=(e,t)=>{let n=e;const r=t.split(qn),i=r.length;for(let o=0;o<i;o++){const a=r[o];let l=n.nextPart.get(a);l||(l=Bs(),n.nextPart.set(a,l)),n=l}return n},bu=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},Qr="!",lo=":",vu=[],co=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),wu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,l=0,u=0,c;const d=i.length;for(let x=0;x<d;x++){const y=i[x];if(a===0&&l===0){if(y===lo){o.push(i.slice(u,x)),u=x+1;continue}if(y==="/"){c=x;continue}}y==="["?a++:y==="]"?a--:y==="("?l++:y===")"&&l--}const f=o.length===0?i:i.slice(u);let h=f,m=!1;f.endsWith(Qr)?(h=f.slice(0,-1),m=!0):f.startsWith(Qr)&&(h=f.slice(1),m=!0);const v=c&&c>u?c-u:void 0;return co(o,m,h,v)};if(t){const i=t+lo,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):co(vu,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},ku=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],l=a[0]==="[",u=t.has(a);l||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},Eu=e=>({cache:yu(e.cacheSize),parseClassName:wu(e),sortModifiers:ku(e),...uu(e)}),Su=/\s+/,Cu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],l=e.trim().split(Su);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:f,modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:x}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let y=!!x,b=r(y?v.substring(0,x):v);if(!b){if(!y){u=d+(u.length>0?" "+u:u);continue}if(b=r(v),!b){u=d+(u.length>0?" "+u:u);continue}y=!1}const E=h.length===0?"":h.length===1?h[0]:o(h).join(":"),S=m?E+Qr:E,F=S+b;if(a.indexOf(F)>-1)continue;a.push(F);const I=i(b,y);for(let k=0;k<I.length;++k){const A=I[k];a.push(S+A)}u=d+(u.length>0?" "+u:u)}return u},Nu=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Us(n))&&(i&&(i+=" "),i+=r);return i},Us=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Us(e[r]))&&(n&&(n+=" "),n+=t);return n},ju=(e,...t)=>{let n,r,i,o;const a=u=>{const c=t.reduce((d,f)=>f(d),e());return n=Eu(c),r=n.cache.get,i=n.cache.set,o=l,l(u)},l=u=>{const c=r(u);if(c)return c;const d=Cu(u,n);return i(u,d),d};return o=a,(...u)=>o(Nu(...u))},Au=[],we=e=>{const t=n=>n[e]||Au;return t.isThemeGetter=!0,t},Hs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ws=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Pu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ru=/\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$/,Iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_u=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>Fu.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>!!e&&Number.isInteger(Number(e)),Sr=e=>e.endsWith("%")&&ee(e.slice(0,-1)),it=e=>Pu.test(e),qs=()=>!0,Ou=e=>Ru.test(e)&&!Iu.test(e),wi=()=>
vendor: 4,529 bytes, line 1
1!1,Du=e=>Tu.test(e),Lu=e=>_u.test(e),Mu=e=>!U(e)&&!H(e),zu=e=>bt(e,Ys,wi),U=e=>Hs.test(e),Nt=e=>bt(e,Xs,Ou),uo=e=>bt(e,Gu,ee),Bu=e=>bt(e,Zs,qs),$u=e=>bt(e,Qs,wi),fo=e=>bt(e,Gs,wi),Vu=e=>bt(e,Ks,Lu),Nn=e=>bt(e,Js,Du),H=e=>Ws.test(e),an=e=>Ot(e,Xs),Uu=e=>Ot(e,Qs),po=e=>Ot(e,Gs),Hu=e=>Ot(e,Ys),Wu=e=>Ot(e,Ks),jn=e=>Ot(e,Js,!0),qu=e=>Ot(e,Zs,!0),bt=(e,t,n)=>{const r=Hs.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ot=(e,t,n=!1)=>{const r=Ws.exec(e);return r?r[1]?t(r[1]):n:!1},Gs=e=>e==="position"||e==="percentage",Ks=e=>e==="image"||e==="url",Ys=e=>e==="length"||e==="size"||e==="bg-size",Xs=e=>e==="length",Gu=e=>e==="number",Qs=e=>e==="family-name",Zs=e=>e==="number"||e==="weight",Js=e=>e==="shadow",Ku=()=>{const e=we("color"),t=we("font"),n=we("text"),r=we("font-weight"),i=we("tracking"),o=we("leading"),a=we("breakpoint"),l=we("container"),u=we("spacing"),c=we("radius"),d=we("shadow"),f=we("inset-shadow"),h=we("text-shadow"),m=we("drop-shadow"),v=we("blur"),x=we("perspective"),y=we("aspect"),b=we("ease"),E=we("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...F(),H,U],k=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],j=()=>[H,U,u],C=()=>[dt,"full","auto",...j()],L=()=>[ft,"none","subgrid",H,U],O=()=>["auto",{span:["full",ft,H,U]},ft,H,U],R=()=>[ft,"auto",H,U],P=()=>["auto","min","max","fr",H,U],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...j()],V=()=>[dt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],W=()=>[dt,"screen","full","dvw","lvw","svw","min","max","fit",...j()],Z=()=>[dt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],g=()=>[e,H,U],he=()=>[...F(),po,fo,{position:[H,U]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",Hu,zu,{size:[H,U]}],se=()=>[Sr,an,Nt],ae=()=>["","none","full",c,H,U],X=()=>["",ee,an,Nt],q=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[ee,Sr,po,fo],te=()=>["","none",v,H,U],ne=()=>["none",ee,H,U],N=()=>["none",ee,H,U],$=()=>[ee,H,U],G=()=>[dt,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[it],breakpoint:[it],color:[qs],container:[it],"drop-shadow":[it],ease:["in","out","in-out"],font:[Mu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[it],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[it],shadow:[it],spacing:["px",ee],text:[it],"text-shadow":[it],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dt,U,H,y]}],container:["container"],columns:[{columns:[ee,U,H,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:I()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}
vendor: 4,713 bytes, line 1
1],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[ft,"auto",H,U]}],basis:[{basis:[dt,"full","auto",l,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,dt,"auto","initial","none",U]}],grow:[{grow:["",ee,H,U]}],shrink:[{shrink:["",ee,H,U]}],order:[{order:[ft,"first","last","none",H,U]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[l,"screen",...V()]}],"min-w":[{"min-w":[l,"screen","none",...V()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,an,Nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,qu,Bu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sr,U]}],"font-family":[{font:[Uu,$u,t]}],"font-features":[{"font-features":[U]}],"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:[i,H,U]}],"line-clamp":[{"line-clamp":[ee,"none",H,uo]}],leading:[{leading:[o,...j()]}],"list-image":[{"list-image":["none",H,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",H,Nt]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[ee,"auto",H,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,U]}],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",H,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ft,H,U],radial:["",H,U],conic:[ft,H,U]},Wu,Vu]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:se()}
vendor: 7,301 bytes, line 1
1],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-bs":[{"border-bs":g()}],"border-color-be":[{"border-be":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,H,U]}],"outline-w":[{outline:["",ee,an,Nt]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",d,jn,Nn]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",f,jn,Nn]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[ee,Nt]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",h,jn,Nn]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[ee,H,U]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"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":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[H,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,U]}],filter:[{filter:["","none",H,U]}],blur:[{blur:te()}],brightness:[{brightness:[ee,H,U]}],contrast:[{contrast:[ee,H,U]}],"drop-shadow":[{"drop-shadow":["","none",m,jn,Nn]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",ee,H,U]}],"hue-rotate":[{"hue-rotate":[ee,H,U]}],invert:[{invert:["",ee,H,U]}],saturate:[{saturate:[ee,H,U]}],sepia:[{sepia:["",ee,H,U]}],"backdrop-filter":[{"backdrop-filter":["","none",H,U]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[ee,H,U]}],"backdrop-contrast":[{"backdrop-contrast":[ee,H,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,H,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,H,U]}],"backdrop-invert":[{"backdrop-invert":["",ee,H,U]}],"backdrop-opacity":[{"backdrop-opacity":[ee,H,U]}],"backdrop-saturate":[{"backdrop-saturate":[ee,H,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,H,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",H,U]}],ease:[{ease:["linear","initial",b,H,U]}],delay:[{delay:[ee,H,U]}],animate:[{animate:["none",E,H,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,H,U]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[H,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}
vendor: 6,409 bytes, line 1
1],"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",H,U]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",H,U]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[ee,an,Nt,uo]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},Yu=ju(Ku);function Ce(...e){return Yu(Ms(e))}const Xu=zs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ue=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?tu:"button";return s.jsx(a,{className:Ce(Xu({variant:t,size:n,className:e})),ref:o,...i})});ue.displayName="Button";const Se=p.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:Ce("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Se.displayName="Input";const ea=(...e)=>
vendor: 8,967 bytes, line 1
1e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Qu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Zu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const mo=e=>{const t=Zu(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ju={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ed=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const td=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},u)=>p.createElement("svg",{ref:u,...Ju,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ea("lucide",i),...!o&&!ed(l)&&{"aria-hidden":"true"},...l},[...a.map(([c,d])=>p.createElement(c,d)),...Array.isArray(o)?o:[o]]));const Le=(e,t)=>{const n=p.forwardRef(({className:r,...i},o)=>p.createElement(td,{ref:o,iconNode:t,className:ea(`lucide-${Qu(mo(e))}`,`lucide-${e}`,r),...i}));return n.displayName=mo(e),n};const nd=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ki=Le("arrow-right",nd);const rd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],id=Le("ban",rd);const od=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sd=Le("check",od);const ad=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],rr=Le("chevron-down",ad);const ld=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ta=Le("chevron-right",ld);const cd=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ud=Le("chevron-up",cd);const dd=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ho=Le("copy",dd);const fd=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],zn=Le("external-link",fd);const pd=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],md=Le("file-up",pd);const hd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],xd=Le("info",hd);const gd=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ht=Le("loader-circle",gd);const bd=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],yd=Le("pencil",bd);const vd=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wd=Le("x",vd);function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function kd(e,t){const n=p.createContext(t),r=o=>{const{children:a,...l}=o,u=p.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function i(o){const a=p.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function yn(e,t=[]){let n=[];function r(o,a){const l=p.createContext(a),u=n.length;n=[...n,a];const c=f=>{const{scope:h,children:m,...v}=f,x=h?.[e]?.[u]||l,y=p.useMemo(()=>v,Object.values(v));return s.jsx(x.Provider,{value:y,children:m})};c.displayName=o+"Provider";function d(f,h){const m=h?.[e]?.[u]||l,v=p.useContext(m);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(a=>p.createContext(a));return function(l){const u=l?.[e]||o;return p.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return i.scopeName=e,[r,Ed(i,...t)]}function Ed(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:u,scopeName:c})=>{const f=u(o)[`__scope${c}`];return{...l,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Ne=globalThis?.document?p.useLayoutEffect:()=>{},Sd=yi[" useId ".trim().toString()]||(()=>{}),Cd=0;function At(e){const[t,n]=p.useState(Sd());return Ne(()=>{n(r=>r??String(Cd++))},[e]),e||(t?`radix-${t}`:"")}var Nd=yi[" useInsertionEffect ".trim().toString()]||Ne;function Gn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=jd({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:i;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const c=p.useCallback(d=>{if(l){const f=Ad(d)?d(e):d;f!==e&&a.current?.(f)}else o(d)},[l,e,o,a]);return[u,c]}function jd({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),i=p.useRef(n),o=p.useRef(t);return Nd(()=>{o.current=t},[t]),p.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function Ad(e){return typeof e=="function"}function Fd(e){const t=Pd(e),n=p.forwardRef((r,i)=>{const{children:o,...a}=r,l=p.Children.toArray(o),u=l.find(Id);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function Pd(e){const t=p.forwardRef((n,r)=>{const{children:i,...o}=n;if(p.isValidElement(i)){const a=_d(i),l=Td(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rd=Symbol("radix.slottable");function Id(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rd}function Td(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function _d(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Od=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=Od.reduce((e,t)=>{const n=Fd(`Primitive.${t}`),r=p.forwardRef((i,o)=>{const{asChild:a,...l}=i,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(u,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Dd(e,t){e&&nr.flushSync(()=>e.dispatchEvent(t))}function Ft(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ld(e,t=globalThis?.document){const n=Ft(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Md="DismissableLayer",Zr="dismissableLayer.update",zd="dismissableLayer.pointerDownOutside",Bd="dismissableLayer.focusOutside",xo,na=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ir=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...u}=e,c=p.useContext(na),[d,f]=p.useState(null),h=d?.ownerDocument??globalThis?.document,[,m]=p.useState({}),v=ge(t,A=>f(A)),x=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(y),E=d?x.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,F=E>=b,I=Ud(A=>{const j=A.target,C=[...c.branches].some(L=>L.contains(j));!F||C||(i?.(A),a?.(A),A.defaultPrevented||l?.())},h),k=Hd(A=>{const j=A.target;[...c.branches].some(L=>L.contains(j))||(o?.(A),a?.(A),A.defaultPrevented||l?.())},h);return Ld(A=>{E===c.layers.size-1&&(r?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),p.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),go(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xo)}},[d,h,n,c]),p.useEffect(()=>()=>
vendor: 5,165 bytes, line 1
1{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),go())},[d,c]),p.useEffect(()=>{const A=()=>m({});return document.addEventListener(Zr,A),()=>document.removeEventListener(Zr,A)},[]),s.jsx(de.div,{...u,ref:v,style:{pointerEvents:S?F?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,I.onPointerDownCapture)})});ir.displayName=Md;var $d="DismissableLayerBranch",Vd=p.forwardRef((e,t)=>{const n=p.useContext(na),r=p.useRef(null),i=ge(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),s.jsx(de.div,{...e,ref:i})});Vd.displayName=$d;function Ud(e,t=globalThis?.document){const n=Ft(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let u=function(){ra(zd,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Hd(e,t=globalThis?.document){const n=Ft(e),r=p.useRef(!1);return p.useEffect(()=>{const i=o=>{o.target&&!r.current&&ra(Bd,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function go(){const e=new CustomEvent(Zr);document.dispatchEvent(e)}function ra(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Dd(i,o):i.dispatchEvent(o)}var Cr="focusScope.autoFocusOnMount",Nr="focusScope.autoFocusOnUnmount",bo={bubbles:!1,cancelable:!0},Wd="FocusScope",or=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[l,u]=p.useState(null),c=Ft(i),d=Ft(o),f=p.useRef(null),h=ge(t,x=>u(x)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let x=function(S){if(m.paused||!l)return;const F=S.target;l.contains(F)?f.current=F:mt(f.current,{select:!0})},y=function(S){if(m.paused||!l)return;const F=S.relatedTarget;F!==null&&(l.contains(F)||mt(f.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(const I of S)I.removedNodes.length>0&&mt(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",y);const E=new MutationObserver(b);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),E.disconnect()}}},[r,l,m.paused]),p.useEffect(()=>{if(l){vo.add(m);const x=document.activeElement;if(!l.contains(x)){const b=new CustomEvent(Cr,bo);l.addEventListener(Cr,c),l.dispatchEvent(b),b.defaultPrevented||(qd(Qd(ia(l)),{select:!0}),document.activeElement===x&&mt(l))}return()=>{l.removeEventListener(Cr,c),setTimeout(()=>{const b=new CustomEvent(Nr,bo);l.addEventListener(Nr,d),l.dispatchEvent(b),b.defaultPrevented||mt(x??document.body,{select:!0}),l.removeEventListener(Nr,d),vo.remove(m)},0)}}},[l,c,d,m]);const v=p.useCallback(x=>{if(!n&&!r||m.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,b=document.activeElement;if(y&&b){const E=x.currentTarget,[S,F]=Gd(E);S&&F?!x.shiftKey&&b===F?(x.preventDefault(),n&&mt(S,{select:!0})):x.shiftKey&&b===S&&(x.preventDefault(),n&&mt(F,{select:!0})):b===E&&x.preventDefault()}},[n,r,m.paused]);return s.jsx(de.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})});or.displayName=Wd;function qd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mt(r,{select:t}),document.activeElement!==n)return}function Gd(e){const t=ia(e),n=yo(t,e),r=yo(t.reverse(),e);return[n,r]}function ia(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yo(e,t){for(const n of e)if(!Kd(n,{upTo:t}))return n}function Kd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Yd(e){return e instanceof HTMLInputElement&&"select"in e}function mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yd(e)&&t&&e.select()}}var vo=Xd();function Xd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wo(e,t),e.unshift(t)},remove(t){e=wo(e,t),e[0]?.resume()}}}function wo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qd(e){return e.filter(t=>t.tagName!=="A")}var Zd="Portal",sr=p.forwardRef((e,t)=>
vendor: 8,312 bytes, lines 1-16
1{const{container:n,...r}=e,[i,o]=p.useState(!1);Ne(()=>o(!0),[]);const a=n||i&&globalThis?.document?.body;return a?Xc.createPortal(s.jsx(de.div,{...r,ref:t}),a):null});sr.displayName=Zd;function Jd(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Xt=e=>{const{present:t,children:n}=e,r=ef(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=ge(r.ref,tf(i));return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:o}):null};Xt.displayName="Presence";function ef(e){const[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),o=p.useRef("none"),a=e?"mounted":"unmounted",[l,u]=Jd(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=An(r.current);o.current=l==="mounted"?c:"none"},[l]),Ne(()=>{const c=r.current,d=i.current;if(d!==e){const h=o.current,m=An(c);e?u("MOUNT"):m==="none"||c?.display==="none"?u("UNMOUNT"):u(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Ne(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=m=>{const x=An(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(u("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=m=>{m.target===t&&(o.current=An(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function An(e){return e?.animationName||"none"}function tf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jr=0;function Ei(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ko()),document.body.insertAdjacentElement("beforeend",e[1]??ko()),jr++,()=>{jr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jr--}},[])}function ko(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ye=function(){return Ye=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ye.apply(this,arguments)};function oa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nf(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Bn="right-scroll-bar-position",$n="width-before-scroll-bar",rf="with-scroll-bars-hidden",of="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sf(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var af=typeof window<"u"?p.useLayoutEffect:p.useEffect,Eo=new WeakMap;function lf(e,t){var n=sf(null,function(r){return e.forEach(function(i){return Ar(i,r)})});return af(function(){var r=Eo.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||Ar(l,null)}),o.forEach(function(l){i.has(l)||Ar(l,a)})}Eo.set(n,e)},[e]),n}function cf(e){return e}function uf(e,t){t===void 0&&(t=cf);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var u=function(){var d=a;a=[],d.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),n}}}};return i}function df(e){e===void 0&&(e={});var t=uf(null);return t.options=Ye({async:!0,ssr:!1},e),t}var sa=function(e){var t=e.sideCar,n=oa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Ye({},n))};sa.isSideCarExport=!0;function ff(e,t){return e.useMedium(t),sa}var aa=df(),Fr=function(){},ar=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Fr,onWheelCapture:Fr,onTouchMoveCapture:Fr}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,v=e.noIsolation,x=e.inert,y=e.allowPinchZoom,b=e.as,E=b===void 0?"div":b,S=e.gapMode,F=oa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=h,k=lf([n,t]),A=Ye(Ye({},F),i);return p.createElement(p.Fragment,null,d&&p.createElement(I,{sideCar:aa,removeScrollBar:c,shards:f,noRelative:m,noIsolation:v,inert:x,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:S}),a?p.cloneElement(p.Children.only(l),Ye(Ye({},A),{ref:k})):p.createElement(E,Ye({},A,{className:u,ref:k}),l))});ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ar.classNames={fullWidth:$n,zeroRight:Bn};var pf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pf();return t&&e.setAttribute("nonce",t),e}function hf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mf())&&(hf(t,n),xf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bf=function(){var e=gf();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},la=function(){var e=bf(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},yf={left:0,top:0,right:0,gap:0},Pr=function(e){return parseInt(e||"",10)||0},vf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Pr(n),Pr(r),Pr(i)]},wf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yf;var t=vf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kf=la(),Ut="data-scroll-locked",Ef=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(rf,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(l,"px ").concat(r,`;
5  }
6  body[`).concat(Ut,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(i,`px;
11    padding-top: `).concat(o,`px;
12    padding-right: `).concat(a,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(l,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(Bn,` {
20    right: `).concat(l,"px ").concat(r,`;
21  }
22  
23  .`).concat($n,` {
24    margin-right: `).concat(l,"px ").concat(r,`;
25  }
26  
27  .`).concat(Bn," .").concat(Bn,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat($n," .").concat($n,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(Ut,`] {
36    `).concat(of,": ").concat(l,`px;
37  }
38`)},So=function(){var e=parseInt(document.body.getAttribute(Ut)||"0",10);return isFinite(e)?e:0},Sf=function(){p.useEffect(function(){return document.body.setAttribute(Ut,(So()+1).toString()),function(){var e=So()-1;e<=0?document.body.removeAttribute(Ut):document.body.setAttribute(Ut,e.toString())}},[])},Cf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Sf();var o=p.useMemo(function(){return wf(i)},[i]);return p.createElement(kf,{styles:Ef(o,!t,i,n?"":"!important")})},Jr=!1;if(typeof window<"u")try{var Fn=Object.defineProperty({},"passive",{get:function(){return Jr=!0,!0}});window.addEventListener("test",Fn,Fn),window.removeEventListener("test",Fn,Fn)}catch{Jr=!1}var Mt=Jr?{passive:!1}:!1,Nf=function(e){return e.tagName==="TEXTAREA"},ca=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nf(e)&&n[t]==="visible")},jf=function(e){return ca(e,"overflowY")},Af=function(e){return ca(e,"overflowX")},Co=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=ua(e,r);if(i){var o=da(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ff=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Pf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ua=function(e,t){return e==="v"?jf(t):Af(t)},da=function(e,t){return e==="v"?Ff(t):Pf(t)},Rf=function(e,t){return e==="h"&&t==="rtl"?-1:1},If=function(e,t,n,r,i){var o=Rf(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,u=t.contains(l),c=!1,d=a>0,f=0,h=0;do{if(!l)break;var m=da(e,l),v=m[0],x=m[1],y=m[2],b=x-y-o*v;(v||b)&&ua(e,l)&&(f+=b,h+=v);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(c=!0),c},Pn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},No=function(e){return[e.deltaX,e.deltaY]},jo=function(e){return e&&"current"in e?e.current:e},Tf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_f=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Of=0,zt=[];function Df(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(Of++)[0],o=p.useState(la)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=nf([e.lockRef.current],(e.shards||[]).map(jo),!0).filter(Boolean);return x.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(x,y){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!a.current.allowPinchZoom;var b=Pn(x),E=n.current,S="deltaX"in x?x.deltaX:E[0]-b[0],F="deltaY"in x?x.deltaY:E[1]-b[1],I,k=x.target,A=Math.abs(S)>Math.abs(F)?"h":"v";if("touches"in x&&A==="h"&&k.type==="range")return!1;var j=window.getSelection(),C=j&&j.anchorNode,L=C?C===k||C.contains(k):!1;if(L)return!1;var O=Co(A,k);if(!O)return!0;if(O?I=A:(I=A==="v"?"h":"v",O=Co(A,k)),!O)return!1;if(!r.current&&"changedTouches"in x&&(S||F)&&(r.current=I),!I)return!0;var R=r.current||I;return If(R,y,x,R==="h"?S:F)},[]),u=p.useCallback(function(x){var y=x;if(!(!zt.length||zt[zt.length-1]!==o)){var b="deltaY"in y?No(y):Pn(y),E=t.current.filter(function(I){return I.name===y.type&&(I.target===y.target||y.target===I.shadowParent)&&Tf(I.delta,b)})[0];if(E&&E.should){y.cancelable&&y.preventDefault();return}
vendor: 4,828 bytes, line 41
41if(!E){var S=(a.current.shards||[]).map(jo).filter(Boolean).filter(function(I){return I.contains(y.target)}),F=S.length>0?l(y,S[0]):!a.current.noIsolation;F&&y.cancelable&&y.preventDefault()}}},[]),c=p.useCallback(function(x,y,b,E){var S={name:x,delta:y,target:b,should:E,shadowParent:Lf(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(F){return F!==S})},1)},[]),d=p.useCallback(function(x){n.current=Pn(x),r.current=void 0},[]),f=p.useCallback(function(x){c(x.type,No(x),x.target,l(x,e.lockRef.current))},[]),h=p.useCallback(function(x){c(x.type,Pn(x),x.target,l(x,e.lockRef.current))},[]);p.useEffect(function(){return zt.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Mt),document.addEventListener("touchmove",u,Mt),document.addEventListener("touchstart",d,Mt),function(){zt=zt.filter(function(x){return x!==o}),document.removeEventListener("wheel",u,Mt),document.removeEventListener("touchmove",u,Mt),document.removeEventListener("touchstart",d,Mt)}},[]);var m=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(o,{styles:_f(i)}):null,m?p.createElement(Cf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mf=ff(aa,Df);var lr=p.forwardRef(function(e,t){return p.createElement(ar,Ye({},e,{ref:t,sideCar:Mf}))});lr.classNames=ar.classNames;var zf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,Rn=new WeakMap,In={},Rr=0,fa=function(e){return e&&(e.host||fa(e.parentNode))},Bf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fa(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$f=function(e,t,n,r){var i=Bf(t,Array.isArray(e)?e:[e]);In[n]||(In[n]=new WeakMap);var o=In[n],a=[],l=new Set,u=new Set(i),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};i.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var m=h.getAttribute(r),v=m!==null&&m!=="false",x=(Bt.get(h)||0)+1,y=(o.get(h)||0)+1;Bt.set(h,x),o.set(h,y),a.push(h),x===1&&v&&Rn.set(h,!0),y===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),l.clear(),Rr++,function(){a.forEach(function(f){var h=Bt.get(f)-1,m=o.get(f)-1;Bt.set(f,h),o.set(f,m),h||(Rn.has(f)||f.removeAttribute(r),Rn.delete(f)),m||f.removeAttribute(n)}),Rr--,Rr||(Bt=new WeakMap,Bt=new WeakMap,Rn=new WeakMap,In={})}},Si=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=zf(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),$f(r,i,n,"aria-hidden")):function(){return null}};function Vf(e){const t=Uf(e),n=p.forwardRef((r,i)=>{const{children:o,...a}=r,l=p.Children.toArray(o),u=l.find(Wf);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function Uf(e){const t=p.forwardRef((n,r)=>{const{children:i,...o}=n;if(p.isValidElement(i)){const a=Gf(i),l=qf(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hf=Symbol("radix.slottable");function Wf(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hf}function qf(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Gf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cr="Dialog",[pa]=yn(cr),[Kf,We]=pa(cr),ma=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,l=p.useRef(null),u=p.useRef(null),[c,d]=Gn({prop:r,defaultProp:i??!1,onChange:o,caller:cr});return s.jsx(Kf,{scope:t,triggerRef:l,contentRef:u,contentId:At(),titleId:At(),descriptionId:At(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};ma.displayName=cr;var ha="DialogTrigger",Yf=p.forwardRef((e,t)=>
vendor: 5,387 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,i=We(ha,n),o=ge(t,i.triggerRef);return s.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ji(i.open),...r,ref:o,onClick:ce(e.onClick,i.onOpenToggle)})});Yf.displayName=ha;var Ci="DialogPortal",[Xf,xa]=pa(Ci,{forceMount:void 0}),ga=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=We(Ci,t);return s.jsx(Xf,{scope:t,forceMount:n,children:p.Children.map(r,a=>s.jsx(Xt,{present:n||o.open,children:s.jsx(sr,{asChild:!0,container:i,children:a})}))})};ga.displayName=Ci;var Kn="DialogOverlay",ba=p.forwardRef((e,t)=>{const n=xa(Kn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=We(Kn,e.__scopeDialog);return o.modal?s.jsx(Xt,{present:r||o.open,children:s.jsx(Zf,{...i,ref:t})}):null});ba.displayName=Kn;var Qf=Vf("DialogOverlay.RemoveScroll"),Zf=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=We(Kn,n);return s.jsx(lr,{as:Qf,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsx(de.div,{"data-state":ji(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Pt="DialogContent",ya=p.forwardRef((e,t)=>{const n=xa(Pt,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=We(Pt,e.__scopeDialog);return s.jsx(Xt,{present:r||o.open,children:o.modal?s.jsx(Jf,{...i,ref:t}):s.jsx(ep,{...i,ref:t})})});ya.displayName=Pt;var Jf=p.forwardRef((e,t)=>{const n=We(Pt,e.__scopeDialog),r=p.useRef(null),i=ge(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return Si(o)},[]),s.jsx(va,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,o=>o.preventDefault())})}),ep=p.forwardRef((e,t)=>{const n=We(Pt,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return s.jsx(va,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;n.triggerRef.current?.contains(a)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),va=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,l=We(Pt,n),u=p.useRef(null),c=ge(t,u);return Ei(),s.jsxs(s.Fragment,{children:[s.jsx(or,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsx(ir,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ji(l.open),...a,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(tp,{titleId:l.titleId}),s.jsx(rp,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Ni="DialogTitle",wa=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=We(Ni,n);return s.jsx(de.h2,{id:i.titleId,...r,ref:t})});wa.displayName=Ni;var ka="DialogDescription",Ea=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=We(ka,n);return s.jsx(de.p,{id:i.descriptionId,...r,ref:t})});Ea.displayName=ka;var Sa="DialogClose",Ca=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=We(Sa,n);return s.jsx(de.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>i.onOpenChange(!1))})});Ca.displayName=Sa;function ji(e){return e?"open":"closed"}var Na="DialogTitleWarning",[pw,ja]=kd(Na,{contentName:Pt,titleName:Ni,docsSlug:"dialog"}),tp=({titleId:e})=>{const t=ja(Na),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},np="DialogDescriptionWarning",rp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ja(np).contentName}}.`;return p.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ip=ma,op=ga,Aa=ba,Fa=ya,Pa=wa,Ra=Ea,sp=Ca;const et=ip,ap=op,Ia=p.forwardRef(({className:e,...t},n)=>s.jsx(Aa,{ref:n,className:Ce("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ia.displayName=Aa.displayName;const qe=p.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(ap,{children:[s.jsx(Ia,{}),s.jsxs(Fa,{ref:r,className:Ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
45nded-lg",e),...n,children:[t,s.jsxs(sp,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(wd,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));qe.displayName=Fa.displayName;const Ge=p.forwardRef(({className:e,...t},n)=>s.jsx(Pa,{ref:n,className:Ce("text-lg font-semibold leading-none tracking-tight",e),...t}));Ge.displayName=Pa.displayName;const Ta=p.forwardRef(({className:e,...t},n)=>s.jsx(Ra,{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));Ta.displayName=Ra.displayName;var lp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cp=lp.reduce((e,t)=>{const n=Ds(`Primitive.${t}`),r=p.forwardRef((i,o)=>{const{asChild:a,...l}=i,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(u,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),up="Label",_a=p.forwardRef((e,t)=>s.jsx(cp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));_a.displayName=up;var Oa=_a;const dp=zs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xe=p.forwardRef(({className:e,...t},n)=>s.jsx(Oa,{ref:n,className:Ce(dp(),e),...t}));xe.displayName=Oa.displayName;function Ao(e,[t,n]){return Math.min(n,Math.max(t,e))}function Fo(e){const t=fp(e),n=p.forwardRef((r,i)=>{const{children:o,...a}=r,l=p.Children.toArray(o),u=l.find(mp);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function fp(e){const t=p.forwardRef((n,r)=>{const{children:i,...o}=n;if(p.isValidElement(i)){const a=xp(i),l=hp(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pp=Symbol("radix.slottable");function mp(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pp}function hp(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function xp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gp(e){const t=e+"CollectionProvider",[n,r]=yn(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=x=>{const{scope:y,children:b}=x,E=Ct.useRef(null),S=Ct.useRef(new Map).current;return s.jsx(i,{scope:y,itemMap:S,collectionRef:E,children:b})};a.displayName=t;const l=e+"CollectionSlot",u=Fo(l),c=Ct.forwardRef((x,y)=>{const{scope:b,children:E}=x,S=o(l,b),F=ge(y,S.collectionRef);return s.jsx(u,{ref:F,children:E})});c.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Fo(d),m=Ct.forwardRef((x,y)=>{const{scope:b,children:E,...S}=x,F=Ct.useRef(null),I=ge(y,F),k=o(d,b);return Ct.useEffect(()=>(k.itemMap.set(F,{ref:F,...S}),()=>{k.itemMap.delete(F)})),s.jsx(h,{[f]:"",ref:I,children:E})});m.displayName=d;function v(x){const y=o(e+"CollectionConsumer",x);return Ct.useCallback(()=>{const E=y.collectionRef.current;if(!E)return[];const S=Array.from(E.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((k,A)=>S.indexOf(k.ref.current)-S.indexOf(A.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:c,ItemSlot:m},v,r]}var bp=p.createContext(void 0);function yp(e){const t=p.useContext(bp);return e||t||"ltr"}const vp=["top","right","bottom","left"],xt=Math.min,_e=Math.max,Yn=Math.round,Tn=Math.floor,Ze=e=>({x:e,y:e}
vendor: 5,147 bytes, line 45
45),wp={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e,t,n){return _e(e,xt(t,n))}function at(e,t){return typeof e=="function"?e(t):e}function lt(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Ai(e){return e==="x"?"y":"x"}function Fi(e){return e==="y"?"height":"width"}function Qe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Pi(e){return Ai(Qe(e))}function kp(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=Pi(e),o=Fi(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Xn(a)),[a,Xn(a)]}function Ep(e){const t=Xn(e);return[ti(e),t,ti(t)]}function ti(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Po=["left","right"],Ro=["right","left"],Sp=["top","bottom"],Cp=["bottom","top"];function Np(e,t,n){switch(e){case"top":case"bottom":return n?t?Ro:Po:t?Po:Ro;case"left":case"right":return t?Sp:Cp;default:return[]}}function jp(e,t,n,r){const i=Qt(e);let o=Np(lt(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ti)))),o}function Xn(e){const t=lt(e);return wp[t]+e.slice(t.length)}function Ap(e){return{top:0,right:0,bottom:0,left:0,...e}}function Da(e){return typeof e!="number"?Ap(e):{top:e,right:e,bottom:e,left:e}}function Qn(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Io(e,t,n){let{reference:r,floating:i}=e;const o=Qe(t),a=Pi(t),l=Fi(a),u=lt(t),c=o==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[l]/2-i[l]/2;let m;switch(u){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Qt(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function Fp(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=at(t,e),v=Da(m),y=l[h?f==="floating"?"reference":"floating":f],b=Qn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),E=f==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),F=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},I=Qn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:S,strategy:u}):E);return{top:(b.top-I.top+v.top)/F.y,bottom:(I.bottom-b.bottom+v.bottom)/F.y,left:(b.left-I.left+v.left)/F.x,right:(I.right-b.right+v.right)/F.x}}const Pp=50,Rp=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:Fp},u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Io(c,r,u),h=r,m=0;const v={};for(let x=0;x<o.length;x++){const y=o[x];if(!y)continue;const{name:b,fn:E}=y,{x:S,y:F,data:I,reset:k}=await E({x:d,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:v,rects:c,platform:l,elements:{reference:e,floating:t}});d=S??d,f=F??f,v[b]={...v[b],...I},k&&m<Pp&&(m++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:d,y:f}=Io(c,h,u)),x=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:v}},Ip=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=at(e,t)||{};if(c==null)return{};const f=Da(d),h={x:n,y:r},m=Pi(i),v=Fi(m),x=await a.getDimensions(c),y=m==="y",b=y?"top":"left",E=y?"bottom":"right",S=y?"clientHeight":"clientWidth",F=o.reference[v]+o.reference[m]-h[m]-o.floating[v],I=h[m]-o.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let A=k?k[S]:0;(!A||!await(a.isElement==null?void 0:a.isElement(k)))&&(A=l.floating[S]||o.floating[v]);const j=F/2-I/2,C=A/2-x[v]/2-1,L=xt(f[b],C),O=xt(f[E],C),R=L,P=A-x[v]-O,D=A/2-x[v]/2+j,_=ei(R,D,P),z=!u.arrow&&Qt(i)!=null&&D!==_&&o.reference[v]/2-(D<R?L:O)-x[v]/2<0,V=z?D<R?D-R:D-P:0;return{[m]:h[m]+V,data:{[m]:_,centerOffset:D-_-V,...z&&{alignmentOffset:V}},reset:z}}}),Tp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...y}=at(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=lt(i),E=Qe(l),S=lt(l)===l,F=await(u.isRTL==null?void 0:u.isRTL(c.floating)),I=h||(S||!x?[Xn(l)]:Ep(l)),k=v!=="none";!h&&k&&I.push(...jp(l,x,v,F));
vendor: 4,293 bytes, line 45
45const A=[l,...I],j=await u.detectOverflow(t,y),C=[];let L=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&C.push(j[b]),f){const D=kp(i,a,F);C.push(j[D[0]],j[D[1]])}if(L=[...L,{placement:i,overflows:C}],!C.every(D=>D<=0)){var O,R;const D=(((O=o.flip)==null?void 0:O.index)||0)+1,_=A[D];if(_&&(!(f==="alignment"?E!==Qe(_):!1)||L.every(W=>Qe(W.placement)===E?W.overflows[0]>0:!0)))return{data:{index:D,overflows:L},reset:{placement:_}};let z=(R=L.filter(V=>V.overflows[0]<=0).sort((V,W)=>V.overflows[1]-W.overflows[1])[0])==null?void 0:R.placement;if(!z)switch(m){case"bestFit":{var P;const V=(P=L.filter(W=>{if(k){const Z=Qe(W.placement);return Z===E||Z==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Z=>Z>0).reduce((Z,g)=>Z+g,0)]).sort((W,Z)=>W[1]-Z[1])[0])==null?void 0:P[0];V&&(z=V);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function To(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _o(e){return vp.some(t=>e[t]>=0)}const _p=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=at(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),l=To(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:_o(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),l=To(a,n.floating);return{data:{escapedOffsets:l,escaped:_o(l)}}}default:return{}}}}},La=new Set(["left","top"]);async function Op(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=lt(n),l=Qt(n),u=Qe(n)==="y",c=La.has(a)?-1:1,d=o&&u?-1:1,f=at(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(m=l==="end"?v*-1:v),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Dp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,u=await Op(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},Lp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:b=>{let{x:E,y:S}=b;return{x:E,y:S}}},...c}=at(e,t),d={x:n,y:r},f=await o.detectOverflow(t,c),h=Qe(lt(i)),m=Ai(h);let v=d[m],x=d[h];if(a){const b=m==="y"?"top":"left",E=m==="y"?"bottom":"right",S=v+f[b],F=v-f[E];v=ei(S,v,F)}if(l){const b=h==="y"?"top":"left",E=h==="y"?"bottom":"right",S=x+f[b],F=x-f[E];x=ei(S,x,F)}const y=u.fn({...t,[m]:v,[h]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:a,[h]:l}}}}}},Mp=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=at(e,t),d={x:n,y:r},f=Qe(i),h=Ai(f);let m=d[h],v=d[f];const x=at(l,t),y=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(u){const S=h==="y"?"height":"width",F=o.reference[h]-o.floating[S]+y.mainAxis,I=o.reference[h]+o.reference[S]-y.mainAxis;m<F?m=F:m>I&&(m=I)}if(c){var b,E;const S=h==="y"?"width":"height",F=La.has(lt(i)),I=o.reference[f]-o.floating[S]+(F&&((b=a.offset)==null?void 0:b[f])||0)+(F?0:y.crossAxis),k=o.reference[f]+o.reference[S]+(F?0:((E=a.offset)==null?void 0:E[f])||0)-(F?y.crossAxis:0);v<I?v=I:v>k&&(v=k)}return{[h]:m,[f]:v}}}},zp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:u=()=>{},...c}=at(e,t),d=await a.detectOverflow(t,c),f=lt(i),h=Qt(i),m=Qe(i)==="y",{width:v,height:x}=o.floating;let y,b;f==="top"||f==="bottom"?(y=f,b=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,y=h==="end"?"top":"bottom");const E=x-d.top-d.bottom,S=v-d.left-d.right,F=xt(x-d[y],E),I=xt(v-d[b],S),k=!t.middlewareData.shift;let A=F,j=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=E),k&&!h){const L=_e(d.left,0),O=_e(d.right,0),R=_e(d.top,0),P=_e(
45d.bottom,0);m?j=v-2*(L!==0||O!==0?L+O:_e(d.left,d.right)):A=x-2*(R!==0||P!==0?R+P:_e(d.top,d.bottom))}await u({...t,availableWidth:j,availableHeight:A});const C=await a.getDimensions(l.floating);return v!==C.width||x!==C.height?{reset:{rects:!0}}:{}}}};function ur(){return typeof window<"u"}function Zt(e){return Ma(e)?(e.nodeName||"").toLowerCase():"#document"}function De(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tt(e){var t;return(t=(Ma(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ma(e){return ur()?e instanceof Node||e instanceof De(e).Node:!1}function Ue(e){return ur()?e instanceof Element||e instanceof De(e).Element:!1}function ct(e){return ur()?e instanceof HTMLElement||e instanceof De(e).HTMLElement:!1}function Oo(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof De(e).ShadowRoot}function vn(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Bp(e){return/^(table|td|th)$/.test(Zt(e))}function dr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $p=/transform|translate|scale|rotate|perspective|filter/,Vp=/paint|layout|strict|content/,jt=e=>!!e&&e!=="none";let Ir;function Ri(e){const t=Ue(e)?He(e):e;return jt(t.transform)||jt(t.translate)||jt(t.scale)||jt(t.rotate)||jt(t.perspective)||!Ii()&&(jt(t.backdropFilter)||jt(t.filter))||$p.test(t.willChange||"")||Vp.test(t.contain||"")}function Up(e){let t=gt(e);for(;ct(t)&&!Gt(t);){if(Ri(t))return t;if(dr(t))return null;t=gt(t)}return null}function Ii(){return Ir==null&&(Ir=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ir}function Gt(e){return/^(html|body|#document)$/.test(Zt(e))}function He(e){return De(e).getComputedStyle(e)}function fr(e){return Ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gt(e){if(Zt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||tt(e);return Oo(t)?t.host:t}function za(e){const t=gt(e);return Gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&vn(t)?t:za(t)}function xn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=za(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=De(i);if(o){const l=ni(a);return t.concat(a,a.visualViewport||[],vn(i)?i:[],l&&n?xn(l):[])}else return t.concat(i,xn(i,[],n))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ba(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ct(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Yn(n)!==o||Yn(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ti(e){return Ue(e)?e:e.contextElement}function Ht(e){const t=Ti(e);if(!ct(t))return Ze(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ba(t);let a=(o?Yn(n.width):n.width)/r,l=(o?Yn(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Hp=Ze(0);function $a(e){const t=De(e);return!Ii()||!t.visualViewport?Hp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==De(e)?!1:t}function Rt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ti(e);let a=Ze(1);t&&(r?Ue(r)&&(a=Ht(r)):a=Ht(e));const l=Wp(o,n,r)?$a(o):Ze(0);let u=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const h=De(o),m=r&&Ue(r)?De(r):r;let v=h,x=ni(v);for(;x&&r&&m!==v;){const y=Ht(x),b=x.getBoundingClientRect(),E=He(x),S=b.left+(x.clientLeft+parseFloat(E.paddingLeft))*y.x,F=b.top+(x.clientTop+parseFloat(E.paddingTop))*y.y;u*=y.x,c*=y.y,d*=y.x,f*=y.y,u+=S,c+=F,v=De(x),x=ni(v)}}return Qn({width:d,height:f,x:u,y:c})}function pr(e,t){const n=fr(e).scrollLeft;return t?t.left+n:Rt(tt(e)).left+n}function Va(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pr(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function qp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=tt(r),l=t?dr(t.floating):!1;if(r===a||l&&o)return n;let u={scrollLeft:0,scrollTop:0},c=Ze(1);const d=Ze(0),f=ct(r);if((f||!f&&!o)&&((Zt(r)!=="body"||vn(a))&&(u=fr(r)),f)){const m=Rt(r);c=Ht(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=a&&!f&&!o?Va(a,u):Ze(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Gp(e){return Array.from(e.getClientRects())}function Kp(e){const t=tt(e),n=fr(e),r=e.ownerDocument.body,i=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pr(e);const l=-n.scrollTop;return He(r).direction==="rtl"&&(a+=_e(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}const Do=25;
vendor: 4,788 bytes, line 45
45function Yp(e,t){const n=De(e),r=tt(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,u=0;if(i){o=i.width,a=i.height;const d=Ii();(!d||d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}const c=pr(r);if(c<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-m);v<=Do&&(o-=v)}else c<=Do&&(o+=c);return{width:o,height:a,x:l,y:u}}function Xp(e,t){const n=Rt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ct(e)?Ht(e):Ze(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,u=i*o.x,c=r*o.y;return{width:a,height:l,x:u,y:c}}function Lo(e,t,n){let r;if(t==="viewport")r=Yp(e,n);else if(t==="document")r=Kp(tt(e));else if(Ue(t))r=Xp(t,n);else{const i=$a(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Qn(r)}function Ua(e,t){const n=gt(e);return n===t||!Ue(n)||Gt(n)?!1:He(n).position==="fixed"||Ua(n,t)}function Qp(e,t){const n=t.get(e);if(n)return n;let r=xn(e,[],!1).filter(l=>Ue(l)&&Zt(l)!=="body"),i=null;const o=He(e).position==="fixed";let a=o?gt(e):e;for(;Ue(a)&&!Gt(a);){const l=He(a),u=Ri(a);!u&&l.position==="fixed"&&(i=null),(o?!u&&!i:!u&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||vn(a)&&!u&&Ua(e,a))?r=r.filter(d=>d!==a):i=l,a=gt(a)}return t.set(e,r),r}function Zp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?dr(t)?[]:Qp(t,this._c):[].concat(n),r],l=Lo(t,a[0],i);let u=l.top,c=l.right,d=l.bottom,f=l.left;for(let h=1;h<a.length;h++){const m=Lo(t,a[h],i);u=_e(m.top,u),c=xt(m.right,c),d=xt(m.bottom,d),f=_e(m.left,f)}return{width:c-f,height:d-u,x:f,y:u}}function Jp(e){const{width:t,height:n}=Ba(e);return{width:t,height:n}}function em(e,t,n){const r=ct(t),i=tt(t),o=n==="fixed",a=Rt(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=Ze(0);function c(){u.x=pr(i)}if(r||!r&&!o)if((Zt(t)!=="body"||vn(i))&&(l=fr(t)),r){const m=Rt(t,!0,o,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=i&&!r&&!o?Va(i,l):Ze(0),f=a.left+l.scrollLeft-u.x-d.x,h=a.top+l.scrollTop-u.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Tr(e){return He(e).position==="static"}function Mo(e,t){if(!ct(e)||He(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tt(e)===n&&(n=n.ownerDocument.body),n}function Ha(e,t){const n=De(e);if(dr(e))return n;if(!ct(e)){let i=gt(e);for(;i&&!Gt(i);){if(Ue(i)&&!Tr(i))return i;i=gt(i)}return n}let r=Mo(e,t);for(;r&&Bp(r)&&Tr(r);)r=Mo(r,t);return r&&Gt(r)&&Tr(r)&&!Ri(r)?n:r||Up(e)||n}const tm=async function(e){const t=this.getOffsetParent||Ha,n=this.getDimensions,r=await n(e.floating);return{reference:em(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nm(e){return He(e).direction==="rtl"}const rm={convertOffsetParentRelativeRectToViewportRelativeRect:qp,getDocumentElement:tt,getClippingRect:Zp,getOffsetParent:Ha,getElementRects:tm,getClientRects:Gp,getDimensions:Jp,getScale:Ht,isElement:Ue,isRTL:nm};function Wa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function im(e,t){let n=null,r;const i=tt(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(l||t(),!h||!m)return;const v=Tn(f),x=Tn(i.clientWidth-(d+h)),y=Tn(i.clientHeight-(f+m)),b=Tn(d),S={rootMargin:-v+"px "+-x+"px "+-y+"px "+-b+"px",threshold:_e(0,xt(1,u))||1};let F=!0;function I(k){const A=k[0].intersectionRatio;if(A!==u){if(!F)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Wa(c,e.getBoundingClientRect())&&a(),F=!1}try{n=new IntersectionObserver(I,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,S)}n.observe(e)}return a(!0),o}function om(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Ti(e),d=i||o?[...c?xn(c):[],...t?xn(t):[]]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const f=c&&l?im(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(b=>{let[E]=b;E&&E.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let v,x=u?Rt(e):null;u&&y();function y(){const b=Rt(e);x&&!Wa(x,b)&&n(),x=b,v=requestAnimationFrame(y)}return n(),()=>{var b;d.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(v)}}
vendor: 13,213 bytes, line 45
45const sm=Dp,am=Lp,lm=Tp,cm=zp,um=_p,zo=Ip,dm=Mp,fm=(e,t,n)=>{const r=new Map,i={platform:rm,...n},o={...i.platform,_c:r};return Rp(e,t,{...i,platform:o})};var pm=typeof document<"u",mm=function(){},Vn=pm?p.useLayoutEffect:mm;function Zn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Zn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Zn(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function qa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bo(e,t){const n=qa(e);return Math.round(t*n)/n}function _r(e){const t=p.useRef(e);return Vn(()=>{t.current=e}),t}function hm(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=p.useState(r);Zn(h,r)||m(r);const[v,x]=p.useState(null),[y,b]=p.useState(null),E=p.useCallback(W=>{W!==k.current&&(k.current=W,x(W))},[]),S=p.useCallback(W=>{W!==A.current&&(A.current=W,b(W))},[]),F=o||v,I=a||y,k=p.useRef(null),A=p.useRef(null),j=p.useRef(d),C=u!=null,L=_r(u),O=_r(i),R=_r(c),P=p.useCallback(()=>{if(!k.current||!A.current)return;const W={placement:t,strategy:n,middleware:h};O.current&&(W.platform=O.current),fm(k.current,A.current,W).then(Z=>{const g={...Z,isPositioned:R.current!==!1};D.current&&!Zn(j.current,g)&&(j.current=g,nr.flushSync(()=>{f(g)}))})},[h,t,n,O,R]);Vn(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(W=>({...W,isPositioned:!1})))},[c]);const D=p.useRef(!1);Vn(()=>(D.current=!0,()=>{D.current=!1}),[]),Vn(()=>{if(F&&(k.current=F),I&&(A.current=I),F&&I){if(L.current)return L.current(F,I,P);P()}},[F,I,P,L,C]);const _=p.useMemo(()=>({reference:k,floating:A,setReference:E,setFloating:S}),[E,S]),z=p.useMemo(()=>({reference:F,floating:I}),[F,I]),V=p.useMemo(()=>{const W={position:n,left:0,top:0};if(!z.floating)return W;const Z=Bo(z.floating,d.x),g=Bo(z.floating,d.y);return l?{...W,transform:"translate("+Z+"px, "+g+"px)",...qa(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:g}},[n,l,z.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:P,refs:_,elements:z,floatingStyles:V}),[d,P,_,z,V])}const xm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?zo({element:r.current,padding:i}).fn(n):{}:r?zo({element:r,padding:i}).fn(n):{}}}},gm=(e,t)=>{const n=sm(e);return{name:n.name,fn:n.fn,options:[e,t]}},bm=(e,t)=>{const n=am(e);return{name:n.name,fn:n.fn,options:[e,t]}},ym=(e,t)=>({fn:dm(e).fn,options:[e,t]}),vm=(e,t)=>{const n=lm(e);return{name:n.name,fn:n.fn,options:[e,t]}},wm=(e,t)=>{const n=cm(e);return{name:n.name,fn:n.fn,options:[e,t]}},km=(e,t)=>{const n=um(e);return{name:n.name,fn:n.fn,options:[e,t]}},Em=(e,t)=>{const n=xm(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Sm="Arrow",Ga=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return s.jsx(de.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ga.displayName=Sm;var Cm=Ga;function Nm(e){const[t,n]=p.useState(void 0);return Ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,l;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;a=c.inlineSize,l=c.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _i="Popper",[Ka,mr]=yn(_i),[jm,Ya]=Ka(_i),Xa=e=>{const{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return s.jsx(jm,{scope:t,anchor:r,onAnchorChange:i,children:n})};Xa.displayName=_i;var Qa="PopperAnchor",Za=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Ya(Qa,n),a=p.useRef(null),l=ge(t,a),u=p.useRef(null);return p.useEffect(()=>{const c=u.current;u.current=r?.current||a.current,c!==u.current&&o.onAnchorChange(u.current)}),r?null:s.jsx(de.div,{...i,ref:l})});Za.displayName=Qa;var Oi="PopperContent",[Am,Fm]=Ka(Oi),Ja=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...x}=e,y=Ya(Oi,n),[b,E]=p.useState(null),S=ge(t,q=>E(q)),[F,I]=p.useState(null),k=Nm(F),A=k?.width??0,j=k?.height??0,C=r+(o!=="center"?"-"+o:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(c)?c:[c],R=O.length>0,P={padding:L,boundary:O.filter(Rm),altBoundary:R},{refs:D,floatingStyles:_,placement:z,isPositioned:V,middlewareData:W}=hm({strategy:"fixed",placement:C,whileElementsMounted:(...q)=>om(...q,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[gm({mainAxis:i+j,alignmentAxis:a}),u&&bm({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ym():void 0,...P}),u&&vm({...P}),wm({...P,apply:({elements:q,rects:re,availableWidth:Y,availableHeight:te})=>{const{width:ne,height:N}=re.reference,$=q.floating.style;$.setProperty("--radix-popper-available-width",`${Y}px`),$.setProperty("--radix-popper-available-height",`${te}px`),$.setProperty("--radix-popper-anchor-width",`${ne}px`),$.setProperty("--radix-popper-anchor-height",`${N}px`)}}),F&&Em({element:F,padding:l}),Im({arrowWidth:A,arrowHeight:j}),h&&km({strategy:"referenceHidden",...P})]}),[Z,g]=nl(z),he=Ft(v);Ne(()=>{V&&he?.()},[V,he]);const ye=W.arrow?.x,w=W.arrow?.y,se=W.arrow?.centerOffset!==0,[ae,X]=p.useState();return Ne(()=>{b&&X(window.getComputedStyle(b).zIndex)},[b]),s.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:V?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(Am,{scope:n,placedSide:Z,onArrowChange:I,arrowX:ye,arrowY:w,shouldHideArrow:se,children:s.jsx(de.div,{"data-side":Z,"data-align":g,...x,ref:S,style:{...x.style,animation:V?void 0:"none"}})})})});Ja.displayName=Oi;var el="PopperArrow",Pm={top:"bottom",right:"left",bottom:"top",left:"right"},tl=p.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=Fm(el,r),a=Pm[o.placedSide];return s.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:s.jsx(Cm,{...i,ref:n,style:{...i.style,display:"block"}})})});tl.displayName=el;function Rm(e){return e!==null}var Im=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,l=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=nl(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(i.arrow?.x??0)+l/2,m=(i.arrow?.y??0)+u/2;let v="",x="";return c==="bottom"?(v=a?f:`${h}px`,x=`${-u}px`):c==="top"?(v=a?f:`${h}px`,x=`${r.floating.height+u}px`):c==="right"?(v=`${-u}px`,x=a?f:`${m}px`):c==="left"&&(v=`${r.floating.width+u}px`,x=a?f:`${m}px`),{data:{x:v,y:x}}}});function nl(e){const[t,n="center"]=e.split("-");return[t,n]}var rl=Xa,Di=Za,il=Ja,ol=tl;function Tm(e){const t=_m(e),n=p.forwardRef((r,i)=>{const{children:o,...a}=r,l=p.Children.toArray(o),u=l.find(Dm);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function _m(e){const t=p.forwardRef((n,r)=>{const{children:i,...o}=n;if(p.isValidElement(i)){const a=Mm(i),l=Lm(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Om=Symbol("radix.slottable");function Dm(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Om}function Lm(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Mm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function zm(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Bm="VisuallyHidden",$m=p.forwardRef((e,t)=>s.jsx(de.span,{...e,ref:t,style:{...sl,...e.style}}));$m.displayName=Bm;var Vm=[" ","Enter","ArrowUp","ArrowDown"],Um=[" ","Enter"],It="Select",[hr,xr,Hm]=gp(It),[Jt]=yn(It,[Hm,mr]),gr=mr(),[Wm,yt]=Jt(It),[qm,Gm]=Jt(It),al=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,x=gr(t),[y,b]=p.useState(null),[E,S]=p.useState(null),[F,I]=p.useState(!1),k=yp(c),[A,j]=Gn({prop:r,defaultProp:i??!1,onChange:o,caller:It}),[C,L]=Gn({prop:a,defaultProp:l,onChange:u,caller:It}),O=p.useRef(null),R=y?v||!!y.closest("form"):!0,[P,D]=p.useState(new Set),_=Array.from(P).map(z=>z.props.value).join(";");return s.jsx(rl,{...x,children:s.jsxs(Wm,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:E,onValueNodeChange:S,valueNodeHasChildren:F,onValueNodeHasChildrenChange:I,contentId:At(),value:C,onValueChange:L,open:A,onOpenChange:j,dir:k,triggerPointerDownPosRef:O,disabled:h,children:[s.jsx(hr.Provider,{scope:t,children:s.jsx(qm,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(z=>{D(V=>new Set(V).add(z))},[]),onNativeOptionRemove:p.useCallback(z=>{D(V=>{const W=new Set(V);return W.delete(z),W})},[]),children:n})}),R?s.jsxs(Rl,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:C,onChange:z=>L(z.target.value),disabled:h,form:v,children:[C===void 0?s.jsx("option",{value:""}):null,Array.from(P)]},_):null]})})};al.displayName=It;var ll="SelectTrigger",cl=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=gr(n),a=yt(ll,n),l=a.disabled||r,u=ge(t,a.onTriggerChange),c=xr(n),d=p.useRef("touch"),[f,h,m]=Tl(x=>{const y=c().filter(S=>!S.disabled),b=y.find(S=>S.value===a.value),E=_l(y,x,b);E!==void 0&&a.onValueChange(E.value)}),v=x=>{l||(a.onOpenChange(!0),m()),x&&(a.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return s.jsx(Di,{asChild:!0,...o,children:s.jsx(de.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Il(a.value)?"":void 0,...i,ref:u,onClick:ce(i.onClick,x=>{x.currentTarget.focus(),d.current!=="mouse"&&v(x)}),onPointerDown:ce(i.onPointerDown,x=>{d.current=x.pointerType;const y=x.target;y.hasPointerCapture(x.pointerId)&&y.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(v(x),x.preventDefault())}),onKeyDown:ce(i.onKeyDown,x=>{const y=f.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&h(x.key),!(y&&x.key===" ")&&Vm.includes(x.key)&&(v(),x.preventDefault())})})})});cl.displayName=ll;var ul="SelectValue",dl=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...l}=e,u=yt(ul,n),{onValueNodeHasChildrenChange:c}=u,d=o!==void 0,f=ge(t,u.onValueNodeChange);return Ne(()=>{c(d)},[c,d]),s.jsx(de.span,{...l,ref:f,style:{pointerEvents:"none"},children:Il(u.value)?s.jsx(s.Fragment,{children:a}):o})});dl.displayName=ul;var Km="SelectIcon",fl=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return s.jsx(de.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});fl.displayName=Km;var Ym="SelectPortal",pl=e=>s.jsx(sr,{asChild:!0,...e});pl.displayName=Ym;var Tt="SelectContent",ml=p.forwardRef((e,t)=>
vendor: 12,742 bytes, line 45
45{const n=yt(Tt,e.__scopeSelect),[r,i]=p.useState();if(Ne(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?nr.createPortal(s.jsx(hl,{scope:e.__scopeSelect,children:s.jsx(hr.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),o):null}return s.jsx(xl,{...e,ref:t})});ml.displayName=Tt;var $e=10,[hl,vt]=Jt(Tt),Xm="SelectContentImpl",Qm=Tm("SelectContent.RemoveScroll"),xl=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:x,avoidCollisions:y,...b}=e,E=yt(Tt,n),[S,F]=p.useState(null),[I,k]=p.useState(null),A=ge(t,q=>F(q)),[j,C]=p.useState(null),[L,O]=p.useState(null),R=xr(n),[P,D]=p.useState(!1),_=p.useRef(!1);p.useEffect(()=>{if(S)return Si(S)},[S]),Ei();const z=p.useCallback(q=>{const[re,...Y]=R().map(N=>N.ref.current),[te]=Y.slice(-1),ne=document.activeElement;for(const N of q)if(N===ne||(N?.scrollIntoView({block:"nearest"}),N===re&&I&&(I.scrollTop=0),N===te&&I&&(I.scrollTop=I.scrollHeight),N?.focus(),document.activeElement!==ne))return},[R,I]),V=p.useCallback(()=>z([j,S]),[z,j,S]);p.useEffect(()=>{P&&V()},[P,V]);const{onOpenChange:W,triggerPointerDownPosRef:Z}=E;p.useEffect(()=>{if(S){let q={x:0,y:0};const re=te=>{q={x:Math.abs(Math.round(te.pageX)-(Z.current?.x??0)),y:Math.abs(Math.round(te.pageY)-(Z.current?.y??0))}},Y=te=>{q.x<=10&&q.y<=10?te.preventDefault():S.contains(te.target)||W(!1),document.removeEventListener("pointermove",re),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",Y,{capture:!0})}}},[S,W,Z]),p.useEffect(()=>{const q=()=>W(!1);return window.addEventListener("blur",q),window.addEventListener("resize",q),()=>{window.removeEventListener("blur",q),window.removeEventListener("resize",q)}},[W]);const[g,he]=Tl(q=>{const re=R().filter(ne=>!ne.disabled),Y=re.find(ne=>ne.ref.current===document.activeElement),te=_l(re,q,Y);te&&setTimeout(()=>te.ref.current.focus())}),ye=p.useCallback((q,re,Y)=>{const te=!_.current&&!Y;(E.value!==void 0&&E.value===re||te)&&(C(q),te&&(_.current=!0))},[E.value]),w=p.useCallback(()=>S?.focus(),[S]),se=p.useCallback((q,re,Y)=>{const te=!_.current&&!Y;(E.value!==void 0&&E.value===re||te)&&O(q)},[E.value]),ae=r==="popper"?ri:gl,X=ae===ri?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:x,avoidCollisions:y}:{};return s.jsx(hl,{scope:n,content:S,viewport:I,onViewportChange:k,itemRefCallback:ye,selectedItem:j,onItemLeave:w,itemTextRefCallback:se,focusSelectedItem:V,selectedItemText:L,position:r,isPositioned:P,searchRef:g,children:s.jsx(lr,{as:Qm,allowPinchZoom:!0,children:s.jsx(or,{asChild:!0,trapped:E.open,onMountAutoFocus:q=>{q.preventDefault()},onUnmountAutoFocus:ce(i,q=>{E.trigger?.focus({preventScroll:!0}),q.preventDefault()}),children:s.jsx(ir,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:q=>q.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:s.jsx(ae,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:q=>q.preventDefault(),...b,...X,onPlaced:()=>D(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:ce(b.onKeyDown,q=>{const re=q.ctrlKey||q.altKey||q.metaKey;if(q.key==="Tab"&&q.preventDefault(),!re&&q.key.length===1&&he(q.key),["ArrowUp","ArrowDown","Home","End"].includes(q.key)){let te=R().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(q.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(q.key)){const ne=q.target,N=te.indexOf(ne);te=te.slice(N+1)}setTimeout(()=>z(te)),q.preventDefault()}})})})})})})});xl.displayName=Xm;var Zm="SelectItemAlignedPosition",gl=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=yt(Tt,n),a=vt(Tt,n),[l,u]=p.useState(null),[c,d]=p.useState(null),f=ge(t,A=>d(A)),h=xr(n),m=p.useRef(!1),v=p.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:b,focusSelectedItem:E}=a,S=p.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&c&&x&&y&&b){const A=o.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),C=o.valueNode.getBoundingClientRect(),L=b.getBoundingClientRect();if(o.dir!=="rtl"){const ne=L.left-j.left,N=C.left-ne,$=A.left-N,G=A.width+$,be=Math.max(G,j.width),Ae=window.innerWidth-$e,ke=Ao(N,[$e,Math.max($e,Ae-be)]);l.style.minWidth=G+"px",l.style.left=ke+"px"}else{const ne=j.right-L.right,N=window.innerWidth-C.right-ne,$=window.innerWidth-A.right-N,G=A.width+$,be=Math.max(G,j.width),Ae=window.innerWidth-$e,ke=Ao(N,[$e,Math.max($e,Ae-be)]);l.style.minWidth=G+"px",l.style.right=ke+"px"}const O=h(),R=window.innerHeight-$e*2,P=x.scrollHeight,D=window.getComputedStyle(c),_=parseInt(D.borderTopWidth,10),z=parseInt(D.paddingTop,10),V=parseInt(D.borderBottomWidth,10),W=parseInt(D.paddingBottom,10),Z=_+z+P+W+V,g=Math.min(y.offsetHeight*5,Z),he=window.getComputedStyle(x),ye=parseInt(he.paddingTop,10),w=parseInt(he.paddingBottom,10),se=A.top+A.height/2-$e,ae=R-se,X=y.offsetHeight/2,q=y.offsetTop+X,re=_+z+q,Y=Z-re;if(re<=se){const ne=O.length>0&&y===O[O.length-1].ref.current;l.style.bottom="0px";const N=c.clientHeight-x.offsetTop-x.offsetHeight,$=Math.max(ae,X+(ne?w:0)+N+V),G=re+$;l.style.height=G+"px"}else{const ne=O.length>0&&y===O[0].ref.current;l.style.top="0px";const $=Math.max(se,_+x.offsetTop+(ne?ye:0)+X)+Y;l.style.height=$+"px",x.scrollTop=re-se+x.offsetTop}l.style.margin=`${$e}px 0`,l.style.minHeight=g+"px",l.style.maxHeight=R+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[h,o.trigger,o.valueNode,l,c,x,y,b,o.dir,r]);Ne(()=>S(),[S]);const[F,I]=p.useState();Ne(()=>{c&&I(window.getComputedStyle(c).zIndex)},[c]);const k=p.useCallback(A=>{A&&v.current===!0&&(S(),E?.(),v.current=!1)},[S,E]);return s.jsx(eh,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:s.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:s.jsx(de.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});gl.displayName=Zm;var Jm="SelectPopperPosition",ri=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=$e,...o}=e,a=gr(n);return s.jsx(il,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ri.displayName=Jm;var[eh,Li]=Jt(Tt,{}),ii="SelectViewport",bl=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=vt(ii,n),a=Li(ii,n),l=ge(t,o.onViewportChange),u=p.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(hr.Slot,{scope:n,children:s.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:ce(i.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=a;if(h?.current&&f){const m=Math.abs(u.current-d.scrollTop);if(m>0){const v=window.innerHeight-$e*2,x=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),b=Math.max(x,y);if(b<v){const E=b+m,S=Math.min(v,E),F=E-S;f.style.height=S+"px",f.style.bottom==="0px"&&(d.scrollTop=F>0?F:0,f.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})});bl.displayName=ii;var yl="SelectGroup",[th,nh]=Jt(yl),rh=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=At();return s.jsx(th,{scope:n,id:i,children:s.jsx(de.div,{role:"group","aria-labelledby":i,...r,ref:t})})});rh.displayName=yl;var vl="SelectLabel",wl=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=nh(vl,n);return s.jsx(de.div,{id:i.id,...r,ref:t})});wl.displayName=vl;var Jn="SelectItem",[ih,kl]=Jt(Jn),El=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,l=yt(Jn,n),u=vt(Jn,n),c=l.value===r,[d,f]=p.useState(o??""),[h,m]=p.useState(!1),v=ge(t,E=>u.itemRefCallback?.(E,r,i)),x=At(),y=p.useRef("touch"),b=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(ih,{scope:n,value:r,disabled:i,textId:x,isSelected:c,onItemTextChange:p.useCallback(E=>{f(S=>S||(E?.textContent??"").trim())},[]),children:s.jsx(hr.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:s.jsx(de.div,{role:"option","aria-labelledby":x,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:v,onFocus:ce(a.onFocus,()=>m(!0)),onBlur:ce(a.onBlur,()=>m(!1)),onClick:ce(a.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:ce(a.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:ce(a.onPointerDown,E=>{y.current=E.pointerType}),onPointerMove:ce(a.onPointerMove,E=>{y.current=E.pointerType,i?u.onItemLeave?.():y.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(a.onPointerLeave,E=>{E.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:ce(a.onKeyDown,E=>{u.searchRef?.current!==""&&E.key===" "||(Um.includes(E.key)&&b(),E.key===" "&&E.preventDefault())})})})})});El.displayName=Jn;var fn="SelectItemText",Sl=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=yt(fn,n),l=vt(fn,n),u=kl(fn,n),c=Gm(fn,n),[d,f]=p.useState(null),h=ge(t,b=>f(b),u.onItemTextChange,b=>l.itemTextRefCallback?.(b,u.value,u.disabled)),m=d?.textContent,v=p.useMemo(()=>s.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=c;return Ne(()=>(x(v),()=>y(v)),[x,y,v]),s.jsxs(s.Fragment,{children:[s.jsx(de.span,{id:u.textId,...o,ref:h}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?nr.createPortal(o.children,a.valueNode):null]})});Sl.displayName=fn;var Cl="SelectItemIndicator",Nl=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kl(Cl,n).isSelected?s.jsx(de.span,{"aria-hidden":!0,...r,ref:t}):null});Nl.displayName=Cl;var oi="SelectScrollUpButton",jl=p.forwardRef((e,t)=>{const n=vt(oi,e.__scopeSelect),r=Li(oi,e.__scopeSelect),[i,o]=p.useState(!1),a=ge(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=u.scrollTop>0;o(c)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(Fl,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});jl.displayName=oi;var si="SelectScrollDownButton",Al=p.forwardRef((e,t)=>{const n=vt(si,e.__scopeSelect),r=Li(si,e.__scopeSelect),[i,o]=p.useState(!1),a=ge(t,r.onScrollButtonChange);return Ne(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=u.scrollHeight-u.clientHeight,d=Math.ceil(u.scrollTop)<c;o(d)};const u=n.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(Fl,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=n;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});Al.displayName=si;var Fl=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=vt("SelectScrollButton",n),a=p.useRef(null),l=xr(n),u=p.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return p.useEffect(()=>()=>u(),[u]),Ne(()=>{l().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),s.jsx(de.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:ce(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:ce(i.onPointerMove,()=>{o.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:ce(i.onPointerLeave,()=>{u()})})}),oh="SelectSeparator",Pl=p.forwardRef((e,t)=>
45{const{__scopeSelect:n,...r}=e;return s.jsx(de.div,{"aria-hidden":!0,...r,ref:t})});Pl.displayName=oh;var ai="SelectArrow",sh=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=gr(n),o=yt(ai,n),a=vt(ai,n);return o.open&&a.position==="popper"?s.jsx(ol,{...i,...r,ref:t}):null});sh.displayName=ai;var ah="SelectBubbleInput",Rl=p.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=p.useRef(null),o=ge(r,i),a=zm(t);return p.useEffect(()=>{const l=i.current;if(!l)return;const u=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[a,t]),s.jsx(de.select,{...n,style:{...sl,...n.style},ref:o,defaultValue:t})});Rl.displayName=ah;function Il(e){return e===""||e===void 0}function Tl(e){const t=Ft(e),n=p.useRef(""),r=p.useRef(0),i=p.useCallback(a=>{const l=n.current+a;t(l),(function u(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(l)},[t]),o=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function _l(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=lh(e,Math.max(o,0));i.length===1&&(a=a.filter(c=>c!==n));const u=a.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}function lh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ch=al,Ol=cl,uh=dl,dh=fl,fh=pl,Dl=ml,ph=bl,Ll=wl,Ml=El,mh=Sl,hh=Nl,zl=jl,Bl=Al,$l=Pl;const br=ch,yr=uh,wn=p.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Ol,{ref:r,className:Ce("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(dh,{asChild:!0,children:s.jsx(rr,{className:"h-4 w-4 opacity-50"})})]}));wn.displayName=Ol.displayName;const Vl=p.forwardRef(({className:e,...t},n)=>s.jsx(zl,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(ud,{className:"h-4 w-4"})}));Vl.displayName=zl.displayName;const Ul=p.forwardRef(({className:e,...t},n)=>s.jsx(Bl,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(rr,{className:"h-4 w-4"})}));Ul.displayName=Bl.displayName;const kn=p.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>s.jsx(fh,{children:s.jsxs(Dl,{ref:i,className:Ce("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-(--radix-select-content-transform-origin)",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(Vl,{}),s.jsx(ph,{className:Ce("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(Ul,{})]})}));kn.displayName=Dl.displayName;const xh=p.forwardRef(({className:e,...t},n)=>s.jsx(Ll,{ref:n,className:Ce("px-2 py-1.5 text-sm font-semibold",e),...t}));xh.displayName=Ll.displayName;const Ee=p.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Ml,{ref:r,className:Ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(hh,{children:s.jsx(sd,{className:"h-4 w-4"})})}),s.jsx(mh,{children:t})]}));
45Ee.displayName=Ml.displayName;const gh=p.forwardRef(({className:e,...t},n)=>s.jsx($l,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...t}));gh.displayName=$l.displayName;async function Ve(e,t,n){return fetch("/api/call-n8n-agent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:e,endpoint:e,payload:t}),signal:n?.signal})}const bh="Impossible de contacter l'agent. Reessayez dans quelques instants.";async function yh(e,t=bh){const n=await e.json().catch(()=>null);if(!e.ok){const r=n?.error?.message||(typeof n?.error=="string"?n.error:null)||t;throw new Error(r)}return n}const Or=[{t:0,m:"Analyse du contexte..."},{t:5,m:"Generation du texte..."},{t:15,m:"Generation de l'image..."},{t:30,m:"Le serveur se reveille, encore quelques secondes..."}];function vh({open:e,onOpenChange:t,onEditContext:n}){const[r,i]=p.useState(""),[o,a]=p.useState(""),[l,u]=p.useState("professionnel"),[c,d]=p.useState(""),[f,h]=p.useState(""),[m,v]=p.useState(Or[0].m),[x,y]=p.useState(null);p.useEffect(()=>{e&&h(localStorage.getItem("studio_business_context")||"")},[e]);const b=st({mutationFn:async()=>{const k=new AbortController,A=setTimeout(()=>k.abort(),9e4);try{const j=await Ve("post-linkedin",{business_context:f,sujet:r,angle:o,ton:l,cta:c},{signal:k.signal});if(!j.ok)throw new Error(`Erreur ${j.status}`);return await j.json()}finally{clearTimeout(A)}},onSuccess:k=>y(k)});p.useEffect(()=>{if(!b.isPending)return;const k=Date.now();v(Or[0].m);const A=setInterval(()=>{const j=(Date.now()-k)/1e3,C=[...Or].reverse().find(L=>j>=L.t);C&&v(C.m)},1e3);return()=>clearInterval(A)},[b.isPending]);const E=()=>{y(null),b.reset()},S=k=>{k||E(),t(k)},F=async()=>{x&&(await navigator.clipboard.writeText(x.post_text),ze("Texte copie"))},I=async()=>{if(x?.image_url)try{const A=await(await fetch(x.image_url)).blob(),j=URL.createObjectURL(A),C=document.createElement("a");C.href=j,C.download="linkedin-post.jpg",C.click(),URL.revokeObjectURL(j)}catch{ze("Telechargement impossible")}};return s.jsx(et,{open:e,onOpenChange:S,children:s.jsxs(qe,{className:"max-w-[640px] p-6 border border-border rounded-lg shadow-none gap-0 sm:rounded-lg max-sm:h-screen max-sm:max-w-full max-sm:rounded-none max-sm:border-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"ENGAGEMENT"}),s.jsx(Ge,{className:"mt-1 text-[24px] md:text-[28px] font-semibold leading-[1.3] text-[#1A1A1A]",children:"Générer un post LinkedIn"})]}),!x&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mt-6",children:f?s.jsxs("div",{className:"bg-[#f7f6f3] p-3 rounded-md flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-xs text-[#787774]",children:"Votre contexte"}),s.jsx("p",{className:"text-sm mt-1 text-[#37352f]",children:f.length>180?f.slice(0,180)+"...":f})]}),s.jsx("button",{type:"button",onClick:()=>{t(!1),setTimeout(n,100)},className:"text-sm text-[#37352f] underline shrink-0",children:"Modifier"})]}):s.jsxs("div",{className:"bg-[#EBF5FF] p-3 rounded-md",style:{borderLeft:"3px solid #1E90FF"},children:[s.jsx("p",{className:"text-sm text-[#1A1A1A]",children:"Aucun contexte business défini. Le post sera générique. Définissez-le maintenant pour de meilleurs résultats."}),s.jsx("button",{type:"button",onClick:()=>{t(!1),setTimeout(n,100)},className:"mt-2 text-sm text-[#1E90FF] underline",children:"Définir le contexte"})]})}),s.jsxs("form",{className:"mt-6 flex flex-col gap-4",onSubmit:k=>{k.preventDefault(),b.mutate()},children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"sujet",className:"font-semibold text-[#1A1A1A]",children:"Sujet du post"}),s.jsx(Se,{id:"sujet",value:r,onChange:k=>i(k.target.value.slice(0,500)),maxLength:500,placeholder:"Comment nous avons réduit le temps de traitement des devis de 3 jours à 2 heures",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"angle",className:"font-semibold text-[#1A1A1A]",children:"Angle ou accroche"}),s.jsx(Se,{id:"angle",value:o,onChange:k=>a(k.target.value.slice(0,500)),maxLength:500,placeholder:"Retour d'expérience client avec chiffres concrets",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"ton",className:"font-semibold text-[#1A1A1A]",children:"Ton"}),s.jsxs(br,{value:l,onValueChange:u,children:[s.jsx(wn,{id:"ton",className:"focus:ring-[#1E90FF] focus:border-[#1E90FF]",children:s.jsx(yr,{})}),s.jsxs(kn,{children:[s.jsx(Ee,{value:"professionnel",children:"Professionnel"}),s.jsx(Ee,{value:"cordial",children:"Cordial"}),s.jsx(Ee,{value:"expert",children:"Expert"}),s.jsx(Ee,{value:"inspirant",children:"Inspirant"}),s.jsx(Ee,{value:"storytelling",children:"Storytelling"})]})]})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"cta",className:"font-semibold text-[#1A1A1A]",children:"Call to action"}),s.jsx(Se,{id:"cta",value:c,onChange:k=>d(k.target.value.slice(0,300)),maxLength:300,placeholder:"Écrivez-nous pour en savoir plus",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),b.isError&&s.jsxs("div",{className:"bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:[s.jsx("p",{className:"text-sm text-[#37352f]",children:"Une erreur est survenue. Reessayez ou contactez-nous."}),s.jsx("p",{className:"text-xs font-mono text-[#787774] mt-1",children:b.error?.message})]}),s.jsx(ue,{type:"submit",disabled:!r.trim()||b.isPending,className:"w-full bg-[#1E90FF] hover:bg-[#1879d4] text-white rounded-lg",children:b.isPending?s.jsxs(s.Fragment,{children:[s.jsx(ht,{className:"w-4 h-4 mr-2 animate-spin"}),m]}):"Générer"})]})]}),x&&s.jsxs("div",{className:"mt-6",children:[x.image_url&&s.jsx("img",{src:x.image_url,alt:"Illustration",className:"w-full aspect-square object-cover rounded-md border border-border"}),s.jsxs("div",{className:"mt-4",children:[s.jsx("p",{className:"text-xs text-[#787774] mb-2",children:"Texte du post"}),s.jsx("div",{className:"border border-border rounded-md p-4 whitespace-pre-wrap text-base text-[#37352f]",children:x.post_text})]}),s.jsxs("p",{className:"mt-3 text-[13px] text-[#787774]",children:[x.char_count," caracteres"]}),s.jsxs("div",{className:"mt-6 flex flex-wrap gap-2",children:[s.jsx(ue,{onClick:F,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Copier le texte"}),s.jsx(ue,{onClick:I,variant:"outline",children:"Telecharger l'image"}),s.jsx(ue,{onClick:E,variant:"outline",children:"Generer un autre"})]})]})]})})}const wh=[/^localhost$/i,/^127\./,/^10\./,/^192\.168\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^169\.254\./,/^0\./,/^::1$/,/^fc[0-9a-f]{2}:/i,/^fe80:/i];function Mi(e){if(typeof e!="string"||!e)return!1;try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function kh(e){return Mi(e)?e:"#"}function Un(e){if(!Mi(e))return"#";try{const t=new URL(e);return/(^|\.)linkedin\.com$/i.test(t.hostname)?t.toString():"#"}catch{return"#"}}function Hl(e){if(!Mi(e))return!1;try{const n=new URL(e).hostname.toLowerCase();return!n.includes(".")&&n!=="localhost"?!1:!wh.some(r=>r.test(n))}catch{return!1}}const Eh=["teamia.ai","www.teamia.ai","teamia.lovable.app"];function Wl({quota:e}){const t=kh(e.ctaHref);let n="https://www.teamia.ai/contact";
45if(t!=="#")try{const r=new URL(t);Eh.includes(r.hostname.toLowerCase())&&(n=t)}catch{}return s.jsxs("div",{className:"p-6 rounded-lg border",style:{background:"#F0F7FF",borderColor:"#D6E4F5"},children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(id,{className:"w-5 h-5 mt-0.5 shrink-0",style:{color:"#1E90FF"}}),s.jsx("p",{className:"text-[11px] uppercase font-semibold",style:{color:"#1F2937",letterSpacing:"0.5px"},children:e.title})]}),s.jsx("p",{className:"mt-3 text-[15px]",style:{color:"#1F2937"},children:e.message}),s.jsx("p",{className:"mt-2 text-[13px]",style:{color:"#6B6B6B"},children:e.detail}),s.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center gap-1.5 text-[13px] font-medium text-white rounded-md transition-colors duration-150",style:{background:"#1E90FF",padding:"10px 18px"},children:[e.ctaLabel,s.jsx(ki,{className:"w-3.5 h-3.5"})]})]})}const Sh=["Connexion a la source LinkedIn...","Extraction des 5 profils LinkedIn...","Scoring IA des profils..."];function Ch({open:e,onOpenChange:t}){const[n,r]=p.useState(""),[i,o]=p.useState(null),[a,l]=p.useState(0),[u,c]=p.useState(new Set),d=st({mutationFn:async()=>{const x=new AbortController,y=setTimeout(()=>x.abort(),12e4);try{const b=n.trim().toLowerCase().startsWith("http"),E={searchUrl:b?n.trim():void 0,keywords:b?void 0:n.trim(),maxResults:5},S=await Ve("linkedin-leads",E,{signal:x.signal});if(!S.ok)throw new Error(`Erreur ${S.status}`);return await S.json()}finally{clearTimeout(y)}},onSuccess:x=>o(x)});p.useEffect(()=>{if(!d.isPending)return;l(0);const x=setTimeout(()=>l(1),25e3),y=setTimeout(()=>l(2),5e4);return()=>{clearTimeout(x),clearTimeout(y)}},[d.isPending]);const f=()=>{o(null),c(new Set),d.reset()},h=x=>{x||(f(),r("")),t(x)},m=x=>{c(y=>{const b=new Set(y);return b.has(x)?b.delete(x):b.add(x),b})},v=x=>x==="hot"?"bg-[#37352f] text-white":x==="warm"?"bg-[#f7f6f3] text-[#37352f] border border-[#e9e9e7]":"bg-transparent text-[#787774] border border-[#e9e9e7]";return s.jsx(et,{open:e,onOpenChange:h,children:s.jsxs(qe,{className:"w-[95vw] max-w-[1200px] sm:w-[95vw] p-6 border border-[#e9e9e7] rounded-md shadow-none gap-0 sm:rounded-md max-sm:h-screen max-sm:max-w-full max-sm:rounded-none max-sm:border-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"ACQUISITION"}),s.jsx(Ge,{className:"mt-1 text-[24px] md:text-[28px] font-semibold leading-[1.3] text-[#1E90FF]",children:"Trouver 5 leads LinkedIn"})]}),!d.isPending&&!i&&!d.isError&&s.jsxs("form",{className:"mt-6 flex flex-col gap-4",onSubmit:x=>{x.preventDefault(),d.mutate()},children:[s.jsx("p",{className:"text-sm text-[#6B7280]",children:"Décrivez votre client idéal en mots-clés, ou collez une URL de recherche LinkedIn."}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"query",className:"font-semibold text-[#1A1A1A]",children:"Mots-clés ou URL LinkedIn"}),s.jsx(Se,{id:"query",value:n,onChange:x=>r(x.target.value.slice(0,500)),maxLength:500,placeholder:"Directeur commercial PME France OU https://www.linkedin.com/search/results/people/?keywords=...",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"}),s.jsx("p",{className:"text-xs text-[#6B7280]",children:"Limite : 5 leads par requête. Les profils sont anonymisés à des fins de démonstration."})]}),s.jsx("div",{className:"bg-[#EBF5FF] p-3 rounded-md",style:{borderLeft:"3px solid #1E90FF"},children:s.jsx("p",{className:"text-sm text-[#1A1A1A]",children:"🔵 Démo — Les profils retournés sont anonymisés à des fins de démonstration."})}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{type:"submit",disabled:!n.trim(),className:"bg-[#1E90FF] hover:bg-[#1879d4] text-white rounded-lg",children:"Lancer la recherche"}),s.jsx("button",{type:"button",onClick:()=>h(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Annuler"})]})]}),d.isPending&&s.jsxs("div",{className:"mt-8 flex flex-col items-center gap-5",children:[s.jsx("div",{className:"w-8 h-8 border border-[#37352f] border-t-transparent roun
45ded-full animate-spin"}),s.jsx("h3",{className:"text-base font-semibold",children:"Recherche en cours..."}),s.jsx("p",{className:"text-sm text-[#787774] text-center max-w-sm",children:"Scraping LinkedIn et scoring IA en cours. Ne ferme pas cette fenetre."}),s.jsx("div",{className:"w-full h-px bg-[#e9e9e7] overflow-hidden",children:s.jsx("div",{className:"h-full bg-[#37352f]",style:{animation:"leadsProgress 90s linear forwards"}})}),s.jsx("ul",{className:"w-full flex flex-col gap-2 mt-2",children:Sh.map((x,y)=>s.jsxs("li",{className:`text-sm font-mono transition-opacity ${y<=a?"opacity-100 text-[#37352f]":"opacity-30 text-[#787774]"}`,children:[y<=a?"> ":"  ",x]},y))}),s.jsx("style",{children:"@keyframes leadsProgress { from { width: 0% } to { width: 100% } }"})]}),d.isError&&!d.isPending&&s.jsxs("div",{className:"mt-6 flex flex-col gap-4",children:[s.jsx("h3",{className:"text-base font-semibold",children:"Erreur lors du scraping"}),s.jsx("p",{className:"text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:d.error?.message||"Une erreur est survenue."}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{onClick:()=>d.mutate(),className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reessayer"}),s.jsx("button",{type:"button",onClick:()=>h(!1),className:"text-sm text-[#787774] hover:text-[#37352f]",children:"Fermer"})]})]}),i&&!d.isPending&&s.jsx("div",{className:"mt-6",children:i.reason==="QUOTA_LIMIT"&&i.quota?s.jsx(Wl,{quota:i.quota}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-baseline justify-between",children:[s.jsxs("h3",{className:"text-base font-semibold",children:[i.count," lead",i.count>1?"s":""," trouv",i.count>1?"es":"e"]}),s.jsxs("span",{className:"text-xs text-[#787774]",children:["Genere le ",new Date(i.generatedAt).toLocaleString("fr-FR")]})]}),i.count===0?s.jsx("div",{className:"mt-6 border border-[#e9e9e7] rounded-md p-6 text-center",children:s.jsx("p",{className:"text-sm text-[#787774]",children:"Aucun lead trouve. Affine tes mots-cles."})}):s.jsx("div",{className:"mt-4 border border-[#e9e9e7] rounded-md overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm table-fixed",children:[s.jsxs("colgroup",{children:[s.jsx("col",{style:{width:"18%"}}),s.jsx("col",{style:{width:"26%"}}),s.jsx("col",{style:{width:"22%"}}),s.jsx("col",{style:{width:"14%"}}),s.jsx("col",{style:{width:"10%"}}),s.jsx("col",{style:{width:"10%"}})]}),s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-[#e9e9e7]",children:[s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Nom"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Titre"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Entreprise"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Location"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Score"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-3",children:"Action"})]})}),s.jsx("tbody",{children:i.leads.map((x,y)=>s.jsxs(p.Fragment,{children:[s.jsxs("tr",{className:"border-b border-[#e9e9e7] hover:bg-[#f7f6f3]",children:[s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsxs("button",{onClick:()=>m(y),className:"flex items-start gap-1 text-left",children:[u.has(y)?s.jsx(rr,{className:"w-3.5 h-3.5 mt-0.5 text-[#787774] shrink-0"}):s.jsx(ta,{className:"w-3.5 h-3.5 mt-0.5 text-[#787774] shrink-0"}),s.jsxs("span",{children:[s.jsx("span",{className:"block font-medium text-[#37352f]",children:x.fullName}),x.headline&&s.jsx("span",{className:"block text-xs text-[#787774]",children:x.headline})]})]})}),s.jsx("td",{className:"px-3 py-3 align-top text-[#37352f]",children:x.title}),s.jsx("td",{className:"px-3 py-3 align-top text-[#37352f]",children:x.company}),s.jsx("td",{className:"px-3 py-3 align-top text-[#787774]",children:x.location}),s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsx("span",{className:`inline-flex items-center justify-center min-w-[28px] h-6 px-2 rounded-full text-xs font-medium ${v(x.tier)}`,children:x.score})}),s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsx("a",{href:Un(x.linkedinUrl),target:"_blank",rel:"noopener noreferrer",className:"text-xs underline text-[#37352f]",children:"Voir LinkedIn"})})]}),u.has(y)&&s.jsx("tr",{className:"border-b border-[#e9e9e7] bg-[#f7f6f3]",children:s.jsxs("td",{colSpan:6,className:"px-3 py-3 text-sm text-[#37352f]",children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Raisonnement IA"}),s.jsx("p",{className:"mt-1",children:x.reasoning})]})},`${y}-r`)]},y))})]})}),s.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[s.jsx(ue,{onClick:()=>h(!1),className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Fermer"}),s.jsx("button",{type:"button",onClick:f,className:"text-sm text-[#787774] hover:text-[#37352f] underline",children:"Nouvelle recherche"})]})]})})]})})}const gn=p.forwardRef(({className:e,...t},n)=>
45s.jsx("textarea",{className:Ce("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));gn.displayName="Textarea";const _n=["Generation version gratuite...","Generation version HD...","Preparation..."];function Nh({open:e,onOpenChange:t}){const[n,r]=p.useState(""),[i,o]=p.useState(null),[a,l]=p.useState(_n[0]),u=p.useRef(null),c=st({mutationFn:async()=>{const h=new AbortController,m=setTimeout(()=>h.abort(),6e4);try{const v=await Ve("compare-images",{prompt:n.trim()},{signal:h.signal});if(!v.ok)throw new Error(`HTTP ${v.status}`);return v.json()}finally{clearTimeout(m)}},onSuccess:h=>o(h),onError:h=>ze.error(h.message||"Erreur de generation")});p.useEffect(()=>{if(c.isPending){let h=0;l(_n[0]),u.current=setInterval(()=>{h=(h+1)%_n.length,l(_n[h])},3e3)}else u.current&&(clearInterval(u.current),u.current=null);return()=>{u.current&&clearInterval(u.current)}},[c.isPending]),p.useEffect(()=>{e||(o(null),c.reset())},[e]);const d=()=>{if(!n.trim()){ze.error("Decrivez l'image a generer");return}o(null),c.mutate()},f=async h=>{try{await Ve("visitor-notification",{event:"image_preference",choice:h,prompt:n.trim()}),ze("Merci pour ton retour")}catch{ze.error("Echec de l'envoi")}};return s.jsx(et,{open:e,onOpenChange:t,children:s.jsxs(qe,{className:"w-[95vw] max-w-[1200px] max-h-[90vh] overflow-y-auto p-0 border border-[#e9e9e7] rounded-md shadow-none bg-white",children:[s.jsx("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#e9e9e7]",children:s.jsx(Ge,{className:"text-base font-semibold text-[#1E90FF]",children:"Comparateur d'images IA"})}),s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-[#6B7280] mb-3",children:"Entrez une description en français et comparez instantanément une image générée en qualité standard (gratuite) vs haute définition."}),s.jsx(gn,{value:n,onChange:h=>r(h.target.value.slice(0,1e3)),rows:3,maxLength:1e3,placeholder:"Décrivez l'image souhaitée. Ex : open space moderne avec écrans analytiques, lumière naturelle, style photo réaliste",className:"border border-[#e9e9e7] rounded-md p-3 focus-visible:ring-0 focus-visible:border-[#1E90FF] shadow-none"}),s.jsx("div",{className:"mt-3",children:s.jsx(ue,{onClick:d,disabled:c.isPending,className:"bg-[#1E90FF] hover:bg-[#1879d4] text-white rounded-lg px-4 py-2 font-medium",children:c.isPending?s.jsxs(s.Fragment,{children:[s.jsx(ht,{className:"w-4 h-4 animate-spin"}),"Generation..."]}):"Générer les deux versions"})})]}),c.isPending&&s.jsxs("div",{className:"flex items-center gap-2 text-sm text-[#787774]",children:[s.jsx(ht,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:a})]}),i&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 md:gap-4",children:[s.jsx($o,{label:"GRATUIT",side:i.free,onPrefer:()=>f("free"),onRetry:d}),s.jsx($o,{label:"HD",side:i.premium,onPrefer:()=>f("premium"),onRetry:d})]})]})]})})}function $o({label:e,side:t,onPrefer:n,onRetry:r}){const i=!t?.url||!!t?.error;return s.jsxs("div",{className:"border border-[#e9e9e7] rounded-md p-4 bg-white",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:e}),s.jsx("div",{className:"mt-3 aspect-square w-full bg-[#f7f7f5] border border-[#e9e9e7] rounded-md overflow-hidden flex items-center justify-center",children:i?s.jsxs("div",{className:"p-4 text-center text-sm text-[#787774]",children:["Erreur : ",t?.error||"image indisponible"]}):s.jsx("img",{src:t.url,alt:e,className:"w-full h-full object-cover"})}),s.jsx("div",{className:"mt-3 flex items-center justify-end",children:i?s.jsx(ue,{onClick:r,variant:"outline",className:"border-[#e9e9e7] text-[#37352f] hover:bg-[#f7f6f3] rounded-[4px] shadow-none",children:"Reessayer"}):s.jsx(ue,{onClick:n,variant:"outline",className:"border-[#e9e9e7] text-[#37352f] hover:bg-[#f7f6f3] rounded-[4px] shadow-none",children:"Preferer celle-ci"})})]})}function jh(e){const t=Ah(e),n=p.forwardRef((r,i)=>{const{children:o,...a}=r,l=p.Children.toArray(o),u=l.find(Ph);if(u){const c=u.props.children,d=l.map(f=>f===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return s.jsx(t,{...a,ref:i,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function Ah(e){const t=p.forwardRef((n,r)=>{const{children:i,...o}=n;if(p.isValidElement(i)){const a=Ih(i),l=Rh(o,i.props);return i.type!==p.Fragment&&(l.ref=r?_t(r,a):a),p.cloneElement(i,l)}return p.Children.count(i)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fh=Symbol("radix.slottable");function Ph(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fh}function Rh(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const u=o(...l);return i(...l),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
vendor: 4,381 bytes, line 45
45:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Ih(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vr="Popover",[ql]=yn(vr,[mr]),En=mr(),[Th,wt]=ql(vr),Gl=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,l=En(t),u=p.useRef(null),[c,d]=p.useState(!1),[f,h]=Gn({prop:r,defaultProp:i??!1,onChange:o,caller:vr});return s.jsx(rl,{...l,children:s.jsx(Th,{scope:t,contentId:At(),triggerRef:u,open:f,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:a,children:n})})};Gl.displayName=vr;var Kl="PopoverAnchor",_h=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=wt(Kl,n),o=En(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=i;return p.useEffect(()=>(a(),()=>l()),[a,l]),s.jsx(Di,{...o,...r,ref:t})});_h.displayName=Kl;var Yl="PopoverTrigger",Xl=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=wt(Yl,n),o=En(n),a=ge(t,i.triggerRef),l=s.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":tc(i.open),...r,ref:a,onClick:ce(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:s.jsx(Di,{asChild:!0,...o,children:l})});Xl.displayName=Yl;var zi="PopoverPortal",[Oh,Dh]=ql(zi,{forceMount:void 0}),Ql=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=wt(zi,t);return s.jsx(Oh,{scope:t,forceMount:n,children:s.jsx(Xt,{present:n||o.open,children:s.jsx(sr,{asChild:!0,container:i,children:r})})})};Ql.displayName=zi;var Kt="PopoverContent",Zl=p.forwardRef((e,t)=>{const n=Dh(Kt,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=wt(Kt,e.__scopePopover);return s.jsx(Xt,{present:r||o.open,children:o.modal?s.jsx(Mh,{...i,ref:t}):s.jsx(zh,{...i,ref:t})})});Zl.displayName=Kt;var Lh=jh("PopoverContent.RemoveScroll"),Mh=p.forwardRef((e,t)=>{const n=wt(Kt,e.__scopePopover),r=p.useRef(null),i=ge(t,r),o=p.useRef(!1);return p.useEffect(()=>{const a=r.current;if(a)return Si(a)},[]),s.jsx(lr,{as:Lh,allowPinchZoom:!0,children:s.jsx(Jl,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,a=>{a.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),zh=p.forwardRef((e,t)=>{const n=wt(Kt,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return s.jsx(Jl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;n.triggerRef.current?.contains(a)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Jl=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...f}=e,h=wt(Kt,n),m=En(n);return Ei(),s.jsx(or,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsx(ir,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:s.jsx(il,{"data-state":tc(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ec="PopoverClose",Bh=p.forwardRef((e,t)=>
45{const{__scopePopover:n,...r}=e,i=wt(ec,n);return s.jsx(de.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>i.onOpenChange(!1))})});Bh.displayName=ec;var $h="PopoverArrow",Vh=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=En(n);return s.jsx(ol,{...i,...r,ref:t})});Vh.displayName=$h;function tc(e){return e?"open":"closed"}var Uh=Gl,Hh=Xl,Wh=Ql,nc=Zl;const qh=Uh,Gh=Hh,rc=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>s.jsx(Wh,{children:s.jsx(nc,{ref:i,align:t,sideOffset:n,className:Ce("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-(--radix-popover-content-transform-origin)",e),...r})}));rc.displayName=nc.displayName;const Kh=[{value:"consultatif",label:"Consultatif"},{value:"direct",label:"Direct"},{value:"amical",label:"Amical"}];function Yh({open:e,onOpenChange:t,lead:n,contexte:r="TeamIA est une agence IA qui aide les PME françaises et luxembourgeoises à automatiser leurs processus métier et déployer des agents IA sur mesure.",prefillEmail:i,rgpdNotice:o}
45){const[a,l]=p.useState("consultatif"),[u,c]=p.useState("email"),[d,f]=p.useState(null),h=st({mutationFn:async b=>{const E=await Ve("personalize-message",{lead:n,tone:b,contexte:r,prefillEmail:i,rgpdNotice:o});if(!E.ok)throw new Error(`Erreur ${E.status}`);return await E.json()},onSuccess:b=>f(b)});p.useEffect(()=>{e&&n&&(f(null),c("email"),l("consultatif"),h.reset(),h.mutate("consultatif"))},[e,n?.fullName]);const m=()=>h.mutate(a),v=b=>{const E=d?.variants?.[b];if(!E)return;let S="";b==="connection"?S=E.body||"":S=`${E.subject?"Objet: "+E.subject+`
46
47`:""}${E.body||""}`,navigator.clipboard.writeText(S),ze("Copie dans le presse-papier")},x=d?.variants?.[u],y=!!d&&!d.variants?.email?.subject;return s.jsx(et,{open:e,onOpenChange:t,children:s.jsxs(qe,{className:"w-[95vw] max-w-[760px] p-6 border border-[#E5E5E5] rounded-md shadow-none gap-0 sm:rounded-md max-sm:h-screen max-sm:max-w-full max-sm:rounded-none max-sm:border-0 overflow-y-auto max-h-[90vh]",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Message personnalise"}),s.jsx(Ge,{className:"mt-1 text-[20px] md:text-[22px] font-semibold leading-[1.3] truncate",children:n?`Message pour ${n.fullName} · ${n.company}`:"Message"})]}),s.jsx(ue,{onClick:m,disabled:h.isPending,variant:"outline",className:"border-[#E5E5E5] hover:bg-[#37352f] hover:text-white hover:border-[#37352f] rounded-md",children:"Regenerer"})]}),s.jsxs("div",{className:"mt-5 flex items-center gap-4",children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Ton"}),s.jsx("div",{className:"flex items-center gap-4",children:Kh.map(b=>s.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer text-sm",children:[s.jsx("input",{type:"radio",name:"tone",value:b.value,checked:a===b.value,onChange:()=>l(b.value),className:"accent-[#2EAADC]"}),b.label]},b.value))})]}),s.jsx("div",{className:"mt-5 border-b border-[#E5E5E5] flex gap-6",children:[{k:"email",l:"Email B2B"},{k:"inmail",l:"InMail LinkedIn"},{k:"connection",l:"Demande de connexion"}].map(b=>s.jsx("button",{onClick:()=>c(b.k),className:`pb-2 text-sm transition-colors ${u===b.k?"text-[#37352f] border-b-2 border-[#2EAADC] -mb-px":"text-[#787774] hover:text-[#37352f]"}`,children:b.l},b.k))}),s.jsxs("div",{className:"mt-5",children:[h.isPending&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("div",{className:"h-4 bg-[#f1f1ef] rounded animate-pulse w-2/3"}),s.jsx("div",{className:"h-24 bg-[#f1f1ef] rounded animate-pulse"}),s.jsx("div",{className:"h-24 bg-[#f1f1ef] rounded animate-pulse"}),s.jsx("p",{className:"text-xs text-[#787774]",children:"Generation des 3 variantes..."})]}),h.isError&&!h.isPending&&s.jsx("p",{className:"text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:h.error?.message||"Erreur lors de la generation."}),d&&!h.isPending&&y&&s.jsx("p",{className:"text-sm text-[#787774] border border-[#E5E5E5] rounded-md p-4",children:"La generation a echoue. Reessaie ou ajuste le ton."}),d&&!h.isPending&&!y&&s.jsxs("div",{className:"border border-[#E5E5E5] rounded-md p-4 relative",children:[s.jsx("button",{onClick:()=>v(u),className:"absolute top-3 right-3 text-xs text-[#787774] hover:text-[#37352f] underline",children:"Copier"}),u!=="connection"&&x?.subject&&s.jsxs("div",{className:"pb-2 mb-3 border-b border-dashed border-[#E5E5E5]",children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Objet"}),s.jsx("p",{className:"mt-1 text-sm font-semibold text-[#37352f]",children:x.subject})]}),s.jsx("pre",{className:"whitespace-pre-wrap font-sans text-sm text-[#37352f] leading-relaxed",children:x?.body||""})]})]})]})})}const Xh=["Lecture du site officiel...","Analyse des pages contact et mentions legales...","Verification de la conformite RGPD...","Finalisation..."],Qh=[{value:"",label:"Tous"},{value:"01",label:"1 a 2 salaries"},{value:"02",label:"3 a 5 salaries"},{value:"03",label:"6 a 9 salaries"},{value:"11",label:"10 a 19 salaries"},{value:"12",label:"20 a 49 salaries"},{value:"21",label:"50 a 99 salaries"},{value:"22",label:"100 a 199 salaries"},{value:"31",label:"200 a 249 salaries"},{value:"32",label:"250 a 499 salaries"}],Zh=["Interrogation du registre INSEE/INPI...","Recuperation des dirigeants...","Scoring IA des prospects...","Generation des accroches personnalisees..."],Jh=[{value:"company",label:"Par entreprise"},{value:"sector",label:"Par secteur"},{value:"person",label:"Par personne"}],ex=[".com",".fr",".io"];function tx(e){return e?e.toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/\([^)]*\)/g,"").replace(/\b(sa|sas|sarl|sasu|eurl|sci|scop|sc
47p|snc)\b/gi,"").replace(/[^a-z0-9]+/g,"").trim():""}function Vo(e){if(e.site_web&&e.site_web.trim()){const n=e.site_web.trim();return/^https?:\/\//i.test(n)?n:`https://${n}`}const t=tx(e.company);return t?`https://www.${t}.com`:""}function nx(e){const t=e.match(/\.(com|fr|io)(?:\/|$)/i);return t?`.${t[1].toLowerCase()}`:null}function rx(e,t){return e?e.replace(/\.(com|fr|io)(\/.*)?$/i,`${t}$2`):`https://www${t}`}function ic(e){let t=e.trim();return t?(/^https?:\/\//i.test(t)||(t=`https://${t}`),t.replace(/\/+$/,"")):""}function ix({open:e,onOpenChange:t}){const[n,r]=p.useState("company"),[i,o]=p.useState(""),[a,l]=p.useState(""),[u,c]=p.useState(""),[d,f]=p.useState(""),[h,m]=p.useState(0),[v,x]=p.useState(new Set),[y,b]=p.useState(null),[E,S]=p.useState(null),[F,I]=p.useState(!1),[k,A]=p.useState({}),[j,C]=p.useState({}),[L,O]=p.useState({}),[R,P]=p.useState({}),[D,_]=p.useState({}),[z,V]=p.useState({}),[W,Z]=p.useState({}),[g,he]=p.useState(void 0),[ye,w]=p.useState(void 0),se=st({mutationFn:async()=>{const N=new AbortController,$=setTimeout(()=>N.abort(),6e4);try{const G={mode:n,query:i.trim(),maxResults:5};n==="sector"&&(a.trim()&&(G.codeNaf=a.trim()),u.trim()&&(G.departement=u.trim()),d&&(G.trancheEffectif=d));const be=await Ve("search-prospects-fr",G,{signal:N.signal});if(!be.ok)throw new Error(`Erreur ${be.status}`);return await be.json()}finally{clearTimeout($)}},onSuccess:N=>{b(N),x(new Set),A({}),C({}),O({}),P({}),_({}),V({})}}),ae=async(N,$,G)=>{const be=G??$.site_web??"",Ae=ic(be);if(!Ae)return;if(!Hl(Ae)){ze.error("URL invalide : seuls les sites publics sont autorisés.");return}P(ie=>({...ie,[N]:"loading"})),V(ie=>({...ie,[N]:0})),x(ie=>new Set(ie).add(N));const ke=[setTimeout(()=>V(ie=>({...ie,[N]:1})),2e3),setTimeout(()=>V(ie=>({...ie,[N]:2})),5e3),setTimeout(()=>V(ie=>({...ie,[N]:3})),9e3)];try{const ie=new AbortController,Et=setTimeout(()=>ie.abort(),3e4),ut=await Ve("enrich-website-contact",{url:Ae,dirigeant:$.fullName},{signal:ie.signal});if(clearTimeout(Et),ke.forEach(clearTimeout),!ut.ok)throw new Error(`Erreur ${ut.status}`);const nn=await ut.json();_(rn=>({...rn,[N]:{...nn,emails:nn.emails||[],phones:nn.phones||[]}})),P(rn=>({...rn,[N]:"done"}))}catch{ke.forEach(clearTimeout),P(ie=>({...ie,[N]:"error"}))}},X=async(N,$)=>{A(G=>({...G,[N]:"loading"})),x(G=>new Set(G).add(N));try{const G=new AbortController,be=setTimeout(()=>G.abort(),6e4),Ae=await Ve("enrich-linkedin",{lead:$},{signal:G.signal});if(clearTimeout(be),!Ae.ok)throw new Error(`Erreur ${Ae.status}`);const ke=await Ae.json();ke.found&&ke.linkedin?(b(ie=>ie&&{...ie,leads:ie.leads.map((Et,ut)=>ut===N?{...Et,linkedin:ke.linkedin}:Et)}),A(ie=>({...ie,[N]:"found"}))):ke.reason==="QUOTA_LIMIT"&&ke.quota?(O(ie=>({...ie,[N]:ke.quota})),A(ie=>({...ie,[N]:"quota"}))):ke.candidate?(C(ie=>({...ie,[N]:ke.candidate})),A(ie=>({...ie,[N]:"notfound-candidate"}))):A(ie=>({...ie,[N]:"notfound"}))}catch{A(G=>({...G,[N]:"error"}))}};p.useEffect(()=>{if(!se.isPending)return;m(0);const N=[setTimeout(()=>m(1),2e3),setTimeout(()=>m(2),5e3),setTimeout(()=>m(3),8e3)];return()=>N.forEach(clearTimeout)},[se.isPending]);const q=N=>x($=>{const G=new Set($);return G.has(N)?G.delete(N):G.add(N),G}),re=N=>N==="hot"?"bg-[#FF6B6B] text-white":N==="warm"?"bg-[#FFB84D] text-[#37352f]":"bg-[#9
47CA3AF] text-white",Y=(N,$=60)=>N.length>$?N.slice(0,$-1)+"…":N,te=N=>{N.preventDefault(),i.trim()&&se.mutate()},ne=N=>{S(N),I(!0)};return s.jsxs(s.Fragment,{children:[s.jsx(et,{open:e,onOpenChange:t,children:s.jsxs(qe,{className:"w-[95vw] max-w-[1400px] p-6 border border-[#e9e9e7] rounded-md shadow-none gap-0 sm:rounded-md max-sm:h-screen max-sm:max-w-full max-sm:rounded-none max-sm:border-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"ACQUISITION B2B"}),s.jsx(Ge,{className:"mt-1 text-[20px] md:text-[22px] font-semibold leading-[1.3] text-[#1E90FF]",children:"Recherche Prospects France"}),s.jsx("p",{className:"mt-1 text-[13px] text-[#6B7280]",children:"Registre du commerce officiel · INSEE/INPI · Scoring IA"})]}),s.jsx("div",{className:"mt-5 border-b border-[#e9e9e7] flex gap-6",children:Jh.map(N=>s.jsx("button",{onClick:()=>{r(N.value),o("")},className:`pb-2 text-sm transition-colors duration-150 ${n===N.value?"text-[#1E90FF] border-b-2 border-[#1E90FF] -mb-px font-semibold":"text-[#6B7280] hover:text-[#1A1A1A]"}`,children:N.label},N.value))}),s.jsxs("form",{onSubmit:te,className:"mt-5 flex flex-col gap-3",children:[n!=="sector"&&s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{htmlFor:"prospects-query",className:"font-semibold text-[#1A1A1A]",children:n==="company"?"SIREN ou nom d'entreprise":"Nom et prénom"}),s.jsx(Se,{id:"prospects-query",value:i,onChange:N=>o(N.target.value.slice(0,300)),maxLength:300,placeholder:n==="company"?"Cabinet Dupont Conseil ou 123456789":"Marie Martin",className:"border-[#e9e9e7] rounded-md focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"}),n==="person"&&s.jsx("p",{className:"text-[12px] text-[#6B7280]",children:"Recherche dans les dirigeants et mandataires sociaux enregistrés en France."})]}),n==="sector"&&s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Mots-clés"}),s.jsx(Se,{value:i,onChange:N=>o(N.target.value.slice(0,300)),maxLength:300,placeholder:"agence conseil RH",className:"border-[#e9e9e7] rounded-md focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Code NAF (optionnel)"}),s.jsx(Se,{value:a,onChange:N=>l(N.target.value.slice(0,20)),maxLength:20,placeholder:"70.22Z",className:"border-[#e9e9e7] rounded-md focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Département (optionnel)"}),s.jsx(Se,{value:u,onChange:N=>c(N.target.value.slice(0,10)),maxLength:10,placeholder:"75",className:"border-[#e9e9e7] rounded-md focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Tranche d'effectif (optionnel)"}),s.jsx("select",{value:d,onChange:N=>f(N.target.value),className:"h-9 px-3 text-sm border border-[#e9e9e7] rounded-md bg-white text-[#1A1A1A] focus:outline-none focus:border-[#1E90FF]",children:Qh.map(N=>s.jsx("option",{value:N.value,children:N.label},N.value))})]})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(ue,{type:"submit",disabled:!i.trim()||se.isPending,className:"bg-[#1E90FF] hover:bg-[#1879d4] text-white rounded-lg",children:"Lancer la recherche"})})]}),se.isPending&&s.jsxs("div",{className:"mt-5 flex flex-col gap-3",children:[s.jsx("div",{className:"w-full h-[2px] bg-[#E5E5E5] overflow-hidden",children:s.jsx("div",{className:"h-full bg-[#2EAADC]",style:{animation:"prospectsProgress 12s linear forwards"}})}),s.jsx("ul",{className:"flex flex-col gap-1.5",children:Zh.map((N,$)=>s.jsxs("li",{className:`text-[13px] font-mono transition-opacity duration-150 ${$<=h?"text-[#37352f] opacity-100":"text-[#787774] opacity-40"}`,children:[$<=h?"> ":"  ",N]},$))}),s.jsx("style",{children:"@keyframes prospectsProgress { from { width: 0% } to { width: 100% } }"})]}),se.isError&&!se.isPending&&s.jsx("p",{className:"mt-4 text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:se.error?.message||"Erreur lors de la recherche."}),y&&!se.isPending&&s.jsx("div",{className:"mt-5 border-t border-[#e9e9e7] pt-5",children:y.count===0||!y.leads?.length?s.jsx("div",{className:"border border-[#e9e9e7] rounded-md p-5 text-center",children:s.jsx("p",{className:"text-sm text-[#787774]",children:"Aucun prospect trouve pour cette recherche. Essaie d'elargir les criteres."})}):s.jsx("div",{className:"border border-[#e9e9e7] rounded-md overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-[#e9e9e7]",children:[s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5 w-[60
47px]",children:"Score"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5 w-[220px]",children:"Entreprise"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5 w-[200px]",children:"Dirigeant"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5 w-[260px]",children:"Secteur · Effectifs · Ville"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5",children:"Hooks"}),s.jsx("th",{className:"text-left text-[11px] uppercase tracking-wider text-[#787774] font-normal px-3 py-2.5 w-[140px]",children:"Action"})]})}),s.jsx("tbody",{children:y.leads.map((N,$)=>s.jsxs(p.Fragment,{children:[s.jsxs("tr",{className:"border-b border-[#e9e9e7] hover:bg-[#F7F7F5] cursor-pointer",onClick:()=>q($),children:[s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsx("span",{className:`inline-flex items-center justify-center min-w-[28px] h-6 px-2 rounded-full text-xs font-medium ${re(N.tier)}`,children:N.score})}),s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsxs("div",{className:"flex items-start gap-1",children:[v.has($)?s.jsx(rr,{className:"w-3.5 h-3.5 mt-1 text-[#787774] shrink-0"}):s.jsx(ta,{className:"w-3.5 h-3.5 mt-1 text-[#787774] shrink-0"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-[#37352f]",children:N.company}),N.siren&&s.jsx("div",{className:"text-[12px] text-[#787774]",children:N.siren})]})]})}),s.jsxs("td",{className:"px-3 py-3 align-top",children:[s.jsx("div",{className:"text-[#37352f]",children:N.fullName}),N.role&&s.jsx("div",{className:"text-[12px] text-[#787774]",children:N.role})]}),s.jsx("td",{className:"px-3 py-3 align-top text-[13px] text-[#37352f]",children:[N.codeNaf,N.effectifs,N.ville].filter(Boolean).join(" · ")}),s.jsx("td",{className:"px-3 py-3 align-top text-[13px] text-[#787774]",children:(N.hooks||[]).slice(0,2).map((G,be)=>s.jsx("div",{children:Y(G,60)},be))}),s.jsx("td",{className:"px-3 py-3 align-top",children:s.jsxs("div",{className:"flex flex-col gap-1.5 items-start",children:[s.jsx("button",{onClick:G=>{G.stopPropagation(),ne(N)},className:"text-xs text-[#37352f] underline hover:text-[#2EAADC]",children:"Generer message"}),k[$]==="loading"?s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-[#787774]",children:[s.jsx(ht,{className:"w-3 h-3 animate-spin"}),"Enrichissement..."]}):k[$]==="found"&&N.linkedin?.linkedinUrl?s.jsxs("a",{href:Un(N.linkedin.linkedinUrl),target:"_blank",rel:"noopener noreferrer",onClick:G=>G.stopPropagation(),className:"inline-flex items-center gap-1 text-xs text-[#2EAADC] underline",children:["Voir LinkedIn",s.jsx(zn,{className:"w-3 h-3"})]}):s.jsx("button",{onClick:G=>{G.stopPropagation(),X($,N)},className:"text-xs text-[#37352f] underline hover:text-[#2EAADC]",children:k[$]?"Reessayer":"Enrichir LinkedIn"}),R[$]==="loading"?s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-[#787774]",children:[s.jsx(ht,{className:"w-3 h-3 animate-spin"}),"Recherche..."]}):s.jsx(li,{lead:N,label:R[$]==="done"||R[$]==="error"?"Reessayer contact":"Enrichir contact",onLaunch:G=>ae($,N,G)})]})})]}),v.has($)&&s.jsx("tr",{className:"border-b border-[#e9e9e7] bg-[#FAFAF9]",children:s.jsx("td",{colSpan:6,className:"px-4 py-4 text-sm text-[#37352f]",children:s.jsxs("div",{className:"grid gap-3",children:[N.reasoning&&s.jsxs("div",{children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Raisonnement"}),s.jsx("p",{className:"mt-1",children:N.reasoning})]}),N.hooks&&N.hooks.length>0&&s.jsxs("div",{children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Hooks"}),s.jsx("ul",{className:"mt-1 list-disc pl-5 space-y-0.5",children:N.hooks.map((G,be)=>s.jsx("li",{children:G},be))})]}),s.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-1 text-[12px] text-[#787774]",children:[N.dateCreation&&s.jsxs("span",{children:["Cree le ",N.dateCreation]}),N.categorie&&s.jsxs("span",{children:["Categorie: ",N.categorie]}),N.codePostal&&s.jsxs("span",{children:["CP: ",N.codePostal]}),N.departement&&s.jsxs("span",{children:["Dept: ",N.departement]}
47)]}),N.events&&N.events.length>0&&s.jsxs("div",{children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Evenements"}),s.jsx("ul",{className:"mt-1 list-disc pl-5 space-y-0.5",children:N.events.map((G,be)=>s.jsx("li",{children:G},be))})]}),(k[$]||N.linkedin)&&s.jsxs("div",{className:"border-t border-[#e9e9e7] pt-3 mt-1",children:[s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"LinkedIn"}),k[$]==="loading"&&s.jsxs("p",{className:"mt-1 text-[13px] text-[#787774] inline-flex items-center gap-2",children:[s.jsx(ht,{className:"w-3 h-3 animate-spin"}),"Recherche du profil LinkedIn..."]}),k[$]==="found"&&N.linkedin&&s.jsxs("div",{className:"mt-2 flex gap-3 items-start",children:[N.linkedin.photo&&s.jsx("img",{src:N.linkedin.photo,alt:"",className:"w-12 h-12 rounded-md border border-[#e9e9e7] object-cover shrink-0"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[N.linkedin.linkedinUrl&&s.jsxs("a",{href:Un(N.linkedin.linkedinUrl),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[13px] text-[#2EAADC] underline break-all",children:[N.linkedin.linkedinUrl,s.jsx(zn,{className:"w-3 h-3 shrink-0"})]}),N.linkedin.headline&&s.jsx("p",{className:"mt-1 text-[13px] text-[#37352f]",children:N.linkedin.headline}),s.jsxs("div",{className:"mt-1 flex flex-wrap gap-x-4 gap-y-0.5 text-[12px] text-[#787774]",children:[typeof N.linkedin.yearsExperience=="number"&&s.jsxs("span",{children:[N.linkedin.yearsExperience," ans d'experience"]}),N.linkedin.location&&s.jsx("span",{children:N.linkedin.location})]}),N.linkedin.skills&&N.linkedin.skills.length>0&&s.jsxs("p",{className:"mt-1 text-[12px] text-[#787774]",children:["Skills: ",N.linkedin.skills.slice(0,5).join(", ")]}),N.linkedin.snippet&&s.jsx("p",{className:"mt-1 text-[12px] text-[#787774] italic",children:Y(N.linkedin.snippet,150)})]})]}),k[$]==="notfound-candidate"&&j[$]&&s.jsxs("div",{className:"mt-2 border border-[#FFB84D] bg-[#FFF7E6] rounded-md p-2.5",children:[s.jsx("p",{className:"text-[12px] text-[#37352f]",children:"Profil possible non confirme"}),j[$].headline&&s.jsx("p",{className:"text-[12px] text-[#787774] mt-0.5",children:j[$].headline}),j[$].linkedinUrl&&s.jsxs("a",{href:Un(j[$].linkedinUrl),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-[#2EAADC] underline mt-1",children:[j[$].linkedinUrl,s.jsx(zn,{className:"w-3 h-3"})]})]}),k[$]==="quota"&&L[$]&&s.jsx("div",{className:"mt-2",children:s.jsx(Wl,{quota:L[$]})}),k[$]==="notfound"&&s.jsx("p",{className:"mt-1 text-[13px] text-[#787774]",children:"Aucun profil LinkedIn trouve."}),k[$]==="error"&&s.jsx("p",{className:"mt-1 text-[13px] text-[#c5392f]",children:"Erreur lors de l'enrichissement."})]}),R[$]&&s.jsx(sx,{idx:$,lead:N,status:R[$],data:D[$],stepIdx:z[$]??0,rgpdOpen:!!W[$],toggleRgpd:()=>Z(G=>({...G,[$]:!G[$]})),onRetry:G=>ae($,N,G),onPrepareMessage:(G,be)=>{he(G),w(be),ne(N)}})]})})})]},$))})]})})})]})}),s.jsx(Yh,{open:F,onOpenChange:N=>{I(N),N||(S(null),he(void 0),w(void 0))},lead:E,prefillEmail:g,rgpdNotice:ye})]})}function ox(e){if(!e)return"";try{return new Date(e).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"})}catch{return""}}function Uo(e){return typeof e!="number"?"#9CA3AF":e>=100?"#16A34A":e>=80?"#D97706":"#9CA3AF"}function sx({lead:e,status:t,data:n,stepIdx:r,rgpdOpen:i,toggleRgpd:o,onRetry:a,onPrepareMessage:l}){const u=c=>{navigator.clipboard.writeText(c),ze("Copie")};return s.jsxs("div",{className:"border-t border-[#e9e9e7] pt-3 mt-1",children:[s.jsx("div",{className:"flex items-baseline justify-between gap-3",children:s.jsxs("span",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:[e.company," ",n?.scraped_at?`· enrichi le ${ox(n.scraped_at)}`:""]})}),t==="loading"&&s.jsxs("div",{className:"mt-3 flex flex-col gap-2",children:[s.jsx("div",{className:"w-full h-[2px] bg-[#E5E5E5] overflow-hidden",children:s.jsx("div",{className:"h-full bg-[#2EAADC]",style:{animation:"contactProgress 15s linear forwards"}})}),s.jsx("ul",{className:"flex flex-col gap-1",children:Xh.map((c,d)=>s.jsxs("li",{className:`text-[12px] font-mono transition-opacity duration-150 ${d<=r?"text-[#37352f] opacity-100":"text-[#787774] opacity-40"}`,children:[d<=r?"> ":"  ",c]},d))}),s.jsx("style",{children:"@keyframes contactProgress { from { width: 0% } to { width: 100% } }"})]}),t==="error"&&s.jsxs("div",{className:"mt-3 text-[13px]",children:[s.jsx("p",{className:"text-[#37352f]",children:"Impossible d'enrichir ce contact pour le moment."}),s.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[s.jsx("button",{onClick:()=>a(),className:"text-xs text-[#37352f] underline hover:text-[#2EAADC]",children:"Reessayer"}),s.jsx(li,{lead:e,label:"Modifier l'URL",variant:"link",onLaunch:c=>a(c)})]})]}),t==="done"&&n&&s.jsx(s.Fragment,{children:n.emails.length===0&&n.phones.length===0?s.jsxs("div",{className:"mt-3 text-[13px] text-[#37352f] space-y-2",children:[s.jsx("p",{children:"Aucun contact public expose sur le site officiel."}),s.jsx("p",{className:"text-[12px] text-[#787774]",children:"Pourquoi ? Le site n'affiche pas d'email ou de telep
47hone en clair, ou l'URL choisie ne correspond pas au vrai site officiel."}),n.pages_scraped&&n.pages_scraped.length>0&&s.jsxs("p",{className:"text-[12px] text-[#787774]",children:["Pages analysees : ",n.pages_scraped.join(", ")]}),s.jsxs("div",{className:"pt-1 flex items-center gap-3",children:[s.jsx(li,{lead:e,label:"Modifier l'URL",variant:"outline",onLaunch:c=>a(c)}),s.jsx("span",{className:"text-[12px] text-[#787774]",children:'ou essayer "Enrichir LinkedIn" pour le profil du dirigeant.'})]})]}):s.jsxs("div",{className:"mt-3 space-y-4",children:[n.emails.length>0&&s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Emails pro trouves"}),s.jsx("div",{className:"mt-2 divide-y divide-[#e9e9e7] border border-[#e9e9e7] rounded-md bg-white",children:n.emails.map((c,d)=>s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 min-w-0",children:[s.jsx("span",{className:"text-[13px] text-[#37352f] font-medium truncate",children:c.address}),s.jsx("span",{className:"text-[11px] text-[#787774]",children:c.type==="nominative"?"nominatif":c.t
47ype==="generic"?"generique":c.type}),typeof c.confidence=="number"&&s.jsxs("span",{className:"text-[11px] font-medium",style:{color:Uo(c.confidence)},children:[c.confidence,"%"]}),c.page&&s.jsx("span",{className:"text-[11px] text-[#787774]",children:c.page})]}),s.jsxs("button",{onClick:()=>u(c.address),className:"inline-flex items-center gap-1 text-[11px] text-[#787774] hover:text-[#37352f]",children:[s.jsx(ho,{className:"w-3 h-3"}),"Copier"]})]},d))})]}),n.phones.length>0&&s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#787774]",children:"Telephones"}),s.jsx("div",{className:"mt-2 divide-y divide-[#e9e9e7] border border-[#e9e9e7] rounded-md bg-white",children:n.phones.map((c,d)=>s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 min-w-0",children:[s.jsx("span",{className:"text-[13px] text-[#37352f] font-medium truncate",children:c.number}),s.jsx("span",{className:"text-[11px] text-[#787774]",children:c.type==="landline"?"fixe":c.type}),typeof c.confidence=="number"&&s.jsxs("span",{className:"text-[11px] font-medium",style:{color:Uo(c.confidence)},children:[c.confidence,"%"]}),c.page&&s.jsx("span",{className:"text-[11px] text-[#787774]",children:c.page})]}),s.jsxs("button",{onClick:()=>u(c.number),className:"inline-flex items-center gap-1 text-[11px] text-[#787774] hover:text-[#37352f]",children:[s.jsx(ho,{className:"w-3 h-3"}),"Copier"]})]},d))})]}),n.pages_scraped&&n.pages_scraped.length>0&&s.jsxs("p",{className:"text-[12px] text-[#787774]",children:["Pages analysees : ",n.pages_scraped.join(", ")]}),n.rgpd_notice&&s.jsxs("div",{className:"text-[12px]",children:[s.jsxs("button",{onClick:o,className:"inline-flex items-center gap-1 text-[#787774] hover:text-[#37352f]",children:[s.jsx(xd,{className:"w-3 h-3"}),"Mention RGPD obligatoire a inclure dans tout email envoye"]}),i&&s.jsx("p",{className:"mt-2 italic text-[#787774] border-l-2 border-[#e9e9e7] pl-3",children:n.rgpd_notice})]}),n.emails[0]&&s.jsx("div",{children:s.jsxs("button",{onClick:()=>l(n.emails[0].address,n.rgpd_notice),className:"inline-flex items-center gap-1 text-[13px] text-[#37352f] border border-[#37352f] rounded-md px-3 py-1.5 hover:bg-[#37352f] hover:text-white transition-colors duration-150",children:["Preparer un message avec ",n.emails[0].address,s.jsx(zn,{className:"w-3 h-3"})]})})]})})]})}function li({lead:e,label:t,onLaunch:n,variant:r="link"}){const[i,o]=p.useState(!1),[a,l]=p.useState(()=>Vo(e));p.useEffect(()=>{i&&l(Vo(e))},[i,e]);const u=nx(a),c=()=>{const f=ic(a);if(f){if(!Hl(f)){ze.error("URL invalide : seuls les sites publics sont autorisés.");return}o(!1),n(f)}},d=r==="outline"?"inline-flex items-center gap-1 text-[13px] text-[#37352f] border border-[#37352f] rounded-md px-3 py-1.5 hover:bg-[#37352f] hover:text-white transition-colors duration-150":"text-xs text-[#37352f] underline hover:text-[#2EAADC]";return s.jsxs(qh,{open:i,onOpenChange:o,children:[s.jsx(Gh,{asChild:!0,children:s.jsxs("button",{type:"button",onClick:f=>f.stopPropagation(),className:d,children:[r==="outline"&&s.jsx(yd,{className:"w-3 h-3"}),t]})}),s.jsxs(rc,{align:"end",sideOffset:6,className:"w-[320px] border border-[#e9e9e7] rounded-md p-4 shadow-sm bg-white",onClick:f=>f.stopPropagation(),children:[s.jsx("p",{className:"text-[13px] text-[#37352f] font-medium",children:"Quel est le site web de cette entreprise ?"}),s.jsx("p",{className:"mt-1 text-[12px] text-[#787774]",children:"L'INSEE ne fournit pas systematiquement le site. Confirme ou modifie l'URL ci-dessous."}),s.jsx("div",{className:"mt-3",children:s.jsx(Se,{value:a,onChange:f=>l(f.target.value.slice(0,500)),maxLength:500,onKeyDown:f=>{f.key==="Enter"&&(f.preventDefault(),c())},placeholder:"https://www.exemple.com",className:"border-[#e9e9e7] rounded-md text-[13px] h-9"})}),s.jsxs("div",{className:"mt-2 flex items-center gap-1.5",children:[s.jsx("span",{className:"text-[11px] text-[#787774]",children:"Suggestions :"}),ex.map(f=>{const h=u===f;return s.jsx("button",{type:"button",onClick:()=>l(rx(a,f)),className:`text-[11px] px-1.5 py-0.5 rounded border transition-colors duration-150 ${h?"border-[#37352f] bg-[#37352f] text-white":"border-[#e9e9e7] text-[#37352f] hover:border-[#37352f]"}`,children:f},f)})]}),s.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2",children:[s.jsx("button",{type:"button",onClick:()=>o(!1),className:"text-[12px] text-[#787774] hover:text-[#37352f] px-2 py-1",children:"Annuler"}),s.jsx("button",{type:"button",onClick:c,disabled:!a.trim(),className:"text-[12px] text-white bg-[#1E90FF] hover:bg-[#1878d4] disabled:bg-[#B5B5B5] disabled:cursor-not-allowed rounded-md px-3 py-1.5",children:"Lancer la recherche"})]})]})]})}function ax(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const lx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ux={};function Ho(e,t){return(ux.jsx?cx:lx).test(e)}const dx=/[ \t\n\f\r]/g;function fx(e){return typeof e=="object"?e.type==="text"?Wo(e.value):!1:Wo(e)}function Wo(e){return e.replace(dx,"")===""}class Sn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Sn.prototype.normal={};Sn.prototype.property={};Sn.prototype.space=void 0;function oc(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Sn(n,r,t)}function ci(e){return e.toLowerCase()}class Re{constructor(t,n){this.attribute=n,this.property=t}}Re.prototype.attribute="";Re.prototype.booleanish=!1;Re.prototype.boolean=!1;Re.prototype.commaOrSpaceSeparated=!1;Re.prototype.commaSeparated=!1;Re.prototype.defined=!1;Re.prototype.mustUseProperty=!1;Re.prototype.number=!1;Re.prototype.overloadedBoolean=!1;Re.prototype.property="";Re.prototype.spaceSeparated=!1;Re.prototype.space=void 0;let px=0;const J=Dt(),ve=Dt(),ui=Dt(),M=Dt(),pe=Dt(),Wt=Dt(),Te=Dt();function Dt(){return 2**++px}const di=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:ve,commaOrSpaceSeparated:Te,commaSeparated:Wt,number:M,overloadedBoolean:ui,spaceSeparated:pe},Symbol.toStringTag,{value:"Module"})),Dr=Object.keys(di);class Bi extends Re{constructor(t,n,r,i){let o=-1;if(super(t,n),qo(this,"space",i),typeof r=="number")for(;++o<Dr.length;){const a=Dr[o];qo(this,Dr[o],(r&di[a])===di[a])}}}Bi.prototype.defined=!0;function qo(e,t,n){n&&(e[t]=n)}function en(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Bi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ci(r)]=r,n[ci(o.attribute)]=r}return new Sn(t,n,e.space)}const sc=en({properties:{ariaActiveDescendant:null,ariaAtomic:ve,ariaAutoComplete:null,ariaBusy:ve,ariaChecked:ve,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControl
vendor: 5,361 bytes, line 47
47s:pe,ariaCurrent:null,ariaDescribedBy:pe,ariaDetails:null,ariaDisabled:ve,ariaDropEffect:pe,ariaErrorMessage:null,ariaExpanded:ve,ariaFlowTo:pe,ariaGrabbed:ve,ariaHasPopup:null,ariaHidden:ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pe,ariaLevel:M,ariaLive:null,ariaModal:ve,ariaMultiLine:ve,ariaMultiSelectable:ve,ariaOrientation:null,ariaOwns:pe,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:ve,ariaReadOnly:ve,ariaRelevant:null,ariaRequired:ve,ariaRoleDescription:pe,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:ve,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ac(e,t){return t in e?e[t]:t}function lc(e,t){return ac(e,t.toLowerCase())}const mx=en({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:pe,accessKey:pe,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:pe,autoFocus:J,autoPlay:J,blocking:pe,capture:null,charSet:null,checked:J,cite:null,className:pe,cols:M,colSpan:null,content:null,contentEditable:ve,controls:J,controlsList:pe,coords:M|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:ui,draggable:ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:pe,height:M,hidden:ui,high:M,href:null,hrefLang:null,htmlFor:pe,httpEquiv:pe,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:pe,itemRef:pe,itemScope:J,itemType:pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:M,pattern:null,ping:pe,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:pe,required:J,reversed:J,rows:M,rowSpan:M,sandbox:pe,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:ve,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pe,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:ve,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:lc}),hx=en({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
47dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
47dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te,rev:Te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te,requiredFeatures:Te,requiredFonts:Te,requiredFormats:Te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ac}),cc=en({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,084 bytes, lines 47-48
47,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),uc=en({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lc}),dc=en({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xx={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},gx=/[A-Z]/g,Go=/-[a-z]/g,bx=/^data[-\w.:]+$/i;function yx(e,t){const n=ci(t);let r=t,i=Re;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&bx.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Go,wx);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Go.test(o)){let a=o.replace(gx,vx);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Bi}return new i(r,t)}function vx(e){return"-"+e.toLowerCase()}function wx(e){return e.charAt(1).toUpperCase()}const kx=oc([sc,mx,cc,uc,dc],"html"),$i=oc([sc,hx,cc,uc,dc],"svg");function Ex(e){return e.join(" ").trim()}var $t={},Lr,Ko;function Sx(){if(Ko)return Lr;Ko=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
48`,c="/",d="*",f="",h="comment",m="declaration";function v(y,b){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];b=b||{};var E=1,S=1;function F(D){var _=D.match(t);_&&(E+=_.length);var z=D.lastIndexOf(u);S=~z?D.length-z:S+D.length}function I(){var D={line:E,column:S};return function(_){return _.position=new k(D),C(),_}}function k(D){this.start=D,this.end={line:E,column:S},this.source=b.source}k.prototype.content=y;function A(D){var _=new Error(b.source+":"+E+":"+S+": "+D);if(_.reason=D,_.filename=b.source,_.line=E,_.column=S,_.source=y,!b.silent)throw _}function j(D){var _=D.exec(y);if(_){var z=_[0];return F(z),y=y.slice(z.length),_}}function C(){j(n)}function L(D){var _;for(D=D||[];_=O();)_!==!1&&D.push(_);return D}function O(){var D=I();if(!(c!=y.charAt(0)||d!=y.charAt(1))){for(var _=2;f!=y.charAt(_)&&(d!=y.charAt(_)||c!=y.charAt(_+1));)++_;if(_+=2,f===y.charAt(_-1))return A("End of comment missing");var z=y.slice(2,_-2);return S+=2,F(z),y=y.slice(_),S+=2,D({type:h,comment:z})}}function R(){var D=I(),_=j(r);if(_){if(O(),!j(i))return A("property missing ':'");var z=j(o),V=D({type:m,property:x(_[0].replace(e,f)),value:z?x(z[0].replace(e,f)):f});return j(a),V}}function P(){var D=[];L(D);for(var _;_=R();)_!==!1&&(D.push(_),L(D));return D}return C(),P()}function x(y){return y?y.replace(l,f):f}return Lr=v,Lr}var Yo;function Cx(){if(Yo)return $t;Yo=1;var e=$t&&$t.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($t,"__esModule",{value:!0}),$t.default=n;const t=e(Sx());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),l=typeof i=="function";return a.forEach(u=>{if(u.type!=="declaration")return;const{property:c,value:d}=u;l?i(c,d,u):d&&(o=o||{},o[c]=d)}),o}return $t}var ln={},Xo;function Nx(){if(Xo)return ln;Xo=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||n.test(c)||e.test(c)},a=function(c,d){return d.toUpperCase()},l=function(c,d){return"".concat(d,"-")},u=function(c,d){return d===void 0&&(d={}),o(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(i,l):c=c.replace(r,l),c.replace(t,a))};return ln.camelCase=u,ln}var cn,Qo;function jx(){if(Qo)return cn;Qo=1;var e=cn&&cn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Cx()),n=Nx();function r(i,o){var a={};
vendor: 2,733 bytes, line 48
48return!i||typeof i!="string"||(0,t.default)(i,function(l,u){l&&u&&(a[(0,n.camelCase)(l,o)]=u)}),a}return r.default=r,cn=r,cn}var Ax=jx();const Fx=_s(Ax),fc=pc("end"),Vi=pc("start");function pc(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Px(e){const t=Vi(e),n=fc(e);if(t&&n)return{start:t,end:n}}function pn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zo(e.position):"start"in e||"end"in e?Zo(e):"line"in e||"column"in e?fi(e):""}function fi(e){return Jo(e&&e.line)+":"+Jo(e&&e.column)}function Zo(e){return fi(e&&e.start)+"-"+fi(e&&e.end)}function Jo(e){return e&&typeof e=="number"?e:1}class je extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=pn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}je.prototype.file="";je.prototype.name="";je.prototype.reason="";je.prototype.message="";je.prototype.stack="";je.prototype.column=void 0;je.prototype.line=void 0;je.prototype.ancestors=void 0;je.prototype.cause=void 0;je.prototype.fatal=void 0;je.prototype.place=void 0;je.prototype.ruleId=void 0;je.prototype.source=void 0;const Ui={}.hasOwnProperty,Rx=new Map,Ix=/[A-Z]/g,Tx=new Set(["table","tbody","thead","tfoot","tr"]),_x=new Set(["td","th"]),mc="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ox(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ux(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,053 bytes, line 48
48if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Vx(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?$i:kx,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=hc(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function hc(e,t,n){if(t.type==="element")return Dx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zx(e,t,n);if(t.type==="mdxjsEsm")return Mx(e,t);if(t.type==="root")return Bx(e,t,n);if(t.type==="text")return $x(e,t)}function Dx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$i,e.schema=i),e.ancestors.push(t);const o=gc(e,t.tagName,!1),a=Hx(e,t);let l=Wi(e,t);return Tx.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!fx(u):!0})),xc(e,a,o,t),Hi(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Lx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}bn(e,t.position)}function Mx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bn(e,t.position)}function zx(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=$i,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:gc(e,t.name,!0),a=Wx(e,t),l=Wi(e,t);return xc(e,a,o,t),Hi(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Bx(e,t,n){const r={};return Hi(r,Wi(e,t)),e.create(t,e.Fragment,r,n)}function $x(e,t){return t.value}function xc(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Vx(e,t,n){return r;function r(i,o,a,l){const c=Array.isArray(a.children)?n:t;return l?c(o,a,l):c(o,a)}}function Ux(e,t){return n;function n(r,i,o,a){const l=Array.isArray(o.children),u=Vi(r);return t(i,o,a,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Hx(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ui.call(t.properties,i)){const o=qx(e,i,t.properties[i]);if(o){const[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&_x.has(t.tagName)?r=l:n[a]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Wx(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else bn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else bn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Wi(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Rx;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const c=i.get(u)||0;a=u+"-"+c,i.set(u,c+1)}}const l=hc(e,o,a);l!==void 0&&n.push(l)}return n}function qx(e,t,n){const r=yx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ax(n):Ex(n)),r.property==="style"){let i=typeof n=="object"?n:Gx(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Kx(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?xx[r.property]||r.property:r.attribute,n]}}function Gx(e,t){try{return Fx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new je("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=mc+"#cannot-parse-style-attribute",i}}function gc(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const l=Ho(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=a}else r=Ho(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ui.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);bn(e)}function bn(e,t){const n=new je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=mc+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Kx(e){const t={};let n;for(n in e)Ui.call(e,n)&&(t[Yx(n)]=e[n]);return t}function Yx(e){let t=e.replace(Ix,Xx);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Xx(e){return"-"+e.toLowerCase()}const Mr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Qx={};function Zx(e,t){const n=Qx,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return bc(e,r,i)}function bc(e,t,n){if(Jx(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return es(e.children,t,n)}return Array.isArray(e)?es(e,t,n):""}
vendor: 13,240 bytes, line 48
48function es(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=bc(e[i],t,n);return r.join("")}function Jx(e){return!!(e&&typeof e=="object")}const ts=document.createElement("i");function qi(e){const t="&"+e+";";ts.innerHTML=t;const n=ts.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Je(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Me(e,t){return e.length>0?(Je(e,e.length,0,t),e):t}const ns={}.hasOwnProperty;function eg(e){const t={};let n=-1;for(;++n<e.length;)tg(t,e[n]);return t}function tg(e,t){let n;for(n in t){const i=(ns.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){ns.call(i,a)||(i[a]=[]);const l=o[a];ng(i[a],Array.isArray(l)?l:l?[l]:[])}}}function ng(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Je(e,0,0,r)}function yc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xe=kt(/[A-Za-z]/),Oe=kt(/[\dA-Za-z]/),rg=kt(/[#-'*+\--9=?A-Z^-~]/);function pi(e){return e!==null&&(e<32||e===127)}const mi=kt(/\d/),ig=kt(/[\dA-Fa-f]/),og=kt(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Pe(e){return e!==null&&(e<0||e===32)}function le(e){return e===-2||e===-1||e===32}const sg=kt(new RegExp("\\p{P}|\\p{S}","u")),ag=kt(/\s/);function kt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Oe(e.charCodeAt(n+1))&&Oe(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(u){return le(u)?(e.enter(n),l(u)):t(u)}function l(u){return le(u)&&o++<i?(e.consume(u),l):(e.exit(n),t(u))}}const lg={tokenize:cg};function cg(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return K(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const ug={tokenize:dg},rs={tokenize:fg};function dg(e){const t=this,n=[];let r=0,i,o,a;return l;function l(S){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,u,c)(S)}return c(S)}function u(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const F=t.events.length;let I=F,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){k=t.events[I][1].end;break}b(r);let A=F;for(;A<t.events.length;)t.events[A][1].end={...k},A++;return Je(t.events,I+1,0,t.events.slice(F)),t.events.length=A,c(S)}return l(S)}function c(S){if(r===n.length){if(!i)return h(S);if(i.currentConstruct&&i.currentConstruct.concrete)return v(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rs,d,f)(S)}function d(S){return i&&E(),b(r),h(S)}function f(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,v(S)}function h(S){return t.containerState={},e.attempt(rs,m,v)(S)}function m(S){return r++,n.push([t.currentConstruct,t.containerState]),h(S)}function v(S){if(S===null){i&&E(),b(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(S)}function x(S){if(S===null){y(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return K(S)?(e.consume(S),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(S),x)}function y(S,F){const I=t.sliceStream(S);if(F&&I.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(I),t.parser.lazy[S.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const A=t.events.length;let j=A,C,L;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(C){L=t.events[j][1].end;break}C=!0}for(b(r),k=A;k<t.events.length;)t.events[k][1].end={...L},k++;Je(t.events,j+1,0,t.events.slice(A)),t.events.length=k}}function b(S){let F=n.length;for(;F-- >S;){const I=n[F];t.containerState=I[1],I[0].exit.call(t,e)}n.length=S}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function fg(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function is(e){if(e===null||Pe(e)||ag(e))return 1;if(sg(e))return 2}function Gi(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const hi={name:"attention",resolveAll:pg,tokenize:mg};function pg(e,t){let n=-1,r,i,o,a,l,u,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};os(f,-u),os(h,u),a={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Me(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Me(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Me(c,Gi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Me(c,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Me(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Je(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function mg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=is(r);let o;return a;function a(u){return o=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===o)return e.consume(u),l;const c=e.exit("attentionSequence"),d=is(u),f=!d||d===2&&i||n.includes(u),h=!i||i===2&&d||n.includes(r);return c._open=!!(o===42?f:f&&(i||!h)),c._close=!!(o===42?h:h&&(d||!f)),t(u)}}function os(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hg={name:"autolink",tokenize:xg};function xg(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return Xe(m)?(e.consume(m),a):m===64?n(m):c(m)}function a(m){return m===43||m===45||m===46||Oe(m)?(r=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||Oe(m))&&r++<32?(e.consume(m),l):(r=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||pi(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):rg(m)?(e.consume(m),c):n(m)}function d(m){return Oe(m)?f(m):n(m)}function f(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||Oe(m))&&r++<63){const v=m===45?h:f;return e.consume(m),v}return n(m)}}const wr={partial:!0,tokenize:gg};function gg(e,t,n){return r;function r(o){return le(o)?me(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||K(o)?t(o):n(o)}}const vc={continuation:{tokenize:yg},exit:vg,name:"blockQuote",tokenize:bg};function bg(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return le(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function yg(e,t,n){const r=this;return i;function i(a){return le(a)?me(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(vc,t,n)(a)}}function vg(e){e.exit("blockQuote")}const wc={name:"characterEscape",tokenize:wg};function wg(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return og(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const kc={name:"characterReference",tokenize:kg};function kg(e,t,n){const r=this;let i=0,o,a;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=Oe,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=ig,d):(e.enter("characterReferenceValue"),o=7,a=mi,d(f))}function d(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return a===Oe&&!qi(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(f)&&i++<o?(e.consume(f),d):n(f)}}const ss={partial:!0,tokenize:Sg},as={concrete:!0,name:"codeFenced",tokenize:Eg};function Eg(e,t,n){const r=this,i={partial:!0,tokenize:I};let o=0,a=0,l;return u;function u(k){return c(k)}function c(k){const A=r.events[r.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===l?(a++,e.consume(k),d):a<3?n(k):(e.exit("codeFencedFenceSequence"),le(k)?me(e,f,"whitespace")(k):f(k))}function f(k){return k===null||K(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(ss,x,F)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||K(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):le(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,m,"whitespace")(k)):k===96&&k===l?n(k):(e.consume(k),h)}function m(k){return k===null||K(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(k))}function v(k){return k===null||K(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===l?n(k):(e.consume(k),v)}function x(k){return e.attempt(i,F,y)(k)}function y(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b}function b(k){return o>0&&le(k)?me(e,E,"linePrefix",o+1)(k):E(k)}function E(k){return k===null||K(k)?e.check(ss,x,F)(k):(e.enter("codeFlowValue"),S(k))}function S(k){return k===null||K(k)?(e.exit("codeFlowValue"),E(k)):(e.consume(k),S)}function F(k){return e.exit("codeFenced"),t(k)}function I(k,A,j){let C=0;return L;function L(_){return k.enter("lineEnding"),k.consume(_),k.exit("lineEnding"),O}function O(_){return k.enter("codeFencedFence"),le(_)?me(k,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):R(_)}function R(_){return _===l?(k.enter("codeFencedFenceSequence"),P(_)):j(_)}function P(_){return _===l?(C++,k.consume(_),P):C>=a?(k.exit("codeFencedFenceSequence"),le(_)?me(k,D,"whitespace")(_):D(_)):j(_)}function D(_){return _===null||K(_)?(k.exit("codeFencedFence"),A(_)):j(_)}}}function Sg(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const zr={name:"codeIndented",tokenize:Ng},Cg={partial:!0,tokenize:jg};function Ng(e,t,n){const r=this;return i;
vendor: 5,051 bytes, line 48
48function i(c){return e.enter("codeIndented"),me(e,o,"linePrefix",5)(c)}function o(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?u(c):K(c)?e.attempt(Cg,a,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||K(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function jg(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):K(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):me(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):K(a)?i(a):n(a)}}const Ag={name:"codeText",previous:Pg,resolve:Fg,tokenize:Rg};function Fg(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Pg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rg(e,t,n){let r=0,i,o;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),r++,l):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),i=0,d(f)):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||K(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",c(f))}}class Ig{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&un(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),un(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),un(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);un(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);un(this.left,n.reverse())}}}function un(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ec(e){const t={};let n=-1,r,i,o,a,l,u,c;const d=new Ig(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Tg(d,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=d.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Je(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function Tg(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,u=[],c={};let d,f,h=-1,m=n,v=0,x=0;const y=[x];for(;m;){for(;e.get(++i)[1]!==m;);o.push(i),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),f&&a.defineSki
vendor: 22,710 bytes, line 48
48p(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(x=h+1,y.push(x),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),h=y.length;h--;){const b=l.slice(y[h],y[h+1]),E=o.pop();u.push([E,E+b.length-1]),e.splice(E,2,b)}for(u.reverse(),h=-1;++h<u.length;)c[v+u[h][0]]=v+u[h][1],v+=u[h][1]-u[h][0]-1;return c}const _g={resolve:Dg,tokenize:Lg},Og={partial:!0,tokenize:Mg};function Dg(e){return Ec(e),e}function Lg(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):K(l)?e.check(Og,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Mg(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),me(e,o,"linePrefix")}function o(a){if(a===null||K(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Sc(e,t,n,r,i,o,a,l,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),h):b===null||b===32||b===41||pi(b)?n(b):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(b))}function h(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(l),h(b)):b===null||b===60||K(b)?n(b):(e.consume(b),b===92?v:m)}function v(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function x(b){return!d&&(b===null||b===41||Pe(b))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(b)):d<c&&b===40?(e.consume(b),d++,x):b===41?(e.consume(b),d--,x):b===null||b===32||b===40||pi(b)?n(b):(e.consume(b),b===92?y:x)}function y(b){return b===40||b===41||b===92?(e.consume(b),x):x(b)}}function Cc(e,t,n,r,i,o){const a=this;let l=0,u;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(o),d}function d(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):K(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||K(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!le(m)),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),l++,f):f(m)}}function Nc(e,t,n,r,i,o){let a;return l;function l(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,u):n(h)}function u(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),c(h))}function c(h){return h===a?(e.exit(o),u(a)):h===null?n(h):K(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),me(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===a||h===null||K(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:d)}function f(h){return h===a||h===92?(e.consume(h),d):d(h)}}function mn(e,t){let n;return r;function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):le(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const zg={name:"definition",tokenize:$g},Bg={partial:!0,tokenize:Vg};function $g(e,t,n){const r=this;let i;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return Cc.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return i=qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Pe(m)?mn(e,c)(m):c(m)}function c(m){return Sc(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Bg,f,f)(m)}function f(m){return le(m)?me(e,h,"whitespace")(m):h(m)}function h(m){return m===null||K(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function Vg(e,t,n){return r;function r(l){return Pe(l)?mn(e,i)(l):n(l)}function i(l){return Nc(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return le(l)?me(e,a,"whitespace")(l):a(l)}function a(l){return l===null||K(l)?t(l):n(l)}}const Ug={name:"hardBreakEscape",tokenize:Hg};function Hg(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return K(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Wg={name:"headingAtx",resolve:qg,tokenize:Gg};function qg(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Je(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Gg(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||Pe(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||K(d)?(e.exit("atxHeading"),t(d)):le(d)?me(e,l,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),l(d))}function c(d){return d===null||d===35||Pe(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),c)}}const Kg=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ls=["pre","script","style","textarea"],Yg={concrete:!0,name:"htmlFlow",resolveTo:Zg,tokenize:Jg},Xg={partial:!0,tokenize:tb},Qg={partial:!0,tokenize:eb};function Zg(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Jg(e,t,n){const r=this;let i,o,a,l,u;return c;function c(w){return d(w)}function d(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),h):w===47?(e.consume(w),o=!0,x):w===63?(e.consume(w),i=3,r.interrupt?t:g):Xe(w)?(e.consume(w),a=String.fromCharCode(w),y):n(w)}function h(w){return w===45?(e.consume(w),i=2,m):w===91?(e.consume(w),i=5,l=0,v):Xe(w)?(e.consume(w),i=4,r.interrupt?t:g):n(w)}function m(w){return w===45?(e.consume(w),r.interrupt?t:g):n(w)}function v(w){const se="CDATA[";return w===se.charCodeAt(l++)?(e.consume(w),l===se.length?r.interrupt?t:R:v):n(w)}function x(w){return Xe(w)?(e.consume(w),a=String.fromCharCode(w),y):n(w)}function y(w){if(w===null||w===47||w===62||Pe(w)){const se=w===47,ae=a.toLowerCase();return!se&&!o&&ls.includes(ae)?(i=1,r.interrupt?t(w):R(w)):Kg.includes(a.toLowerCase())?(i=6,se?(e.consume(w),b):r.interrupt?t(w):R(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):o?E(w):S(w))}return w===45||Oe(w)?(e.consume(w),a+=String.fromCharCode(w),y):n(w)}function b(w){return w===62?(e.consume(w),r.interrupt?t:R):n(w)}function E(w){return le(w)?(e.consume(w),E):L(w)}function S(w){return w===47?(e.consume(w),L):w===58||w===95||Xe(w)?(e.consume(w),F):le(w)?(e.consume(w),S):L(w)}function F(w){return w===45||w===46||w===58||w===95||Oe(w)?(e.consume(w),F):I(w)}function I(w){return w===61?(e.consume(w),k):le(w)?(e.consume(w),I):S(w)}function k(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),u=w,A):le(w)?(e.consume(w),k):j(w)}function A(w){return w===u?(e.consume(w),u=null,C):w===null||K(w)?n(w):(e.consume(w),A)}function j(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Pe(w)?I(w):(e.consume(w),j)}function C(w){return w===47||w===62||le(w)?S(w):n(w)}function L(w){return w===62?(e.consume(w),O):n(w)}function O(w){return w===null||K(w)?R(w):le(w)?(e.consume(w),O):n(w)}function R(w){return w===45&&i===2?(e.consume(w),z):w===60&&i===1?(e.consume(w),V):w===62&&i===4?(e.consume(w),he):w===63&&i===3?(e.consume(w),g):w===93&&i===5?(e.consume(w),Z):K(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Xg,ye,P)(w)):w===null||K(w)?(e.exit("htmlFlowData"),P(w)):(e.consume(w),R)}function P(w){return e.check(Qg,D,ye)(w)}function D(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),_}function _(w){return w===null||K(w)?P(w):(e.enter("htmlFlowData"),R(w))}function z(w){return w===45?(e.consume(w),g):R(w)}function V(w){return w===47?(e.consume(w),a="",W):R(w)}function W(w){if(w===62){const se=a.toLowerCase();return ls.includes(se)?(e.consume(w),he):R(w)}return Xe(w)&&a.length<8?(e.consume(w),a+=String.fromCharCode(w),W):R(w)}function Z(w){return w===93?(e.consume(w),g):R(w)}function g(w){return w===62?(e.consume(w),he):w===45&&i===2?(e.consume(w),g):R(w)}function he(w){return w===null||K(w)?(e.exit("htmlFlowData"),ye(w)):(e.consume(w),he)}function ye(w){return e.exit("htmlFlow"),t(w)}}function eb(e,t,n){const r=this;return i;function i(a){return K(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function tb(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(wr,t,n)}}const nb={name:"htmlText",tokenize:rb};function rb(e,t,n){const r=this;let i,o,a;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),u}function u(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),I):g===63?(e.consume(g),S):Xe(g)?(e.consume(g),j):n(g)}function c(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),o=0,v):Xe(g)?(e.consume(g),E):n(g)}function d(g){return g===45?(e.consume(g),m):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),h):K(g)?(a=f,V(g)):(e.consume(g),f)}function h(g){return g===45?(e.consume(g),m):f(g)}function m(g){return g===62?z(g):g===45?h(g):f(g)}function v(g){const he="CDATA[";return g===he.charCodeAt(o++)?(e.consume(g),o===he.length?x:v):n(g)}function x(g){return g===null?n(g):g===93?(e.consume(g),y):K(g)?(a=x,V(g)):(e.consume(g),x)}function y(g){return g===93?(e.consume(g),b):x(g)}function b(g){return g===62?z(g):g===93?(e.consume(g),b):x(g)}function E(g){return g===null||g===62?z(g):K(g)?(a=E,V(g)):(e.consume(g),E)}function S(g){return g===null?n(g):g===63?(e.consume(g),F):K(g)?(a=S,V(g)):(e.consume(g),S)}function F(g){return g===62?z(g):S(g)}function I(g){return Xe(g)?(e.consume(g),k):n(g)}function k(g){return g===45||Oe(g)?(e.consume(g),k):A(g)}function A(g){return K(g)?(a=A,V(g)):le(g)?(e.consume(g),A):z(g)}function j(g){return g===45||Oe(g)?(e.consume(g),j):g===47||g===62||Pe(g)?C(g):n(g)}function C(g){return g===47?(e.consume(g),z):g===58||g===95||Xe(g)?(e.consume(g),L):K(g)?(a=C,V(g)):le(g)?(e.consume(g),C):z(g)}function L(g){return g===45||g===46||g===58||g===95||Oe(g)?(e.consume(g),L):O(g)}function O(g){return g===61?(e.consume(g),R):K(g)?(a=O,V(g)):le(g)?(e.consume(g),O):C(g)}function R(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,P):K(g)?(a=R,V(g)):le(g)?(e.consume(g),R):(e.consume(g),D)}function P(g){return g===i?(e.consume(g),i=void 0,_):g===null?n(g):K(g)?(a=P,V(g)):(e.consume(g),P)}function D(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Pe(g)?C(g):(e.consume(g),D)}function _(g){return g===47||g===62||Pe(g)?C(g):n(g)}function z(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function V(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),W}function W(g){return le(g)?me(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):Z(g)}function Z(g){return e.enter("htmlTextData"),a(g)}}const Ki={name:"labelEnd",resolveAll:ab,resolveTo:lb,tokenize:cb},ib={tokenize:ub},ob={tokenize:db},sb={tokenize:fb};function ab(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Je(e,0,e.length,n),e}function lb(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Me(l,e.slice(o+1,o+r+3)),l=Me(l,[["enter",d,t]]),l=Me(l,Gi(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=Me(l,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),l=Me(l,e.slice(a+1)),l=Me(l,[["exit",u,t]]),Je(e,o,e.length,l),e}function cb(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(h){return o?o._inactive?f(h):(a=r.parser.defined.includes(qt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):n(h)}function u(h){return h===40?e.attempt(ib,d,a?d:f)(h):h===91?e.attempt(ob,d,a?c:f)(h):a?d(h):f(h)}function c(h){return e.attempt(sb,d,f)(h)}function d(h){return t(h)}function f(h){return o._balanced=!0,n(h)}}function ub(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Pe(f)?mn(e,o)(f):o(f)}function o(f){return f===41?d(f):Sc(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return Pe(f)?mn(e,u)(f):d(f)}function l(f){return n(f)}function u(f){return f===34||f===39||f===40?Nc(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Pe(f)?mn(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function db(e,t,n){const r=this;return i;function i(l){return Cc.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function fb(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const pb={name:"labelStartImage",resolveAll:Ki.resolveAll,tokenize:mb};function mb(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const hb={name:"labelStartLink",resolveAll:Ki.resolveAll,tokenize:xb};function xb(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Br={name:"lineEnding",tokenize:gb};function gb(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Hn={name:"thematicBreak",tokenize:bb};function bb(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,l(c)}function l(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||K(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),le(c)?me(e,l,"whitespace")(c):l(c))}}const Fe={continuation:{tokenize:kb},exit:Sb,name:"list",tokenize:wb},yb={partial:!0,tokenize:Cb},vb={partial:!0,tokenize:Eb};function wb(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(m){const v=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:mi(m)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Hn,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return mi(m)&&++a<10?(e.consume(m),u):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(wr,r.interrupt?n:d,e.attempt(yb,h,f))}function d(m){return r.containerState.initialBlankLine=!0,o++,h(m)}function f(m){return le(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function kb(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(wr,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!le(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(vb,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(Fe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Eb(e,t,n){const r=this;return me(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Sb(e){e.exit(this.containerState.type)}function Cb(e,t,n){const r=this;return me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!le(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const cs={name:"setextUnderline",resolveTo:Nb,tokenize:jb};function Nb(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function jb(e,t,n){const r=this;let i;return o;function o(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),le(c)?me(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||K(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Ab={tokenize:Fb};function Fb(e){const t=this,n=e.attempt(wr,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_g,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Pb={resolveAll:Ac()},Rb=jc("string"),Ib=jc("text");function jc(e){return{resolveAll:Ac(e==="text"?Tb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(d){return c(d)?o(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),o(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const f=i[d];let h=-1;if(f)for(;++h<f.length;){const m=f[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Ac(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Tb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,l=0,u;
vendor: 2,044 bytes, line 48
48for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)u=!0,l++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const _b={42:Fe,43:Fe,45:Fe,48:Fe,49:Fe,50:Fe,51:Fe,52:Fe,53:Fe,54:Fe,55:Fe,56:Fe,57:Fe,62:vc},Ob={91:zg},Db={[-2]:zr,[-1]:zr,32:zr},Lb={35:Wg,42:Hn,45:[cs,Hn],60:Yg,61:cs,95:Hn,96:as,126:as},Mb={38:kc,92:wc},zb={[-5]:Br,[-4]:Br,[-3]:Br,33:pb,38:kc,42:hi,60:[hg,nb],91:hb,92:[Ug,wc],93:Ki,95:hi,96:Ag},Bb={null:[hi,Pb]},$b={null:[42,95]},Vb={null:[]},Ub=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$b,contentInitial:Ob,disable:Vb,document:_b,flow:Lb,flowInitial:Db,insideSpan:Bb,string:Mb,text:zb},Symbol.toStringTag,{value:"Module"}));function Hb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],l=[];const u={attempt:A(I),check:A(k),consume:E,enter:S,exit:F,interrupt:A(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:h,sliceStream:m,write:f};let d=t.tokenize.call(c,u);return t.resolveAll&&o.push(t),c;function f(O){return a=Me(a,O),y(),a[a.length-1]!==null?[]:(j(t,0),c.events=Gi(o,c.events,c),c.events)}function h(O,R){return qb(m(O),R)}function m(O){return Wb(a,O)}function v(){const{_bufferIndex:O,_index:R,line:P,column:D,offset:_}=r;return{_bufferIndex:O,_index:R,line:P,column:D,offset:_}}function x(O){i[O.line]=O.column,L()}function y(){let O;for(;r._index<a.length;){const R=a[r._index];if(typeof R=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<R.length;
vendor: 13,305 bytes, lines 48-50
48)b(R.charCodeAt(r._bufferIndex));else b(R)}}function b(O){d=d(O)}function E(O){K(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,L()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O}function S(O,R){const P=R||{};return P.type=O,P.start=v(),c.events.push(["enter",P,c]),l.push(P),P}function F(O){const R=l.pop();return R.end=v(),c.events.push(["exit",R,c]),R}function I(O,R){j(O,R.from)}function k(O,R){R.restore()}function A(O,R){return P;function P(D,_,z){let V,W,Z,g;return Array.isArray(D)?ye(D):"tokenize"in D?ye([D]):he(D);function he(X){return q;function q(re){const Y=re!==null&&X[re],te=re!==null&&X.null,ne=[...Array.isArray(Y)?Y:Y?[Y]:[],...Array.isArray(te)?te:te?[te]:[]];return ye(ne)(re)}}function ye(X){return V=X,W=0,X.length===0?z:w(X[W])}function w(X){return q;function q(re){return g=C(),Z=X,X.partial||(c.currentConstruct=X),X.name&&c.parser.constructs.disable.null.includes(X.name)?ae():X.tokenize.call(R?Object.assign(Object.create(c),R):c,u,se,ae)(re)}}function se(X){return O(Z,g),_}function ae(X){return g.restore(),++W<V.length?w(V[W]):z}}}function j(O,R){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&Je(c.events,R,c.events.length-R,O.resolve(c.events.slice(R),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function C(){const O=v(),R=c.previous,P=c.currentConstruct,D=c.events.length,_=Array.from(l);return{from:D,restore:z};function z(){r=O,c.previous=R,c.currentConstruct=P,c.events.length=D,l=_,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function qb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
49`;break}case-3:{a=`\r
50`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function Gb(e){const r={constructs:eg([Ub,...(e||{}).extensions||[]]),content:i(lg),defined:[],document:i(ug),flow:i(Ab),lazy:{},string:i(Rb),text:i(Ib)};return r;function i(o){return a;function a(l){return Hb(r,o,l)}}}function Kb(e){for(;!Ec(e););return e}const us=/[\0\t\n\r]/g;function Yb(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const u=[];let c,d,f,h,m;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(us.lastIndex=f,c=us.exec(o),h=c&&c.index!==void 0?c.index:o.length,m=o.charCodeAt(h),!c){t=o.slice(f);break}if(m===10&&f===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<h&&(u.push(o.slice(f,h)),e+=h-f),m){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Xb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qb(e){return e.replace(Xb,Zb)}function Zb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return yc(n.slice(o?2:1),o?16:10)}return qi(n)||e}const Fc={}.hasOwnProperty;function Jb(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ey(n)(Kb(Gb(n).document().write(Yb()(e,t,!0))))}function ey(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Et),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(be),blockQuote:o(te),characterEscape:C,characterReference:C,codeFenced:o(ne),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(ne,a),codeText:o(N,a),codeTextData:C,data:C,codeFlowValue:C,definition:o($),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(G),hardBreakEscape:o(Ae),hardBreakTrailing:o(Ae),htmlFlow:o(ke,a),htmlFlowData:C,htmlText:o(ke,a),htmlTextData:C,image:o(ie),label:a,link:o(Et),listItem:o(nn),listItemValue:h,listOrdered:o(ut,f),listUnordered:o(ut),paragraph:o(rn),reference:w,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(be),strong:o($c),thematicBreak:o(Uc)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Y,autolinkProtocol:re,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:X,characterReference:q,codeFenced:u(y),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:L,codeIndented:u(b),codeText:u(_),codeTextData:L,data:L,definition:u(),definitionDestinationString:F,definitionLabelString:E,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(R),hardBreakTrailing:u(R),htmlFlow:u(P),htmlFlowData:L,htmlText:u(D),htmlTextData:L,image:u(V),label:Z,labelText:W,lineEnding:O,link:u(z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:se,resourceDestinationString:g,resourceTitleString:he,resource:ye,setextHeading:u(j),setextHeadingLineSequence:A,setextHeadingText:k,strong:u(),thematicBreak:u()}};Pc(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let B={type:"root",children:[]};const Q={stack:[B],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:d,data:n},oe=[];let fe=-1;for(;++fe<T.length;)if(T[fe][1].type==="listOrdered"||T[fe][1].type==="listUnordered")if(T[fe][0]==="enter")oe.push(fe);else{const Be=oe.pop();fe=i(T,Be,fe)}for(fe=-1;++fe<T.length;){const Be=t[T[fe][0]];Fc.call(Be,T[fe][1].type)&&Be[T[fe][1].type].call(Object.assign({sliceSerialize:T[fe][2].sliceSerialize},Q),T[fe][1])}if(Q.tokenStack.length>0){const Be=Q.tokenStack[Q.tokenStack.length-1];(Be[1]||ds).call(Q,void 0,Be[0])}for(B.position={start:pt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:pt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},fe=-1;++fe<t.transforms.length;)B=t.transforms[fe](B)||B;return B}function i(T,B,Q){let oe=B-1,fe=-1,Be=!1,St,nt,on,sn;for(;++oe<=Q;){const Ie=T[oe];switch(Ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ie[0]==="enter"?fe++:fe--,sn=void 0;break}case"lineEndingBlank":{Ie[0]==="enter"&&(St&&!sn&&!fe&&!on&&(on=oe),sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sn=void 0}if(!fe&&Ie[0]==="enter"&&Ie[1].type==="listItemPrefix"||fe===-1&&Ie[0]==="exit"&&(Ie[1].type==="listUnordered"||Ie[1].type==="listOrdered")){if(St){let Lt=oe;for(nt=void 0;Lt--;){const rt=T[Lt];if(rt[1].type==="lineEnding"||rt[1].type==="lineEndingBlank"){if(rt[0]==="exit")continue;nt&&(T[nt][1].type="lineEndingBlank",Be=!0),rt[1].type="lineEnding",nt=Lt}else if(!(rt[1].type==="linePrefix"||rt[1].type==="blockQuotePrefix"||rt[1].type==="blockQuotePrefixWhitespace"||rt[1].type==="blockQuoteMarker"||rt[1].type==="listItemIndent"))break}on&&(!nt||on<nt)&&(St._spread=!0),St.end=Object.assign({},nt?T[nt][1].start:Ie[1].end),T.splice(nt||oe,0,["exit",St,Ie[2]]),oe++,Q++}if(Ie[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},Ie[1].start),end:void 0};St=Lt,T.splice(oe,0,["enter",Lt,Ie[2]]),oe++,Q++,on=void 0,sn=!0}}}return T[B][1]._spread=Be,Q}function o(T,B){return Q;function Q(oe){l.call(this,T(oe),oe),B&&B.call(this,oe)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(T,B,Q){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([B,Q||void 0]),T.position={start:pt(B.start),end:void 0}}function u(T){return B;function B(Q){T&&T.call(this,Q),c.call(this,Q)}}function c(T,B){const Q=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==T.type&&(B?B.call(this,T,oe[0]):(oe[1]||ds).call(this,T,oe[0]));else throw new Error("Cannot close `"+T.type+"` ("+pn({start:T.start,end:T.end})+"): it’s not open");Q.position.end=pt(T.end)}function d(){return Zx(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function m(){const T=this.resume(),B=this.stack[this.stack.length-1];B.lang=T}function v(){const T=this.resume(),B=this.stack[this.stack.length-1];B.meta=T}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T.replace(/(\r?\n|\r)$/g,"")}function E(T){const B=this.resume(),Q=this.stack[this.stack.length-1];Q.label=B,Q.identifier=qt(this.sliceSerialize(T)).toLowerCase()}function S(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function F(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function I(T){const B=this.stack[this.stack.length-1];if(!B.depth){const Q=this.sliceSerialize(T).length;B.depth=Q}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function A(T){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function C(T){const Q=this.stack[this.stack.length-1].children;let oe=Q[Q.length-1];(!oe||oe.type!=="text")&&(oe=Vc(),oe.position={start:pt(T.start),end:void 0},Q.push(oe)),this.stack.push(oe)}function L(T){const B=this.stack.pop();B.value+=this.sliceSerialize(T),B.position.end=pt(T.end)}function O(T){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=B.children[B.children.length-1];Q.position.end=pt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(C.call(this,T),L.call(this,T))}function R(){this.data.atHardBreak=!0}function P(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function D(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function _(){const T=this.resume(),B=this.stack[this.stack.length-1];B.value=T}function z(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function V(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=B,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function W(T){const B=this.sliceSerialize(T),Q=this.stack[this.stack.length-2];Q.label=Qb(B),Q.identifier=qt(B).toLowerCase()}function Z(){const T=this.stack[this.stack.length-1],B=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const oe=T.children;Q.children=oe}else Q.alt=B}function g(){const T=this.resume(),B=this.stack[this.stack.length-1];B.url=T}function he(){const T=this.resume(),B=this.stack[this.stack.length-1];B.title=T}function ye(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function se(T){const B=this.resume(),Q=this.stack[this.stack.length-1];Q.label=B,Q.identifier=qt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ae(T){this.data.characterReferenceType=T.type}function X(T){const B=this.sliceSerialize(T),Q=this.data.characterReferenceType;let oe;Q?(oe=yc(B,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=qi(B);const fe=this.stack[this.stack.length-1];fe.value+=oe}function q(T){const B=this.stack.pop();B.position.end=pt(T.end)}function re(T){L.call(this,T);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(T)}function Y(T){L.call(this,T);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(T)}function te(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function N(){return{type:"inlineCode",value:""}}function $(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:0,children:[]}}function Ae(){return{type:"break"}}function ke(){return{type:"html",value:""}}function ie(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function ut(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function nn(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function rn(){return{type:"paragraph",children:[]}}function $c(){return{type:"strong",children:[]}}function Vc(){return{type:"text",value:""}}function Uc(){return{type:"thematicBreak"}}}function pt(e){return{line:e.line,column:e.column,offset:e.offset}}function Pc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Pc(e,r):ty(e,r)}}function ty(e,t){let n;
vendor: 6,253 bytes, lines 50-54
50for(n in t)if(Fc.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ds(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is still open")}function ny(e){const t=this;t.parser=n;function n(r){return Jb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ry(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function iy(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
51`}]}function oy(e,t){const n=t.value?t.value+`
52`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function sy(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ay(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ly(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=tn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function cy(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uy(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Rc(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function dy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rc(e,t);const i={src:tn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function fy(e,t){const n={src:tn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function py(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function my(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rc(e,t);const i={href:tn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function hy(e,t){const n={href:tn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xy(e,t,n){const r=e.all(t),i=n?gy(n):Ic(t),o={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
53`}),d.type==="element"&&d.tagName==="p"&&!i?a.push(...d.children):a.push(d)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
54`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function gy(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ic(n[r])}return t}function Ic(e){const t=e.spread;return t??e.children.length>1}function by(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function yy(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vy(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function wy(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ky(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Vi(t.children[1]),u=fc(t.children[t.children.length-1]);
vendor: 1,878 bytes, line 54
54l&&u&&(a.position={start:l,end:u}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Ey(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let u=-1;const c=[];for(;++u<l;){const f=t.children[u],h={},m=a?a[u]:void 0;m&&(h.align=m);let v={type:"element",tagName:o,properties:h,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),c.push(v)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function Sy(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const fs=9,ps=32;function Cy(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ms(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ms(t.slice(i),i>0,!1)),o.join("")}function ms(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===fs||o===ps;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===fs||o===ps;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ny(e,t){const n={type:"text",value:Cy(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function jy(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ay={blockquote:ry,break:iy,code:oy,delete:sy,emphasis:ay,footnoteReference:ly,heading:cy,html:uy,imageReference:dy,image:fy,inlineCode:py,linkReference:my,link:hy,listItem:xy,list:by,paragraph:yy,root:vy,strong:wy,table:ky,tableCell:Sy,tableRow:Ey,text:Ny,thematicBreak:jy,toml:On,yaml:On,definition:On,footnoteDefinition:On};function On(){}const Tc=-1,kr=0,hn=1,er=2,Yi=3,Xi=4,Qi=5,Zi=6,_c=7,Oc=8,Fy=typeof self=="object"?self:globalThis,hs=(e,t)=>
vendor: 6,214 bytes, lines 54-56
54{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Fy[e](t)},Py=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case kr:case Tc:return n(a,i);case hn:{const l=n([],i);for(const u of a)l.push(r(u));return l}case er:{const l=n({},i);for(const[u,c]of a)l[r(u)]=r(c);return l}case Yi:return n(new Date(a),i);case Xi:{const{source:l,flags:u}=a;return n(new RegExp(l,u),i)}case Qi:{const l=n(new Map,i);for(const[u,c]of a)l.set(r(u),r(c));return l}case Zi:{const l=n(new Set,i);for(const u of a)l.add(r(u));return l}case _c:{const{name:l,message:u}=a;return n(hs(l,u),i)}case Oc:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(hs(o,a),i)};return r},xs=e=>Py(new Map,e)(0),Vt="",{toString:Ry}={},{keys:Iy}=Object,dn=e=>{const t=typeof e;if(t!=="object"||!e)return[kr,t];const n=Ry.call(e).slice(8,-1);switch(n){case"Array":return[hn,Vt];case"Object":return[er,Vt];case"Date":return[Yi,Vt];case"RegExp":return[Xi,Vt];case"Map":return[Qi,Vt];case"Set":return[Zi,Vt];case"DataView":return[hn,n]}return n.includes("Array")?[hn,n]:n.includes("Error")?[_c,n]:[er,n]},Dn=([e,t])=>e===kr&&(t==="function"||t==="symbol"),Ty=(e,t,n,r)=>{const i=(a,l)=>{const u=r.push(a)-1;return n.set(l,u),u},o=a=>{if(n.has(a))return n.get(a);let[l,u]=dn(a);switch(l){case kr:{let d=a;switch(u){case"bigint":l=Oc,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([Tc],a)}return i([l,d],a)}case hn:{if(u){let h=a;return u==="DataView"?h=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(a)),i([u,[...h]],a)}const d=[],f=i([l,d],a);for(const h of a)d.push(o(h));return f}case er:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const d=[],f=i([l,d],a);for(const h of Iy(a))(e||!Dn(dn(a[h])))&&d.push([o(h),o(a[h])]);return f}case Yi:return i([l,a.toISOString()],a);case Xi:{const{source:d,flags:f}=a;return i([l,{source:d,flags:f}],a)}case Qi:{const d=[],f=i([l,d],a);for(const[h,m]of a)(e||!(Dn(dn(h))||Dn(dn(m))))&&d.push([o(h),o(m)]);return f}case Zi:{const d=[],f=i([l,d],a);for(const h of a)(e||!Dn(dn(h)))&&d.push(o(h));return f}}const{message:c}=a;return i([l,{name:u,message:c}],a)};return o},gs=(e,{json:t,lossy:n}={})=>{const r=[];return Ty(!(t||n),!!t,new Map,r)(e),r},tr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xs(gs(e,t)):structuredClone(e):(e,t)=>xs(gs(e,t));function _y(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Oy(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Dy(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||_y,r=e.options.footnoteBackLabel||Oy,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const d=e.all(c),f=String(c.identifier).toUpperCase(),h=tn(f.toLowerCase());let m=0;const v=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++m<=x;){v.length>0&&v.push({type:"text",value:" "});let E=typeof n=="string"?n:n(u,m);typeof E=="string"&&(E={type:"text",value:E}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const y=d[d.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else d.push(...v);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(c,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tr(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
55`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
56`}]}}const Dc=(function(e){if(e==null)return By;if(typeof e=="function")return Er(e);if(typeof e=="object")return Array.isArray(e)?Ly(e):My(e);if(typeof e=="string")return zy(e);throw new Error("Expected function, string, or object as test")});function Ly(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dc(e[n]);return Er(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function My(e){const t=e;return Er(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function zy(e){return Er(t);function t(n){return n&&n.type===e}}function Er(e){return t;function t(n,r,i){return!!($y(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function By(){return!0}function $y(e){return e!==null&&typeof e=="object"&&"type"in e}const Lc=[],Vy=!0,bs=!1,Uy="skip";function Hy(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Dc(i),a=r?-1:1;l(e,void 0,[])();function l(u,c,d){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Lc,v,x,y;if((!t||o(u,c,d[d.length-1]||void 0))&&(m=Wy(n(u,d)),m[0]===bs))return m;if("children"in u&&u.children){const b=u;if(b.children&&m[0]!==Uy)for(x=(r?b.children.length:-1)+a,y=d.concat(b);x>-1&&x<b.children.length;){const E=b.children[x];if(v=l(E,x,y)(),v[0]===bs)return v;x=typeof v[1]=="number"?v[1]:x+a}}return m}}}function Wy(e){return Array.isArray(e)?e:typeof e=="number"?[Vy,e]:e
vendor: 13,978 bytes, lines 56-60
56==null?Lc:[e]}function Mc(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Hy(e,o,l,i);function l(u,c){const d=c[c.length-1],f=d?d.children.indexOf(u):void 0;return a(u,f,d)}}const xi={}.hasOwnProperty,qy={};function Gy(e,t){const n=t||qy,r=new Map,i=new Map,o=new Map,a={...Ay,...n.handlers},l={all:c,applyData:Yy,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:u,options:n,patch:Ky,wrap:Qy};return Mc(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,h=String(d.identifier).toUpperCase();f.has(h)||f.set(h,d)}}),l;function u(d,f){const h=d.type,m=l.handlers[h];if(xi.call(l.handlers,h)&&m)return m(l,d,f);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in d){const{children:x,...y}=d,b=tr(y);return b.children=l.all(d),b}return tr(d)}return(l.options.unknownHandler||Xy)(l,d,f)}function c(d){const f=[];if("children"in d){const h=d.children;let m=-1;for(;++m<h.length;){const v=l.one(h[m],d);if(v){if(m&&h[m-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=ys(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=ys(x.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function Ky(e,t){e.position&&(t.position=Px(e))}function Yy(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,tr(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Xy(e,t){const n=t.data||{},r="value"in t&&!(xi.call(n,"hProperties")||xi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Qy(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
57`});++r<e.length;)r&&n.push({type:"text",value:`
58`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
59`}),n}function ys(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vs(e,t){const n=Gy(e,t),r=n.one(e,void 0),i=Dy(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
60`},i),o}function Zy(e,t){return e&&"run"in e?async function(n,r){const i=vs(n,{file:r,...t});await e.run(i,r)}:function(n,r){return vs(n,{file:r,...e||t})}}function ws(e){if(e)throw e}var $r,ks;function Jy(){if(ks)return $r;ks=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!f)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},a=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},l=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return $r=function u(){var c,d,f,h,m,v,x=arguments[0],y=1,b=arguments.length,E=!1;for(typeof x=="boolean"&&(E=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<b;++y)if(c=arguments[y],c!=null)for(d in c)f=l(x,d),h=l(c,d),x!==h&&(E&&h&&(o(h)||(m=i(h)))?(m?(m=!1,v=f&&i(f)?f:[]):v=f&&o(f)?f:{},a(x,{name:d,newValue:u(E,v,h)})):typeof h<"u"&&a(x,{name:d,newValue:h}));return x},$r}var ev=Jy();const Vr=_s(ev);function gi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tv(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(u,...c){const d=e[++o];let f=-1;if(u){a(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,d?nv(d,l)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function nv(e,t){let n;return r;function r(...a){const l=e.length>a.length;let u;l&&a.push(i);try{u=e.apply(this,a)}catch(c){const d=c;if(l&&n)throw d;return i(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}const Ke={basename:rv,dirname:iv,extname:ov,join:sv,sep:"/"};function rv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function iv(e){if(Cn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ov(e){Cn(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function sv(...e){let t=-1,n;for(;++t<e.length;)Cn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":av(n)}function av(e){Cn(e);const t=e.codePointAt(0)===47;let n=lv(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function lv(e,t){let n="",r=0,i=-1,o=0,a=-1,l,u;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Cn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cv={cwd:uv};function uv(){return"/"}function bi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dv(e){if(typeof e=="string")e=new URL(e);else if(!bi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return fv(e)}function fv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ur=["history","path","basename","stem","extname","dirname"];class zc{constructor(t){let n;t?bi(t)?n={path:t}:typeof t=="string"||pv(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":cv.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ur.length;){const o=Ur[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ur.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ke.basename(this.path):void 0}set basename(t){Wr(t,"basename"),Hr(t,"basename"),this.path=Ke.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ke.dirname(this.path):void 0}set dirname(t){Es(this.basename,"dirname"),this.path=Ke.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ke.extname(this.path):void 0}set extname(t){if(Hr(t,"extname"),Es(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ke.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){bi(t)&&(t=dv(t)),Wr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ke.basename(this.path,this.extname):void 0}set stem(t){Wr(t,"stem"),Hr(t,"stem"),this.path=Ke.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new je(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hr(e,t){if(e&&e.includes(Ke.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ke.sep+"`")}function Wr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Es(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function pv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mv=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),hv={}.hasOwnProperty;class Ji extends mv{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=tv()}copy(){const t=new Ji;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Vr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Kr("data",this.frozen),this.namespace[t]=n,this):hv.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Kr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ln(t),r=this.parser||this.Parser;return qr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),qr("process",this.parser||this.Parser),Gr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const l=Ln(t),u=r.parse(l);r.run(u,l,function(d,f,h){if(d||!f||!h)return c(d);const m=f,v=r.stringify(m,h);bv(v)?h.value=v:h.result=v,c(d,h)});function c(d,f){d||!f?a(d):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),qr("processSync",this.parser||this.Parser),Gr("processSync",this.compiler||this.Compiler),this.process(t,i),Cs("processSync","process",n),r;function i(o,a){n=!0,ws(o),r=a}}run(t,n,r){Ss(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,l){const u=Ln(n);i.run(t,u,c);function c(d,f,h){const m=f||t;d?l(d):a?a(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Cs("runSync","run",r),i;function o(a,l){ws(a),i=l,r=!0}}stringify(t,n){this.freeze();const r=Ln(n),i=this.compiler||this.Compiler;return Gr("stringify",i),Ss(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Kr("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...f]=c;u(d,f)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=Vr(!0,i.settings,c.settings))}function l(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const f=c[d];o(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===c){h=f;break}if(h===-1)r.push([c,...d]);else if(d.length>0){let[m,...v]=d;const x=r[h][1];gi(x)&&gi(m)&&(m=Vr(!0,x,m)),r[h]=[c,m,...v]}}}}const xv=new Ji().freeze();function qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Kr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ss(e){if(!gi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ln(e){return gv(e)?e:new zc(e)}
60function gv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bv(e){return typeof e=="string"||yv(e)}function yv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ns=[],js={allowDangerousHtml:!0},wv=/^(https?|ircs?|mailto|xmpp)$/i,kv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ev(e){const t=Sv(e),n=Cv(e);return Nv(t.runSync(t.parse(n),n),e)}function Sv(e){const t=e.rehypePlugins||Ns,n=e.remarkPlugins||Ns,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...js}:js;return xv().use(ny).use(n).use(Zy,r).use(t)}function Cv(e){const t=e.children||"",n=new zc;return typeof t=="string"&&(n.value=t),n}function Nv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||jv;for(const d of kv)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+vv+d.id,void 0);return Mc(e,c),Ox(e,{Fragment:s.Fragment,components:i,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0});function c(d,f,h){if(d.type==="raw"&&h&&typeof f=="number")return a?h.children.splice(f,1):h.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let m;for(m in Mr)if(Object.hasOwn(Mr,m)&&Object.hasOwn(d.properties,m)){const v=d.properties[m],x=Mr[m];(x===null||x.includes(d.tagName))&&(d.properties[m]=u(String(v||""),m,d))}}if(d.type==="element"){let m=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!m&&r&&typeof f=="number"&&(m=!r(d,f,h)),m&&h&&typeof f=="number")return l&&d.children?h.children.splice(f,1,...d.children):h.children.splice(f,1),f}}}function jv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||wv.test(e.slice(0,t))?e:""}const As=[{id:"colis",label:"Colis",greeting:"Bonjour ! Je peux vérifier le statut de votre colis. C'est une démo : entrez n'importe quel numéro commençant par FR (ex : FR-1234-5678) pour tester."},{id:"dentiste",label:"Dentiste",greeting:"Bonjour ! Je suis l'assistant du cabinet dentaire Sourire Plus. Quel type de soin vous amène ?"},{id:"garagiste",label:"Garagiste",greeting:"Bonjour ! Je suis l'assistant du garage Auto Express. Quelle intervention souhaitez-vous planifier ?"}];function Yr(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2)+Date.now().toString(36)}function Fs(e){const t=e.toLowerCase();return t.includes("quota")&&t.includes("atteint")}function Av(e){const t=e.toLowerCase();return/\b(envoye|envoyé|confirme|confirmé|bonne journee|bonne journée)\b/.test(t)}function Fv(e){const t=e.toLowerCase();return/email|e-mail|adresse mail/.test(t)&&/\?/.test(e)}function Pv({open:e,onOpenChange:t}){const[n,r]=p.useState("colis"),[i,o]=p.useState(()=>Yr()),[a,l]=p.useState([]),[u,c]=p.useState(""),[d,f]=p.useState(!1),[h,m]=p.useState(!1),[v,x]=p.useState(!1),y=p.useRef(null),b=p.useRef(null),E=p.useMemo(()=>As.find(C=>C.id===n).greeting,[n]);p.useEffect(()=>{e&&(l([{role:"assistant",content:E,kind:"text"}]),m(!1),x(!1),c(""))},[n,e,E]),p.useEffect(()=>{y.current&&(y.current.scrollTop=y.current.scrollHeight)},[a]);const S=C=>{C!==n&&(r(C),o(Yr()))},F=()=>{o(Yr()),l([{role:"assistant",content:E,kind:"text"}]),m(!1),x(!1)},I=async()=>{const C=u.trim();if(!C||d||h)return;l(R=>[...R,{role:"user",content:C},{role:"typing"}]),c(""),f(!0);const L=new AbortController,O=setTimeout(()=>L.abort(),6e4);try{const R=await Ve("chat-agent",{scenario:n,sessionId:i,userMessage:C,userEmail:""},{signal:L.signal});clearTimeout(O);const P=await yh(R),D=typeof P?.reply=="string"&&P.reply.length>0?P.reply:"Reponse vide.";l(_=>{const z=_.filter(V=>V.role!=="typing");return Fs(D)?[...z,{role:"assistant",content:D,kind:"quota"}]:[...z,{role:"assistant",content:D,kind:"text"}]}),Fs(D)?m(!0):Av(D)&&x(!0)}catch(R){clearTimeout(O);const P=R?.message||"Impossible de contacter l'agent. Reessayez dans quelques instants.";l(D=>[...D.filter(_=>_.role!=="typing"),{role:"assistant",content:P,kind:"text"}])}finally{f(!1),setTimeout(()=>b.current?.focus(),50)}},k=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),I())},A=[...a].reverse().find(C=>C.role==="assistant"),j=!h&&!v&&A?.kind==="text"&&Fv(A.content);return s.jsx(et,{open:e,onOpenChange:t,children:s.jsxs(qe,{className:"max-w-[900px] w-[95vw] h-[85vh] p-0 gap-0 bg-white border border-[#
60E5E5E5] rounded-md flex flex-col",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[s.jsx(Ge,{className:"sr-only",children:"Agent IA Conversationnel"}),s.jsxs("div",{className:"px-5 py-4 border-b border-[#E5E5E5] bg-[#F0F7FF]",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF]",children:"Agent IA Conversationnel"}),s.jsx("p",{className:"mt-1 text-[13px] text-[#1A1A1A]",children:"Trois cas d'usage en démo live"}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:As.map(C=>{const L=C.id===n;return s.jsx("button",{type:"button",onClick:()=>S(C.id),className:"text-[13px] px-3 py-1.5 rounded-full border transition-colors duration-150",style:{background:L?"#1E90FF":"#FFFFFF",color:L?"#FFFFFF":"#1E90FF",borderColor:"#1E90FF"},children:C.label},C.id)})}),s.jsx("div",{className:"mt-3 p-3 rounded-md bg-white border border-[#E5E5E5]",style:{borderLeft:"3px solid #1E90FF"},children:s.jsx("p",{className:"text-[12px] text-[#1A1A1A] leading-relaxed",children:"🔵 Démo live — Cet agent consulte un vrai Google Calendar et envoie un email réel. Saisissez votre email personnel pour tester. Données non conservées."})})]}),s.jsx("div",{ref:y,className:"flex-1 overflow-y-auto px-5 py-4 bg-white",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[a.map((C,L)=>C.role==="typing"?s.jsx("div",{className:"flex justify-start",children:s.jsx("div",{className:"px-4 py-3 rounded-md text-[14px]",style:{background:"#F7F7F5",color:"#1F2937"},children:s.jsxs("span",{className:"inline-flex gap-1",children:[s.jsx(Xr,{delay:"0ms"}),s.jsx(Xr,{delay:"150ms"}),s.jsx(Xr,{delay:"300ms"})]})})},L):C.role==="user"?s.jsx("div",{className:"flex justify-end",children:s.jsx("div",{className:"max-w-[80%] px-4 py-3 rounded-md text-[14px] whitespace-pre-wrap break-words",style:{background:"#1F2937",color:"#FFFFFF"},children:C.content})},L):C.kind==="quota"?s.jsx("div",{className:"flex justify-start",children:s.jsxs("div",{className:"max-w-[90%] p-4 rounded-md border",style:{background:"#F0F7FF",borderColor:"#E5E5E5"},children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1F2937]",children:"Quota demo atteint"}),s.jsx("p",{className:"mt-2 text-[14px] text-[#1F2937]",children:"Cette demo est limitee a 30 echanges par jour pour eviter les abus."}),s.jsx("p",{className:"mt-1 text-[13px] text-[#787774]",children:"Revenez demain ou contactez-nous pour une demo personnalisee."}),s.jsx("a",{href:"https://manda-ia.com/fr/contact",target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-1 text-[13px] font-medium text-[#1F2937] hover:underline",children:"Discuter d'un projet →"})]})},L):s.jsx("div",{className:"flex justify-start",children:s.jsx("div",{className:"max-w-[80%] px-4 py-3 rounded-md text-[14px] prose prose-sm max-w-none prose-p:my-1 prose-ul:my-1 prose-ol:my-1 prose-li:my-0",style:{background:"#F7F7F5",color:"#1F2937"},children:s.jsx(Ev,{children:C.content})})},L)),v&&s.jsxs("div",{className:"mt-4 p-3 border border-[#E5E5E5] rounded-md flex items-center justify-between",children:[s.jsx("span",{className:"text-[13px] text-[#787774]",children:"Conversation terminee"}),s.jsx("button",{type:"button",onClick:F,className:"text-[13px] font-medium text-[#1F2937] hover:underline",children:"Nouvelle conversation"})]})]})}),s.jsxs("div",{className:"px-5 py-4 border-t border-[#E5E5E5] bg-white",children:[j&&s.jsx("p",{className:"mb-2 text-[12px] text-[#787774]",children:"L'agent vous demande votre email. Saisissez une adresse valide pour recevoir la confirmation."}),s.jsxs("div",{className:"flex items-end gap-2",children:[s.jsx("textarea",{ref:b,value:u,onChange:C=>c(C.target.value.slice(0,1e3)),onKeyDown:k,rows:1,maxLength:1e3,disabled:h,placeholder:h?"Quota atteint, revenez demain":"Tapez votre message...",className:"flex-1 resize-none px-3 py-2 text-[14px] border border-[#E5E5E5] rounded-md focus:outline-none focus:border-[#1F2937] transition-colors duration-150 disabled:bg-[#F7F7F5] disabled:cursor-not-allowed",style:{minHeight:40,maxHeight:120,color:"#1F2937"}}),s.jsx(ue,{onClick:I,disabled:d||h||!u.trim(),className:"bg-[#1E90FF] hover:bg-[#187bcd] text-white rounded-full px-5 h-10 text-[14px] font-medium",children:"Envoyer"})]})]})]})})}function Xr({delay:e}){return s.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:"#787774",animation:"chatdot 1s infinite ease-in-out",animationDelay:e}})}if(typeof document<"u"&&!document.getElementById("chatdot-kf")){const e=document.createElement("style");e.id="chatdot-kf",e.textContent="@keyframes chatdot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}",document.head.appendChild(e)}async function eo(e,t,n,r){const i=localStorage.getItem("agent_session_id")||crypto.randomUUID();localStorage.setItem("agent_session_id",i);const o="Impossible de contacter l'agent. Reessayez dans quelques instants.";let a;try{a=await Ve(e,{agent_type:t,session_id:i,scenario_id:r,user_input:n})}catch{throw new Error(o)}let l=null;try{l=await a.json()}catch{}const u=l?.error?.message||(typeof l?.error=="string"?l.error:null);if(!a.ok)throw new Error(u||o);if(!l||l.success===!1)throw new Error(u||o);return l}const Rv=["Analyse en cours...","Consultation des sources...","Generation de la reponse..."];function to({steps:e=Rv,durationMs:t=15e3}){const[n,r]=p.useState(0);return p.useEffect(()=>{const i=Math.max(1500,Math.floor(t/e.length)),o=setInterval(()=>r(a=>(a+1)%e.length),i);return()=>clearInterval(o)},[t,e.length]),s.jsxs("div",{className:"mt-8 flex flex-col items-center gap-5",children:[s.jsx("div",{className:"w-7 h-7 border-2 border-[#1E90FF] border-t-transparent roun
60ded-full animate-spin"}),s.jsx("div",{className:"w-full h-px bg-[#e9e9e7] overflow-hidden",children:s.jsx("div",{className:"h-full bg-[#1E90FF]",style:{animation:`agentProg ${t}ms linear forwards`}})}),s.jsx("ul",{className:"w-full flex flex-col gap-1.5",children:e.map((i,o)=>s.jsxs("li",{className:`text-sm font-mono transition-opacity ${o===n?"opacity-100 text-[#1A1A1A]":"opacity-40 text-[#6B7280]"}`,children:[o===n?"> ":"  ",i]},o))}),s.jsx("style",{children:"@keyframes agentProg { from { width: 0% } to { width: 100% } }"})]})}function Yt(){return s.jsx("p",{className:"mt-6 text-xs text-[#6B7280] italic",children:"En version production, cet agent peut etre connecte a vos outils metier : CRM, ERP, Drive, SharePoint, email ou Slack."})}function Bc({severity:e}){const t={low:{bg:"#F4F8FF",color:"#1E90FF",label:"Faible"},medium:{bg:"#FFF7E6",color:"#B45309",label:"Moyen"},high:{bg:"#FDECEC",color:"#C5392F",label:"Eleve"}},n=t[e]??t.low;return s.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium px-2 py-0.5 rounded-full",style:{background:n.bg,color:n.color},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:n.color}}),n.label]})}const Iv=[{id:"kbis",label:"Kbis"},{id:"rib",label:"RIB"},{id:"contrat_signe",label:"Contrat signe"},{id:"piece_identite_dirigeant",label:"Piece d'identite dirigeant"},{id:"mandat_signature",label:"Mandat de signature"},{id:"justificatif_adresse",label:"Justificatif d'adresse"},{id:"aucun",label:"Aucun document"}];function Tv({open:e,onOpenChange:t}){const[n,r]=p.useState(""),[i,o]=p.useState(""),[a,l]=p.useState(""),[u,c]=p.useState("client"),[d,f]=p.useState(""),[h,m]=p.useState([]),[v,x]=p.useState(),[y,b]=p.useState(null),E=st({mutationFn:()=>eo("agent-kyb","kyb",{company_name:n,legal_id:i,city:a,relationship_type:u,sector:d,documents_available:h},v),onSuccess:C=>b(C)}),S=C=>{C==="nova"?(r("Nova Conseil SAS"),o("812345678"),l("Paris"),c("client"),f("Conseil"),m(["kbis","rib","contrat_signe"]),x("nova")):C==="batiment"?(r("Batiment Plus SARL"),o("423456789"),l("Lyon"),c("fournisseur"),f("BTP"),m(["kbis"]),x("batiment")):(r("Global Import Services"),o("734567890"),l("Marseille"),c("sous-traitant"),f("Import / Export"),m(["rib","contrat_signe"]),x("global"))},F=C=>m(L=>L.includes(C)?L.filter(O=>O!==C):[...L,C]),I=()=>{b(null),E.reset()},k=C=>{C||(I(),x(void 0)),t(C)},A=C=>C==="eleve"?{bg:"#FDECEC",color:"#C5392F"}:C==="modere"?{bg:"#FFF7E6",color:"#B45309"}:{bg:"#F4F8FF",color:"#1E90FF"},j=(n.trim()||i.trim())&&!E.isPending;return s.jsx(et,{open:e,onOpenChange:k,children:s.jsxs(qe,{className:"w-[95vw] max-w-[900px] p-6 border border-[#e9e9e7] rounded-md shadow-none gap-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"CONFORMITE / ONBOARDING"}),s.jsx(Ge,{className:"mt-1 text-[24px] md:text-[28px] font-semibold leading-[1.3] text-[#1E90FF]",children:"Onboarding et KYB"}),!E.isPending&&!y&&s.jsxs("form",{className:"mt-6 flex flex-col gap-5",onSubmit:C=>{C.preventDefault(),E.mutate()},children:[s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx("button",{type:"button",onClick:()=>S("nova"),className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Nova Conseil SAS — client"}),s.jsx("button",{type:"button",onClick:()=>S("batiment"),className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Batiment Plus SARL — fournisseur"}),s.jsx("button",{type:"button",onClick:()=>S("global"),className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Global Import Services — sous-traitant"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Nom de l'entreprise"}),s.jsx(Se,{value:n,onChange:C=>r(C.target.value),className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"SIREN"}),s.jsx(Se,{value:i,onChange:C=>o(C.target.value.replace(/\D/g,"").slice(0,9)),placeholder:"9 chiffres",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Ville"}),s.jsx(Se,{value:a,onChange:C=>l(C.target.value),className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Type de relation"}),s.jsxs(br,{value:u,onValueChange:c,children:[s.jsx(wn,{className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]",children:s.jsx(yr,{})}),s.jsxs(kn,{children:[s.jsx(Ee,{value:"prospect",children:"Prospect"}),s.jsx(Ee,{value:"client",children:"Client"}),s.jsx(Ee,{value:"fournisseur",children:"Fournisseur"}),s.jsx(Ee,{value:"partenaire",children:"Partenaire"}),s.jsx(Ee,{value:"sous-traitant",children:"Sous-traitant"})]})]})]}),s.jsxs("div",{className:"grid gap-2 md:col-span-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Secteur d'activite"}),s.jsx(Se,{value:d,onChange:C=>f(C.target.value),className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Documents disponibles"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:Iv.map(C=>{const L=h.includes(C.id);return s.jsx("button",{type:"button",onClick:()=>F(C.id),className:`text-xs px-3 py-1 rounded-full border transition-colors ${L?"bg-[#1E90FF] text-white border-[#1E90FF]":"border-[#e9e9e7] text-[#1A1A1A] hover:border-[#1E90FF]"}`,children:C.label},C.id)})})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{type:"submit",disabled:!j,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-lg",children:"Lancer l'analyse"}),s.jsx("button",{type:"button",onClick:()=>k(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Annuler"})]}),s.jsx(Yt,{})]}),E.isPending&&s.jsx(to,{durationMs:15e3}),E.isError&&!E.isPending&&s.jsxs("div",{className:"mt-6",children:[s.jsx("p",{className:"text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:E.error.message}),s.jsxs("div",{className:"mt-4 flex gap-3",children:[s.jsx(ue,{onClick:()=>E.mutate(),className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reessayer"}),s.jsx("button",{onClick:I,className:"text-sm text-[#6B7280] hover:text-[#1A1A1A] underline",children:"Reinitialiser"})]})]}),y&&!E.isPending&&(()=>{const C=y.result,L=A(C.risk_level);return s.jsxs("div",{className:"mt-6 flex flex-col gap-4",children:[s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Identification"}),s.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-xs",children:[s.jsx("span",{className:"font-mono bg-[#f7f6f3] px-2 py-1 rounded",children:C.company_identification.name}),s.jsxs("span",{className:"font-mono bg-[#f7f6f3] px-2 py-1 rounded",children:["SIREN ",C.company_identification.legal_id||"—"]}
60),s.jsx("span",{className:"font-mono bg-[#f7f6f3] px-2 py-1 rounded",children:C.company_identification.city||"—"}),s.jsx("span",{className:"font-mono bg-[#f7f6f3] px-2 py-1 rounded",children:C.company_identification.sector||"—"})]}),(C.apparent_status||C.declared_activity||C.relationship_type)&&s.jsxs("dl",{className:"mt-3 grid sm:grid-cols-3 gap-3 text-xs",children:[C.relationship_type&&s.jsxs("div",{children:[s.jsx("dt",{className:"text-[#6B7280] uppercase tracking-wider",children:"Relation"}),s.jsx("dd",{className:"mt-0.5 text-[#1A1A1A]",children:C.relationship_type})]}),C.apparent_status&&s.jsxs("div",{children:[s.jsx("dt",{className:"text-[#6B7280] uppercase tracking-wider",children:"Statut apparent"}),s.jsx("dd",{className:"mt-0.5 text-[#1A1A1A]",children:C.apparent_status})]}),C.declared_activity&&s.jsxs("div",{children:[s.jsx("dt",{className:"text-[#6B7280] uppercase tracking-wider",children:"Activite declaree"}),s.jsx("dd",{className:"mt-0.5 text-[#1A1A1A]",children:C.declared_activity})]})]})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Score et risque"}),s.jsxs("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full",style:{background:L.bg,color:L.color},children:["Risque ",C.risk_level]})]}),s.jsxs("div",{className:"mt-3 flex items-center gap-3",children:[s.jsx("div",{className:"flex-1 h-2 bg-[#f0f0ee] rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-[#1E90FF]",style:{width:`${C.completeness_score}%`}})}),s.jsxs("span",{className:"text-sm font-semibold text-[#1A1A1A]",children:[C.completeness_score,"/100"]})]}),s.jsx("div",{className:"mt-3 bg-[#EBF5FF] p-3 rounded-md text-xs text-[#1A1A1A]",style:{borderLeft:"3px solid #1E90FF"},children:`Cette evaluation prepare une validation humaine. Aucune conclusion automatique "valide", "conforme" ou "accepte" n'est emise par l'agent.`})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4 grid md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Documents recus"}),s.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.documents_received.length===0?s.jsx("span",{className:"text-xs text-[#6B7280]",children:"Aucun"}):C.documents_received.map(O=>s.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-[#F4F8FF] text-[#1E90FF]",children:O},O))})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Documents manquants"}),s.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.documents_missing.length===0?s.jsx("span",{className:"text-xs text-[#6B7280]",children:"Aucun"}):C.documents_missing.map(O=>s.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full border border-[#e9e9e7] text-[#1A1A1A]",children:O},O))})]})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Anomalies detectees"}),C.anomalies.length===0?s.jsx("p",{className:"mt-2 text-sm text-[#6B7280]",children:"Aucune anomalie significative."}):s.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:C.anomalies.map((O,R)=>s.jsxs("li",{className:"flex items-start gap-2 text-sm text-[#1A1A1A]",children:[s.jsx(Bc,{severity:O.severity}),s.jsx("span",{children:O.message})]},R))})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Actions recommandees"}),s.jsx("ol",{className:"mt-2 list-decimal pl-5 text-sm text-[#1A1A1A] flex flex-col gap-1",children:C.recommended_actions.map((O,R)=>s.jsx("li",{children:O},R))})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Email de relance"}),s.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(C.follow_up_email.body),ze("Copie")},className:"text-xs underline text-[#1E90FF]",children:"Copier"})]}),s.jsxs("p",{className:"mt-2 text-sm font-medium text-[#1A1A1A]",children:["Objet : ",C.follow_up_email.subject]}),s.jsx("pre",{className:"mt-2 whitespace-pre-wrap font-mono text-xs bg-[#f7f6f3] p-3 rounded text-[#1A1A1A]",children:C.follow_up_email.body})]}),s.jsx("p",{className:"text-xs italic text-[#6B7280]",children:C.reasoning_summary}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx(ue,{onClick:I,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reinitialiser"}),s.jsx("button",{onClick:()=>k(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Fermer"})]}),s.jsx(Yt,{})]})})()]})})}const Mn={contrat:`CONTRAT DE PRESTATION DE SERVICES
61
62Entre les soussignes :
63La societe ACME SAS, dont le siege social est situe 12 rue de la Paix, 75002 Paris, representee par Monsieur Jean Dupont, ci-apres denommee "le Prestataire",
64Et la societe ZETA SARL, dont le siege social est situe 5 avenue Victor Hugo, 69002 Lyon, representee par Madame Marie Martin, ci-apres denommee "le Client",
65
66Article 1 - Objet
67Le Prestataire s'engage a fournir au Client des prestations de conseil en transformation digitale, conformement aux specifications de l'annexe 1.
68
69Article 2 - Duree
70Le present contrat est conclu pour une duree de 12 mois a compter du 1er janvier 2026, renouvelable tacitement par periodes de 6 mois sauf denonciation par l'une des parties avec un preavis de 60 jours.
71
72Article 3 - Remuneration
73Le montant total des prestations est fixe a 48 000 EUR HT, payable par mensualites de 4 000 EUR HT a reception de facture, sous 30 jours.
74
75Article 4 - Confidentialite
76Chaque partie s'engage a maintenir confidentielles toutes informations echangees dans le cadre du present contrat.
77
78Article 5 - Resiliation
79En cas de manquement grave, le contrat pourra etre resilie de plein droit apres mise en demeure restee infructueuse pendant 30 jours.
80
81Fait a Paris, le 15 decembre 2025, en deux exemplaires originaux.`,facture:`FACTURE N° 2026-0142
82
83Date d'emission : 12 janvier 2026
84Date d'echeance : 11 fevrier 2026
85
86Emetteur : ACME SAS - 12 rue de la Paix, 75002 Paris - SIREN 123 456 789 - TVA FR12345678901
87Client : ZETA SARL - 5 avenue Victor Hugo, 69002 Lyon - SIREN 987 654 321
88
89Designation                          Quantite    PU HT       Total HT
90Prestation conseil - decembre 2025   10 jours    800 EUR     8 000 EUR
91Atelier strategie produit            1 forfait   1 500 EUR   1 500 EUR
92
93Total HT : 9 500 EUR
94TVA 20% : 1 900 EUR
95Total TTC : 11 400 EUR
96
97Conditions de paiement : virement bancaire sous 30 jours.
98IBAN : FR76 1234 5678 9012 3456 7890 123
99Penalites de retard : 3 fois le taux d'interet legal. Indemnite forfaitaire pour frais de recouvrement : 40 EUR.`,kbis:`EXTRAIT KBIS
100
101Identification de la personne morale
102Denomination : ACME SAS
103Forme juridique : Societe par actions simplifiee
104SIREN : 812 345 678
105RCS : Paris B 812 345 678
106Date d'immatriculation : 12 mars 2018
107Capital social : 50 000 EUR
108Siege social : 12 rue de la Paix, 75002 Paris
109
110Activite principale (APE 7022Z) : Conseil pour les affaires et autres conseils de gestion
111
112Dirigeant principal
113President : Monsieur Jean Dupont, ne le 4 juin 1980 a Lyon, demeurant 8 avenue Foch, 75116 Paris
114
115Observations
116Aucune procedure collective en cours a la date de la presente.
117
118Document delivre par le greffe du Tribunal de commerce de Paris, le 5 janvier 2026.`,appel_offres:`APPEL D'OFFRES - REFONTE DU SITE INTERNET
119
120Pouvoir adjudicateur : Mairie de Saint-Cloud (92210)
121Reference : MAR-2026-014
122Date de publication : 8 janvier 2026
123Date limite de remise des offres : 28 fevrier 2026 a 12h00
124Mode de passation : procedure adaptee (article R2123-1 du Code de la commande publique)
125
126Objet
127Conception, developpement et hebergement du nouveau site internet de la commune, incluant un espace citoyen, un module de demarches en ligne et un module d'actualites.
128
129Allotissement
130Lot 1 - Conception et developpement
131Lot 2 - Hebergement et infogerance (3 ans)
132
133Criteres d'attribution
134- Valeur technique de l'offre : 60%
135- Prix des prestations : 30%
136- Performance environnementale (eco-conception) : 10%
137
138Conditions de participation
139Le candidat devra produire un Kbis de moins de 3 mois, ses attestations fiscales et sociales, et 3 references comparables.
140
141Renseignements : [email protected]`};function _v({open:e,onOpenChange:t}){const[n,r]=p.useState("auto"),[i,o]=p.useState(""),[a,l]=p.useState(null),u=st({mutationFn:()=>eo("agent-document-analysis","document_analysis",{document_text:i,expected_type:n}),onSuccess:h=>l(h)}),c=()=>{l(null),u.reset()},d=h=>{h||c(),t(h)},f=i.trim().length>=30&&i.length<=2e4;return s.jsx(et,{open:e,onOpenChange:d,children:s.jsxs(qe,{className:"w-[95vw] max-w-[900px] p-6 border border-[#e9e9e7] rounded-md shadow-none gap-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"ANALYSE DE DOCUMENTS"}),s.jsx(Ge,{className:"mt-1 text-[24px] md:text-[28px] font-semibold leading-[1.3] text-[#1E90FF]",children:"Analyse documentaire"}),!u.isPending&&!a&&s.jsxs("form",{className:"mt-6 flex flex-col gap-5",onSubmit:h=>{h.preventDefault(),u.mutate()},children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Type de document attendu"}),s.jsxs(br,{value:n,onValueChange:r,children:[s.jsx(wn,{className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]",children:s.jsx(yr,{})}),s.jsxs(kn,{children:[s.jsx(Ee,{value:"auto",children:"Auto-detection"}),s.jsx(Ee,{value:"contrat",children:"Contrat"}),s.jsx(Ee,{value:"facture",children:"Facture"}),s.jsx(Ee,{value:"kbis",children:"Kbis"}),s.jsx(Ee,{value:"appel_offres",children:"Appel d'offres"}),s.jsx(Ee,{value:"autre",children:"Autre"})]})]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx("button",{type:"button",onClick:()=>{o(Mn.contrat),r("contrat")},className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Contrat de prestation"}),s.jsx("button",{type:"button",onClick:()=>{o(Mn.facture),r("facture")},className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Facture"}),s.jsx("button",{type:"button",onClick:()=>{o(Mn.kbis),r("kbis")},className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Kbis"}),s.jsx("button",{type:"button",onClick:()=>{o(Mn.appel_offres),r("appel_offres")},className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF]",children:"Appel d'offres"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Texte du document"}),s.jsx(gn,{value:i,onChange:h=>o(h.target.value.slice(0,2e4)),rows:12,placeholder:"Collez ici le texte du document a analyser (30 a 20 000 caracteres).",className:"min-h-[260px] focus-visible:ring-0 focus-visible:border-[#1E90FF]"}),s.jsxs("p",{className:"text-xs text-[#6B7280]",children:[i.length," / 20 000 caracteres"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{type:"submit",disabled:!f||u.isPending,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-lg",children:"Lancer l'analyse"}),s.jsx("button",{type:"button",onClick:()=>d(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Annuler"})]}),s.jsx(Yt,{})]}),u.isPending&&s.jsx(to,{durationMs:1e4,steps:["Analyse en cours...","Extraction des informations cles...","Generation de la synthese..."]}),u.isError&&!u.isPending&&s.jsxs("div",{className:"mt-6",children:[s.jsx("p",{className:"text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:u.error.message}),s.jsxs("div",{className:"mt-4 flex gap-3",children:[s.jsx(ue,{onClick:()=>u.mutate(),className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reessayer"}),s.jsx("button",{onClick:c,className:"text-sm text-[#6B7280] hover:text-[#1A1A1A] underline",children:"Reinitialiser"})]})]}),a&&!u.isPending&&(()=>{const h=a.result;return s.jsxs("div",{className:"mt-6 flex flex-col gap-4",children:[s.jsxs("div",{className:"flex items-center justify-between border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("span",{className:"text-xs font-semibold px-2 py-1 rounded-full bg-[#F4F8FF] text-[#1E90FF] uppercase tracking-wider",children:h.document_type}),s.jsxs("span",{className:"text-xs text-[#6B7280]",children:[i.length," caracteres analyses"]})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Resume"}),s.jsx("p",{className:"mt-2 text-sm text-[#1A1A1A] leading-relaxed",children:h.summary})]}),(()=>{const m=h.synthesis_table??h.key_information??[];return m.length===0?null:s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Tableau de synthese"}),s.jsx("table",{className:"mt-2 w-full text-sm",children:s.jsx("tbody",{children:m.map((v,x)=>s.jsxs("tr",{className:"border-b border-[#f0f0ee] last:border-0",children:[s.jsx("td",{className:"py-2 pr-3 text-[#6B7280] w-1/3",children:v.label}),s.jsx("td",{className:"py-2 text-[#1A1A1A]",children:v.value})]},x))})})]})})(),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Points d'attention"}),h.attention_points.length===0?s.jsx("p",{className:"mt-2 text-sm text-[#6B7280]",children:"Aucun point d'attention."}):s.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:h.attention_points.map((m,v)=>s.jsxs("li",{className:"flex items-start gap-2 text-sm text-[#1A1A1A]",children:[s.jsx(Bc,{severity:m.severity}),s.jsx("span",{children:m.message})]},v))})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Actions recommandees"}),s.jsx("ol",{className:"mt-2 list-decimal pl-5 text-sm text-[#1A1A1A] flex flex-col gap-1",children:h.recommended_actions.map((m,v)=>s.jsx("li",{children:m},v))})]}),s.jsx("div",{className:"bg-[#EBF5FF] p-3 rounded-md text-xs text-[#1A1A1A]",style:{borderLeft:"3px solid #1E90FF"},children:h.disclaimer||"Cette lecture structuree ne constitue pas un conseil juridique."}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx(ue,{onClick:c,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reinitialiser"}),s.jsx("button",{onClick:()=>d(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Fermer"})]}),s.jsx(Yt,{})]})})()]})})}async function Ov(e){const t=await ro(()=>import("./pdf-gh-BrLFn.js"),[]),n=await ro(()=>import("./pdf.worker.min-ocdtAcA3.js"),[]);t.GlobalWorkerOptions.workerSrc=n.default;
141const r=new Uint8Array(await e.arrayBuffer()),i=await t.getDocument({data:r}).promise,o=[];for(let a=1;a<=i.numPages;a+=1){const u=await(await i.getPage(a)).getTextContent();o.push(u.items.map(c=>"str"in c?c.str:"").join(" "))}return{text:o.join(`
142`).replace(/[ \t]+/g," ").trim(),pages:i.numPages}}async function Dv(e){let t;try{t=await Ve("rag-ingest-document",{user_input:{...e,metadata:{source:"n8n-showcase"}}})}catch{throw new Error("Indexation impossible. Reessayez dans quelques instants.")}if(!t.ok)throw new Error("Indexation impossible. Reessayez dans quelques instants.");let n;try{n=await t.json()}catch{throw new Error("Indexation impossible. Reessayez dans quelques instants.")}if(!n?.success)throw new Error("Indexation impossible. Reessayez dans quelques instants.");return n}function Lv(e){return e.result?.chunks_embedded??e.chunks_embedded??e.result?.chunks_created??e.chunks_created??0}const Mv=[{id:"saas-b2b",label:"SaaS B2B"},{id:"e-commerce",label:"E-commerce"},{id:"cabinet-comptable",label:"Cabinet comptable"},{id:"organisme-formation",label:"Organisme de formation"},{id:"rh-interne",label:"Service RH interne"}],zv={"saas-b2b":["Comment modifier mon abonnement ?"],"e-commerce":["Quels sont les delais de remboursement ?"],"cabinet-comptable":["Quels documents fournir pour creer mon dossier ?"],"organisme-formation":["Comment obtenir une attestation de formation ?"],"rh-interne":["Quels documents transmettre avant le premier jour d'un nouveau salarie ?"]};function Bv({open:e,onOpenChange:t}){const[n,r]=p.useState("saas-b2b"),[i,o]=p.useState(""),[a,l]=p.useState(null),[u,c]=p.useState("text"),[d,f]=p.useState(""),[h,m]=p.useState(""),[v,x]=p.useState(""),[y,b]=p.useState(null),[E,S]=p.useState(null),[F,I]=p.useState(!1),k=st({mutationFn:()=>eo("agent-support-rag","support_rag",{kb_id:n,question:i}),onSuccess:P=>l(P)}),A=st({mutationFn:()=>Dv({kb_id:n,title:d.trim()||"Document importe",source_url:h.trim()||void 0,document_text:v}),onSuccess:P=>b(P)}),j=async P=>{if(P){I(!0),S(null);try{const{text:D,pages:_}=await Ov(P);if(D.length<1){S("Aucun texte extrait : ce PDF est probablement scanne (image), sans couche texte.");return}x(D),d.trim()||f(P.name.replace(/\.pdf$/i,"")),h.trim()||m(`upload://${P.name}`),S(`PDF lu : ${_} page(s), ${D.length} caracteres extraits.`)}catch{S("Lecture du PDF impossible. Reessaie avec un autre fichier.")}finally{I(!1)}}},C=()=>{l(null),k.reset(),b(null)},L=P=>{P||C(),t(P)},O=i.trim().length>=5&&i.length<=1e3,R=P=>P==="high"?{bg:"#E7F5EC",color:"#1E7D38"}:P==="medium"?{bg:"#FFF7E6",color:"#B45309"}:P==="none"?{bg:"#FDECEC",color:"#C5392F"}:{bg:"#F0F0EE",color:"#6B7280"};return s.jsx(et,{open:e,onOpenChange:L,children:s.jsxs(qe,{className:"w-[95vw] max-w-[900px] p-6 border border-[#e9e9e7] rounded-md shadow-none gap-0 overflow-y-auto max-h-[90vh] bg-white",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#1E90FF] font-semibold",children:"SUPPORT ET KNOWLEDGE BASE"}),s.jsx(Ge,{className:"mt-1 text-[24px] md:text-[28px] font-semibold leading-[1.3] text-[#1E90FF]",children:"Support documentaire (RAG)"}),!k.isPending&&!a&&s.jsxs("form",{className:"mt-6 flex flex-col gap-5",onSubmit:P=>{P.preventDefault(),k.mutate()},children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Base documentaire"}),s.jsxs(br,{value:n,onValueChange:P=>{r(P),o("")},children:[s.jsx(wn,{className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]",children:s.jsx(yr,{})}),s.jsx(kn,{children:Mv.map(P=>s.jsx(Ee,{value:P.id,children:P.label},P.id))})]})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280] font-semibold",children:"Indexer un document"}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:["text","pdf"].map(P=>s.jsx("button",{type:"button",onClick:()=>c(P),className:`text-xs px-3 py-1 border border-[#1E90FF] rounded-full ${u===P?"bg-[#1E90FF] text-white":"text-[#1E90FF] hover:bg-[#F4F8FF]"}`,children:P==="text"?"Texte":"PDF"},P))}),s.jsxs("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("div",{className:"grid gap-1.5",children:[s.jsx(xe,{className:"text-xs text-[#6B7280]",children:"Titre"}),s.jsx(Se,{value:d,onChange:P=>f(P.target.value),className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]}),s.jsxs("div",{className:"grid gap-1.5",children:[s.jsx(xe,{className:"text-xs text-[#6B7280]",children:"Source URL"}),s.jsx(Se,{value:h,onChange:P=>m(P.target.value),placeholder:u==="pdf"?"upload://document.pdf":"upload://document.txt",className:"focus-visible:ring-[#1E90FF] focus-visible:border-[#1E90FF]"})]})]}),s.jsx("div",{className:"mt-3",children:s.jsxs(xe,{className:"inline-flex items-center gap-2 text-sm cursor-pointer border border-[#e9e9e7] rounded-md px-3 py-2 hover:bg-[#F4F8FF] text-[#1A1A1A]",children:[F?s.jsx(ht,{className:"w-4 h-4 animate-spin"}):s.jsx(md,{className:"w-4 h-4"}),u==="pdf"?F?"Lecture du PDF...":"Choisir un PDF":"Choisir un fichier texte",u==="pdf"?s.jsx("input",{type:"file",accept:"application/pdf,.pdf",className:"hidden",disabled:F,onChange:P=>j(P.target.files?.[0])}):s.jsx("input",{type:"file",accept:".txt,.md,.csv,.json",className:"hidden",onChange:async P=>{const D=P.target.files?.[0];if(!D)return;const _=await D.text();x(_),d.trim()||f(D.name),h.trim()||m(`upload://${D.name}`)}})]})}),u==="pdf"&&E&&s.jsx("p",{className:"mt-2 text-xs text-[#6B7280]",children:E}
142),s.jsx(gn,{value:v,onChange:P=>x(P.target.value),rows:5,placeholder:u==="pdf"?"Le texte extrait du PDF apparaitra ici. Tu peux l'ajuster avant indexation.":"Colle un contenu ou importe un fichier.",className:"mt-3 focus-visible:ring-0 focus-visible:border-[#1E90FF]"}),s.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[s.jsxs(ue,{type:"button",variant:"outline",onClick:()=>A.mutate(),disabled:v.trim().length<30||A.isPending,className:"border-[#1E90FF] text-[#1E90FF] hover:bg-[#F4F8FF] rounded-lg",children:[A.isPending&&s.jsx(ht,{className:"mr-2 h-4 w-4 animate-spin"}),"Indexer document"]}),y&&s.jsxs("span",{className:"text-xs text-[#1E7D38]",children:["Document indexe : ",Lv(y)," chunk(s)"]}),A.isError&&s.jsx("span",{className:"text-xs text-[#C5392F]",children:A.error.message})]})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Suggestions"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:zv[n].map(P=>s.jsx("button",{type:"button",onClick:()=>o(P),className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF] text-left",children:P},P))})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(xe,{className:"font-semibold text-[#1A1A1A]",children:"Votre question"}),s.jsx(gn,{value:i,onChange:P=>o(P.target.value.slice(0,1e3)),rows:4,placeholder:"Posez votre question (5 a 1000 caracteres).",className:"focus-visible:ring-0 focus-visible:border-[#1E90FF]"}),s.jsxs("p",{className:"text-xs text-[#6B7280]",children:[i.length," / 1000 caracteres"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{type:"submit",disabled:!O,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-lg",children:"Lancer l'analyse"}),s.jsx("button",{type:"button",onClick:()=>L(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Annuler"})]}),s.jsx(Yt,{})]}),k.isPending&&s.jsx(to,{durationMs:8e3,steps:["Embedding de la question...","Consultation de la base documentaire...","Generation de la reponse..."]}),k.isError&&!k.isPending&&s.jsxs("div",{className:"mt-6",children:[s.jsx("p",{className:"text-sm text-[#c5392f] bg-[#fdeded] border border-[#f4cfcd] rounded-md p-3",children:k.error.message}),s.jsxs("div",{className:"mt-4 flex gap-3",children:[s.jsx(ue,{onClick:()=>k.mutate(),className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reessayer"}),s.jsx("button",{onClick:C,className:"text-sm text-[#6B7280] hover:text-[#1A1A1A] underline",children:"Reinitialiser"})]})]}),a&&!k.isPending&&(()=>{const P=a.result,D=a.metadata||{},_=R(P.confidence);return s.jsxs("div",{className:"mt-6 flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 border border-[#e9e9e7] rounded-lg p-4",children:[s.jsxs("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full uppercase tracking-wider",style:{background:_.bg,color:_.color},children:["Confiance ",P.confidence]}),typeof D.best_similarity=="number"&&s.jsxs("span",{className:"text-xs text-[#6B7280]",children:["Similarite : ",(D.best_similarity*100).toFixed(0),"%"]}),typeof D.match_count=="number"&&s.jsxs("span",{className:"text-xs text-[#6B7280]",children:[D.match_count," extraits"]})]}),s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Reponse"}),s.jsx("p",{className:"mt-2 text-sm font-semibold text-[#1A1A1A]",children:P.short_answer}),s.jsx("p",{className:"mt-2 text-sm text-[#1A1A1A] leading-relaxed whitespace-pre-wrap",children:P.detailed_answer})]}),(P.needs_human_escalation||!P.information_found)&&s.jsxs("div",{className:"bg-[#FDECEC] p-3 rounded-md",style:{borderLeft:"3px solid #C5392F"},children:[s.jsx("p",{className:"text-sm font-semibold text-[#C5392F]",children:"Escalade humaine recommandee"}),P.escalation_message&&s.jsx("p",{className:"mt-1 text-sm text-[#1A1A1A]",children:P.escalation_message}),s.jsx("a",{href:"mailto:[email protected]",className:"mt-2 inline-block text-xs underline text-[#1E90FF]",children:"Contacter le support"})]}),P.sources.length>0&&s.jsxs("div",{className:"border border-[#e9e9e7] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:"Sources"}),s.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:P.sources.map((z,V)=>s.jsxs("li",{className:"border border-[#f0f0ee] rounded-md p-3",children:[s.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[s.jsx("p",{className:"text-sm font-medium text-[#1A1A1A]",children:z.title}),z.section&&s.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#6B7280]",children:z.section})]}),z.excerpt&&s.jsxs("p",{className:"mt-1 text-xs text-[#1A1A1A] italic leading-relaxed",children:["« ",z.excerpt," »"]}),z.source_url&&s.jsx("a",{href:z.source_url,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block text-xs font-mono text-[#1E90FF] underline break-all",children:z.source_url})]},V))})]}),s.jsx("p",{className:"text-xs italic text-[#6B7280]",children:"Ce module ne fabrique aucune information : si la reponse n'est pas dans la base, l'agent le dit explicitement."}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx(ue,{onClick:C,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white",children:"Reinitialiser"}),s.jsx("button",{onClick:()=>L(!1),className:"text-sm text-[#6B7280] hover:text-[#1A1A1A]",children:"Fermer"})]}),s.jsx(Yt,{})]})})()]})})}const Ps="https://unpkg.com/@elevenlabs/convai-widget-embed",$v="agent_4601kwhz1pcgejj9gwgrz6cmm1yw";function Vv({open:e,onOpenChange:t}){return p.useEffect(()=>{if(!e||document.querySelector(`script[src="${Ps}"]`))return;const n=document.createElement("script");n.src=Ps,n.async=!0,n.type="text/javascript",document.body.appendChild(n)},[e]),s.jsx(et,{open:e,onOpenChange:t,children:s.jsxs(qe,{className:"max-w-2xl",children:[s.jsx(Ge,{className:"text-2xl font-bold text-[#0F172A]",children:"Agent vocal IA"}),s.jsx(Ta,{className:"text-[#6B7280]",children:"Discutez avec l'assistant vocal TeamIA"}),s.jsx("p",{className:"text-sm text-[#6B7280] leading-relaxed mt-2",children:"Parlez à l'assistant vocal TeamIA pour découvrir les cas d'usage IA, automatisation, RAG et agents métier. L'assistant peut qual
142ifier votre besoin et transmettre une demande à l'équipe TeamIA si vous souhaitez être recontacté."}),s.jsx("div",{className:"mt-6 min-h-[320px] flex items-center justify-center rounded-2xl border border-[#ECEEF3] bg-[#F9FAFB] p-4",children:e&&s.jsx("elevenlabs-convai",{"agent-id":$v})})]})})}const Uv="/__l5e/assets-v1/bc4ce065-929f-4b41-9ca2-ba530f2a84a4/TeamIA-Name-slogan-2026.png",Hv={url:Uv},Wv="/__l5e/assets-v1/83b8e6e5-7933-4c9b-bf90-f91833688a08/1-Ines.png",qv={url:Wv},Gv="/__l5e/assets-v1/c29afd09-ba2e-411c-ae88-8f5534466e7a/2-Anna.png",Kv={url:Gv},Yv="/__l5e/assets-v1/95acfd45-74c1-471f-91da-be7fba4e077f/3-Lina.png",Xv={url:Yv},Qv="/__l5e/assets-v1/a467490f-23f4-43aa-8c7b-2acb63188bae/4-Leon.png",Zv={url:Qv},Jv="/__l5e/assets-v1/2487a5a6-e3df-4ae6-94ef-61c1efcaba4c/5-Noe.png",ew={url:Jv},tw="/__l5e/assets-v1/02cc2d8f-5cf9-48ea-ad09-70db846d8b44/6-clara.png",nw={url:tw},rw="/__l5e/assets-v1/eaa59e44-827f-411e-89fe-75f950f19696/7-jade.png",iw={url:rw},ow="/__l5e/assets-v1/ea86e1e7-9d92-4dac-a338-d5f14b444c13/8-Milo.png",sw={url:ow},aw="/__l5e/assets-v1/103631a5-be60-4785-a437-655da36e945b/9-Mia.png",lw={url:aw},Rs="studio_business_context",Is="studio_business_context_saved_at",cw=[{label:"Cabinet RH",value:"Cabinet de conseil RH specialise dans le recrutement tech pour startups de 10 a 50 personnes. Approche directe et pragmatique, focus sur la culture produit. Audience cible : CTO, VP Engineering et fondateurs en Europe. Differentiation : process de qualification rapide et garantie de remplacement etendue."},{label:"Agence SaaS B2B",value:"Agence growth specialisee dans l'acquisition outbound pour editeurs SaaS B2B en serie A et B. Mix cold email, LinkedIn et paid social. Audience cible : CMO, Head of Growth et VP Sales. Promesse : pipeline qualifie sous 60 jours, sans recours aux audiences lookalike."},{label:"E-commerce",value:"Studio creatif a Paris pour marques DTC premium dans la beaute, la mode et le lifestyle. On gere direction artistique, photo produit, contenu social et UGC. Audience cible : fondatrices et brand managers de marques entre 1 et 20M de revenu. Approche editoriale, contre-tendance."}];function uw(e){const t=new Date(e),n=t.toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}),r=t.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"});return`Sauvegarde le ${n} a ${r}`}function mw(){const[e,t]=p.useState(""),[n,r]=p.useState(null),[i,o]=p.useState(!1),[a,l]=p.useState(!1),[u,c]=p.useState(!1),[d,f]=p.useState(!1),[h,m]=p.useState(!1),[v,x]=p.useState(!1),[y,b]=p.useState(!1),[E,S]=p.useState(!1),[F,I]=p.useState(!1),[k,A]=p.useState(!1),j=p.useRef(null);p.useEffect(()=>{const R=localStorage.getItem(Rs);R&&t(R);const P=localStorage.getItem(Is);P&&r(P)},[]);const C=()=>{localStorage.setItem(Rs,e);const R=new Date().toISOString();localStorage.setItem(Is,R),r(R),o(!0),setTimeout(()=>o(!1),2e3),ze("Profil sauvegarde")},L=()=>{document.getElementById("workspace")?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>j.current?.focus(),400)},O=R=>{t(R),setTimeout(()=>j.current?.focus(),50)};return s.jsxs("div",{className:"min-h-screen bg-white text-[#1A1A1A]",children:[s.jsx("header",{className:"sticky top-0 z-40 bg-white border-b border-[#E8E8E8]",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12 py-3 flex justify-between items-center",children:[s.jsx("a",{href:"https://www.teamia.ai",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center",children:s.jsx("img",{src:Hv.url,alt:"TeamIA — Sovereign & Custom AI",className:"w-auto block h-10 md:h-12"})}),s.jsxs("div",{className:"flex items-center gap-4 md:gap-6",children:[s.jsx("a",{href:"https://www.teamia.ai",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#6B7280] hover:text-[#1E90FF] transition-colors leading-none",children:"Accueil"}),s.jsxs("a",{href:"https://www.teamia.ai/contact",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white font-medium transition-colors rounded-full px-4 py-1.5 md:px-5 md:py-2",style:{background:"#1E90FF"},onMouseEnter:R=>R.currentTarget.style.background="#1878d4",onMouseLeave:R=>R.currentTarget.style.background="#1E90FF",children:[s.jsx("span",{className:"md:hidden",children:"Contact"}),s.jsx("span",{className:"hidden md:inline",children:"Contactez-nous"})]})]})]})}),s.jsx("section",{className:"px-6 lg:px-12 py-16 md:py-24 text-center border-b border-[#
142E8E8E8]",children:s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsx("p",{className:"text-[12px] uppercase tracking-[0.08em] text-[#6B7280]",children:"Agents IA développés par TeamIA"}),s.jsx("h1",{className:"mt-4",children:"Testez nos agents IA sur des cas d'usage concrets"}),s.jsx("p",{className:"mt-4 text-base text-[#6B7280] leading-relaxed",children:"9 agents IA métier disponibles en démonstration — sans inscription. D'autres arrivent."}),s.jsx("div",{className:"mt-8",children:s.jsx(ue,{onClick:L,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-full px-6 py-2 font-medium shadow-sm",children:"Commencer"})})]})}),s.jsx("section",{id:"workspace",className:"px-6 lg:px-12 py-12 lg:py-16",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{id:"context",children:[s.jsx("p",{className:"text-[12px] uppercase tracking-wider text-[#6B7280]",children:"ÉTAPE 1"}),s.jsx("h2",{className:"mt-2 text-2xl font-bold",children:"Décrivez votre activité"}),s.jsx("p",{className:"mt-2 text-sm text-[#6B7280]",children:"Plus c'est précis, plus les résultats sont pertinents."}),s.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:cw.map(R=>s.jsx("button",{type:"button",onClick:()=>
142O(R.value),className:"text-xs px-3 py-1 border border-[#1E90FF] rounded-full text-[#1E90FF] hover:bg-[#F4F8FF] transition-colors",children:R.label},R.label))}),s.jsx("div",{className:"mt-3 relative",children:s.jsx(Se,{ref:j,value:e,onChange:R=>t(R.target.value.slice(0,2e3)),maxLength:2e3,className:"w-full h-10 px-3 border border-[#E8E8E8] rounded-xl focus-visible:ring-0 focus-visible:border-[#1E90FF] text-base shadow-sm",placeholder:"Ex : cabinet comptable, industrie manufacturière, e-commerce B2B..."})}),s.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[s.jsx(ue,{onClick:C,className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-full px-6 py-2 font-medium shadow-sm",children:i?"Sauvegardé":"Sauvegarder"}),n&&!i&&s.jsx("span",{className:"text-sm text-[#6B7280]",children:uw(n)})]})]}),s.jsxs("div",{id:"tools",className:"mt-12",children:[s.jsx("p",{className:"text-[12px] uppercase tracking-wider text-[#6B7280]",children:"ÉTAPE 2 — Choisissez un agent IA"}),s.jsx("h2",{className:"mt-2 text-2xl font-bold",children:"Choisissez un agent IA"}),s.jsx("p",{className:"mt-2 text-sm text-[#6B7280]",children:"Neuf agents disponibles aujourd'hui. D'autres arrivent."}),s.jsxs("div",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[s.jsx(ot,{label:"Conversation",title:"Agent IA Conversationnel",description:"Répondez par écrit à vos clients, en direct sur votre site ou votre application. Trois cas d'usage en démo live : suivi de colis, prise de RDV chez un dentiste et réservation chez un garagiste.",onClick:()=>x(!0),portrait:qv.url,characterName:"Inès"}),s.jsx(ot,{label:"Conversation",title:"Assistant Vocal IA",description:"Parlez directement avec l'IA, comme au téléphone. Intégrable sur votre site ou votre standard téléphonique, il répond aux visiteurs à voix haute, qualifie un besoin et transmet la demande à l'équipe — avec un temps de réponse quasi instantané.",onClick:()=>A(!0),portrait:Xv.url,characterName:"Vox"}),s.jsx(ot,{label:"Conversation",title:"Agent IA Animé",description:"Un personnage virtuel qui vous voit, vous parle et vous répond en temps réel — expressions, gestes, voix. Connecté à vos documents métier (RAG), il peut assurer le support client, la prise de RDV ou le suivi, sans inscription.",onClick:()=>Qc(),portrait:lw.url,characterName:"Mia"}),s.jsx(ot,{label:"Engagement",title:"Générer un post LinkedIn",description:"Texte de 1 000 à 1 500 caractères et image illustrative, calibrés à votre activité et au sujet de votre choix.",onClick:()=>l(!0),portrait:Kv.url,characterName:"Anna"}),s.jsx(ot,{label:"Acquisition B2B",title:"Recherche Prospects France",description:"Registre du commerce officiel (INSEE/INPI), scoring IA et génération de message personnalisé.",onClick:()=>m(!0),portrait:Zv.url,characterName:"Léon"}),s.jsx(ot,{label:"Acquisition",title:"Trouver 5 leads LinkedIn",description:"Scraping LinkedIn ciblé et scoring IA. Retourne 5 profils qualifiés avec score 0-10 et raisonnement.",onClick:()=>c(!0),portrait:ew.url,characterName:"Pep"}),s.jsx(ot,{label:"Conformité",title:"Onboarding et KYC",description:"Analyse une entreprise, identifie les informations manquantes et prépare un dossier prêt pour validation humaine.",onClick:()=>b(!0),portrait:nw.url,characterName:"Clara"}),s.jsx(ot,{label:"Documents",title:"Analyse documentaire",description:"Lecture structurée d'un document : type, résumé, informations clés, points d'attention et actions recommandées.",onClick:()=>S(!0),portrait:iw.url,characterName:"Jade"}),s.jsx(ot,{label:"Support",title:"Support documentaire (RAG)",description:"Répond à une question à partir d'une base documentaire, avec citation des sources et escalade humaine si besoin.",onClick:()=>I(!0),portrait:sw.url,characterName:"Milo"})]})]})]})}),s.jsx("section",{id:"contact",className:"px-6 lg:px-12 py-16 md:py-20 border-t border-[#E8E8E8]",children:s.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[s.jsx("p",{className:"text-[12px] uppercase tracking-wider text-[#6B7280]",children:"CES DÉMOS SONT VOLONTAIREMENT SIMPLES"}),s.jsx("h2",{className:"mt-2 text-2xl font-bold",children:"Vos agents IA, sur mesure."}),s.jsx("p",{className:"mt-2 text-[#6B7280] max-w-md mx-auto",children:"Une démonstration simple pour illustrer le principe. Chaque solution TeamIA est ensuite conçue selon votre organisation, vos outils et vos usages."}),s.jsxs("div",{className:"mt-6",children:[s.jsx("p",{className:"text-xs text-[#6B7280] mb-3 max-w-md mx-auto leading-relaxed italic",children:"Cette démonstration est volontairement simplifiée et non connectée. Les solutions TeamIA sont ensuite déployées sur mesure selon vos outils, vos données et vos processus."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center items-center",children:[s.jsx("a",{href:"https://www.teamia.ai/agents-ia",target:"_blank",rel:"noopener noreferrer",children:s.jsx(ue,{variant:"outline",className:"bg-white border border-[#1E90FF] text-[#1E90FF] hover:bg-[#1E90FF]/5 hover:text-[#1E90FF] rounded-full px-6 py-2 font-medium shadow-sm",children:"Voir nos agents IA →"})}),s.jsx("a",{href:"https://www.teamia.ai/contact",target:"_blank",rel:"noopener noreferrer",children:s.jsxs(ue,{className:"bg-[#1E90FF] hover:bg-[#1878d4] text-white rounded-full px-6 py-2 font-medium shadow-sm",children:["Prendre contact",s.jsx(ki,{className:"w-4 h-4 ml-2"})]})})]})]})]})}
142),s.jsx("footer",{className:"border-t border-[#E8E8E8] py-8",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12 flex justify-between text-[13px] text-[#6B7280]",children:[s.jsx("span",{children:"© 2026 TeamIA — Démo pédagogique. Données non conservées."}),s.jsx("a",{href:"https://www.teamia.ai",target:"_blank",rel:"noopener noreferrer",style:{color:"#1E90FF"},className:"hover:underline",children:"teamia.ai"})]})}),s.jsx(vh,{open:a,onOpenChange:l,onEditContext:L}),s.jsx(Ch,{open:u,onOpenChange:c}),s.jsx(Nh,{open:d,onOpenChange:f}),s.jsx(ix,{open:h,onOpenChange:m}),s.jsx(Pv,{open:v,onOpenChange:x}),s.jsx(Tv,{open:y,onOpenChange:b}),s.jsx(_v,{open:E,onOpenChange:S}),s.jsx(Bv,{open:F,onOpenChange:I}),s.jsx(Vv,{open:k,onOpenChange:A})]})}function ot({label:e,title:t,description:n,onClick:r,href:i,ctaLabel:o="Essayer",portrait:a,characterName:l}){const u=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"relative h-[300px] rounded-t-[20px] overflow-hidden bg-white",children:[s.jsx("div",{"aria-hidden":!0,className:"absolute left-1/2 top-[58%] -translate-x-1/2 -translate-y-1/2 w-[260px] h-[260px] rounded-full",style:{background:"radial-gradient(closest-side, #EEF1FF 0%, #F4F6FF 55%, rgba(244,246,255,0) 75%)"}}),s.jsx("div",{"aria-hidden":!0,className:"absolute top-6 right-5 w-[64px] h-[64px] opacity-60",style:{backgroundImage:"radial-gradient(circle, #D8DEFF 1px, transparent 1.2px)",backgroundSize:"8px 8px"}}),s.jsx("div",{"aria-hidden":!0,className:"absolute bottom-3 left-5 w-[48px] h-[48px] opacity-50",style:{backgroundImage:"radial-gradient(circle, #D8DEFF 1px, transparent 1.2px)",backgroundSize:"8px 8px"}}),e&&s.jsxs("span",{className:"absolute top-4 left-4 z-20 inline-flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-bold uppercase rounded-full",style:{color:"#1E90FF",background:"#EAF2FF",border:"1px solid #D6E6FF",letterSpacing:"0.7px",boxShadow:"0 1px 2px rgba(15,23,42,0.04)"},children:[s.jsx("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:"#1E90FF"}}),e]}),a&&s.jsx("img",{src:a,alt:l??"",className:"absolute left-1/2 bottom-0 -translate-x-1/2 z-10 h-[280px] w-auto object-contain",style:{filter:"drop-shadow(0 18px 18px rgba(15,23,42,0.10))"},loading:"lazy"})]}),l&&s.jsx("div",{className:"flex justify-center -mt-5 relative z-30",children:s.jsxs("span",{className:"inline-flex items-center gap-2 px-5 py-2 text-[15px] font-semibold rounded-full bg-white",style:{color:"#0F172A",border:"1px solid #ECEEF3",boxShadow:"0 8px 20px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04)"},children:[s.jsx("span",{"aria-hidden":!0,style:{color:"#A8B0FF",fontSize:12},children:"✦"}),l,s.jsx("span",{"aria-hidden":!0,style:{color:"#A8B0FF",fontSize:12},children:"✦"})]})}),s.jsxs("div",{className:"px-5 pt-5 pb-1 flex-1 flex flex-col items-center text-center",children:[s.jsx("h3",{className:"text-[24px] font-extrabold leading-[1.15] tracking-tight",style:{color:"#0F172A",letterSpacing:"-0.01em"},children:t}),s.jsx("p",{className:"mt-3 text-[14px] leading-relaxed flex-1 max-w-[34ch]",style:{color:"#6B7280"},children:n})]}),s.jsx("div",{className:"mt-5 px-4 pb-4",children:s.jsxs("span",{className:"w-full inline-flex items-center justify-center gap-2 text-[15px] font-semibold rounded-2xl text-white group-hover:brightness-110",style:{background:"#1E90FF",padding:"15px 16px",boxShadow:"0 8px 20px rgba(30,144,255,0.28)",transition:"all 150ms ease"},children:[o,s.jsx(ki,{className:"w-4 h-4 group-hover:translate-x-0.5 transition-transform duration-150"})]})})]}),c="group cursor-pointer text-left bg-white border border-[#ECEEF3] hover:border-[#C9DFFB] rounded-[24px] overflow-hidden shadow-[0_1px_3px_rgba(15,23,42,0.04)] hover:shadow-[0_18px_40px_rgba(15,23,42,0.1)] transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E90FF] focus-visible:ring-offset-2 flex flex-col";return i?s.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:c,children:u}):s.jsx("button",{type:"button",onClick:r,className:c,children:u})}export{mw as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.