bi-components-library 1.2.18 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +287 -277
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -39,10 +39,10 @@ ${(e||"").replace(/\r\n/g,`
|
|
|
39
39
|
`).trim();F&&(v[N]=F)}}),t.current.__tempVariableValues=v,g(P=>({...P,[m.key]:k}));return}if(!w){const A=E-1,x=`${m.key}_${A}`,v=t.current.querySelector(`[data-type="variable"][data-key="${x}"][data-multi-key="${m.key}"]`);if(v&&(v.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
40
40
|
`).trim().length>0&&E<b){const D=window.getSelection();if(D&&D.rangeCount>0){const P=D.getRangeAt(0),N=P.startContainer,C=N.nodeType===Node.ELEMENT_NODE?N.closest('[data-type="variable"][data-multi-key]'):N.parentElement?.closest('[data-type="variable"][data-multi-key]');if(C){const F=C.dataset.key;if(F){const U=document.createRange();U.setStartBefore(C),U.setEnd(P.startContainer,P.startOffset);const $=U.toString().length;p.current={key:F,offset:$}}}}g(P=>({...P,[m.key]:E+1}))}}})},[o,e,t,l,c,u,f,p,n,r,i,s,g,a]),rc=({disabled:e,lockStructure:t,config:n,editorRef:r,handleInput:a})=>I.useCallback(i=>{if(e){i.preventDefault();return}const s=i.target;if(s&&(s.tagName==="TEXTAREA"||s.tagName==="INPUT")&&s.closest?.('[data-variable-render="antd-textarea"]'))return;if(i.key==="Enter"){const u=i.target,l=u?.closest?.('[data-type="variable"]'),c=!!u?.closest?.('[data-type="richtext"]'),f=u?.tagName==="TEXTAREA"||!!u?.closest?.('[data-type="textarea"]');if(l){const g=l.getAttribute("data-node-type")||"";if(g==="report-url"||g==="markdown"||g==="markdown-name"){i.preventDefault();return}if(!(()=>{const h=l.dataset.multiKey;if(h)return n.find(y=>y.type==="multi-variable"&&y.key===h)?.allowNewline!==!1;const m=l.dataset.key;return n.find(E=>E.type==="variable"&&E.key===m)?.allowNewline!==!1})()){i.preventDefault();return}i.preventDefault();const T=window.getSelection();if(T&&T.rangeCount>0){const h=T.getRangeAt(0);h.deleteContents();const m=document.createElement("br");h.insertNode(m);const b=document.createTextNode("");m.parentNode?.insertBefore(b,m.nextSibling),h.setStart(b,0),h.collapse(!0),T.removeAllRanges(),T.addRange(h)}a();return}if(!c&&!f){i.preventDefault();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const u=o.anchorNode;let l=null;if(u&&(u.nodeType===Node.ELEMENT_NODE?l=u.closest('[data-type="text"]'):u.nodeType===Node.TEXT_NODE&&u.parentElement&&(l=u.parentElement.closest('[data-type="text"]'))),l){if(i.preventDefault(),i.stopPropagation(),r.current){const c=r.current.querySelector('[data-type="variable"], [data-type="upload"]');c&&c.focus()}return}}if(t&&o&&o.rangeCount>0){const u=o.anchorNode;let l=null;if(u&&(u.nodeType===Node.ELEMENT_NODE?l=u.closest(".tag-node"):u.nodeType===Node.TEXT_NODE&&u.parentElement&&(l=u.parentElement.closest(".tag-node"))),l){if(i.preventDefault(),i.stopPropagation(),r.current){const c=r.current.querySelector('[data-type="variable"], [data-type="upload"]');c&&c.focus()}return}}if(i.key==="Escape"&&r.current){if(t){i.preventDefault();return}r.current.innerHTML="",r.current.focus()}if(i.key==="Backspace"){const u=window.getSelection();if(u&&u.rangeCount>0){const l=u.getRangeAt(0),c=u.anchorNode;if(t){let g=null,p=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?(g=c.closest(".tag-node"),p=c.closest('[data-type="text"]')):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(g=c.parentElement.closest(".tag-node"),p=c.parentElement.closest('[data-type="text"]'))),(g||p)&&l.collapsed&&l.startOffset===0){i.preventDefault();return}}let f=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?f=c.closest('[data-type="variable"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(f=c.parentElement.closest('[data-type="variable"]'))),f){if(!l.collapsed)return;const g=f.innerText;if(g===""||g===""){i.preventDefault();return}if((()=>{try{const h=document.createRange();h.selectNodeContents(f),h.setEnd(l.startContainer,l.startOffset);const m=h.cloneContents(),b=document.createTreeWalker(m,NodeFilter.SHOW_ALL);for(;b.nextNode();){const E=b.currentNode;if(E.nodeType===Node.ELEMENT_NODE){if(E.tagName==="BR")return!1}else if(E.nodeType===Node.TEXT_NODE&&(E.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return l.startOffset===0}})()){i.preventDefault();return}if(g.startsWith("")&&l.startOffset===1){i.preventDefault();return}}}}},[n,e,r,a,t]),ac=({lockStructure:e,onAgentExit:t,editorRef:n,setPopoverVisible:r,isDraggingRef:a,mouseDownPosRef:i})=>{const s=(...g)=>{},o=g=>{try{const p=window.getSelection();if(!p)return s(g,"no selection");const T=p.rangeCount>0?p.getRangeAt(0):null;s(g,{rangeCount:p.rangeCount,isCollapsed:p.isCollapsed,anchorNode:p.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":p.anchorNode?.nodeName,anchorOffset:p.anchorOffset,focusNode:p.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":p.focusNode?.nodeName,focusOffset:p.focusOffset,range:T?{startContainer:T.startContainer.nodeType===Node.TEXT_NODE?"TEXT":T.startContainer.nodeName,startOffset:T.startOffset,endContainer:T.endContainer.nodeType===Node.TEXT_NODE?"TEXT":T.endContainer.nodeName,endOffset:T.endOffset}:null})}catch{}},u=I.useCallback(g=>{const p=g.target;if(s("mousedown",{tag:p.tagName,cls:p.className}),o("before mousedown"),p.closest(".rte-datepicker-wrapper")||p.closest(".rte-datepicker-host")||p.closest(".rte-select-wrapper")||p.closest(".rte-select-host")||p.closest(".ant-select-dropdown"))return;if(p.closest(".tag-close-btn")){if(g.preventDefault(),g.stopPropagation(),e)return;r(null),t?t():n.current&&(n.current.innerHTML="",n.current.focus());return}if(e){const m=p.closest(".tag-node"),b=p.closest('[data-type="text"]');if(m||b){g.preventDefault(),g.stopPropagation();const E=window.getSelection();E&&E.removeAllRanges();return}}const h=p.closest('[data-type="variable"]');if(h){if(s("mousedown on variable",{key:h.dataset.key,multiKey:h.dataset.multiKey,nodeType:h.getAttribute("data-node-type")||"",render:h.dataset.variableRender||"v1",classes:h.className}),h.dataset.variableRender==="antd-textarea")return;const m=!!p.closest(".variable-info-icon"),b=h.classList.contains("show-placeholder")||(h.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(s("v1 variable mousedown",{isPlaceholder:b,isOnIcon:m,innerText:h.innerText}),b&&!m){g.preventDefault(),window.requestAnimationFrame(()=>{o("raf before setRange (mousedown)");const E=window.getSelection();if(!E)return;const y=h;y.focus();const _=document.createTreeWalker(y,NodeFilter.SHOW_TEXT),w=_.nextNode()?_.currentNode:null,S=document.createRange();w?(S.setStart(w,0),S.collapse(!0)):(S.selectNodeContents(y),S.collapse(!0)),E.removeAllRanges(),E.addRange(S),o("raf after setRange (mousedown)")});return}return}i.current={x:g.clientX,y:g.clientY},a.current=!1,p.closest(".file-remove-btn")&&(g.preventDefault(),g.stopPropagation())},[n,a,e,i,t,r]),l=I.useCallback(g=>{if(!g.target.closest('[data-type="variable"]')&&i.current){const h=Math.abs(g.clientX-i.current.x),m=Math.abs(g.clientY-i.current.y);(h>3||m>3)&&(a.current=!0)}},[a,i]),c=I.useCallback(g=>{const p=g.target;s("mouseup",{tag:p.tagName,cls:p.className}),o("before mouseup");const T=p.closest('[data-type="variable"]');if(T){if(T.dataset.variableRender!=="antd-textarea"){const h=!!p.closest(".variable-info-icon"),m=T.classList.contains("show-placeholder")||(T.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;s("v1 variable mouseup",{key:T.dataset.key,isPlaceholder:m,isOnIcon:h,classes:T.className}),m&&!h&&(g.preventDefault(),window.requestAnimationFrame(()=>{o("raf before setRange (mouseup)");const b=window.getSelection();if(!b)return;const E=T;E.focus();const y=document.createTreeWalker(E,NodeFilter.SHOW_TEXT),_=y.nextNode()?y.currentNode:null,w=document.createRange();_?(w.setStart(_,0),w.collapse(!0)):(w.selectNodeContents(E),w.collapse(!0)),b.removeAllRanges(),b.addRange(w),o("raf after setRange (mouseup)")}))}i.current=null,a.current=!1;return}i.current=null,a.current=!1},[a,i]),f=I.useCallback(g=>{const T=g.target.closest('[data-type="variable"]');if(T){const h=window.getSelection();if(h){const m=document.createRange(),b=T.textContent||"";if(b.replace(/\u200B/g,"")){let y=0,_=b.length;b.startsWith("")&&(y=1),b.endsWith("")&&b.length>1&&(_=b.length-1);const w=T.firstChild;w&&w.nodeType===Node.TEXT_NODE?(m.setStart(w,y),m.setEnd(w,_)):m.selectNodeContents(T)}else m.selectNodeContents(T),m.collapse(!0);h.removeAllRanges(),h.addRange(m)}}},[]);return{handleMouseDown:u,handleMouseMove:l,handleMouseUp:c,handleDoubleClick:f}},ic=({disabled:e,config:t,multiVariableCounts:n,setMultiVariableCounts:r,editorRef:a,handleInput:i,markdownAnalyzeRef:s,reportAnalyzeRef:o,markdownNameAnalyzeRef:u,markdownAnalyzeStateRef:l,markdownRawTextRef:c,setMarkdownAnalyzeState:f,setFooterFiles:g,footerFiles:p,messageApi:T,onPasteUnsupported:h})=>I.useCallback(m=>{const b=t.some(v=>v.type==="tag"),E=Array.from(m.clipboardData.files);if(E.length>0&&b){m.preventDefault();return}if(E.length>0){m.preventDefault();const v=["pdf","xla","xlb","xlc","xlm","xls","xlsx","xlt","xlw","csv","tsv","iif","doc","docx","dot","odt","rtf","pot","ppa","pps","ppt","pptx","pwz","wiz","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","htm","html","ics","ifb","in","js","json","ksh","png","jpeg","jpg","gif","webp","md","php","pkl","rb","tar","tex","ts","txt","xml"],k=[];let D=!1;for(const P of E){const N=(P.name||"").split(".").pop()?.toLowerCase()||"";v.includes(N)?k.push(P):D=!0}if(D&&h?.(),k.length>0){const N=p.reduce((U,$)=>U+$.size,0),C=[];let F=N;for(const U of k){if(F+U.size>52428800){T.error("文件总大小不能超过 50MB");break}C.push(U),F+=U.size}C.length>0&&g(U=>[...C,...U])}return}const y=m.target;if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){m.preventDefault();return}m.preventDefault();const w=(m.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
41
|
`).replace(/\n+$/g,""),S=window.getSelection();if(S&&S.rangeCount>0){const v=S.anchorNode;if(v){let k=null;if(v.nodeType===Node.ELEMENT_NODE?k=v.closest('[data-type="variable"]'):v.nodeType===Node.TEXT_NODE&&v.parentElement&&(k=v.parentElement.closest('[data-type="variable"]')),k){const D=k.dataset.multiKey;if(D){const C=/[、,,\s\n\r\t]+/,F=w.split(C).map(U=>U.trim()).filter(U=>U.length>0);if(F.length>1){const U=parseInt(k.dataset.index||"0",10),$=t.find(X=>X.type==="multi-variable"&&X.key===D)?.maxCount||9,G=n[D]||1,L=Math.min(U+F.length,$);L>G&&r(ne=>({...ne,[D]:L}));const W=[];for(let ne=0;ne<G;ne++){const X=`${D}_${ne}`,re=a.current.querySelector(`[data-type="variable"][data-key="${X}"][data-multi-key="${D}"]`);if(re){const se=re.innerText.replace(/[\u200B\n]/g,"").trim();W.push(se)}}W.splice(U,1,...F.slice(0,$-U));const V=W.slice(0,$);V.length>0&&V[V.length-1]!==""&&V.length<$&&V.push("");const R=Math.max(V.length,1),K={};V.forEach((ne,X)=>{ne&&(K[`${D}_${X}`]=ne)}),a.current.querySelectorAll('[data-type="variable"]').forEach(ne=>{const X=ne.dataset.key,re=ne.dataset.multiKey;if(X&&re!==D){const se=ne.innerText.replace(/[\u200B\n]/g,"").trim();se&&(K[X]=se)}}),a.current.__tempVariableValues=K,r(ne=>({...ne,[D]:R}));return}}const P=k.getAttribute("data-node-type")||"";if(!(P==="markdown"||P==="report-url"||P==="markdown-name")){const C=(()=>{const U=k.getAttribute("data-node-type")||"";if(U==="report-url"||U==="markdown"||U==="markdown-name")return!1;const $=k.dataset.multiKey;if($)return t.find(V=>V.type==="multi-variable"&&V.key===$)?.allowNewline!==!1;const G=k.dataset.key;return t.find(W=>W.type==="variable"&&W.key===G)?.allowNewline!==!1})(),F=window.getSelection();if(F&&F.rangeCount>0){const U=F.getRangeAt(0);U.deleteContents();const $=document.createDocumentFragment(),L=(C?w:w.replace(/\n+/g," ")).split(`
|
|
42
|
-
`);for(let V=0;V<L.length;V++)$.appendChild(document.createTextNode(L[V])),C&&V<L.length-1&&$.appendChild(document.createElement("br"));U.insertNode($),F.removeAllRanges();const W=document.createRange();W.selectNodeContents(k),W.collapse(!1),F.addRange(W)}i();return}}}}let M=!1,A="";const x=window.getSelection();if(x&&x.rangeCount>0){const v=x.anchorNode;if(v){let k=null;if(v.nodeType===Node.ELEMENT_NODE?k=v.closest('[data-type="variable"]'):v.nodeType===Node.TEXT_NODE&&v.parentElement&&(k=v.parentElement.closest('[data-type="variable"]')),k){const D=k.getAttribute("data-node-type")||"",P=k.dataset.key;if(D==="markdown"&&P&&/20\d{2}-\d{2}-\d{2}/.test(w))M=!0,A=P,c.current[P]=w,f(N=>({...N,[P]:{...N[P],status:"loading",error:void 0}}));else if(D==="report-url"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();o.current(P,N)},0);return}else if(D==="markdown-name"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();u.current(P,N)},0);return}}}}if(M&&A){setTimeout(()=>{s.current(A,w)},0);return}document.execCommand("insertText",!1,w),i(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&l.current.tableData?.status==="success"&&(f(k=>({...k,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,s.current("tableData",w)},0))},0)},[t,e,a,i,s,l,c,n,h,o,g,p,T,f,r]);async function Ii(e){const t=e.split("/").pop()?.split("?")[0]||"file",n=decodeURIComponent(t),r=async a=>{const i=await a.blob();return new File([i],n,{type:i.type||"application/octet-stream"})};try{const a=`/api/image-proxy?url=${encodeURIComponent(e)}`,i=await fetch(a);if(i.ok)return r(i)}catch{}return null}const sc=({config:e,files:t,footerFiles:n,onFooterFilesClear:r,onSend:a,isProcessing:i,disabled:s,loading:o,isFormValid:u,editorRef:l,markdownAnalyzeState:c,markdownNameAnalyzeState:f,videoState:g})=>I.useCallback(()=>{if(i||s||o||!u||!l.current)return;if(e.length===0){const E=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!E&&n.length===0)return;if(n.length>0){const y=new FormData;y.append("fullPrompt",E),n.forEach(_=>{y.append("fileUrls",_)}),a(y,E),r()}else a(E,E);if(l.current){l.current.textContent="";const y=new Event("input",{bubbles:!0});l.current.dispatchEvent(y)}return}const p=l.current;let T="";const h={},m=E=>{if(!(E.nodeType===Node.ELEMENT_NODE&&E.style.display==="none")){if(E.nodeType===Node.TEXT_NODE)T+=(E.textContent||"").replace(/\u200B/g,"");else if(E.nodeType===Node.ELEMENT_NODE){const y=E,_=y.dataset.type,w=y.dataset.key;if(_==="variable"&&w){let S="";const M=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:x=>{const v=y.querySelector(".variable-info-icon");return v&&v.contains(x)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;M.nextNode();)S+=M.currentNode.textContent||"";const A=S.replace(/[\u200B\n]/g,"").trim();if(A){const x=y.dataset.multiKey;if(x){(!h[x]||!Array.isArray(h[x]))&&(h[x]=[]);const v=h[x];v.push(A),v.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A;if(y.dataset.nodeType==="report-url")if(h.url===void 0)h.url=A;else{const v=h.url;Array.isArray(v)?v.push(A):h.url=[String(v),A]}if(y.dataset.nodeType==="markdown-name"){const v=`${w}__sourceText`;h[v]===void 0&&(h[v]=A)}if(y.dataset.nodeType==="markdown"){const v=y.dataset.sourceTextKey||`${w}__sourceText`;if(h[v]===void 0)h[v]=A;else{const D=h[v];Array.isArray(D)?D.push(A):h[v]=[String(D),A]}const k=`${w}__markdown`;h[k]===void 0&&(h[k]=[ki(A)])}}}else if((_==="select"||_==="searchable-select"||_==="cascader")&&w){const S=(y.getAttribute("data-value")||"").trim();S&&(h[w]=S,T+=S)}else if(_==="textarea"&&w){const M=(y.value||"").replace(/\u200B/g,"").trim();M&&(h[w]=M,T+=M)}else if(_==="richtext"&&w){const S=y,M=S.dataset.nodeType,A=(S.textContent||"").replace(/\u200B/g,"").trim();if(A)if(M==="report-module"||M==="markdown-module"){(!h[w]||!Array.isArray(h[w]))&&(h[w]=[]);const x=h[w];x.push(A),x.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A}else if(_==="datepicker"&&w){const M=(y.getAttribute("data-value")||"").trim();if(M)if(M.includes(",")){const A=M.split(",");A.length===2?(h[w]=A,T+=`[${A[0]}, ${A[1]}]`):(h[w]=M,T+=M)}else h[w]=M,T+=M}else if(_==="number-input"&&w){const M=(y.value||"").trim();M&&(h[w]=M,T+=M)}else if(_==="upload"&&w){const S=y.dataset.batchKey;if(S){const M=e.find(A=>A.type==="upload"&&A.key===S);if(M&&typeof M.maxCount=="number"&&typeof M.minCount=="number"){const A=[];for(let x=0;x<M.maxCount;x++){const v=`${S}-${x}`,k=t[v];k&&A.push(k)}h[S]||(h[S]=A.length>0?A:null,A.length>0&&(T+=` [附带${A.length}个文件: ${A.map(x=>typeof x=="string"?x.split("/").pop()||"file":x.name).join(", ")}] `))}else if(h[w]=t[w]??null,t[w]){const A=t[w];T+=` [附带文件: ${typeof A=="string"?A.split("/").pop()||"file":A.name}] `}}else if(h[w]=t[w]??null,t[w]){const M=t[w];T+=` [附带文件: ${typeof M=="string"?M.split("/").pop()||"file":M.name}] `}}else if((_==="video-url"||_==="video-upload")&&w){const S=g?.[w];if(S?.status==="success"&&S.videoUrl){h[w]=S.videoUrl,S.file&&(h[`${w}__file`]=S.file);const M=S.fileName||"视频";T+=` [附带视频: ${M}] `}}else{if(y.classList.contains("tag-close-btn")||y.classList.contains("file-remove-btn")||y.classList.contains("video-remove-btn"))return;y.getAttribute("contenteditable")==="false"&&!_&&y.classList.contains("tag-node")?T+=y.innerText:y.childNodes.forEach(m)}}}};if(p.childNodes.forEach(m),T=T.trim(),!T)return;Object.keys(c).forEach(E=>{const y=c[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),Object.keys(f).forEach(E=>{const y=f[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),(async()=>{for(const y of Object.keys(h)){const _=h[y];if(typeof _=="string"&&_.startsWith("http")){if(e.find(S=>S.type==="upload"&&S.key===y)){const S=await Ii(_);S&&(h[y]=S)}}else if(Array.isArray(_)&&e.find(S=>S.type==="upload"&&S.key===y)){for(let S=0;S<_.length;S++)if(typeof _[S]=="string"&&_[S].startsWith("http")){const M=await Ii(_[S]);M&&(_[S]=M)}}}const E=new FormData;E.append("fullPrompt",T),Object.keys(h).forEach(y=>{const _=h[y];if(_!=null)if(_ instanceof File)E.append(y,_);else if(Array.isArray(_)){const w=e.some(x=>x.type==="multi-variable"&&x.key===y),S=e.some(x=>x.type==="report-url"&&x.key===y),M=y.endsWith("__markdown");w||S||M||y==="url"?_.forEach(x=>{x!=null&&x!==""&&E.append(y,String(x))}):_.forEach((x,v)=>{x!=null&&(x instanceof File?E.append(`${y}[${v}]`,x):typeof x=="string"?E.append(`${y}[${v}]`,x):E.append(`${y}[${v}]`,String(x)))})}else typeof _=="string"?E.append(y,_):E.append(y,String(_))}),n.length>0&&n.forEach(y=>{E.append("fileUrls",y)}),a(E,T),n.length>0&&r()})()},[e,t,n,r,a,i,s,o,u,l,c,f,g]);function Li(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Mr(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Li(t[r])&&Li(e[r])&&Object.keys(t[r]).length>0&&Mr(e[r],t[r])})}const Oi={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wt(){const e=typeof document<"u"?document:{};return Mr(e,Oi),e}const oc={document:Oi,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function He(){const e=typeof window<"u"?window:{};return Mr(e,oc),e}function uc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function lc(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Di(e,t=0){return setTimeout(e,t)}function Gn(){return Date.now()}function cc(e){const t=He();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function dc(e,t="x"){const n=He();let r,a,i;const s=cc(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(o=>o.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function Yn(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function fc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function We(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!fc(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,o=i.length;s<o;s+=1){const u=i[s],l=Object.getOwnPropertyDescriptor(a,u);l!==void 0&&l.enumerable&&(Yn(t[u])&&Yn(a[u])?a[u].__swiper__?t[u]=a[u]:We(t[u],a[u]):!Yn(t[u])&&Yn(a[u])?(t[u]={},a[u].__swiper__?t[u]=a[u]:We(t[u],a[u])):t[u]=a[u])}}}return t}function Ut(e,t,n){e.style.setProperty(t,n)}function Pi({swiper:e,targetPosition:t,side:n}){const r=He(),a=-e.translate;let i=null,s;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>a?"next":"prev",l=(f,g)=>u==="next"&&f>=g||u==="prev"&&f<=g,c=()=>{s=new Date().getTime(),i===null&&(i=s);const f=Math.max(Math.min((s-i)/o,1),0),g=.5-Math.cos(f*Math.PI)/2;let p=a+g*(t-a);if(l(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),l(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function it(e,t=""){const n=He(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(a=>a.matches(t)):r}function pc(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function hc(e,t){const n=He();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=pc(e,t))),r}function Wn(e){try{console.warn(e);return}catch{}}function jn(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:uc(t)),n}function mc(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function gc(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function bt(e,t){return He().getComputedStyle(e,null).getPropertyValue(t)}function Xn(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Mi(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Br(e,t,n){const r=He();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function De(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function rn(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let Rr;function bc(){const e=He(),t=wt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Bi(){return Rr||(Rr=bc()),Rr}let Fr;function Ec({userAgent:e}={}){const t=Bi(),n=He(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,o=n.screen.height,u=a.match(/(Android);?[\s\/]+([\d.]+)?/);let l=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g=r==="Win32";let p=r==="MacIntel";const T=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!l&&p&&t.touch&&T.indexOf(`${s}x${o}`)>=0&&(l=a.match(/(Version)\/([\d.]+)/),l||(l=[0,1,"13_0_0"]),p=!1),u&&!g&&(i.os="android",i.android=!0),(l||f||c)&&(i.os="ios",i.ios=!0),i}function Ri(e={}){return Fr||(Fr=Ec(e)),Fr}let Hr;function yc(){const e=He(),t=Ri();let n=!1;function r(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(r()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[u,l]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=u<16||u===16&&l<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=r(),s=i||a&&t.ios;return{isSafari:n||i,needPerspectiveFix:n,need3dFix:s,isWebView:a}}function Fi(){return Hr||(Hr=yc()),Hr}function Tc({swiper:e,on:t,emit:n}){const r=He();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(c=>{i=r.requestAnimationFrame(()=>{const{width:f,height:g}=e;let p=f,T=g;c.forEach(({contentBoxSize:h,contentRect:m,target:b})=>{b&&b!==e.el||(p=m?m.width:(h[0]||h).inlineSize,T=m?m.height:(h[0]||h).blockSize)}),(p!==f||T!==g)&&s()})}),a.observe(e.el))},u=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},l=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){o();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",l)}),t("destroy",()=>{u(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",l)})}function xc({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=He(),s=(l,c={})=>{const f=i.MutationObserver||i.WebkitMutationObserver,g=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const T=function(){r("observerUpdate",p[0])};i.requestAnimationFrame?i.requestAnimationFrame(T):i.setTimeout(T,0)});g.observe(l,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(g)},o=()=>{if(e.params.observer){if(e.params.observeParents){const l=Mi(e.hostEl);for(let c=0;c<l.length;c+=1)s(l[c])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},u=()=>{a.forEach(l=>{l.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",o),n("destroy",u)}var Cc={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(o=>{o.apply(a,r)})}),t}};function Sc(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(bt(r,"padding-left")||0,10)-parseInt(bt(r,"padding-right")||0,10),n=n-parseInt(bt(r,"padding-top")||0,10)-parseInt(bt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Ac(){const e=this;function t(v,k){return parseFloat(v.getPropertyValue(e.getDirectionLabel(k))||0)}const n=e.params,{wrapperEl:r,slidesEl:a,rtlTranslate:i,wrongRTL:s}=e,o=e.virtual&&n.virtual.enabled,u=o?e.virtual.slides.length:e.slides.length,l=it(a,`.${e.params.slideClass}, swiper-slide`),c=o?e.virtual.slides.length:l.length;let f=[];const g=[],p=[];let T=n.slidesOffsetBefore;typeof T=="function"&&(T=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h=="function"&&(h=n.slidesOffsetAfter.call(e));const m=e.snapGrid.length,b=e.slidesGrid.length,E=e.size-T-h;let y=n.spaceBetween,_=-T,w=0,S=0;if(typeof E>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*E:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-T-h,l.forEach(v=>{i?v.style.marginLeft="":v.style.marginRight="",v.style.marginBottom="",v.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Ut(r,"--swiper-centered-offset-before",""),Ut(r,"--swiper-centered-offset-after","")),n.cssMode&&(Ut(r,"--swiper-slides-offset-before",`${T}px`),Ut(r,"--swiper-slides-offset-after",`${h}px`));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let A;const x=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(v=>typeof n.breakpoints[v].slidesPerView<"u").length>0;for(let v=0;v<c;v+=1){A=0;const k=l[v];if(!(k&&(M&&e.grid.updateSlide(v,k,l),bt(k,"display")==="none"))){if(o&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(A=n.virtual.slidesPerViewAutoSlideSize),A&&k&&(n.roundLengths&&(A=Math.floor(A)),k.style[e.getDirectionLabel("width")]=`${A}px`);else if(n.slidesPerView==="auto"){x&&(k.style[e.getDirectionLabel("width")]="");const D=getComputedStyle(k),P=k.style.transform,N=k.style.webkitTransform;if(P&&(k.style.transform="none"),N&&(k.style.webkitTransform="none"),n.roundLengths)A=e.isHorizontal()?Br(k,"width"):Br(k,"height");else{const C=t(D,"width"),F=t(D,"padding-left"),U=t(D,"padding-right"),$=t(D,"margin-left"),G=t(D,"margin-right"),L=D.getPropertyValue("box-sizing");if(L&&L==="border-box")A=C+$+G;else{const{clientWidth:W,offsetWidth:V}=k;A=C+F+U+$+G+(V-W)}}P&&(k.style.transform=P),N&&(k.style.webkitTransform=N),n.roundLengths&&(A=Math.floor(A))}else A=(E-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(A=Math.floor(A)),k&&(k.style[e.getDirectionLabel("width")]=`${A}px`);k&&(k.swiperSlideSize=A),p.push(A),n.centeredSlides?(_=_+A/2+w/2+y,w===0&&v!==0&&(_=_-E/2-y),v===0&&(_=_-E/2-y),Math.abs(_)<1/1e3&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup===0&&f.push(_),g.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(_),g.push(_),_=_+A+y),e.virtualSize+=A+y,w=A,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,E)+h,i&&s&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),M&&e.grid.updateWrapperSize(A,f),!n.centeredSlides){const v=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,k=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||v);let D=f.length;if(k){let N;if(n.slidesPerView==="auto"){N=1;let C=0;for(let F=p.length-1;F>=0&&(C+=p[F]+(F<p.length-1?y:0),C<=E);F-=1)N=p.length-F}else N=Math.floor(n.slidesPerView);D=Math.max(c-N,0)}const P=[];for(let N=0;N<f.length;N+=1){let C=f[N];n.roundLengths&&(C=Math.floor(C)),k?N<=D&&P.push(C):f[N]<=e.virtualSize-E&&P.push(C)}f=P,Math.floor(e.virtualSize-E)-Math.floor(f[f.length-1])>1&&(k||f.push(e.virtualSize-E))}if(o&&n.loop){const v=p[0]+y;if(n.slidesPerGroup>1){const k=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),D=v*n.slidesPerGroup;for(let P=0;P<k;P+=1)f.push(f[f.length-1]+D)}for(let k=0;k<e.virtual.slidesBefore+e.virtual.slidesAfter;k+=1)n.slidesPerGroup===1&&f.push(f[f.length-1]+v),g.push(g[g.length-1]+v),e.virtualSize+=v}if(f.length===0&&(f=[0]),y!==0){const v=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");l.filter((k,D)=>!n.cssMode||n.loop?!0:D!==l.length-1).forEach(k=>{k.style[v]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=v>E?v-E:0;f=f.map(D=>D<=0?-T:D>k?k+h:D)}if(n.centerInsufficientSlides){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=(T||0)+(h||0);if(v+k<E){const D=(E-v-k)/2;f.forEach((P,N)=>{f[N]=P-D}),g.forEach((P,N)=>{g[N]=P+D})}}if(Object.assign(e,{slides:l,snapGrid:f,slidesGrid:g,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ut(r,"--swiper-centered-offset-before",`${-f[0]}px`),Ut(r,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const v=-e.snapGrid[0],k=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+v),e.slidesGrid=e.slidesGrid.map(D=>D+k)}if(c!==u&&e.emit("slidesLengthChange"),f.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!o&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const v=`${n.containerModifierClass}backface-hidden`,k=e.el.classList.contains(v);c<=n.maxBackfaceHiddenSlides?k||e.el.classList.add(v):k&&e.el.classList.remove(v)}}function vc(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=o=>r?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{n.push(o)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const o=t.activeIndex+i;if(o>t.slides.length&&!r)break;n.push(s(o))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const o=n[i].offsetHeight;a=o>a?o:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function _c(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const Hi=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function wc(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let u=0;u<r.length;u+=1){const l=r[u];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),g=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(s-c),T=p+t.slidesSizesGrid[u],h=p>=0&&p<=t.size-t.slidesSizesGrid[u],m=p>=0&&p<t.size-1||T>1&&T<=t.size||p<=0&&T>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(u)),Hi(l,m,n.slideVisibleClass),Hi(l,h,n.slideFullyVisibleClass),l.progress=a?-f:f,l.originalProgress=a?-g:g}}function kc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:o}=t;const u=i,l=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||a<=0,s=f||a>=1,c&&(a=0),f&&(a=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),g=t.slidesGrid[c],p=t.slidesGrid[f],T=t.slidesGrid[t.slidesGrid.length-1],h=Math.abs(e);h>=g?o=(h-g)/T:o=(h+T-p)/T,o>1&&(o-=1)}Object.assign(t,{progress:a,progressLoop:o,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!u&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(u&&!i||l&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}const $r=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Nc(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,o=f=>it(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let u,l,c;if(i)if(n.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),u=o(`[data-swiper-slide-index="${f}"]`)}else u=o(`[data-swiper-slide-index="${a}"]`);else s?(u=t.find(f=>f.column===a),c=t.find(f=>f.column===a+1),l=t.find(f=>f.column===a-1)):u=t[a];u&&(s||(c=gc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),l=mc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!l===0&&(l=t[t.length-1]))),t.forEach(f=>{$r(f,f===u,n.slideActiveClass),$r(f,f===c,n.slideNextClass),$r(f,f===l,n.slidePrevClass)}),e.emitSlidesClasses()}const Kn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let a=r.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(r.shadowRoot?a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&!a.lazyPreloaderManaged&&a.remove())})),a&&!a.lazyPreloaderManaged&&a.remove()}},Ur=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},qr=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=a,o=[s-t];o.push(...Array.from({length:t}).map((u,l)=>s+r+l)),e.slides.forEach((u,l)=>{o.includes(u.column)&&Ur(e,l)});return}const i=a+r-1;if(e.params.rewind||e.params.loop)for(let s=a-t;s<=i+t;s+=1){const o=(s%n+n)%n;(o<a||o>i)&&Ur(e,o)}else for(let s=Math.max(a-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&(s>i||s<a)&&Ur(e,s)};function Ic(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Lc(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:o}=t;let u=e,l;const c=p=>{let T=p-t.virtual.slidesBefore;return T<0&&(T=t.virtual.slides.length+T),T>=t.virtual.slides.length&&(T-=t.virtual.slides.length),T};if(typeof u>"u"&&(u=Ic(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const p=Math.min(a.slidesPerGroupSkip,u);l=p+Math.floor((u-p)/a.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),u===i&&!t.params.loop){l!==o&&(t.snapIndex=l,t.emit("snapIndexChange"));return}if(u===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(u);return}const f=t.grid&&a.grid&&a.grid.rows>1;let g;if(t.virtual&&a.virtual.enabled)a.loop?g=c(u):g=u;else if(f){const p=t.slides.find(h=>h.column===u);let T=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(T)&&(T=Math.max(t.slides.indexOf(p),0)),g=Math.floor(T/a.grid.rows)}else if(t.slides[u]){const p=t.slides[u].getAttribute("data-swiper-slide-index");p?g=parseInt(p,10):g=u}else g=u;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:s,realIndex:g,previousIndex:i,activeIndex:u}),t.initialized&&qr(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==g&&t.emit("realIndexChange"),t.emit("slideChange"))}function Oc(e,t){const n=this,r=n.params;let a=e.closest(`.${r.slideClass}, swiper-slide`);!a&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!a&&o.matches&&o.matches(`.${r.slideClass}, swiper-slide`)&&(a=o)});let i=!1,s;if(a){for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===a){i=!0,s=o;break}}if(a&&i)n.clickedSlide=a,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Dc={updateSize:Sc,updateSlides:Ac,updateAutoHeight:vc,updateSlidesOffset:_c,updateSlidesProgress:wc,updateProgress:kc,updateSlidesClasses:Nc,updateActiveIndex:Lc,updateClickedSlide:Oc};function Pc(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=dc(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function Mc(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let o=0,u=0;const l=0;n.isHorizontal()?o=r?-e:e:u=e,a.roundLengths&&(o=Math.floor(o),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:u,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-u:a.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${o}px, ${u}px, ${l}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Bc(){return-this.snapGrid[0]}function Rc(){return-this.snapGrid[this.snapGrid.length-1]}function Fc(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:o}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const u=i.minTranslate(),l=i.maxTranslate();let c;if(r&&e>u?c=u:r&&e<l?c=l:c=e,i.updateProgress(c),s.cssMode){const f=i.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(g){!i||i.destroyed||g.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var Hc={getTranslate:Pc,setTranslate:Mc,minTranslate:Bc,maxTranslate:Rc,translateTo:Fc};function $c(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function $i({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&s==="reset"?e.emit(`slideResetTransition${r}`):t&&a!==i&&(e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Uc(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),$i({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function qc(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),$i({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var zc={setTransition:$c,transitionStart:Uc,transitionEnd:qc};function Vc(e=0,t,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:u,slidesGrid:l,previousIndex:c,activeIndex:f,rtlTranslate:g,wrapperEl:p,enabled:T}=i;if(!T&&!r&&!a||i.destroyed||i.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const h=Math.min(i.params.slidesPerGroupSkip,s);let m=h+Math.floor((s-h)/i.params.slidesPerGroup);m>=u.length&&(m=u.length-1);const b=-u[m];if(o.normalizeSlideIndex)for(let M=0;M<l.length;M+=1){const A=-Math.floor(b*100),x=Math.floor(l[M]*100),v=Math.floor(l[M+1]*100);typeof l[M+1]<"u"?A>=x&&A<v-(v-x)/2?s=M:A>=x&&A<v&&(s=M+1):A>=x&&(s=M)}if(i.initialized&&s!==f&&(!i.allowSlideNext&&(g?b>i.translate&&b>i.minTranslate():b<i.translate&&b<i.minTranslate())||!i.allowSlidePrev&&b>i.translate&&b>i.maxTranslate()&&(f||0)!==s))return!1;s!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(b);let E;s>f?E="next":s<f?E="prev":E="reset";const y=i.virtual&&i.params.virtual.enabled;if(!(y&&a)&&(g&&-b===i.translate||!g&&b===i.translate))return i.updateActiveIndex(s),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),o.effect!=="slide"&&i.setTranslate(b),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1;if(o.cssMode){const M=i.isHorizontal(),A=g?b:-b;if(t===0)y&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),y&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[M?"scrollLeft":"scrollTop"]=A})):p[M?"scrollLeft":"scrollTop"]=A,y&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:A,side:M?"left":"top"}),!0;p.scrollTo({[M?"left":"top"]:A,behavior:"smooth"})}return!0}const S=Fi().isSafari;return y&&!a&&S&&i.isElement&&i.virtual.update(!1,!1,s),i.setTransition(t),i.setTranslate(b),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,E),t===0?i.transitionEnd(n,E):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Gc(e=0,t,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const i=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let o;if(i){const h=s*a.params.grid.rows;o=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else o=a.getSlideIndexByData(s);const u=i?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:l,slidesOffsetBefore:c,slidesOffsetAfter:f}=a.params,g=l||!!c||!!f;let p=a.params.slidesPerView;p==="auto"?p=a.slidesPerViewDynamic():(p=Math.ceil(parseFloat(a.params.slidesPerView,10)),g&&p%2===0&&(p=p+1));let T=u-o<p;if(g&&(T=T||o<Math.ceil(p/2)),r&&g&&a.params.slidesPerView!=="auto"&&!i&&(T=!1),T){const h=g?o<a.activeIndex?"prev":"next":o-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?o+1:o-u+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(i){const h=s*a.params.grid.rows;s=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,t,n,r)}),a}function Yc(e,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let o=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const u=r.activeIndex<i.slidesPerGroupSkip?1:o,l=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!l&&i.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+u,e,t,n)}),!0}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+u,e,t,n)}function Wc(e,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:o,enabled:u,animating:l}=r;if(!u||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&a.virtual.enabled;if(a.loop){if(l&&!c&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=o?r.translate:-r.translate;function g(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}const p=g(f),T=i.map(E=>g(E)),h=a.freeMode&&a.freeMode.enabled;let m=i[T.indexOf(p)-1];if(typeof m>"u"&&(a.cssMode||h)){let E;i.forEach((y,_)=>{p>=y&&(E=_)}),typeof E<"u"&&(m=h?i[E]:i[E>0?E-1:E])}let b=0;if(typeof m<"u"&&(b=s.indexOf(m),b<0&&(b=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&r.isBeginning){const E=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(E,e,t,n)}else if(a.loop&&r.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(b,e,t,n)}),!0;return r.slideTo(b,e,t,n)}function jc(e,t=!0,n){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Xc(e,t=!0,n,r=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),o=s+Math.floor((i-s)/a.params.slidesPerGroup),u=a.rtlTranslate?a.translate:-a.translate;if(u>=a.snapGrid[o]){const l=a.snapGrid[o],c=a.snapGrid[o+1];u-l>(c-l)*r&&(i+=a.params.slidesPerGroup)}else{const l=a.snapGrid[o-1],c=a.snapGrid[o];u-l<=(c-l)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function Kc(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):a>(o?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(it(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Di(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var Qc={slideTo:Vc,slideToLoop:Gc,slideNext:Yc,slidePrev:Wc,slideReset:jc,slideToClosest:Xc,slideToClickedSlide:Kc};function Jc(e,t){const n=this,{params:r,slidesEl:a}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const i=()=>{it(a,`.${r.slideClass}, swiper-slide`).forEach((T,h)=>{T.setAttribute("data-swiper-slide-index",h)})},s=()=>{const p=it(a,`.${r.slideBlankClass}`);p.forEach(T=>{T.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},o=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||o)&&s();const u=r.slidesPerGroup*(o?r.grid.rows:1),l=n.slides.length%u!==0,c=o&&n.slides.length%r.grid.rows!==0,f=p=>{for(let T=0;T<p;T+=1){const h=n.isElement?jn("swiper-slide",[r.slideBlankClass]):jn("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(h)}};if(l){if(r.loopAddBlankSlides){const p=u-n.slides.length%u;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(c){if(r.loopAddBlankSlides){const p=r.grid.rows-n.slides.length%r.grid.rows;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();const g=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:g?void 0:"next",initial:t})}function Zc({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,initial:i,byController:s,byMousewheel:o}={}){const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:f,slidesEl:g,params:p}=u,{centeredSlides:T,slidesOffsetBefore:h,slidesOffsetAfter:m,initialSlide:b}=p,E=T||!!h||!!m;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&p.virtual.enabled){t&&(!E&&u.snapIndex===0?u.slideTo(u.virtual.slides.length,0,!1,!0):E&&u.snapIndex<p.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0)),u.allowSlidePrev=c,u.allowSlideNext=f,u.emit("loopFix");return}let y=p.slidesPerView;y==="auto"?y=u.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),E&&y%2===0&&(y=y+1));const _=p.slidesPerGroupAuto?y:p.slidesPerGroup;let w=E?Math.max(_,Math.ceil(y/2)):_;w%_!==0&&(w+=_-w%_),w+=p.loopAdditionalSlides,u.loopedSlides=w;const S=u.grid&&p.grid&&p.grid.rows>1;l.length<y+w||u.params.effect==="cards"&&l.length<y+w*2?Wn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&p.grid.fill==="row"&&Wn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],A=[],x=S?Math.ceil(l.length/p.grid.rows):l.length,v=i&&x-b<y&&!E;let k=v?b:u.activeIndex;typeof a>"u"?a=u.getSlideIndex(l.find($=>$.classList.contains(p.slideActiveClass))):k=a;const D=n==="next"||!n,P=n==="prev"||!n;let N=0,C=0;const U=(S?l[a].column:a)+(E&&typeof r>"u"?-y/2+.5:0);if(U<w){N=Math.max(w-U,_);for(let $=0;$<w-U;$+=1){const G=$-Math.floor($/x)*x;if(S){const L=x-G-1;for(let W=l.length-1;W>=0;W-=1)l[W].column===L&&M.push(W)}else M.push(x-G-1)}}else if(U+y>x-w){C=Math.max(U-(x-w*2),_),v&&(C=Math.max(C,y-x+b+1));for(let $=0;$<C;$+=1){const G=$-Math.floor($/x)*x;S?l.forEach((L,W)=>{L.column===G&&A.push(W)}):A.push(G)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect==="cards"&&l.length<y+w*2&&(A.includes(a)&&A.splice(A.indexOf(a),1),M.includes(a)&&M.splice(M.indexOf(a),1)),P&&M.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.prepend(l[$]),l[$].swiperLoopMoveDOM=!1}),D&&A.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.append(l[$]),l[$].swiperLoopMoveDOM=!1}),u.recalcSlides(),p.slidesPerView==="auto"?u.updateSlides():S&&(M.length>0&&P||A.length>0&&D)&&u.slides.forEach(($,G)=>{u.grid.updateSlide(G,$,u.slides)}),p.watchSlidesProgress&&u.updateSlidesOffset(),t){if(M.length>0&&P){if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k+N]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k+Math.ceil(N),0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else if(r){const $=S?M.length/p.grid.rows:M.length;u.slideTo(u.activeIndex+$,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(A.length>0&&D)if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k-C]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k-C,0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else{const $=S?A.length/p.grid.rows:A.length;u.slideTo(u.activeIndex-$,0,!1,!0)}}if(u.allowSlidePrev=c,u.allowSlideNext=f,u.controller&&u.controller.control&&!s){const $={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(G=>{!G.destroyed&&G.params.loop&&G.loopFix({...$,slideTo:G.params.slidesPerView===p.slidesPerView?t:!1})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...$,slideTo:u.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}u.emit("loopFix")}function ed(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var td={loopCreate:Jc,loopFix:Zc,loopDestroy:ed};function nd(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function rd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var ad={setGrabCursor:nd,unsetGrabCursor:rd};function id(e,t=this){function n(r){if(!r||r===wt()||r===He())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function Ui(e,t,n){const r=He(),{params:a}=e,i=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return i&&(n<=s||n>=r.innerWidth-s)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function sd(e){const t=this,n=wt();let r=e;r.originalEvent&&(r=r.originalEvent);const a=t.touchEventsData;if(r.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(a.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Ui(t,r,r.targetTouches[0].pageX);return}const{params:i,touches:s,enabled:o}=t;if(!o||!i.simulateTouch&&r.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let u=r.target;if(i.touchEventsTarget==="wrapper"&&!hc(u,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;const l=!!i.noSwipingClass&&i.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&c&&(u=c[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,g=!!(r.target&&r.target.shadowRoot);if(i.noSwiping&&(g?id(f,u):u.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const p=s.currentX,T=s.currentY;if(!Ui(t,r,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=T,a.touchStartTime=Gn(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let h=!0;u.matches(a.focusableElements)&&(h=!1,u.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==u&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!u.matches(a.focusableElements))&&n.activeElement.blur();const m=h&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||m)&&!u.isContentEditable&&r.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function od(e){const t=wt(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:o}=n;if(!o||!a.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(r.touchId!==null||u.pointerId!==r.pointerId))return;let l;if(u.type==="touchmove"){if(l=[...u.changedTouches].find(w=>w.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=u;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u);return}const c=l.pageX,f=l.pageY;if(u.preventedByNestedSwiper){i.startX=c,i.startY=f;return}if(!n.allowTouchMove){u.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f}),r.touchStartTime=Gn());return}if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(f<i.startY&&n.translate<=n.maxTranslate()||f>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(s&&(c>i.startX&&-n.translate<=n.maxTranslate()||c<i.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(c<i.startX&&n.translate<=n.maxTranslate()||c>i.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u.target&&u.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",u),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=f;const g=i.currentX-i.startX,p=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(g**2+p**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let w;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:g*g+p*p>=25&&(w=Math.atan2(Math.abs(p),Math.abs(g))*180/Math.PI,r.isScrolling=n.isHorizontal()?w>a.touchAngle:90-w>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||u.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&u.cancelable&&u.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&u.stopPropagation();let T=n.isHorizontal()?g:p,h=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(T=Math.abs(T)*(s?1:-1),h=Math.abs(h)*(s?1:-1)),i.diff=T,T*=a.touchRatio,s&&(T=-T,h=-h);const m=n.touchesDirection;n.swipeDirection=T>0?"prev":"next",n.touchesDirection=h>0?"prev":"next";const b=n.params.loop&&!a.cssMode,E=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(b&&E&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(w)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if(new Date().getTime(),a._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&m!==n.touchesDirection&&b&&E&&Math.abs(T)>=1){Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=T+r.startTranslate;let y=!0,_=a.resistanceRatio;if(a.touchReleaseOnEdges&&(_=0),T>0?(b&&E&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+T)**_))):T<0&&(b&&E&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-T)**_))),y&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(T)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ud(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let a;if(r.type==="touchend"||r.type==="touchcancel"){if(a=[...r.changedTouches].find(w=>w.identifier===n.touchId),!a||a.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;a=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:o,rtlTranslate:u,slidesGrid:l,enabled:c}=t;if(!c||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=Gn(),g=f-n.touchStartTime;if(t.allowClick){const w=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(w&&w[0]||r.target,w),t.emit("tap click",r),g<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Gn(),Di(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=u?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const T=p>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<s.slidesPerGroupSkip?1:s.slidesPerGroup){const S=w<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[w+S]<"u"?(T||p>=l[w]&&p<l[w+S])&&(h=w,m=l[w+S]-l[w]):(T||p>=l[w])&&(h=w,m=l[l.length-1]-l[l.length-2])}let b=null,E=null;s.rewind&&(t.isBeginning?E=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(p-l[h])/m,_=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(g>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(y>1-s.longSwipesRatio?t.slideTo(h+_):E!==null&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(E):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:h+_),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:h))}}function qi(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function ld(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function cd(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function dd(e){const t=this;Kn(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function fd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const zi=(e,t)=>{const n=wt(),{params:r,el:a,wrapperEl:i,device:s}=e,o=!!r.nested,u=t==="on"?"addEventListener":"removeEventListener",l=t;!a||typeof a=="string"||(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),a[u]("touchstart",e.onTouchStart,{passive:!1}),a[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[u]("click",e.onClick,!0),r.cssMode&&i[u]("scroll",e.onScroll),r.updateOnWindowResize?e[l](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",qi,!0):e[l]("observerUpdate",qi,!0),a[u]("load",e.onLoad,{capture:!0}))};function pd(){const e=this,{params:t}=e;e.onTouchStart=sd.bind(e),e.onTouchMove=od.bind(e),e.onTouchEnd=ud.bind(e),e.onDocumentTouchStart=fd.bind(e),t.cssMode&&(e.onScroll=cd.bind(e)),e.onClick=ld.bind(e),e.onLoad=dd.bind(e),zi(e,"on")}function hd(){zi(this,"off")}var md={attachEvents:pd,detachEvents:hd};const Vi=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function gd(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=wt(),o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",u=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),l=e.getBreakpoint(i,o,u);if(!l||e.currentBreakpoint===l)return;const f=(l in i?i[l]:void 0)||e.originalParams,g=Vi(e,r),p=Vi(e,f),T=e.params.grabCursor,h=f.grabCursor,m=r.enabled;g&&!p?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!g&&p&&(a.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),T&&!h?e.unsetGrabCursor():!T&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(S=>{if(typeof f[S]>"u")return;const M=r[S]&&r[S].enabled,A=f[S]&&f[S].enabled;M&&!A&&e[S].disable(),!M&&A&&e[S].enable()});const b=f.direction&&f.direction!==r.direction,E=r.loop&&(f.slidesPerView!==r.slidesPerView||b),y=r.loop;b&&n&&e.changeDirection(),We(e.params,f);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!_?e.disable():!m&&_&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",f),n&&(E?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function bd(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=He(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const u=parseFloat(o.substr(1));return{value:i*u,point:o}}return{value:o,point:o}});s.sort((o,u)=>parseInt(o.value,10)-parseInt(u.value,10));for(let o=0;o<s.length;o+=1){const{point:u,value:l}=s[o];t==="window"?a.matchMedia(`(min-width: ${l}px)`).matches&&(r=u):l<=n.clientWidth&&(r=u)}return r||"max"}var Ed={setBreakpoint:gd,getBreakpoint:bd};function yd(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function Td(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=yd(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function xd(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Cd={addClasses:Td,removeClasses:xd};function Sd(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Ad={checkOverflow:Sd},zr={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vd(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){We(t,r);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in i)){We(t,r);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),We(t,r)}}const Vr={eventsEmitter:Cc,update:Dc,translate:Hc,transition:zc,slide:Qc,loop:td,grabCursor:ad,events:md,breakpoints:Ed,checkOverflow:Ad,classes:Cd},Gr={};let Yr=class mt{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=We({},r),n&&!r.el&&(r.el=n);const a=wt();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const u=[];return a.querySelectorAll(r.el).forEach(l=>{const c=We({},r,{el:l});u.push(new mt(c))}),u}const i=this;i.__swiper__=!0,i.support=Bi(),i.device=Ri({userAgent:r.userAgent}),i.browser=Fi(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(u=>{u({params:r,swiper:i,extendParams:vd(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=We({},zr,s);return i.params=We({},o,Gr,r),i.originalParams=We({},i.params),i.passedParams=We({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(u=>{i.on(u,i.params.on[u])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=it(n,`.${r.slideClass}, swiper-slide`),i=Xn(a[0]);return Xn(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=it(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:o,size:u,activeIndex:l}=r;let c=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=i[l]?Math.ceil(i[l].swiperSlideSize):0,g;for(let p=l+1;p<i.length;p+=1)i[p]&&!g&&(f+=Math.ceil(i[p].swiperSlideSize),c+=1,f>u&&(g=!0));for(let p=l-1;p>=0;p-=1)i[p]&&!g&&(f+=i[p].swiperSlideSize,c+=1,f>u&&(g=!0))}else if(t==="current")for(let f=l+1;f<i.length;f+=1)(n?s[f]+o[f]-s[l]<u:s[f]-s[l]<u)&&(c+=1);else for(let f=l-1;f>=0;f-=1)s[l]-s[f]<u&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Kn(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):it(r,a())[0];return!s&&n.params.createElements&&(s=jn("div",n.params.wrapperClass),r.append(s),it(r,`.${n.params.slideClass}`).forEach(o=>{s.append(o)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl"),wrongRTL:bt(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const a=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&a.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(i=>{i.complete?Kn(n,i):i.addEventListener("load",s=>{Kn(n,s.target)})}),qr(n),n.initialized=!0,qr(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:o}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(u=>{u.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(u=>{r.off(u)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),lc(r)),r.destroyed=!0),null}static extendDefaults(t){We(Gr,t)}static get extendedDefaults(){return Gr}static get defaults(){return zr}static installModule(t){mt.prototype.__modules__||(mt.prototype.__modules__=[]);const n=mt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mt.installModule(n)),mt):(mt.installModule(t),mt)}};Object.keys(Vr).forEach(e=>{Object.keys(Vr[e]).forEach(t=>{Yr.prototype[t]=Vr[e][t]})}),Yr.use([Tc,xc]);const Gi=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function kt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function qt(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:kt(t[r])&&kt(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:qt(e[r],t[r]):e[r]=t[r]})}function Yi(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wi(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ji(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xi(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function _d(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function wd({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:o}){const u=r.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:l,pagination:c,navigation:f,scrollbar:g,virtual:p,thumbs:T}=e;let h,m,b,E,y,_,w,S;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes("controller")&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(m=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(l.pagination||l.pagination===!1)&&c&&!c.el&&(b=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(l.scrollbar||l.scrollbar===!1)&&g&&!g.el&&(E=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const M=A=>{e[A]&&(e[A].destroy(),A==="navigation"?(e.isElement&&(e[A].prevEl.remove(),e[A].nextEl.remove()),l[A].prevEl=void 0,l[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(e.isElement&&e[A].el.remove(),l[A].el=void 0,e[A].el=void 0))};r.includes("loop")&&e.isElement&&(l.loop&&!n.loop?_=!0:!l.loop&&n.loop?w=!0:S=!0),u.forEach(A=>{if(kt(l[A])&&kt(n[A]))Object.assign(l[A],n[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in n[A]&&!n[A].enabled&&M(A);else{const x=n[A];(x===!0||x===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?x===!1&&M(A):l[A]=n[A]}}),u.includes("controller")&&!m&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes("children")&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes("virtual")&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes("children")&&t&&l.loop&&(S=!0),h&&T.init()&&T.update(!0),m&&(e.controller.control=l.controller.control),b&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(l.pagination.el=o),c.init(),c.render(),c.update()),E&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),e.el.appendChild(s)),s&&(l.scrollbar.el=s),g.init(),g.updateSize(),g.setTranslate()),y&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),rn(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),rn(i,e.navigation.arrowSvg),i.part.add("button-prev"),e.el.appendChild(i))),a&&(l.navigation.nextEl=a),i&&(l.navigation.prevEl=i),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(_||S)&&e.loopDestroy(),(w||S)&&e.loopCreate(),e.update()}function kd(e={},t=!0){const n={on:{}},r={},a={};qt(n,zr),n._emitClasses=!0,n.init=!1;const i={},s=Gi.map(u=>u.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(u=>{typeof e[u]>"u"||(s.indexOf(u)>=0?kt(e[u])?(n[u]={},a[u]={},qt(n[u],e[u]),qt(a[u],e[u])):(n[u]=e[u],a[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?r[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:i[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:a,rest:i,events:r}}function Nd({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){Yi(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),Wi(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),ji(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function Id(e,t,n,r,a){const i=[];if(!t)return i;const s=u=>{i.indexOf(u)<0&&i.push(u)};if(n&&r){const u=r.map(a),l=n.map(a);u.join("")!==l.join("")&&s("children"),r.length!==n.length&&s("children")}return Gi.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(kt(e[u])&&kt(t[u])){const l=Object.keys(e[u]),c=Object.keys(t[u]);l.length!==c.length?s(u):(l.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}),c.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}))}else e[u]!==t[u]&&s(u)}),i}const Ld=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(this,arguments)}function Ki(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Qi(e){const t=[];return I.Children.toArray(e).forEach(n=>{Ki(n)?t.push(n):n.props&&n.props.children&&Qi(n.props.children).forEach(r=>t.push(r))}),t}function Od(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return I.Children.toArray(e).forEach(r=>{if(Ki(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const a=Qi(r.props.children);a.length>0?a.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Dd(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,o=e.params.loop?-t.length:0,u=e.params.loop?t.length*2:t.length,l=[];for(let c=o;c<u;c+=1)c>=i&&c<=s&&l.push(t[r(c)]);return l.map((c,f)=>I.cloneElement(c,{swiper:e,style:a,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function an(e,t){return typeof window>"u"?I.useEffect(e,t):I.useLayoutEffect(e,t)}const Ji=I.createContext(null),Pd=I.createContext(null),Zi=I.forwardRef(({className:e,tag:t="div",wrapperTag:n="div",children:r,onSwiper:a,...i}={},s)=>{let o=!1;const[u,l]=I.useState("swiper"),[c,f]=I.useState(null),[g,p]=I.useState(!1),T=I.useRef(!1),h=I.useRef(null),m=I.useRef(null),b=I.useRef(null),E=I.useRef(null),y=I.useRef(null),_=I.useRef(null),w=I.useRef(null),S=I.useRef(null),{params:M,passedParams:A,rest:x,events:v}=kd(i),{slides:k,slots:D}=Od(r),P=()=>{p(!g)};Object.assign(M.on,{_containerClasses($,G){l(G)}});const N=()=>{Object.assign(M.on,v),o=!0;const $={...M};if(delete $.wrapperClass,m.current=new Yr($),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=k;const G={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};qt(m.current.params.virtual,G),qt(m.current.originalParams.virtual,G)}};h.current||N(),m.current&&m.current.on("_beforeBreakpoint",P);const C=()=>{o||!v||!m.current||Object.keys(v).forEach($=>{m.current.on($,v[$])})},F=()=>{!v||!m.current||Object.keys(v).forEach($=>{m.current.off($,v[$])})};I.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",P)}),I.useEffect(()=>{!T.current&&m.current&&(m.current.emitSlidesClasses(),T.current=!0)}),an(()=>{if(s&&(s.current=h.current),!!h.current)return m.current.destroyed&&N(),Nd({el:h.current,nextEl:y.current,prevEl:_.current,paginationEl:w.current,scrollbarEl:S.current,swiper:m.current},M),a&&!m.current.destroyed&&a(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),an(()=>{C();const $=Id(A,b.current,k,E.current,G=>G.key);return b.current=A,E.current=k,$.length&&m.current&&!m.current.destroyed&&wd({swiper:m.current,slides:k,passedParams:A,changedParams:$,nextEl:y.current,prevEl:_.current,scrollbarEl:S.current,paginationEl:w.current}),()=>{F()}}),an(()=>{Ld(m.current)},[c]);function U(){return M.virtual?Dd(m.current,k,c):k.map(($,G)=>I.cloneElement($,{swiper:m.current,swiperSlideIndex:G}))}return I.createElement(t,Qn({ref:h,className:Xi(`${u}${e?` ${e}`:""}`)},x),I.createElement(Pd.Provider,{value:m.current},D["container-start"],I.createElement(n,{className:_d(M.wrapperClass)},D["wrapper-start"],U(),D["wrapper-end"]),Yi(M)&&I.createElement(I.Fragment,null,I.createElement("div",{ref:_,className:"swiper-button-prev"}),I.createElement("div",{ref:y,className:"swiper-button-next"})),ji(M)&&I.createElement("div",{ref:S,className:"swiper-scrollbar"}),Wi(M)&&I.createElement("div",{ref:w,className:"swiper-pagination"}),D["container-end"]))});Zi.displayName="Swiper";const es=I.forwardRef(({tag:e="div",children:t,className:n="",swiper:r,zoom:a,lazy:i,virtualIndex:s,swiperSlideIndex:o,...u}={},l)=>{const c=I.useRef(null),[f,g]=I.useState("swiper-slide"),[p,T]=I.useState(!1);function h(y,_,w){_===c.current&&g(w)}an(()=>{if(typeof o<"u"&&(c.current.swiperSlideIndex=o),l&&(l.current=c.current),!(!c.current||!r)){if(r.destroyed){f!=="swiper-slide"&&g("swiper-slide");return}return r.on("_slideClass",h),()=>{r&&r.off("_slideClass",h)}}}),an(()=>{r&&c.current&&!r.destroyed&&g(r.getSlideClasses(c.current))},[r]);const m={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof t=="function"?t(m):t,E=()=>{T(!0)};return I.createElement(e,Qn({ref:c,className:Xi(`${f}${n?` ${n}`:""}`),"data-swiper-slide-index":s,onLoad:E},u),a&&I.createElement(Ji.Provider,{value:m},I.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!a&&I.createElement(Ji.Provider,{value:m},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});es.displayName="SwiperSlide";function ts(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=it(e.el,`.${r[a]}`)[0];i||(i=jn("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}const ns='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Md({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:ns};function a(p){let T;return p&&typeof p=="string"&&e.isElement&&(T=e.el.querySelector(p)||e.hostEl.querySelector(p),T)?T:(p&&(typeof p=="string"&&(T=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&T&&T.length>1&&e.el.querySelectorAll(p).length===1?T=e.el.querySelector(p):T&&T.length===1&&(T=T[0])),p&&!T?p:T)}function i(p,T){const h=e.params.navigation;p=De(p),p.forEach(m=>{m&&(m.classList[T?"add":"remove"](...h.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=T),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](h.lockClass))})}function s(){const{nextEl:p,prevEl:T}=e.navigation;if(e.params.loop){i(T,!1),i(p,!1);return}i(T,e.isBeginning&&!e.params.rewind),i(p,e.isEnd&&!e.params.rewind)}function o(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function l(){const p=e.params.navigation;if(e.params.navigation=ts(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let T=a(p.nextEl),h=a(p.prevEl);Object.assign(e.navigation,{nextEl:T,prevEl:h}),T=De(T),h=De(h);const m=(b,E)=>{if(b){if(p.addIcons&&b.matches(".swiper-button-next,.swiper-button-prev")&&!b.querySelector("svg")){const y=document.createElement("div");rn(y,ns),b.appendChild(y.querySelector("svg")),y.remove()}b.addEventListener("click",E==="next"?u:o)}!e.enabled&&b&&b.classList.add(...p.lockClass.split(" "))};T.forEach(b=>m(b,"next")),h.forEach(b=>m(b,"prev"))}function c(){let{nextEl:p,prevEl:T}=e.navigation;p=De(p),T=De(T);const h=(m,b)=>{m.removeEventListener("click",b==="next"?u:o),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(m=>h(m,"next")),T.forEach(m=>h(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(l(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{c()}),n("enable disable",()=>{let{nextEl:p,prevEl:T}=e.navigation;if(p=De(p),T=De(T),e.enabled){s();return}[...p,...T].filter(h=>!!h).forEach(h=>h.classList.add(e.params.navigation.lockClass))}),n("click",(p,T)=>{let{nextEl:h,prevEl:m}=e.navigation;h=De(h),m=De(m);const b=T.target;let E=m.includes(b)||h.includes(b);if(e.isElement&&!E){const y=T.path||T.composedPath&&T.composedPath();y&&(E=y.find(_=>h.includes(_)||m.includes(_)))}if(e.params.navigation.hideOnClick&&!E){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let y;h.length?y=h[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(y=m[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...h,...m].filter(_=>!!_).forEach(_=>_.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),l(),s()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:f,disable:g,update:s,init:l,destroy:c})}function sn(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Bd({swiper:e,extendParams:t,on:n,emit:r}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let i,s=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(b,E){const{bulletActiveClass:y}=e.params.pagination;b&&(b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${y}-${E}`),b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${y}-${E}-${E}`)))}function l(b,E,y){if(b=b%y,E=E%y,E===b+1)return"next";if(E===b-1)return"previous"}function c(b){const E=b.target.closest(sn(e.params.pagination.bulletClass));if(!E)return;b.preventDefault();const y=Xn(E)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const _=l(e.realIndex,y,e.slides.length);_==="next"?e.slideNext():_==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function f(){const b=e.rtl,E=e.params.pagination;if(o())return;let y=e.pagination.el;y=De(y);let _,w;const S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(S/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,_=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(_=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,_=e.activeIndex||0),E.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let x,v,k;if(E.dynamicBullets&&(i=Br(A[0],e.isHorizontal()?"width":"height"),y.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${i*(E.dynamicMainBullets+4)}px`}),E.dynamicMainBullets>1&&w!==void 0&&(s+=_-(w||0),s>E.dynamicMainBullets-1?s=E.dynamicMainBullets-1:s<0&&(s=0)),x=Math.max(_-s,0),v=x+(Math.min(A.length,E.dynamicMainBullets)-1),k=(v+x)/2),A.forEach(D=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${E.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();D.classList.remove(...P)}),y.length>1)A.forEach(D=>{const P=Xn(D);P===_?D.classList.add(...E.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),E.dynamicBullets&&(P>=x&&P<=v&&D.classList.add(...`${E.bulletActiveClass}-main`.split(" ")),P===x&&u(D,"prev"),P===v&&u(D,"next"))});else{const D=A[_];if(D&&D.classList.add(...E.bulletActiveClass.split(" ")),e.isElement&&A.forEach((P,N)=>{P.setAttribute("part",N===_?"bullet-active":"bullet")}),E.dynamicBullets){const P=A[x],N=A[v];for(let C=x;C<=v;C+=1)A[C]&&A[C].classList.add(...`${E.bulletActiveClass}-main`.split(" "));u(P,"prev"),u(N,"next")}}if(E.dynamicBullets){const D=Math.min(A.length,E.dynamicMainBullets+4),P=(i*D-i)/2-k*i,N=b?"right":"left";A.forEach(C=>{C.style[e.isHorizontal()?N:"top"]=`${P}px`})}}y.forEach((A,x)=>{if(E.type==="fraction"&&(A.querySelectorAll(sn(E.currentClass)).forEach(v=>{v.textContent=E.formatFractionCurrent(_+1)}),A.querySelectorAll(sn(E.totalClass)).forEach(v=>{v.textContent=E.formatFractionTotal(M)})),E.type==="progressbar"){let v;E.progressbarOpposite?v=e.isHorizontal()?"vertical":"horizontal":v=e.isHorizontal()?"horizontal":"vertical";const k=(_+1)/M;let D=1,P=1;v==="horizontal"?D=k:P=k,A.querySelectorAll(sn(E.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${P})`,N.style.transitionDuration=`${e.params.speed}ms`})}E.type==="custom"&&E.renderCustom?(rn(A,E.renderCustom(e,_+1,M)),x===0&&r("paginationRender",A)):(x===0&&r("paginationRender",A),r("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](E.lockClass)})}function g(){const b=e.params.pagination;if(o())return;const E=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let y=e.pagination.el;y=De(y);let _="";if(b.type==="bullets"){let w=e.params.loop?Math.ceil(E/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>E&&(w=E);for(let S=0;S<w;S+=1)b.renderBullet?_+=b.renderBullet.call(e,S,b.bulletClass):_+=`<${b.bulletElement} ${e.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?_=b.renderFraction.call(e,b.currentClass,b.totalClass):_=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?_=b.renderProgressbar.call(e,b.progressbarFillClass):_=`<span class="${b.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(w=>{b.type!=="custom"&&rn(w,_||""),b.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(sn(b.bulletClass)))}),b.type!=="custom"&&r("paginationRender",y[0])}function p(){e.params.pagination=ts(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const b=e.params.pagination;if(!b.el)return;let E;typeof b.el=="string"&&e.isElement&&(E=e.el.querySelector(b.el)),!E&&typeof b.el=="string"&&(E=[...document.querySelectorAll(b.el)]),E||(E=b.el),!(!E||E.length===0)&&(e.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(E)&&E.length>1&&(E=[...e.el.querySelectorAll(b.el)],E.length>1&&(E=E.find(y=>Mi(y,".swiper")[0]===e.el))),Array.isArray(E)&&E.length===1&&(E=E[0]),Object.assign(e.pagination,{el:E}),E=De(E),E.forEach(y=>{b.type==="bullets"&&b.clickable&&y.classList.add(...(b.clickableClass||"").split(" ")),y.classList.add(b.modifierClass+b.type),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(y.classList.add(`${b.modifierClass}${b.type}-dynamic`),s=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&y.classList.add(b.progressbarOppositeClass),b.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(b.lockClass)}))}function T(){const b=e.params.pagination;if(o())return;let E=e.pagination.el;E&&(E=De(E),E.forEach(y=>{y.classList.remove(b.hiddenClass),y.classList.remove(b.modifierClass+b.type),y.classList.remove(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(y.classList.remove(...(b.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...b.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const b=e.params.pagination;let{el:E}=e.pagination;E=De(E),E.forEach(y=>{y.classList.remove(b.horizontalClass,b.verticalClass),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?m():(p(),g(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{g(),f()}),n("destroy",()=>{T()}),n("enable disable",()=>{let{el:b}=e.pagination;b&&(b=De(b),b.forEach(E=>E.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(b,E)=>{const y=E.target,_=De(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&_&&_.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const w=_[0].classList.contains(e.params.pagination.hiddenClass);r(w===!0?"paginationShow":"paginationHide"),_.forEach(S=>S.classList.toggle(e.params.pagination.hiddenClass))}});const h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=De(b),b.forEach(E=>E.classList.remove(e.params.pagination.paginationDisabledClass))),p(),g(),f()},m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=De(b),b.forEach(E=>E.classList.add(e.params.pagination.paginationDisabledClass))),T()};Object.assign(e.pagination,{enable:h,disable:m,render:g,update:f,init:p,destroy:T})}function Vy(){}function Gy(){}function rs(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function as(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Rd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hd={};function is(e,t){return(Hd.jsx?Fd:Rd).test(e)}const $d=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?ss(e.value):!1:ss(e)}function ss(e){return e.replace($d,"")===""}class on{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}on.prototype.normal={},on.prototype.property={},on.prototype.space=void 0;function os(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new on(n,r,t)}function un(e){return e.toLowerCase()}class qe{constructor(t,n){this.attribute=n,this.property=t}}qe.prototype.attribute="",qe.prototype.booleanish=!1,qe.prototype.boolean=!1,qe.prototype.commaOrSpaceSeparated=!1,qe.prototype.commaSeparated=!1,qe.prototype.defined=!1,qe.prototype.mustUseProperty=!1,qe.prototype.number=!1,qe.prototype.overloadedBoolean=!1,qe.prototype.property="",qe.prototype.spaceSeparated=!1,qe.prototype.space=void 0;let qd=0;const de=Nt(),Le=Nt(),Wr=Nt(),Z=Nt(),Ce=Nt(),zt=Nt(),je=Nt();function Nt(){return 2**++qd}const jr=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Le,commaOrSpaceSeparated:je,commaSeparated:zt,number:Z,overloadedBoolean:Wr,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Xr=Object.keys(jr);class Kr extends qe{constructor(t,n,r,a){let i=-1;if(super(t,n),us(this,"space",a),typeof r=="number")for(;++i<Xr.length;){const s=Xr[i];us(this,Xr[i],(r&jr[s])===jr[s])}}}Kr.prototype.defined=!0;function us(e,t,n){n&&(e[t]=n)}function Vt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Kr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[un(r)]=r,n[un(i.attribute)]=r}return new on(t,n,e.space)}const ls=Vt({properties:{ariaActiveDescendant:null,ariaAtomic:Le,ariaAutoComplete:null,ariaBusy:Le,ariaChecked:Le,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Le,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Le,ariaFlowTo:Ce,ariaGrabbed:Le,ariaHasPopup:null,ariaHidden:Le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:Z,ariaLive:null,ariaModal:Le,ariaMultiLine:Le,ariaMultiSelectable:Le,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Le,ariaReadOnly:Le,ariaRelevant:null,ariaRequired:Le,ariaRoleDescription:Ce,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Le,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cs(e,t){return t in e?e[t]:t}function ds(e,t){return cs(e,t.toLowerCase())}const zd=Vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Ce,autoFocus:de,autoPlay:de,blocking:Ce,capture:null,charSet:null,checked:de,cite:null,className:Ce,cols:Z,colSpan:null,content:null,contentEditable:Le,controls:de,controlsList:Ce,coords:Z|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Wr,draggable:Le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Ce,height:Z,hidden:Wr,high:Z,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:de,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:Z,pattern:null,ping:Ce,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Ce,required:de,reversed:de,rows:Z,rowSpan:Z,sandbox:Ce,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Le,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Le,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:ds}),Vd=Vt({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:je,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Ce,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:zt,g2:zt,glyphName:zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:je,rev:je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:je,requiredFeatures:je,requiredFonts:je,requiredFormats:je,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:je,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cs}),fs=Vt({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()}}),ps=Vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ds}),hs=Vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gd={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"},Yd=/[A-Z]/g,ms=/-[a-z]/g,Wd=/^data[-\w.:]+$/i;function Jn(e,t){const n=un(t);let r=t,a=qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ms,Xd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ms.test(i)){let s=i.replace(Yd,jd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Kr}return new a(r,t)}function jd(e){return"-"+e.toLowerCase()}function Xd(e){return e.charAt(1).toUpperCase()}const ln=os([ls,zd,fs,ps,hs],"html"),Et=os([ls,Vd,fs,ps,hs],"svg");function gs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bs(e){return e.join(" ").trim()}function Qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={},Jr,Es;function Kd(){if(Es)return Jr;Es=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
43
|
-
`,l="/",c="*",f="",g="comment",p="declaration";function T(m,b){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];b=b||{};var E=1,y=1;function _(N){var C=N.match(t);C&&(E+=C.length);var F=N.lastIndexOf(u);y=~F?N.length-F:y+N.length}function w(){var N={line:E,column:y};return function(C){return C.position=new S(N),x(),C}}function S(N){this.start=N,this.end={line:E,column:y},this.source=b.source}S.prototype.content=m;function M(N){var C=new Error(b.source+":"+E+":"+y+": "+N);if(C.reason=N,C.filename=b.source,C.line=E,C.column=y,C.source=m,!b.silent)throw C}function A(N){var C=N.exec(m);if(C){var F=C[0];return _(F),m=m.slice(F.length),C}}function x(){A(n)}function v(N){var C;for(N=N||[];C=k();)C!==!1&&N.push(C);return N}function k(){var N=w();if(!(l!=m.charAt(0)||c!=m.charAt(1))){for(var C=2;f!=m.charAt(C)&&(c!=m.charAt(C)||l!=m.charAt(C+1));)++C;if(C+=2,f===m.charAt(C-1))return M("End of comment missing");var F=m.slice(2,C-2);return y+=2,_(F),m=m.slice(C),y+=2,N({type:g,comment:F})}}function D(){var N=w(),C=A(r);if(C){if(k(),!A(a))return M("property missing ':'");var F=A(i),U=N({type:p,property:h(C[0].replace(e,f)),value:F?h(F[0].replace(e,f)):f});return A(s),U}}function P(){var N=[];v(N);for(var C;C=D();)C!==!1&&(N.push(C),v(N));return N}return x(),P()}function h(m){return m?m.replace(o,f):f}return Jr=T,Jr}var ys;function Qd(){if(ys)return Gt;ys=1;var e=Gt&&Gt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=n;const t=e(Kd());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),o=typeof a=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;o?a(l,c,u):c&&(i=i||{},i[l]=c)}),i}return Gt}var cn={},Ts;function Jd(){if(Ts)return cn;Ts=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),i(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(a,o):l=l.replace(r,o),l.replace(t,s))};return cn.camelCase=u,cn}var dn,xs;function Zd(){if(xs)return dn;xs=1;var e=dn&&dn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Qd()),n=Jd();function r(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(s[(0,n.camelCase)(o,i)]=u)}),s}return r.default=r,dn=r,dn}var ef=Zd();const tf=Qr(ef),Zn=Cs("end"),st=Cs("start");function Cs(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 Ss(e){const t=st(e),n=Zn(e);if(t&&n)return{start:t,end:n}}function fn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?As(e.position):"start"in e||"end"in e?As(e):"line"in e||"column"in e?Zr(e):""}function Zr(e){return vs(e&&e.line)+":"+vs(e&&e.column)}function As(e){return Zr(e&&e.start)+"-"+Zr(e&&e.end)}function vs(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!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&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=fn(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=s&&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}}Be.prototype.file="",Be.prototype.name="",Be.prototype.reason="",Be.prototype.message="",Be.prototype.stack="",Be.prototype.column=void 0,Be.prototype.line=void 0,Be.prototype.ancestors=void 0,Be.prototype.cause=void 0,Be.prototype.fatal=void 0,Be.prototype.place=void 0,Be.prototype.ruleId=void 0,Be.prototype.source=void 0;const ea={}.hasOwnProperty,nf=new Map,rf=/[A-Z]/g,af=new Set(["table","tbody","thead","tfoot","tr"]),sf=new Set(["td","th"]),_s="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function of(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=mf(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=hf(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"?Et:ln,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=ws(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function ws(e,t,n){if(t.type==="element")return uf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return df(e,t,n);if(t.type==="mdxjsEsm")return cf(e,t);if(t.type==="root")return ff(e,t,n);if(t.type==="text")return pf(e,t)}function uf(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=Ns(e,t.tagName,!1),s=gf(e,t);let o=na(e,t);return af.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ud(u):!0})),ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function lf(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)}pn(e,t.position)}function cf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pn(e,t.position)}function df(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Ns(e,t.name,!0),s=bf(e,t),o=na(e,t);return ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ff(e,t,n){const r={};return ta(r,na(e,t)),e.create(t,e.Fragment,r,n)}function pf(e,t){return t.value}function ks(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ta(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function hf(e,t,n){return r;function r(a,i,s,o){const l=Array.isArray(s.children)?n:t;return o?l(i,s,o):l(i,s)}}function mf(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),u=st(r);return t(a,i,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function gf(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ea.call(t.properties,a)){const i=Ef(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&sf.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bf(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 s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else pn(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 o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else pn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function na(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:nf;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const l=a.get(u)||0;s=u+"-"+l,a.set(u,l+1)}}const o=ws(e,i,s);o!==void 0&&n.push(o)}return n}function Ef(e,t,n){const r=Jn(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?as(n):bs(n)),r.property==="style"){let a=typeof n=="object"?n:yf(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Tf(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Gd[r.property]||r.property:r.attribute,n]}}function yf(e,t){try{return tf(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Be("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=_s+"#cannot-parse-style-attribute",a}}function Ns(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=is(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=is(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return ea.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);pn(e)}function pn(e,t){const n=new Be("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=_s+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tf(e){const t={};let n;for(n in e)ea.call(e,n)&&(t[xf(n)]=e[n]);return t}function xf(e){let t=e.replace(rf,Cf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Cf(e){return"-"+e.toLowerCase()}const ra={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"]},Sf={};function Af(e,t){const n=Sf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Is(e,r,a)}function Is(e,t,n){if(vf(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 Ls(e.children,t,n)}return Array.isArray(e)?Ls(e,t,n):""}function Ls(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Is(e[a],t,n);return r.join("")}function vf(e){return!!(e&&typeof e=="object")}const Os=document.createElement("i");function hn(e){const t="&"+e+";";Os.innerHTML=t;const n=Os.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ot(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const Ds={}.hasOwnProperty;function _f(e){const t={};let n=-1;for(;++n<e.length;)wf(t,e[n]);return t}function wf(e,t){let n;for(n in t){const a=(Ds.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Ds.call(a,s)||(a[s]=[]);const o=i[s];kf(a[s],Array.isArray(o)?o:o?[o]:[])}}}function kf(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}function Ps(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 Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ut=yt(/[A-Za-z]/),Xe=yt(/[\dA-Za-z]/),Nf=yt(/[#-'*+\--9=?A-Z^-~]/);function aa(e){return e!==null&&(e<32||e===127)}const ia=yt(/\d/),If=yt(/[\dA-Fa-f]/),Lf=yt(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const mn=yt(new RegExp("\\p{P}|\\p{S}","u")),gn=yt(/\s/);function yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Wt(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Xe(e.charCodeAt(n+1))&&Xe(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return ge(u)?(e.enter(n),o(u)):t(u)}function o(u){return ge(u)&&i++<a?(e.consume(u),o):(e.exit(n),t(u))}}const Of={tokenize:Df};function Df(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Pf={tokenize:Mf},Ms={tokenize:Bf};function Mf(e){const t=this,n=[];let r=0,a,i,s;return o;function o(y){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,u,l)(y)}return l(y)}function u(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&E();const _=t.events.length;let w=_,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}b(r);let M=_;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return ot(t.events,w+1,0,t.events.slice(_)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!a)return g(y);if(a.currentConstruct&&a.currentConstruct.concrete)return T(y);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ms,c,f)(y)}function c(y){return a&&E(),b(r),g(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,T(y)}function g(y){return t.containerState={},e.attempt(Ms,p,T)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),g(y)}function T(y){if(y===null){a&&E(),b(0),e.consume(y);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),h(y)}function h(y){if(y===null){m(e.exit("chunkFlow"),!0),b(0),e.consume(y);return}return ie(y)?(e.consume(y),m(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),h)}function m(y,_){const w=t.sliceStream(y);if(_&&w.push(null),y.previous=i,i&&(i.next=y),i=y,a.defineSkip(y.start),a.write(w),t.parser.lazy[y.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const M=t.events.length;let A=M,x,v;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){v=t.events[A][1].end;break}x=!0}for(b(r),S=M;S<t.events.length;)t.events[S][1].end={...v},S++;ot(t.events,A+1,0,t.events.slice(M)),t.events.length=S}}function b(y){let _=n.length;for(;_-- >y;){const w=n[_];t.containerState=w[1],w[0].exit.call(t,e)}n.length=y}function E(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Bf(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bs(e){if(e===null||Ne(e)||gn(e))return 1;if(mn(e))return 2}function sa(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 oa={name:"attention",resolveAll:Rf,tokenize:Ff};function Rf(e,t){let n=-1,r,a,i,s,o,u,l,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;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},g={...e[n][1].start};Rs(f,-u),Rs(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ze(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ze(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=Ze(l,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ze(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=Ze(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ot(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ff(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Bs(r);let i;return s;function s(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const l=e.exit("attentionSequence"),c=Bs(u),f=!c||c===2&&a||n.includes(u),g=!a||a===2&&c||n.includes(r);return l._open=!!(i===42?f:f&&(a||!g)),l._close=!!(i===42?g:g&&(c||!f)),t(u)}}function Rs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hf={name:"autolink",tokenize:$f};function $f(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 ut(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||Xe(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Xe(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function u(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||aa(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),c):Nf(p)?(e.consume(p),l):n(p)}function c(p){return Xe(p)?f(p):n(p)}function f(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||Xe(p))&&r++<63){const T=p===45?g:f;return e.consume(p),T}return n(p)}}const er={partial:!0,tokenize:Uf};function Uf(e,t,n){return r;function r(i){return ge(i)?be(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ie(i)?t(i):n(i)}}const Fs={continuation:{tokenize:zf},exit:Vf,name:"blockQuote",tokenize:qf};function qf(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function zf(e,t,n){const r=this;return a;function a(s){return ge(s)?be(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Fs,t,n)(s)}}function Vf(e){e.exit("blockQuote")}const Hs={name:"characterEscape",tokenize:Gf};function Gf(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 Lf(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const $s={name:"characterReference",tokenize:Yf};function Yf(e,t,n){const r=this;let a=0,i,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,s=Xe,c(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=If,c):(e.enter("characterReferenceValue"),i=7,s=ia,c(f))}function c(f){if(f===59&&a){const g=e.exit("characterReferenceValue");return s===Xe&&!hn(r.sliceSerialize(g))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<i?(e.consume(f),c):n(f)}}const Us={partial:!0,tokenize:jf},qs={concrete:!0,name:"codeFenced",tokenize:Wf};function Wf(e,t,n){const r=this,a={partial:!0,tokenize:w};let i=0,s=0,o;return u;function u(S){return l(S)}function l(S){const M=r.events[r.events.length-1];return i=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),ge(S)?be(e,f,"whitespace")(S):f(S))}function f(S){return S===null||ie(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Us,h,_)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):ge(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),g)}function p(S){return S===null||ie(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(S))}function T(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===o?n(S):(e.consume(S),T)}function h(S){return e.attempt(a,_,m)(S)}function m(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b}function b(S){return i>0&&ge(S)?be(e,E,"linePrefix",i+1)(S):E(S)}function E(S){return S===null||ie(S)?e.check(Us,h,_)(S):(e.enter("codeFlowValue"),y(S))}function y(S){return S===null||ie(S)?(e.exit("codeFlowValue"),E(S)):(e.consume(S),y)}function _(S){return e.exit("codeFenced"),t(S)}function w(S,M,A){let x=0;return v;function v(C){return S.enter("lineEnding"),S.consume(C),S.exit("lineEnding"),k}function k(C){return S.enter("codeFencedFence"),ge(C)?be(S,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):D(C)}function D(C){return C===o?(S.enter("codeFencedFenceSequence"),P(C)):A(C)}function P(C){return C===o?(x++,S.consume(C),P):x>=s?(S.exit("codeFencedFenceSequence"),ge(C)?be(S,N,"whitespace")(C):N(C)):A(C)}function N(C){return C===null||ie(C)?(S.exit("codeFencedFence"),M(C)):A(C)}}}function jf(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ua={name:"codeIndented",tokenize:Kf},Xf={partial:!0,tokenize:Qf};function Kf(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),be(e,i,"linePrefix",5)(l)}function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):ie(l)?e.attempt(Xf,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ie(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Qf(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ie(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):be(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ie(s)?a(s):n(s)}}const Jf={name:"codeText",previous:ep,resolve:Zf,tokenize:tp};function Zf(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 ep(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tp(e,t,n){let r=0,a,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(i=e.enter("codeTextSequence"),a=0,c(f)):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ie(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),l)}function c(f){return f===96?(e.consume(f),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",l(f))}}class np{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&&bn(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),bn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bn(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);bn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bn(this.left,n.reverse())}}}function bn(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 zs(e){const t={};let n=-1,r,a,i,s,o,u,l;const c=new np(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"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,rp(c,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(r),c.splice(a,n-a+1,o))}}return ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function rp(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let c,f,g=-1,p=n,T=0,h=0;const m=[h];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(h=g+1,m.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),g=m.length;g--;){const b=o.slice(m[g],m[g+1]),E=i.pop();u.push([E,E+b.length-1]),e.splice(E,2,b)}for(u.reverse(),g=-1;++g<u.length;)l[T+u[g][0]]=T+u[g][1],T+=u[g][1]-u[g][0]-1;return l}const ap={resolve:sp,tokenize:op},ip={partial:!0,tokenize:up};function sp(e){return zs(e),e}function op(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ie(o)?e.check(ip,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function up(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,i,"linePrefix")}function i(s){if(s===null||ie(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Vs(e,t,n,r,a,i,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(b),e.exit(i),g):b===null||b===32||b===41||aa(b)?n(b):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function g(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(o),g(b)):b===null||b===60||ie(b)?n(b):(e.consume(b),b===92?T:p)}function T(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function h(b){return!c&&(b===null||b===41||Ne(b))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(b)):c<l&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||aa(b)?n(b):(e.consume(b),b===92?m:h)}function m(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function Gs(e,t,n,r,a,i){const s=this;let o=0,u;return l;function l(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):ie(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ie(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!ge(p)),p===92?g:f)}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function Ys(e,t,n,r,a,i){let s;return o;function o(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(i),l(g))}function l(g){return g===s?(e.exit(i),u(s)):g===null?n(g):ie(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),be(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===s||g===null||ie(g)?(e.exit("chunkString"),l(g)):(e.consume(g),g===92?f:c)}function f(g){return g===s||g===92?(e.consume(g),c):c(g)}}function pt(e,t){let n;return r;function r(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ge(a)?be(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const lp={name:"definition",tokenize:dp},cp={partial:!0,tokenize:fp};function dp(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return Gs.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return a=Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ne(p)?pt(e,l)(p):l(p)}function l(p){return Vs(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(cp,f,f)(p)}function f(p){return ge(p)?be(e,g,"whitespace")(p):g(p)}function g(p){return p===null||ie(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function fp(e,t,n){return r;function r(o){return Ne(o)?pt(e,a)(o):n(o)}function a(o){return Ys(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return ge(o)?be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ie(o)?t(o):n(o)}}const pp={name:"hardBreakEscape",tokenize:hp};function hp(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ie(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const mp={name:"headingAtx",resolve:gp,tokenize:bp};function gp(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"},ot(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function bp(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ne(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):ge(c)?be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ne(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const Ep=["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"],Ws=["pre","script","style","textarea"],yp={concrete:!0,name:"htmlFlow",resolveTo:Cp,tokenize:Sp},Tp={partial:!0,tokenize:vp},xp={partial:!0,tokenize:Ap};function Cp(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 Sp(e,t,n){const r=this;let a,i,s,o,u;return l;function l(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),g):R===47?(e.consume(R),i=!0,h):R===63?(e.consume(R),a=3,r.interrupt?t:L):ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function g(R){return R===45?(e.consume(R),a=2,p):R===91?(e.consume(R),a=5,o=0,T):ut(R)?(e.consume(R),a=4,r.interrupt?t:L):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:L):n(R)}function T(R){const K="CDATA[";return R===K.charCodeAt(o++)?(e.consume(R),o===K.length?r.interrupt?t:D:T):n(R)}function h(R){return ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function m(R){if(R===null||R===47||R===62||Ne(R)){const K=R===47,ae=s.toLowerCase();return!K&&!i&&Ws.includes(ae)?(a=1,r.interrupt?t(R):D(R)):Ep.includes(s.toLowerCase())?(a=6,K?(e.consume(R),b):r.interrupt?t(R):D(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?E(R):y(R))}return R===45||Xe(R)?(e.consume(R),s+=String.fromCharCode(R),m):n(R)}function b(R){return R===62?(e.consume(R),r.interrupt?t:D):n(R)}function E(R){return ge(R)?(e.consume(R),E):v(R)}function y(R){return R===47?(e.consume(R),v):R===58||R===95||ut(R)?(e.consume(R),_):ge(R)?(e.consume(R),y):v(R)}function _(R){return R===45||R===46||R===58||R===95||Xe(R)?(e.consume(R),_):w(R)}function w(R){return R===61?(e.consume(R),S):ge(R)?(e.consume(R),w):y(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),u=R,M):ge(R)?(e.consume(R),S):A(R)}function M(R){return R===u?(e.consume(R),u=null,x):R===null||ie(R)?n(R):(e.consume(R),M)}function A(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ne(R)?w(R):(e.consume(R),A)}function x(R){return R===47||R===62||ge(R)?y(R):n(R)}function v(R){return R===62?(e.consume(R),k):n(R)}function k(R){return R===null||ie(R)?D(R):ge(R)?(e.consume(R),k):n(R)}function D(R){return R===45&&a===2?(e.consume(R),F):R===60&&a===1?(e.consume(R),U):R===62&&a===4?(e.consume(R),W):R===63&&a===3?(e.consume(R),L):R===93&&a===5?(e.consume(R),G):ie(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Tp,V,P)(R)):R===null||ie(R)?(e.exit("htmlFlowData"),P(R)):(e.consume(R),D)}function P(R){return e.check(xp,N,V)(R)}function N(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),C}function C(R){return R===null||ie(R)?P(R):(e.enter("htmlFlowData"),D(R))}function F(R){return R===45?(e.consume(R),L):D(R)}function U(R){return R===47?(e.consume(R),s="",$):D(R)}function $(R){if(R===62){const K=s.toLowerCase();return Ws.includes(K)?(e.consume(R),W):D(R)}return ut(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),$):D(R)}function G(R){return R===93?(e.consume(R),L):D(R)}function L(R){return R===62?(e.consume(R),W):R===45&&a===2?(e.consume(R),L):D(R)}function W(R){return R===null||ie(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),W)}function V(R){return e.exit("htmlFlow"),t(R)}}function Ap(e,t,n){const r=this;return a;function a(s){return ie(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function vp(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(er,t,n)}}const _p={name:"htmlText",tokenize:wp};function wp(e,t,n){const r=this;let a,i,s;return o;function o(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),l):L===47?(e.consume(L),w):L===63?(e.consume(L),y):ut(L)?(e.consume(L),A):n(L)}function l(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),i=0,T):ut(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),p):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),g):ie(L)?(s=f,U(L)):(e.consume(L),f)}function g(L){return L===45?(e.consume(L),p):f(L)}function p(L){return L===62?F(L):L===45?g(L):f(L)}function T(L){const W="CDATA[";return L===W.charCodeAt(i++)?(e.consume(L),i===W.length?h:T):n(L)}function h(L){return L===null?n(L):L===93?(e.consume(L),m):ie(L)?(s=h,U(L)):(e.consume(L),h)}function m(L){return L===93?(e.consume(L),b):h(L)}function b(L){return L===62?F(L):L===93?(e.consume(L),b):h(L)}function E(L){return L===null||L===62?F(L):ie(L)?(s=E,U(L)):(e.consume(L),E)}function y(L){return L===null?n(L):L===63?(e.consume(L),_):ie(L)?(s=y,U(L)):(e.consume(L),y)}function _(L){return L===62?F(L):y(L)}function w(L){return ut(L)?(e.consume(L),S):n(L)}function S(L){return L===45||Xe(L)?(e.consume(L),S):M(L)}function M(L){return ie(L)?(s=M,U(L)):ge(L)?(e.consume(L),M):F(L)}function A(L){return L===45||Xe(L)?(e.consume(L),A):L===47||L===62||Ne(L)?x(L):n(L)}function x(L){return L===47?(e.consume(L),F):L===58||L===95||ut(L)?(e.consume(L),v):ie(L)?(s=x,U(L)):ge(L)?(e.consume(L),x):F(L)}function v(L){return L===45||L===46||L===58||L===95||Xe(L)?(e.consume(L),v):k(L)}function k(L){return L===61?(e.consume(L),D):ie(L)?(s=k,U(L)):ge(L)?(e.consume(L),k):x(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),a=L,P):ie(L)?(s=D,U(L)):ge(L)?(e.consume(L),D):(e.consume(L),N)}function P(L){return L===a?(e.consume(L),a=void 0,C):L===null?n(L):ie(L)?(s=P,U(L)):(e.consume(L),P)}function N(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ne(L)?x(L):(e.consume(L),N)}function C(L){return L===47||L===62||Ne(L)?x(L):n(L)}function F(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function U(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return ge(L)?be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):G(L)}function G(L){return e.enter("htmlTextData"),s(L)}}const la={name:"labelEnd",resolveAll:Lp,resolveTo:Op,tokenize:Dp},kp={tokenize:Pp},Np={tokenize:Mp},Ip={tokenize:Bp};function Lp(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&&ot(e,0,e.length,n),e}function Op(e,t){let n=e.length,r=0,a,i,s,o;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(s){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"&&(s=n);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=Ze(o,e.slice(i+1,i+r+3)),o=Ze(o,[["enter",c,t]]),o=Ze(o,sa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Ze(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Ze(o,e.slice(s+1)),o=Ze(o,[["exit",u,t]]),ot(e,i,e.length,o),e}function Dp(e,t,n){const r=this;let a=r.events.length,i,s;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 o;function o(g){return i?i._inactive?f(g):(s=r.parser.defined.includes(Yt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(kp,c,s?c:f)(g):g===91?e.attempt(Np,c,s?l:f)(g):s?c(g):f(g)}function l(g){return e.attempt(Ip,c,f)(g)}function c(g){return t(g)}function f(g){return i._balanced=!0,n(g)}}function Pp(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return Ne(f)?pt(e,i)(f):i(f)}function i(f){return f===41?c(f):Vs(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ne(f)?pt(e,u)(f):c(f)}function o(f){return n(f)}function u(f){return f===34||f===39||f===40?Ys(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Ne(f)?pt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Mp(e,t,n){const r=this;return a;function a(o){return Gs.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Bp(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 Rp={name:"labelStartImage",resolveAll:la.resolveAll,tokenize:Fp};function Fp(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Hp={name:"labelStartLink",resolveAll:la.resolveAll,tokenize:$p};function $p(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ca={name:"lineEnding",tokenize:Up};function Up(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const tr={name:"thematicBreak",tokenize:qp};function qp(e,t,n){let r=0,a;return i;function i(l){return e.enter("thematicBreak"),s(l)}function s(l){return a=l,o(l)}function o(l){return l===a?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||ie(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===a?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),ge(l)?be(e,o,"whitespace")(l):o(l))}}const ze={continuation:{tokenize:Yp},exit:jp,name:"list",tokenize:Gp},zp={partial:!0,tokenize:Xp},Vp={partial:!0,tokenize:Wp};function Gp(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,s=0;return o;function o(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ia(p)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(tr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return ia(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(er,r.interrupt?n:c,e.attempt(zp,g,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,g(p)}function f(p){return ge(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 Yp(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(er,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!ge(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vp,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Wp(e,t,n){const r=this;return be(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function jp(e){e.exit(this.containerState.type)}function Xp(e,t,n){const r=this;return be(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!ge(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const js={name:"setextUnderline",resolveTo:Kp,tokenize:Qp};function Kp(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 s={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",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Qp(e,t,n){const r=this;let a;return i;function i(l){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===a?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ge(l)?be(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||ie(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Jp={tokenize:Zp};function Zp(e){const t=this,n=e.attempt(er,r,e.attempt(this.parser.constructs.flowInitial,a,be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ap,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 eh={resolveAll:Ks()},th=Xs("string"),nh=Xs("text");function Xs(e){return{resolveAll:Ks(e==="text"?rh:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(c){return l(c)?i(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),i(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const f=a[c];let g=-1;if(f)for(;++g<f.length;){const p=f[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ks(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 rh(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,s=-1,o=0,u;for(;i--;){const l=a[i];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const ah=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:lp},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Fs},flow:{35:mp,42:tr,45:[js,tr],60:yp,61:js,95:tr,96:qs,126:qs},flowInitial:{[-2]:ua,[-1]:ua,32:ua},insideSpan:{null:[oa,eh]},string:{38:$s,92:Hs},text:{[-5]:ca,[-4]:ca,[-3]:ca,33:Rp,38:$s,42:oa,60:[Hf,_p],91:Hp,92:[pp,Hs],93:la,95:oa,96:Jf}},Symbol.toStringTag,{value:"Module"}));function ih(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 s=[],o=[];const u={attempt:M(w),check:M(S),consume:E,enter:y,exit:_,interrupt:M(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:T,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:f};let c=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function f(k){return s=Ze(s,k),m(),s[s.length-1]!==null?[]:(A(t,0),l.events=sa(i,l.events,l),l.events)}function g(k,D){return oh(p(k),D)}function p(k){return sh(s,k)}function T(){const{_bufferIndex:k,_index:D,line:P,column:N,offset:C}=r;return{_bufferIndex:k,_index:D,line:P,column:N,offset:C}}function h(k){a[k.line]=k.column,v()}function m(){let k;for(;r._index<s.length;){const D=s[r._index];if(typeof D=="string")for(k=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===k&&r._bufferIndex<D.length;)b(D.charCodeAt(r._bufferIndex));else b(D)}}function b(k){c=c(k)}function E(k){ie(k)?(r.line++,r.column=1,r.offset+=k===-3?2:1,v()):k!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=k}function y(k,D){const P=D||{};return P.type=k,P.start=T(),l.events.push(["enter",P,l]),o.push(P),P}function _(k){const D=o.pop();return D.end=T(),l.events.push(["exit",D,l]),D}function w(k,D){A(k,D.from)}function S(k,D){D.restore()}function M(k,D){return P;function P(N,C,F){let U,$,G,L;return Array.isArray(N)?V(N):"tokenize"in N?V([N]):W(N);function W(ne){return X;function X(re){const se=re!==null&&ne[re],he=re!==null&&ne.null,_e=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(he)?he:he?[he]:[]];return V(_e)(re)}}function V(ne){return U=ne,$=0,ne.length===0?F:R(ne[$])}function R(ne){return X;function X(re){return L=x(),G=ne,ne.partial||(l.currentConstruct=ne),ne.name&&l.parser.constructs.disable.null.includes(ne.name)?ae():ne.tokenize.call(D?Object.assign(Object.create(l),D):l,u,K,ae)(re)}}function K(ne){return k(G,L),C}function ae(ne){return L.restore(),++$<U.length?R(U[$]):F}}}function A(k,D){k.resolveAll&&!i.includes(k)&&i.push(k),k.resolve&&ot(l.events,D,l.events.length-D,k.resolve(l.events.slice(D),l)),k.resolveTo&&(l.events=k.resolveTo(l.events,l))}function x(){const k=T(),D=l.previous,P=l.currentConstruct,N=l.events.length,C=Array.from(o);return{from:N,restore:F};function F(){r=k,l.previous=D,l.currentConstruct=P,l.events.length=N,o=C,v()}}function v(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function sh(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function oh(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
42
|
+
`);for(let V=0;V<L.length;V++)$.appendChild(document.createTextNode(L[V])),C&&V<L.length-1&&$.appendChild(document.createElement("br"));U.insertNode($),F.removeAllRanges();const W=document.createRange();W.selectNodeContents(k),W.collapse(!1),F.addRange(W)}i();return}}}}let M=!1,A="";const x=window.getSelection();if(x&&x.rangeCount>0){const v=x.anchorNode;if(v){let k=null;if(v.nodeType===Node.ELEMENT_NODE?k=v.closest('[data-type="variable"]'):v.nodeType===Node.TEXT_NODE&&v.parentElement&&(k=v.parentElement.closest('[data-type="variable"]')),k){const D=k.getAttribute("data-node-type")||"",P=k.dataset.key;if(D==="markdown"&&P&&/20\d{2}-\d{2}-\d{2}/.test(w))M=!0,A=P,c.current[P]=w,f(N=>({...N,[P]:{...N[P],status:"loading",error:void 0}}));else if(D==="report-url"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();o.current(P,N)},0);return}else if(D==="markdown-name"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();u.current(P,N)},0);return}}}}if(M&&A){setTimeout(()=>{s.current(A,w)},0);return}document.execCommand("insertText",!1,w),i(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&l.current.tableData?.status==="success"&&(f(k=>({...k,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,s.current("tableData",w)},0))},0)},[t,e,a,i,s,l,c,n,h,o,g,p,T,f,r]);async function Ii(e){const t=e.split("/").pop()?.split("?")[0]||"file",n=decodeURIComponent(t),r=async a=>{const i=await a.blob();return new File([i],n,{type:i.type||"application/octet-stream"})};try{const a=`/api/image-proxy?url=${encodeURIComponent(e)}`,i=await fetch(a);if(i.ok)return r(i)}catch{}return null}const sc=({config:e,files:t,footerFiles:n,onFooterFilesClear:r,onSend:a,isProcessing:i,disabled:s,loading:o,isFormValid:u,editorRef:l,markdownAnalyzeState:c,markdownNameAnalyzeState:f,videoState:g})=>I.useCallback(()=>{if(i||s||o||!u||!l.current)return;if(e.length===0){const E=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!E&&n.length===0)return;if(n.length>0){const y=new FormData;y.append("fullPrompt",E),n.forEach(_=>{y.append("fileUrls",_)}),a(y,E),r()}else a(E,E);if(l.current){l.current.textContent="";const y=new Event("input",{bubbles:!0});l.current.dispatchEvent(y)}return}const p=l.current;let T="";const h={},m=E=>{if(!(E.nodeType===Node.ELEMENT_NODE&&E.style.display==="none")){if(E.nodeType===Node.TEXT_NODE)T+=(E.textContent||"").replace(/\u200B/g,"");else if(E.nodeType===Node.ELEMENT_NODE){const y=E,_=y.dataset.type,w=y.dataset.key;if(_==="variable"&&w){let S="";const M=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:x=>{const v=y.querySelector(".variable-info-icon");return v&&v.contains(x)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;M.nextNode();)S+=M.currentNode.textContent||"";const A=S.replace(/[\u200B\n]/g,"").trim();if(A){const x=y.dataset.multiKey;if(x){(!h[x]||!Array.isArray(h[x]))&&(h[x]=[]);const v=h[x];v.push(A),v.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A;if(y.dataset.nodeType==="report-url")if(h.url===void 0)h.url=A;else{const v=h.url;Array.isArray(v)?v.push(A):h.url=[String(v),A]}if(y.dataset.nodeType==="markdown-name"){const v=`${w}__sourceText`;h[v]===void 0&&(h[v]=A)}if(y.dataset.nodeType==="markdown"){const v=y.dataset.sourceTextKey||`${w}__sourceText`;if(h[v]===void 0)h[v]=A;else{const D=h[v];Array.isArray(D)?D.push(A):h[v]=[String(D),A]}const k=`${w}__markdown`;h[k]===void 0&&(h[k]=[ki(A)])}}}else if((_==="select"||_==="searchable-select"||_==="cascader")&&w){const S=(y.getAttribute("data-value")||"").trim();S&&(h[w]=S,T+=S)}else if(_==="textarea"&&w){const M=(y.value||"").replace(/\u200B/g,"").trim();M&&(h[w]=M,T+=M)}else if(_==="richtext"&&w){const S=y,M=S.dataset.nodeType,A=(S.textContent||"").replace(/\u200B/g,"").trim();if(A)if(M==="report-module"||M==="markdown-module"){(!h[w]||!Array.isArray(h[w]))&&(h[w]=[]);const x=h[w];x.push(A),x.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A}else if(_==="datepicker"&&w){const M=(y.getAttribute("data-value")||"").trim();if(M)if(M.includes(",")){const A=M.split(",");A.length===2?(h[w]=A,T+=`[${A[0]}, ${A[1]}]`):(h[w]=M,T+=M)}else h[w]=M,T+=M}else if(_==="number-input"&&w){const M=(y.value||"").trim();M&&(h[w]=M,T+=M)}else if(_==="upload"&&w){const S=y.dataset.batchKey;if(S){const M=e.find(A=>A.type==="upload"&&A.key===S);if(M&&typeof M.maxCount=="number"&&typeof M.minCount=="number"){const A=[];for(let x=0;x<M.maxCount;x++){const v=`${S}-${x}`,k=t[v];k&&A.push(k)}h[S]||(h[S]=A.length>0?A:null,A.length>0&&(T+=` [附带${A.length}个文件: ${A.map(x=>typeof x=="string"?x.split("/").pop()||"file":x.name).join(", ")}] `))}else if(h[w]=t[w]??null,t[w]){const A=t[w];T+=` [附带文件: ${typeof A=="string"?A.split("/").pop()||"file":A.name}] `}}else if(h[w]=t[w]??null,t[w]){const M=t[w];T+=` [附带文件: ${typeof M=="string"?M.split("/").pop()||"file":M.name}] `}}else if((_==="video-url"||_==="video-upload")&&w){const S=g?.[w];if(S?.status==="success"&&S.videoUrl){h[w]=S.videoUrl,S.file&&(h[`${w}__file`]=S.file);const M=S.fileName||"视频";T+=` [附带视频: ${M}] `}}else{if(y.classList.contains("tag-close-btn")||y.classList.contains("file-remove-btn")||y.classList.contains("video-remove-btn"))return;y.getAttribute("contenteditable")==="false"&&!_&&y.classList.contains("tag-node")?T+=y.innerText:y.childNodes.forEach(m)}}}};if(p.childNodes.forEach(m),T=T.trim(),!T)return;Object.keys(c).forEach(E=>{const y=c[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),Object.keys(f).forEach(E=>{const y=f[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),(async()=>{for(const y of Object.keys(h)){const _=h[y];if(typeof _=="string"&&_.startsWith("http")){if(e.find(S=>S.type==="upload"&&S.key===y)){const S=await Ii(_);S&&(h[y]=S)}}else if(Array.isArray(_)&&e.find(S=>S.type==="upload"&&S.key===y)){for(let S=0;S<_.length;S++)if(typeof _[S]=="string"&&_[S].startsWith("http")){const M=await Ii(_[S]);M&&(_[S]=M)}}}const E=new FormData;E.append("fullPrompt",T),Object.keys(h).forEach(y=>{const _=h[y];if(_!=null)if(_ instanceof File)E.append(y,_);else if(Array.isArray(_)){const w=e.some(x=>x.type==="multi-variable"&&x.key===y),S=e.some(x=>x.type==="report-url"&&x.key===y),M=y.endsWith("__markdown");w||S||M||y==="url"?_.forEach(x=>{x!=null&&x!==""&&E.append(y,String(x))}):_.forEach((x,v)=>{x!=null&&(x instanceof File?E.append(`${y}[${v}]`,x):typeof x=="string"?E.append(`${y}[${v}]`,x):E.append(`${y}[${v}]`,String(x)))})}else typeof _=="string"?E.append(y,_):E.append(y,String(_))}),n.length>0&&n.forEach(y=>{E.append("fileUrls",y)}),a(E,T),n.length>0&&r()})()},[e,t,n,r,a,i,s,o,u,l,c,f,g]);function Li(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Mr(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Li(t[r])&&Li(e[r])&&Object.keys(t[r]).length>0&&Mr(e[r],t[r])})}const Oi={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wt(){const e=typeof document<"u"?document:{};return Mr(e,Oi),e}const oc={document:Oi,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function $e(){const e=typeof window<"u"?window:{};return Mr(e,oc),e}function uc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function lc(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Di(e,t=0){return setTimeout(e,t)}function Gn(){return Date.now()}function cc(e){const t=$e();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function dc(e,t="x"){const n=$e();let r,a,i;const s=cc(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(o=>o.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function Yn(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function fc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function We(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!fc(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,o=i.length;s<o;s+=1){const u=i[s],l=Object.getOwnPropertyDescriptor(a,u);l!==void 0&&l.enumerable&&(Yn(t[u])&&Yn(a[u])?a[u].__swiper__?t[u]=a[u]:We(t[u],a[u]):!Yn(t[u])&&Yn(a[u])?(t[u]={},a[u].__swiper__?t[u]=a[u]:We(t[u],a[u])):t[u]=a[u])}}}return t}function Ut(e,t,n){e.style.setProperty(t,n)}function Pi({swiper:e,targetPosition:t,side:n}){const r=$e(),a=-e.translate;let i=null,s;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>a?"next":"prev",l=(f,g)=>u==="next"&&f>=g||u==="prev"&&f<=g,c=()=>{s=new Date().getTime(),i===null&&(i=s);const f=Math.max(Math.min((s-i)/o,1),0),g=.5-Math.cos(f*Math.PI)/2;let p=a+g*(t-a);if(l(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),l(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function it(e,t=""){const n=$e(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(a=>a.matches(t)):r}function pc(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function hc(e,t){const n=$e();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=pc(e,t))),r}function Wn(e){try{console.warn(e);return}catch{}}function jn(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:uc(t)),n}function mc(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function gc(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function bt(e,t){return $e().getComputedStyle(e,null).getPropertyValue(t)}function Xn(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Mi(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Br(e,t,n){const r=$e();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Me(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function rn(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let Rr;function bc(){const e=$e(),t=wt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Bi(){return Rr||(Rr=bc()),Rr}let Fr;function Ec({userAgent:e}={}){const t=Bi(),n=$e(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,o=n.screen.height,u=a.match(/(Android);?[\s\/]+([\d.]+)?/);let l=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g=r==="Win32";let p=r==="MacIntel";const T=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!l&&p&&t.touch&&T.indexOf(`${s}x${o}`)>=0&&(l=a.match(/(Version)\/([\d.]+)/),l||(l=[0,1,"13_0_0"]),p=!1),u&&!g&&(i.os="android",i.android=!0),(l||f||c)&&(i.os="ios",i.ios=!0),i}function Ri(e={}){return Fr||(Fr=Ec(e)),Fr}let Hr;function yc(){const e=$e(),t=Ri();let n=!1;function r(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(r()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[u,l]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=u<16||u===16&&l<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=r(),s=i||a&&t.ios;return{isSafari:n||i,needPerspectiveFix:n,need3dFix:s,isWebView:a}}function Fi(){return Hr||(Hr=yc()),Hr}function Tc({swiper:e,on:t,emit:n}){const r=$e();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(c=>{i=r.requestAnimationFrame(()=>{const{width:f,height:g}=e;let p=f,T=g;c.forEach(({contentBoxSize:h,contentRect:m,target:b})=>{b&&b!==e.el||(p=m?m.width:(h[0]||h).inlineSize,T=m?m.height:(h[0]||h).blockSize)}),(p!==f||T!==g)&&s()})}),a.observe(e.el))},u=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},l=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){o();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",l)}),t("destroy",()=>{u(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",l)})}function xc({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=$e(),s=(l,c={})=>{const f=i.MutationObserver||i.WebkitMutationObserver,g=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const T=function(){r("observerUpdate",p[0])};i.requestAnimationFrame?i.requestAnimationFrame(T):i.setTimeout(T,0)});g.observe(l,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(g)},o=()=>{if(e.params.observer){if(e.params.observeParents){const l=Mi(e.hostEl);for(let c=0;c<l.length;c+=1)s(l[c])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},u=()=>{a.forEach(l=>{l.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",o),n("destroy",u)}var Cc={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(o=>{o.apply(a,r)})}),t}};function Sc(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(bt(r,"padding-left")||0,10)-parseInt(bt(r,"padding-right")||0,10),n=n-parseInt(bt(r,"padding-top")||0,10)-parseInt(bt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Ac(){const e=this;function t(v,k){return parseFloat(v.getPropertyValue(e.getDirectionLabel(k))||0)}const n=e.params,{wrapperEl:r,slidesEl:a,rtlTranslate:i,wrongRTL:s}=e,o=e.virtual&&n.virtual.enabled,u=o?e.virtual.slides.length:e.slides.length,l=it(a,`.${e.params.slideClass}, swiper-slide`),c=o?e.virtual.slides.length:l.length;let f=[];const g=[],p=[];let T=n.slidesOffsetBefore;typeof T=="function"&&(T=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h=="function"&&(h=n.slidesOffsetAfter.call(e));const m=e.snapGrid.length,b=e.slidesGrid.length,E=e.size-T-h;let y=n.spaceBetween,_=-T,w=0,S=0;if(typeof E>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*E:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-T-h,l.forEach(v=>{i?v.style.marginLeft="":v.style.marginRight="",v.style.marginBottom="",v.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Ut(r,"--swiper-centered-offset-before",""),Ut(r,"--swiper-centered-offset-after","")),n.cssMode&&(Ut(r,"--swiper-slides-offset-before",`${T}px`),Ut(r,"--swiper-slides-offset-after",`${h}px`));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let A;const x=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(v=>typeof n.breakpoints[v].slidesPerView<"u").length>0;for(let v=0;v<c;v+=1){A=0;const k=l[v];if(!(k&&(M&&e.grid.updateSlide(v,k,l),bt(k,"display")==="none"))){if(o&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(A=n.virtual.slidesPerViewAutoSlideSize),A&&k&&(n.roundLengths&&(A=Math.floor(A)),k.style[e.getDirectionLabel("width")]=`${A}px`);else if(n.slidesPerView==="auto"){x&&(k.style[e.getDirectionLabel("width")]="");const D=getComputedStyle(k),P=k.style.transform,N=k.style.webkitTransform;if(P&&(k.style.transform="none"),N&&(k.style.webkitTransform="none"),n.roundLengths)A=e.isHorizontal()?Br(k,"width"):Br(k,"height");else{const C=t(D,"width"),F=t(D,"padding-left"),U=t(D,"padding-right"),$=t(D,"margin-left"),G=t(D,"margin-right"),L=D.getPropertyValue("box-sizing");if(L&&L==="border-box")A=C+$+G;else{const{clientWidth:W,offsetWidth:V}=k;A=C+F+U+$+G+(V-W)}}P&&(k.style.transform=P),N&&(k.style.webkitTransform=N),n.roundLengths&&(A=Math.floor(A))}else A=(E-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(A=Math.floor(A)),k&&(k.style[e.getDirectionLabel("width")]=`${A}px`);k&&(k.swiperSlideSize=A),p.push(A),n.centeredSlides?(_=_+A/2+w/2+y,w===0&&v!==0&&(_=_-E/2-y),v===0&&(_=_-E/2-y),Math.abs(_)<1/1e3&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup===0&&f.push(_),g.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(_),g.push(_),_=_+A+y),e.virtualSize+=A+y,w=A,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,E)+h,i&&s&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),M&&e.grid.updateWrapperSize(A,f),!n.centeredSlides){const v=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,k=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||v);let D=f.length;if(k){let N;if(n.slidesPerView==="auto"){N=1;let C=0;for(let F=p.length-1;F>=0&&(C+=p[F]+(F<p.length-1?y:0),C<=E);F-=1)N=p.length-F}else N=Math.floor(n.slidesPerView);D=Math.max(c-N,0)}const P=[];for(let N=0;N<f.length;N+=1){let C=f[N];n.roundLengths&&(C=Math.floor(C)),k?N<=D&&P.push(C):f[N]<=e.virtualSize-E&&P.push(C)}f=P,Math.floor(e.virtualSize-E)-Math.floor(f[f.length-1])>1&&(k||f.push(e.virtualSize-E))}if(o&&n.loop){const v=p[0]+y;if(n.slidesPerGroup>1){const k=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),D=v*n.slidesPerGroup;for(let P=0;P<k;P+=1)f.push(f[f.length-1]+D)}for(let k=0;k<e.virtual.slidesBefore+e.virtual.slidesAfter;k+=1)n.slidesPerGroup===1&&f.push(f[f.length-1]+v),g.push(g[g.length-1]+v),e.virtualSize+=v}if(f.length===0&&(f=[0]),y!==0){const v=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");l.filter((k,D)=>!n.cssMode||n.loop?!0:D!==l.length-1).forEach(k=>{k.style[v]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=v>E?v-E:0;f=f.map(D=>D<=0?-T:D>k?k+h:D)}if(n.centerInsufficientSlides){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=(T||0)+(h||0);if(v+k<E){const D=(E-v-k)/2;f.forEach((P,N)=>{f[N]=P-D}),g.forEach((P,N)=>{g[N]=P+D})}}if(Object.assign(e,{slides:l,snapGrid:f,slidesGrid:g,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ut(r,"--swiper-centered-offset-before",`${-f[0]}px`),Ut(r,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const v=-e.snapGrid[0],k=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+v),e.slidesGrid=e.slidesGrid.map(D=>D+k)}if(c!==u&&e.emit("slidesLengthChange"),f.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!o&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const v=`${n.containerModifierClass}backface-hidden`,k=e.el.classList.contains(v);c<=n.maxBackfaceHiddenSlides?k||e.el.classList.add(v):k&&e.el.classList.remove(v)}}function vc(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=o=>r?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{n.push(o)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const o=t.activeIndex+i;if(o>t.slides.length&&!r)break;n.push(s(o))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const o=n[i].offsetHeight;a=o>a?o:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function _c(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const Hi=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function wc(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let u=0;u<r.length;u+=1){const l=r[u];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),g=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(s-c),T=p+t.slidesSizesGrid[u],h=p>=0&&p<=t.size-t.slidesSizesGrid[u],m=p>=0&&p<t.size-1||T>1&&T<=t.size||p<=0&&T>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(u)),Hi(l,m,n.slideVisibleClass),Hi(l,h,n.slideFullyVisibleClass),l.progress=a?-f:f,l.originalProgress=a?-g:g}}function kc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:o}=t;const u=i,l=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||a<=0,s=f||a>=1,c&&(a=0),f&&(a=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),g=t.slidesGrid[c],p=t.slidesGrid[f],T=t.slidesGrid[t.slidesGrid.length-1],h=Math.abs(e);h>=g?o=(h-g)/T:o=(h+T-p)/T,o>1&&(o-=1)}Object.assign(t,{progress:a,progressLoop:o,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!u&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(u&&!i||l&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}const $r=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Nc(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,o=f=>it(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let u,l,c;if(i)if(n.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),u=o(`[data-swiper-slide-index="${f}"]`)}else u=o(`[data-swiper-slide-index="${a}"]`);else s?(u=t.find(f=>f.column===a),c=t.find(f=>f.column===a+1),l=t.find(f=>f.column===a-1)):u=t[a];u&&(s||(c=gc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),l=mc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!l===0&&(l=t[t.length-1]))),t.forEach(f=>{$r(f,f===u,n.slideActiveClass),$r(f,f===c,n.slideNextClass),$r(f,f===l,n.slidePrevClass)}),e.emitSlidesClasses()}const Kn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let a=r.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(r.shadowRoot?a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&!a.lazyPreloaderManaged&&a.remove())})),a&&!a.lazyPreloaderManaged&&a.remove()}},Ur=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},qr=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=a,o=[s-t];o.push(...Array.from({length:t}).map((u,l)=>s+r+l)),e.slides.forEach((u,l)=>{o.includes(u.column)&&Ur(e,l)});return}const i=a+r-1;if(e.params.rewind||e.params.loop)for(let s=a-t;s<=i+t;s+=1){const o=(s%n+n)%n;(o<a||o>i)&&Ur(e,o)}else for(let s=Math.max(a-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&(s>i||s<a)&&Ur(e,s)};function Ic(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Lc(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:o}=t;let u=e,l;const c=p=>{let T=p-t.virtual.slidesBefore;return T<0&&(T=t.virtual.slides.length+T),T>=t.virtual.slides.length&&(T-=t.virtual.slides.length),T};if(typeof u>"u"&&(u=Ic(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const p=Math.min(a.slidesPerGroupSkip,u);l=p+Math.floor((u-p)/a.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),u===i&&!t.params.loop){l!==o&&(t.snapIndex=l,t.emit("snapIndexChange"));return}if(u===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(u);return}const f=t.grid&&a.grid&&a.grid.rows>1;let g;if(t.virtual&&a.virtual.enabled)a.loop?g=c(u):g=u;else if(f){const p=t.slides.find(h=>h.column===u);let T=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(T)&&(T=Math.max(t.slides.indexOf(p),0)),g=Math.floor(T/a.grid.rows)}else if(t.slides[u]){const p=t.slides[u].getAttribute("data-swiper-slide-index");p?g=parseInt(p,10):g=u}else g=u;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:s,realIndex:g,previousIndex:i,activeIndex:u}),t.initialized&&qr(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==g&&t.emit("realIndexChange"),t.emit("slideChange"))}function Oc(e,t){const n=this,r=n.params;let a=e.closest(`.${r.slideClass}, swiper-slide`);!a&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!a&&o.matches&&o.matches(`.${r.slideClass}, swiper-slide`)&&(a=o)});let i=!1,s;if(a){for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===a){i=!0,s=o;break}}if(a&&i)n.clickedSlide=a,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Dc={updateSize:Sc,updateSlides:Ac,updateAutoHeight:vc,updateSlidesOffset:_c,updateSlidesProgress:wc,updateProgress:kc,updateSlidesClasses:Nc,updateActiveIndex:Lc,updateClickedSlide:Oc};function Pc(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=dc(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function Mc(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let o=0,u=0;const l=0;n.isHorizontal()?o=r?-e:e:u=e,a.roundLengths&&(o=Math.floor(o),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:u,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-u:a.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${o}px, ${u}px, ${l}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Bc(){return-this.snapGrid[0]}function Rc(){return-this.snapGrid[this.snapGrid.length-1]}function Fc(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:o}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const u=i.minTranslate(),l=i.maxTranslate();let c;if(r&&e>u?c=u:r&&e<l?c=l:c=e,i.updateProgress(c),s.cssMode){const f=i.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(g){!i||i.destroyed||g.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var Hc={getTranslate:Pc,setTranslate:Mc,minTranslate:Bc,maxTranslate:Rc,translateTo:Fc};function $c(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function $i({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&s==="reset"?e.emit(`slideResetTransition${r}`):t&&a!==i&&(e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Uc(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),$i({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function qc(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),$i({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var zc={setTransition:$c,transitionStart:Uc,transitionEnd:qc};function Vc(e=0,t,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:u,slidesGrid:l,previousIndex:c,activeIndex:f,rtlTranslate:g,wrapperEl:p,enabled:T}=i;if(!T&&!r&&!a||i.destroyed||i.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const h=Math.min(i.params.slidesPerGroupSkip,s);let m=h+Math.floor((s-h)/i.params.slidesPerGroup);m>=u.length&&(m=u.length-1);const b=-u[m];if(o.normalizeSlideIndex)for(let M=0;M<l.length;M+=1){const A=-Math.floor(b*100),x=Math.floor(l[M]*100),v=Math.floor(l[M+1]*100);typeof l[M+1]<"u"?A>=x&&A<v-(v-x)/2?s=M:A>=x&&A<v&&(s=M+1):A>=x&&(s=M)}if(i.initialized&&s!==f&&(!i.allowSlideNext&&(g?b>i.translate&&b>i.minTranslate():b<i.translate&&b<i.minTranslate())||!i.allowSlidePrev&&b>i.translate&&b>i.maxTranslate()&&(f||0)!==s))return!1;s!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(b);let E;s>f?E="next":s<f?E="prev":E="reset";const y=i.virtual&&i.params.virtual.enabled;if(!(y&&a)&&(g&&-b===i.translate||!g&&b===i.translate))return i.updateActiveIndex(s),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),o.effect!=="slide"&&i.setTranslate(b),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1;if(o.cssMode){const M=i.isHorizontal(),A=g?b:-b;if(t===0)y&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),y&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[M?"scrollLeft":"scrollTop"]=A})):p[M?"scrollLeft":"scrollTop"]=A,y&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:A,side:M?"left":"top"}),!0;p.scrollTo({[M?"left":"top"]:A,behavior:"smooth"})}return!0}const S=Fi().isSafari;return y&&!a&&S&&i.isElement&&i.virtual.update(!1,!1,s),i.setTransition(t),i.setTranslate(b),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,E),t===0?i.transitionEnd(n,E):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Gc(e=0,t,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const i=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let o;if(i){const h=s*a.params.grid.rows;o=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else o=a.getSlideIndexByData(s);const u=i?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:l,slidesOffsetBefore:c,slidesOffsetAfter:f}=a.params,g=l||!!c||!!f;let p=a.params.slidesPerView;p==="auto"?p=a.slidesPerViewDynamic():(p=Math.ceil(parseFloat(a.params.slidesPerView,10)),g&&p%2===0&&(p=p+1));let T=u-o<p;if(g&&(T=T||o<Math.ceil(p/2)),r&&g&&a.params.slidesPerView!=="auto"&&!i&&(T=!1),T){const h=g?o<a.activeIndex?"prev":"next":o-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?o+1:o-u+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(i){const h=s*a.params.grid.rows;s=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,t,n,r)}),a}function Yc(e,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let o=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const u=r.activeIndex<i.slidesPerGroupSkip?1:o,l=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!l&&i.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+u,e,t,n)}),!0}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+u,e,t,n)}function Wc(e,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:o,enabled:u,animating:l}=r;if(!u||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&a.virtual.enabled;if(a.loop){if(l&&!c&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=o?r.translate:-r.translate;function g(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}const p=g(f),T=i.map(E=>g(E)),h=a.freeMode&&a.freeMode.enabled;let m=i[T.indexOf(p)-1];if(typeof m>"u"&&(a.cssMode||h)){let E;i.forEach((y,_)=>{p>=y&&(E=_)}),typeof E<"u"&&(m=h?i[E]:i[E>0?E-1:E])}let b=0;if(typeof m<"u"&&(b=s.indexOf(m),b<0&&(b=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&r.isBeginning){const E=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(E,e,t,n)}else if(a.loop&&r.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(b,e,t,n)}),!0;return r.slideTo(b,e,t,n)}function jc(e,t=!0,n){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Xc(e,t=!0,n,r=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),o=s+Math.floor((i-s)/a.params.slidesPerGroup),u=a.rtlTranslate?a.translate:-a.translate;if(u>=a.snapGrid[o]){const l=a.snapGrid[o],c=a.snapGrid[o+1];u-l>(c-l)*r&&(i+=a.params.slidesPerGroup)}else{const l=a.snapGrid[o-1],c=a.snapGrid[o];u-l<=(c-l)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function Kc(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):a>(o?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(it(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Di(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var Qc={slideTo:Vc,slideToLoop:Gc,slideNext:Yc,slidePrev:Wc,slideReset:jc,slideToClosest:Xc,slideToClickedSlide:Kc};function Jc(e,t){const n=this,{params:r,slidesEl:a}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const i=()=>{it(a,`.${r.slideClass}, swiper-slide`).forEach((T,h)=>{T.setAttribute("data-swiper-slide-index",h)})},s=()=>{const p=it(a,`.${r.slideBlankClass}`);p.forEach(T=>{T.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},o=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||o)&&s();const u=r.slidesPerGroup*(o?r.grid.rows:1),l=n.slides.length%u!==0,c=o&&n.slides.length%r.grid.rows!==0,f=p=>{for(let T=0;T<p;T+=1){const h=n.isElement?jn("swiper-slide",[r.slideBlankClass]):jn("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(h)}};if(l){if(r.loopAddBlankSlides){const p=u-n.slides.length%u;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(c){if(r.loopAddBlankSlides){const p=r.grid.rows-n.slides.length%r.grid.rows;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();const g=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:g?void 0:"next",initial:t})}function Zc({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,initial:i,byController:s,byMousewheel:o}={}){const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:f,slidesEl:g,params:p}=u,{centeredSlides:T,slidesOffsetBefore:h,slidesOffsetAfter:m,initialSlide:b}=p,E=T||!!h||!!m;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&p.virtual.enabled){t&&(!E&&u.snapIndex===0?u.slideTo(u.virtual.slides.length,0,!1,!0):E&&u.snapIndex<p.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0)),u.allowSlidePrev=c,u.allowSlideNext=f,u.emit("loopFix");return}let y=p.slidesPerView;y==="auto"?y=u.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),E&&y%2===0&&(y=y+1));const _=p.slidesPerGroupAuto?y:p.slidesPerGroup;let w=E?Math.max(_,Math.ceil(y/2)):_;w%_!==0&&(w+=_-w%_),w+=p.loopAdditionalSlides,u.loopedSlides=w;const S=u.grid&&p.grid&&p.grid.rows>1;l.length<y+w||u.params.effect==="cards"&&l.length<y+w*2?Wn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&p.grid.fill==="row"&&Wn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],A=[],x=S?Math.ceil(l.length/p.grid.rows):l.length,v=i&&x-b<y&&!E;let k=v?b:u.activeIndex;typeof a>"u"?a=u.getSlideIndex(l.find($=>$.classList.contains(p.slideActiveClass))):k=a;const D=n==="next"||!n,P=n==="prev"||!n;let N=0,C=0;const U=(S?l[a].column:a)+(E&&typeof r>"u"?-y/2+.5:0);if(U<w){N=Math.max(w-U,_);for(let $=0;$<w-U;$+=1){const G=$-Math.floor($/x)*x;if(S){const L=x-G-1;for(let W=l.length-1;W>=0;W-=1)l[W].column===L&&M.push(W)}else M.push(x-G-1)}}else if(U+y>x-w){C=Math.max(U-(x-w*2),_),v&&(C=Math.max(C,y-x+b+1));for(let $=0;$<C;$+=1){const G=$-Math.floor($/x)*x;S?l.forEach((L,W)=>{L.column===G&&A.push(W)}):A.push(G)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect==="cards"&&l.length<y+w*2&&(A.includes(a)&&A.splice(A.indexOf(a),1),M.includes(a)&&M.splice(M.indexOf(a),1)),P&&M.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.prepend(l[$]),l[$].swiperLoopMoveDOM=!1}),D&&A.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.append(l[$]),l[$].swiperLoopMoveDOM=!1}),u.recalcSlides(),p.slidesPerView==="auto"?u.updateSlides():S&&(M.length>0&&P||A.length>0&&D)&&u.slides.forEach(($,G)=>{u.grid.updateSlide(G,$,u.slides)}),p.watchSlidesProgress&&u.updateSlidesOffset(),t){if(M.length>0&&P){if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k+N]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k+Math.ceil(N),0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else if(r){const $=S?M.length/p.grid.rows:M.length;u.slideTo(u.activeIndex+$,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(A.length>0&&D)if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k-C]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k-C,0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else{const $=S?A.length/p.grid.rows:A.length;u.slideTo(u.activeIndex-$,0,!1,!0)}}if(u.allowSlidePrev=c,u.allowSlideNext=f,u.controller&&u.controller.control&&!s){const $={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(G=>{!G.destroyed&&G.params.loop&&G.loopFix({...$,slideTo:G.params.slidesPerView===p.slidesPerView?t:!1})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...$,slideTo:u.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}u.emit("loopFix")}function ed(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var td={loopCreate:Jc,loopFix:Zc,loopDestroy:ed};function nd(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function rd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var ad={setGrabCursor:nd,unsetGrabCursor:rd};function id(e,t=this){function n(r){if(!r||r===wt()||r===$e())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function Ui(e,t,n){const r=$e(),{params:a}=e,i=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return i&&(n<=s||n>=r.innerWidth-s)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function sd(e){const t=this,n=wt();let r=e;r.originalEvent&&(r=r.originalEvent);const a=t.touchEventsData;if(r.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(a.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Ui(t,r,r.targetTouches[0].pageX);return}const{params:i,touches:s,enabled:o}=t;if(!o||!i.simulateTouch&&r.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let u=r.target;if(i.touchEventsTarget==="wrapper"&&!hc(u,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;const l=!!i.noSwipingClass&&i.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&c&&(u=c[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,g=!!(r.target&&r.target.shadowRoot);if(i.noSwiping&&(g?id(f,u):u.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const p=s.currentX,T=s.currentY;if(!Ui(t,r,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=T,a.touchStartTime=Gn(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let h=!0;u.matches(a.focusableElements)&&(h=!1,u.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==u&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!u.matches(a.focusableElements))&&n.activeElement.blur();const m=h&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||m)&&!u.isContentEditable&&r.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function od(e){const t=wt(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:o}=n;if(!o||!a.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(r.touchId!==null||u.pointerId!==r.pointerId))return;let l;if(u.type==="touchmove"){if(l=[...u.changedTouches].find(w=>w.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=u;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u);return}const c=l.pageX,f=l.pageY;if(u.preventedByNestedSwiper){i.startX=c,i.startY=f;return}if(!n.allowTouchMove){u.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f}),r.touchStartTime=Gn());return}if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(f<i.startY&&n.translate<=n.maxTranslate()||f>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(s&&(c>i.startX&&-n.translate<=n.maxTranslate()||c<i.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(c<i.startX&&n.translate<=n.maxTranslate()||c>i.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u.target&&u.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",u),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=f;const g=i.currentX-i.startX,p=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(g**2+p**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let w;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:g*g+p*p>=25&&(w=Math.atan2(Math.abs(p),Math.abs(g))*180/Math.PI,r.isScrolling=n.isHorizontal()?w>a.touchAngle:90-w>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||u.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&u.cancelable&&u.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&u.stopPropagation();let T=n.isHorizontal()?g:p,h=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(T=Math.abs(T)*(s?1:-1),h=Math.abs(h)*(s?1:-1)),i.diff=T,T*=a.touchRatio,s&&(T=-T,h=-h);const m=n.touchesDirection;n.swipeDirection=T>0?"prev":"next",n.touchesDirection=h>0?"prev":"next";const b=n.params.loop&&!a.cssMode,E=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(b&&E&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(w)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if(new Date().getTime(),a._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&m!==n.touchesDirection&&b&&E&&Math.abs(T)>=1){Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=T+r.startTranslate;let y=!0,_=a.resistanceRatio;if(a.touchReleaseOnEdges&&(_=0),T>0?(b&&E&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+T)**_))):T<0&&(b&&E&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-T)**_))),y&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(T)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ud(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let a;if(r.type==="touchend"||r.type==="touchcancel"){if(a=[...r.changedTouches].find(w=>w.identifier===n.touchId),!a||a.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;a=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:o,rtlTranslate:u,slidesGrid:l,enabled:c}=t;if(!c||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=Gn(),g=f-n.touchStartTime;if(t.allowClick){const w=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(w&&w[0]||r.target,w),t.emit("tap click",r),g<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Gn(),Di(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=u?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const T=p>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<s.slidesPerGroupSkip?1:s.slidesPerGroup){const S=w<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[w+S]<"u"?(T||p>=l[w]&&p<l[w+S])&&(h=w,m=l[w+S]-l[w]):(T||p>=l[w])&&(h=w,m=l[l.length-1]-l[l.length-2])}let b=null,E=null;s.rewind&&(t.isBeginning?E=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(p-l[h])/m,_=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(g>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(y>1-s.longSwipesRatio?t.slideTo(h+_):E!==null&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(E):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:h+_),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:h))}}function qi(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function ld(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function cd(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function dd(e){const t=this;Kn(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function fd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const zi=(e,t)=>{const n=wt(),{params:r,el:a,wrapperEl:i,device:s}=e,o=!!r.nested,u=t==="on"?"addEventListener":"removeEventListener",l=t;!a||typeof a=="string"||(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),a[u]("touchstart",e.onTouchStart,{passive:!1}),a[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[u]("click",e.onClick,!0),r.cssMode&&i[u]("scroll",e.onScroll),r.updateOnWindowResize?e[l](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",qi,!0):e[l]("observerUpdate",qi,!0),a[u]("load",e.onLoad,{capture:!0}))};function pd(){const e=this,{params:t}=e;e.onTouchStart=sd.bind(e),e.onTouchMove=od.bind(e),e.onTouchEnd=ud.bind(e),e.onDocumentTouchStart=fd.bind(e),t.cssMode&&(e.onScroll=cd.bind(e)),e.onClick=ld.bind(e),e.onLoad=dd.bind(e),zi(e,"on")}function hd(){zi(this,"off")}var md={attachEvents:pd,detachEvents:hd};const Vi=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function gd(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=wt(),o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",u=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),l=e.getBreakpoint(i,o,u);if(!l||e.currentBreakpoint===l)return;const f=(l in i?i[l]:void 0)||e.originalParams,g=Vi(e,r),p=Vi(e,f),T=e.params.grabCursor,h=f.grabCursor,m=r.enabled;g&&!p?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!g&&p&&(a.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),T&&!h?e.unsetGrabCursor():!T&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(S=>{if(typeof f[S]>"u")return;const M=r[S]&&r[S].enabled,A=f[S]&&f[S].enabled;M&&!A&&e[S].disable(),!M&&A&&e[S].enable()});const b=f.direction&&f.direction!==r.direction,E=r.loop&&(f.slidesPerView!==r.slidesPerView||b),y=r.loop;b&&n&&e.changeDirection(),We(e.params,f);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!_?e.disable():!m&&_&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",f),n&&(E?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function bd(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=$e(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const u=parseFloat(o.substr(1));return{value:i*u,point:o}}return{value:o,point:o}});s.sort((o,u)=>parseInt(o.value,10)-parseInt(u.value,10));for(let o=0;o<s.length;o+=1){const{point:u,value:l}=s[o];t==="window"?a.matchMedia(`(min-width: ${l}px)`).matches&&(r=u):l<=n.clientWidth&&(r=u)}return r||"max"}var Ed={setBreakpoint:gd,getBreakpoint:bd};function yd(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function Td(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=yd(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function xd(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Cd={addClasses:Td,removeClasses:xd};function Sd(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Ad={checkOverflow:Sd},zr={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vd(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){We(t,r);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in i)){We(t,r);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),We(t,r)}}const Vr={eventsEmitter:Cc,update:Dc,translate:Hc,transition:zc,slide:Qc,loop:td,grabCursor:ad,events:md,breakpoints:Ed,checkOverflow:Ad,classes:Cd},Gr={};let Yr=class mt{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=We({},r),n&&!r.el&&(r.el=n);const a=wt();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const u=[];return a.querySelectorAll(r.el).forEach(l=>{const c=We({},r,{el:l});u.push(new mt(c))}),u}const i=this;i.__swiper__=!0,i.support=Bi(),i.device=Ri({userAgent:r.userAgent}),i.browser=Fi(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(u=>{u({params:r,swiper:i,extendParams:vd(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=We({},zr,s);return i.params=We({},o,Gr,r),i.originalParams=We({},i.params),i.passedParams=We({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(u=>{i.on(u,i.params.on[u])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=it(n,`.${r.slideClass}, swiper-slide`),i=Xn(a[0]);return Xn(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=it(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:o,size:u,activeIndex:l}=r;let c=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=i[l]?Math.ceil(i[l].swiperSlideSize):0,g;for(let p=l+1;p<i.length;p+=1)i[p]&&!g&&(f+=Math.ceil(i[p].swiperSlideSize),c+=1,f>u&&(g=!0));for(let p=l-1;p>=0;p-=1)i[p]&&!g&&(f+=i[p].swiperSlideSize,c+=1,f>u&&(g=!0))}else if(t==="current")for(let f=l+1;f<i.length;f+=1)(n?s[f]+o[f]-s[l]<u:s[f]-s[l]<u)&&(c+=1);else for(let f=l-1;f>=0;f-=1)s[l]-s[f]<u&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Kn(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):it(r,a())[0];return!s&&n.params.createElements&&(s=jn("div",n.params.wrapperClass),r.append(s),it(r,`.${n.params.slideClass}`).forEach(o=>{s.append(o)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl"),wrongRTL:bt(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const a=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&a.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(i=>{i.complete?Kn(n,i):i.addEventListener("load",s=>{Kn(n,s.target)})}),qr(n),n.initialized=!0,qr(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:o}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(u=>{u.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(u=>{r.off(u)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),lc(r)),r.destroyed=!0),null}static extendDefaults(t){We(Gr,t)}static get extendedDefaults(){return Gr}static get defaults(){return zr}static installModule(t){mt.prototype.__modules__||(mt.prototype.__modules__=[]);const n=mt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mt.installModule(n)),mt):(mt.installModule(t),mt)}};Object.keys(Vr).forEach(e=>{Object.keys(Vr[e]).forEach(t=>{Yr.prototype[t]=Vr[e][t]})}),Yr.use([Tc,xc]);const Gi=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function kt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function qt(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:kt(t[r])&&kt(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:qt(e[r],t[r]):e[r]=t[r]})}function Yi(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wi(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ji(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xi(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function _d(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function wd({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:o}){const u=r.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:l,pagination:c,navigation:f,scrollbar:g,virtual:p,thumbs:T}=e;let h,m,b,E,y,_,w,S;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes("controller")&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(m=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(l.pagination||l.pagination===!1)&&c&&!c.el&&(b=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(l.scrollbar||l.scrollbar===!1)&&g&&!g.el&&(E=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const M=A=>{e[A]&&(e[A].destroy(),A==="navigation"?(e.isElement&&(e[A].prevEl.remove(),e[A].nextEl.remove()),l[A].prevEl=void 0,l[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(e.isElement&&e[A].el.remove(),l[A].el=void 0,e[A].el=void 0))};r.includes("loop")&&e.isElement&&(l.loop&&!n.loop?_=!0:!l.loop&&n.loop?w=!0:S=!0),u.forEach(A=>{if(kt(l[A])&&kt(n[A]))Object.assign(l[A],n[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in n[A]&&!n[A].enabled&&M(A);else{const x=n[A];(x===!0||x===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?x===!1&&M(A):l[A]=n[A]}}),u.includes("controller")&&!m&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes("children")&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes("virtual")&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes("children")&&t&&l.loop&&(S=!0),h&&T.init()&&T.update(!0),m&&(e.controller.control=l.controller.control),b&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(l.pagination.el=o),c.init(),c.render(),c.update()),E&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),e.el.appendChild(s)),s&&(l.scrollbar.el=s),g.init(),g.updateSize(),g.setTranslate()),y&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),rn(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),rn(i,e.navigation.arrowSvg),i.part.add("button-prev"),e.el.appendChild(i))),a&&(l.navigation.nextEl=a),i&&(l.navigation.prevEl=i),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(_||S)&&e.loopDestroy(),(w||S)&&e.loopCreate(),e.update()}function kd(e={},t=!0){const n={on:{}},r={},a={};qt(n,zr),n._emitClasses=!0,n.init=!1;const i={},s=Gi.map(u=>u.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(u=>{typeof e[u]>"u"||(s.indexOf(u)>=0?kt(e[u])?(n[u]={},a[u]={},qt(n[u],e[u]),qt(a[u],e[u])):(n[u]=e[u],a[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?r[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:i[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:a,rest:i,events:r}}function Nd({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){Yi(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),Wi(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),ji(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function Id(e,t,n,r,a){const i=[];if(!t)return i;const s=u=>{i.indexOf(u)<0&&i.push(u)};if(n&&r){const u=r.map(a),l=n.map(a);u.join("")!==l.join("")&&s("children"),r.length!==n.length&&s("children")}return Gi.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(kt(e[u])&&kt(t[u])){const l=Object.keys(e[u]),c=Object.keys(t[u]);l.length!==c.length?s(u):(l.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}),c.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}))}else e[u]!==t[u]&&s(u)}),i}const Ld=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(this,arguments)}function Ki(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Qi(e){const t=[];return I.Children.toArray(e).forEach(n=>{Ki(n)?t.push(n):n.props&&n.props.children&&Qi(n.props.children).forEach(r=>t.push(r))}),t}function Od(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return I.Children.toArray(e).forEach(r=>{if(Ki(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const a=Qi(r.props.children);a.length>0?a.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Dd(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,o=e.params.loop?-t.length:0,u=e.params.loop?t.length*2:t.length,l=[];for(let c=o;c<u;c+=1)c>=i&&c<=s&&l.push(t[r(c)]);return l.map((c,f)=>I.cloneElement(c,{swiper:e,style:a,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function an(e,t){return typeof window>"u"?I.useEffect(e,t):I.useLayoutEffect(e,t)}const Ji=I.createContext(null),Pd=I.createContext(null),Zi=I.forwardRef(({className:e,tag:t="div",wrapperTag:n="div",children:r,onSwiper:a,...i}={},s)=>{let o=!1;const[u,l]=I.useState("swiper"),[c,f]=I.useState(null),[g,p]=I.useState(!1),T=I.useRef(!1),h=I.useRef(null),m=I.useRef(null),b=I.useRef(null),E=I.useRef(null),y=I.useRef(null),_=I.useRef(null),w=I.useRef(null),S=I.useRef(null),{params:M,passedParams:A,rest:x,events:v}=kd(i),{slides:k,slots:D}=Od(r),P=()=>{p(!g)};Object.assign(M.on,{_containerClasses($,G){l(G)}});const N=()=>{Object.assign(M.on,v),o=!0;const $={...M};if(delete $.wrapperClass,m.current=new Yr($),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=k;const G={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};qt(m.current.params.virtual,G),qt(m.current.originalParams.virtual,G)}};h.current||N(),m.current&&m.current.on("_beforeBreakpoint",P);const C=()=>{o||!v||!m.current||Object.keys(v).forEach($=>{m.current.on($,v[$])})},F=()=>{!v||!m.current||Object.keys(v).forEach($=>{m.current.off($,v[$])})};I.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",P)}),I.useEffect(()=>{!T.current&&m.current&&(m.current.emitSlidesClasses(),T.current=!0)}),an(()=>{if(s&&(s.current=h.current),!!h.current)return m.current.destroyed&&N(),Nd({el:h.current,nextEl:y.current,prevEl:_.current,paginationEl:w.current,scrollbarEl:S.current,swiper:m.current},M),a&&!m.current.destroyed&&a(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),an(()=>{C();const $=Id(A,b.current,k,E.current,G=>G.key);return b.current=A,E.current=k,$.length&&m.current&&!m.current.destroyed&&wd({swiper:m.current,slides:k,passedParams:A,changedParams:$,nextEl:y.current,prevEl:_.current,scrollbarEl:S.current,paginationEl:w.current}),()=>{F()}}),an(()=>{Ld(m.current)},[c]);function U(){return M.virtual?Dd(m.current,k,c):k.map(($,G)=>I.cloneElement($,{swiper:m.current,swiperSlideIndex:G}))}return I.createElement(t,Qn({ref:h,className:Xi(`${u}${e?` ${e}`:""}`)},x),I.createElement(Pd.Provider,{value:m.current},D["container-start"],I.createElement(n,{className:_d(M.wrapperClass)},D["wrapper-start"],U(),D["wrapper-end"]),Yi(M)&&I.createElement(I.Fragment,null,I.createElement("div",{ref:_,className:"swiper-button-prev"}),I.createElement("div",{ref:y,className:"swiper-button-next"})),ji(M)&&I.createElement("div",{ref:S,className:"swiper-scrollbar"}),Wi(M)&&I.createElement("div",{ref:w,className:"swiper-pagination"}),D["container-end"]))});Zi.displayName="Swiper";const es=I.forwardRef(({tag:e="div",children:t,className:n="",swiper:r,zoom:a,lazy:i,virtualIndex:s,swiperSlideIndex:o,...u}={},l)=>{const c=I.useRef(null),[f,g]=I.useState("swiper-slide"),[p,T]=I.useState(!1);function h(y,_,w){_===c.current&&g(w)}an(()=>{if(typeof o<"u"&&(c.current.swiperSlideIndex=o),l&&(l.current=c.current),!(!c.current||!r)){if(r.destroyed){f!=="swiper-slide"&&g("swiper-slide");return}return r.on("_slideClass",h),()=>{r&&r.off("_slideClass",h)}}}),an(()=>{r&&c.current&&!r.destroyed&&g(r.getSlideClasses(c.current))},[r]);const m={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof t=="function"?t(m):t,E=()=>{T(!0)};return I.createElement(e,Qn({ref:c,className:Xi(`${f}${n?` ${n}`:""}`),"data-swiper-slide-index":s,onLoad:E},u),a&&I.createElement(Ji.Provider,{value:m},I.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!a&&I.createElement(Ji.Provider,{value:m},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});es.displayName="SwiperSlide";function ts(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=it(e.el,`.${r[a]}`)[0];i||(i=jn("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}const ns='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Md({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:ns};function a(p){let T;return p&&typeof p=="string"&&e.isElement&&(T=e.el.querySelector(p)||e.hostEl.querySelector(p),T)?T:(p&&(typeof p=="string"&&(T=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&T&&T.length>1&&e.el.querySelectorAll(p).length===1?T=e.el.querySelector(p):T&&T.length===1&&(T=T[0])),p&&!T?p:T)}function i(p,T){const h=e.params.navigation;p=Me(p),p.forEach(m=>{m&&(m.classList[T?"add":"remove"](...h.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=T),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](h.lockClass))})}function s(){const{nextEl:p,prevEl:T}=e.navigation;if(e.params.loop){i(T,!1),i(p,!1);return}i(T,e.isBeginning&&!e.params.rewind),i(p,e.isEnd&&!e.params.rewind)}function o(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function l(){const p=e.params.navigation;if(e.params.navigation=ts(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let T=a(p.nextEl),h=a(p.prevEl);Object.assign(e.navigation,{nextEl:T,prevEl:h}),T=Me(T),h=Me(h);const m=(b,E)=>{if(b){if(p.addIcons&&b.matches(".swiper-button-next,.swiper-button-prev")&&!b.querySelector("svg")){const y=document.createElement("div");rn(y,ns),b.appendChild(y.querySelector("svg")),y.remove()}b.addEventListener("click",E==="next"?u:o)}!e.enabled&&b&&b.classList.add(...p.lockClass.split(" "))};T.forEach(b=>m(b,"next")),h.forEach(b=>m(b,"prev"))}function c(){let{nextEl:p,prevEl:T}=e.navigation;p=Me(p),T=Me(T);const h=(m,b)=>{m.removeEventListener("click",b==="next"?u:o),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(m=>h(m,"next")),T.forEach(m=>h(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(l(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{c()}),n("enable disable",()=>{let{nextEl:p,prevEl:T}=e.navigation;if(p=Me(p),T=Me(T),e.enabled){s();return}[...p,...T].filter(h=>!!h).forEach(h=>h.classList.add(e.params.navigation.lockClass))}),n("click",(p,T)=>{let{nextEl:h,prevEl:m}=e.navigation;h=Me(h),m=Me(m);const b=T.target;let E=m.includes(b)||h.includes(b);if(e.isElement&&!E){const y=T.path||T.composedPath&&T.composedPath();y&&(E=y.find(_=>h.includes(_)||m.includes(_)))}if(e.params.navigation.hideOnClick&&!E){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let y;h.length?y=h[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(y=m[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...h,...m].filter(_=>!!_).forEach(_=>_.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),l(),s()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:f,disable:g,update:s,init:l,destroy:c})}function sn(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Bd({swiper:e,extendParams:t,on:n,emit:r}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let i,s=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(b,E){const{bulletActiveClass:y}=e.params.pagination;b&&(b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${y}-${E}`),b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${y}-${E}-${E}`)))}function l(b,E,y){if(b=b%y,E=E%y,E===b+1)return"next";if(E===b-1)return"previous"}function c(b){const E=b.target.closest(sn(e.params.pagination.bulletClass));if(!E)return;b.preventDefault();const y=Xn(E)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const _=l(e.realIndex,y,e.slides.length);_==="next"?e.slideNext():_==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function f(){const b=e.rtl,E=e.params.pagination;if(o())return;let y=e.pagination.el;y=Me(y);let _,w;const S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(S/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,_=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(_=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,_=e.activeIndex||0),E.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let x,v,k;if(E.dynamicBullets&&(i=Br(A[0],e.isHorizontal()?"width":"height"),y.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${i*(E.dynamicMainBullets+4)}px`}),E.dynamicMainBullets>1&&w!==void 0&&(s+=_-(w||0),s>E.dynamicMainBullets-1?s=E.dynamicMainBullets-1:s<0&&(s=0)),x=Math.max(_-s,0),v=x+(Math.min(A.length,E.dynamicMainBullets)-1),k=(v+x)/2),A.forEach(D=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${E.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();D.classList.remove(...P)}),y.length>1)A.forEach(D=>{const P=Xn(D);P===_?D.classList.add(...E.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),E.dynamicBullets&&(P>=x&&P<=v&&D.classList.add(...`${E.bulletActiveClass}-main`.split(" ")),P===x&&u(D,"prev"),P===v&&u(D,"next"))});else{const D=A[_];if(D&&D.classList.add(...E.bulletActiveClass.split(" ")),e.isElement&&A.forEach((P,N)=>{P.setAttribute("part",N===_?"bullet-active":"bullet")}),E.dynamicBullets){const P=A[x],N=A[v];for(let C=x;C<=v;C+=1)A[C]&&A[C].classList.add(...`${E.bulletActiveClass}-main`.split(" "));u(P,"prev"),u(N,"next")}}if(E.dynamicBullets){const D=Math.min(A.length,E.dynamicMainBullets+4),P=(i*D-i)/2-k*i,N=b?"right":"left";A.forEach(C=>{C.style[e.isHorizontal()?N:"top"]=`${P}px`})}}y.forEach((A,x)=>{if(E.type==="fraction"&&(A.querySelectorAll(sn(E.currentClass)).forEach(v=>{v.textContent=E.formatFractionCurrent(_+1)}),A.querySelectorAll(sn(E.totalClass)).forEach(v=>{v.textContent=E.formatFractionTotal(M)})),E.type==="progressbar"){let v;E.progressbarOpposite?v=e.isHorizontal()?"vertical":"horizontal":v=e.isHorizontal()?"horizontal":"vertical";const k=(_+1)/M;let D=1,P=1;v==="horizontal"?D=k:P=k,A.querySelectorAll(sn(E.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${P})`,N.style.transitionDuration=`${e.params.speed}ms`})}E.type==="custom"&&E.renderCustom?(rn(A,E.renderCustom(e,_+1,M)),x===0&&r("paginationRender",A)):(x===0&&r("paginationRender",A),r("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](E.lockClass)})}function g(){const b=e.params.pagination;if(o())return;const E=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let y=e.pagination.el;y=Me(y);let _="";if(b.type==="bullets"){let w=e.params.loop?Math.ceil(E/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>E&&(w=E);for(let S=0;S<w;S+=1)b.renderBullet?_+=b.renderBullet.call(e,S,b.bulletClass):_+=`<${b.bulletElement} ${e.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?_=b.renderFraction.call(e,b.currentClass,b.totalClass):_=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?_=b.renderProgressbar.call(e,b.progressbarFillClass):_=`<span class="${b.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(w=>{b.type!=="custom"&&rn(w,_||""),b.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(sn(b.bulletClass)))}),b.type!=="custom"&&r("paginationRender",y[0])}function p(){e.params.pagination=ts(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const b=e.params.pagination;if(!b.el)return;let E;typeof b.el=="string"&&e.isElement&&(E=e.el.querySelector(b.el)),!E&&typeof b.el=="string"&&(E=[...document.querySelectorAll(b.el)]),E||(E=b.el),!(!E||E.length===0)&&(e.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(E)&&E.length>1&&(E=[...e.el.querySelectorAll(b.el)],E.length>1&&(E=E.find(y=>Mi(y,".swiper")[0]===e.el))),Array.isArray(E)&&E.length===1&&(E=E[0]),Object.assign(e.pagination,{el:E}),E=Me(E),E.forEach(y=>{b.type==="bullets"&&b.clickable&&y.classList.add(...(b.clickableClass||"").split(" ")),y.classList.add(b.modifierClass+b.type),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(y.classList.add(`${b.modifierClass}${b.type}-dynamic`),s=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&y.classList.add(b.progressbarOppositeClass),b.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(b.lockClass)}))}function T(){const b=e.params.pagination;if(o())return;let E=e.pagination.el;E&&(E=Me(E),E.forEach(y=>{y.classList.remove(b.hiddenClass),y.classList.remove(b.modifierClass+b.type),y.classList.remove(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(y.classList.remove(...(b.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...b.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const b=e.params.pagination;let{el:E}=e.pagination;E=Me(E),E.forEach(y=>{y.classList.remove(b.horizontalClass,b.verticalClass),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?m():(p(),g(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{g(),f()}),n("destroy",()=>{T()}),n("enable disable",()=>{let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(b,E)=>{const y=E.target,_=Me(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&_&&_.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const w=_[0].classList.contains(e.params.pagination.hiddenClass);r(w===!0?"paginationShow":"paginationHide"),_.forEach(S=>S.classList.toggle(e.params.pagination.hiddenClass))}});const h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList.remove(e.params.pagination.paginationDisabledClass))),p(),g(),f()},m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList.add(e.params.pagination.paginationDisabledClass))),T()};Object.assign(e.pagination,{enable:h,disable:m,render:g,update:f,init:p,destroy:T})}function Vy(){}function Gy(){}function rs(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function as(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Rd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hd={};function is(e,t){return(Hd.jsx?Fd:Rd).test(e)}const $d=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?ss(e.value):!1:ss(e)}function ss(e){return e.replace($d,"")===""}class on{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}on.prototype.normal={},on.prototype.property={},on.prototype.space=void 0;function os(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new on(n,r,t)}function un(e){return e.toLowerCase()}class qe{constructor(t,n){this.attribute=n,this.property=t}}qe.prototype.attribute="",qe.prototype.booleanish=!1,qe.prototype.boolean=!1,qe.prototype.commaOrSpaceSeparated=!1,qe.prototype.commaSeparated=!1,qe.prototype.defined=!1,qe.prototype.mustUseProperty=!1,qe.prototype.number=!1,qe.prototype.overloadedBoolean=!1,qe.prototype.property="",qe.prototype.spaceSeparated=!1,qe.prototype.space=void 0;let qd=0;const de=Nt(),Oe=Nt(),Wr=Nt(),Z=Nt(),Se=Nt(),zt=Nt(),je=Nt();function Nt(){return 2**++qd}const jr=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Oe,commaOrSpaceSeparated:je,commaSeparated:zt,number:Z,overloadedBoolean:Wr,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Xr=Object.keys(jr);class Kr extends qe{constructor(t,n,r,a){let i=-1;if(super(t,n),us(this,"space",a),typeof r=="number")for(;++i<Xr.length;){const s=Xr[i];us(this,Xr[i],(r&jr[s])===jr[s])}}}Kr.prototype.defined=!0;function us(e,t,n){n&&(e[t]=n)}function Vt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Kr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[un(r)]=r,n[un(i.attribute)]=r}return new on(t,n,e.space)}const ls=Vt({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Se,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:Z,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Se,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Oe,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cs(e,t){return t in e?e[t]:t}function ds(e,t){return cs(e,t.toLowerCase())}const zd=Vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Se,autoFocus:de,autoPlay:de,blocking:Se,capture:null,charSet:null,checked:de,cite:null,className:Se,cols:Z,colSpan:null,content:null,contentEditable:Oe,controls:de,controlsList:Se,coords:Z|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Wr,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Se,height:Z,hidden:Wr,high:Z,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Se,itemRef:Se,itemScope:de,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:Z,pattern:null,ping:Se,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Se,required:de,reversed:de,rows:Z,rowSpan:Z,sandbox:Se,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Oe,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:ds}),Vd=Vt({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:je,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:zt,g2:zt,glyphName:zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:je,rev:je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:je,requiredFeatures:je,requiredFonts:je,requiredFormats:je,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:je,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cs}),fs=Vt({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()}}),ps=Vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ds}),hs=Vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gd={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"},Yd=/[A-Z]/g,ms=/-[a-z]/g,Wd=/^data[-\w.:]+$/i;function Jn(e,t){const n=un(t);let r=t,a=qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ms,Xd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ms.test(i)){let s=i.replace(Yd,jd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Kr}return new a(r,t)}function jd(e){return"-"+e.toLowerCase()}function Xd(e){return e.charAt(1).toUpperCase()}const ln=os([ls,zd,fs,ps,hs],"html"),Et=os([ls,Vd,fs,ps,hs],"svg");function gs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bs(e){return e.join(" ").trim()}function Qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={},Jr,Es;function Kd(){if(Es)return Jr;Es=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
43
|
+
`,l="/",c="*",f="",g="comment",p="declaration";function T(m,b){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];b=b||{};var E=1,y=1;function _(N){var C=N.match(t);C&&(E+=C.length);var F=N.lastIndexOf(u);y=~F?N.length-F:y+N.length}function w(){var N={line:E,column:y};return function(C){return C.position=new S(N),x(),C}}function S(N){this.start=N,this.end={line:E,column:y},this.source=b.source}S.prototype.content=m;function M(N){var C=new Error(b.source+":"+E+":"+y+": "+N);if(C.reason=N,C.filename=b.source,C.line=E,C.column=y,C.source=m,!b.silent)throw C}function A(N){var C=N.exec(m);if(C){var F=C[0];return _(F),m=m.slice(F.length),C}}function x(){A(n)}function v(N){var C;for(N=N||[];C=k();)C!==!1&&N.push(C);return N}function k(){var N=w();if(!(l!=m.charAt(0)||c!=m.charAt(1))){for(var C=2;f!=m.charAt(C)&&(c!=m.charAt(C)||l!=m.charAt(C+1));)++C;if(C+=2,f===m.charAt(C-1))return M("End of comment missing");var F=m.slice(2,C-2);return y+=2,_(F),m=m.slice(C),y+=2,N({type:g,comment:F})}}function D(){var N=w(),C=A(r);if(C){if(k(),!A(a))return M("property missing ':'");var F=A(i),U=N({type:p,property:h(C[0].replace(e,f)),value:F?h(F[0].replace(e,f)):f});return A(s),U}}function P(){var N=[];v(N);for(var C;C=D();)C!==!1&&(N.push(C),v(N));return N}return x(),P()}function h(m){return m?m.replace(o,f):f}return Jr=T,Jr}var ys;function Qd(){if(ys)return Gt;ys=1;var e=Gt&&Gt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=n;const t=e(Kd());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),o=typeof a=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;o?a(l,c,u):c&&(i=i||{},i[l]=c)}),i}return Gt}var cn={},Ts;function Jd(){if(Ts)return cn;Ts=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),i(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(a,o):l=l.replace(r,o),l.replace(t,s))};return cn.camelCase=u,cn}var dn,xs;function Zd(){if(xs)return dn;xs=1;var e=dn&&dn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Qd()),n=Jd();function r(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(s[(0,n.camelCase)(o,i)]=u)}),s}return r.default=r,dn=r,dn}var ef=Zd();const tf=Qr(ef),Zn=Cs("end"),st=Cs("start");function Cs(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 Ss(e){const t=st(e),n=Zn(e);if(t&&n)return{start:t,end:n}}function fn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?As(e.position):"start"in e||"end"in e?As(e):"line"in e||"column"in e?Zr(e):""}function Zr(e){return vs(e&&e.line)+":"+vs(e&&e.column)}function As(e){return Zr(e&&e.start)+"-"+Zr(e&&e.end)}function vs(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={},s=!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&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.position)}const o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=fn(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=s&&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 ea={}.hasOwnProperty,nf=new Map,rf=/[A-Z]/g,af=new Set(["table","tbody","thead","tfoot","tr"]),sf=new Set(["td","th"]),_s="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function of(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=mf(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=hf(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"?Et:ln,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=ws(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function ws(e,t,n){if(t.type==="element")return uf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return df(e,t,n);if(t.type==="mdxjsEsm")return cf(e,t);if(t.type==="root")return ff(e,t,n);if(t.type==="text")return pf(e,t)}function uf(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=Ns(e,t.tagName,!1),s=gf(e,t);let o=na(e,t);return af.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ud(u):!0})),ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function lf(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)}pn(e,t.position)}function cf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pn(e,t.position)}function df(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Ns(e,t.name,!0),s=bf(e,t),o=na(e,t);return ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ff(e,t,n){const r={};return ta(r,na(e,t)),e.create(t,e.Fragment,r,n)}function pf(e,t){return t.value}function ks(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ta(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function hf(e,t,n){return r;function r(a,i,s,o){const l=Array.isArray(s.children)?n:t;return o?l(i,s,o):l(i,s)}}function mf(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),u=st(r);return t(a,i,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function gf(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ea.call(t.properties,a)){const i=Ef(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&sf.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bf(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 s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else pn(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 o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else pn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function na(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:nf;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const l=a.get(u)||0;s=u+"-"+l,a.set(u,l+1)}}const o=ws(e,i,s);o!==void 0&&n.push(o)}return n}function Ef(e,t,n){const r=Jn(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?as(n):bs(n)),r.property==="style"){let a=typeof n=="object"?n:yf(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Tf(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Gd[r.property]||r.property:r.attribute,n]}}function yf(e,t){try{return tf(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=_s+"#cannot-parse-style-attribute",a}}function Ns(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=is(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=is(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return ea.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);pn(e)}function pn(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=_s+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tf(e){const t={};let n;for(n in e)ea.call(e,n)&&(t[xf(n)]=e[n]);return t}function xf(e){let t=e.replace(rf,Cf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Cf(e){return"-"+e.toLowerCase()}const ra={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"]},Sf={};function Af(e,t){const n=Sf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Is(e,r,a)}function Is(e,t,n){if(vf(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 Ls(e.children,t,n)}return Array.isArray(e)?Ls(e,t,n):""}function Ls(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Is(e[a],t,n);return r.join("")}function vf(e){return!!(e&&typeof e=="object")}const Os=document.createElement("i");function hn(e){const t="&"+e+";";Os.innerHTML=t;const n=Os.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ot(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const Ds={}.hasOwnProperty;function _f(e){const t={};let n=-1;for(;++n<e.length;)wf(t,e[n]);return t}function wf(e,t){let n;for(n in t){const a=(Ds.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Ds.call(a,s)||(a[s]=[]);const o=i[s];kf(a[s],Array.isArray(o)?o:o?[o]:[])}}}function kf(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}function Ps(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 Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ut=yt(/[A-Za-z]/),Xe=yt(/[\dA-Za-z]/),Nf=yt(/[#-'*+\--9=?A-Z^-~]/);function aa(e){return e!==null&&(e<32||e===127)}const ia=yt(/\d/),If=yt(/[\dA-Fa-f]/),Lf=yt(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const mn=yt(new RegExp("\\p{P}|\\p{S}","u")),gn=yt(/\s/);function yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Wt(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Xe(e.charCodeAt(n+1))&&Xe(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return ge(u)?(e.enter(n),o(u)):t(u)}function o(u){return ge(u)&&i++<a?(e.consume(u),o):(e.exit(n),t(u))}}const Of={tokenize:Df};function Df(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Pf={tokenize:Mf},Ms={tokenize:Bf};function Mf(e){const t=this,n=[];let r=0,a,i,s;return o;function o(y){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,u,l)(y)}return l(y)}function u(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&E();const _=t.events.length;let w=_,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}b(r);let M=_;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return ot(t.events,w+1,0,t.events.slice(_)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!a)return g(y);if(a.currentConstruct&&a.currentConstruct.concrete)return T(y);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ms,c,f)(y)}function c(y){return a&&E(),b(r),g(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,T(y)}function g(y){return t.containerState={},e.attempt(Ms,p,T)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),g(y)}function T(y){if(y===null){a&&E(),b(0),e.consume(y);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),h(y)}function h(y){if(y===null){m(e.exit("chunkFlow"),!0),b(0),e.consume(y);return}return ie(y)?(e.consume(y),m(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),h)}function m(y,_){const w=t.sliceStream(y);if(_&&w.push(null),y.previous=i,i&&(i.next=y),i=y,a.defineSkip(y.start),a.write(w),t.parser.lazy[y.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const M=t.events.length;let A=M,x,v;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){v=t.events[A][1].end;break}x=!0}for(b(r),S=M;S<t.events.length;)t.events[S][1].end={...v},S++;ot(t.events,A+1,0,t.events.slice(M)),t.events.length=S}}function b(y){let _=n.length;for(;_-- >y;){const w=n[_];t.containerState=w[1],w[0].exit.call(t,e)}n.length=y}function E(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Bf(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bs(e){if(e===null||Ne(e)||gn(e))return 1;if(mn(e))return 2}function sa(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 oa={name:"attention",resolveAll:Rf,tokenize:Ff};function Rf(e,t){let n=-1,r,a,i,s,o,u,l,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;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},g={...e[n][1].start};Rs(f,-u),Rs(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ze(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ze(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=Ze(l,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ze(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=Ze(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ot(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ff(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Bs(r);let i;return s;function s(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const l=e.exit("attentionSequence"),c=Bs(u),f=!c||c===2&&a||n.includes(u),g=!a||a===2&&c||n.includes(r);return l._open=!!(i===42?f:f&&(a||!g)),l._close=!!(i===42?g:g&&(c||!f)),t(u)}}function Rs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hf={name:"autolink",tokenize:$f};function $f(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 ut(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||Xe(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Xe(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function u(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||aa(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),c):Nf(p)?(e.consume(p),l):n(p)}function c(p){return Xe(p)?f(p):n(p)}function f(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||Xe(p))&&r++<63){const T=p===45?g:f;return e.consume(p),T}return n(p)}}const er={partial:!0,tokenize:Uf};function Uf(e,t,n){return r;function r(i){return ge(i)?be(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ie(i)?t(i):n(i)}}const Fs={continuation:{tokenize:zf},exit:Vf,name:"blockQuote",tokenize:qf};function qf(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function zf(e,t,n){const r=this;return a;function a(s){return ge(s)?be(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Fs,t,n)(s)}}function Vf(e){e.exit("blockQuote")}const Hs={name:"characterEscape",tokenize:Gf};function Gf(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 Lf(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const $s={name:"characterReference",tokenize:Yf};function Yf(e,t,n){const r=this;let a=0,i,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,s=Xe,c(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=If,c):(e.enter("characterReferenceValue"),i=7,s=ia,c(f))}function c(f){if(f===59&&a){const g=e.exit("characterReferenceValue");return s===Xe&&!hn(r.sliceSerialize(g))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<i?(e.consume(f),c):n(f)}}const Us={partial:!0,tokenize:jf},qs={concrete:!0,name:"codeFenced",tokenize:Wf};function Wf(e,t,n){const r=this,a={partial:!0,tokenize:w};let i=0,s=0,o;return u;function u(S){return l(S)}function l(S){const M=r.events[r.events.length-1];return i=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),ge(S)?be(e,f,"whitespace")(S):f(S))}function f(S){return S===null||ie(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Us,h,_)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):ge(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),g)}function p(S){return S===null||ie(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(S))}function T(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===o?n(S):(e.consume(S),T)}function h(S){return e.attempt(a,_,m)(S)}function m(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b}function b(S){return i>0&&ge(S)?be(e,E,"linePrefix",i+1)(S):E(S)}function E(S){return S===null||ie(S)?e.check(Us,h,_)(S):(e.enter("codeFlowValue"),y(S))}function y(S){return S===null||ie(S)?(e.exit("codeFlowValue"),E(S)):(e.consume(S),y)}function _(S){return e.exit("codeFenced"),t(S)}function w(S,M,A){let x=0;return v;function v(C){return S.enter("lineEnding"),S.consume(C),S.exit("lineEnding"),k}function k(C){return S.enter("codeFencedFence"),ge(C)?be(S,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):D(C)}function D(C){return C===o?(S.enter("codeFencedFenceSequence"),P(C)):A(C)}function P(C){return C===o?(x++,S.consume(C),P):x>=s?(S.exit("codeFencedFenceSequence"),ge(C)?be(S,N,"whitespace")(C):N(C)):A(C)}function N(C){return C===null||ie(C)?(S.exit("codeFencedFence"),M(C)):A(C)}}}function jf(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ua={name:"codeIndented",tokenize:Kf},Xf={partial:!0,tokenize:Qf};function Kf(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),be(e,i,"linePrefix",5)(l)}function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):ie(l)?e.attempt(Xf,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ie(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Qf(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ie(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):be(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ie(s)?a(s):n(s)}}const Jf={name:"codeText",previous:ep,resolve:Zf,tokenize:tp};function Zf(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 ep(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tp(e,t,n){let r=0,a,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(i=e.enter("codeTextSequence"),a=0,c(f)):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ie(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),l)}function c(f){return f===96?(e.consume(f),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",l(f))}}class np{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&&bn(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),bn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bn(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);bn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bn(this.left,n.reverse())}}}function bn(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 zs(e){const t={};let n=-1,r,a,i,s,o,u,l;const c=new np(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"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,rp(c,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(r),c.splice(a,n-a+1,o))}}return ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function rp(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let c,f,g=-1,p=n,T=0,h=0;const m=[h];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(h=g+1,m.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),g=m.length;g--;){const b=o.slice(m[g],m[g+1]),E=i.pop();u.push([E,E+b.length-1]),e.splice(E,2,b)}for(u.reverse(),g=-1;++g<u.length;)l[T+u[g][0]]=T+u[g][1],T+=u[g][1]-u[g][0]-1;return l}const ap={resolve:sp,tokenize:op},ip={partial:!0,tokenize:up};function sp(e){return zs(e),e}function op(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ie(o)?e.check(ip,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function up(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,i,"linePrefix")}function i(s){if(s===null||ie(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Vs(e,t,n,r,a,i,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(b),e.exit(i),g):b===null||b===32||b===41||aa(b)?n(b):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function g(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(o),g(b)):b===null||b===60||ie(b)?n(b):(e.consume(b),b===92?T:p)}function T(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function h(b){return!c&&(b===null||b===41||Ne(b))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(b)):c<l&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||aa(b)?n(b):(e.consume(b),b===92?m:h)}function m(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function Gs(e,t,n,r,a,i){const s=this;let o=0,u;return l;function l(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):ie(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ie(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!ge(p)),p===92?g:f)}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function Ys(e,t,n,r,a,i){let s;return o;function o(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(i),l(g))}function l(g){return g===s?(e.exit(i),u(s)):g===null?n(g):ie(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),be(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===s||g===null||ie(g)?(e.exit("chunkString"),l(g)):(e.consume(g),g===92?f:c)}function f(g){return g===s||g===92?(e.consume(g),c):c(g)}}function pt(e,t){let n;return r;function r(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ge(a)?be(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const lp={name:"definition",tokenize:dp},cp={partial:!0,tokenize:fp};function dp(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return Gs.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return a=Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ne(p)?pt(e,l)(p):l(p)}function l(p){return Vs(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(cp,f,f)(p)}function f(p){return ge(p)?be(e,g,"whitespace")(p):g(p)}function g(p){return p===null||ie(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function fp(e,t,n){return r;function r(o){return Ne(o)?pt(e,a)(o):n(o)}function a(o){return Ys(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return ge(o)?be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ie(o)?t(o):n(o)}}const pp={name:"hardBreakEscape",tokenize:hp};function hp(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ie(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const mp={name:"headingAtx",resolve:gp,tokenize:bp};function gp(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"},ot(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function bp(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ne(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):ge(c)?be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ne(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const Ep=["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"],Ws=["pre","script","style","textarea"],yp={concrete:!0,name:"htmlFlow",resolveTo:Cp,tokenize:Sp},Tp={partial:!0,tokenize:vp},xp={partial:!0,tokenize:Ap};function Cp(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 Sp(e,t,n){const r=this;let a,i,s,o,u;return l;function l(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),g):R===47?(e.consume(R),i=!0,h):R===63?(e.consume(R),a=3,r.interrupt?t:L):ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function g(R){return R===45?(e.consume(R),a=2,p):R===91?(e.consume(R),a=5,o=0,T):ut(R)?(e.consume(R),a=4,r.interrupt?t:L):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:L):n(R)}function T(R){const K="CDATA[";return R===K.charCodeAt(o++)?(e.consume(R),o===K.length?r.interrupt?t:D:T):n(R)}function h(R){return ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function m(R){if(R===null||R===47||R===62||Ne(R)){const K=R===47,ae=s.toLowerCase();return!K&&!i&&Ws.includes(ae)?(a=1,r.interrupt?t(R):D(R)):Ep.includes(s.toLowerCase())?(a=6,K?(e.consume(R),b):r.interrupt?t(R):D(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?E(R):y(R))}return R===45||Xe(R)?(e.consume(R),s+=String.fromCharCode(R),m):n(R)}function b(R){return R===62?(e.consume(R),r.interrupt?t:D):n(R)}function E(R){return ge(R)?(e.consume(R),E):v(R)}function y(R){return R===47?(e.consume(R),v):R===58||R===95||ut(R)?(e.consume(R),_):ge(R)?(e.consume(R),y):v(R)}function _(R){return R===45||R===46||R===58||R===95||Xe(R)?(e.consume(R),_):w(R)}function w(R){return R===61?(e.consume(R),S):ge(R)?(e.consume(R),w):y(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),u=R,M):ge(R)?(e.consume(R),S):A(R)}function M(R){return R===u?(e.consume(R),u=null,x):R===null||ie(R)?n(R):(e.consume(R),M)}function A(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ne(R)?w(R):(e.consume(R),A)}function x(R){return R===47||R===62||ge(R)?y(R):n(R)}function v(R){return R===62?(e.consume(R),k):n(R)}function k(R){return R===null||ie(R)?D(R):ge(R)?(e.consume(R),k):n(R)}function D(R){return R===45&&a===2?(e.consume(R),F):R===60&&a===1?(e.consume(R),U):R===62&&a===4?(e.consume(R),W):R===63&&a===3?(e.consume(R),L):R===93&&a===5?(e.consume(R),G):ie(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Tp,V,P)(R)):R===null||ie(R)?(e.exit("htmlFlowData"),P(R)):(e.consume(R),D)}function P(R){return e.check(xp,N,V)(R)}function N(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),C}function C(R){return R===null||ie(R)?P(R):(e.enter("htmlFlowData"),D(R))}function F(R){return R===45?(e.consume(R),L):D(R)}function U(R){return R===47?(e.consume(R),s="",$):D(R)}function $(R){if(R===62){const K=s.toLowerCase();return Ws.includes(K)?(e.consume(R),W):D(R)}return ut(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),$):D(R)}function G(R){return R===93?(e.consume(R),L):D(R)}function L(R){return R===62?(e.consume(R),W):R===45&&a===2?(e.consume(R),L):D(R)}function W(R){return R===null||ie(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),W)}function V(R){return e.exit("htmlFlow"),t(R)}}function Ap(e,t,n){const r=this;return a;function a(s){return ie(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function vp(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(er,t,n)}}const _p={name:"htmlText",tokenize:wp};function wp(e,t,n){const r=this;let a,i,s;return o;function o(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),l):L===47?(e.consume(L),w):L===63?(e.consume(L),y):ut(L)?(e.consume(L),A):n(L)}function l(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),i=0,T):ut(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),p):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),g):ie(L)?(s=f,U(L)):(e.consume(L),f)}function g(L){return L===45?(e.consume(L),p):f(L)}function p(L){return L===62?F(L):L===45?g(L):f(L)}function T(L){const W="CDATA[";return L===W.charCodeAt(i++)?(e.consume(L),i===W.length?h:T):n(L)}function h(L){return L===null?n(L):L===93?(e.consume(L),m):ie(L)?(s=h,U(L)):(e.consume(L),h)}function m(L){return L===93?(e.consume(L),b):h(L)}function b(L){return L===62?F(L):L===93?(e.consume(L),b):h(L)}function E(L){return L===null||L===62?F(L):ie(L)?(s=E,U(L)):(e.consume(L),E)}function y(L){return L===null?n(L):L===63?(e.consume(L),_):ie(L)?(s=y,U(L)):(e.consume(L),y)}function _(L){return L===62?F(L):y(L)}function w(L){return ut(L)?(e.consume(L),S):n(L)}function S(L){return L===45||Xe(L)?(e.consume(L),S):M(L)}function M(L){return ie(L)?(s=M,U(L)):ge(L)?(e.consume(L),M):F(L)}function A(L){return L===45||Xe(L)?(e.consume(L),A):L===47||L===62||Ne(L)?x(L):n(L)}function x(L){return L===47?(e.consume(L),F):L===58||L===95||ut(L)?(e.consume(L),v):ie(L)?(s=x,U(L)):ge(L)?(e.consume(L),x):F(L)}function v(L){return L===45||L===46||L===58||L===95||Xe(L)?(e.consume(L),v):k(L)}function k(L){return L===61?(e.consume(L),D):ie(L)?(s=k,U(L)):ge(L)?(e.consume(L),k):x(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),a=L,P):ie(L)?(s=D,U(L)):ge(L)?(e.consume(L),D):(e.consume(L),N)}function P(L){return L===a?(e.consume(L),a=void 0,C):L===null?n(L):ie(L)?(s=P,U(L)):(e.consume(L),P)}function N(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ne(L)?x(L):(e.consume(L),N)}function C(L){return L===47||L===62||Ne(L)?x(L):n(L)}function F(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function U(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return ge(L)?be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):G(L)}function G(L){return e.enter("htmlTextData"),s(L)}}const la={name:"labelEnd",resolveAll:Lp,resolveTo:Op,tokenize:Dp},kp={tokenize:Pp},Np={tokenize:Mp},Ip={tokenize:Bp};function Lp(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&&ot(e,0,e.length,n),e}function Op(e,t){let n=e.length,r=0,a,i,s,o;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(s){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"&&(s=n);const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=Ze(o,e.slice(i+1,i+r+3)),o=Ze(o,[["enter",c,t]]),o=Ze(o,sa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Ze(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Ze(o,e.slice(s+1)),o=Ze(o,[["exit",u,t]]),ot(e,i,e.length,o),e}function Dp(e,t,n){const r=this;let a=r.events.length,i,s;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 o;function o(g){return i?i._inactive?f(g):(s=r.parser.defined.includes(Yt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(kp,c,s?c:f)(g):g===91?e.attempt(Np,c,s?l:f)(g):s?c(g):f(g)}function l(g){return e.attempt(Ip,c,f)(g)}function c(g){return t(g)}function f(g){return i._balanced=!0,n(g)}}function Pp(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return Ne(f)?pt(e,i)(f):i(f)}function i(f){return f===41?c(f):Vs(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ne(f)?pt(e,u)(f):c(f)}function o(f){return n(f)}function u(f){return f===34||f===39||f===40?Ys(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Ne(f)?pt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Mp(e,t,n){const r=this;return a;function a(o){return Gs.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Bp(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 Rp={name:"labelStartImage",resolveAll:la.resolveAll,tokenize:Fp};function Fp(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Hp={name:"labelStartLink",resolveAll:la.resolveAll,tokenize:$p};function $p(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ca={name:"lineEnding",tokenize:Up};function Up(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const tr={name:"thematicBreak",tokenize:qp};function qp(e,t,n){let r=0,a;return i;function i(l){return e.enter("thematicBreak"),s(l)}function s(l){return a=l,o(l)}function o(l){return l===a?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||ie(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===a?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),ge(l)?be(e,o,"whitespace")(l):o(l))}}const ze={continuation:{tokenize:Yp},exit:jp,name:"list",tokenize:Gp},zp={partial:!0,tokenize:Xp},Vp={partial:!0,tokenize:Wp};function Gp(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,s=0;return o;function o(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ia(p)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(tr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return ia(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(er,r.interrupt?n:c,e.attempt(zp,g,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,g(p)}function f(p){return ge(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 Yp(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(er,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!ge(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vp,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Wp(e,t,n){const r=this;return be(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function jp(e){e.exit(this.containerState.type)}function Xp(e,t,n){const r=this;return be(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!ge(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const js={name:"setextUnderline",resolveTo:Kp,tokenize:Qp};function Kp(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 s={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",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Qp(e,t,n){const r=this;let a;return i;function i(l){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===a?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ge(l)?be(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||ie(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Jp={tokenize:Zp};function Zp(e){const t=this,n=e.attempt(er,r,e.attempt(this.parser.constructs.flowInitial,a,be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ap,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 eh={resolveAll:Ks()},th=Xs("string"),nh=Xs("text");function Xs(e){return{resolveAll:Ks(e==="text"?rh:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(c){return l(c)?i(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),i(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const f=a[c];let g=-1;if(f)for(;++g<f.length;){const p=f[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ks(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 rh(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,s=-1,o=0,u;for(;i--;){const l=a[i];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const ah=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:lp},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Fs},flow:{35:mp,42:tr,45:[js,tr],60:yp,61:js,95:tr,96:qs,126:qs},flowInitial:{[-2]:ua,[-1]:ua,32:ua},insideSpan:{null:[oa,eh]},string:{38:$s,92:Hs},text:{[-5]:ca,[-4]:ca,[-3]:ca,33:Rp,38:$s,42:oa,60:[Hf,_p],91:Hp,92:[pp,Hs],93:la,95:oa,96:Jf}},Symbol.toStringTag,{value:"Module"}));function ih(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 s=[],o=[];const u={attempt:M(w),check:M(S),consume:E,enter:y,exit:_,interrupt:M(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:T,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:f};let c=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function f(k){return s=Ze(s,k),m(),s[s.length-1]!==null?[]:(A(t,0),l.events=sa(i,l.events,l),l.events)}function g(k,D){return oh(p(k),D)}function p(k){return sh(s,k)}function T(){const{_bufferIndex:k,_index:D,line:P,column:N,offset:C}=r;return{_bufferIndex:k,_index:D,line:P,column:N,offset:C}}function h(k){a[k.line]=k.column,v()}function m(){let k;for(;r._index<s.length;){const D=s[r._index];if(typeof D=="string")for(k=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===k&&r._bufferIndex<D.length;)b(D.charCodeAt(r._bufferIndex));else b(D)}}function b(k){c=c(k)}function E(k){ie(k)?(r.line++,r.column=1,r.offset+=k===-3?2:1,v()):k!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=k}function y(k,D){const P=D||{};return P.type=k,P.start=T(),l.events.push(["enter",P,l]),o.push(P),P}function _(k){const D=o.pop();return D.end=T(),l.events.push(["exit",D,l]),D}function w(k,D){A(k,D.from)}function S(k,D){D.restore()}function M(k,D){return P;function P(N,C,F){let U,$,G,L;return Array.isArray(N)?V(N):"tokenize"in N?V([N]):W(N);function W(ne){return X;function X(re){const se=re!==null&&ne[re],he=re!==null&&ne.null,_e=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(he)?he:he?[he]:[]];return V(_e)(re)}}function V(ne){return U=ne,$=0,ne.length===0?F:R(ne[$])}function R(ne){return X;function X(re){return L=x(),G=ne,ne.partial||(l.currentConstruct=ne),ne.name&&l.parser.constructs.disable.null.includes(ne.name)?ae():ne.tokenize.call(D?Object.assign(Object.create(l),D):l,u,K,ae)(re)}}function K(ne){return k(G,L),C}function ae(ne){return L.restore(),++$<U.length?R(U[$]):F}}}function A(k,D){k.resolveAll&&!i.includes(k)&&i.push(k),k.resolve&&ot(l.events,D,l.events.length-D,k.resolve(l.events.slice(D),l)),k.resolveTo&&(l.events=k.resolveTo(l.events,l))}function x(){const k=T(),D=l.previous,P=l.currentConstruct,N=l.events.length,C=Array.from(o);return{from:N,restore:F};function F(){r=k,l.previous=D,l.currentConstruct=P,l.events.length=N,o=C,v()}}function v(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function sh(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function oh(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
44
44
|
`;break}case-3:{s=`\r
|
|
45
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function uh(e){const r={constructs:_f([ah,...(e||{}).extensions||[]]),content:a(Of),defined:[],document:a(Pf),flow:a(Jp),lazy:{},string:a(th),text:a(nh)};return r;function a(i){return s;function s(o){return ih(r,i,o)}}}function lh(e){for(;!zs(e););return e}const Qs=/[\0\t\n\r]/g;function ch(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const u=[];let l,c,f,g,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Qs.lastIndex=f,l=Qs.exec(i),g=l&&l.index!==void 0?l.index:i.length,p=i.charCodeAt(g),!l){t=i.slice(f);break}if(p===10&&f===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<g&&(u.push(i.slice(f,g)),e+=g-f),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=g+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const dh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fh(e){return e.replace(dh,ph)}function ph(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Ps(n.slice(i?2:1),i?16:10)}return hn(n)||e}const Js={}.hasOwnProperty;function hh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mh(n)(lh(uh(n).document().write(ch()(e,t,!0))))}function mh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(vr),autolinkProtocol:x,autolinkEmail:x,atxHeading:i(Ar),blockQuote:i(he),characterEscape:x,characterReference:x,codeFenced:i(_e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(_e,s),codeText:i(Ge,s),codeTextData:x,data:x,codeFlowValue:x,definition:i(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Sr),hardBreakEscape:i(Bn),hardBreakTrailing:i(Bn),htmlFlow:i(tt,s),htmlFlowData:x,htmlText:i(tt,s),htmlTextData:x,image:i(Rn),label:s,link:i(vr),listItem:i(ui),listItemValue:g,listOrdered:i(_r,f),listUnordered:i(_r),paragraph:i(wr),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ar),strong:i(nn),thematicBreak:i(li)},exit:{atxHeading:u(),atxHeadingSequence:w,autolink:u(),autolinkEmail:se,autolinkProtocol:re,blockQuote:u(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ne,characterReference:X,codeFenced:u(m),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:T,codeFlowValue:v,codeIndented:u(b),codeText:u(C),codeTextData:v,data:v,definition:u(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:y,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(P),htmlFlowData:v,htmlText:u(N),htmlTextData:v,image:u(U),label:G,labelText:$,lineEnding:k,link:u(F),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:K,resourceDestinationString:L,resourceTitleString:W,resource:V,setextHeading:u(A),setextHeadingLineSequence:M,setextHeadingText:S,strong:u(),thematicBreak:u()}};Zs(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let te={type:"root",children:[]};const le={stack:[te],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:n},fe=[];let ye=-1;for(;++ye<j.length;)if(j[ye][1].type==="listOrdered"||j[ye][1].type==="listUnordered")if(j[ye][0]==="enter")fe.push(ye);else{const Ke=fe.pop();ye=a(j,Ke,ye)}for(ye=-1;++ye<j.length;){const Ke=t[j[ye][0]];Js.call(Ke,j[ye][1].type)&&Ke[j[ye][1].type].call(Object.assign({sliceSerialize:j[ye][2].sliceSerialize},le),j[ye][1])}if(le.tokenStack.length>0){const Ke=le.tokenStack[le.tokenStack.length-1];(Ke[1]||eo).call(le,void 0,Ke[0])}for(te.position={start:Tt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Tt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)te=t.transforms[ye](te)||te;return te}function a(j,te,le){let fe=te-1,ye=-1,Ke=!1,Qe,rt,Mt,Bt;for(;++fe<=le;){const $e=j[fe];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?ye++:ye--,Bt=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(Qe&&!Bt&&!ye&&!Mt&&(Mt=fe),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!ye&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||ye===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(Qe){let dt=fe;for(rt=void 0;dt--;){const at=j[dt];if(at[1].type==="lineEnding"||at[1].type==="lineEndingBlank"){if(at[0]==="exit")continue;rt&&(j[rt][1].type="lineEndingBlank",Ke=!0),at[1].type="lineEnding",rt=dt}else if(!(at[1].type==="linePrefix"||at[1].type==="blockQuotePrefix"||at[1].type==="blockQuotePrefixWhitespace"||at[1].type==="blockQuoteMarker"||at[1].type==="listItemIndent"))break}Mt&&(!rt||Mt<rt)&&(Qe._spread=!0),Qe.end=Object.assign({},rt?j[rt][1].start:$e[1].end),j.splice(rt||fe,0,["exit",Qe,$e[2]]),fe++,le++}if($e[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0};Qe=dt,j.splice(fe,0,["enter",dt,$e[2]]),fe++,le++,Mt=void 0,Bt=!0}}}return j[te][1]._spread=Ke,le}function i(j,te){return le;function le(fe){o.call(this,j(fe),fe),te&&te.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,te,le){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([te,le||void 0]),j.position={start:Tt(te.start),end:void 0}}function u(j){return te;function te(le){j&&j.call(this,le),l.call(this,le)}}function l(j,te){const le=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==j.type&&(te?te.call(this,j,fe[0]):(fe[1]||eo).call(this,j,fe[0]));else throw new Error("Cannot close `"+j.type+"` ("+fn({start:j.start,end:j.end})+"): it’s not open");le.position.end=Tt(j.end)}function c(){return Af(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(j){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),te=this.stack[this.stack.length-1];te.lang=j}function T(){const j=this.resume(),te=this.stack[this.stack.length-1];te.meta=j}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/(\r?\n|\r)$/g,"")}function E(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function _(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function w(j){const te=this.stack[this.stack.length-1];if(!te.depth){const le=this.sliceSerialize(j).length;te.depth=le}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(j){const le=this.stack[this.stack.length-1].children;let fe=le[le.length-1];(!fe||fe.type!=="text")&&(fe=Fn(),fe.position={start:Tt(j.start),end:void 0},le.push(fe)),this.stack.push(fe)}function v(j){const te=this.stack.pop();te.value+=this.sliceSerialize(j),te.position.end=Tt(j.end)}function k(j){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=te.children[te.children.length-1];le.position.end=Tt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(x.call(this,j),v.call(this,j))}function D(){this.data.atHardBreak=!0}function P(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function N(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function C(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function $(j){const te=this.sliceSerialize(j),le=this.stack[this.stack.length-2];le.label=fh(te),le.identifier=Yt(te).toLowerCase()}function G(){const j=this.stack[this.stack.length-1],te=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const fe=j.children;le.children=fe}else le.alt=te}function L(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function W(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function V(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ae(j){this.data.characterReferenceType=j.type}function ne(j){const te=this.sliceSerialize(j),le=this.data.characterReferenceType;let fe;le?(fe=Ps(te,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=hn(te);const ye=this.stack[this.stack.length-1];ye.value+=fe}function X(j){const te=this.stack.pop();te.position.end=Tt(j.end)}function re(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(j)}function se(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(j)}function he(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function vt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sr(){return{type:"emphasis",children:[]}}function Ar(){return{type:"heading",depth:0,children:[]}}function Bn(){return{type:"break"}}function tt(){return{type:"html",value:""}}function Rn(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function _r(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ui(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function nn(){return{type:"strong",children:[]}}function Fn(){return{type:"text",value:""}}function li(){return{type:"thematicBreak"}}}function Tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Zs(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Zs(e,r):gh(e,r)}}function gh(e,t){let n;for(n in t)if(Js.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 eo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is still open")}function bh(e){const t=this;t.parser=n;function n(r){return hh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eh(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 yh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
45
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function uh(e){const r={constructs:_f([ah,...(e||{}).extensions||[]]),content:a(Of),defined:[],document:a(Pf),flow:a(Jp),lazy:{},string:a(th),text:a(nh)};return r;function a(i){return s;function s(o){return ih(r,i,o)}}}function lh(e){for(;!zs(e););return e}const Qs=/[\0\t\n\r]/g;function ch(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const u=[];let l,c,f,g,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Qs.lastIndex=f,l=Qs.exec(i),g=l&&l.index!==void 0?l.index:i.length,p=i.charCodeAt(g),!l){t=i.slice(f);break}if(p===10&&f===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<g&&(u.push(i.slice(f,g)),e+=g-f),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=g+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const dh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fh(e){return e.replace(dh,ph)}function ph(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Ps(n.slice(i?2:1),i?16:10)}return hn(n)||e}const Js={}.hasOwnProperty;function hh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mh(n)(lh(uh(n).document().write(ch()(e,t,!0))))}function mh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(vr),autolinkProtocol:x,autolinkEmail:x,atxHeading:i(Ar),blockQuote:i(he),characterEscape:x,characterReference:x,codeFenced:i(_e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(_e,s),codeText:i(Ge,s),codeTextData:x,data:x,codeFlowValue:x,definition:i(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Sr),hardBreakEscape:i(Bn),hardBreakTrailing:i(Bn),htmlFlow:i(tt,s),htmlFlowData:x,htmlText:i(tt,s),htmlTextData:x,image:i(Rn),label:s,link:i(vr),listItem:i(ui),listItemValue:g,listOrdered:i(_r,f),listUnordered:i(_r),paragraph:i(wr),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ar),strong:i(nn),thematicBreak:i(li)},exit:{atxHeading:u(),atxHeadingSequence:w,autolink:u(),autolinkEmail:se,autolinkProtocol:re,blockQuote:u(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ne,characterReference:X,codeFenced:u(m),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:T,codeFlowValue:v,codeIndented:u(b),codeText:u(C),codeTextData:v,data:v,definition:u(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:y,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(P),htmlFlowData:v,htmlText:u(N),htmlTextData:v,image:u(U),label:G,labelText:$,lineEnding:k,link:u(F),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:K,resourceDestinationString:L,resourceTitleString:W,resource:V,setextHeading:u(A),setextHeadingLineSequence:M,setextHeadingText:S,strong:u(),thematicBreak:u()}};Zs(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let te={type:"root",children:[]};const le={stack:[te],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:n},fe=[];let ye=-1;for(;++ye<j.length;)if(j[ye][1].type==="listOrdered"||j[ye][1].type==="listUnordered")if(j[ye][0]==="enter")fe.push(ye);else{const Ke=fe.pop();ye=a(j,Ke,ye)}for(ye=-1;++ye<j.length;){const Ke=t[j[ye][0]];Js.call(Ke,j[ye][1].type)&&Ke[j[ye][1].type].call(Object.assign({sliceSerialize:j[ye][2].sliceSerialize},le),j[ye][1])}if(le.tokenStack.length>0){const Ke=le.tokenStack[le.tokenStack.length-1];(Ke[1]||eo).call(le,void 0,Ke[0])}for(te.position={start:Tt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Tt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)te=t.transforms[ye](te)||te;return te}function a(j,te,le){let fe=te-1,ye=-1,Ke=!1,Qe,rt,Mt,Bt;for(;++fe<=le;){const Ue=j[fe];switch(Ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ue[0]==="enter"?ye++:ye--,Bt=void 0;break}case"lineEndingBlank":{Ue[0]==="enter"&&(Qe&&!Bt&&!ye&&!Mt&&(Mt=fe),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!ye&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||ye===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(Qe){let dt=fe;for(rt=void 0;dt--;){const at=j[dt];if(at[1].type==="lineEnding"||at[1].type==="lineEndingBlank"){if(at[0]==="exit")continue;rt&&(j[rt][1].type="lineEndingBlank",Ke=!0),at[1].type="lineEnding",rt=dt}else if(!(at[1].type==="linePrefix"||at[1].type==="blockQuotePrefix"||at[1].type==="blockQuotePrefixWhitespace"||at[1].type==="blockQuoteMarker"||at[1].type==="listItemIndent"))break}Mt&&(!rt||Mt<rt)&&(Qe._spread=!0),Qe.end=Object.assign({},rt?j[rt][1].start:Ue[1].end),j.splice(rt||fe,0,["exit",Qe,Ue[2]]),fe++,le++}if(Ue[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0};Qe=dt,j.splice(fe,0,["enter",dt,Ue[2]]),fe++,le++,Mt=void 0,Bt=!0}}}return j[te][1]._spread=Ke,le}function i(j,te){return le;function le(fe){o.call(this,j(fe),fe),te&&te.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,te,le){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([te,le||void 0]),j.position={start:Tt(te.start),end:void 0}}function u(j){return te;function te(le){j&&j.call(this,le),l.call(this,le)}}function l(j,te){const le=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==j.type&&(te?te.call(this,j,fe[0]):(fe[1]||eo).call(this,j,fe[0]));else throw new Error("Cannot close `"+j.type+"` ("+fn({start:j.start,end:j.end})+"): it’s not open");le.position.end=Tt(j.end)}function c(){return Af(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(j){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),te=this.stack[this.stack.length-1];te.lang=j}function T(){const j=this.resume(),te=this.stack[this.stack.length-1];te.meta=j}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/(\r?\n|\r)$/g,"")}function E(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function _(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function w(j){const te=this.stack[this.stack.length-1];if(!te.depth){const le=this.sliceSerialize(j).length;te.depth=le}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(j){const le=this.stack[this.stack.length-1].children;let fe=le[le.length-1];(!fe||fe.type!=="text")&&(fe=Fn(),fe.position={start:Tt(j.start),end:void 0},le.push(fe)),this.stack.push(fe)}function v(j){const te=this.stack.pop();te.value+=this.sliceSerialize(j),te.position.end=Tt(j.end)}function k(j){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=te.children[te.children.length-1];le.position.end=Tt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(x.call(this,j),v.call(this,j))}function D(){this.data.atHardBreak=!0}function P(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function N(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function C(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function $(j){const te=this.sliceSerialize(j),le=this.stack[this.stack.length-2];le.label=fh(te),le.identifier=Yt(te).toLowerCase()}function G(){const j=this.stack[this.stack.length-1],te=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const fe=j.children;le.children=fe}else le.alt=te}function L(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function W(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function V(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ae(j){this.data.characterReferenceType=j.type}function ne(j){const te=this.sliceSerialize(j),le=this.data.characterReferenceType;let fe;le?(fe=Ps(te,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=hn(te);const ye=this.stack[this.stack.length-1];ye.value+=fe}function X(j){const te=this.stack.pop();te.position.end=Tt(j.end)}function re(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(j)}function se(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(j)}function he(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function vt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sr(){return{type:"emphasis",children:[]}}function Ar(){return{type:"heading",depth:0,children:[]}}function Bn(){return{type:"break"}}function tt(){return{type:"html",value:""}}function Rn(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function _r(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ui(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function nn(){return{type:"strong",children:[]}}function Fn(){return{type:"text",value:""}}function li(){return{type:"thematicBreak"}}}function Tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Zs(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Zs(e,r):gh(e,r)}}function gh(e,t){let n;for(n in t)if(Js.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 eo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is still open")}function bh(e){const t=this;t.parser=n;function n(r){return hh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eh(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 yh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
46
46
|
`}]}function Th(e,t){const n=t.value?t.value+`
|
|
47
47
|
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function xh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ch(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sh(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Wt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Ah(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vh(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function to(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function _h(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);const a={src:Wt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function wh(e,t){const n={src:Wt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kh(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return to(e,t);const a={href:Wt(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Ih(e,t){const n={href:Wt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lh(e,t,n){const r=e.all(t),a=n?Oh(n):no(t),i={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
48
48
|
`}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const u=r[r.length-1];u&&(a||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
@@ -52,8 +52,8 @@ ${(e||"").replace(/\r\n/g,`
|
|
|
52
52
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
53
53
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
54
54
|
`}),n}function bo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Eo(e,t){const n=s0(e,t),r=n.one(e,void 0),a=Kh(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
55
|
-
`},a),i}function d0(e,t){return e&&"run"in e?async function(n,r){const a=Eo(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Eo(n,{file:r,...e||t})}}function yo(e){if(e)throw e}var ga,To;function f0(){if(To)return ga;To=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},i=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!f)return!1;var g;for(g in l);return typeof g>"u"||e.call(l,g)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return ga=function u(){var l,c,f,g,p,T,h=arguments[0],m=1,b=arguments.length,E=!1;for(typeof h=="boolean"&&(E=h,h=arguments[1]||{},m=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});m<b;++m)if(l=arguments[m],l!=null)for(c in l)f=o(h,c),g=o(l,c),h!==g&&(E&&g&&(i(g)||(p=a(g)))?(p?(p=!1,T=f&&a(f)?f:[]):T=f&&i(f)?f:{},s(h,{name:c,newValue:u(E,T,g)})):typeof g<"u"&&s(h,{name:c,newValue:g}));return h},ga}var p0=f0();const ba=Qr(p0);function Ea(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function h0(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(u,...l){const c=e[++i];let f=-1;if(u){s(u);return}for(;++f<a.length;)(l[f]===null||l[f]===void 0)&&(l[f]=a[f]);a=l,c?m0(c,o)(...l):s(null,...l)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function m0(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(a);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return a(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,a):u instanceof Error?a(u):i(u))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const lt={basename:g0,dirname:b0,extname:E0,join:y0,sep:"/"};function g0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function b0(e){if(Tn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function E0(e){Tn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function y0(...e){let t=-1,n;for(;++t<e.length;)Tn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":T0(n)}function T0(e){Tn(e);const t=e.codePointAt(0)===47;let n=x0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function x0(e,t){let n="",r=0,a=-1,i=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function Tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const C0={cwd:S0};function S0(){return"/"}function ya(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function A0(e){if(typeof e=="string")e=new URL(e);else if(!ya(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return v0(e)}function v0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Ta=["history","path","basename","stem","extname","dirname"];class xo{constructor(t){let n;t?ya(t)?n={path:t}:typeof t=="string"||_0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":C0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ta.length;){const i=Ta[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Ta.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){Ca(t,"basename"),xa(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){Co(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(xa(t,"extname"),Co(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ya(t)&&(t=A0(t)),Ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){Ca(t,"stem"),xa(t,"stem"),this.path=lt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Be(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function xa(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function Ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Co(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w0=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},k0={}.hasOwnProperty;class Sa extends w0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=h0()}copy(){const t=new Sa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ba(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_a("data",this.frozen),this.namespace[t]=n,this):k0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_a("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ur(t),r=this.parser||this.Parser;return Aa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Aa("process",this.parser||this.Parser),va("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=ur(t),u=r.parse(o);r.run(u,o,function(c,f,g){if(c||!f||!g)return l(c);const p=f,T=r.stringify(p,g);L0(T)?g.value=T:g.result=T,l(c,g)});function l(c,f){c||!f?s(c):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Aa("processSync",this.parser||this.Parser),va("processSync",this.compiler||this.Compiler),this.process(t,a),Ao("processSync","process",n),r;function a(i,s){n=!0,yo(i),r=s}}run(t,n,r){So(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const u=ur(n);a.run(t,u,l);function l(c,f,g){const p=f||t;c?o(c):s?s(p):r(void 0,p,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Ao("runSync","run",r),a;function i(s,o){yo(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=ur(n),a=this.compiler||this.Compiler;return va("stringify",a),So(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(_a("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...f]=l;u(c,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(a.settings=ba(!0,a.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const f=l[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let f=-1,g=-1;for(;++f<r.length;)if(r[f][0]===l){g=f;break}if(g===-1)r.push([l,...c]);else if(c.length>0){let[p,...T]=c;const h=r[g][1];Ea(h)&&Ea(p)&&(p=ba(!0,h,p)),r[g]=[l,p,...T]}}}}const N0=new Sa().freeze();function Aa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function va(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _a(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function So(e){if(!Ea(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ao(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ur(e){return I0(e)?e:new xo(e)}function I0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L0(e){return typeof e=="string"||O0(e)}function O0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const D0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vo=[],_o={allowDangerousHtml:!0},P0=/^(https?|ircs?|mailto|xmpp)$/i,M0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wa(e){const t=B0(e),n=R0(e);return F0(t.runSync(t.parse(n),n),e)}function B0(e){const t=e.rehypePlugins||vo,n=e.remarkPlugins||vo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._o}:_o;return N0().use(bh).use(n).use(d0,r).use(t)}function R0(e){const t=e.children||"",n=new xo;return typeof t=="string"&&(n.value=t),n}function F0(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||H0;for(const c of M0)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+D0+c.id,void 0);return or(e,l),of(e,{Fragment:q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function l(c,f,g){if(c.type==="raw"&&g&&typeof f=="number")return s?g.children.splice(f,1):g.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in ra)if(Object.hasOwn(ra,p)&&Object.hasOwn(c.properties,p)){const T=c.properties[p],h=ra[p];(h===null||h.includes(c.tagName))&&(c.properties[p]=u(String(T||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,g)),p&&g&&typeof f=="number")return o&&c.children?g.children.splice(f,1,...c.children):g.children.splice(f,1),f}}}function H0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||P0.test(e.slice(0,t))?e:""}const wo=/[#.]/g;function $0(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){wo.lastIndex=a;const o=wo.exec(n),u=n.slice(a,o?o.index:n.length);u&&(i?i==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function ko(e,t,n){const r=n?V0(n):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=$0(i,t);const l=u.tagName.toLowerCase(),c=r?r.get(l):void 0;if(u.tagName=c||l,U0(s))o.unshift(s);else for(const[f,g]of Object.entries(s))q0(e,u.properties,f,g)}for(const l of o)ka(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function U0(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function q0(e,t,n,r){const a=Jn(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=gs(r):a.commaSeparated?i=rs(r):a.commaOrSpaceSeparated?i=gs(rs(r).join(" ")):i=No(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?z0(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(No(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function ka(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ka(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ka(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function No(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||un(n)===un(t)))return!0}return n}function z0(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function V0(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const G0=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Y0=ko(ln,"div"),W0=ko(Et,"g",G0);function j0(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=Io(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],u=Io(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function Io(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
56
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Lt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Lo={}.hasOwnProperty,X0=Object.prototype;function K0(e,t){const n=t||{};return Na({file:n.file||void 0,location:!1,schema:n.space==="svg"?Et:ln,verbose:n.verbose||!1},e)}function Na(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},lr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Oo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=j0(i),o=s.toPoint(0),u=s.toPoint(i.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},lr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},lr(e,r,n),n}default:return n=Q0(e,t),n}}function Oo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Na(e,t[n]);r.push(a)}return r}function Q0(e,t){const n=e.schema;e.schema=t.namespaceURI===Lt.svg?Et:ln;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;Lo.call(X0,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?W0:Y0)(t.tagName,a,Oo(e,t.childNodes));if(lr(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&Xt(u.startTag),c=u&&u.endTag&&Xt(u.endTag),f=Na(e,o.content);l&&c&&e.file&&(f.position={start:l.end,end:c.start}),s.content=f}return e.schema=n,s}function lr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=J0(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function J0(e,t,n){const r=Xt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)Lo.call(n.attrs,s)&&(i[Jn(e.schema,s).property]=Xt(n.attrs[s]));n.startTag;const o=Xt(n.startTag),u=n.endTag?Xt(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=i,t.data={position:l}}}return r}function Xt(e){const t=Do({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Do({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Do(e){return e.line&&e.column?e:void 0}const Po={}.hasOwnProperty;function Mo(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Po.call(a,e)){const u=String(a[e]);s=Po.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Z0={},em={}.hasOwnProperty,Bo=Mo("type",{handlers:{root:nm,element:om,text:im,comment:sm,doctype:am}});function tm(e,t){const r=(t||Z0).space;return Bo(e,r==="svg"?Et:ln)}function nm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function rm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function am(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Kt(e,t),t}function im(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Kt(e,t),t}function sm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Kt(e,t),t}function om(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Et);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&em.call(e.properties,i)){const u=um(r,i,e.properties[i]);u&&a.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Lt[s],childNodes:[],parentNode:null};return o.childNodes=Ia(e.children,o,r),Kt(e,o),e.tagName==="template"&&e.content&&(o.content=rm(e.content,r)),o}function um(e,t,n){const r=Jn(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?as(n):bs(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Lt[r.space]}return a}function Ia(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Bo(e[r],n);i.parentNode=t,a.push(i)}return a}function Kt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cm=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ae="�";var O;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(O||(O={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ro(e){return e>=55296&&e<=57343}function dm(e){return e>=56320&&e<=57343}function fm(e,t){return(e-55296)*1024+9216+t}function Fo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ho(e){return e>=64976&&e<=65007||cm.has(e)}var Y;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Y||(Y={}));const pm=65536;class hm{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pm,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dm(n))return this.pos++,this._addGap(),fm(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,O.EOF;return this._err(Y.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,O.EOF;const r=this.html.charCodeAt(n);return r===O.CARRIAGE_RETURN?O.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,O.EOF;let t=this.html.charCodeAt(this.pos);return t===O.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,O.LINE_FEED):t===O.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ro(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===O.LINE_FEED||t===O.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Fo(t)?this._err(Y.controlCharacterInInputStream):Ho(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var pe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(pe||(pe={}));function $o(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const mm=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),gm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function bm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gm.get(e))!==null&&t!==void 0?t:e}var Pe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Pe||(Pe={}));const Em=32;var xt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xt||(xt={}));function La(e){return e>=Pe.ZERO&&e<=Pe.NINE}function ym(e){return e>=Pe.UPPER_A&&e<=Pe.UPPER_F||e>=Pe.LOWER_A&&e<=Pe.LOWER_F}function Tm(e){return e>=Pe.UPPER_A&&e<=Pe.UPPER_Z||e>=Pe.LOWER_A&&e<=Pe.LOWER_Z||La(e)}function xm(e){return e===Pe.EQUALS||Tm(e)}var Me;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Me||(Me={}));var ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ht||(ht={}));class Cm{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ht.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Pe.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Em)===Pe.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(La(a)||ym(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(La(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Pe.SEMI)this.consumed+=1;else if(this.decodeMode===ht.Strict)return 0;return this.emitCodePoint(bm(this.result),this.consumed),this.errors&&(t!==Pe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Sm(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===ht.Attribute&&(i===0||xm(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14,i!==0){if(s===Pe.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&xt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~xt.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Me.NamedEntity:return this.result!==0&&(this.decodeMode!==ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function Sm(e,t,n,r){const a=(t&xt.BRANCH_LENGTH)>>7,i=t&xt.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=a?-1:e[n+u]-1}let s=n,o=s+a-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+a]}return-1}var Q;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Q||(Q={}));var Ot;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ot||(Ot={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z||(z={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const Am=new Map([[z.A,d.A],[z.ADDRESS,d.ADDRESS],[z.ANNOTATION_XML,d.ANNOTATION_XML],[z.APPLET,d.APPLET],[z.AREA,d.AREA],[z.ARTICLE,d.ARTICLE],[z.ASIDE,d.ASIDE],[z.B,d.B],[z.BASE,d.BASE],[z.BASEFONT,d.BASEFONT],[z.BGSOUND,d.BGSOUND],[z.BIG,d.BIG],[z.BLOCKQUOTE,d.BLOCKQUOTE],[z.BODY,d.BODY],[z.BR,d.BR],[z.BUTTON,d.BUTTON],[z.CAPTION,d.CAPTION],[z.CENTER,d.CENTER],[z.CODE,d.CODE],[z.COL,d.COL],[z.COLGROUP,d.COLGROUP],[z.DD,d.DD],[z.DESC,d.DESC],[z.DETAILS,d.DETAILS],[z.DIALOG,d.DIALOG],[z.DIR,d.DIR],[z.DIV,d.DIV],[z.DL,d.DL],[z.DT,d.DT],[z.EM,d.EM],[z.EMBED,d.EMBED],[z.FIELDSET,d.FIELDSET],[z.FIGCAPTION,d.FIGCAPTION],[z.FIGURE,d.FIGURE],[z.FONT,d.FONT],[z.FOOTER,d.FOOTER],[z.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[z.FORM,d.FORM],[z.FRAME,d.FRAME],[z.FRAMESET,d.FRAMESET],[z.H1,d.H1],[z.H2,d.H2],[z.H3,d.H3],[z.H4,d.H4],[z.H5,d.H5],[z.H6,d.H6],[z.HEAD,d.HEAD],[z.HEADER,d.HEADER],[z.HGROUP,d.HGROUP],[z.HR,d.HR],[z.HTML,d.HTML],[z.I,d.I],[z.IMG,d.IMG],[z.IMAGE,d.IMAGE],[z.INPUT,d.INPUT],[z.IFRAME,d.IFRAME],[z.KEYGEN,d.KEYGEN],[z.LABEL,d.LABEL],[z.LI,d.LI],[z.LINK,d.LINK],[z.LISTING,d.LISTING],[z.MAIN,d.MAIN],[z.MALIGNMARK,d.MALIGNMARK],[z.MARQUEE,d.MARQUEE],[z.MATH,d.MATH],[z.MENU,d.MENU],[z.META,d.META],[z.MGLYPH,d.MGLYPH],[z.MI,d.MI],[z.MO,d.MO],[z.MN,d.MN],[z.MS,d.MS],[z.MTEXT,d.MTEXT],[z.NAV,d.NAV],[z.NOBR,d.NOBR],[z.NOFRAMES,d.NOFRAMES],[z.NOEMBED,d.NOEMBED],[z.NOSCRIPT,d.NOSCRIPT],[z.OBJECT,d.OBJECT],[z.OL,d.OL],[z.OPTGROUP,d.OPTGROUP],[z.OPTION,d.OPTION],[z.P,d.P],[z.PARAM,d.PARAM],[z.PLAINTEXT,d.PLAINTEXT],[z.PRE,d.PRE],[z.RB,d.RB],[z.RP,d.RP],[z.RT,d.RT],[z.RTC,d.RTC],[z.RUBY,d.RUBY],[z.S,d.S],[z.SCRIPT,d.SCRIPT],[z.SEARCH,d.SEARCH],[z.SECTION,d.SECTION],[z.SELECT,d.SELECT],[z.SOURCE,d.SOURCE],[z.SMALL,d.SMALL],[z.SPAN,d.SPAN],[z.STRIKE,d.STRIKE],[z.STRONG,d.STRONG],[z.STYLE,d.STYLE],[z.SUB,d.SUB],[z.SUMMARY,d.SUMMARY],[z.SUP,d.SUP],[z.TABLE,d.TABLE],[z.TBODY,d.TBODY],[z.TEMPLATE,d.TEMPLATE],[z.TEXTAREA,d.TEXTAREA],[z.TFOOT,d.TFOOT],[z.TD,d.TD],[z.TH,d.TH],[z.THEAD,d.THEAD],[z.TITLE,d.TITLE],[z.TR,d.TR],[z.TRACK,d.TRACK],[z.TT,d.TT],[z.U,d.U],[z.UL,d.UL],[z.SVG,d.SVG],[z.VAR,d.VAR],[z.WBR,d.WBR],[z.XMP,d.XMP]]);function Qt(e){var t;return(t=Am.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const J=d,vm={[Q.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Q.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Q.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},Oa=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const Ie={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function _m(e){return e>=O.DIGIT_0&&e<=O.DIGIT_9}function xn(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_Z}function wm(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_Z}function Ct(e){return wm(e)||xn(e)}function Uo(e){return Ct(e)||_m(e)}function cr(e){return e+32}function qo(e){return e===O.SPACE||e===O.LINE_FEED||e===O.TABULATION||e===O.FORM_FEED}function zo(e){return qo(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN}function km(e){return e===O.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:Ro(e)?Y.surrogateCharacterReference:Ho(e)?Y.noncharacterCharacterReference:Fo(e)||e===O.CARRIAGE_RETURN?Y.controlCharacterReference:null}class Nm{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new hm(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Cm(mm,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=km(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:pe.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:pe.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:pe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:pe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if($o(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Y.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Qt(t.tagName),t.type===pe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case pe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case pe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case pe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:pe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=qo(t)?pe.WHITESPACE_CHARACTER:t===O.NULL?pe.NULL_CHARACTER:pe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(pe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ht.Attribute:ht.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case O.AMPERSAND:{this._startCharacterReference();break}case O.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ct(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case O.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case O.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ct(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.tagName+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateRcdataLessThanSign(t){t===O.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ct(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case O.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case O.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===O.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ct(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case O.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case O.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ct(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===O.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ct(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ct(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&zo(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===O.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&zo(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._err(Y.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=Ae;break}default:this.currentAttr.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case O.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:case O.EQUALS_SIGN:case O.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case O.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=Ae;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ve.DASH_DASH,!0)?(this._createCommentToken(Ve.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(Ve.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ve.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(Ve.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(Y.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case O.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=Ae;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case O.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case O.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==O.GREATER_THAN_SIGN&&t!==O.EOF&&this._err(Y.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case O.HYPHEN_MINUS:{n.data+="-";break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(xn(t))this._createDoctypeToken(String.fromCharCode(cr(t))),this.state=B.DOCTYPE_NAME;else switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(Ae),this.state=B.DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.name+=Ae;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ve.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ve.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Y.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.NULL:{this._err(Y.unexpectedNullCharacter);break}case O.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case O.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case O.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===O.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA;break}case O.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(O.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Uo(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Uo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===O.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vo=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Go=new Set([...Vo,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),dr=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),Im=new Set([...dr,d.OL,d.UL]),Lm=new Set([...dr,d.BUTTON]),Yo=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Wo=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),Om=new Set([d.TR,d.TEMPLATE,d.HTML]),Dm=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),Pm=new Set([d.TABLE,d.TEMPLATE,d.HTML]),Mm=new Set([d.TD,d.TH]);class Bm{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Q.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Oa,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Mm,Q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Pm,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Dm,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(Om,Q.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Q.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Q.SVG:{if(Wo.has(a))return!1;break}case Q.MATHML:{if(Yo.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,dr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Im)}hasInButtonScope(t){return this.hasInDynamicScope(t,Lm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Q.HTML:{if(Oa.has(n))return!0;if(dr.has(n))return!1;break}case Q.SVG:{if(Wo.has(n))return!1;break}case Q.MATHML:{if(Yo.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Go.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Go.has(this.currentTagId);)this.pop()}}const Da=3;var ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ct||(ct={}));const jo={type:ct.Marker};class Rm{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===ct.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Da)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Da)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>a.get(u.name)===u.value)&&(i+=1,i>=Da&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(jo)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ct.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(jo);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ct.Element&&n.element===t)}}const St={createDocument(){return{nodeName:"#document",mode:et.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};St.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(St.isTextNode(n)){n.value+=t;return}}St.appendChild(e,St.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&St.isTextNode(r)?r.value+=t:St.insertBefore(e,St.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Xo="html",Fm="about:legacy-compat",Hm="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ko=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],$m=[...Ko,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Um=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Qo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],qm=[...Qo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jo(e,t){return t.some(n=>e.startsWith(n))}function zm(e){return e.name===Xo&&e.publicId===null&&(e.systemId===null||e.systemId===Fm)}function Vm(e){if(e.name!==Xo)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Hm)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Um.has(n))return et.QUIRKS;let r=t===null?$m:Ko;if(Jo(n,r))return et.QUIRKS;if(r=t===null?Qo:qm,Jo(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Zo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gm="definitionurl",Ym="definitionURL",Wm=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),jm=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),Xm=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Km=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function Qm(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Ot.COLOR||r===Ot.SIZE||r===Ot.FACE)||Km.has(t)}function eu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gm){e.attrs[t].name=Ym;break}}function tu(e){for(let t=0;t<e.attrs.length;t++){const n=Wm.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Pa(e){for(let t=0;t<e.attrs.length;t++){const n=jm.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Jm(e){const t=Xm.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qt(e.tagName))}function Zm(e,t){return t===Q.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function eg(e,t,n){if(t===Q.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ot.ENCODING){const a=n[r].value.toLowerCase();return a===Zo.TEXT_HTML||a===Zo.APPLICATION_XML}}return t===Q.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function tg(e,t,n,r){return(!r||r===Q.HTML)&&eg(e,t,n)||(!r||r===Q.MATHML)&&Zm(e,t)}const ng="hidden",rg=8,ag=3;var H;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(H||(H={}));const ig={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nu=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),ru={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:St,onParseError:null};class au{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ru,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Nm(this.options,this),this.activeFormattingElements=new Rm(this.treeAdapter),this.fragmentContextID=r?Qt(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Bm(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...ru,...n};t??(t=r.treeAdapter.createElement(z.TEMPLATE,Q.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Q.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===d.TEMPLATE&&i.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:ig,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Ie.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Ie.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Ie.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Ie.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Ie.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Q.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===pe.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Q.HTML)}_processToken(t){switch(t.type){case pe.CHARACTER:{this.onCharacter(t);break}case pe.NULL_CHARACTER:{this.onNullCharacter(t);break}case pe.COMMENT:{this.onComment(t);break}case pe.DOCTYPE:{this.onDoctype(t);break}case pe.START_TAG:{this._processStartTag(t);break}case pe.END_TAG:{this.onEndTag(t);break}case pe.EOF:{this.onEof(t);break}case pe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return tg(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ct.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=H.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=H.IN_TABLE;return}case d.BODY:{this.insertionMode=H.IN_BODY;return}case d.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(t){return nu.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return vm[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{su(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{hu(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Pb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ba(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{Ba(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.AFTER_BODY:{fg(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{pg(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{hg(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case H.IN_TABLE_TEXT:{In(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Bb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{mg(this,t);break}case H.BEFORE_HEAD:{bg(this,t);break}case H.IN_HEAD:{nt(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Tg(this,t);break}case H.AFTER_HEAD:{Cg(this,t);break}case H.IN_BODY:{Re(this,t);break}case H.IN_TABLE:{Jt(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{Eb(this,t);break}case H.IN_COLUMN_GROUP:{Ha(this,t);break}case H.IN_TABLE_BODY:{mr(this,t);break}case H.IN_ROW:{gr(this,t);break}case H.IN_CELL:{xb(this,t);break}case H.IN_SELECT:{bu(this,t);break}case H.IN_SELECT_IN_TABLE:{Sb(this,t);break}case H.IN_TEMPLATE:{vb(this,t);break}case H.AFTER_BODY:{wb(this,t);break}case H.IN_FRAMESET:{kb(this,t);break}case H.AFTER_FRAMESET:{Ib(this,t);break}case H.AFTER_AFTER_BODY:{Ob(this,t);break}case H.AFTER_AFTER_FRAMESET:{Db(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Rb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{gg(this,t);break}case H.BEFORE_HEAD:{Eg(this,t);break}case H.IN_HEAD:{yg(this,t);break}case H.IN_HEAD_NO_SCRIPT:{xg(this,t);break}case H.AFTER_HEAD:{Sg(this,t);break}case H.IN_BODY:{pr(this,t);break}case H.TEXT:{ub(this,t);break}case H.IN_TABLE:{kn(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{yb(this,t);break}case H.IN_COLUMN_GROUP:{Tb(this,t);break}case H.IN_TABLE_BODY:{$a(this,t);break}case H.IN_ROW:{gu(this,t);break}case H.IN_CELL:{Cb(this,t);break}case H.IN_SELECT:{Eu(this,t);break}case H.IN_SELECT_IN_TABLE:{Ab(this,t);break}case H.IN_TEMPLATE:{_b(this,t);break}case H.AFTER_BODY:{Tu(this,t);break}case H.IN_FRAMESET:{Nb(this,t);break}case H.AFTER_FRAMESET:{Lb(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{fu(this,t);break}case H.TEXT:{lb(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_TEMPLATE:{yu(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Ra(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===O.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{iu(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{pu(this,t);break}}}}function sg(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):du(e,t),n}function og(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ug(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&i>=ag;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=lg(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function lg(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function cg(e,t,n){const r=e.treeAdapter.getTagName(t),a=Qt(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===d.TEMPLATE&&i===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dg(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Ma(e,t){for(let n=0;n<rg;n++){const r=sg(e,t);if(!r)break;const a=og(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=ug(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&cg(e,s,i),dg(e,a,r)}}function Ba(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fg(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pg(e,t){e._appendCommentNode(t,e.document)}function Ra(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function hg(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:Vm(t);zm(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=H.BEFORE_HTML}function Cn(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t)}function mg(e,t){t.tagID===d.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=H.BEFORE_HEAD):Sn(e,t)}function gg(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Sn(e,t)}function Sn(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t)}function bg(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:An(e,t)}}function Eg(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?An(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function An(e,t){e._insertFakeElement(z.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t)}function nt(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Ie.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ie.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Ie.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Ie.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:vn(e,t)}}function yg(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{vn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Dt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function vn(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t)}function Tg(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{nt(e,t);break}case d.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:_n(e,t)}}function xg(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case d.BR:{_n(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function _n(e,t){const n=t.type===pe.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t)}function Cg(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),nt(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:wn(e,t)}}function Sg(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{wn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function wn(e,t){e._insertFakeElement(z.BODY,d.BODY),e.insertionMode=H.IN_BODY,fr(e,t)}function fr(e,t){switch(t.type){case pe.CHARACTER:{su(e,t);break}case pe.WHITESPACE_CHARACTER:{iu(e,t);break}case pe.COMMENT:{Ba(e,t);break}case pe.START_TAG:{Re(e,t);break}case pe.END_TAG:{pr(e,t);break}case pe.EOF:{fu(e,t);break}}}function iu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function su(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ag(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _g(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET)}function wg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function kg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Oa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function Ng(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ig(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),n||(e.formElement=e.openElements.current))}function Lg(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===d.LI&&a===d.LI||(n===d.DD||n===d.DT)&&(a===d.DD||a===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function Og(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=Ie.PLAINTEXT}function Dg(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function Pg(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);n&&(Ma(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Ma(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fg(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_TABLE}function ou(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uu(e){const t=$o(e,Ot.TYPE);return t!=null&&t.toLowerCase()===ng}function Hg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),uu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $g(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function Ug(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qg(e,t){t.tagName=z.IMG,t.tagID=d.IMG,ou(e,t)}function zg(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ie.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=H.TEXT}function Vg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function Gg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function lu(e,t){e._switchToTextParsing(t,Ie.RAWTEXT)}function Yg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function Wg(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function jg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function Xg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,Q.HTML)}function Kg(e,t){e._reconstructActiveFormattingElements(),eu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function Qg(e,t){e._reconstructActiveFormattingElements(),tu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function cu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function Re(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{Mg(e,t);break}case d.A:{Pg(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{kg(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{wg(e,t);break}case d.LI:case d.DD:case d.DT:{Lg(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{ou(e,t);break}case d.HR:{Ug(e,t);break}case d.RB:case d.RTC:{jg(e,t);break}case d.RT:case d.RP:{Xg(e,t);break}case d.PRE:case d.LISTING:{Ng(e,t);break}case d.XMP:{Vg(e,t);break}case d.SVG:{Qg(e,t);break}case d.HTML:{Ag(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{nt(e,t);break}case d.BODY:{vg(e,t);break}case d.FORM:{Ig(e,t);break}case d.NOBR:{Bg(e,t);break}case d.MATH:{Kg(e,t);break}case d.TABLE:{Fg(e,t);break}case d.INPUT:{Hg(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{$g(e,t);break}case d.IMAGE:{qg(e,t);break}case d.BUTTON:{Dg(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Rg(e,t);break}case d.IFRAME:{Gg(e,t);break}case d.SELECT:{Yg(e,t);break}case d.OPTION:case d.OPTGROUP:{Wg(e,t);break}case d.NOEMBED:case d.NOFRAMES:{lu(e,t);break}case d.FRAMESET:{_g(e,t);break}case d.TEXTAREA:{zg(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?lu(e,t):cu(e,t);break}case d.PLAINTEXT:{Og(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:cu(e,t)}}function Jg(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zg(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,Tu(e,t))}function eb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tb(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function nb(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(z.P,d.P),e._closePElement()}function rb(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function ab(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ib(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ob(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function du(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function pr(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Ma(e,t);break}case d.P:{nb(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{eb(e,t);break}case d.LI:{rb(e);break}case d.DD:case d.DT:{ab(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{ib(e);break}case d.BR:{ob(e);break}case d.BODY:{Jg(e,t);break}case d.HTML:{Zg(e,t);break}case d.FORM:{tb(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{sb(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:du(e,t)}}function fu(e,t){e.tmplInsertionModeStack.length>0?yu(e,t):Ra(e,t)}function ub(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lb(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Fa(e,t){if(e.openElements.currentTagId!==void 0&&nu.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case pe.CHARACTER:{hu(e,t);break}case pe.WHITESPACE_CHARACTER:{pu(e,t);break}}else Nn(e,t)}function cb(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CAPTION}function db(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_COLUMN_GROUP}function fb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,d.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t)}function pb(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_TABLE_BODY}function hb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,d.TBODY),e.insertionMode=H.IN_TABLE_BODY,mr(e,t)}function mb(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gb(e,t){uu(t)?e._appendElement(t,Q.HTML):Nn(e,t),t.ackSelfClosing=!0}function bb(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Jt(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{hb(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}case d.COL:{fb(e,t);break}case d.FORM:{bb(e,t);break}case d.TABLE:{mb(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{pb(e,t);break}case d.INPUT:{gb(e,t);break}case d.CAPTION:{cb(e,t);break}case d.COLGROUP:{db(e,t);break}default:Nn(e,t)}}function kn(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Nn(e,t)}}function Nn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,fr(e,t),e.fosterParentingEnabled=n}function pu(e,t){e.pendingCharacterTokens.push(t)}function hu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function In(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Nn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const mu=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function Eb(e,t){const n=t.tagID;mu.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Jt(e,t)):Re(e,t)}function yb(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,n===d.TABLE&&kn(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:pr(e,t)}}function Ha(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.COL:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{nt(e,t);break}default:hr(e,t)}}function Tb(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TEMPLATE:{Dt(e,t);break}case d.COL:break;default:hr(e,t)}}function hr(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t))}function mr(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,d.TR),e.insertionMode=H.IN_ROW,gr(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Jt(e,t));break}default:Jt(e,t)}}function $a(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,kn(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:kn(e,t)}}function gr(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,mr(e,t));break}default:Jt(e,t)}}function gu(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:kn(e,t)}}function xb(e,t){const n=t.tagID;mu.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),gr(e,t)):Re(e,t)}function Cb(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),gu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:pr(e,t)}}function bu(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}}}function Eu(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}}}function Sb(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bu(e,t)}function Ab(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Eu(e,t)}function vb(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{nt(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Jt(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,mr(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,gr(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,Re(e,t)}}function _b(e,t){t.tagID===d.TEMPLATE&&Dt(e,t)}function yu(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ra(e,t)}function wb(e,t){t.tagID===d.HTML?Re(e,t):br(e,t)}function Tu(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else br(e,t)}function br(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function kb(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.FRAMESET:{e._insertElement(t,Q.HTML);break}case d.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{nt(e,t);break}}}function Nb(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET))}function Ib(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Lb(e,t){t.tagID===d.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET)}function Ob(e,t){t.tagID===d.HTML?Re(e,t):Er(e,t)}function Er(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function Db(e,t){switch(t.tagID){case d.HTML:{Re(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Pb(e,t){t.chars=Ae,e._insertCharacters(t)}function Mb(e,t){e._insertCharacters(t),e.framesetOk=!1}function xu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Bb(e,t){if(Qm(t))xu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Q.MATHML?eu(t):r===Q.SVG&&(Jm(t),tu(t)),Pa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Rb(e,t){if(t.tagID===d.P||t.tagID===d.BR){xu(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Q.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const Fb=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Su(e,t){const n=Xb(e),r=Mo("type",{handlers:{root:$b,element:Ub,text:qb,comment:vu,doctype:zb,raw:Gb},unknown:Yb}),a={parser:n?new au(Cu):au.getFragmentParser(void 0,Cu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),Zt(a,st());const i=n?a.parser.document:a.parser.getFragment(),s=K0(i,{file:a.options.file});return a.stitches&&or(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const f=l.children;return f[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Au(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $b(e,t){Au(e.children,t)}function Ub(e,t){Wb(e,t),Au(e.children,t),jb(e,t)}function qb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:pe.CHARACTER,chars:e.value,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zb(e,t){const n={type:pe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vb(e,t){t.stitches=!0;const n=Kb(e);if("children"in e&&"children"in n){const r=Su({type:"root",children:e.children},t.options);n.children=r.children}vu({type:"comment",value:{stitch:n}},t)}function vu(e,t){const n=e.value,r={type:pe.COMMENT,data:n,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gb(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,_u(t,st(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Fb,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Yb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Vb(n,t);else{let r="";throw Hb.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Zt(e,t){_u(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ie.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function _u(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Wb(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,st(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Lt.html;a===Lt.html&&n==="svg"&&(a=Lt.svg);const i=tm({...e,children:[]},{space:a===Lt.svg?"svg":"html"}),s={type:pe.START_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ln(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function jb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lm.includes(n)||t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,Zn(e));const r={type:pe.END_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ln(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ie.RCDATA||t.parser.tokenizer.state===Ie.RAWTEXT||t.parser.tokenizer.state===Ie.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ie.DATA)}function Xb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ln(e){const t=st(e)||{line:void 0,column:void 0,offset:void 0},n=Zn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Kb(e){return"children"in e?It({...e,children:[]}):It(e)}function Ua(e){return function(t,n){return Su(t,{...e,file:n})}}const Pt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],en={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Pt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Pt],h2:[["className","sr-only"]],img:[...Pt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Pt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Pt],table:[...Pt],ul:[...Pt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},At={}.hasOwnProperty;function Qb(e,t){let n={type:"root",children:[]};const r={schema:t?{...en,...t}:en,stack:[]},a=wu(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function wu(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Jb(e,n);case"doctype":return Zb(e,n);case"element":return eE(e,n);case"root":return tE(e,n);case"text":return nE(e,n)}}}function Jb(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return On(i,t),i}}function Zb(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return On(n,t),n}}function eE(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=ku(e,t.children),a=rE(e,t.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&At.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(i=!1;++u<o.length;)e.stack.includes(o[u])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:a,children:r};return On(s,t),s}function tE(e,t){const r={type:"root",children:ku(e,t.children)};return On(r,t),r}function nE(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return On(r,t),r}function ku(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const i=wu(e,r[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function rE(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&At.call(r,n)?r[n]:void 0,s=r&&At.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let l;for(l in o)if(At.call(o,l)){const c=o[l];let f=Nu(e,Lu(i,l),l,c);f==null&&(f=Nu(e,Lu(s,l),l,c)),f!=null&&(u[l]=f)}if(a&&At.call(a,n)){const c=a[n];for(l in c)At.call(c,l)&&!At.call(u,l)&&(u[l]=c[l])}return u}function Nu(e,t,n,r){return t?Array.isArray(r)?aE(e,t,n,r):Iu(e,t,n,r):void 0}function aE(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const s=Iu(e,t,n,r[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function Iu(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&iE(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){a=!0;break}}else if(s===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function iE(e,t,n){const r=e.schema.protocols&&At.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),u=a.indexOf("/");if(i<0||u>-1&&i>u||s>-1&&i>s||o>-1&&i>o)return!0;let l=-1;for(;++l<r.length;){const c=r[l];if(i===c.length&&a.slice(0,c.length)===c)return!0}return!1}function On(e,t){const n=Ss(t);t.data&&(e.data=It(t.data)),n&&(e.position=n)}function Lu(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function qa(e){return function(t){return Qb(t,e)}}function Ou(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const sE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Du={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Pu(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function oE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function uE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Mu(e){return uE(e)||Pu(e)}const lE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function za(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,s=-1,o="",u,l;n.position&&("start"in n.position||"indent"in n.position?(l=n.position.indent,u=n.position.start):u=n.position);let c=(u?u.line:0)||1,f=(u?u.column:0)||1,g=T(),p;for(i--;++i<=e.length;)if(p===10&&(f=(l?l[s]:0)||1),p=e.charCodeAt(i),p===38){const b=e.charCodeAt(i+1);if(b===9||b===10||b===12||b===32||b===38||b===60||Number.isNaN(b)||r&&b===r){o+=String.fromCharCode(p),f++;continue}const E=i+1;let y=E,_=E,w;if(b===35){_=++y;const P=e.charCodeAt(_);P===88||P===120?(w="hexadecimal",_=++y):w="decimal"}else w="named";let S="",M="",A="";const x=w==="named"?Mu:w==="decimal"?Pu:oE;for(_--;++_<=e.length;){const P=e.charCodeAt(_);if(!x(P))break;A+=String.fromCharCode(P),w==="named"&&sE.includes(A)&&(S=A,M=hn(A))}let v=e.charCodeAt(_)===59;if(v){_++;const P=w==="named"?hn(A):!1;P&&(S=A,M=P)}let k=1+_-E,D="";if(!(!v&&n.nonTerminated===!1))if(!A)w!=="named"&&h(4,k);else if(w==="named"){if(v&&!M)h(5,1);else if(S!==A&&(_=y+S.length,k=1+_-y,v=!1),!v){const P=S?1:3;if(n.attribute){const N=e.charCodeAt(_);N===61?(h(P,k),M=""):Mu(N)?M="":h(P,k)}else h(P,k)}D=M}else{v||h(2,k);let P=Number.parseInt(A,w==="hexadecimal"?16:10);if(cE(P))h(7,k),D="�";else if(P in Du)h(6,k),D=Du[P];else{let N="";dE(P)&&h(6,k),P>65535&&(P-=65536,N+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),D=N+String.fromCharCode(P)}}if(D){m(),g=T(),i=_-1,f+=_-E+1,a.push(D);const P=T();P.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,D,{start:g,end:P},e.slice(E-1,_)),g=P}else A=e.slice(E-1,_),o+=A,f+=A.length,i=_-1}else p===10&&(c++,s++,f=0),Number.isNaN(p)?m():(o+=String.fromCharCode(p),f++);return a.join("");function T(){return{line:c,column:f,offset:i+((u?u.offset:0)||0)}}function h(b,E){let y;n.warning&&(y=T(),y.column+=E,y.offset+=E,n.warning.call(n.warningContext||void 0,lE[b],y,b))}function m(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:g,end:T()}),o="")}}function cE(e){return e>=55296&&e<=57343||e>1114111}function dE(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const fE=/["&'<>`]/g,pE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mE=/[|\\{}()[\]^$+*?.]/g,Bu=new WeakMap;function gE(e,t){if(e=e.replace(t.subset?bE(t.subset):fE,r),t.subset||t.escapeOnly)return e;return e.replace(pE,n).replace(hE,r);function n(a,i,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(a,i,s){return t.format(a.charCodeAt(0),s.charCodeAt(i+1),t)}}function bE(e){let t=Bu.get(e);return t||(t=EE(e),Bu.set(e,t)),t}function EE(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(mE,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function yE(e){return"&#x"+e.toString(16).toUpperCase()+";"}function TE(e,t){return gE(e,Object.assign({format:yE},t))}const xE={}.hasOwnProperty,CE={},Ru=/^[^\t\n\r "#'.<=>`}]+$/,SE=/^[^\t\n\r "'<=>`}]+$/;function AE(){return{canContainEols:["textDirective"],enter:{directiveContainer:_E,directiveContainerAttributes:Ya,directiveContainerLabel:NE,directiveLeaf:wE,directiveLeafAttributes:Ya,directiveText:kE,directiveTextAttributes:Ya},exit:{directiveContainer:Ja,directiveContainerAttributeClassValue:ja,directiveContainerAttributeIdValue:Wa,directiveContainerAttributeName:Ka,directiveContainerAttributeValue:Xa,directiveContainerAttributes:Qa,directiveContainerLabel:IE,directiveContainerName:Ga,directiveLeaf:Ja,directiveLeafAttributeClassValue:ja,directiveLeafAttributeIdValue:Wa,directiveLeafAttributeName:Ka,directiveLeafAttributeValue:Xa,directiveLeafAttributes:Qa,directiveLeafName:Ga,directiveText:Ja,directiveTextAttributeClassValue:ja,directiveTextAttributeIdValue:Wa,directiveTextAttributeName:Ka,directiveTextAttributeValue:Xa,directiveTextAttributes:Qa,directiveTextName:Ga}}}function vE(e){const t=CE;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=LE,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
|
|
55
|
+
`},a),i}function d0(e,t){return e&&"run"in e?async function(n,r){const a=Eo(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Eo(n,{file:r,...e||t})}}function yo(e){if(e)throw e}var ga,To;function f0(){if(To)return ga;To=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},i=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!f)return!1;var g;for(g in l);return typeof g>"u"||e.call(l,g)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return ga=function u(){var l,c,f,g,p,T,h=arguments[0],m=1,b=arguments.length,E=!1;for(typeof h=="boolean"&&(E=h,h=arguments[1]||{},m=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});m<b;++m)if(l=arguments[m],l!=null)for(c in l)f=o(h,c),g=o(l,c),h!==g&&(E&&g&&(i(g)||(p=a(g)))?(p?(p=!1,T=f&&a(f)?f:[]):T=f&&i(f)?f:{},s(h,{name:c,newValue:u(E,T,g)})):typeof g<"u"&&s(h,{name:c,newValue:g}));return h},ga}var p0=f0();const ba=Qr(p0);function Ea(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function h0(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(u,...l){const c=e[++i];let f=-1;if(u){s(u);return}for(;++f<a.length;)(l[f]===null||l[f]===void 0)&&(l[f]=a[f]);a=l,c?m0(c,o)(...l):s(null,...l)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function m0(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(a);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return a(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,a):u instanceof Error?a(u):i(u))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const lt={basename:g0,dirname:b0,extname:E0,join:y0,sep:"/"};function g0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function b0(e){if(Tn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function E0(e){Tn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function y0(...e){let t=-1,n;for(;++t<e.length;)Tn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":T0(n)}function T0(e){Tn(e);const t=e.codePointAt(0)===47;let n=x0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function x0(e,t){let n="",r=0,a=-1,i=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function Tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const C0={cwd:S0};function S0(){return"/"}function ya(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function A0(e){if(typeof e=="string")e=new URL(e);else if(!ya(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return v0(e)}function v0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Ta=["history","path","basename","stem","extname","dirname"];class xo{constructor(t){let n;t?ya(t)?n={path:t}:typeof t=="string"||_0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":C0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ta.length;){const i=Ta[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Ta.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){Ca(t,"basename"),xa(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){Co(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(xa(t,"extname"),Co(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ya(t)&&(t=A0(t)),Ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){Ca(t,"stem"),xa(t,"stem"),this.path=lt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Fe(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function xa(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function Ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Co(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w0=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},k0={}.hasOwnProperty;class Sa extends w0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=h0()}copy(){const t=new Sa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ba(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_a("data",this.frozen),this.namespace[t]=n,this):k0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_a("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ur(t),r=this.parser||this.Parser;return Aa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Aa("process",this.parser||this.Parser),va("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=ur(t),u=r.parse(o);r.run(u,o,function(c,f,g){if(c||!f||!g)return l(c);const p=f,T=r.stringify(p,g);L0(T)?g.value=T:g.result=T,l(c,g)});function l(c,f){c||!f?s(c):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Aa("processSync",this.parser||this.Parser),va("processSync",this.compiler||this.Compiler),this.process(t,a),Ao("processSync","process",n),r;function a(i,s){n=!0,yo(i),r=s}}run(t,n,r){So(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const u=ur(n);a.run(t,u,l);function l(c,f,g){const p=f||t;c?o(c):s?s(p):r(void 0,p,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Ao("runSync","run",r),a;function i(s,o){yo(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=ur(n),a=this.compiler||this.Compiler;return va("stringify",a),So(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(_a("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...f]=l;u(c,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(a.settings=ba(!0,a.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const f=l[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let f=-1,g=-1;for(;++f<r.length;)if(r[f][0]===l){g=f;break}if(g===-1)r.push([l,...c]);else if(c.length>0){let[p,...T]=c;const h=r[g][1];Ea(h)&&Ea(p)&&(p=ba(!0,h,p)),r[g]=[l,p,...T]}}}}const N0=new Sa().freeze();function Aa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function va(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _a(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function So(e){if(!Ea(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ao(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ur(e){return I0(e)?e:new xo(e)}function I0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L0(e){return typeof e=="string"||O0(e)}function O0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const D0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vo=[],_o={allowDangerousHtml:!0},P0=/^(https?|ircs?|mailto|xmpp)$/i,M0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wa(e){const t=B0(e),n=R0(e);return F0(t.runSync(t.parse(n),n),e)}function B0(e){const t=e.rehypePlugins||vo,n=e.remarkPlugins||vo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._o}:_o;return N0().use(bh).use(n).use(d0,r).use(t)}function R0(e){const t=e.children||"",n=new xo;return typeof t=="string"&&(n.value=t),n}function F0(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||H0;for(const c of M0)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+D0+c.id,void 0);return or(e,l),of(e,{Fragment:q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function l(c,f,g){if(c.type==="raw"&&g&&typeof f=="number")return s?g.children.splice(f,1):g.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in ra)if(Object.hasOwn(ra,p)&&Object.hasOwn(c.properties,p)){const T=c.properties[p],h=ra[p];(h===null||h.includes(c.tagName))&&(c.properties[p]=u(String(T||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,g)),p&&g&&typeof f=="number")return o&&c.children?g.children.splice(f,1,...c.children):g.children.splice(f,1),f}}}function H0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||P0.test(e.slice(0,t))?e:""}const wo=/[#.]/g;function $0(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){wo.lastIndex=a;const o=wo.exec(n),u=n.slice(a,o?o.index:n.length);u&&(i?i==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function ko(e,t,n){const r=n?V0(n):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=$0(i,t);const l=u.tagName.toLowerCase(),c=r?r.get(l):void 0;if(u.tagName=c||l,U0(s))o.unshift(s);else for(const[f,g]of Object.entries(s))q0(e,u.properties,f,g)}for(const l of o)ka(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function U0(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function q0(e,t,n,r){const a=Jn(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=gs(r):a.commaSeparated?i=rs(r):a.commaOrSpaceSeparated?i=gs(rs(r).join(" ")):i=No(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?z0(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(No(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function ka(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ka(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ka(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function No(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||un(n)===un(t)))return!0}return n}function z0(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function V0(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const G0=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Y0=ko(ln,"div"),W0=ko(Et,"g",G0);function j0(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=Io(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],u=Io(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function Io(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
56
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Lt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Lo={}.hasOwnProperty,X0=Object.prototype;function K0(e,t){const n=t||{};return Na({file:n.file||void 0,location:!1,schema:n.space==="svg"?Et:ln,verbose:n.verbose||!1},e)}function Na(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},lr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Oo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=j0(i),o=s.toPoint(0),u=s.toPoint(i.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},lr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},lr(e,r,n),n}default:return n=Q0(e,t),n}}function Oo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Na(e,t[n]);r.push(a)}return r}function Q0(e,t){const n=e.schema;e.schema=t.namespaceURI===Lt.svg?Et:ln;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;Lo.call(X0,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?W0:Y0)(t.tagName,a,Oo(e,t.childNodes));if(lr(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&Xt(u.startTag),c=u&&u.endTag&&Xt(u.endTag),f=Na(e,o.content);l&&c&&e.file&&(f.position={start:l.end,end:c.start}),s.content=f}return e.schema=n,s}function lr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=J0(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function J0(e,t,n){const r=Xt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)Lo.call(n.attrs,s)&&(i[Jn(e.schema,s).property]=Xt(n.attrs[s]));n.startTag;const o=Xt(n.startTag),u=n.endTag?Xt(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=i,t.data={position:l}}}return r}function Xt(e){const t=Do({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Do({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Do(e){return e.line&&e.column?e:void 0}const Po={}.hasOwnProperty;function Mo(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Po.call(a,e)){const u=String(a[e]);s=Po.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Z0={},em={}.hasOwnProperty,Bo=Mo("type",{handlers:{root:nm,element:om,text:im,comment:sm,doctype:am}});function tm(e,t){const r=(t||Z0).space;return Bo(e,r==="svg"?Et:ln)}function nm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function rm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function am(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Kt(e,t),t}function im(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Kt(e,t),t}function sm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Kt(e,t),t}function om(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Et);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&em.call(e.properties,i)){const u=um(r,i,e.properties[i]);u&&a.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Lt[s],childNodes:[],parentNode:null};return o.childNodes=Ia(e.children,o,r),Kt(e,o),e.tagName==="template"&&e.content&&(o.content=rm(e.content,r)),o}function um(e,t,n){const r=Jn(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?as(n):bs(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Lt[r.space]}return a}function Ia(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Bo(e[r],n);i.parentNode=t,a.push(i)}return a}function Kt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cm=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ve="�";var O;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(O||(O={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ro(e){return e>=55296&&e<=57343}function dm(e){return e>=56320&&e<=57343}function fm(e,t){return(e-55296)*1024+9216+t}function Fo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ho(e){return e>=64976&&e<=65007||cm.has(e)}var Y;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Y||(Y={}));const pm=65536;class hm{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pm,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dm(n))return this.pos++,this._addGap(),fm(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,O.EOF;return this._err(Y.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,O.EOF;const r=this.html.charCodeAt(n);return r===O.CARRIAGE_RETURN?O.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,O.EOF;let t=this.html.charCodeAt(this.pos);return t===O.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,O.LINE_FEED):t===O.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ro(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===O.LINE_FEED||t===O.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Fo(t)?this._err(Y.controlCharacterInInputStream):Ho(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var pe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(pe||(pe={}));function $o(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const mm=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),gm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function bm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gm.get(e))!==null&&t!==void 0?t:e}var Be;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Be||(Be={}));const Em=32;var xt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xt||(xt={}));function La(e){return e>=Be.ZERO&&e<=Be.NINE}function ym(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function Tm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||La(e)}function xm(e){return e===Be.EQUALS||Tm(e)}var Re;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Re||(Re={}));var ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ht||(ht={}));class Cm{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Re.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ht.Strict}startEntity(t){this.decodeMode=t,this.state=Re.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Re.EntityStart:return t.charCodeAt(n)===Be.NUM?(this.state=Re.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Re.NamedEntity,this.stateNamedEntity(t,n));case Re.NumericStart:return this.stateNumericStart(t,n);case Re.NumericDecimal:return this.stateNumericDecimal(t,n);case Re.NumericHex:return this.stateNumericHex(t,n);case Re.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Em)===Be.LOWER_X?(this.state=Re.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Re.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(La(a)||ym(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(La(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Be.SEMI)this.consumed+=1;else if(this.decodeMode===ht.Strict)return 0;return this.emitCodePoint(bm(this.result),this.consumed),this.errors&&(t!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Sm(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===ht.Attribute&&(i===0||xm(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14,i!==0){if(s===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&xt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~xt.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Re.NamedEntity:return this.result!==0&&(this.decodeMode!==ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Re.NumericDecimal:return this.emitNumericEntity(0,2);case Re.NumericHex:return this.emitNumericEntity(0,3);case Re.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Re.EntityStart:return 0}}}function Sm(e,t,n,r){const a=(t&xt.BRANCH_LENGTH)>>7,i=t&xt.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=a?-1:e[n+u]-1}let s=n,o=s+a-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+a]}return-1}var Q;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Q||(Q={}));var Ot;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ot||(Ot={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z||(z={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const Am=new Map([[z.A,d.A],[z.ADDRESS,d.ADDRESS],[z.ANNOTATION_XML,d.ANNOTATION_XML],[z.APPLET,d.APPLET],[z.AREA,d.AREA],[z.ARTICLE,d.ARTICLE],[z.ASIDE,d.ASIDE],[z.B,d.B],[z.BASE,d.BASE],[z.BASEFONT,d.BASEFONT],[z.BGSOUND,d.BGSOUND],[z.BIG,d.BIG],[z.BLOCKQUOTE,d.BLOCKQUOTE],[z.BODY,d.BODY],[z.BR,d.BR],[z.BUTTON,d.BUTTON],[z.CAPTION,d.CAPTION],[z.CENTER,d.CENTER],[z.CODE,d.CODE],[z.COL,d.COL],[z.COLGROUP,d.COLGROUP],[z.DD,d.DD],[z.DESC,d.DESC],[z.DETAILS,d.DETAILS],[z.DIALOG,d.DIALOG],[z.DIR,d.DIR],[z.DIV,d.DIV],[z.DL,d.DL],[z.DT,d.DT],[z.EM,d.EM],[z.EMBED,d.EMBED],[z.FIELDSET,d.FIELDSET],[z.FIGCAPTION,d.FIGCAPTION],[z.FIGURE,d.FIGURE],[z.FONT,d.FONT],[z.FOOTER,d.FOOTER],[z.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[z.FORM,d.FORM],[z.FRAME,d.FRAME],[z.FRAMESET,d.FRAMESET],[z.H1,d.H1],[z.H2,d.H2],[z.H3,d.H3],[z.H4,d.H4],[z.H5,d.H5],[z.H6,d.H6],[z.HEAD,d.HEAD],[z.HEADER,d.HEADER],[z.HGROUP,d.HGROUP],[z.HR,d.HR],[z.HTML,d.HTML],[z.I,d.I],[z.IMG,d.IMG],[z.IMAGE,d.IMAGE],[z.INPUT,d.INPUT],[z.IFRAME,d.IFRAME],[z.KEYGEN,d.KEYGEN],[z.LABEL,d.LABEL],[z.LI,d.LI],[z.LINK,d.LINK],[z.LISTING,d.LISTING],[z.MAIN,d.MAIN],[z.MALIGNMARK,d.MALIGNMARK],[z.MARQUEE,d.MARQUEE],[z.MATH,d.MATH],[z.MENU,d.MENU],[z.META,d.META],[z.MGLYPH,d.MGLYPH],[z.MI,d.MI],[z.MO,d.MO],[z.MN,d.MN],[z.MS,d.MS],[z.MTEXT,d.MTEXT],[z.NAV,d.NAV],[z.NOBR,d.NOBR],[z.NOFRAMES,d.NOFRAMES],[z.NOEMBED,d.NOEMBED],[z.NOSCRIPT,d.NOSCRIPT],[z.OBJECT,d.OBJECT],[z.OL,d.OL],[z.OPTGROUP,d.OPTGROUP],[z.OPTION,d.OPTION],[z.P,d.P],[z.PARAM,d.PARAM],[z.PLAINTEXT,d.PLAINTEXT],[z.PRE,d.PRE],[z.RB,d.RB],[z.RP,d.RP],[z.RT,d.RT],[z.RTC,d.RTC],[z.RUBY,d.RUBY],[z.S,d.S],[z.SCRIPT,d.SCRIPT],[z.SEARCH,d.SEARCH],[z.SECTION,d.SECTION],[z.SELECT,d.SELECT],[z.SOURCE,d.SOURCE],[z.SMALL,d.SMALL],[z.SPAN,d.SPAN],[z.STRIKE,d.STRIKE],[z.STRONG,d.STRONG],[z.STYLE,d.STYLE],[z.SUB,d.SUB],[z.SUMMARY,d.SUMMARY],[z.SUP,d.SUP],[z.TABLE,d.TABLE],[z.TBODY,d.TBODY],[z.TEMPLATE,d.TEMPLATE],[z.TEXTAREA,d.TEXTAREA],[z.TFOOT,d.TFOOT],[z.TD,d.TD],[z.TH,d.TH],[z.THEAD,d.THEAD],[z.TITLE,d.TITLE],[z.TR,d.TR],[z.TRACK,d.TRACK],[z.TT,d.TT],[z.U,d.U],[z.UL,d.UL],[z.SVG,d.SVG],[z.VAR,d.VAR],[z.WBR,d.WBR],[z.XMP,d.XMP]]);function Qt(e){var t;return(t=Am.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const J=d,vm={[Q.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Q.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Q.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},Oa=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const Ie={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function _m(e){return e>=O.DIGIT_0&&e<=O.DIGIT_9}function xn(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_Z}function wm(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_Z}function Ct(e){return wm(e)||xn(e)}function Uo(e){return Ct(e)||_m(e)}function cr(e){return e+32}function qo(e){return e===O.SPACE||e===O.LINE_FEED||e===O.TABULATION||e===O.FORM_FEED}function zo(e){return qo(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN}function km(e){return e===O.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:Ro(e)?Y.surrogateCharacterReference:Ho(e)?Y.noncharacterCharacterReference:Fo(e)||e===O.CARRIAGE_RETURN?Y.controlCharacterReference:null}class Nm{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new hm(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Cm(mm,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=km(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:pe.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:pe.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:pe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:pe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if($o(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Y.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Qt(t.tagName),t.type===pe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case pe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case pe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case pe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:pe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=qo(t)?pe.WHITESPACE_CHARACTER:t===O.NULL?pe.NULL_CHARACTER:pe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(pe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ht.Attribute:ht.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case O.AMPERSAND:{this._startCharacterReference();break}case O.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ct(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case O.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case O.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ct(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.tagName+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateRcdataLessThanSign(t){t===O.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ct(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case O.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case O.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===O.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ct(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case O.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case O.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ct(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===O.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ct(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ct(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&zo(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===O.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&zo(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._err(Y.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case O.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:case O.EQUALS_SIGN:case O.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case O.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=ve;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ve.DASH_DASH,!0)?(this._createCommentToken(Ve.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(Ve.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ve.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(Ve.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(Y.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case O.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=ve;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case O.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case O.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==O.GREATER_THAN_SIGN&&t!==O.EOF&&this._err(Y.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case O.HYPHEN_MINUS:{n.data+="-";break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(xn(t))this._createDoctypeToken(String.fromCharCode(cr(t))),this.state=B.DOCTYPE_NAME;else switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=B.DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.name+=ve;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ve.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ve.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Y.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.NULL:{this._err(Y.unexpectedNullCharacter);break}case O.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case O.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case O.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===O.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA;break}case O.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(O.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Uo(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Uo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===O.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vo=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Go=new Set([...Vo,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),dr=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),Im=new Set([...dr,d.OL,d.UL]),Lm=new Set([...dr,d.BUTTON]),Yo=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Wo=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),Om=new Set([d.TR,d.TEMPLATE,d.HTML]),Dm=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),Pm=new Set([d.TABLE,d.TEMPLATE,d.HTML]),Mm=new Set([d.TD,d.TH]);class Bm{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Q.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Oa,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Mm,Q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Pm,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Dm,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(Om,Q.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Q.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Q.SVG:{if(Wo.has(a))return!1;break}case Q.MATHML:{if(Yo.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,dr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Im)}hasInButtonScope(t){return this.hasInDynamicScope(t,Lm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Q.HTML:{if(Oa.has(n))return!0;if(dr.has(n))return!1;break}case Q.SVG:{if(Wo.has(n))return!1;break}case Q.MATHML:{if(Yo.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Go.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Go.has(this.currentTagId);)this.pop()}}const Da=3;var ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ct||(ct={}));const jo={type:ct.Marker};class Rm{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===ct.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Da)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Da)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>a.get(u.name)===u.value)&&(i+=1,i>=Da&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(jo)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ct.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(jo);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ct.Element&&n.element===t)}}const St={createDocument(){return{nodeName:"#document",mode:et.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};St.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(St.isTextNode(n)){n.value+=t;return}}St.appendChild(e,St.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&St.isTextNode(r)?r.value+=t:St.insertBefore(e,St.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Xo="html",Fm="about:legacy-compat",Hm="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ko=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],$m=[...Ko,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Um=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Qo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],qm=[...Qo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jo(e,t){return t.some(n=>e.startsWith(n))}function zm(e){return e.name===Xo&&e.publicId===null&&(e.systemId===null||e.systemId===Fm)}function Vm(e){if(e.name!==Xo)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Hm)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Um.has(n))return et.QUIRKS;let r=t===null?$m:Ko;if(Jo(n,r))return et.QUIRKS;if(r=t===null?Qo:qm,Jo(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Zo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gm="definitionurl",Ym="definitionURL",Wm=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),jm=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),Xm=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Km=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function Qm(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Ot.COLOR||r===Ot.SIZE||r===Ot.FACE)||Km.has(t)}function eu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gm){e.attrs[t].name=Ym;break}}function tu(e){for(let t=0;t<e.attrs.length;t++){const n=Wm.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Pa(e){for(let t=0;t<e.attrs.length;t++){const n=jm.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Jm(e){const t=Xm.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qt(e.tagName))}function Zm(e,t){return t===Q.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function eg(e,t,n){if(t===Q.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ot.ENCODING){const a=n[r].value.toLowerCase();return a===Zo.TEXT_HTML||a===Zo.APPLICATION_XML}}return t===Q.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function tg(e,t,n,r){return(!r||r===Q.HTML)&&eg(e,t,n)||(!r||r===Q.MATHML)&&Zm(e,t)}const ng="hidden",rg=8,ag=3;var H;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(H||(H={}));const ig={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nu=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),ru={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:St,onParseError:null};class au{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ru,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Nm(this.options,this),this.activeFormattingElements=new Rm(this.treeAdapter),this.fragmentContextID=r?Qt(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Bm(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...ru,...n};t??(t=r.treeAdapter.createElement(z.TEMPLATE,Q.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Q.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===d.TEMPLATE&&i.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:ig,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Ie.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Ie.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Ie.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Ie.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Ie.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Q.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===pe.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Q.HTML)}_processToken(t){switch(t.type){case pe.CHARACTER:{this.onCharacter(t);break}case pe.NULL_CHARACTER:{this.onNullCharacter(t);break}case pe.COMMENT:{this.onComment(t);break}case pe.DOCTYPE:{this.onDoctype(t);break}case pe.START_TAG:{this._processStartTag(t);break}case pe.END_TAG:{this.onEndTag(t);break}case pe.EOF:{this.onEof(t);break}case pe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return tg(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ct.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=H.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=H.IN_TABLE;return}case d.BODY:{this.insertionMode=H.IN_BODY;return}case d.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(t){return nu.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return vm[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{su(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{hu(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Pb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ba(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{Ba(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.AFTER_BODY:{fg(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{pg(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{hg(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case H.IN_TABLE_TEXT:{In(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Bb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{mg(this,t);break}case H.BEFORE_HEAD:{bg(this,t);break}case H.IN_HEAD:{nt(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Tg(this,t);break}case H.AFTER_HEAD:{Cg(this,t);break}case H.IN_BODY:{He(this,t);break}case H.IN_TABLE:{Jt(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{Eb(this,t);break}case H.IN_COLUMN_GROUP:{Ha(this,t);break}case H.IN_TABLE_BODY:{mr(this,t);break}case H.IN_ROW:{gr(this,t);break}case H.IN_CELL:{xb(this,t);break}case H.IN_SELECT:{bu(this,t);break}case H.IN_SELECT_IN_TABLE:{Sb(this,t);break}case H.IN_TEMPLATE:{vb(this,t);break}case H.AFTER_BODY:{wb(this,t);break}case H.IN_FRAMESET:{kb(this,t);break}case H.AFTER_FRAMESET:{Ib(this,t);break}case H.AFTER_AFTER_BODY:{Ob(this,t);break}case H.AFTER_AFTER_FRAMESET:{Db(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Rb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{gg(this,t);break}case H.BEFORE_HEAD:{Eg(this,t);break}case H.IN_HEAD:{yg(this,t);break}case H.IN_HEAD_NO_SCRIPT:{xg(this,t);break}case H.AFTER_HEAD:{Sg(this,t);break}case H.IN_BODY:{pr(this,t);break}case H.TEXT:{ub(this,t);break}case H.IN_TABLE:{kn(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{yb(this,t);break}case H.IN_COLUMN_GROUP:{Tb(this,t);break}case H.IN_TABLE_BODY:{$a(this,t);break}case H.IN_ROW:{gu(this,t);break}case H.IN_CELL:{Cb(this,t);break}case H.IN_SELECT:{Eu(this,t);break}case H.IN_SELECT_IN_TABLE:{Ab(this,t);break}case H.IN_TEMPLATE:{_b(this,t);break}case H.AFTER_BODY:{Tu(this,t);break}case H.IN_FRAMESET:{Nb(this,t);break}case H.AFTER_FRAMESET:{Lb(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{fu(this,t);break}case H.TEXT:{lb(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_TEMPLATE:{yu(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Ra(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===O.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{iu(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{pu(this,t);break}}}}function sg(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):du(e,t),n}function og(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ug(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&i>=ag;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=lg(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function lg(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function cg(e,t,n){const r=e.treeAdapter.getTagName(t),a=Qt(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===d.TEMPLATE&&i===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dg(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Ma(e,t){for(let n=0;n<rg;n++){const r=sg(e,t);if(!r)break;const a=og(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=ug(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&cg(e,s,i),dg(e,a,r)}}function Ba(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fg(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pg(e,t){e._appendCommentNode(t,e.document)}function Ra(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function hg(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:Vm(t);zm(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=H.BEFORE_HTML}function Cn(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t)}function mg(e,t){t.tagID===d.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=H.BEFORE_HEAD):Sn(e,t)}function gg(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Sn(e,t)}function Sn(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t)}function bg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:An(e,t)}}function Eg(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?An(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function An(e,t){e._insertFakeElement(z.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t)}function nt(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Ie.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ie.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Ie.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Ie.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:vn(e,t)}}function yg(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{vn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Dt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function vn(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t)}function Tg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{nt(e,t);break}case d.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:_n(e,t)}}function xg(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case d.BR:{_n(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function _n(e,t){const n=t.type===pe.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t)}function Cg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),nt(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:wn(e,t)}}function Sg(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{wn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function wn(e,t){e._insertFakeElement(z.BODY,d.BODY),e.insertionMode=H.IN_BODY,fr(e,t)}function fr(e,t){switch(t.type){case pe.CHARACTER:{su(e,t);break}case pe.WHITESPACE_CHARACTER:{iu(e,t);break}case pe.COMMENT:{Ba(e,t);break}case pe.START_TAG:{He(e,t);break}case pe.END_TAG:{pr(e,t);break}case pe.EOF:{fu(e,t);break}}}function iu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function su(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ag(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _g(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET)}function wg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function kg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Oa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function Ng(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ig(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),n||(e.formElement=e.openElements.current))}function Lg(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===d.LI&&a===d.LI||(n===d.DD||n===d.DT)&&(a===d.DD||a===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function Og(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=Ie.PLAINTEXT}function Dg(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function Pg(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);n&&(Ma(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Ma(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fg(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_TABLE}function ou(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uu(e){const t=$o(e,Ot.TYPE);return t!=null&&t.toLowerCase()===ng}function Hg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),uu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $g(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function Ug(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qg(e,t){t.tagName=z.IMG,t.tagID=d.IMG,ou(e,t)}function zg(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ie.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=H.TEXT}function Vg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function Gg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function lu(e,t){e._switchToTextParsing(t,Ie.RAWTEXT)}function Yg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function Wg(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function jg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function Xg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,Q.HTML)}function Kg(e,t){e._reconstructActiveFormattingElements(),eu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function Qg(e,t){e._reconstructActiveFormattingElements(),tu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function cu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function He(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{Mg(e,t);break}case d.A:{Pg(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{kg(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{wg(e,t);break}case d.LI:case d.DD:case d.DT:{Lg(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{ou(e,t);break}case d.HR:{Ug(e,t);break}case d.RB:case d.RTC:{jg(e,t);break}case d.RT:case d.RP:{Xg(e,t);break}case d.PRE:case d.LISTING:{Ng(e,t);break}case d.XMP:{Vg(e,t);break}case d.SVG:{Qg(e,t);break}case d.HTML:{Ag(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{nt(e,t);break}case d.BODY:{vg(e,t);break}case d.FORM:{Ig(e,t);break}case d.NOBR:{Bg(e,t);break}case d.MATH:{Kg(e,t);break}case d.TABLE:{Fg(e,t);break}case d.INPUT:{Hg(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{$g(e,t);break}case d.IMAGE:{qg(e,t);break}case d.BUTTON:{Dg(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Rg(e,t);break}case d.IFRAME:{Gg(e,t);break}case d.SELECT:{Yg(e,t);break}case d.OPTION:case d.OPTGROUP:{Wg(e,t);break}case d.NOEMBED:case d.NOFRAMES:{lu(e,t);break}case d.FRAMESET:{_g(e,t);break}case d.TEXTAREA:{zg(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?lu(e,t):cu(e,t);break}case d.PLAINTEXT:{Og(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:cu(e,t)}}function Jg(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zg(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,Tu(e,t))}function eb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tb(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function nb(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(z.P,d.P),e._closePElement()}function rb(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function ab(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ib(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ob(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function du(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function pr(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Ma(e,t);break}case d.P:{nb(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{eb(e,t);break}case d.LI:{rb(e);break}case d.DD:case d.DT:{ab(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{ib(e);break}case d.BR:{ob(e);break}case d.BODY:{Jg(e,t);break}case d.HTML:{Zg(e,t);break}case d.FORM:{tb(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{sb(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:du(e,t)}}function fu(e,t){e.tmplInsertionModeStack.length>0?yu(e,t):Ra(e,t)}function ub(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lb(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Fa(e,t){if(e.openElements.currentTagId!==void 0&&nu.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case pe.CHARACTER:{hu(e,t);break}case pe.WHITESPACE_CHARACTER:{pu(e,t);break}}else Nn(e,t)}function cb(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CAPTION}function db(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_COLUMN_GROUP}function fb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,d.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t)}function pb(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_TABLE_BODY}function hb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,d.TBODY),e.insertionMode=H.IN_TABLE_BODY,mr(e,t)}function mb(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gb(e,t){uu(t)?e._appendElement(t,Q.HTML):Nn(e,t),t.ackSelfClosing=!0}function bb(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Jt(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{hb(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}case d.COL:{fb(e,t);break}case d.FORM:{bb(e,t);break}case d.TABLE:{mb(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{pb(e,t);break}case d.INPUT:{gb(e,t);break}case d.CAPTION:{cb(e,t);break}case d.COLGROUP:{db(e,t);break}default:Nn(e,t)}}function kn(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Nn(e,t)}}function Nn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,fr(e,t),e.fosterParentingEnabled=n}function pu(e,t){e.pendingCharacterTokens.push(t)}function hu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function In(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Nn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const mu=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function Eb(e,t){const n=t.tagID;mu.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Jt(e,t)):He(e,t)}function yb(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,n===d.TABLE&&kn(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:pr(e,t)}}function Ha(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.COL:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{nt(e,t);break}default:hr(e,t)}}function Tb(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TEMPLATE:{Dt(e,t);break}case d.COL:break;default:hr(e,t)}}function hr(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t))}function mr(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,d.TR),e.insertionMode=H.IN_ROW,gr(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Jt(e,t));break}default:Jt(e,t)}}function $a(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,kn(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:kn(e,t)}}function gr(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,mr(e,t));break}default:Jt(e,t)}}function gu(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:kn(e,t)}}function xb(e,t){const n=t.tagID;mu.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),gr(e,t)):He(e,t)}function Cb(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),gu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:pr(e,t)}}function bu(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}}}function Eu(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}}}function Sb(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bu(e,t)}function Ab(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Eu(e,t)}function vb(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{nt(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Jt(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,mr(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,gr(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,He(e,t)}}function _b(e,t){t.tagID===d.TEMPLATE&&Dt(e,t)}function yu(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ra(e,t)}function wb(e,t){t.tagID===d.HTML?He(e,t):br(e,t)}function Tu(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else br(e,t)}function br(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function kb(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.FRAMESET:{e._insertElement(t,Q.HTML);break}case d.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{nt(e,t);break}}}function Nb(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET))}function Ib(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Lb(e,t){t.tagID===d.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET)}function Ob(e,t){t.tagID===d.HTML?He(e,t):Er(e,t)}function Er(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function Db(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Pb(e,t){t.chars=ve,e._insertCharacters(t)}function Mb(e,t){e._insertCharacters(t),e.framesetOk=!1}function xu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Bb(e,t){if(Qm(t))xu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Q.MATHML?eu(t):r===Q.SVG&&(Jm(t),tu(t)),Pa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Rb(e,t){if(t.tagID===d.P||t.tagID===d.BR){xu(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Q.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const Fb=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Su(e,t){const n=Xb(e),r=Mo("type",{handlers:{root:$b,element:Ub,text:qb,comment:vu,doctype:zb,raw:Gb},unknown:Yb}),a={parser:n?new au(Cu):au.getFragmentParser(void 0,Cu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),Zt(a,st());const i=n?a.parser.document:a.parser.getFragment(),s=K0(i,{file:a.options.file});return a.stitches&&or(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const f=l.children;return f[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Au(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $b(e,t){Au(e.children,t)}function Ub(e,t){Wb(e,t),Au(e.children,t),jb(e,t)}function qb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:pe.CHARACTER,chars:e.value,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zb(e,t){const n={type:pe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vb(e,t){t.stitches=!0;const n=Kb(e);if("children"in e&&"children"in n){const r=Su({type:"root",children:e.children},t.options);n.children=r.children}vu({type:"comment",value:{stitch:n}},t)}function vu(e,t){const n=e.value,r={type:pe.COMMENT,data:n,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gb(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,_u(t,st(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Fb,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Yb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Vb(n,t);else{let r="";throw Hb.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Zt(e,t){_u(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ie.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function _u(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Wb(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,st(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Lt.html;a===Lt.html&&n==="svg"&&(a=Lt.svg);const i=tm({...e,children:[]},{space:a===Lt.svg?"svg":"html"}),s={type:pe.START_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ln(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function jb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lm.includes(n)||t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,Zn(e));const r={type:pe.END_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ln(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ie.RCDATA||t.parser.tokenizer.state===Ie.RAWTEXT||t.parser.tokenizer.state===Ie.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ie.DATA)}function Xb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ln(e){const t=st(e)||{line:void 0,column:void 0,offset:void 0},n=Zn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Kb(e){return"children"in e?It({...e,children:[]}):It(e)}function Ua(e){return function(t,n){return Su(t,{...e,file:n})}}const Pt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],en={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Pt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Pt],h2:[["className","sr-only"]],img:[...Pt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Pt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Pt],table:[...Pt],ul:[...Pt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},At={}.hasOwnProperty;function Qb(e,t){let n={type:"root",children:[]};const r={schema:t?{...en,...t}:en,stack:[]},a=wu(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function wu(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Jb(e,n);case"doctype":return Zb(e,n);case"element":return eE(e,n);case"root":return tE(e,n);case"text":return nE(e,n)}}}function Jb(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return On(i,t),i}}function Zb(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return On(n,t),n}}function eE(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=ku(e,t.children),a=rE(e,t.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&At.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(i=!1;++u<o.length;)e.stack.includes(o[u])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:a,children:r};return On(s,t),s}function tE(e,t){const r={type:"root",children:ku(e,t.children)};return On(r,t),r}function nE(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return On(r,t),r}function ku(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const i=wu(e,r[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function rE(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&At.call(r,n)?r[n]:void 0,s=r&&At.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let l;for(l in o)if(At.call(o,l)){const c=o[l];let f=Nu(e,Lu(i,l),l,c);f==null&&(f=Nu(e,Lu(s,l),l,c)),f!=null&&(u[l]=f)}if(a&&At.call(a,n)){const c=a[n];for(l in c)At.call(c,l)&&!At.call(u,l)&&(u[l]=c[l])}return u}function Nu(e,t,n,r){return t?Array.isArray(r)?aE(e,t,n,r):Iu(e,t,n,r):void 0}function aE(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const s=Iu(e,t,n,r[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function Iu(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&iE(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){a=!0;break}}else if(s===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function iE(e,t,n){const r=e.schema.protocols&&At.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),u=a.indexOf("/");if(i<0||u>-1&&i>u||s>-1&&i>s||o>-1&&i>o)return!0;let l=-1;for(;++l<r.length;){const c=r[l];if(i===c.length&&a.slice(0,c.length)===c)return!0}return!1}function On(e,t){const n=Ss(t);t.data&&(e.data=It(t.data)),n&&(e.position=n)}function Lu(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function qa(e){return function(t){return Qb(t,e)}}function Ou(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const sE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Du={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Pu(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function oE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function uE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Mu(e){return uE(e)||Pu(e)}const lE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function za(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,s=-1,o="",u,l;n.position&&("start"in n.position||"indent"in n.position?(l=n.position.indent,u=n.position.start):u=n.position);let c=(u?u.line:0)||1,f=(u?u.column:0)||1,g=T(),p;for(i--;++i<=e.length;)if(p===10&&(f=(l?l[s]:0)||1),p=e.charCodeAt(i),p===38){const b=e.charCodeAt(i+1);if(b===9||b===10||b===12||b===32||b===38||b===60||Number.isNaN(b)||r&&b===r){o+=String.fromCharCode(p),f++;continue}const E=i+1;let y=E,_=E,w;if(b===35){_=++y;const P=e.charCodeAt(_);P===88||P===120?(w="hexadecimal",_=++y):w="decimal"}else w="named";let S="",M="",A="";const x=w==="named"?Mu:w==="decimal"?Pu:oE;for(_--;++_<=e.length;){const P=e.charCodeAt(_);if(!x(P))break;A+=String.fromCharCode(P),w==="named"&&sE.includes(A)&&(S=A,M=hn(A))}let v=e.charCodeAt(_)===59;if(v){_++;const P=w==="named"?hn(A):!1;P&&(S=A,M=P)}let k=1+_-E,D="";if(!(!v&&n.nonTerminated===!1))if(!A)w!=="named"&&h(4,k);else if(w==="named"){if(v&&!M)h(5,1);else if(S!==A&&(_=y+S.length,k=1+_-y,v=!1),!v){const P=S?1:3;if(n.attribute){const N=e.charCodeAt(_);N===61?(h(P,k),M=""):Mu(N)?M="":h(P,k)}else h(P,k)}D=M}else{v||h(2,k);let P=Number.parseInt(A,w==="hexadecimal"?16:10);if(cE(P))h(7,k),D="�";else if(P in Du)h(6,k),D=Du[P];else{let N="";dE(P)&&h(6,k),P>65535&&(P-=65536,N+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),D=N+String.fromCharCode(P)}}if(D){m(),g=T(),i=_-1,f+=_-E+1,a.push(D);const P=T();P.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,D,{start:g,end:P},e.slice(E-1,_)),g=P}else A=e.slice(E-1,_),o+=A,f+=A.length,i=_-1}else p===10&&(c++,s++,f=0),Number.isNaN(p)?m():(o+=String.fromCharCode(p),f++);return a.join("");function T(){return{line:c,column:f,offset:i+((u?u.offset:0)||0)}}function h(b,E){let y;n.warning&&(y=T(),y.column+=E,y.offset+=E,n.warning.call(n.warningContext||void 0,lE[b],y,b))}function m(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:g,end:T()}),o="")}}function cE(e){return e>=55296&&e<=57343||e>1114111}function dE(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const fE=/["&'<>`]/g,pE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mE=/[|\\{}()[\]^$+*?.]/g,Bu=new WeakMap;function gE(e,t){if(e=e.replace(t.subset?bE(t.subset):fE,r),t.subset||t.escapeOnly)return e;return e.replace(pE,n).replace(hE,r);function n(a,i,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(a,i,s){return t.format(a.charCodeAt(0),s.charCodeAt(i+1),t)}}function bE(e){let t=Bu.get(e);return t||(t=EE(e),Bu.set(e,t)),t}function EE(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(mE,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function yE(e){return"&#x"+e.toString(16).toUpperCase()+";"}function TE(e,t){return gE(e,Object.assign({format:yE},t))}const xE={}.hasOwnProperty,CE={},Ru=/^[^\t\n\r "#'.<=>`}]+$/,SE=/^[^\t\n\r "'<=>`}]+$/;function AE(){return{canContainEols:["textDirective"],enter:{directiveContainer:_E,directiveContainerAttributes:Ya,directiveContainerLabel:NE,directiveLeaf:wE,directiveLeafAttributes:Ya,directiveText:kE,directiveTextAttributes:Ya},exit:{directiveContainer:Ja,directiveContainerAttributeClassValue:ja,directiveContainerAttributeIdValue:Wa,directiveContainerAttributeName:Ka,directiveContainerAttributeValue:Xa,directiveContainerAttributes:Qa,directiveContainerLabel:IE,directiveContainerName:Ga,directiveLeaf:Ja,directiveLeafAttributeClassValue:ja,directiveLeafAttributeIdValue:Wa,directiveLeafAttributeName:Ka,directiveLeafAttributeValue:Xa,directiveLeafAttributes:Qa,directiveLeafName:Ga,directiveText:Ja,directiveTextAttributeClassValue:ja,directiveTextAttributeIdValue:Wa,directiveTextAttributeName:Ka,directiveTextAttributeValue:Xa,directiveTextAttributes:Qa,directiveTextName:Ga}}}function vE(e){const t=CE;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=LE,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
|
|
57
57
|
`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function n(i,s,o,u){const l=o.createTracker(u),c=OE(i),f=o.enter(i.type);let g=l.move(c+(i.name||"")),p;if(i.type==="containerDirective"){const T=(i.children||[])[0];p=Fu(T)?T:void 0}else p=i;if(p&&p.children&&p.children.length>0){const T=o.enter("label"),h=`${i.type}Label`,m=o.enter(h);g+=l.move("["),g+=l.move(o.containerPhrasing(p,{...l.current(),before:g,after:"]"})),g+=l.move("]"),m(),T()}if(g+=l.move(r(i,o)),i.type==="containerDirective"){const T=(i.children||[])[0];let h=i;Fu(T)&&(h=Object.assign({},i,{children:i.children.slice(1)})),h&&h.children&&h.children.length>0&&(g+=l.move(`
|
|
58
58
|
`),g+=l.move(o.containerFlow(h,l.current()))),g+=l.move(`
|
|
59
59
|
`+c)}return f(),g}function r(i,s){const o=i.attributes||{},u=[];let l,c,f,g;for(g in o)if(xE.call(o,g)&&o[g]!==void 0&&o[g]!==null){const p=String(o[g]);if(g==="id")f=t.preferShortcut!==!1&&Ru.test(p)?"#"+p:a("id",p,i,s);else if(g==="class"){const T=p.split(/[\t\n\r ]+/g),h=[],m=[];let b=-1;for(;++b<T.length;)(t.preferShortcut!==!1&&Ru.test(T[b])?m:h).push(T[b]);l=h.length>0?a("class",h.join(" "),i,s):"",c=m.length>0?"."+m.join("."):""}else u.push(a(g,p,i,s))}return l&&u.unshift(l),c&&u.unshift(c),f&&u.unshift(f),u.length>0?"{"+u.join(" ")+"}":""}function a(i,s,o,u){if(t.collapseEmptyAttributes!==!1&&!s)return i;if(t.preferUnquoted&&SE.test(s))return i+"="+s;const l=t.quote||u.options.quote||'"',c=l==='"'?"'":'"',f=t.quoteSmart&&Ou(s,l)>Ou(s,c)?c:l,g=o.type==="textDirective"?[f]:[f,`
|
|
@@ -61,7 +61,7 @@ ${(e||"").replace(/\r\n/g,`
|
|
|
61
61
|
`).trim():""}catch{x=v.trim()}}else{const v=(M.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
62
62
|
`);x=v.replace(/\n/g,"").trim().length>0?v:""}if(x)f.current.add(A);else if(f.current.has(A)){y.add(A);const v=M.getAttribute("data-node-type");v==="report-url"?y.add(`${A}__url`):v==="markdown-name"&&y.add(`${A}__name`)}});const w=e.current.__tempVariableValues;if(w?(E=w,setTimeout(()=>{if(e.current){const S=e.current;S.__tempVariableValues===w&&delete S.__tempVariableValues}},100)):b||(e.current.querySelectorAll('[data-type="variable"]').forEach(P=>{const N=P.dataset.key;if(N){const F=(()=>{if(P.dataset.variableRender==="antd-textarea"){const G=(P.getAttribute("data-value")||"").trim();if(!G)return"";try{return decodeURIComponent(G).replace(/\r\n/g,`
|
|
63
63
|
`).trim()}catch{return G.trim()}}const U=(P.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
64
|
-
`);return U.replace(/\n/g,"").trim().length>0?U:""})();F&&(P.getAttribute("data-node-type")==="report-url"?E[`${N}__url`]=F:P.getAttribute("data-node-type")==="markdown-name"?E[`${N}__name`]=F:E[N]=F)}}),e.current.querySelectorAll('[data-type="select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.value.replace(/[\u200B]/g,"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.getAttribute("data-node-type")||"",F=C==="report-module"||C==="markdown-module",U=F?(P.innerHTML||"").replace(/[\u200B]/g,"").trim():(P.textContent||"").replace(/[\u200B]/g,"").trim();if(F){const $=Number.parseInt(P.getAttribute("data-module-index")||"0",10);E[`${N}__module_${Number.isFinite($)?$:0}`]=U}else U&&(E[N]=U)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.value||"").trim();C&&(E[N]=C)}})),l&&Object.keys(l).length>0){const S=new Set(t.filter(A=>A.type==="upload"&&A.key).map(A=>A.key)),M={};b||Object.entries(l).forEach(([A,x])=>{if(!Array.isArray(x))return;let v=0;for(let D=0;D<x.length;D++)`${A}_${D}`in E&&v++;let k=-1;for(let D=0;D<x.length;D++)f.current.has(`${A}_${D}`)&&(k=D);if(k>=v&&v<x.length)for(let D=v;D<x.length;D++)y.add(`${A}_${D}`)}),Object.entries(l).forEach(([A,x])=>{S.has(A)||(Array.isArray(x)?x.forEach((v,k)=>{v!=null&&String(v).trim()!==""&&(M[`${A}_${k}`]=String(v))}):x!=null&&String(x).trim()!==""&&(t.find(k=>k.key===A&&k.type==="report-url")?M[`${A}__url`]=String(x):M[A]=String(x)))}),Object.entries(M).forEach(([A,x])=>{const v=A in E,k=y.has(A),D=T.current[A]!==x;!k&&(!v||D)&&(E[A]=x)}),T.current=M}if(M1(e,t,n,r,E,a,o,u,c),b&&(p.current=!1),setTimeout(()=>{Vn(e)},0),i?.current){const{key:S,offset:M}=i.current;setTimeout(()=>{if(!e.current)return;const A=e.current.querySelector(`[data-type="variable"][data-key="${S}"]`);if(A){if(A.dataset.variableRender==="antd-textarea"){const x=A.querySelector("textarea");if(x){x.focus();try{const v=x.value?.length??0;x.setSelectionRange(Math.min(M,v),Math.min(M,v))}catch{}i.current=null;return}}try{const x=document.createRange(),v=document.createTreeWalker(A,NodeFilter.SHOW_TEXT,null);let k=0,D=null,P=0;for(;v.nextNode();){const N=v.currentNode,C=N.textContent?.length||0;if(k+C>=M){D=N,P=M-k;break}k+=C}if(D){x.setStart(D,Math.min(P,D.textContent?.length||0)),x.collapse(!0);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}else{x.selectNodeContents(A),x.collapse(!1);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}}catch{const x=document.createRange();x.selectNodeContents(A),x.collapse(!1);const v=window.getSelection();v&&(v.removeAllRanges(),v.addRange(x),A.focus())}i.current=null}},0)}},[t,n,r,e,a,i,s,o,u,l,c]);I.useEffect(()=>{h()},[h])}function R1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=l=>typeof l=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(l):l.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(l.name||""),o=l=>{const c=l.target?.closest(".upload-info-icon");if(c&&c.classList.contains("upload-info-icon")){const g=c.dataset.uploadKey;if(g){const p=c.dataset.tooltip||"";let T=!1;try{const m=JSON.parse(p);m&&m.type==="steps"&&Array.isArray(m.images)&&(T=!0)}catch{}if(T){const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}else{const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}}return}const f=l.target?.closest('[data-type="upload"]');if(f){const g=f.dataset.key;if(g){const p=n[g];p&&s(p)&&r({key:g,anchorEl:f,type:"upload-preview"})}}},u=l=>{if(a)return;const c=l.target?.closest(".upload-info-icon"),f=l.relatedTarget;if(f?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const p=c.closest('[data-type="upload"], [data-type="video-upload"]');if(f&&p&&p.contains(f))return;if(!f||!i.contains(f))r(null);else{const T=f.closest('[data-type="upload"], [data-type="video-upload"]');(!T||T!==p)&&r(null)}return}const g=l.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(g){const p=f;if(p?.closest?.(".rte-tooltip-overlay")||p&&g.contains(p))return;r(null)}};return i.addEventListener("mouseover",o,!0),i.addEventListener("mouseout",u,!0),()=>{i.removeEventListener("mouseover",o,!0),i.removeEventListener("mouseout",u,!0)}},[t,n,e,r,a])}function F1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=c=>{if(r==="hideTagClose")return;const f=c.currentTarget,g=f.dataset.tooltip,p=f.dataset.tagKey||"";g&&n({key:p,anchorEl:f,type:"tag"})},o=c=>{a||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||n(null)};let u;const l=()=>{i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.addEventListener("mouseenter",s),f.addEventListener("mouseleave",o)})};return u=requestAnimationFrame(()=>{u=requestAnimationFrame(l)}),()=>{cancelAnimationFrame(u),i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.removeEventListener("mouseenter",s),f.removeEventListener("mouseleave",o)})}},[t,e,n,r,a])}function H1(e,t,n,r){I.useEffect(()=>{const a=e.current;if(!a)return;const i=o=>{const u=o.target?.closest(".variable-info-icon");if(u&&u.classList.contains("variable-info-icon")){const c=u.dataset.variableKey;c&&n({key:c,anchorEl:u,type:"variable"});return}const l=o.target?.closest('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(l){const c=l.dataset.key;c&&n({key:c,anchorEl:l,type:"variable"})}},s=o=>{if(r)return;const u=o.target,l=o.relatedTarget;if(l?.closest?.(".rte-tooltip-overlay"))return;const c=u?.closest?.(".variable-info-icon"),f=u?.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(c||f){if(!l||!a.contains(l)){n(null);return}const g=!!l.closest?.(".variable-info-icon"),p=!!l.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');!g&&!p&&n(null)}};return a.addEventListener("mouseover",i,!0),a.addEventListener("mouseout",s,!0),()=>{a.removeEventListener("mouseover",i,!0),a.removeEventListener("mouseout",s,!0)}},[t,e,n,r])}function $1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=f=>typeof f=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(f):f.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name||""),o=f=>{const g=f.currentTarget,p=g.dataset.fileName,T=g.closest('[data-type="upload"]'),h=T?.dataset.key||"",m=h?n[h]:null;if(m&&s(m)){r({key:h,anchorEl:T||g,type:"upload-preview"});return}p&&r({key:h,anchorEl:T||g,type:"upload-label"})},u=f=>{a||f.relatedTarget?.closest?.(".rte-tooltip-overlay")||r(null)};let l;const c=()=>{i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.addEventListener("mouseenter",o),g.addEventListener("mouseleave",u)})};return l=requestAnimationFrame(()=>{l=requestAnimationFrame(c)}),()=>{cancelAnimationFrame(l),i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.removeEventListener("mouseenter",o),g.removeEventListener("mouseleave",u)})}},[t,n,e,r,a])}function U1(e,t,n,r,a,i){I.useEffect(()=>{const s=setTimeout(()=>{Dr(e,t,n,a),Pr(e,t,n,r,a)},0);return()=>clearTimeout(s)},[n,t,e,r,a,i])}function q1(e,t){const n=I.useRef(0),r=I.useRef(0);I.useEffect(()=>{if(!e.current)return;let a=!1,i=0;const s=E=>E instanceof HTMLElement?!!(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker")||E.closest(".ant-picker-dropdown")):!1,o=E=>E instanceof HTMLElement?!!(E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown")):!1,u=E=>{a=!0,s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},l=()=>{a=!1,i=Date.now()};let c=!1,f=0;const g=()=>{c=!0},p=()=>{c=!1,f=Date.now()},T=()=>{f=Date.now()},h=E=>{s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},m=()=>{if(Date.now()-n.current<800||Date.now()-r.current<800)return;const E=document.activeElement;if(E&&(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker-dropdown")||E.tagName==="INPUT"&&E.closest(".ant-picker")||E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown"))||!e.current)return;const y=window.getSelection();if(!y||y.rangeCount===0||t.current||a||c||Date.now()-f<500)return;const _=y.getRangeAt(0);if(!_.collapsed)return e.current.contains(_.commonAncestorContainer),void 0;const w=y.anchorNode;if(!w||!e.current.contains(w))return;let S=!1,M=!1;if(w.nodeType===Node.ELEMENT_NODE){const x=w;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}else if(w.parentElement){const x=w.parentElement;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}if(S||M)return;let A=null;if(w.nodeType===Node.ELEMENT_NODE?A=w.closest('[data-type="variable"]'):w.nodeType===Node.TEXT_NODE&&w.parentElement&&(A=w.parentElement.closest('[data-type="variable"]')),!A){if(Date.now()-i>500)return;const x=e.current.querySelectorAll('[data-type="variable"]');if(x.length>0){let v=null;for(const k of Array.from(x))if(k.style.display!=="none"){v=k;break}if(!v&&x.length>0&&(v=x[0]),v){const k=document.createRange();k.selectNodeContents(v),k.collapse(!1),y.removeAllRanges(),y.addRange(k),v.focus()}else y.removeAllRanges()}else y.removeAllRanges()}},b=e.current;return b&&(b.addEventListener("compositionstart",g),b.addEventListener("compositionend",p),b.addEventListener("input",T)),document.addEventListener("mousedown",u),document.addEventListener("mouseup",l),document.addEventListener("focusin",h),document.addEventListener("selectionchange",m),()=>{b&&(b.removeEventListener("compositionstart",g),b.removeEventListener("compositionend",p),b.removeEventListener("input",T)),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",l),document.removeEventListener("focusin",h),document.removeEventListener("selectionchange",m)}},[e,t])}var Tr={exports:{}},z1=Tr.exports,Uu;function qu(){return Uu||(Uu=1,function(e,t){(function(n,r){e.exports=r()})(z1,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",s="second",o="minute",u="hour",l="day",c="week",f="month",g="quarter",p="year",T="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var C=["th","st","nd","rd"],F=N%100;return"["+N+(C[(F-20)%10]||C[F]||C[0])+"]"}},y=function(N,C,F){var U=String(N);return!U||U.length>=C?N:""+Array(C+1-U.length).join(F)+N},_={s:y,z:function(N){var C=-N.utcOffset(),F=Math.abs(C),U=Math.floor(F/60),$=F%60;return(C<=0?"+":"-")+y(U,2,"0")+":"+y($,2,"0")},m:function N(C,F){if(C.date()<F.date())return-N(F,C);var U=12*(F.year()-C.year())+(F.month()-C.month()),$=C.clone().add(U,f),G=F-$<0,L=C.clone().add(U+(G?-1:1),f);return+(-(U+(F-$)/(G?$-L:L-$))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:c,d:l,D:T,h:u,m:o,s,ms:i,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},w="en",S={};S[w]=E;var M="$isDayjsObject",A=function(N){return N instanceof D||!(!N||!N[M])},x=function N(C,F,U){var $;if(!C)return w;if(typeof C=="string"){var G=C.toLowerCase();S[G]&&($=G),F&&(S[G]=F,$=G);var L=C.split("-");if(!$&&L.length>1)return N(L[0])}else{var W=C.name;S[W]=C,$=W}return!U&&$&&(w=$),$||!U&&w},v=function(N,C){if(A(N))return N.clone();var F=typeof C=="object"?C:{};return F.date=N,F.args=arguments,new D(F)},k=_;k.l=x,k.i=A,k.w=function(N,C){return v(N,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var D=function(){function N(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[M]=!0}var C=N.prototype;return C.parse=function(F){this.$d=function(U){var $=U.date,G=U.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var L=$.match(m);if(L){var W=L[2]-1||0,V=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)}}return new Date($)}(F),this.init()},C.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},C.$utils=function(){return k},C.isValid=function(){return this.$d.toString()!==h},C.isSame=function(F,U){var $=v(F);return this.startOf(U)<=$&&$<=this.endOf(U)},C.isAfter=function(F,U){return v(F)<this.startOf(U)},C.isBefore=function(F,U){return this.endOf(U)<v(F)},C.$g=function(F,U,$){return k.u(F)?this[U]:this.set($,F)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(F,U){var $=this,G=!!k.u(U)||U,L=k.p(F),W=function(se,he){var _e=k.w($.$u?Date.UTC($.$y,he,se):new Date($.$y,he,se),$);return G?_e:_e.endOf(l)},V=function(se,he){return k.w($.toDate()[se].apply($.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(he)),$)},R=this.$W,K=this.$M,ae=this.$D,ne="set"+(this.$u?"UTC":"");switch(L){case p:return G?W(1,0):W(31,11);case f:return G?W(1,K):W(0,K+1);case c:var X=this.$locale().weekStart||0,re=(R<X?R+7:R)-X;return W(G?ae-re:ae+(6-re),K);case l:case T:return V(ne+"Hours",0);case u:return V(ne+"Minutes",1);case o:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},C.endOf=function(F){return this.startOf(F,!1)},C.$set=function(F,U){var $,G=k.p(F),L="set"+(this.$u?"UTC":""),W=($={},$[l]=L+"Date",$[T]=L+"Date",$[f]=L+"Month",$[p]=L+"FullYear",$[u]=L+"Hours",$[o]=L+"Minutes",$[s]=L+"Seconds",$[i]=L+"Milliseconds",$)[G],V=G===l?this.$D+(U-this.$W):U;if(G===f||G===p){var R=this.clone().set(T,1);R.$d[W](V),R.init(),this.$d=R.set(T,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](V);return this.init(),this},C.set=function(F,U){return this.clone().$set(F,U)},C.get=function(F){return this[k.p(F)]()},C.add=function(F,U){var $,G=this;F=Number(F);var L=k.p(U),W=function(K){var ae=v(G);return k.w(ae.date(ae.date()+Math.round(K*F)),G)};if(L===f)return this.set(f,this.$M+F);if(L===p)return this.set(p,this.$y+F);if(L===l)return W(1);if(L===c)return W(7);var V=($={},$[o]=r,$[u]=a,$[s]=n,$)[L]||1,R=this.$d.getTime()+F*V;return k.w(R,this)},C.subtract=function(F,U){return this.add(-1*F,U)},C.format=function(F){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var G=F||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),W=this.$H,V=this.$m,R=this.$M,K=$.weekdays,ae=$.months,ne=$.meridiem,X=function(he,_e,Ge,vt){return he&&(he[_e]||he(U,G))||Ge[_e].slice(0,vt)},re=function(he){return k.s(W%12||12,he,"0")},se=ne||function(he,_e,Ge){var vt=he<12?"AM":"PM";return Ge?vt.toLowerCase():vt};return G.replace(b,function(he,_e){return _e||function(Ge){switch(Ge){case"YY":return String(U.$y).slice(-2);case"YYYY":return k.s(U.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return X($.monthsShort,R,ae,3);case"MMMM":return X(ae,R);case"D":return U.$D;case"DD":return k.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return X($.weekdaysMin,U.$W,K,2);case"ddd":return X($.weekdaysShort,U.$W,K,3);case"dddd":return K[U.$W];case"H":return String(W);case"HH":return k.s(W,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return se(W,V,!0);case"A":return se(W,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(U.$s);case"ss":return k.s(U.$s,2,"0");case"SSS":return k.s(U.$ms,3,"0");case"Z":return L}return null}(he)||L.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(F,U,$){var G,L=this,W=k.p(U),V=v(F),R=(V.utcOffset()-this.utcOffset())*r,K=this-V,ae=function(){return k.m(L,V)};switch(W){case p:G=ae()/12;break;case f:G=ae();break;case g:G=ae()/3;break;case c:G=(K-R)/6048e5;break;case l:G=(K-R)/864e5;break;case u:G=K/a;break;case o:G=K/r;break;case s:G=K/n;break;default:G=K}return $?G:k.a(G)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return S[this.$L]},C.locale=function(F,U){if(!F)return this.$L;var $=this.clone(),G=x(F,U,!0);return G&&($.$L=G),$},C.clone=function(){return k.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},N}(),P=D.prototype;return v.prototype=P,[["$ms",i],["$s",s],["$m",o],["$H",u],["$W",l],["$M",f],["$y",p],["$D",T]].forEach(function(N){P[N[1]]=function(C){return this.$g(C,N[0],N[1])}}),v.extend=function(N,C){return N.$i||(N(C,D,v),N.$i=!0),v},v.locale=x,v.isDayjs=A,v.unix=function(N){return v(1e3*N)},v.en=S[w],v.Ls=S,v.p={},v})}(Tr)),Tr.exports}var V1=qu();const xr=Qr(V1);var Cr={exports:{}},G1=Cr.exports,zu;function Y1(){return zu||(zu=1,function(e,t){(function(n,r){e.exports=r(qu())})(G1,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,o){return o==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,o){var u=100*s+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return a.default.locale(i,null,!0),i})}(Cr)),Cr.exports}Y1();function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function W1(e,t){if(Dn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j1(e){var t=W1(e,"string");return Dn(t)=="symbol"?t:t+""}function X1(e,t,n){return(t=j1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vu(Object(n),!0).forEach(function(r){X1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var K1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q1=Gu(Gu({},K1),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const J1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Yu={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Q1),timePickerLocale:Object.assign({},J1)};Yu.lang.ok="确定",xr.locale("zh-cn");const{RangePicker:Z1}=ce.DatePicker,ey=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.value,a=e.dataset.placeholder,i=e.dataset.limitRange?parseInt(e.dataset.limitRange,10):void 0,s=e.dataset.disableFuture==="true",[o,u]=I.useState(()=>{if(!r)return null;const h=r.split(",");return h.length===2&&h[0]&&h[1]?[xr(h[0]),xr(h[1])]:null}),[l,c]=I.useState(null),f=h=>h?s&&h.isAfter(xr(),"day")?!0:!i||!l||!l[0]?!1:Math.abs(h.diff(l[0],"days"))>i:!1,g=h=>{c(h)},p=h=>{if(u(h),c(null),h&&h[0]&&h[1]){const m=`${h[0].format("YYYY-MM-DD")},${h[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",m),t(n,m)}else e.setAttribute("data-value",""),t(n,"")},T=h=>{c(h?o:null)};return $t.createPortal(q.jsx("div",{className:"rte-datepicker-wrapper",contentEditable:!1,style:{display:"inline-block",verticalAlign:"middle",width:"260px",marginLeft:"4px",marginRight:"4px",fontSize:"16px",height:"30px",lineHeight:"30px"},children:q.jsx(Z1,{value:o,disabledDate:f,onCalendarChange:g,onChange:p,onOpenChange:T,placeholder:[a||"开始日期",a||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:Yu,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},ty=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-datepicker-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(ey,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`datepicker-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t},Wu=({config:e,onSend:t,isProcessing:n=!1,disabled:r=!1,width:a,lockStructure:i=!1,agentOptions:s=[],onAgentSelect:o,onAgentExit:u,loading:l=!1,placeholder:c,border:f,background:g="transparent",hideButtons:p,maxHeight:T,minHeight:h,editorMinHeight:m,editorPadding:b,footerPadding:E,collapsed:y=!1,reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,onCollapsedChange:M,collapseTransitionMs:A=260,debugTooltipSticky:x=!1,nodeValues:v,onFilesChange:k,onFooterFilesChange:D,showFooterUpload:P=!0,footerFiles:N,videoUrlParse:C,videoUpload:F})=>{const[U,$]=ce.message.useMessage(),G=I.useRef(null),L=I.useRef(null),W=I.useRef(null),V=I.useRef(null),R=I.useRef(null),K=I.useRef(null),ae=I.useRef("");if(!ae.current){const ee=Math.random().toString(36).slice(2,8);ae.current=`rte_${ee}`}const[ne,X]=I.useState({});I.useEffect(()=>{k?.(ne)},[ne,k]);const[re,se]=I.useState([]),he=I.useRef(!1);I.useEffect(()=>{if(!N)return;N.length===re.length&&N.every((ue,me)=>{const ve=re[me];return ve&&ue.name===ve.name&&ue.size===ve.size&&ue.lastModified===ve.lastModified})||(he.current=!0,se(N))},[N]),I.useEffect(()=>{if(he.current){he.current=!1;return}D?.(re)},[re,D]);const[_e,Ge]=I.useState(null),[vt,Sr]=I.useState(null),[Ar,Bn]=I.useState(null),[tt,Rn]=I.useState({}),[vr,_r]=I.useState(""),[ui,wr]=I.useState(!1),nn=I.useRef(null),Fn=I.useRef(null),{tooltipPortal:li,setPopoverVisible:j}=t1({config:e,files:ne,debugTooltipSticky:x,videoState:tt}),{handleFileChange:te,handleRemoveFile:le}=Fl({config:e,messageApi:U,activeBatchKey:vt,activeFileKey:_e,activeBatchStartIndex:Ar,setActiveFileKey:Ge,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setFiles:X}),fe=I.useRef(null),[ye,Ke]=I.useState({showLeft:!1,showRight:!1}),Qe=I.useCallback(()=>{const ee=fe.current;ee&&Ke({showLeft:ee.scrollLeft>0,showRight:ee.scrollLeft+ee.clientWidth<ee.scrollWidth-1})},[]),rt=I.useCallback(ee=>{if(!ee.target.files||ee.target.files.length===0)return;const ue=10*1024*1024,me=50*1024*1024,ve=Ue=>Ue.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Ue.name||""),Fe=Array.from(ee.target.files).filter(Ue=>ve(Ue)&&Ue.size>ue?(U.error("图片大小不能超过 10MB"),!1):!0);se(Ue=>{const Te=Ue.reduce((ke,Oe)=>ke+Oe.size,0),xe=[];let Se=Te;for(const ke of Fe){if(Se+ke.size>me){U.error("文件总大小不能超过 50MB");break}xe.push(ke),Se+=ke.size}return xe.length>0?[...Ue,...xe]:Ue}),ee.target.value="",setTimeout(Qe,0)},[U,Qe]),Mt=I.useCallback(ee=>{se(ue=>ue.filter((me,ve)=>ve!==ee)),setTimeout(Qe,0)},[Qe]),Bt=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:200,behavior:"smooth"})},[]),$e=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:-200,behavior:"smooth"})},[]),dt=I.useRef(!1),at=I.useRef(null),{handleMouseDown:my,handleMouseMove:gy,handleMouseUp:by,handleDoubleClick:Ey}=ac({lockStructure:i,onAgentExit:u,editorRef:V,setPopoverVisible:j,isDraggingRef:dt,mouseDownPosRef:at}),[nl,kr]=I.useState(!1),rl=I.useRef(null),[yy,al]=I.useState(!0),Ty=I.useRef(0),[il,xy]=I.useState(58),[Cy,Sy]=I.useState(58),[sl,Ay]=I.useState(!1),[Nr,ci]=I.useState(null),Hn=I.useRef(!1),$n=I.useRef(!1),ft=I.useRef(null),[di,fi]=I.useState({}),Ir=I.useRef(()=>{}),[Rt,Lr]=I.useState({}),ol=I.useRef(()=>{}),vy=I.useRef({}),pi=I.useRef(Rt);I.useEffect(()=>{pi.current=Rt},[Rt]);const[Ft,hi]=I.useState({}),ul=I.useRef(()=>{}),ll=I.useRef(Ft);I.useEffect(()=>{ll.current=Ft},[Ft]);const[Ht,Un]=I.useState(()=>{const ee={};return e.forEach(ue=>{ue.type==="multi-variable"&&ue.key&&(ee[ue.key]=1)}),ee});Wl({config:e,editorRef:V,files:ne,setFiles:X,multiVariableCounts:Ht,setMultiVariableCounts:Un,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,nodeValues:v});const cl=I.useRef(v);if(v!==cl.current&&(cl.current=v,v)){const ee={};let ue=!1;e.forEach(me=>{if(me.type==="multi-variable"&&me.key){const ve=v[me.key];if(Array.isArray(ve)&&ve.length>0){const Fe=me.maxCount??9,Ue=Math.min(ve.length+1,Fe);Ht[me.key]!==Ue&&(ee[me.key]=Ue,ue=!0)}}}),ue&&Un(me=>({...me,...ee}))}const we=Jl({config:e,reportAnalyzeState:di,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft}),{handleReportUrlBlur:_y,handleMarkdownBlur:wy,handleMarkdownNameBlur:ky}=Xl({reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,editorRef:V,reportAnalyzeRef:Ir,markdownAnalyzeRef:ol,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownNameAnalyzeStateRef:ll});Pl(V,_y,[we]),Ml(V,ky,[we]),Bl(V,wy,[we]),Dl(V,[we]),B1(V,we,ne,i,Ht,rl,void 0,p,void 0,v,tt);const mi=I.useRef(new Set),dl=I.useRef(we),fl=I.useRef(v);(dl.current!==we||fl.current!==v)&&(dl.current=we,fl.current=v,mi.current=new Set),I.useEffect(()=>{if(!v||!we||we.length===0)return;const ee=we.filter(Te=>Te.type==="upload"&&Te.key);if(ee.length===0)return;const ue={},me=(Te,xe)=>{xe&&(xe instanceof File?ue[Te]=xe:typeof xe=="string"&&xe.trim()&&(ue[Te]=xe.trim()))};for(const Te of ee){const xe=Te.key;if(mi.current.has(xe))continue;const Se=v[xe],ke=typeof Te.maxCount=="number"&&Te.maxCount>1;if(Array.isArray(Se)&&Se.length>0){ke?Se.forEach((Oe,Ye)=>me(`${xe}-${Ye}`,Oe)):me(xe,Se[0]);continue}if(Se&&!Array.isArray(Se)){me(xe,Se);continue}if(ke)for(let Oe=0;Oe<Te.maxCount;Oe++){const Ye=`${xe}-${Oe}`,_t=v[Ye];if(!_t)break;me(Ye,_t)}}if(Object.keys(ue).length===0)return;for(const Te of ee)v[Te.key]!==void 0&&mi.current.add(Te.key);X(Te=>{const xe={...Te};let Se=!1;for(const ke of ee){const Oe=ke.key;if(v[Oe]===void 0)continue;if(typeof ke.maxCount=="number"&&ke.maxCount>1)for(let _t=0;_t<ke.maxCount;_t++){const Ei=`${Oe}-${_t}`;!ue[Ei]&&Te[Ei]&&(xe[Ei]=null,Se=!0)}}for(const[ke,Oe]of Object.entries(ue))Te[ke]!==Oe&&(xe[ke]=Oe,Se=!0);return Se?xe:Te});const ve=Object.entries(ue).filter(([,Te])=>typeof Te=="string");if(ve.length===0)return;const Fe=async Te=>{const xe=Te.split("/").pop()?.split("?")[0]||"file",Se=decodeURIComponent(xe),ke=async Oe=>{const Ye=await Oe.blob();return new File([Ye],Se,{type:Ye.type||"application/octet-stream"})};try{const Oe=`/api/image-proxy?url=${encodeURIComponent(Te)}`,Ye=await fetch(Oe);if(Ye.ok)return ke(Ye)}catch{}return null};let Ue=!1;return Promise.all(ve.map(async([Te,xe])=>{const Se=await Fe(xe);return Se?{key:Te,file:Se}:null})).then(Te=>{if(Ue)return;const xe={};for(const Se of Te)Se&&(xe[Se.key]=Se.file);Object.keys(xe).length>0&&X(Se=>{const ke={...Se};let Oe=!1;for(const[Ye,_t]of Object.entries(xe))typeof ke[Ye]=="string"&&(ke[Ye]=_t,Oe=!0);return Oe?ke:Se})}),()=>{Ue=!0}},[v,we]);const gi=I.useRef(new Set),pl=I.useRef(""),hl=(e||[]).filter(ee=>ee.key&&ee.type!=="report-module"&&ee.type!=="markdown-module").map(ee=>`${ee.type}:${ee.key}`).join("|");pl.current!==hl&&(pl.current=hl,gi.current=new Set),I.useEffect(()=>{if(!v||!e||e.length===0)return;const ee=e.filter(ue=>ue.type==="report-url"&&ue.key);if(ee.length!==0)for(const ue of ee){const me=ue.key;if(gi.current.has(me))continue;const ve=v[me]??v[`${me}__url`];if(!ve||typeof ve=="string"&&!ve.trim())continue;const Fe=Array.isArray(ve)?ve[0]:String(ve);Fe&&(gi.current.add(me),setTimeout(()=>{Ir.current(me,Fe)},100))}},[v,e,Ir]),R1(V,we,ne,j,x),F1(V,we,j,p,x),$1(V,we,ne,j,x),H1(V,we,j,x),U1(V,we,ne,kr,tt,v),ql(V,C,tt,Rn,[we]);const Ny=zl(F,Rn);Vl(V,tt,j,x),q1(V,dt);const ml=Sl(V),Iy=vl(V),Ly=wl(V),gl=Ol(V);I.useEffect(()=>{if(!V.current)return;V.current.querySelectorAll(".rte-richtext-toggle").forEach(ue=>{const me=ue.getAttribute("data-expanded")==="true";ue.innerHTML=me?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})},[we,V]);const bl=ty(V),{measureExpandedContentHeight:qn}=Kl({collapsed:y,collapseTransitionMs:A,contentRef:L,contentBodyRef:W,editorRef:V,debugIdRef:ae,setCollapsedContentMaxHeightPx:xy,setExpandedContentMaxHeightPx:Sy,setIsCollapseAnimating:Ay,effectiveConfig:we,files:ne,multiVariableCounts:Ht,selectPortalsLength:ml.length,datePickerPortalsLength:bl.length,variablePortalsLength:gl.length}),Oy=()=>{if(y)return;const ee=W.current;if(!ee)return;const ue=Math.ceil(ee.getBoundingClientRect().height||0);ue>0&&ci(ue),Hn.current=!0,$n.current=!1,ft.current&&(window.clearTimeout(ft.current),ft.current=null)};I.useEffect(()=>{const ee=()=>{Hn.current&&($n.current=!0,ft.current&&window.clearTimeout(ft.current),ft.current=window.setTimeout(()=>{ft.current=null,Hn.current=!1,$n.current=!1,ci(null),window.requestAnimationFrame(()=>qn())},450))};return window.addEventListener("focus",ee),()=>window.removeEventListener("focus",ee)},[qn]),I.useEffect(()=>{!Hn.current||!$n.current||(ft.current&&(window.clearTimeout(ft.current),ft.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{ci(null),qn(),Hn.current=!1,$n.current=!1})}))},[ne,qn]),Ql({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr});const Dy=tc({disabled:r,collapsed:y,onCollapsedChange:M,config:e,lockStructure:i,editorRef:V,containerRef:G,fileInputRef:R,onBeforeFilePickerOpen:Oy,files:ne,setFiles:X,handleRemoveFile:le,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setActiveFileKey:Ge,isDraggingRef:dt,richtextPrevScrollTopRef:Ty,videoState:tt,setVideoState:Rn,videoFileInputRef:nn,activeVideoKeyRef:Fn,onImagePreview:ee=>{_r(ee),wr(!0)}}),bi=nc({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr,setReportAnalyzeState:fi,setMarkdownAnalyzeState:Lr,setMarkdownNameAnalyzeState:hi,collapsed:y,measureExpandedContentHeight:qn,effectiveConfig:we,files:ne,multiVariableCounts:Ht,setMultiVariableCounts:Un,savedCursorRef:rl,videoState:tt}),Py=ic({disabled:r,config:e,multiVariableCounts:Ht,setMultiVariableCounts:Un,editorRef:V,handleInput:bi,markdownAnalyzeRef:ol,reportAnalyzeRef:Ir,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownRawTextRef:vy,setMarkdownAnalyzeState:Lr,setFooterFiles:se,footerFiles:re,messageApi:U,onPasteUnsupported:()=>U.warning("暂不支持上传该文件类型")});ec({config:e,effectiveConfig:we,files:ne,editorRef:V,setIsFormValid:kr,multiVariableCounts:Ht,setMultiVariableCounts:Un,videoState:tt});const My=rc({disabled:r,lockStructure:i,config:e,editorRef:V,handleInput:bi}),By=sc({config:e,files:ne,footerFiles:re,onFooterFilesClear:()=>se([]),onSend:t,isProcessing:n,disabled:r,loading:l,isFormValid:nl,editorRef:V,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft,videoState:tt}),Ry={...a?{width:typeof a=="number"?`${a}px`:a}:{},...f?{border:f}:{},...g?{background:g}:{},...T?{maxHeight:typeof T=="number"?`${T}px`:T}:{},...h?{minHeight:typeof h=="number"?`${h}px`:h}:{},...re.length>0?{height:"220px"}:{},...T?{"--rte-richtext-fullscreen-height":typeof T=="number"?`${T}px`:T}:{},...m?{"--rte-editor-min-height":typeof m=="number"?`${m}px`:m}:{},...b?{"--rte-editor-padding":b}:{},...E?{"--rte-footer-padding":E}:{}},Fy=typeof A=="number"&&Number.isFinite(A)&&A>=0?A:260,Hy={overflow:"hidden"},$y=Nr!=null?`${Nr}px`:y?`${il}px`:`${Math.max(Cy,il)}px`,Uy=Nr!=null||y||sl?"hidden":"auto",El=I.useRef(y),yl=El.current!==y;yl&&(El.current=y);const qy=Nr!=null?"none":yl||sl?`max-height ${Fy}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",zy={maxHeight:$y,minHeight:y?0:void 0,overflow:Uy,overscrollBehavior:"contain",transition:qy,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:Ry,"data-disabled":r,ref:G,children:[$,q.jsxs("div",{className:"rich-text-editor-content",ref:L,style:Hy,children:[re.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[ye.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",onClick:$e,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",children:q.jsx("svg",{style:{width:"16px",height:"16px",transform:"rotate(180deg)"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})}),q.jsx("div",{className:"rte-footer-files-list",ref:fe,onScroll:Qe,children:re.map((ee,ue)=>{const me=ee.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name||""),ve=ee.size<1024?`${ee.size}B`:ee.size<1024*1024?`${Math.round(ee.size/1024)}KB`:`${(ee.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[me?q.jsx(ce.Image,{style:{width:"32px",height:"32px",objectFit:"cover"},preview:{mask:q.jsx("span",{style:{fontSize:"12px",borderRadius:"4px"},children:"查看"})},className:"rte-footer-file-thumb",src:URL.createObjectURL(ee),alt:ee.name}):q.jsx("div",{className:"rte-footer-file-icon",children:q.jsx("svg",{style:{width:"18px",height:"18px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:`#${(()=>{const Fe=(ee.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(Fe)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(Fe)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(Fe)?"icon-ppt":["txt","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","in","js","ksh","php","pkl","rb","tar","tex","ts","xml"].includes(Fe)?"icon-txt":Fe==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(Fe)?"icon-a-htmljson":Fe==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:ee.name,children:ee.name}),q.jsx("span",{className:"rte-footer-file-size",children:ve})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>Mt(ue),children:"×"})]},`${ee.name}-${ee.size}-${ue}`)})}),ye.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",onClick:Bt,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:W,className:"rich-text-editor-content-body",style:zy,children:[q.jsx("div",{ref:V,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${yy&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:my,onMouseMove:gy,onMouseUp:by,onClick:Dy,onDoubleClick:Ey,onInput:bi,onKeyDown:My,onPaste:Py}),q.jsx("input",{type:"file",ref:R,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:te}),q.jsx("input",{type:"file",ref:nn,className:"rte-file-input",accept:"video/*",onChange:ee=>{const ue=ee.target.files?.[0],me=Fn.current;ue&&ue.size>1024*1024*1024?U.warning("视频文件不能超过1GB"):ue&&me&&Ny(me,ue),Fn.current=null,nn.current&&(nn.current.value="")}})]})]}),q.jsxs("div",{className:"rich-text-editor-footer",children:[q.jsxs("div",{className:"rich-text-editor-footer-left",children:[q.jsx("div",{className:"rich-text-editor-brand",children:p!=="hideAgent"&&q.jsx(ce.Dropdown,{placement:"topLeft",menu:{items:s.filter(ee=>ee.isShowNew!==1).map(ee=>({key:ee.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ee.icon&&q.jsx("i",{className:ee.icon}),q.jsx("span",{children:ee.label})]}),onClick:()=>{o?.(ee)}}))},trigger:["click"],disabled:r||n,overlayClassName:"rte-agent-dropdown",children:q.jsxs("div",{className:"rte-agent-badge",style:{cursor:s.length>0?"pointer":"default"},children:[q.jsx("i",{className:"iconfont icon-zhinengti",style:{fontSize:"16px"}}),q.jsx("span",{className:"rte-agent-text",children:"智能体"})]})})}),!e.find(ee=>ee.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>K.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:K,className:"rte-file-input",accept:".pdf,.xla,.xlb,.xlc,.xlm,.xls,.xlsx,.xlt,.xlw,.csv,.tsv,.iif,.doc,.docx,.dot,.odt,.rtf,.pot,.ppa,.pps,.ppt,.pptx,.pwz,.wiz,.asm,.bat,.c,.cc,.conf,.cpp,.css,.cxx,.def,.dic,.eml,.h,.hh,.htm,.html,.ics,.ifb,.in,.js,.json,.ksh,.png,.jpeg,.jpg,.gif,.webp,.md,.php,.pkl,.rb,.tar,.tex,.ts,.txt,.xml,",multiple:!0,onChange:rt})]})]}),q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsxs("div",{className:"rte-brand-badge",children:[q.jsx("div",{className:"rte-brand-badge",children:q.jsx("img",{src:"https://oospublic.sealseek.cn/file/website/ball.png",alt:""})}),q.jsx("span",{className:"rte-brand-text",style:{marginLeft:"4px"},children:"SealSeek 2.0"})]}),(()=>{const ee=e.find(me=>me.type==="tag");if(!ee||!ee.text)return null;const ue=s.find(me=>me.label===ee.text);return!ue||ue.points===void 0||ue.points===null?null:q.jsxs("div",{className:"rte-points-badge",style:{position:"relative"},children:[q.jsx("i",{className:"iconfont icon-jifen",style:{marginRight:"4px",fontSize:"16px"}}),q.jsxs("span",{style:{fontSize:"16px",lineHeight:"22px"},children:["-",String(ue.points)]}),ue.labelValue===2&&q.jsx("div",{className:"rte-limited-free-badge",children:q.jsx("span",{className:"rte-limited-free-text",children:"限时免费"})})]})})(),q.jsx("button",{type:"button",onClick:By,disabled:n||r||l||!nl,className:"rich-text-editor-send-button",children:n||l?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),li,q.jsx(ce.Image,{style:{display:"none"},src:vr,preview:{visible:ui,onVisibleChange:ee=>wr(ee)}}),bl,ml,Iy,Ly,gl]})};Wu.__docgenInfo={displayName:"RichTextEditor",description:"结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",props:{config:{name:"config",required:!0,description:"结构化输入配置节点数组",type:{name:"InputNode[]",raw:"InputNode[]"}},onSend:{name:"onSend",required:!0,description:"点击发送按钮时的回调,返回数据与拼接后的 Prompt",type:{name:"function",raw:"(data: Record<string, any>, fullPrompt: string) => void"}},isProcessing:{name:"isProcessing",required:!1,description:"是否处于处理状态(禁用输入与发送)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}}}};const ju="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",ny=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],ry=({autoLoading:e,batchSize:t,loadingProgress:n,loadIcon:r,onBatchSizeChange:a,onLoadNextPage:i,onStartAutoLoad:s,onStopLoad:o})=>e&&n?q.jsxs("div",{className:"auto_load_progress",children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",n.currentPage,"/",n.totalPages,"页"]}),q.jsx(ce.Progress,{percent:n.percentage,type:"line",size:[160,8]}),q.jsx("span",{onClick:o,className:"auto_load_stop_btn",children:"停止加载"})]}):q.jsxs("div",{className:"auto_load_container",children:[q.jsx("div",{onClick:i,className:"auto_load_next_btn",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:"加载下一页"}),q.jsxs("div",{className:"right_control_wrap",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:[q.jsxs("div",{className:"auto_load_btn",onClick:e?void 0:s,children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(ce.Select,{value:t,onChange:a,options:ny,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),ay=({current:e,loadIcon:t,pageSize:n,total:r,cachedPages:a,loadedCount:i,autoLoading:s=!1,loadingProgress:o,onChange:u,onLoadNextPage:l,onStartAutoLoad:c,onStopLoading:f})=>{const[g,p]=I.useState(5),T=Math.ceil(r/n),h=I.useMemo(()=>a.length>=T,[a,T]),m=()=>Array.from({length:T},(y,_)=>_+1).filter(y=>!a.includes(y)).slice(0,g),b=(E,y,_)=>{const w=a.includes(E);return y==="prev"||y==="next"||y==="jump-prev"||y==="jump-next"?q.jsx("div",{className:"pageBox",children:_}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===E?"#2563EB":"#f5f5f5",color:e===E?"#fff":w?"#171717":"#a3a3a3"},children:[E,!w&&q.jsx("span",{className:"unload_spot"})]})};return q.jsxs("div",{className:"pagination_footer",children:[q.jsxs("div",{className:"pagination_leftWrap",children:[q.jsxs("span",{className:"pagination_total",children:[q.jsx(gt.InfoCircleOutlined,{style:{color:"#2563EB",marginRight:"4px"}}),"已加载: ",i,"/",r,"条数据"]}),!h&&q.jsx(ry,{loadIcon:t||void 0,autoLoading:s,batchSize:g,loadingProgress:o,disabled:!l||!c,onBatchSizeChange:p,onLoadNextPage:()=>l?.(),onStartAutoLoad:()=>{const E=m();c?.(E)},onStopLoad:()=>f?.()})]}),q.jsx(ce.Pagination,{current:e,pageSize:n,total:r,onChange:E=>u(E),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:b})]})},Xu=e=>{const{loading:t,autoLoading:n,loadingProgress:r,columns:a=[],dataSource:i=[],total:s,current:o,pageSize:u,cachedPages:l,onChangePage:c,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p,...T}=e,h=I.useRef(null),m=I.useCallback(b=>{c(b),l.includes(b)&&h.current?.scrollTo({key:`${(b-1)*u+1}`})},[l,c,u]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(ce.Table,{ref:h,...T,columns:a,dataSource:i,pagination:!1,virtual:!0}),q.jsx(ay,{loading:t,autoLoading:n,loadingProgress:r,current:o,pageSize:u,total:s,loadedCount:i.length,cachedPages:l,onChange:m,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p})]})};Xu.__docgenInfo={displayName:"VirtualTable",description:"虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",props:{loading:{description:"加载状态",name:"loading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},total:{description:"总数据条数",name:"total",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"0"}},current:{description:"当前页码",name:"current",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"1"}},pageSize:{description:"每页数据条数",name:"pageSize",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"10"}},cachedPages:{description:"已缓存的页码数组",name:"cachedPages",required:!0,type:{name:"number[]",raw:"number[]"},defaultValue:{value:"[]"}},dataSource:{description:"数据源",name:"dataSource",required:!0,type:{name:"Array<T>",raw:"Array<T>"},defaultValue:{value:"[]"}},onChangePage:{description:"页码变更回调函数",name:"onChangePage",required:!0,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},autoLoading:{description:"是否正在自动加载",name:"autoLoading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},loadingProgress:{description:"加载进度信息",name:"loadingProgress",required:!0,type:{name:"object",raw:"{percentage: 0, currentPage: 1, totalPages: 5}"},defaultValue:{value:"-"}},onLoadNextPage:{description:"加载下一页回调函数",name:"onLoadNextPage",required:!1,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},onStartAutoLoad:{description:"开始自动加载回调函数",name:"onStartAutoLoad",required:!1,type:{name:"function",raw:"function(loadNextPages: number[]): void"},defaultValue:{value:"-"}},onStopLoading:{description:"停止加载回调函数",name:"onStopLoading",required:!1,type:{name:"function",raw:"function(): void"},defaultValue:{value:"-"}},columns:{description:"表格列配置",name:"columns",required:!0,type:{name:"Array<object>",raw:"Array<object>"},defaultValue:{value:"[]"}}}};const Ku=({texts:e=[],placeholder:t="请输入内容",animationSpeed:n=100,autoPlay:r=!0,value:a,onChange:i,...s})=>{const[o,u]=I.useState(""),[l,c]=I.useState(0),[f,g]=I.useState(!1),[p,T]=I.useState(!1),[h,m]=I.useState(!1),b=I.useRef(void 0),E=I.useRef(void 0),y=I.useRef(e),_=I.useRef(l),w=I.useRef(p),S=I.useRef(o);I.useEffect(()=>{y.current=e,_.current=l,w.current=p,S.current=o});const M=I.useCallback((N,C)=>{let F=0;m(!0);const U=()=>{F<N.length?(u(N.slice(0,F+1)),F++,E.current=window.setTimeout(U,n)):(m(!1),C?.())};U()},[n]),A=I.useCallback(N=>{let C=S.current.length;const F=()=>{C>0?(u(S.current.slice(0,C-1)),C--,E.current=window.setTimeout(F,n/2)):N?.()};F()},[n]),x=I.useCallback(()=>{if(y.current.length===0||w.current)return;g(!0);const N=y.current[_.current];S.current?A(()=>{M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})}):M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})},[A,M]);I.useEffect(()=>(r&&e.length>0&&!p&&x(),()=>{b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current)}),[l,p,r,e.length,x]),I.useEffect(()=>{!f&&r&&e.length>0&&!p&&x()},[l,f,r,e.length,p,x]);const v=N=>{T(!0),b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current),g(!1),m(!1),s.onFocus?.(N)},k=N=>{T(!1),!a&&e.length>0&&(u(""),c(0)),s.onBlur?.(N)},D=N=>{i?.(N.target.value),s.onChange?.(N)},P=()=>p||a?t:o||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(ce.Input,{...s,value:a,onChange:D,onFocus:v,onBlur:k,placeholder:P(),style:{...s.style,position:"relative",zIndex:1}}),!p&&!a&&o&&q.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",paddingLeft:11,paddingRight:11,color:"#bfbfbf",pointerEvents:"none",zIndex:2,fontSize:14,fontFamily:"inherit"},children:[q.jsx("span",{children:o}),h&&q.jsx("span",{style:{display:"inline-block",width:1,height:"1.2em",backgroundColor:"#1890ff",marginLeft:2,animation:"blink 1s infinite"}})]}),q.jsx("style",{children:`
|
|
64
|
+
`);return U.replace(/\n/g,"").trim().length>0?U:""})();F&&(P.getAttribute("data-node-type")==="report-url"?E[`${N}__url`]=F:P.getAttribute("data-node-type")==="markdown-name"?E[`${N}__name`]=F:E[N]=F)}}),e.current.querySelectorAll('[data-type="select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.value.replace(/[\u200B]/g,"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.getAttribute("data-node-type")||"",F=C==="report-module"||C==="markdown-module",U=F?(P.innerHTML||"").replace(/[\u200B]/g,"").trim():(P.textContent||"").replace(/[\u200B]/g,"").trim();if(F){const $=Number.parseInt(P.getAttribute("data-module-index")||"0",10);E[`${N}__module_${Number.isFinite($)?$:0}`]=U}else U&&(E[N]=U)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.value||"").trim();C&&(E[N]=C)}})),l&&Object.keys(l).length>0){const S=new Set(t.filter(A=>A.type==="upload"&&A.key).map(A=>A.key)),M={};b||Object.entries(l).forEach(([A,x])=>{if(!Array.isArray(x))return;let v=0;for(let D=0;D<x.length;D++)`${A}_${D}`in E&&v++;let k=-1;for(let D=0;D<x.length;D++)f.current.has(`${A}_${D}`)&&(k=D);if(k>=v&&v<x.length)for(let D=v;D<x.length;D++)y.add(`${A}_${D}`)}),Object.entries(l).forEach(([A,x])=>{S.has(A)||(Array.isArray(x)?x.forEach((v,k)=>{v!=null&&String(v).trim()!==""&&(M[`${A}_${k}`]=String(v))}):x!=null&&String(x).trim()!==""&&(t.find(k=>k.key===A&&k.type==="report-url")?M[`${A}__url`]=String(x):M[A]=String(x)))}),Object.entries(M).forEach(([A,x])=>{const v=A in E,k=y.has(A),D=T.current[A]!==x;!k&&(!v||D)&&(E[A]=x)}),T.current=M}if(M1(e,t,n,r,E,a,o,u,c),b&&(p.current=!1),setTimeout(()=>{Vn(e)},0),i?.current){const{key:S,offset:M}=i.current;setTimeout(()=>{if(!e.current)return;const A=e.current.querySelector(`[data-type="variable"][data-key="${S}"]`);if(A){if(A.dataset.variableRender==="antd-textarea"){const x=A.querySelector("textarea");if(x){x.focus();try{const v=x.value?.length??0;x.setSelectionRange(Math.min(M,v),Math.min(M,v))}catch{}i.current=null;return}}try{const x=document.createRange(),v=document.createTreeWalker(A,NodeFilter.SHOW_TEXT,null);let k=0,D=null,P=0;for(;v.nextNode();){const N=v.currentNode,C=N.textContent?.length||0;if(k+C>=M){D=N,P=M-k;break}k+=C}if(D){x.setStart(D,Math.min(P,D.textContent?.length||0)),x.collapse(!0);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}else{x.selectNodeContents(A),x.collapse(!1);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}}catch{const x=document.createRange();x.selectNodeContents(A),x.collapse(!1);const v=window.getSelection();v&&(v.removeAllRanges(),v.addRange(x),A.focus())}i.current=null}},0)}},[t,n,r,e,a,i,s,o,u,l,c]);I.useEffect(()=>{h()},[h])}function R1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=l=>typeof l=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(l):l.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(l.name||""),o=l=>{const c=l.target?.closest(".upload-info-icon");if(c&&c.classList.contains("upload-info-icon")){const g=c.dataset.uploadKey;if(g){const p=c.dataset.tooltip||"";let T=!1;try{const m=JSON.parse(p);m&&m.type==="steps"&&Array.isArray(m.images)&&(T=!0)}catch{}if(T){const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}else{const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}}return}const f=l.target?.closest('[data-type="upload"]');if(f){const g=f.dataset.key;if(g){const p=n[g];p&&s(p)&&r({key:g,anchorEl:f,type:"upload-preview"})}}},u=l=>{if(a)return;const c=l.target?.closest(".upload-info-icon"),f=l.relatedTarget;if(f?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const p=c.closest('[data-type="upload"], [data-type="video-upload"]');if(f&&p&&p.contains(f))return;if(!f||!i.contains(f))r(null);else{const T=f.closest('[data-type="upload"], [data-type="video-upload"]');(!T||T!==p)&&r(null)}return}const g=l.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(g){const p=f;if(p?.closest?.(".rte-tooltip-overlay")||p&&g.contains(p))return;r(null)}};return i.addEventListener("mouseover",o,!0),i.addEventListener("mouseout",u,!0),()=>{i.removeEventListener("mouseover",o,!0),i.removeEventListener("mouseout",u,!0)}},[t,n,e,r,a])}function F1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=c=>{if(r==="hideTagClose")return;const f=c.currentTarget,g=f.dataset.tooltip,p=f.dataset.tagKey||"";g&&n({key:p,anchorEl:f,type:"tag"})},o=c=>{a||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||n(null)};let u;const l=()=>{i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.addEventListener("mouseenter",s),f.addEventListener("mouseleave",o)})};return u=requestAnimationFrame(()=>{u=requestAnimationFrame(l)}),()=>{cancelAnimationFrame(u),i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.removeEventListener("mouseenter",s),f.removeEventListener("mouseleave",o)})}},[t,e,n,r,a])}function H1(e,t,n,r){I.useEffect(()=>{const a=e.current;if(!a)return;const i=o=>{const u=o.target?.closest(".variable-info-icon");if(u&&u.classList.contains("variable-info-icon")){const c=u.dataset.variableKey;c&&n({key:c,anchorEl:u,type:"variable"});return}const l=o.target?.closest('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(l){const c=l.dataset.key;c&&n({key:c,anchorEl:l,type:"variable"})}},s=o=>{if(r)return;const u=o.target,l=o.relatedTarget;if(l?.closest?.(".rte-tooltip-overlay"))return;const c=u?.closest?.(".variable-info-icon"),f=u?.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(c||f){if(!l||!a.contains(l)){n(null);return}const g=!!l.closest?.(".variable-info-icon"),p=!!l.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');!g&&!p&&n(null)}};return a.addEventListener("mouseover",i,!0),a.addEventListener("mouseout",s,!0),()=>{a.removeEventListener("mouseover",i,!0),a.removeEventListener("mouseout",s,!0)}},[t,e,n,r])}function $1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=f=>typeof f=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(f):f.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name||""),o=f=>{const g=f.currentTarget,p=g.dataset.fileName,T=g.closest('[data-type="upload"]'),h=T?.dataset.key||"",m=h?n[h]:null;if(m&&s(m)){r({key:h,anchorEl:T||g,type:"upload-preview"});return}p&&r({key:h,anchorEl:T||g,type:"upload-label"})},u=f=>{a||f.relatedTarget?.closest?.(".rte-tooltip-overlay")||r(null)};let l;const c=()=>{i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.addEventListener("mouseenter",o),g.addEventListener("mouseleave",u)})};return l=requestAnimationFrame(()=>{l=requestAnimationFrame(c)}),()=>{cancelAnimationFrame(l),i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.removeEventListener("mouseenter",o),g.removeEventListener("mouseleave",u)})}},[t,n,e,r,a])}function U1(e,t,n,r,a,i){I.useEffect(()=>{const s=setTimeout(()=>{Dr(e,t,n,a),Pr(e,t,n,r,a)},0);return()=>clearTimeout(s)},[n,t,e,r,a,i])}function q1(e,t){const n=I.useRef(0),r=I.useRef(0);I.useEffect(()=>{if(!e.current)return;let a=!1,i=0;const s=E=>E instanceof HTMLElement?!!(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker")||E.closest(".ant-picker-dropdown")):!1,o=E=>E instanceof HTMLElement?!!(E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown")):!1,u=E=>{a=!0,s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},l=()=>{a=!1,i=Date.now()};let c=!1,f=0;const g=()=>{c=!0},p=()=>{c=!1,f=Date.now()},T=()=>{f=Date.now()},h=E=>{s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},m=()=>{if(Date.now()-n.current<800||Date.now()-r.current<800)return;const E=document.activeElement;if(E&&(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker-dropdown")||E.tagName==="INPUT"&&E.closest(".ant-picker")||E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown"))||!e.current)return;const y=window.getSelection();if(!y||y.rangeCount===0||t.current||a||c||Date.now()-f<500)return;const _=y.getRangeAt(0);if(!_.collapsed)return e.current.contains(_.commonAncestorContainer),void 0;const w=y.anchorNode;if(!w||!e.current.contains(w))return;let S=!1,M=!1;if(w.nodeType===Node.ELEMENT_NODE){const x=w;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}else if(w.parentElement){const x=w.parentElement;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}if(S||M)return;let A=null;if(w.nodeType===Node.ELEMENT_NODE?A=w.closest('[data-type="variable"]'):w.nodeType===Node.TEXT_NODE&&w.parentElement&&(A=w.parentElement.closest('[data-type="variable"]')),!A){if(Date.now()-i>500)return;const x=e.current.querySelectorAll('[data-type="variable"]');if(x.length>0){let v=null;for(const k of Array.from(x))if(k.style.display!=="none"){v=k;break}if(!v&&x.length>0&&(v=x[0]),v){const k=document.createRange();k.selectNodeContents(v),k.collapse(!1),y.removeAllRanges(),y.addRange(k),v.focus()}else y.removeAllRanges()}else y.removeAllRanges()}},b=e.current;return b&&(b.addEventListener("compositionstart",g),b.addEventListener("compositionend",p),b.addEventListener("input",T)),document.addEventListener("mousedown",u),document.addEventListener("mouseup",l),document.addEventListener("focusin",h),document.addEventListener("selectionchange",m),()=>{b&&(b.removeEventListener("compositionstart",g),b.removeEventListener("compositionend",p),b.removeEventListener("input",T)),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",l),document.removeEventListener("focusin",h),document.removeEventListener("selectionchange",m)}},[e,t])}var Tr={exports:{}},z1=Tr.exports,Uu;function qu(){return Uu||(Uu=1,function(e,t){(function(n,r){e.exports=r()})(z1,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",s="second",o="minute",u="hour",l="day",c="week",f="month",g="quarter",p="year",T="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var C=["th","st","nd","rd"],F=N%100;return"["+N+(C[(F-20)%10]||C[F]||C[0])+"]"}},y=function(N,C,F){var U=String(N);return!U||U.length>=C?N:""+Array(C+1-U.length).join(F)+N},_={s:y,z:function(N){var C=-N.utcOffset(),F=Math.abs(C),U=Math.floor(F/60),$=F%60;return(C<=0?"+":"-")+y(U,2,"0")+":"+y($,2,"0")},m:function N(C,F){if(C.date()<F.date())return-N(F,C);var U=12*(F.year()-C.year())+(F.month()-C.month()),$=C.clone().add(U,f),G=F-$<0,L=C.clone().add(U+(G?-1:1),f);return+(-(U+(F-$)/(G?$-L:L-$))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:c,d:l,D:T,h:u,m:o,s,ms:i,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},w="en",S={};S[w]=E;var M="$isDayjsObject",A=function(N){return N instanceof D||!(!N||!N[M])},x=function N(C,F,U){var $;if(!C)return w;if(typeof C=="string"){var G=C.toLowerCase();S[G]&&($=G),F&&(S[G]=F,$=G);var L=C.split("-");if(!$&&L.length>1)return N(L[0])}else{var W=C.name;S[W]=C,$=W}return!U&&$&&(w=$),$||!U&&w},v=function(N,C){if(A(N))return N.clone();var F=typeof C=="object"?C:{};return F.date=N,F.args=arguments,new D(F)},k=_;k.l=x,k.i=A,k.w=function(N,C){return v(N,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var D=function(){function N(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[M]=!0}var C=N.prototype;return C.parse=function(F){this.$d=function(U){var $=U.date,G=U.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var L=$.match(m);if(L){var W=L[2]-1||0,V=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)}}return new Date($)}(F),this.init()},C.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},C.$utils=function(){return k},C.isValid=function(){return this.$d.toString()!==h},C.isSame=function(F,U){var $=v(F);return this.startOf(U)<=$&&$<=this.endOf(U)},C.isAfter=function(F,U){return v(F)<this.startOf(U)},C.isBefore=function(F,U){return this.endOf(U)<v(F)},C.$g=function(F,U,$){return k.u(F)?this[U]:this.set($,F)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(F,U){var $=this,G=!!k.u(U)||U,L=k.p(F),W=function(se,he){var _e=k.w($.$u?Date.UTC($.$y,he,se):new Date($.$y,he,se),$);return G?_e:_e.endOf(l)},V=function(se,he){return k.w($.toDate()[se].apply($.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(he)),$)},R=this.$W,K=this.$M,ae=this.$D,ne="set"+(this.$u?"UTC":"");switch(L){case p:return G?W(1,0):W(31,11);case f:return G?W(1,K):W(0,K+1);case c:var X=this.$locale().weekStart||0,re=(R<X?R+7:R)-X;return W(G?ae-re:ae+(6-re),K);case l:case T:return V(ne+"Hours",0);case u:return V(ne+"Minutes",1);case o:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},C.endOf=function(F){return this.startOf(F,!1)},C.$set=function(F,U){var $,G=k.p(F),L="set"+(this.$u?"UTC":""),W=($={},$[l]=L+"Date",$[T]=L+"Date",$[f]=L+"Month",$[p]=L+"FullYear",$[u]=L+"Hours",$[o]=L+"Minutes",$[s]=L+"Seconds",$[i]=L+"Milliseconds",$)[G],V=G===l?this.$D+(U-this.$W):U;if(G===f||G===p){var R=this.clone().set(T,1);R.$d[W](V),R.init(),this.$d=R.set(T,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](V);return this.init(),this},C.set=function(F,U){return this.clone().$set(F,U)},C.get=function(F){return this[k.p(F)]()},C.add=function(F,U){var $,G=this;F=Number(F);var L=k.p(U),W=function(K){var ae=v(G);return k.w(ae.date(ae.date()+Math.round(K*F)),G)};if(L===f)return this.set(f,this.$M+F);if(L===p)return this.set(p,this.$y+F);if(L===l)return W(1);if(L===c)return W(7);var V=($={},$[o]=r,$[u]=a,$[s]=n,$)[L]||1,R=this.$d.getTime()+F*V;return k.w(R,this)},C.subtract=function(F,U){return this.add(-1*F,U)},C.format=function(F){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var G=F||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),W=this.$H,V=this.$m,R=this.$M,K=$.weekdays,ae=$.months,ne=$.meridiem,X=function(he,_e,Ge,vt){return he&&(he[_e]||he(U,G))||Ge[_e].slice(0,vt)},re=function(he){return k.s(W%12||12,he,"0")},se=ne||function(he,_e,Ge){var vt=he<12?"AM":"PM";return Ge?vt.toLowerCase():vt};return G.replace(b,function(he,_e){return _e||function(Ge){switch(Ge){case"YY":return String(U.$y).slice(-2);case"YYYY":return k.s(U.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return X($.monthsShort,R,ae,3);case"MMMM":return X(ae,R);case"D":return U.$D;case"DD":return k.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return X($.weekdaysMin,U.$W,K,2);case"ddd":return X($.weekdaysShort,U.$W,K,3);case"dddd":return K[U.$W];case"H":return String(W);case"HH":return k.s(W,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return se(W,V,!0);case"A":return se(W,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(U.$s);case"ss":return k.s(U.$s,2,"0");case"SSS":return k.s(U.$ms,3,"0");case"Z":return L}return null}(he)||L.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(F,U,$){var G,L=this,W=k.p(U),V=v(F),R=(V.utcOffset()-this.utcOffset())*r,K=this-V,ae=function(){return k.m(L,V)};switch(W){case p:G=ae()/12;break;case f:G=ae();break;case g:G=ae()/3;break;case c:G=(K-R)/6048e5;break;case l:G=(K-R)/864e5;break;case u:G=K/a;break;case o:G=K/r;break;case s:G=K/n;break;default:G=K}return $?G:k.a(G)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return S[this.$L]},C.locale=function(F,U){if(!F)return this.$L;var $=this.clone(),G=x(F,U,!0);return G&&($.$L=G),$},C.clone=function(){return k.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},N}(),P=D.prototype;return v.prototype=P,[["$ms",i],["$s",s],["$m",o],["$H",u],["$W",l],["$M",f],["$y",p],["$D",T]].forEach(function(N){P[N[1]]=function(C){return this.$g(C,N[0],N[1])}}),v.extend=function(N,C){return N.$i||(N(C,D,v),N.$i=!0),v},v.locale=x,v.isDayjs=A,v.unix=function(N){return v(1e3*N)},v.en=S[w],v.Ls=S,v.p={},v})}(Tr)),Tr.exports}var V1=qu();const xr=Qr(V1);var Cr={exports:{}},G1=Cr.exports,zu;function Y1(){return zu||(zu=1,function(e,t){(function(n,r){e.exports=r(qu())})(G1,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,o){return o==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,o){var u=100*s+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return a.default.locale(i,null,!0),i})}(Cr)),Cr.exports}Y1();function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function W1(e,t){if(Dn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j1(e){var t=W1(e,"string");return Dn(t)=="symbol"?t:t+""}function X1(e,t,n){return(t=j1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vu(Object(n),!0).forEach(function(r){X1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var K1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q1=Gu(Gu({},K1),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const J1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Yu={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Q1),timePickerLocale:Object.assign({},J1)};Yu.lang.ok="确定",xr.locale("zh-cn");const{RangePicker:Z1}=ce.DatePicker,ey=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.value,a=e.dataset.placeholder,i=e.dataset.limitRange?parseInt(e.dataset.limitRange,10):void 0,s=e.dataset.disableFuture==="true",[o,u]=I.useState(()=>{if(!r)return null;const h=r.split(",");return h.length===2&&h[0]&&h[1]?[xr(h[0]),xr(h[1])]:null}),[l,c]=I.useState(null),f=h=>h?s&&h.isAfter(xr(),"day")?!0:!i||!l||!l[0]?!1:Math.abs(h.diff(l[0],"days"))>i:!1,g=h=>{c(h)},p=h=>{if(u(h),c(null),h&&h[0]&&h[1]){const m=`${h[0].format("YYYY-MM-DD")},${h[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",m),t(n,m)}else e.setAttribute("data-value",""),t(n,"")},T=h=>{c(h?o:null)};return $t.createPortal(q.jsx("div",{className:"rte-datepicker-wrapper",contentEditable:!1,style:{display:"inline-block",verticalAlign:"middle",width:"260px",marginLeft:"4px",marginRight:"4px",fontSize:"16px",height:"30px",lineHeight:"30px"},children:q.jsx(Z1,{value:o,disabledDate:f,onCalendarChange:g,onChange:p,onOpenChange:T,placeholder:[a||"开始日期",a||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:Yu,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},ty=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-datepicker-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(ey,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`datepicker-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t},Wu=({config:e,onSend:t,isProcessing:n=!1,disabled:r=!1,width:a,lockStructure:i=!1,agentOptions:s=[],onAgentSelect:o,onAgentExit:u,loading:l=!1,placeholder:c,border:f,background:g="transparent",hideButtons:p,maxHeight:T,minHeight:h,editorMinHeight:m,editorPadding:b,footerPadding:E,collapsed:y=!1,reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,onCollapsedChange:M,collapseTransitionMs:A=260,debugTooltipSticky:x=!1,nodeValues:v,onFilesChange:k,onFooterFilesChange:D,showFooterUpload:P=!0,footerFiles:N,videoUrlParse:C,videoUpload:F})=>{const[U,$]=ce.message.useMessage(),G=I.useRef(null),L=I.useRef(null),W=I.useRef(null),V=I.useRef(null),R=I.useRef(null),K=I.useRef(null),ae=I.useRef("");if(!ae.current){const ee=Math.random().toString(36).slice(2,8);ae.current=`rte_${ee}`}const[ne,X]=I.useState({});I.useEffect(()=>{k?.(ne)},[ne,k]);const[re,se]=I.useState([]),he=I.useRef(!1);I.useEffect(()=>{if(!N)return;if(!(N.length===re.length&&N.every((ue,me)=>{const Te=re[me];return Te&&ue.name===Te.name&&ue.size===Te.size&&ue.lastModified===Te.lastModified})))if(N.reduce((Te,Le)=>Te+Le.size,0)>52428800){const Te=[];let Le=0;for(const Pe of N){if(Le+Pe.size>52428800)break;Te.push(Pe),Le+=Pe.size}U.error("文件总大小不能超过 50MB"),se(Te)}else he.current=!0,se(N)},[N]),I.useEffect(()=>{if(he.current){he.current=!1;return}D?.(re)},[re,D]);const[_e,Ge]=I.useState(null),[vt,Sr]=I.useState(null),[Ar,Bn]=I.useState(null),[tt,Rn]=I.useState({}),[vr,_r]=I.useState(""),[ui,wr]=I.useState(!1),nn=I.useRef(null),Fn=I.useRef(null),{tooltipPortal:li,setPopoverVisible:j}=t1({config:e,files:ne,debugTooltipSticky:x,videoState:tt}),{handleFileChange:te,handleRemoveFile:le}=Fl({config:e,messageApi:U,activeBatchKey:vt,activeFileKey:_e,activeBatchStartIndex:Ar,setActiveFileKey:Ge,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setFiles:X}),fe=I.useRef(null),[ye,Ke]=I.useState({showLeft:!1,showRight:!1}),Qe=I.useCallback(()=>{const ee=fe.current;ee&&Ke({showLeft:ee.scrollLeft>0,showRight:ee.scrollLeft+ee.clientWidth<ee.scrollWidth-1})},[]),rt=I.useCallback(ee=>{if(!ee.target.files||ee.target.files.length===0)return;const ue=10*1024*1024,me=50*1024*1024,Te=Pe=>Pe.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Pe.name||""),Le=Array.from(ee.target.files).filter(Pe=>Te(Pe)&&Pe.size>ue?(U.error("图片大小不能超过 10MB"),!1):!0);se(Pe=>{const xe=Pe.reduce((ke,De)=>ke+De.size,0),Ce=[];let Ae=xe;for(const ke of Le){if(Ae+ke.size>me){U.error("文件总大小不能超过 50MB");break}Ce.push(ke),Ae+=ke.size}return Ce.length>0?[...Pe,...Ce]:Pe}),ee.target.value="",setTimeout(Qe,0)},[U,Qe]),Mt=I.useCallback(ee=>{se(ue=>ue.filter((me,Te)=>Te!==ee)),setTimeout(Qe,0)},[Qe]),Bt=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:200,behavior:"smooth"})},[]),Ue=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:-200,behavior:"smooth"})},[]),dt=I.useRef(!1),at=I.useRef(null),{handleMouseDown:my,handleMouseMove:gy,handleMouseUp:by,handleDoubleClick:Ey}=ac({lockStructure:i,onAgentExit:u,editorRef:V,setPopoverVisible:j,isDraggingRef:dt,mouseDownPosRef:at}),[nl,kr]=I.useState(!1),rl=I.useRef(null),[yy,al]=I.useState(!0),Ty=I.useRef(0),[il,xy]=I.useState(58),[Cy,Sy]=I.useState(58),[sl,Ay]=I.useState(!1),[Nr,ci]=I.useState(null),Hn=I.useRef(!1),$n=I.useRef(!1),ft=I.useRef(null),[di,fi]=I.useState({}),Ir=I.useRef(()=>{}),[Rt,Lr]=I.useState({}),ol=I.useRef(()=>{}),vy=I.useRef({}),pi=I.useRef(Rt);I.useEffect(()=>{pi.current=Rt},[Rt]);const[Ft,hi]=I.useState({}),ul=I.useRef(()=>{}),ll=I.useRef(Ft);I.useEffect(()=>{ll.current=Ft},[Ft]);const[Ht,Un]=I.useState(()=>{const ee={};return e.forEach(ue=>{ue.type==="multi-variable"&&ue.key&&(ee[ue.key]=1)}),ee});Wl({config:e,editorRef:V,files:ne,setFiles:X,multiVariableCounts:Ht,setMultiVariableCounts:Un,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,nodeValues:v});const cl=I.useRef(v);if(v!==cl.current&&(cl.current=v,v)){const ee={};let ue=!1;e.forEach(me=>{if(me.type==="multi-variable"&&me.key){const Te=v[me.key];if(Array.isArray(Te)&&Te.length>0){const Le=me.maxCount??9,Pe=Math.min(Te.length+1,Le);Ht[me.key]!==Pe&&(ee[me.key]=Pe,ue=!0)}}}),ue&&Un(me=>({...me,...ee}))}const we=Jl({config:e,reportAnalyzeState:di,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft}),{handleReportUrlBlur:_y,handleMarkdownBlur:wy,handleMarkdownNameBlur:ky}=Xl({reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,editorRef:V,reportAnalyzeRef:Ir,markdownAnalyzeRef:ol,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownNameAnalyzeStateRef:ll});Pl(V,_y,[we]),Ml(V,ky,[we]),Bl(V,wy,[we]),Dl(V,[we]),B1(V,we,ne,i,Ht,rl,void 0,p,void 0,v,tt);const mi=I.useRef(new Set),dl=I.useRef(we),fl=I.useRef(v);(dl.current!==we||fl.current!==v)&&(dl.current=we,fl.current=v,mi.current=new Set),I.useEffect(()=>{if(!v||!we||we.length===0)return;const ee=we.filter(xe=>xe.type==="upload"&&xe.key);if(ee.length===0)return;const ue={},me=(xe,Ce)=>{Ce&&(Ce instanceof File?ue[xe]=Ce:typeof Ce=="string"&&Ce.trim()&&(ue[xe]=Ce.trim()))};for(const xe of ee){const Ce=xe.key;if(mi.current.has(Ce))continue;const Ae=v[Ce],ke=typeof xe.maxCount=="number"&&xe.maxCount>1;if(Array.isArray(Ae)&&Ae.length>0){ke?Ae.forEach((De,Ye)=>me(`${Ce}-${Ye}`,De)):me(Ce,Ae[0]);continue}if(Ae&&!Array.isArray(Ae)){me(Ce,Ae);continue}if(ke)for(let De=0;De<xe.maxCount;De++){const Ye=`${Ce}-${De}`,_t=v[Ye];if(!_t)break;me(Ye,_t)}}if(Object.keys(ue).length===0)return;for(const xe of ee)v[xe.key]!==void 0&&mi.current.add(xe.key);X(xe=>{const Ce={...xe};let Ae=!1;for(const ke of ee){const De=ke.key;if(v[De]===void 0)continue;if(typeof ke.maxCount=="number"&&ke.maxCount>1)for(let _t=0;_t<ke.maxCount;_t++){const Ei=`${De}-${_t}`;!ue[Ei]&&xe[Ei]&&(Ce[Ei]=null,Ae=!0)}}for(const[ke,De]of Object.entries(ue))xe[ke]!==De&&(Ce[ke]=De,Ae=!0);return Ae?Ce:xe});const Te=Object.entries(ue).filter(([,xe])=>typeof xe=="string");if(Te.length===0)return;const Le=async xe=>{const Ce=xe.split("/").pop()?.split("?")[0]||"file",Ae=decodeURIComponent(Ce),ke=async De=>{const Ye=await De.blob();return new File([Ye],Ae,{type:Ye.type||"application/octet-stream"})};try{const De=`/api/image-proxy?url=${encodeURIComponent(xe)}`,Ye=await fetch(De);if(Ye.ok)return ke(Ye)}catch{}return null};let Pe=!1;return Promise.all(Te.map(async([xe,Ce])=>{const Ae=await Le(Ce);return Ae?{key:xe,file:Ae}:null})).then(xe=>{if(Pe)return;const Ce={};for(const Ae of xe)Ae&&(Ce[Ae.key]=Ae.file);Object.keys(Ce).length>0&&X(Ae=>{const ke={...Ae};let De=!1;for(const[Ye,_t]of Object.entries(Ce))typeof ke[Ye]=="string"&&(ke[Ye]=_t,De=!0);return De?ke:Ae})}),()=>{Pe=!0}},[v,we]);const gi=I.useRef(new Set),pl=I.useRef(""),hl=(e||[]).filter(ee=>ee.key&&ee.type!=="report-module"&&ee.type!=="markdown-module").map(ee=>`${ee.type}:${ee.key}`).join("|");pl.current!==hl&&(pl.current=hl,gi.current=new Set),I.useEffect(()=>{if(!v||!e||e.length===0)return;const ee=e.filter(ue=>ue.type==="report-url"&&ue.key);if(ee.length!==0)for(const ue of ee){const me=ue.key;if(gi.current.has(me))continue;const Te=v[me]??v[`${me}__url`];if(!Te||typeof Te=="string"&&!Te.trim())continue;const Le=Array.isArray(Te)?Te[0]:String(Te);Le&&(gi.current.add(me),setTimeout(()=>{Ir.current(me,Le)},100))}},[v,e,Ir]),R1(V,we,ne,j,x),F1(V,we,j,p,x),$1(V,we,ne,j,x),H1(V,we,j,x),U1(V,we,ne,kr,tt,v),ql(V,C,tt,Rn,[we]);const Ny=zl(F,Rn);Vl(V,tt,j,x),q1(V,dt);const ml=Sl(V),Iy=vl(V),Ly=wl(V),gl=Ol(V);I.useEffect(()=>{if(!V.current)return;V.current.querySelectorAll(".rte-richtext-toggle").forEach(ue=>{const me=ue.getAttribute("data-expanded")==="true";ue.innerHTML=me?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})},[we,V]);const bl=ty(V),{measureExpandedContentHeight:qn}=Kl({collapsed:y,collapseTransitionMs:A,contentRef:L,contentBodyRef:W,editorRef:V,debugIdRef:ae,setCollapsedContentMaxHeightPx:xy,setExpandedContentMaxHeightPx:Sy,setIsCollapseAnimating:Ay,effectiveConfig:we,files:ne,multiVariableCounts:Ht,selectPortalsLength:ml.length,datePickerPortalsLength:bl.length,variablePortalsLength:gl.length}),Oy=()=>{if(y)return;const ee=W.current;if(!ee)return;const ue=Math.ceil(ee.getBoundingClientRect().height||0);ue>0&&ci(ue),Hn.current=!0,$n.current=!1,ft.current&&(window.clearTimeout(ft.current),ft.current=null)};I.useEffect(()=>{const ee=()=>{Hn.current&&($n.current=!0,ft.current&&window.clearTimeout(ft.current),ft.current=window.setTimeout(()=>{ft.current=null,Hn.current=!1,$n.current=!1,ci(null),window.requestAnimationFrame(()=>qn())},450))};return window.addEventListener("focus",ee),()=>window.removeEventListener("focus",ee)},[qn]),I.useEffect(()=>{!Hn.current||!$n.current||(ft.current&&(window.clearTimeout(ft.current),ft.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{ci(null),qn(),Hn.current=!1,$n.current=!1})}))},[ne,qn]),Ql({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr});const Dy=tc({disabled:r,collapsed:y,onCollapsedChange:M,config:e,lockStructure:i,editorRef:V,containerRef:G,fileInputRef:R,onBeforeFilePickerOpen:Oy,files:ne,setFiles:X,handleRemoveFile:le,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setActiveFileKey:Ge,isDraggingRef:dt,richtextPrevScrollTopRef:Ty,videoState:tt,setVideoState:Rn,videoFileInputRef:nn,activeVideoKeyRef:Fn,onImagePreview:ee=>{_r(ee),wr(!0)}}),bi=nc({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr,setReportAnalyzeState:fi,setMarkdownAnalyzeState:Lr,setMarkdownNameAnalyzeState:hi,collapsed:y,measureExpandedContentHeight:qn,effectiveConfig:we,files:ne,multiVariableCounts:Ht,setMultiVariableCounts:Un,savedCursorRef:rl,videoState:tt}),Py=ic({disabled:r,config:e,multiVariableCounts:Ht,setMultiVariableCounts:Un,editorRef:V,handleInput:bi,markdownAnalyzeRef:ol,reportAnalyzeRef:Ir,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownRawTextRef:vy,setMarkdownAnalyzeState:Lr,setFooterFiles:se,footerFiles:re,messageApi:U,onPasteUnsupported:()=>U.warning("暂不支持上传该文件类型")});ec({config:e,effectiveConfig:we,files:ne,editorRef:V,setIsFormValid:kr,multiVariableCounts:Ht,setMultiVariableCounts:Un,videoState:tt});const My=rc({disabled:r,lockStructure:i,config:e,editorRef:V,handleInput:bi}),By=sc({config:e,files:ne,footerFiles:re,onFooterFilesClear:()=>se([]),onSend:t,isProcessing:n,disabled:r,loading:l,isFormValid:nl,editorRef:V,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft,videoState:tt}),Ry={...a?{width:typeof a=="number"?`${a}px`:a}:{},...f?{border:f}:{},...g?{background:g}:{},...T?{maxHeight:typeof T=="number"?`${T}px`:T}:{},...h?{minHeight:typeof h=="number"?`${h}px`:h}:{},...re.length>0?{height:"220px"}:{},...T?{"--rte-richtext-fullscreen-height":typeof T=="number"?`${T}px`:T}:{},...m?{"--rte-editor-min-height":typeof m=="number"?`${m}px`:m}:{},...b?{"--rte-editor-padding":b}:{},...E?{"--rte-footer-padding":E}:{}},Fy=typeof A=="number"&&Number.isFinite(A)&&A>=0?A:260,Hy={overflow:"hidden"},$y=Nr!=null?`${Nr}px`:y?`${il}px`:`${Math.max(Cy,il)}px`,Uy=Nr!=null||y||sl?"hidden":"auto",El=I.useRef(y),yl=El.current!==y;yl&&(El.current=y);const qy=Nr!=null?"none":yl||sl?`max-height ${Fy}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",zy={maxHeight:$y,minHeight:y?0:void 0,overflow:Uy,overscrollBehavior:"contain",transition:qy,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:Ry,"data-disabled":r,ref:G,children:[$,q.jsxs("div",{className:"rich-text-editor-content",ref:L,style:Hy,children:[re.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[ye.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",onClick:Ue,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",children:q.jsx("svg",{style:{width:"16px",height:"16px",transform:"rotate(180deg)"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})}),q.jsx("div",{className:"rte-footer-files-list",ref:fe,onScroll:Qe,children:re.map((ee,ue)=>{const me=ee.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name||""),Te=ee.size<1024?`${ee.size}B`:ee.size<1024*1024?`${Math.round(ee.size/1024)}KB`:`${(ee.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[me?q.jsx(ce.Image,{style:{width:"32px",height:"32px",objectFit:"cover"},preview:{mask:q.jsx("span",{style:{fontSize:"12px",borderRadius:"4px"},children:"查看"})},className:"rte-footer-file-thumb",src:URL.createObjectURL(ee),alt:ee.name}):q.jsx("div",{className:"rte-footer-file-icon",children:q.jsx("svg",{style:{width:"18px",height:"18px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:`#${(()=>{const Le=(ee.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(Le)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(Le)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(Le)?"icon-ppt":["txt","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","in","js","ksh","php","pkl","rb","tar","tex","ts","xml"].includes(Le)?"icon-txt":Le==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(Le)?"icon-a-htmljson":Le==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:ee.name,children:ee.name}),q.jsx("span",{className:"rte-footer-file-size",children:Te})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>Mt(ue),children:"×"})]},`${ee.name}-${ee.size}-${ue}`)})}),ye.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",onClick:Bt,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:W,className:"rich-text-editor-content-body",style:zy,children:[q.jsx("div",{ref:V,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${yy&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:my,onMouseMove:gy,onMouseUp:by,onClick:Dy,onDoubleClick:Ey,onInput:bi,onKeyDown:My,onPaste:Py}),q.jsx("input",{type:"file",ref:R,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:te}),q.jsx("input",{type:"file",ref:nn,className:"rte-file-input",accept:"video/*",onChange:ee=>{const ue=ee.target.files?.[0],me=Fn.current;ue&&ue.size>1024*1024*1024?U.warning("视频文件不能超过1GB"):ue&&me&&Ny(me,ue),Fn.current=null,nn.current&&(nn.current.value="")}})]})]}),q.jsxs("div",{className:"rich-text-editor-footer",children:[q.jsxs("div",{className:"rich-text-editor-footer-left",children:[q.jsx("div",{className:"rich-text-editor-brand",children:p!=="hideAgent"&&q.jsx(ce.Dropdown,{placement:"topLeft",menu:{items:s.filter(ee=>ee.isShowNew!==1).map(ee=>({key:ee.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ee.icon&&q.jsx("i",{className:ee.icon}),q.jsx("span",{children:ee.label})]}),onClick:()=>{o?.(ee)}}))},trigger:["click"],disabled:r||n,overlayClassName:"rte-agent-dropdown",children:q.jsxs("div",{className:"rte-agent-badge",style:{cursor:s.length>0?"pointer":"default"},children:[q.jsx("i",{className:"iconfont icon-zhinengti",style:{fontSize:"16px"}}),q.jsx("span",{className:"rte-agent-text",children:"智能体"})]})})}),!e.find(ee=>ee.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>K.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:K,className:"rte-file-input",accept:".pdf,.xla,.xlb,.xlc,.xlm,.xls,.xlsx,.xlt,.xlw,.csv,.tsv,.iif,.doc,.docx,.dot,.odt,.rtf,.pot,.ppa,.pps,.ppt,.pptx,.pwz,.wiz,.asm,.bat,.c,.cc,.conf,.cpp,.css,.cxx,.def,.dic,.eml,.h,.hh,.htm,.html,.ics,.ifb,.in,.js,.json,.ksh,.png,.jpeg,.jpg,.gif,.webp,.md,.php,.pkl,.rb,.tar,.tex,.ts,.txt,.xml,",multiple:!0,onChange:rt})]})]}),q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsxs("div",{className:"rte-brand-badge",children:[q.jsx("div",{className:"rte-brand-badge",children:q.jsx("img",{src:"https://oospublic.sealseek.cn/file/website/ball.png",alt:""})}),q.jsx("span",{className:"rte-brand-text",style:{marginLeft:"4px"},children:"SealSeek 2.0"})]}),(()=>{const ee=e.find(me=>me.type==="tag");if(!ee||!ee.text)return null;const ue=s.find(me=>me.label===ee.text);return!ue||ue.points===void 0||ue.points===null?null:q.jsxs("div",{className:"rte-points-badge",style:{position:"relative"},children:[q.jsx("i",{className:"iconfont icon-jifen",style:{marginRight:"4px",fontSize:"16px"}}),q.jsxs("span",{style:{fontSize:"16px",lineHeight:"22px"},children:["-",String(ue.points)]}),ue.labelValue===2&&q.jsx("div",{className:"rte-limited-free-badge",children:q.jsx("span",{className:"rte-limited-free-text",children:"限时免费"})})]})})(),q.jsx("button",{type:"button",onClick:By,disabled:n||r||l||!nl,className:"rich-text-editor-send-button",children:n||l?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),li,q.jsx(ce.Image,{style:{display:"none"},src:vr,preview:{visible:ui,onVisibleChange:ee=>wr(ee)}}),bl,ml,Iy,Ly,gl]})};Wu.__docgenInfo={displayName:"RichTextEditor",description:"结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",props:{config:{name:"config",required:!0,description:"结构化输入配置节点数组",type:{name:"InputNode[]",raw:"InputNode[]"}},onSend:{name:"onSend",required:!0,description:"点击发送按钮时的回调,返回数据与拼接后的 Prompt",type:{name:"function",raw:"(data: Record<string, any>, fullPrompt: string) => void"}},isProcessing:{name:"isProcessing",required:!1,description:"是否处于处理状态(禁用输入与发送)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}}}};const ju="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",ny=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],ry=({autoLoading:e,batchSize:t,loadingProgress:n,loadIcon:r,onBatchSizeChange:a,onLoadNextPage:i,onStartAutoLoad:s,onStopLoad:o})=>e&&n?q.jsxs("div",{className:"auto_load_progress",children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",n.currentPage,"/",n.totalPages,"页"]}),q.jsx(ce.Progress,{percent:n.percentage,type:"line",size:[160,8]}),q.jsx("span",{onClick:o,className:"auto_load_stop_btn",children:"停止加载"})]}):q.jsxs("div",{className:"auto_load_container",children:[q.jsx("div",{onClick:i,className:"auto_load_next_btn",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:"加载下一页"}),q.jsxs("div",{className:"right_control_wrap",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:[q.jsxs("div",{className:"auto_load_btn",onClick:e?void 0:s,children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(ce.Select,{value:t,onChange:a,options:ny,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),ay=({current:e,loadIcon:t,pageSize:n,total:r,cachedPages:a,loadedCount:i,autoLoading:s=!1,loadingProgress:o,onChange:u,onLoadNextPage:l,onStartAutoLoad:c,onStopLoading:f})=>{const[g,p]=I.useState(5),T=Math.ceil(r/n),h=I.useMemo(()=>a.length>=T,[a,T]),m=()=>Array.from({length:T},(y,_)=>_+1).filter(y=>!a.includes(y)).slice(0,g),b=(E,y,_)=>{const w=a.includes(E);return y==="prev"||y==="next"||y==="jump-prev"||y==="jump-next"?q.jsx("div",{className:"pageBox",children:_}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===E?"#2563EB":"#f5f5f5",color:e===E?"#fff":w?"#171717":"#a3a3a3"},children:[E,!w&&q.jsx("span",{className:"unload_spot"})]})};return q.jsxs("div",{className:"pagination_footer",children:[q.jsxs("div",{className:"pagination_leftWrap",children:[q.jsxs("span",{className:"pagination_total",children:[q.jsx(gt.InfoCircleOutlined,{style:{color:"#2563EB",marginRight:"4px"}}),"已加载: ",i,"/",r,"条数据"]}),!h&&q.jsx(ry,{loadIcon:t||void 0,autoLoading:s,batchSize:g,loadingProgress:o,disabled:!l||!c,onBatchSizeChange:p,onLoadNextPage:()=>l?.(),onStartAutoLoad:()=>{const E=m();c?.(E)},onStopLoad:()=>f?.()})]}),q.jsx(ce.Pagination,{current:e,pageSize:n,total:r,onChange:E=>u(E),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:b})]})},Xu=e=>{const{loading:t,autoLoading:n,loadingProgress:r,columns:a=[],dataSource:i=[],total:s,current:o,pageSize:u,cachedPages:l,onChangePage:c,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p,...T}=e,h=I.useRef(null),m=I.useCallback(b=>{c(b),l.includes(b)&&h.current?.scrollTo({key:`${(b-1)*u+1}`})},[l,c,u]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(ce.Table,{ref:h,...T,columns:a,dataSource:i,pagination:!1,virtual:!0}),q.jsx(ay,{loading:t,autoLoading:n,loadingProgress:r,current:o,pageSize:u,total:s,loadedCount:i.length,cachedPages:l,onChange:m,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p})]})};Xu.__docgenInfo={displayName:"VirtualTable",description:"虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",props:{loading:{description:"加载状态",name:"loading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},total:{description:"总数据条数",name:"total",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"0"}},current:{description:"当前页码",name:"current",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"1"}},pageSize:{description:"每页数据条数",name:"pageSize",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"10"}},cachedPages:{description:"已缓存的页码数组",name:"cachedPages",required:!0,type:{name:"number[]",raw:"number[]"},defaultValue:{value:"[]"}},dataSource:{description:"数据源",name:"dataSource",required:!0,type:{name:"Array<T>",raw:"Array<T>"},defaultValue:{value:"[]"}},onChangePage:{description:"页码变更回调函数",name:"onChangePage",required:!0,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},autoLoading:{description:"是否正在自动加载",name:"autoLoading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},loadingProgress:{description:"加载进度信息",name:"loadingProgress",required:!0,type:{name:"object",raw:"{percentage: 0, currentPage: 1, totalPages: 5}"},defaultValue:{value:"-"}},onLoadNextPage:{description:"加载下一页回调函数",name:"onLoadNextPage",required:!1,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},onStartAutoLoad:{description:"开始自动加载回调函数",name:"onStartAutoLoad",required:!1,type:{name:"function",raw:"function(loadNextPages: number[]): void"},defaultValue:{value:"-"}},onStopLoading:{description:"停止加载回调函数",name:"onStopLoading",required:!1,type:{name:"function",raw:"function(): void"},defaultValue:{value:"-"}},columns:{description:"表格列配置",name:"columns",required:!0,type:{name:"Array<object>",raw:"Array<object>"},defaultValue:{value:"[]"}}}};const Ku=({texts:e=[],placeholder:t="请输入内容",animationSpeed:n=100,autoPlay:r=!0,value:a,onChange:i,...s})=>{const[o,u]=I.useState(""),[l,c]=I.useState(0),[f,g]=I.useState(!1),[p,T]=I.useState(!1),[h,m]=I.useState(!1),b=I.useRef(void 0),E=I.useRef(void 0),y=I.useRef(e),_=I.useRef(l),w=I.useRef(p),S=I.useRef(o);I.useEffect(()=>{y.current=e,_.current=l,w.current=p,S.current=o});const M=I.useCallback((N,C)=>{let F=0;m(!0);const U=()=>{F<N.length?(u(N.slice(0,F+1)),F++,E.current=window.setTimeout(U,n)):(m(!1),C?.())};U()},[n]),A=I.useCallback(N=>{let C=S.current.length;const F=()=>{C>0?(u(S.current.slice(0,C-1)),C--,E.current=window.setTimeout(F,n/2)):N?.()};F()},[n]),x=I.useCallback(()=>{if(y.current.length===0||w.current)return;g(!0);const N=y.current[_.current];S.current?A(()=>{M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})}):M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})},[A,M]);I.useEffect(()=>(r&&e.length>0&&!p&&x(),()=>{b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current)}),[l,p,r,e.length,x]),I.useEffect(()=>{!f&&r&&e.length>0&&!p&&x()},[l,f,r,e.length,p,x]);const v=N=>{T(!0),b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current),g(!1),m(!1),s.onFocus?.(N)},k=N=>{T(!1),!a&&e.length>0&&(u(""),c(0)),s.onBlur?.(N)},D=N=>{i?.(N.target.value),s.onChange?.(N)},P=()=>p||a?t:o||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(ce.Input,{...s,value:a,onChange:D,onFocus:v,onBlur:k,placeholder:P(),style:{...s.style,position:"relative",zIndex:1}}),!p&&!a&&o&&q.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",paddingLeft:11,paddingRight:11,color:"#bfbfbf",pointerEvents:"none",zIndex:2,fontSize:14,fontFamily:"inherit"},children:[q.jsx("span",{children:o}),h&&q.jsx("span",{style:{display:"inline-block",width:1,height:"1.2em",backgroundColor:"#1890ff",marginLeft:2,animation:"blink 1s infinite"}})]}),q.jsx("style",{children:`
|
|
65
65
|
@keyframes blink {
|
|
66
66
|
0%, 50% { opacity: 1; }
|
|
67
67
|
51%, 100% { opacity: 0; }
|