fluxy-bot 0.5.51 → 0.5.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +7 -0
- package/dist-fluxy/assets/{fluxy-Dc1OmA8X.js → fluxy-qmpE-Hb4.js} +1 -1
- package/dist-fluxy/assets/{globals-USEW-jnB.js → globals-DdJRM_yc.js} +6 -6
- package/dist-fluxy/assets/{onboard-EbXfpdmz.js → onboard-zCh5moT6.js} +1 -1
- package/dist-fluxy/fluxy.html +2 -2
- package/dist-fluxy/onboard.html +2 -2
- package/package.json +1 -1
- package/supervisor/widget.js +2 -1
package/bin/cli.js
CHANGED
|
@@ -609,6 +609,13 @@ async function status() {
|
|
|
609
609
|
async function update() {
|
|
610
610
|
banner();
|
|
611
611
|
|
|
612
|
+
// Refuse to run the update as root — file ownership would get poisoned
|
|
613
|
+
if (os.platform() !== 'win32' && process.getuid?.() === 0) {
|
|
614
|
+
console.log(`\n ${c.red}✗${c.reset} Do not run ${c.bold}fluxy update${c.reset} with sudo.`);
|
|
615
|
+
console.log(` The update manages sudo internally for systemctl commands.\n`);
|
|
616
|
+
process.exit(1);
|
|
617
|
+
}
|
|
618
|
+
|
|
612
619
|
const currentVersion = pkg.version;
|
|
613
620
|
console.log(`\n ${c.dim}Current version: v${currentVersion}${c.reset}`);
|
|
614
621
|
console.log(` ${c.blue}⠋${c.reset} Checking for updates...\n`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ce,r as F,j as w,L as Gc,A as jc,g as gu,R as Oe,a as An,m as Dt,M as gl,b as Hc,O as Vc}from"./globals-USEW-jnB.js";const Wc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],qc=ce("arrow-left",Wc);const Yc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Kc=ce("bell-off",Yc);const Xc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Zc=ce("bell-ring",Xc);const Qc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Jc=ce("bell",Qc);const ed=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],td=ce("camera",ed);const nd=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rd=ce("chevron-left",nd);const ad=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],id=ce("chevron-right",ad);const od=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],sd=ce("download",od);const ld=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],ud=ce("ellipsis-vertical",ld);const cd=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],dd=ce("lock",cd);const pd=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],_n=ce("paperclip",pd);const gd=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],fd=ce("pause",gd);const md=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bd=ce("play",md);const hd=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],Ed=ce("send-horizontal",hd);const yd=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],Sd=ce("share",yd);const wd=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kd=ce("square",wd);const Td=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],fu=ce("trash-2",Td);const Ad=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],_d=ce("wand-sparkles",Ad);const Id=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gn=ce("x",Id);class jn{ws=null;handlers=new Map;statusHandlers=new Set;reconnectTimer=null;heartbeatTimer=null;url;queue=[];intentionalClose=!1;reconnectDelay=1e3;static MAX_RECONNECT_DELAY=8e3;tokenGetter=null;constructor(t,n){const r=location.protocol==="https:"?"wss:":"ws:",a=location.host;this.url=t??`${r}//${a}/ws`,this.tokenGetter=n??null}connect(){this.intentionalClose=!1;let t=this.url;if(this.tokenGetter){const n=this.tokenGetter();if(n){const r=t.includes("?")?"&":"?";t=`${t}${r}token=${n}`}}this.ws=new WebSocket(t),this.ws.onopen=()=>{this.reconnectDelay=1e3,this.notifyStatus(!0),this.flushQueue(),this.startHeartbeat()},this.ws.onmessage=n=>{if(n.data==="pong")return;const r=JSON.parse(n.data);this.handlers.get(r.type)?.forEach(i=>i(r.data))},this.ws.onclose=()=>{this.stopHeartbeat(),this.notifyStatus(!1),this.intentionalClose||(this.reconnectTimer=setTimeout(()=>{this.reconnectDelay=Math.min(this.reconnectDelay*2,jn.MAX_RECONNECT_DELAY),this.connect()},this.reconnectDelay))},this.ws.onerror=()=>this.ws?.close()}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopHeartbeat(),this.ws?.close(),this.ws=null}on(t,n){return this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(n),()=>this.handlers.get(t)?.delete(n)}onStatus(t){return this.statusHandlers.add(t),()=>this.statusHandlers.delete(t)}send(t,n){const r={type:t,data:n};this.ws?.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify(r)):this.queue.push(r)}get connected(){return this.ws?.readyState===WebSocket.OPEN}flushQueue(){for(;this.queue.length>0&&this.ws?.readyState===WebSocket.OPEN;){const t=this.queue.shift();this.ws.send(JSON.stringify(t))}}notifyStatus(t){this.statusHandlers.forEach(n=>n(t))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send("ping")},25e3)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}}const Hn="fluxy_token";let mu=null;function In(){return localStorage.getItem(Hn)}function Nd(e){localStorage.setItem(Hn,e)}function bu(){localStorage.removeItem(Hn)}function Rd(e){mu=e}async function qe(e,t={}){const n=In(),r=new Headers(t.headers);n&&r.set("Authorization",`Bearer ${n}`);const a=await fetch(e,{...t,headers:r});return a.status===401&&n&&(bu(),mu?.()),a}function xd(e,t,n=!0){const[r,a]=F.useState([]),[i,o]=F.useState(null),[s,l]=F.useState(!1),[u,c]=F.useState(""),[d,g]=F.useState([]),p=F.useRef(!1),m=F.useRef(null),S=F.useRef(!1);F.useEffect(()=>{m.current=i},[i]),F.useEffect(()=>{S.current=s},[s]);const y=F.useCallback(async()=>{try{const N=await qe("/api/context/current").then(x=>x.json());if(!N.conversationId)return;o(N.conversationId);const I=await qe(`/api/conversations/${N.conversationId}`);if(!I.ok)return;const k=await I.json();if(!k.messages?.length)return;a(k.messages.filter(x=>x.role==="user"||x.role==="assistant").map(x=>{let D;x.audio_data&&(x.audio_data.startsWith("data:")?D=x.audio_data:x.audio_data.includes("/")?D=`/api/files/${x.audio_data}`:D=`data:audio/webm;base64,${x.audio_data}`);let B;if(x.attachments)try{B=JSON.parse(x.attachments)}catch{}return{id:x.id,role:x.role,content:x.content,timestamp:x.created_at,audioData:D,hasAttachments:!!(B&&B.length>0),attachments:B}}))}catch{}},[]);F.useEffect(()=>{!n||p.current||(p.current=!0,y())},[n,y]),F.useEffect(()=>{n&&t&&t>0&&y()},[n,t,y]),F.useEffect(()=>{if(!n||!t||t===0||!s)return;const N=setInterval(()=>{if(!S.current){clearInterval(N);return}y()},3e3);return()=>clearInterval(N)},[n,t,s,y]),F.useEffect(()=>{if(!e)return;const N=[e.on("bot:typing",()=>{l(!0),g([])}),e.on("bot:token",I=>{c(k=>k+I.token)}),e.on("bot:tool",I=>{g(k=>k.find(D=>D.name===I.name&&D.status==="running")?k:[...k,{name:I.name,status:"running"}])}),e.on("bot:response",I=>{o(I.conversationId),a(k=>[...k,{id:I.messageId||Date.now().toString(),role:"assistant",content:I.content,timestamp:new Date().toISOString()}]),c(""),l(!1),g([])}),e.on("bot:error",I=>{c(""),l(!1),g([]),a(k=>[...k,{id:Date.now().toString(),role:"assistant",content:`Error: ${I.error}`,timestamp:new Date().toISOString()}])}),e.on("chat:sync",I=>{m.current&&I.conversationId!==m.current||a(k=>[...k,{id:Date.now().toString(),role:I.message.role,content:I.message.content,timestamp:I.message.timestamp}])}),e.on("chat:conversation-created",I=>{o(I.conversationId)}),e.on("chat:state",I=>{I.streaming&&(l(!0),I.conversationId&&o(I.conversationId),I.buffer&&c(I.buffer))}),e.on("chat:cleared",()=>{a([]),o(null),c(""),l(!1),g([]),p.current=!1})];return()=>N.forEach(I=>I())},[e]);const E=F.useCallback((N,I,k)=>{if(!e||!N.trim()&&(!I||I.length===0))return;const x={id:Date.now().toString(),role:"user",content:N,timestamp:new Date().toISOString(),hasAttachments:!!(I&&I.length>0),audioData:k?k.startsWith("data:")?k:`data:audio/webm;base64,${k}`:void 0};a(B=>[...B,x]);const D={conversationId:i,content:N};k&&(D.audioData=k.includes(",")?k.split(",")[1]:k),I?.length&&(D.attachments=I.map(B=>{const T=B.preview.match(/^data:([^;]+);base64,(.+)$/);return{type:B.type,name:B.name,mediaType:T?.[1]||"application/octet-stream",data:T?.[2]||""}})),e.send("user:message",D)},[e,i]),_=F.useCallback(()=>{e&&(e.send("user:stop",{conversationId:i}),l(!1),c(""),g([]))},[e,i]),A=F.useCallback(()=>{e&&e.send("user:clear-context",{}),a([]),o(null),c(""),l(!1),g([]),p.current=!1},[e]);return{messages:r,streaming:s,streamBuffer:u,conversationId:i,tools:d,sendMessage:E,stopStreaming:_,clearContext:A}}function vd({onLogin:e}){const[t,n]=F.useState(""),[r,a]=F.useState(""),[i,o]=F.useState(!1),s=async()=>{if(!(!t.trim()||i)){o(!0),a("");try{const c=btoa(`admin:${t}`),d=await fetch("/api/portal/login",{headers:{Authorization:`Basic ${c}`}}),g=await d.json();d.ok&&g.token?e(g.token):a(g.error||"Invalid password")}catch{a("Could not reach server")}finally{o(!1)}}},l=c=>{c.key==="Enter"&&s()};return w.jsx("div",{className:"flex flex-col items-center justify-center h-dvh px-6",children:w.jsxs("div",{className:"w-full max-w-[320px] flex flex-col items-center",children:[w.jsx("div",{className:"w-14 h-14 rounded-2xl bg-white/[0.04] border border-white/[0.08] flex items-center justify-center mb-5",children:w.jsx(dd,{className:"h-6 w-6 text-white/40"})}),w.jsx("h1",{className:"text-xl font-bold text-white tracking-tight mb-1",children:"Welcome back"}),w.jsx("p",{className:"text-white/40 text-[13px] mb-6",children:"Enter your password to continue."}),r&&w.jsx("div",{className:"w-full bg-red-500/8 border border-red-500/15 rounded-xl px-4 py-2.5 mb-4",children:w.jsx("p",{className:"text-red-400/90 text-[12px]",children:r})}),w.jsx("input",{type:"password",value:t,onChange:c=>n(c.target.value),onKeyDown:l,placeholder:"Password",autoFocus:!0,autoComplete:"current-password",className:"w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all"}),w.jsx("button",{onClick:s,disabled:!t.trim()||i,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:i?w.jsxs(w.Fragment,{children:[w.jsx(Gc,{className:"h-4 w-4 animate-spin"}),"Signing in..."]}):w.jsxs(w.Fragment,{children:["Sign In",w.jsx(jc,{className:"h-4 w-4"})]})})]})})}function fl(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function Cd(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Od=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ld=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dd={};function ml(e,t){return(Dd.jsx?Ld:Od).test(e)}const Md=/[ \t\n\f\r]/g;function Fd(e){return typeof e=="object"?e.type==="text"?bl(e.value):!1:bl(e)}function bl(e){return e.replace(Md,"")===""}class St{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}St.prototype.normal={};St.prototype.property={};St.prototype.space=void 0;function hu(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new St(n,r,t)}function mt(e){return e.toLowerCase()}class ye{constructor(t,n){this.attribute=n,this.property=t}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let Ud=0;const Y=ze(),le=ze(),Nn=ze(),O=ze(),se=ze(),Ke=ze(),we=ze();function ze(){return 2**++Ud}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Y,booleanish:le,commaOrSpaceSeparated:we,commaSeparated:Ke,number:O,overloadedBoolean:Nn,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),an=Object.keys(Rn);class Vn extends ye{constructor(t,n,r,a){let i=-1;if(super(t,n),hl(this,"space",a),typeof r=="number")for(;++i<an.length;){const o=an[i];hl(this,an[i],(r&Rn[o])===Rn[o])}}}Vn.prototype.defined=!0;function hl(e,t,n){n&&(e[t]=n)}function Ze(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Vn(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[mt(r)]=r,n[mt(i.attribute)]=r}return new St(t,n,e.space)}const Eu=Ze({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:le,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:se,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:O,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:se,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:le,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yu(e,t){return t in e?e[t]:t}function Su(e,t){return yu(e,t.toLowerCase())}const Bd=Ze({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ke,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:se,autoFocus:Y,autoPlay:Y,blocking:se,capture:null,charSet:null,checked:Y,cite:null,className:se,cols:O,colSpan:null,content:null,contentEditable:le,controls:Y,controlsList:se,coords:O|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:Nn,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:se,height:O,hidden:Nn,high:O,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:se,itemRef:se,itemScope:Y,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:O,pattern:null,ping:se,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:se,required:Y,reversed:Y,rows:O,rowSpan:O,sandbox:se,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:le,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Y,disableRemotePlayback:Y,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:Su}),Pd=Ze({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",colorRendering:"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:we,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:Ke,g2:Ke,glyphName:Ke,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:we,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:we,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:we,rev:we,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:we,requiredFeatures:we,requiredFonts:we,requiredFormats:we,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:we,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:we,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:we,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yu}),wu=Ze({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ku=Ze({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Su}),Tu=Ze({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$d={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"},zd=/[A-Z]/g,El=/-[a-z]/g,Gd=/^data[-\w.:]+$/i;function Au(e,t){const n=mt(t);let r=t,a=ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(El,Hd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!El.test(i)){let o=i.replace(zd,jd);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Vn}return new a(r,t)}function jd(e){return"-"+e.toLowerCase()}function Hd(e){return e.charAt(1).toUpperCase()}const _u=hu([Eu,Bd,wu,ku,Tu],"html"),Gt=hu([Eu,Pd,wu,ku,Tu],"svg");function yl(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Vd(e){return e.join(" ").trim()}var He={},on,Sl;function Wd(){if(Sl)return on;Sl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
1
|
+
import{c as ce,r as F,j as w,L as Gc,A as jc,g as gu,R as Oe,a as An,m as Dt,M as gl,b as Hc,O as Vc}from"./globals-DdJRM_yc.js";const Wc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],qc=ce("arrow-left",Wc);const Yc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Kc=ce("bell-off",Yc);const Xc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Zc=ce("bell-ring",Xc);const Qc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Jc=ce("bell",Qc);const ed=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],td=ce("camera",ed);const nd=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rd=ce("chevron-left",nd);const ad=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],id=ce("chevron-right",ad);const od=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],sd=ce("download",od);const ld=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],ud=ce("ellipsis-vertical",ld);const cd=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],dd=ce("lock",cd);const pd=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],_n=ce("paperclip",pd);const gd=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],fd=ce("pause",gd);const md=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bd=ce("play",md);const hd=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],Ed=ce("send-horizontal",hd);const yd=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],Sd=ce("share",yd);const wd=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kd=ce("square",wd);const Td=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],fu=ce("trash-2",Td);const Ad=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],_d=ce("wand-sparkles",Ad);const Id=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gn=ce("x",Id);class jn{ws=null;handlers=new Map;statusHandlers=new Set;reconnectTimer=null;heartbeatTimer=null;url;queue=[];intentionalClose=!1;reconnectDelay=1e3;static MAX_RECONNECT_DELAY=8e3;tokenGetter=null;constructor(t,n){const r=location.protocol==="https:"?"wss:":"ws:",a=location.host;this.url=t??`${r}//${a}/ws`,this.tokenGetter=n??null}connect(){this.intentionalClose=!1;let t=this.url;if(this.tokenGetter){const n=this.tokenGetter();if(n){const r=t.includes("?")?"&":"?";t=`${t}${r}token=${n}`}}this.ws=new WebSocket(t),this.ws.onopen=()=>{this.reconnectDelay=1e3,this.notifyStatus(!0),this.flushQueue(),this.startHeartbeat()},this.ws.onmessage=n=>{if(n.data==="pong")return;const r=JSON.parse(n.data);this.handlers.get(r.type)?.forEach(i=>i(r.data))},this.ws.onclose=()=>{this.stopHeartbeat(),this.notifyStatus(!1),this.intentionalClose||(this.reconnectTimer=setTimeout(()=>{this.reconnectDelay=Math.min(this.reconnectDelay*2,jn.MAX_RECONNECT_DELAY),this.connect()},this.reconnectDelay))},this.ws.onerror=()=>this.ws?.close()}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopHeartbeat(),this.ws?.close(),this.ws=null}on(t,n){return this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(n),()=>this.handlers.get(t)?.delete(n)}onStatus(t){return this.statusHandlers.add(t),()=>this.statusHandlers.delete(t)}send(t,n){const r={type:t,data:n};this.ws?.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify(r)):this.queue.push(r)}get connected(){return this.ws?.readyState===WebSocket.OPEN}flushQueue(){for(;this.queue.length>0&&this.ws?.readyState===WebSocket.OPEN;){const t=this.queue.shift();this.ws.send(JSON.stringify(t))}}notifyStatus(t){this.statusHandlers.forEach(n=>n(t))}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send("ping")},25e3)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}}const Hn="fluxy_token";let mu=null;function In(){return localStorage.getItem(Hn)}function Nd(e){localStorage.setItem(Hn,e)}function bu(){localStorage.removeItem(Hn)}function Rd(e){mu=e}async function qe(e,t={}){const n=In(),r=new Headers(t.headers);n&&r.set("Authorization",`Bearer ${n}`);const a=await fetch(e,{...t,headers:r});return a.status===401&&n&&(bu(),mu?.()),a}function xd(e,t,n=!0){const[r,a]=F.useState([]),[i,o]=F.useState(null),[s,l]=F.useState(!1),[u,c]=F.useState(""),[d,g]=F.useState([]),p=F.useRef(!1),m=F.useRef(null),S=F.useRef(!1);F.useEffect(()=>{m.current=i},[i]),F.useEffect(()=>{S.current=s},[s]);const y=F.useCallback(async()=>{try{const N=await qe("/api/context/current").then(x=>x.json());if(!N.conversationId)return;o(N.conversationId);const I=await qe(`/api/conversations/${N.conversationId}`);if(!I.ok)return;const k=await I.json();if(!k.messages?.length)return;a(k.messages.filter(x=>x.role==="user"||x.role==="assistant").map(x=>{let D;x.audio_data&&(x.audio_data.startsWith("data:")?D=x.audio_data:x.audio_data.includes("/")?D=`/api/files/${x.audio_data}`:D=`data:audio/webm;base64,${x.audio_data}`);let B;if(x.attachments)try{B=JSON.parse(x.attachments)}catch{}return{id:x.id,role:x.role,content:x.content,timestamp:x.created_at,audioData:D,hasAttachments:!!(B&&B.length>0),attachments:B}}))}catch{}},[]);F.useEffect(()=>{!n||p.current||(p.current=!0,y())},[n,y]),F.useEffect(()=>{n&&t&&t>0&&y()},[n,t,y]),F.useEffect(()=>{if(!n||!t||t===0||!s)return;const N=setInterval(()=>{if(!S.current){clearInterval(N);return}y()},3e3);return()=>clearInterval(N)},[n,t,s,y]),F.useEffect(()=>{if(!e)return;const N=[e.on("bot:typing",()=>{l(!0),g([])}),e.on("bot:token",I=>{c(k=>k+I.token)}),e.on("bot:tool",I=>{g(k=>k.find(D=>D.name===I.name&&D.status==="running")?k:[...k,{name:I.name,status:"running"}])}),e.on("bot:response",I=>{o(I.conversationId),a(k=>[...k,{id:I.messageId||Date.now().toString(),role:"assistant",content:I.content,timestamp:new Date().toISOString()}]),c(""),l(!1),g([])}),e.on("bot:error",I=>{c(""),l(!1),g([]),a(k=>[...k,{id:Date.now().toString(),role:"assistant",content:`Error: ${I.error}`,timestamp:new Date().toISOString()}])}),e.on("chat:sync",I=>{m.current&&I.conversationId!==m.current||a(k=>[...k,{id:Date.now().toString(),role:I.message.role,content:I.message.content,timestamp:I.message.timestamp}])}),e.on("chat:conversation-created",I=>{o(I.conversationId)}),e.on("chat:state",I=>{I.streaming&&(l(!0),I.conversationId&&o(I.conversationId),I.buffer&&c(I.buffer))}),e.on("chat:cleared",()=>{a([]),o(null),c(""),l(!1),g([]),p.current=!1})];return()=>N.forEach(I=>I())},[e]);const E=F.useCallback((N,I,k)=>{if(!e||!N.trim()&&(!I||I.length===0))return;const x={id:Date.now().toString(),role:"user",content:N,timestamp:new Date().toISOString(),hasAttachments:!!(I&&I.length>0),audioData:k?k.startsWith("data:")?k:`data:audio/webm;base64,${k}`:void 0};a(B=>[...B,x]);const D={conversationId:i,content:N};k&&(D.audioData=k.includes(",")?k.split(",")[1]:k),I?.length&&(D.attachments=I.map(B=>{const T=B.preview.match(/^data:([^;]+);base64,(.+)$/);return{type:B.type,name:B.name,mediaType:T?.[1]||"application/octet-stream",data:T?.[2]||""}})),e.send("user:message",D)},[e,i]),_=F.useCallback(()=>{e&&(e.send("user:stop",{conversationId:i}),l(!1),c(""),g([]))},[e,i]),A=F.useCallback(()=>{e&&e.send("user:clear-context",{}),a([]),o(null),c(""),l(!1),g([]),p.current=!1},[e]);return{messages:r,streaming:s,streamBuffer:u,conversationId:i,tools:d,sendMessage:E,stopStreaming:_,clearContext:A}}function vd({onLogin:e}){const[t,n]=F.useState(""),[r,a]=F.useState(""),[i,o]=F.useState(!1),s=async()=>{if(!(!t.trim()||i)){o(!0),a("");try{const c=btoa(`admin:${t}`),d=await fetch("/api/portal/login",{headers:{Authorization:`Basic ${c}`}}),g=await d.json();d.ok&&g.token?e(g.token):a(g.error||"Invalid password")}catch{a("Could not reach server")}finally{o(!1)}}},l=c=>{c.key==="Enter"&&s()};return w.jsx("div",{className:"flex flex-col items-center justify-center h-dvh px-6",children:w.jsxs("div",{className:"w-full max-w-[320px] flex flex-col items-center",children:[w.jsx("div",{className:"w-14 h-14 rounded-2xl bg-white/[0.04] border border-white/[0.08] flex items-center justify-center mb-5",children:w.jsx(dd,{className:"h-6 w-6 text-white/40"})}),w.jsx("h1",{className:"text-xl font-bold text-white tracking-tight mb-1",children:"Welcome back"}),w.jsx("p",{className:"text-white/40 text-[13px] mb-6",children:"Enter your password to continue."}),r&&w.jsx("div",{className:"w-full bg-red-500/8 border border-red-500/15 rounded-xl px-4 py-2.5 mb-4",children:w.jsx("p",{className:"text-red-400/90 text-[12px]",children:r})}),w.jsx("input",{type:"password",value:t,onChange:c=>n(c.target.value),onKeyDown:l,placeholder:"Password",autoFocus:!0,autoComplete:"current-password",className:"w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all"}),w.jsx("button",{onClick:s,disabled:!t.trim()||i,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:i?w.jsxs(w.Fragment,{children:[w.jsx(Gc,{className:"h-4 w-4 animate-spin"}),"Signing in..."]}):w.jsxs(w.Fragment,{children:["Sign In",w.jsx(jc,{className:"h-4 w-4"})]})})]})})}function fl(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function Cd(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Od=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ld=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dd={};function ml(e,t){return(Dd.jsx?Ld:Od).test(e)}const Md=/[ \t\n\f\r]/g;function Fd(e){return typeof e=="object"?e.type==="text"?bl(e.value):!1:bl(e)}function bl(e){return e.replace(Md,"")===""}class St{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}St.prototype.normal={};St.prototype.property={};St.prototype.space=void 0;function hu(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new St(n,r,t)}function mt(e){return e.toLowerCase()}class ye{constructor(t,n){this.attribute=n,this.property=t}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let Ud=0;const Y=ze(),le=ze(),Nn=ze(),O=ze(),se=ze(),Ke=ze(),we=ze();function ze(){return 2**++Ud}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Y,booleanish:le,commaOrSpaceSeparated:we,commaSeparated:Ke,number:O,overloadedBoolean:Nn,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),an=Object.keys(Rn);class Vn extends ye{constructor(t,n,r,a){let i=-1;if(super(t,n),hl(this,"space",a),typeof r=="number")for(;++i<an.length;){const o=an[i];hl(this,an[i],(r&Rn[o])===Rn[o])}}}Vn.prototype.defined=!0;function hl(e,t,n){n&&(e[t]=n)}function Ze(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Vn(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[mt(r)]=r,n[mt(i.attribute)]=r}return new St(t,n,e.space)}const Eu=Ze({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:le,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:se,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:O,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:se,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:le,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yu(e,t){return t in e?e[t]:t}function Su(e,t){return yu(e,t.toLowerCase())}const Bd=Ze({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ke,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:se,autoFocus:Y,autoPlay:Y,blocking:se,capture:null,charSet:null,checked:Y,cite:null,className:se,cols:O,colSpan:null,content:null,contentEditable:le,controls:Y,controlsList:se,coords:O|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:Nn,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:se,height:O,hidden:Nn,high:O,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:se,itemRef:se,itemScope:Y,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:O,pattern:null,ping:se,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:se,required:Y,reversed:Y,rows:O,rowSpan:O,sandbox:se,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:le,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Y,disableRemotePlayback:Y,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:Su}),Pd=Ze({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",colorRendering:"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:we,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:Ke,g2:Ke,glyphName:Ke,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:we,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:we,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:we,rev:we,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:we,requiredFeatures:we,requiredFonts:we,requiredFormats:we,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:we,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:we,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:we,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yu}),wu=Ze({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ku=Ze({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Su}),Tu=Ze({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$d={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"},zd=/[A-Z]/g,El=/-[a-z]/g,Gd=/^data[-\w.:]+$/i;function Au(e,t){const n=mt(t);let r=t,a=ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(El,Hd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!El.test(i)){let o=i.replace(zd,jd);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Vn}return new a(r,t)}function jd(e){return"-"+e.toLowerCase()}function Hd(e){return e.charAt(1).toUpperCase()}const _u=hu([Eu,Bd,wu,ku,Tu],"html"),Gt=hu([Eu,Pd,wu,ku,Tu],"svg");function yl(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Vd(e){return e.join(" ").trim()}var He={},on,Sl;function Wd(){if(Sl)return on;Sl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
2
2
|
`,u="/",c="*",d="",g="comment",p="declaration";function m(y,E){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];E=E||{};var _=1,A=1;function N(M){var C=M.match(t);C&&(_+=C.length);var V=M.lastIndexOf(l);A=~V?M.length-V:A+M.length}function I(){var M={line:_,column:A};return function(C){return C.position=new k(M),B(),C}}function k(M){this.start=M,this.end={line:_,column:A},this.source=E.source}k.prototype.content=y;function x(M){var C=new Error(E.source+":"+_+":"+A+": "+M);if(C.reason=M,C.filename=E.source,C.line=_,C.column=A,C.source=y,!E.silent)throw C}function D(M){var C=M.exec(y);if(C){var V=C[0];return N(V),y=y.slice(V.length),C}}function B(){D(n)}function T(M){var C;for(M=M||[];C=v();)C!==!1&&M.push(C);return M}function v(){var M=I();if(!(u!=y.charAt(0)||c!=y.charAt(1))){for(var C=2;d!=y.charAt(C)&&(c!=y.charAt(C)||u!=y.charAt(C+1));)++C;if(C+=2,d===y.charAt(C-1))return x("End of comment missing");var V=y.slice(2,C-2);return A+=2,N(V),y=y.slice(C),A+=2,M({type:g,comment:V})}}function L(){var M=I(),C=D(r);if(C){if(v(),!D(a))return x("property missing ':'");var V=D(i),q=M({type:p,property:S(C[0].replace(e,d)),value:V?S(V[0].replace(e,d)):d});return D(o),q}}function U(){var M=[];T(M);for(var C;C=L();)C!==!1&&(M.push(C),T(M));return M}return B(),U()}function S(y){return y?y.replace(s,d):d}return on=m,on}var wl;function qd(){if(wl)return He;wl=1;var e=He&&He.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(He,"__esModule",{value:!0}),He.default=n;const t=e(Wd());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const o=(0,t.default)(r),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;s?a(u,c,l):c&&(i=i||{},i[u]=c)}),i}return He}var st={},kl;function Yd(){if(kl)return st;kl=1,Object.defineProperty(st,"__esModule",{value:!0}),st.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},s=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),i(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,s):u=u.replace(r,s),u.replace(t,o))};return st.camelCase=l,st}var lt,Tl;function Kd(){if(Tl)return lt;Tl=1;var e=lt&<.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(qd()),n=Yd();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,n.camelCase)(s,i)]=l)}),o}return r.default=r,lt=r,lt}var Xd=Kd();const Zd=gu(Xd),Iu=Nu("end"),Wn=Nu("start");function Nu(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 Qd(e){const t=Wn(e),n=Iu(e);if(t&&n)return{start:t,end:n}}function dt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Al(e.position):"start"in e||"end"in e?Al(e):"line"in e||"column"in e?xn(e):""}function xn(e){return _l(e&&e.line)+":"+_l(e&&e.column)}function Al(e){return xn(e&&e.start)+"-"+xn(e&&e.end)}function _l(e){return e&&typeof e=="number"?e:1}class fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=dt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}fe.prototype.file="";fe.prototype.name="";fe.prototype.reason="";fe.prototype.message="";fe.prototype.stack="";fe.prototype.column=void 0;fe.prototype.line=void 0;fe.prototype.ancestors=void 0;fe.prototype.cause=void 0;fe.prototype.fatal=void 0;fe.prototype.place=void 0;fe.prototype.ruleId=void 0;fe.prototype.source=void 0;const qn={}.hasOwnProperty,Jd=new Map,ep=/[A-Z]/g,tp=new Set(["table","tbody","thead","tfoot","tr"]),np=new Set(["td","th"]),Ru="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rp(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=dp(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=cp(n,t.jsx,t.jsxs)}const a={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"?Gt:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=xu(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function xu(e,t,n){if(t.type==="element")return ap(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ip(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return sp(e,t,n);if(t.type==="mdxjsEsm")return op(e,t);if(t.type==="root")return lp(e,t,n);if(t.type==="text")return up(e,t)}function ap(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Gt,e.schema=a),e.ancestors.push(t);const i=Cu(e,t.tagName,!1),o=pp(e,t);let s=Kn(e,t);return tp.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Fd(l):!0})),vu(e,o,i,t),Yn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function ip(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)}bt(e,t.position)}function op(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bt(e,t.position)}function sp(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Gt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Cu(e,t.name,!0),o=gp(e,t),s=Kn(e,t);return vu(e,o,i,t),Yn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function lp(e,t,n){const r={};return Yn(r,Kn(e,t)),e.create(t,e.Fragment,r,n)}function up(e,t){return t.value}function vu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Yn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cp(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function dp(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Wn(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function pp(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&qn.call(t.properties,a)){const i=fp(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&np.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function gp(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else bt(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else bt(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Kn(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Jd;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=xu(e,i,o);s!==void 0&&n.push(s)}return n}function fp(e,t,n){const r=Au(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Cd(n):Vd(n)),r.property==="style"){let a=typeof n=="object"?n:mp(e,String(n));return e.stylePropertyNameCase==="css"&&(a=bp(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?$d[r.property]||r.property:r.attribute,n]}}function mp(e,t){try{return Zd(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Ru+"#cannot-parse-style-attribute",a}}function Cu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=ml(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=ml(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return qn.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);bt(e)}function bt(e,t){const n=new fe("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=Ru+"#cannot-handle-mdx-estrees-without-createevaluater",n}function bp(e){const t={};let n;for(n in e)qn.call(e,n)&&(t[hp(n)]=e[n]);return t}function hp(e){let t=e.replace(ep,Ep);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ep(e){return"-"+e.toLowerCase()}const sn={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"]},yp={};function Xn(e,t){const n=yp,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ou(e,r,a)}function Ou(e,t,n){if(Sp(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 Il(e.children,t,n)}return Array.isArray(e)?Il(e,t,n):""}function Il(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Ou(e[a],t,n);return r.join("")}function Sp(e){return!!(e&&typeof e=="object")}const Nl=document.createElement("i");function ht(e){const t="&"+e+";";Nl.innerHTML=t;const n=Nl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ke(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Ae(e,t){return e.length>0?(ke(e,e.length,0,t),e):t}const Rl={}.hasOwnProperty;function Lu(e){const t={};let n=-1;for(;++n<e.length;)wp(t,e[n]);return t}function wp(e,t){let n;for(n in t){const a=(Rl.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Rl.call(a,o)||(a[o]=[]);const s=i[o];kp(a[o],Array.isArray(s)?s:s?[s]:[])}}}function kp(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ke(e,0,0,r)}function Du(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 Ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const he=Ue(/[A-Za-z]/),ge=Ue(/[\dA-Za-z]/),Tp=Ue(/[#-'*+\--9=?A-Z^-~]/);function Bt(e){return e!==null&&(e<32||e===127)}const vn=Ue(/\d/),Ap=Ue(/[\dA-Fa-f]/),_p=Ue(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ie(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}const jt=Ue(new RegExp("\\p{P}|\\p{S}","u")),$e=Ue(/\s/);function Ue(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qe(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&ge(e.charCodeAt(n+1))&&ge(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function J(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return X(l)?(e.enter(n),s(l)):t(l)}function s(l){return X(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const Ip={tokenize:Np};function Np(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),J(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return j(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const Rp={tokenize:xp},xl={tokenize:vp};function xp(e){const t=this,n=[];let r=0,a,i,o;return s;function s(A){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,l,u)(A)}return u(A)}function l(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&_();const N=t.events.length;let I=N,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){k=t.events[I][1].end;break}E(r);let x=N;for(;x<t.events.length;)t.events[x][1].end={...k},x++;return ke(t.events,I+1,0,t.events.slice(N)),t.events.length=x,u(A)}return s(A)}function u(A){if(r===n.length){if(!a)return g(A);if(a.currentConstruct&&a.currentConstruct.concrete)return m(A);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xl,c,d)(A)}function c(A){return a&&_(),E(r),g(A)}function d(A){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(A)}function g(A){return t.containerState={},e.attempt(xl,p,m)(A)}function p(A){return r++,n.push([t.currentConstruct,t.containerState]),g(A)}function m(A){if(A===null){a&&_(),E(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),S(A)}function S(A){if(A===null){y(e.exit("chunkFlow"),!0),E(0),e.consume(A);return}return j(A)?(e.consume(A),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(A),S)}function y(A,N){const I=t.sliceStream(A);if(N&&I.push(null),A.previous=i,i&&(i.next=A),i=A,a.defineSkip(A.start),a.write(I),t.parser.lazy[A.start.line]){let k=a.events.length;for(;k--;)if(a.events[k][1].start.offset<o&&(!a.events[k][1].end||a.events[k][1].end.offset>o))return;const x=t.events.length;let D=x,B,T;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){T=t.events[D][1].end;break}B=!0}for(E(r),k=x;k<t.events.length;)t.events[k][1].end={...T},k++;ke(t.events,D+1,0,t.events.slice(x)),t.events.length=k}}function E(A){let N=n.length;for(;N-- >A;){const I=n[N];t.containerState=I[1],I[0].exit.call(t,e)}n.length=A}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function vp(e,t,n){return J(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xe(e){if(e===null||ie(e)||$e(e))return 1;if(jt(e))return 2}function Ht(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Cn={name:"attention",resolveAll:Cp,tokenize:Op};function Cp(e,t){let n=-1,r,a,i,o,s,l,u,c;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;l=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 d={...e[r][1].end},g={...e[n][1].start};vl(d,-l),vl(g,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ae(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ae(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Ae(u,Ht(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ae(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ae(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ke(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Op(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xe(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),c=Xe(l),d=!c||c===2&&a||n.includes(l),g=!a||a===2&&c||n.includes(r);return u._open=!!(i===42?d:d&&(a||!g)),u._close=!!(i===42?g:g&&(c||!d)),t(l)}}function vl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Lp={name:"autolink",tokenize:Dp};function Dp(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return he(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||ge(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||ge(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Bt(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):Tp(p)?(e.consume(p),u):n(p)}function c(p){return ge(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):g(p)}function g(p){if((p===45||ge(p))&&r++<63){const m=p===45?g:d;return e.consume(p),m}return n(p)}}const wt={partial:!0,tokenize:Mp};function Mp(e,t,n){return r;function r(i){return X(i)?J(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||j(i)?t(i):n(i)}}const Mu={continuation:{tokenize:Up},exit:Bp,name:"blockQuote",tokenize:Fp};function Fp(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return X(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Up(e,t,n){const r=this;return a;function a(o){return X(o)?J(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Mu,t,n)(o)}}function Bp(e){e.exit("blockQuote")}const Fu={name:"characterEscape",tokenize:Pp};function Pp(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return _p(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Uu={name:"characterReference",tokenize:$p};function $p(e,t,n){const r=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=ge,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Ap,c):(e.enter("characterReferenceValue"),i=7,o=vn,c(d))}function c(d){if(d===59&&a){const g=e.exit("characterReferenceValue");return o===ge&&!ht(r.sliceSerialize(g))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),c):n(d)}}const Cl={partial:!0,tokenize:Gp},Ol={concrete:!0,name:"codeFenced",tokenize:zp};function zp(e,t,n){const r=this,a={partial:!0,tokenize:I};let i=0,o=0,s;return l;function l(k){return u(k)}function u(k){const x=r.events[r.events.length-1];return i=x&&x[1].type==="linePrefix"?x[2].sliceSerialize(x[1],!0).length:0,s=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===s?(o++,e.consume(k),c):o<3?n(k):(e.exit("codeFencedFenceSequence"),X(k)?J(e,d,"whitespace")(k):d(k))}function d(k){return k===null||j(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(Cl,S,N)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):X(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),J(e,p,"whitespace")(k)):k===96&&k===s?n(k):(e.consume(k),g)}function p(k){return k===null||j(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===s?n(k):(e.consume(k),m)}function S(k){return e.attempt(a,N,y)(k)}function y(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),E}function E(k){return i>0&&X(k)?J(e,_,"linePrefix",i+1)(k):_(k)}function _(k){return k===null||j(k)?e.check(Cl,S,N)(k):(e.enter("codeFlowValue"),A(k))}function A(k){return k===null||j(k)?(e.exit("codeFlowValue"),_(k)):(e.consume(k),A)}function N(k){return e.exit("codeFenced"),t(k)}function I(k,x,D){let B=0;return T;function T(C){return k.enter("lineEnding"),k.consume(C),k.exit("lineEnding"),v}function v(C){return k.enter("codeFencedFence"),X(C)?J(k,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):L(C)}function L(C){return C===s?(k.enter("codeFencedFenceSequence"),U(C)):D(C)}function U(C){return C===s?(B++,k.consume(C),U):B>=o?(k.exit("codeFencedFenceSequence"),X(C)?J(k,M,"whitespace")(C):M(C)):D(C)}function M(C){return C===null||j(C)?(k.exit("codeFencedFence"),x(C)):D(C)}}}function Gp(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const ln={name:"codeIndented",tokenize:Hp},jp={partial:!0,tokenize:Vp};function Hp(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),J(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):j(u)?e.attempt(jp,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||j(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Vp(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):J(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):j(o)?a(o):n(o)}}const Wp={name:"codeText",previous:Yp,resolve:qp,tokenize:Kp};function qp(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Yp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kp(e,t,n){let r=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,c(d)):j(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||j(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",u(d))}}class Xp{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 a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ut(this.left,r),i.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),ut(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ut(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);ut(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ut(this.left,n.reverse())}}}function ut(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 Bu(e){const t={};let n=-1,r,a,i,o,s,l,u;const c=new Xp(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Zp(c,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},s=c.slice(a,n),s.unshift(r),c.splice(a,n-a+1,s))}}return ke(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Zp(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,d,g=-1,p=n,m=0,S=0;const y=[S];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(S=g+1,y.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),g=y.length;g--;){const E=s.slice(y[g],y[g+1]),_=i.pop();l.push([_,_+E.length-1]),e.splice(_,2,E)}for(l.reverse(),g=-1;++g<l.length;)u[m+l[g][0]]=m+l[g][1],m+=l[g][1]-l[g][0]-1;return u}const Qp={resolve:eg,tokenize:tg},Jp={partial:!0,tokenize:ng};function eg(e){return Bu(e),e}function tg(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):j(s)?e.check(Jp,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function ng(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),J(e,i,"linePrefix")}function i(o){if(o===null||j(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Pu(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),g):E===null||E===32||E===41||Bt(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),S(E))}function g(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),g(E)):E===null||E===60||j(E)?n(E):(e.consume(E),E===92?m:p)}function m(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function S(E){return!c&&(E===null||E===41||ie(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):c<u&&E===40?(e.consume(E),c++,S):E===41?(e.consume(E),c--,S):E===null||E===32||E===40||Bt(E)?n(E):(e.consume(E),E===92?y:S)}function y(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function $u(e,t,n,r,a,i){const o=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||j(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!X(p)),p===92?g:d)}function g(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function zu(e,t,n,r,a,i){let o;return s;function s(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),o=g===40?41:g,l):n(g)}function l(g){return g===o?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(i),u(g))}function u(g){return g===o?(e.exit(i),l(o)):g===null?n(g):j(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),J(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===o||g===null||j(g)?(e.exit("chunkString"),u(g)):(e.consume(g),g===92?d:c)}function d(g){return g===o||g===92?(e.consume(g),c):c(g)}}function pt(e,t){let n;return r;function r(a){return j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):X(a)?J(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const rg={name:"definition",tokenize:ig},ag={partial:!0,tokenize:og};function ig(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return $u.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return a=Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ie(p)?pt(e,u)(p):u(p)}function u(p){return Pu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(ag,d,d)(p)}function d(p){return X(p)?J(e,g,"whitespace")(p):g(p)}function g(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function og(e,t,n){return r;function r(s){return ie(s)?pt(e,a)(s):n(s)}function a(s){return zu(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return X(s)?J(e,o,"whitespace")(s):o(s)}function o(s){return s===null||j(s)?t(s):n(s)}}const sg={name:"hardBreakEscape",tokenize:lg};function lg(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return j(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const ug={name:"headingAtx",resolve:cg,tokenize:dg};function cg(e,t){let n=e.length-2,r=3,a,i;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ke(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function dg(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||ie(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||j(c)?(e.exit("atxHeading"),t(c)):X(c)?J(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||ie(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const pg=["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"],Ll=["pre","script","style","textarea"],gg={concrete:!0,name:"htmlFlow",resolveTo:bg,tokenize:hg},fg={partial:!0,tokenize:yg},mg={partial:!0,tokenize:Eg};function bg(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 hg(e,t,n){const r=this;let a,i,o,s,l;return u;function u(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),g):b===47?(e.consume(b),i=!0,S):b===63?(e.consume(b),a=3,r.interrupt?t:h):he(b)?(e.consume(b),o=String.fromCharCode(b),y):n(b)}function g(b){return b===45?(e.consume(b),a=2,p):b===91?(e.consume(b),a=5,s=0,m):he(b)?(e.consume(b),a=4,r.interrupt?t:h):n(b)}function p(b){return b===45?(e.consume(b),r.interrupt?t:h):n(b)}function m(b){const $="CDATA[";return b===$.charCodeAt(s++)?(e.consume(b),s===$.length?r.interrupt?t:L:m):n(b)}function S(b){return he(b)?(e.consume(b),o=String.fromCharCode(b),y):n(b)}function y(b){if(b===null||b===47||b===62||ie(b)){const $=b===47,H=o.toLowerCase();return!$&&!i&&Ll.includes(H)?(a=1,r.interrupt?t(b):L(b)):pg.includes(o.toLowerCase())?(a=6,$?(e.consume(b),E):r.interrupt?t(b):L(b)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?_(b):A(b))}return b===45||ge(b)?(e.consume(b),o+=String.fromCharCode(b),y):n(b)}function E(b){return b===62?(e.consume(b),r.interrupt?t:L):n(b)}function _(b){return X(b)?(e.consume(b),_):T(b)}function A(b){return b===47?(e.consume(b),T):b===58||b===95||he(b)?(e.consume(b),N):X(b)?(e.consume(b),A):T(b)}function N(b){return b===45||b===46||b===58||b===95||ge(b)?(e.consume(b),N):I(b)}function I(b){return b===61?(e.consume(b),k):X(b)?(e.consume(b),I):A(b)}function k(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,x):X(b)?(e.consume(b),k):D(b)}function x(b){return b===l?(e.consume(b),l=null,B):b===null||j(b)?n(b):(e.consume(b),x)}function D(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ie(b)?I(b):(e.consume(b),D)}function B(b){return b===47||b===62||X(b)?A(b):n(b)}function T(b){return b===62?(e.consume(b),v):n(b)}function v(b){return b===null||j(b)?L(b):X(b)?(e.consume(b),v):n(b)}function L(b){return b===45&&a===2?(e.consume(b),V):b===60&&a===1?(e.consume(b),q):b===62&&a===4?(e.consume(b),ee):b===63&&a===3?(e.consume(b),h):b===93&&a===5?(e.consume(b),oe):j(b)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(fg,z,U)(b)):b===null||j(b)?(e.exit("htmlFlowData"),U(b)):(e.consume(b),L)}function U(b){return e.check(mg,M,z)(b)}function M(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),C}function C(b){return b===null||j(b)?U(b):(e.enter("htmlFlowData"),L(b))}function V(b){return b===45?(e.consume(b),h):L(b)}function q(b){return b===47?(e.consume(b),o="",ne):L(b)}function ne(b){if(b===62){const $=o.toLowerCase();return Ll.includes($)?(e.consume(b),ee):L(b)}return he(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),ne):L(b)}function oe(b){return b===93?(e.consume(b),h):L(b)}function h(b){return b===62?(e.consume(b),ee):b===45&&a===2?(e.consume(b),h):L(b)}function ee(b){return b===null||j(b)?(e.exit("htmlFlowData"),z(b)):(e.consume(b),ee)}function z(b){return e.exit("htmlFlow"),t(b)}}function Eg(e,t,n){const r=this;return a;function a(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function yg(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(wt,t,n)}}const Sg={name:"htmlText",tokenize:wg};function wg(e,t,n){const r=this;let a,i,o;return s;function s(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),l}function l(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),I):h===63?(e.consume(h),A):he(h)?(e.consume(h),D):n(h)}function u(h){return h===45?(e.consume(h),c):h===91?(e.consume(h),i=0,m):he(h)?(e.consume(h),_):n(h)}function c(h){return h===45?(e.consume(h),p):n(h)}function d(h){return h===null?n(h):h===45?(e.consume(h),g):j(h)?(o=d,q(h)):(e.consume(h),d)}function g(h){return h===45?(e.consume(h),p):d(h)}function p(h){return h===62?V(h):h===45?g(h):d(h)}function m(h){const ee="CDATA[";return h===ee.charCodeAt(i++)?(e.consume(h),i===ee.length?S:m):n(h)}function S(h){return h===null?n(h):h===93?(e.consume(h),y):j(h)?(o=S,q(h)):(e.consume(h),S)}function y(h){return h===93?(e.consume(h),E):S(h)}function E(h){return h===62?V(h):h===93?(e.consume(h),E):S(h)}function _(h){return h===null||h===62?V(h):j(h)?(o=_,q(h)):(e.consume(h),_)}function A(h){return h===null?n(h):h===63?(e.consume(h),N):j(h)?(o=A,q(h)):(e.consume(h),A)}function N(h){return h===62?V(h):A(h)}function I(h){return he(h)?(e.consume(h),k):n(h)}function k(h){return h===45||ge(h)?(e.consume(h),k):x(h)}function x(h){return j(h)?(o=x,q(h)):X(h)?(e.consume(h),x):V(h)}function D(h){return h===45||ge(h)?(e.consume(h),D):h===47||h===62||ie(h)?B(h):n(h)}function B(h){return h===47?(e.consume(h),V):h===58||h===95||he(h)?(e.consume(h),T):j(h)?(o=B,q(h)):X(h)?(e.consume(h),B):V(h)}function T(h){return h===45||h===46||h===58||h===95||ge(h)?(e.consume(h),T):v(h)}function v(h){return h===61?(e.consume(h),L):j(h)?(o=v,q(h)):X(h)?(e.consume(h),v):B(h)}function L(h){return h===null||h===60||h===61||h===62||h===96?n(h):h===34||h===39?(e.consume(h),a=h,U):j(h)?(o=L,q(h)):X(h)?(e.consume(h),L):(e.consume(h),M)}function U(h){return h===a?(e.consume(h),a=void 0,C):h===null?n(h):j(h)?(o=U,q(h)):(e.consume(h),U)}function M(h){return h===null||h===34||h===39||h===60||h===61||h===96?n(h):h===47||h===62||ie(h)?B(h):(e.consume(h),M)}function C(h){return h===47||h===62||ie(h)?B(h):n(h)}function V(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),t):n(h)}function q(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne}function ne(h){return X(h)?J(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):oe(h)}function oe(h){return e.enter("htmlTextData"),o(h)}}const Zn={name:"labelEnd",resolveAll:_g,resolveTo:Ig,tokenize:Ng},kg={tokenize:Rg},Tg={tokenize:xg},Ag={tokenize:vg};function _g(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ke(e,0,e.length,n),e}function Ig(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=Ae(s,e.slice(i+1,i+r+3)),s=Ae(s,[["enter",c,t]]),s=Ae(s,Ht(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=Ae(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Ae(s,e.slice(o+1)),s=Ae(s,[["exit",l,t]]),ke(e,i,e.length,s),e}function Ng(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(g){return i?i._inactive?d(g):(o=r.parser.defined.includes(Ie(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),l):n(g)}function l(g){return g===40?e.attempt(kg,c,o?c:d)(g):g===91?e.attempt(Tg,c,o?u:d)(g):o?c(g):d(g)}function u(g){return e.attempt(Ag,c,d)(g)}function c(g){return t(g)}function d(g){return i._balanced=!0,n(g)}}function Rg(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return ie(d)?pt(e,i)(d):i(d)}function i(d){return d===41?c(d):Pu(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return ie(d)?pt(e,l)(d):c(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?zu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ie(d)?pt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function xg(e,t,n){const r=this;return a;function a(s){return $u.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function vg(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Cg={name:"labelStartImage",resolveAll:Zn.resolveAll,tokenize:Og};function Og(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Lg={name:"labelStartLink",resolveAll:Zn.resolveAll,tokenize:Dg};function Dg(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const un={name:"lineEnding",tokenize:Mg};function Mg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),J(e,t,"linePrefix")}}const Mt={name:"thematicBreak",tokenize:Fg};function Fg(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||j(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),X(u)?J(e,s,"whitespace")(u):s(u))}}const Ee={continuation:{tokenize:$g},exit:Gg,name:"list",tokenize:Pg},Ug={partial:!0,tokenize:jg},Bg={partial:!0,tokenize:zg};function Pg(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:vn(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Mt,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return vn(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(wt,r.interrupt?n:c,e.attempt(Ug,g,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,g(p)}function d(p){return X(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):n(p)}function g(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $g(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(wt,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,J(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!X(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bg,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,J(e,e.attempt(Ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function zg(e,t,n){const r=this;return J(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function Gg(e){e.exit(this.containerState.type)}function jg(e,t,n){const r=this;return J(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!X(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Dl={name:"setextUnderline",resolveTo:Hg,tokenize:Vg};function Hg(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Vg(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),X(u)?J(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||j(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Wg={tokenize:qg};function qg(e){const t=this,n=e.attempt(wt,r,e.attempt(this.parser.constructs.flowInitial,a,J(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Qp,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Yg={resolveAll:ju()},Kg=Gu("string"),Xg=Gu("text");function Gu(e){return{resolveAll:ju(e==="text"?Zg:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let g=-1;if(d)for(;++g<d.length;){const p=d[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ju(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Zg(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],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Qg={42:Ee,43:Ee,45:Ee,48:Ee,49:Ee,50:Ee,51:Ee,52:Ee,53:Ee,54:Ee,55:Ee,56:Ee,57:Ee,62:Mu},Jg={91:rg},ef={[-2]:ln,[-1]:ln,32:ln},tf={35:ug,42:Mt,45:[Dl,Mt],60:gg,61:Dl,95:Mt,96:Ol,126:Ol},nf={38:Uu,92:Fu},rf={[-5]:un,[-4]:un,[-3]:un,33:Cg,38:Uu,42:Cn,60:[Lp,Sg],91:Lg,92:[sg,Fu],93:Zn,95:Cn,96:Wp},af={null:[Cn,Yg]},of={null:[42,95]},sf={null:[]},lf=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:of,contentInitial:Jg,disable:sf,document:Qg,flow:tf,flowInitial:ef,insideSpan:af,string:nf,text:rf},Symbol.toStringTag,{value:"Module"}));function uf(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 a={},i=[];let o=[],s=[];const l={attempt:x(I),check:x(k),consume:_,enter:A,exit:N,interrupt:x(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:m,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function d(v){return o=Ae(o,v),y(),o[o.length-1]!==null?[]:(D(t,0),u.events=Ht(i,u.events,u),u.events)}function g(v,L){return df(p(v),L)}function p(v){return cf(o,v)}function m(){const{_bufferIndex:v,_index:L,line:U,column:M,offset:C}=r;return{_bufferIndex:v,_index:L,line:U,column:M,offset:C}}function S(v){a[v.line]=v.column,T()}function y(){let v;for(;r._index<o.length;){const L=o[r._index];if(typeof L=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<L.length;)E(L.charCodeAt(r._bufferIndex));else E(L)}}function E(v){c=c(v)}function _(v){j(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,T()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=v}function A(v,L){const U=L||{};return U.type=v,U.start=m(),u.events.push(["enter",U,u]),s.push(U),U}function N(v){const L=s.pop();return L.end=m(),u.events.push(["exit",L,u]),L}function I(v,L){D(v,L.from)}function k(v,L){L.restore()}function x(v,L){return U;function U(M,C,V){let q,ne,oe,h;return Array.isArray(M)?z(M):"tokenize"in M?z([M]):ee(M);function ee(G){return K;function K(te){const re=te!==null&&G[te],ue=te!==null&&G.null,Te=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return z(Te)(te)}}function z(G){return q=G,ne=0,G.length===0?V:b(G[ne])}function b(G){return K;function K(te){return h=B(),oe=G,G.partial||(u.currentConstruct=G),G.name&&u.parser.constructs.disable.null.includes(G.name)?H():G.tokenize.call(L?Object.assign(Object.create(u),L):u,l,$,H)(te)}}function $(G){return v(oe,h),C}function H(G){return h.restore(),++ne<q.length?b(q[ne]):V}}}function D(v,L){v.resolveAll&&!i.includes(v)&&i.push(v),v.resolve&&ke(u.events,L,u.events.length-L,v.resolve(u.events.slice(L),u)),v.resolveTo&&(u.events=v.resolveTo(u.events,u))}function B(){const v=m(),L=u.previous,U=u.currentConstruct,M=u.events.length,C=Array.from(s);return{from:M,restore:V};function V(){r=v,u.previous=L,u.currentConstruct=U,u.events.length=M,s=C,T()}}function T(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function cf(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function df(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function pf(e){const r={constructs:Lu([lf,...(e||{}).extensions||[]]),content:a(Ip),defined:[],document:a(Rp),flow:a(Wg),lazy:{},string:a(Kg),text:a(Xg)};return r;function a(i){return o;function o(s){return uf(r,i,s)}}}function gf(e){for(;!Bu(e););return e}const Ml=/[\0\t\n\r]/g;function ff(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let u,c,d,g,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(Ml.lastIndex=d,u=Ml.exec(i),g=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(g),!u){t=i.slice(d);break}if(p===10&&d===g&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<g&&(l.push(i.slice(d,g)),e+=g-d),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=g+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const mf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bf(e){return e.replace(mf,hf)}function hf(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Du(n.slice(i?2:1),i?16:10)}return ht(n)||e}const Hu={}.hasOwnProperty;function Ef(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yf(n)(gf(pf(n).document().write(ff()(e,t,!0))))}function yf(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(dl),autolinkProtocol:B,autolinkEmail:B,atxHeading:i(ll),blockQuote:i(ue),characterEscape:B,characterReference:B,codeFenced:i(Te),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Te,o),codeText:i(De,o),codeTextData:B,data:B,codeFlowValue:B,definition:i(rn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Mc),hardBreakEscape:i(ul),hardBreakTrailing:i(ul),htmlFlow:i(cl,o),htmlFlowData:B,htmlText:i(cl,o),htmlTextData:B,image:i(Fc),label:o,link:i(dl),listItem:i(Uc),listItemValue:g,listOrdered:i(pl,d),listUnordered:i(pl),paragraph:i(Bc),reference:b,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(ll),strong:i(Pc),thematicBreak:i(zc)},exit:{atxHeading:l(),atxHeadingSequence:I,autolink:l(),autolinkEmail:re,autolinkProtocol:te,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,characterReference:K,codeFenced:l(y),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:T,codeIndented:l(E),codeText:l(C),codeTextData:T,data:T,definition:l(),definitionDestinationString:N,definitionLabelString:_,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(U),htmlFlowData:T,htmlText:l(M),htmlTextData:T,image:l(q),label:oe,labelText:ne,lineEnding:v,link:l(V),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:$,resourceDestinationString:h,resourceTitleString:ee,resource:z,setextHeading:l(D),setextHeadingLineSequence:x,setextHeadingText:k,strong:l(),thematicBreak:l()}};Vu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let P={type:"root",children:[]};const W={stack:[P],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:n},Q=[];let ae=-1;for(;++ae<R.length;)if(R[ae][1].type==="listOrdered"||R[ae][1].type==="listUnordered")if(R[ae][0]==="enter")Q.push(ae);else{const _e=Q.pop();ae=a(R,_e,ae)}for(ae=-1;++ae<R.length;){const _e=t[R[ae][0]];Hu.call(_e,R[ae][1].type)&&_e[R[ae][1].type].call(Object.assign({sliceSerialize:R[ae][2].sliceSerialize},W),R[ae][1])}if(W.tokenStack.length>0){const _e=W.tokenStack[W.tokenStack.length-1];(_e[1]||Fl).call(W,void 0,_e[0])}for(P.position={start:Me(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Me(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)P=t.transforms[ae](P)||P;return P}function a(R,P,W){let Q=P-1,ae=-1,_e=!1,Be,ve,it,ot;for(;++Q<=W;){const Se=R[Q];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?ae++:ae--,ot=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Be&&!ot&&!ae&&!it&&(it=Q),ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ot=void 0}if(!ae&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||ae===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Be){let je=Q;for(ve=void 0;je--;){const Ce=R[je];if(Ce[1].type==="lineEnding"||Ce[1].type==="lineEndingBlank"){if(Ce[0]==="exit")continue;ve&&(R[ve][1].type="lineEndingBlank",_e=!0),Ce[1].type="lineEnding",ve=je}else if(!(Ce[1].type==="linePrefix"||Ce[1].type==="blockQuotePrefix"||Ce[1].type==="blockQuotePrefixWhitespace"||Ce[1].type==="blockQuoteMarker"||Ce[1].type==="listItemIndent"))break}it&&(!ve||it<ve)&&(Be._spread=!0),Be.end=Object.assign({},ve?R[ve][1].start:Se[1].end),R.splice(ve||Q,0,["exit",Be,Se[2]]),Q++,W++}if(Se[1].type==="listItemPrefix"){const je={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Be=je,R.splice(Q,0,["enter",je,Se[2]]),Q++,W++,it=void 0,ot=!0}}}return R[P][1]._spread=_e,W}function i(R,P){return W;function W(Q){s.call(this,R(Q),Q),P&&P.call(this,Q)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(R,P,W){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([P,W||void 0]),R.position={start:Me(P.start),end:void 0}}function l(R){return P;function P(W){R&&R.call(this,W),u.call(this,W)}}function u(R,P){const W=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==R.type&&(P?P.call(this,R,Q[0]):(Q[1]||Fl).call(this,R,Q[0]));else throw new Error("Cannot close `"+R.type+"` ("+dt({start:R.start,end:R.end})+"): it’s not open");W.position.end=Me(R.end)}function c(){return Xn(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function g(R){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function p(){const R=this.resume(),P=this.stack[this.stack.length-1];P.lang=R}function m(){const R=this.resume(),P=this.stack[this.stack.length-1];P.meta=R}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const R=this.resume(),P=this.stack[this.stack.length-1];P.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const R=this.resume(),P=this.stack[this.stack.length-1];P.value=R.replace(/(\r?\n|\r)$/g,"")}function _(R){const P=this.resume(),W=this.stack[this.stack.length-1];W.label=P,W.identifier=Ie(this.sliceSerialize(R)).toLowerCase()}function A(){const R=this.resume(),P=this.stack[this.stack.length-1];P.title=R}function N(){const R=this.resume(),P=this.stack[this.stack.length-1];P.url=R}function I(R){const P=this.stack[this.stack.length-1];if(!P.depth){const W=this.sliceSerialize(R).length;P.depth=W}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function x(R){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(R){const W=this.stack[this.stack.length-1].children;let Q=W[W.length-1];(!Q||Q.type!=="text")&&(Q=$c(),Q.position={start:Me(R.start),end:void 0},W.push(Q)),this.stack.push(Q)}function T(R){const P=this.stack.pop();P.value+=this.sliceSerialize(R),P.position.end=Me(R.end)}function v(R){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=P.children[P.children.length-1];W.position.end=Me(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(B.call(this,R),T.call(this,R))}function L(){this.data.atHardBreak=!0}function U(){const R=this.resume(),P=this.stack[this.stack.length-1];P.value=R}function M(){const R=this.resume(),P=this.stack[this.stack.length-1];P.value=R}function C(){const R=this.resume(),P=this.stack[this.stack.length-1];P.value=R}function V(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=P,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function q(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=P,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function ne(R){const P=this.sliceSerialize(R),W=this.stack[this.stack.length-2];W.label=bf(P),W.identifier=Ie(P).toLowerCase()}function oe(){const R=this.stack[this.stack.length-1],P=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const Q=R.children;W.children=Q}else W.alt=P}function h(){const R=this.resume(),P=this.stack[this.stack.length-1];P.url=R}function ee(){const R=this.resume(),P=this.stack[this.stack.length-1];P.title=R}function z(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function $(R){const P=this.resume(),W=this.stack[this.stack.length-1];W.label=P,W.identifier=Ie(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function H(R){this.data.characterReferenceType=R.type}function G(R){const P=this.sliceSerialize(R),W=this.data.characterReferenceType;let Q;W?(Q=Du(P,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=ht(P);const ae=this.stack[this.stack.length-1];ae.value+=Q}function K(R){const P=this.stack.pop();P.position.end=Me(R.end)}function te(R){T.call(this,R);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(R)}function re(R){T.call(this,R);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(R)}function ue(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function De(){return{type:"inlineCode",value:""}}function rn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Mc(){return{type:"emphasis",children:[]}}function ll(){return{type:"heading",depth:0,children:[]}}function ul(){return{type:"break"}}function cl(){return{type:"html",value:""}}function Fc(){return{type:"image",title:null,url:"",alt:null}}function dl(){return{type:"link",title:null,url:"",children:[]}}function pl(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Uc(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Bc(){return{type:"paragraph",children:[]}}function Pc(){return{type:"strong",children:[]}}function $c(){return{type:"text",value:""}}function zc(){return{type:"thematicBreak"}}}function Me(e){return{line:e.line,column:e.column,offset:e.offset}}function Vu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Vu(e,r):Sf(e,r)}}function Sf(e,t){let n;for(n in t)if(Hu.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 Fl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is still open")}function wf(e){const t=this;t.parser=n;function n(r){return Ef(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function kf(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 Tf(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|