bi-components-library 1.2.86 → 1.2.87
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 +2 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -37,7 +37,7 @@ ${(e||"").replace(/\r\n/g,`
|
|
|
37
37
|
`),I=C.offsetHeight>32,N=w||I;C.classList.toggle("rte-variable-multiline",N),C.classList.toggle("rte-variable-force-block",N);const S=C.closest(".rte-inline-group");S&&S.classList.toggle("rte-inline-group-force-block",N);const D=C.closest(".required-upload-group, .required-multi-first");D&&D.classList.toggle("rte-required-group-force-block",N);const P=C.querySelector(".variable-info-icon");let H=C.querySelector(".rte-report-dropdown-host");if(!H&&C.dataset.multiKey&&C.dataset.key){const O=C.dataset.multiKey,x=o.find(L=>qe(L.type)&&L.key===O);if(x){const L=document.createElement("span");L.setAttribute("contenteditable","false"),L.className="rte-report-dropdown-host",L.dataset.key=C.dataset.key,L.dataset.multiKey=O,L.setAttribute("data-node-type",x.type==="multi-variable-select"?"multi-variable-select":"multi-variable"),C.appendChild(L),H=L}}const B=P||H;if(B){let O=!1;const x=document.createTreeWalker(C,NodeFilter.SHOW_TEXT,{acceptNode:U=>B.contains(U)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;x.nextNode();)if(x.currentNode.textContent?.replace(/[\u200B\n]/g,"").trim()){O=!0;break}!!C.getAttribute("data-report-url")?B.classList.remove("hidden"):O?B.classList.add("hidden"):B.classList.remove("hidden"),C.classList.toggle("rte-variable-with-icon",!B.classList.contains("hidden"))}}),s||window.requestAnimationFrame(()=>{u()}),ba(t,o,c,E),Gl(t,o,c,l,E,{reportAnalyzeState:b,requireReportUrlAnalyze:y}),!t.current)return;e.filter(m=>qe(m.type)&&m.key).forEach(m=>{if(!m.key)return;const C=m.maxCount||9,T=d[m.key]||1,w=[];for(let P=0;P<T;P++){const H=`${m.key}_${P}`,B=t.current.querySelector(`[data-type="variable"][data-key="${H}"][data-multi-key="${m.key}"]`);if(B){const O=(B.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
38
38
|
`).trim();w.push(O)}}const N=(w[w.length-1]||"")==="";let S=!1,D=-1;for(let P=0;P<w.length-1;P++)if(w[P]===""){S=!0,D=P;break}if(S&&D>=0){const P=window.getSelection();if(P&&P.rangeCount>0){const q=P.getRangeAt(0),k=q.startContainer,W=k.nodeType===Node.ELEMENT_NODE?k.closest('[data-type="variable"][data-multi-key]'):k.parentElement?.closest('[data-type="variable"][data-multi-key]');if(W){const G=W.dataset.key;if(G){const _=document.createRange();_.setStartBefore(W),_.setEnd(q.startContainer,q.startOffset);const V=_.toString().length;f.current={key:G,offset:V}}}}const H=[];for(let q=0;q<T;q++){const k=`${m.key}_${q}`,W=t.current.querySelector(`[data-type="variable"][data-key="${k}"][data-multi-key="${m.key}"]`),G=W?.getAttribute("data-report-url"),_=W?.getAttribute("data-report-name");H.push(G&&_?{name:_,url:G}:null)}const B=[...w];for(let q=D;q<B.length-1;q++)B[q]=B[q+1];B.pop();const O=[...H];for(let q=D;q<O.length-1;q++)O[q]=O[q+1];if(O.pop(),v?.current){for(let q=0;q<T;q++)delete v.current[`${m.key}_${q}`];O.forEach((q,k)=>{q&&(v.current[`${m.key}_${k}`]=q)})}const x={};B.forEach((q,k)=>{q&&(x[`${m.key}_${k}`]=q)});const L=Math.max(N?B.length:B.length+1,1);t.current.querySelectorAll('[data-type="variable"]').forEach(q=>{const k=q.dataset.key,W=q.dataset.multiKey;if(k&&W!==m.key){const G=(q.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
39
39
|
`).trim();G&&(x[k]=G)}}),t.current.__tempVariableValues=x;const R=[];for(let q=D;q<T;q++)R.push(`${m.key}_${q}`);ha({keys:R}),document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close")),h(q=>({...q,[m.key]:L}));return}if(!N){const P=T-1,H=`${m.key}_${P}`,B=t.current.querySelector(`[data-type="variable"][data-key="${H}"][data-multi-key="${m.key}"]`);if(B&&(B.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
40
|
-
`).trim().length>0&&T<C){const x=window.getSelection();if(x&&x.rangeCount>0){const U=x.getRangeAt(0),R=U.startContainer,q=R.nodeType===Node.ELEMENT_NODE?R.closest('[data-type="variable"][data-multi-key]'):R.parentElement?.closest('[data-type="variable"][data-multi-key]');if(q){const k=q.dataset.key;if(k){const W=document.createRange();W.setStartBefore(q),W.setEnd(U.startContainer,U.startOffset);const G=W.toString().length;f.current={key:k,offset:G}}}}const L=B.querySelector(".rte-report-dropdown-host")&&(f.current?.key||H)?f.current?.key||H:void 0;document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close",{detail:L?{exceptKey:L}:void 0})),h(U=>({...U,[m.key]:T+1}))}}})},[s,e,t,o,c,u,d,f,a,l,r,i,h,n,v,b,y,E]),Oc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n,onEnterSend:r,onReportChipDeleted:i})=>A.useCallback(s=>{if(e){s.preventDefault();return}const u=s.target;if(u&&(u.tagName==="TEXTAREA"||u.tagName==="INPUT")&&u.closest?.('[data-variable-render="antd-textarea"]'))return;{const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0);if(!d.collapsed&&d.startContainer===d.endContainer&&d.startContainer.nodeType===Node.ELEMENT_NODE&&d.endOffset-d.startOffset===1){const h=d.startContainer.childNodes[d.startOffset];if(h?.nodeType===Node.ELEMENT_NODE&&h.getAttribute?.("data-report-url")&&h.getAttribute?.("data-type")==="variable"&&!["Shift","Control","Alt","Meta","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","CapsLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"].includes(s.key)&&!s.ctrlKey&&!s.metaKey&&!s.altKey){s.preventDefault();const E=h,v=E.dataset.key||"",b=E.getAttribute("data-node-type")||"",y=E.dataset.multiKey||"";E.removeAttribute("data-report-url"),E.removeAttribute("data-report-name"),E.classList.remove("rte-report-name-chip"),E.contentEditable="true";const g=E.querySelector(".rte-report-dropdown-host");g?.parentNode&&g.parentNode.removeChild(g);const m=E.querySelector(".rte-report-chip-clear-host");if(m?.parentNode&&m.parentNode.removeChild(m),E.textContent="",E.classList.add("show-placeholder"),g)g.classList.remove("hidden"),g.style.display="",E.appendChild(g);else{const C=document.createElement("span");C.contentEditable="false",C.className="rte-report-dropdown-host",C.dataset.key=v,C.dataset.nodeType=b,y&&(C.dataset.multiKey=y),E.appendChild(C)}E.classList.add("rte-variable-with-icon"),i?.(v,b),E.focus(),s.key.length===1&&(document.execCommand("insertText",!1,s.key),E.classList.remove("show-placeholder")),n();return}}}}if(s.key==="Enter"){const c=s.target,d=c?.closest?.('[data-type="variable"]'),h=!!c?.closest?.('[data-type="richtext"]'),f=c?.tagName==="TEXTAREA"||!!c?.closest?.('[data-type="textarea"]');if(d){const E=d.getAttribute("data-node-type")||"";if(E==="report-url"||E==="markdown"||E==="markdown-name"){s.preventDefault();return}if(!(()=>{const y=d.dataset.multiKey;if(y)return a.find(T=>qe(T.type)&&T.key===y)?.allowNewline!==!1;const g=d.dataset.key;return a.find(C=>C.type==="variable"&&C.key===g)?.allowNewline!==!1})()){s.preventDefault();return}s.preventDefault();const b=window.getSelection();if(b&&b.rangeCount>0){const y=b.getRangeAt(0);y.deleteContents();const g=document.createElement("br");y.insertNode(g);const m=document.createTextNode("");g.parentNode?.insertBefore(m,g.nextSibling),y.setStart(m,0),y.collapse(!0),b.removeAllRanges(),b.addRange(y)}n();return}if(!h&&!f){s.preventDefault(),a.length===0&&!s.shiftKey&&r&&r();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest('[data-type="text"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest('[data-type="text"]'))),d){if(s.preventDefault(),s.stopPropagation(),l.current){const h=l.current.querySelector('[data-type="variable"], [data-type="upload"]');h&&h.focus()}return}}if(t&&o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest(".tag-node"):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest(".tag-node"))),d){if(s.preventDefault(),s.stopPropagation(),l.current){const h=l.current.querySelector('[data-type="variable"], [data-type="upload"]');h&&h.focus()}return}}if(s.key==="Escape"&&l.current){if(t){s.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(s.key==="Backspace"){const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0),h=c.anchorNode;if(t){let E=null,v=null;if(h&&(h.nodeType===Node.ELEMENT_NODE?(E=h.closest(".tag-node"),v=h.closest('[data-type="text"]')):h.nodeType===Node.TEXT_NODE&&h.parentElement&&(E=h.parentElement.closest(".tag-node"),v=h.parentElement.closest('[data-type="text"]'))),(E||v)&&d.collapsed&&d.startOffset===0){s.preventDefault();return}}let f=null;if(h&&(h.nodeType===Node.ELEMENT_NODE?f=h.closest('[data-type="variable"]'):h.nodeType===Node.TEXT_NODE&&h.parentElement&&(f=h.parentElement.closest('[data-type="variable"]'))),f){if(f.getAttribute("data-report-url")){s.preventDefault();const y=f.dataset.key||"",g=f.getAttribute("data-node-type")||"",m=f.dataset.multiKey||"";f.removeAttribute("data-report-url"),f.removeAttribute("data-report-name"),f.classList.remove("rte-report-name-chip"),f.contentEditable="true";const C=f.querySelector(".rte-report-dropdown-host");C?.parentNode&&C.parentNode.removeChild(C);const T=f.querySelector(".rte-report-chip-clear-host");if(T?.parentNode&&T.parentNode.removeChild(T),f.textContent="",f.classList.add("show-placeholder"),C)C.classList.remove("hidden"),C.style.display="",f.appendChild(C);else{const w=document.createElement("span");w.contentEditable="false",w.className="rte-report-dropdown-host",w.dataset.key=y,w.dataset.nodeType=g,m&&(w.dataset.multiKey=m),f.appendChild(w)}f.classList.add("rte-variable-with-icon"),i?.(y,g),f.focus(),n();return}if(!d.collapsed)return;const E=f.innerText;if(E===""||E===""){s.preventDefault();return}if((()=>{try{const y=document.createRange();y.selectNodeContents(f),y.setEnd(d.startContainer,d.startOffset);const g=y.cloneContents(),m=document.createTreeWalker(g,NodeFilter.SHOW_ALL);for(;m.nextNode();){const C=m.currentNode;if(C.nodeType===Node.ELEMENT_NODE){if(C.tagName==="BR")return!1}else if(C.nodeType===Node.TEXT_NODE&&(C.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return d.startOffset===0}})()){s.preventDefault();return}if(E.startsWith("")&&d.startOffset===1){s.preventDefault();return}}}}},[a,e,l,n,t,r,i]),Dc=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...h)=>{},s=h=>{try{const f=window.getSelection();if(!f)return i(h,"no selection");const E=f.rangeCount>0?f.getRangeAt(0):null;i(h,{rangeCount:f.rangeCount,isCollapsed:f.isCollapsed,anchorNode:f.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":f.anchorNode?.nodeName,anchorOffset:f.anchorOffset,focusNode:f.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":f.focusNode?.nodeName,focusOffset:f.focusOffset,range:E?{startContainer:E.startContainer.nodeType===Node.TEXT_NODE?"TEXT":E.startContainer.nodeName,startOffset:E.startOffset,endContainer:E.endContainer.nodeType===Node.TEXT_NODE?"TEXT":E.endContainer.nodeName,endOffset:E.endOffset}:null})}catch{}},u=A.useCallback(h=>{const f=h.target;if(i("mousedown",{tag:f.tagName,cls:f.className}),s("before mousedown"),f.closest(".rte-datepicker-wrapper")||f.closest(".rte-datepicker-host")||f.closest(".rte-select-wrapper")||f.closest(".rte-select-host")||f.closest(".ant-select-dropdown"))return;if(f.closest(".tag-close-btn")){if(h.preventDefault(),h.stopPropagation(),e)return;l(null),t?t():a.current&&(a.current.innerHTML="",a.current.focus());return}if(e){const b=f.closest(".tag-node"),y=f.closest('[data-type="text"]');if(b||y){h.preventDefault(),h.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const v=f.closest('[data-type="variable"]');if(v){if(i("mousedown on variable",{key:v.dataset.key,multiKey:v.dataset.multiKey,nodeType:v.getAttribute("data-node-type")||"",render:v.dataset.variableRender||"v1",classes:v.className}),v.dataset.variableRender==="antd-textarea")return;if(v.getAttribute("data-report-url")){h.preventDefault(),v.hasAttribute("tabindex")||v.setAttribute("tabindex","-1"),v.focus(),window.getSelection()?.removeAllRanges();return}const b=!!f.closest(".variable-info-icon"),y=v.classList.contains("show-placeholder")||(v.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:y,isOnIcon:b,innerText:v.innerText}),y&&!b){h.preventDefault(),window.requestAnimationFrame(()=>{s("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const m=v;m.focus();const C=document.createTreeWalker(m,NodeFilter.SHOW_TEXT),T=C.nextNode()?C.currentNode:null,w=document.createRange();T?(w.setStart(T,0),w.collapse(!0)):(w.selectNodeContents(m),w.collapse(!0)),g.removeAllRanges(),g.addRange(w),s("raf after setRange (mousedown)")});return}return}r.current={x:h.clientX,y:h.clientY},n.current=!1,f.closest(".file-remove-btn")&&(h.preventDefault(),h.stopPropagation())},[a,n,e,r,t,l]),o=A.useCallback(h=>{if(!h.target.closest('[data-type="variable"]')&&r.current){const v=Math.abs(h.clientX-r.current.x),b=Math.abs(h.clientY-r.current.y);(v>3||b>3)&&(n.current=!0)}},[n,r]),c=A.useCallback(h=>{const f=h.target;i("mouseup",{tag:f.tagName,cls:f.className}),s("before mouseup");const E=f.closest('[data-type="variable"]');if(E){if(E.getAttribute("data-report-url")){h.preventDefault(),r.current=null,n.current=!1;return}if(E.dataset.variableRender!=="antd-textarea"){const v=!!f.closest(".variable-info-icon"),b=E.classList.contains("show-placeholder")||(E.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:E.dataset.key,isPlaceholder:b,isOnIcon:v,classes:E.className}),b&&!v&&(h.preventDefault(),window.requestAnimationFrame(()=>{s("raf before setRange (mouseup)");const y=window.getSelection();if(!y)return;const g=E;g.focus();const m=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),C=m.nextNode()?m.currentNode:null,T=document.createRange();C?(T.setStart(C,0),T.collapse(!0)):(T.selectNodeContents(g),T.collapse(!0)),y.removeAllRanges(),y.addRange(T),s("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),d=A.useCallback(h=>{const E=h.target.closest('[data-type="variable"]');if(E){const v=window.getSelection();if(v){const b=document.createRange(),y=E.textContent||"";if(y.replace(/\u200B/g,"")){let m=0,C=y.length;y.startsWith("")&&(m=1),y.endsWith("")&&y.length>1&&(C=y.length-1);const T=E.firstChild;T&&T.nodeType===Node.TEXT_NODE?(b.setStart(T,m),b.setEnd(T,C)):b.selectNodeContents(E)}else b.selectNodeContents(E),b.collapse(!0);v.removeAllRanges(),v.addRange(b)}}},[]);return{handleMouseDown:u,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:d}},Pc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:s,markdownNameAnalyzeRef:u,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:d,setFooterFiles:h,footerFiles:f,messageApi:E,onPasteUnsupported:v})=>A.useCallback(b=>{const y=b.target,g=y?.closest?.('[data-type="variable"]')||null,m=g?.querySelector(".rte-report-dropdown-host")&&g.dataset.key?g.dataset.key:void 0;document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close",{detail:m?{exceptKey:m}:void 0}));const C=t.some(H=>H.type==="tag"),T=Array.from(b.clipboardData.files);if(T.length>0&&C){b.preventDefault();return}if(T.length>0){b.preventDefault();const H=["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"],B=[];let O=!1;for(const x of T){const L=(x.name||"").split(".").pop()?.toLowerCase()||"";H.includes(L)?B.push(x):O=!0}if(O&&v?.(),B.length>0){const L=f.reduce((q,k)=>q+k.size,0),U=[];let R=L;for(const q of B){if(R+q.size>52428800){E.error("文件总大小不能超过 50MB");break}U.push(q),R+=q.size}U.length>0&&h(q=>[...U,...q])}return}if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){b.preventDefault();return}b.preventDefault();const I=(b.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
40
|
+
`).trim().length>0&&T<C){const x=window.getSelection();if(x&&x.rangeCount>0){const U=x.getRangeAt(0),R=U.startContainer,q=R.nodeType===Node.ELEMENT_NODE?R.closest('[data-type="variable"][data-multi-key]'):R.parentElement?.closest('[data-type="variable"][data-multi-key]');if(q){const k=q.dataset.key;if(k){const W=document.createRange();W.setStartBefore(q),W.setEnd(U.startContainer,U.startOffset);const G=W.toString().length;f.current={key:k,offset:G}}}}const L=B.querySelector(".rte-report-dropdown-host")&&(f.current?.key||H)?f.current?.key||H:void 0;document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close",{detail:L?{exceptKey:L}:void 0})),h(U=>({...U,[m.key]:T+1}))}}})},[s,e,t,o,c,u,d,f,a,l,r,i,h,n,v,b,y,E]),Oc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n,onEnterSend:r,onReportChipDeleted:i})=>A.useCallback(s=>{if(e){s.preventDefault();return}const u=s.target;if(u&&(u.tagName==="TEXTAREA"||u.tagName==="INPUT")&&u.closest?.('[data-variable-render="antd-textarea"]'))return;{const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0);if(!d.collapsed&&d.startContainer===d.endContainer&&d.startContainer.nodeType===Node.ELEMENT_NODE&&d.endOffset-d.startOffset===1){const h=d.startContainer.childNodes[d.startOffset];if(h?.nodeType===Node.ELEMENT_NODE&&h.getAttribute?.("data-report-url")&&h.getAttribute?.("data-type")==="variable"&&!["Shift","Control","Alt","Meta","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","CapsLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"].includes(s.key)&&!s.ctrlKey&&!s.metaKey&&!s.altKey){s.preventDefault();const E=h,v=E.dataset.key||"",b=E.getAttribute("data-node-type")||"",y=E.dataset.multiKey||"";E.removeAttribute("data-report-url"),E.removeAttribute("data-report-name"),E.classList.remove("rte-report-name-chip"),E.contentEditable="true";const g=E.querySelector(".rte-report-dropdown-host");g?.parentNode&&g.parentNode.removeChild(g);const m=E.querySelector(".rte-report-chip-clear-host");if(m?.parentNode&&m.parentNode.removeChild(m),E.textContent="",E.classList.add("show-placeholder"),g)g.classList.remove("hidden"),g.style.display="",E.appendChild(g);else{const C=document.createElement("span");C.contentEditable="false",C.className="rte-report-dropdown-host",C.dataset.key=v,C.dataset.nodeType=b,y&&(C.dataset.multiKey=y),E.appendChild(C)}E.classList.add("rte-variable-with-icon"),i?.(v,b),E.focus(),s.key.length===1&&(document.execCommand("insertText",!1,s.key),E.classList.remove("show-placeholder")),n();return}}}}if(s.key==="Enter"){if(s.nativeEvent.isComposing||s.keyCode===229)return;const c=s.target,d=c?.closest?.('[data-type="variable"]'),h=!!c?.closest?.('[data-type="richtext"]'),f=c?.tagName==="TEXTAREA"||!!c?.closest?.('[data-type="textarea"]');if(d){const E=d.getAttribute("data-node-type")||"";if(E==="report-url"||E==="markdown"||E==="markdown-name"){s.preventDefault();return}if(!(()=>{const y=d.dataset.multiKey;if(y)return a.find(T=>qe(T.type)&&T.key===y)?.allowNewline!==!1;const g=d.dataset.key;return a.find(C=>C.type==="variable"&&C.key===g)?.allowNewline!==!1})()){s.preventDefault();return}s.preventDefault();const b=window.getSelection();if(b&&b.rangeCount>0){const y=b.getRangeAt(0);y.deleteContents();const g=document.createElement("br");y.insertNode(g);const m=document.createTextNode("");g.parentNode?.insertBefore(m,g.nextSibling),y.setStart(m,0),y.collapse(!0),b.removeAllRanges(),b.addRange(y)}n();return}if(!h&&!f){s.preventDefault(),a.length===0&&!s.shiftKey&&r&&r();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest('[data-type="text"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest('[data-type="text"]'))),d){if(s.preventDefault(),s.stopPropagation(),l.current){const h=l.current.querySelector('[data-type="variable"], [data-type="upload"]');h&&h.focus()}return}}if(t&&o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest(".tag-node"):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest(".tag-node"))),d){if(s.preventDefault(),s.stopPropagation(),l.current){const h=l.current.querySelector('[data-type="variable"], [data-type="upload"]');h&&h.focus()}return}}if(s.key==="Escape"&&l.current){if(t){s.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(s.key==="Backspace"){const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0),h=c.anchorNode;if(t){let E=null,v=null;if(h&&(h.nodeType===Node.ELEMENT_NODE?(E=h.closest(".tag-node"),v=h.closest('[data-type="text"]')):h.nodeType===Node.TEXT_NODE&&h.parentElement&&(E=h.parentElement.closest(".tag-node"),v=h.parentElement.closest('[data-type="text"]'))),(E||v)&&d.collapsed&&d.startOffset===0){s.preventDefault();return}}let f=null;if(h&&(h.nodeType===Node.ELEMENT_NODE?f=h.closest('[data-type="variable"]'):h.nodeType===Node.TEXT_NODE&&h.parentElement&&(f=h.parentElement.closest('[data-type="variable"]'))),f){if(f.getAttribute("data-report-url")){s.preventDefault();const y=f.dataset.key||"",g=f.getAttribute("data-node-type")||"",m=f.dataset.multiKey||"";f.removeAttribute("data-report-url"),f.removeAttribute("data-report-name"),f.classList.remove("rte-report-name-chip"),f.contentEditable="true";const C=f.querySelector(".rte-report-dropdown-host");C?.parentNode&&C.parentNode.removeChild(C);const T=f.querySelector(".rte-report-chip-clear-host");if(T?.parentNode&&T.parentNode.removeChild(T),f.textContent="",f.classList.add("show-placeholder"),C)C.classList.remove("hidden"),C.style.display="",f.appendChild(C);else{const w=document.createElement("span");w.contentEditable="false",w.className="rte-report-dropdown-host",w.dataset.key=y,w.dataset.nodeType=g,m&&(w.dataset.multiKey=m),f.appendChild(w)}f.classList.add("rte-variable-with-icon"),i?.(y,g),f.focus(),n();return}if(!d.collapsed)return;const E=f.innerText;if(E===""||E===""){s.preventDefault();return}if((()=>{try{const y=document.createRange();y.selectNodeContents(f),y.setEnd(d.startContainer,d.startOffset);const g=y.cloneContents(),m=document.createTreeWalker(g,NodeFilter.SHOW_ALL);for(;m.nextNode();){const C=m.currentNode;if(C.nodeType===Node.ELEMENT_NODE){if(C.tagName==="BR")return!1}else if(C.nodeType===Node.TEXT_NODE&&(C.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return d.startOffset===0}})()){s.preventDefault();return}if(E.startsWith("")&&d.startOffset===1){s.preventDefault();return}}}}},[a,e,l,n,t,r,i]),Dc=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...h)=>{},s=h=>{try{const f=window.getSelection();if(!f)return i(h,"no selection");const E=f.rangeCount>0?f.getRangeAt(0):null;i(h,{rangeCount:f.rangeCount,isCollapsed:f.isCollapsed,anchorNode:f.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":f.anchorNode?.nodeName,anchorOffset:f.anchorOffset,focusNode:f.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":f.focusNode?.nodeName,focusOffset:f.focusOffset,range:E?{startContainer:E.startContainer.nodeType===Node.TEXT_NODE?"TEXT":E.startContainer.nodeName,startOffset:E.startOffset,endContainer:E.endContainer.nodeType===Node.TEXT_NODE?"TEXT":E.endContainer.nodeName,endOffset:E.endOffset}:null})}catch{}},u=A.useCallback(h=>{const f=h.target;if(i("mousedown",{tag:f.tagName,cls:f.className}),s("before mousedown"),f.closest(".rte-datepicker-wrapper")||f.closest(".rte-datepicker-host")||f.closest(".rte-select-wrapper")||f.closest(".rte-select-host")||f.closest(".ant-select-dropdown"))return;if(f.closest(".tag-close-btn")){if(h.preventDefault(),h.stopPropagation(),e)return;l(null),t?t():a.current&&(a.current.innerHTML="",a.current.focus());return}if(e){const b=f.closest(".tag-node"),y=f.closest('[data-type="text"]');if(b||y){h.preventDefault(),h.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const v=f.closest('[data-type="variable"]');if(v){if(i("mousedown on variable",{key:v.dataset.key,multiKey:v.dataset.multiKey,nodeType:v.getAttribute("data-node-type")||"",render:v.dataset.variableRender||"v1",classes:v.className}),v.dataset.variableRender==="antd-textarea")return;if(v.getAttribute("data-report-url")){h.preventDefault(),v.hasAttribute("tabindex")||v.setAttribute("tabindex","-1"),v.focus(),window.getSelection()?.removeAllRanges();return}const b=!!f.closest(".variable-info-icon"),y=v.classList.contains("show-placeholder")||(v.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:y,isOnIcon:b,innerText:v.innerText}),y&&!b){h.preventDefault(),window.requestAnimationFrame(()=>{s("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const m=v;m.focus();const C=document.createTreeWalker(m,NodeFilter.SHOW_TEXT),T=C.nextNode()?C.currentNode:null,w=document.createRange();T?(w.setStart(T,0),w.collapse(!0)):(w.selectNodeContents(m),w.collapse(!0)),g.removeAllRanges(),g.addRange(w),s("raf after setRange (mousedown)")});return}return}r.current={x:h.clientX,y:h.clientY},n.current=!1,f.closest(".file-remove-btn")&&(h.preventDefault(),h.stopPropagation())},[a,n,e,r,t,l]),o=A.useCallback(h=>{if(!h.target.closest('[data-type="variable"]')&&r.current){const v=Math.abs(h.clientX-r.current.x),b=Math.abs(h.clientY-r.current.y);(v>3||b>3)&&(n.current=!0)}},[n,r]),c=A.useCallback(h=>{const f=h.target;i("mouseup",{tag:f.tagName,cls:f.className}),s("before mouseup");const E=f.closest('[data-type="variable"]');if(E){if(E.getAttribute("data-report-url")){h.preventDefault(),r.current=null,n.current=!1;return}if(E.dataset.variableRender!=="antd-textarea"){const v=!!f.closest(".variable-info-icon"),b=E.classList.contains("show-placeholder")||(E.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:E.dataset.key,isPlaceholder:b,isOnIcon:v,classes:E.className}),b&&!v&&(h.preventDefault(),window.requestAnimationFrame(()=>{s("raf before setRange (mouseup)");const y=window.getSelection();if(!y)return;const g=E;g.focus();const m=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),C=m.nextNode()?m.currentNode:null,T=document.createRange();C?(T.setStart(C,0),T.collapse(!0)):(T.selectNodeContents(g),T.collapse(!0)),y.removeAllRanges(),y.addRange(T),s("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),d=A.useCallback(h=>{const E=h.target.closest('[data-type="variable"]');if(E){const v=window.getSelection();if(v){const b=document.createRange(),y=E.textContent||"";if(y.replace(/\u200B/g,"")){let m=0,C=y.length;y.startsWith("")&&(m=1),y.endsWith("")&&y.length>1&&(C=y.length-1);const T=E.firstChild;T&&T.nodeType===Node.TEXT_NODE?(b.setStart(T,m),b.setEnd(T,C)):b.selectNodeContents(E)}else b.selectNodeContents(E),b.collapse(!0);v.removeAllRanges(),v.addRange(b)}}},[]);return{handleMouseDown:u,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:d}},Pc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:s,markdownNameAnalyzeRef:u,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:d,setFooterFiles:h,footerFiles:f,messageApi:E,onPasteUnsupported:v})=>A.useCallback(b=>{const y=b.target,g=y?.closest?.('[data-type="variable"]')||null,m=g?.querySelector(".rte-report-dropdown-host")&&g.dataset.key?g.dataset.key:void 0;document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close",{detail:m?{exceptKey:m}:void 0}));const C=t.some(H=>H.type==="tag"),T=Array.from(b.clipboardData.files);if(T.length>0&&C){b.preventDefault();return}if(T.length>0){b.preventDefault();const H=["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"],B=[];let O=!1;for(const x of T){const L=(x.name||"").split(".").pop()?.toLowerCase()||"";H.includes(L)?B.push(x):O=!0}if(O&&v?.(),B.length>0){const L=f.reduce((q,k)=>q+k.size,0),U=[];let R=L;for(const q of B){if(R+q.size>52428800){E.error("文件总大小不能超过 50MB");break}U.push(q),R+=q.size}U.length>0&&h(q=>[...U,...q])}return}if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){b.preventDefault();return}b.preventDefault();const I=(b.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
41
|
`).replace(/\n+$/g,""),N=window.getSelection();if(N&&N.rangeCount>0){const H=N.anchorNode;if(H){let B=null;if(H.nodeType===Node.ELEMENT_NODE?B=H.closest('[data-type="variable"]'):H.nodeType===Node.TEXT_NODE&&H.parentElement&&(B=H.parentElement.closest('[data-type="variable"]')),B){const O=B.dataset.multiKey;if(O){const U=/[、,,\s\n\r\t]+/,R=I.split(U).map(q=>q.trim()).filter(q=>q.length>0);if(R.length>1){const q=parseInt(B.dataset.index||"0",10),k=t.find(ue=>qe(ue.type)&&ue.key===O)?.maxCount||9,W=a[O]||1,G=Math.min(q+R.length,k);G>W&&l(te=>({...te,[O]:G}));const _=[];for(let te=0;te<W;te++){const ue=`${O}_${te}`,de=n.current.querySelector(`[data-type="variable"][data-key="${ue}"][data-multi-key="${O}"]`);if(de){const ve=de.innerText.replace(/[\u200B\n]/g,"").trim();_.push(ve)}}_.splice(q,1,...R.slice(0,k-q));const V=_.slice(0,k);V.length>0&&V[V.length-1]!==""&&V.length<k&&V.push("");const Y=Math.max(V.length,1),X={};V.forEach((te,ue)=>{te&&(X[`${O}_${ue}`]=te)}),n.current.querySelectorAll('[data-type="variable"]').forEach(te=>{const ue=te.dataset.key,de=te.dataset.multiKey;if(ue&&de!==O){const ve=te.innerText.replace(/[\u200B\n]/g,"").trim();ve&&(X[ue]=ve)}}),n.current.__tempVariableValues=X,l(te=>({...te,[O]:Y}));return}}const x=B.getAttribute("data-node-type")||"";if(!(x==="markdown"||x==="report-url"||x==="markdown-name")){const U=(()=>{const q=B.getAttribute("data-node-type")||"";if(q==="report-url"||q==="markdown"||q==="markdown-name")return!1;const k=B.dataset.multiKey;if(k)return t.find(V=>qe(V.type)&&V.key===k)?.allowNewline!==!1;const W=B.dataset.key;return t.find(_=>_.type==="variable"&&_.key===W)?.allowNewline!==!1})(),R=window.getSelection();if(R&&R.rangeCount>0){const q=R.getRangeAt(0);q.deleteContents();const k=document.createDocumentFragment(),G=(U?I:I.replace(/\n+/g," ")).split(`
|
|
42
42
|
`);for(let V=0;V<G.length;V++)k.appendChild(document.createTextNode(G[V])),U&&V<G.length-1&&k.appendChild(document.createElement("br"));q.insertNode(k),R.removeAllRanges();const _=document.createRange();_.selectNodeContents(B),_.collapse(!1),R.addRange(_)}r();return}}}}let S=!1,D="";const P=window.getSelection();if(P&&P.rangeCount>0){const H=P.anchorNode;if(H){let B=null;if(H.nodeType===Node.ELEMENT_NODE?B=H.closest('[data-type="variable"]'):H.nodeType===Node.TEXT_NODE&&H.parentElement&&(B=H.parentElement.closest('[data-type="variable"]')),B){const O=B.getAttribute("data-node-type")||"",x=B.dataset.key;if(O==="markdown"&&x&&/20\d{2}-\d{2}-\d{2}/.test(I))S=!0,D=x,c.current[x]=I,d(L=>({...L,[x]:{...L[x],status:"loading",error:void 0}}));else if(O==="report-url"&&x){document.execCommand("insertText",!1,I),r();return}else if(O==="markdown-name"&&x){document.execCommand("insertText",!1,I),r(),setTimeout(()=>{const L=B.innerText.replace(/[\u200B\n]/g,"").trim();u.current(x,L)},0);return}}}}if(S&&D){setTimeout(()=>{i.current(D,I)},0);return}document.execCommand("insertText",!1,I),r(),setTimeout(()=>{const H=window.getSelection();if(!H||H.rangeCount===0)return;const B=n.current?.parentElement;if(!B)return;let O=H.getRangeAt(0).getBoundingClientRect();if(!O||!O.height&&!O.top&&!O.bottom){const L=document.createElement("span");L.appendChild(document.createTextNode(""));const U=H.getRangeAt(0).cloneRange();U.collapse(!1),U.insertNode(L),O=L.getBoundingClientRect(),L.remove()}if(!O)return;const x=B.getBoundingClientRect();O.bottom>x.bottom?B.scrollTop+=O.bottom-x.bottom+8:O.top<x.top&&(B.scrollTop-=x.top-O.top+8)},0),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(I)&&o.current.tableData?.status==="success"&&(d(B=>({...B,tableData:{status:"loading",modules:[],lastParsedText:I,error:void 0}})),setTimeout(()=>{c.current.tableData=I,i.current("tableData",I)},0))},0)},[t,e,n,r,i,o,c,a,v,s,h,f,E,d,l]);async function zr(e){const t=e.split("/").pop()?.split("?")[0]||"file",a=decodeURIComponent(t),l=async n=>{const r=await n.blob();return new File([r],a,{type:r.type||"application/octet-stream"})};try{const n=`/api/image-proxy?url=${encodeURIComponent(e)}`,r=await fetch(n);if(r.ok)return l(r)}catch{}return null}const Mc=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:s,isFormValid:u,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:d,videoState:h})=>A.useCallback(()=>{if(r||i||s||!u||!o.current)return;if(e.length===0){const g=o.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!g&&a.length===0)return;if(a.length>0){const m=new FormData;m.append("fullPrompt",g),a.forEach(C=>{m.append("fileUrls",C)}),n(m,g),l()}else n(g,g);if(o.current){o.current.textContent="";const m=new Event("input",{bubbles:!0});o.current.dispatchEvent(m)}return}const f=o.current;let E="";const v={},b=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)E+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const m=g,C=m.dataset.type,T=m.dataset.key;if(C==="variable"&&T){let w="";const I=document.createTreeWalker(m,NodeFilter.SHOW_TEXT,{acceptNode:D=>{const P=m.querySelector(".variable-info-icon");return P&&P.contains(D)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;I.nextNode();)w+=I.currentNode.textContent||"";const S=m.getAttribute("data-report-url")||w.replace(/[\u200B\n]/g,"").trim();if(S){const D=m.dataset.multiKey;if(D){(!v[D]||!Array.isArray(v[D]))&&(v[D]=[]);const P=v[D];P.push(S),P.length>1&&(E+=" "),E+=S}else v[T]=S,E+=S;if(m.dataset.nodeType==="report-url")if(v.url===void 0)v.url=S;else{const P=v.url;Array.isArray(P)?P.push(S):v.url=[String(P),S]}if(m.dataset.nodeType==="markdown-name"){const P=`${T}__sourceText`;v[P]===void 0&&(v[P]=S)}if(m.dataset.nodeType==="markdown"){const P=m.dataset.sourceTextKey||`${T}__sourceText`;if(v[P]===void 0)v[P]=S;else{const B=v[P];Array.isArray(B)?B.push(S):v[P]=[String(B),S]}const H=`${T}__markdown`;v[H]===void 0&&(v[H]=[$r(S)])}}}else if((C==="select"||C==="searchable-select"||C==="cascader")&&T){const w=(m.getAttribute("data-value")||"").trim();w&&(v[T]=w,E+=w)}else if(C==="textarea"&&T){const I=(m.value||"").replace(/\u200B/g,"").trim();I&&(v[T]=I,E+=I)}else if(C==="richtext"&&T){const w=m,I=w.dataset.nodeType,N=(w.textContent||"").replace(/\u200B/g,"").trim();if(N)if(I==="report-module"||I==="markdown-module"){(!v[T]||!Array.isArray(v[T]))&&(v[T]=[]);const S=v[T];S.push(N),S.length>1&&(E+=" "),E+=N}else v[T]=N,E+=N}else if(C==="datepicker"&&T){const I=(m.getAttribute("data-value")||"").trim();if(I)if(I.includes(",")){const N=I.split(",");N.length===2?(v[T]=N,E+=`[${N[0]}, ${N[1]}]`):(v[T]=I,E+=I)}else v[T]=I,E+=I}else if(C==="number-input"&&T){const I=(m.value||"").trim();I&&(v[T]=I,E+=I)}else if(C==="upload"&&T){const w=m.dataset.batchKey;if(w){const I=e.find(N=>N.type==="upload"&&N.key===w);if(I&&typeof I.maxCount=="number"&&typeof I.minCount=="number"){const N=[];for(let S=0;S<I.maxCount;S++){const D=`${w}-${S}`,P=t[D];P&&N.push(P)}v[w]||(v[w]=N.length>0?N:null,N.length>0&&(E+=` [附带${N.length}个文件: ${N.map(S=>typeof S=="string"?S.split("/").pop()||"file":S.name).join(", ")}] `))}else if(v[T]=t[T]??null,t[T]){const N=t[T];E+=` [附带文件: ${typeof N=="string"?N.split("/").pop()||"file":N.name}] `}}else if(v[T]=t[T]??null,t[T]){const I=t[T];E+=` [附带文件: ${typeof I=="string"?I.split("/").pop()||"file":I.name}] `}}else if((C==="video-url"||C==="video-upload")&&T){const w=h?.[T];if(w?.status==="success"&&w.videoUrl){v[T]=w.videoUrl,w.file&&(v[`${T}__file`]=w.file);const I=w.fileName||"视频";E+=` [附带视频: ${I}] `}}else{if(m.classList.contains("tag-close-btn")||m.classList.contains("file-remove-btn")||m.classList.contains("video-remove-btn"))return;m.getAttribute("contenteditable")==="false"&&!C&&m.classList.contains("tag-node")?E+=m.innerText:m.childNodes.forEach(b)}}}};if(f.childNodes.forEach(b),E=E.trim(),!E)return;Object.keys(c).forEach(g=>{const m=c[g];if(!m||!m.modules||m.modules.length===0)return;const C=m.modules.map(T=>(T?.markdown||"").trim()).filter(T=>T.length>0);C.length!==0&&(v[`${g}__markdown`]=C)}),Object.keys(d).forEach(g=>{const m=d[g];if(!m||!m.modules||m.modules.length===0)return;const C=m.modules.map(T=>(T?.markdown||"").trim()).filter(T=>T.length>0);C.length!==0&&(v[`${g}__markdown`]=C)}),(async()=>{for(const m of Object.keys(v)){const C=v[m];if(typeof C=="string"&&C.startsWith("http")){if(e.find(w=>w.type==="upload"&&w.key===m)){const w=await zr(C);w&&(v[m]=w)}}else if(Array.isArray(C)&&e.find(w=>w.type==="upload"&&w.key===m)){for(let w=0;w<C.length;w++)if(typeof C[w]=="string"&&C[w].startsWith("http")){const I=await zr(C[w]);I&&(C[w]=I)}}}const g=new FormData;g.append("fullPrompt",E),Object.keys(v).forEach(m=>{const C=v[m];if(C!=null)if(C instanceof File)g.append(m,C);else if(Array.isArray(C)){const T=e.some(S=>qe(S.type)&&S.key===m),w=e.some(S=>S.type==="report-url"&&S.key===m),I=m.endsWith("__markdown");T||w||I||m==="url"?C.forEach(S=>{S!=null&&S!==""&&g.append(m,String(S))}):C.forEach((S,D)=>{S!=null&&(S instanceof File?g.append(`${m}[${D}]`,S):typeof S=="string"?g.append(`${m}[${D}]`,S):g.append(`${m}[${D}]`,String(S)))})}else typeof C=="string"?g.append(m,C):g.append(m,String(C))}),a.length>0&&a.forEach(m=>{g.append("fileUrls",m)}),n(g,E),a.length>0&&l()})()},[e,t,a,l,n,r,i,s,u,o,c,d,h]);function Vr(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Yl(e={},t={}){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:Vr(t[l])&&Vr(e[l])&&Object.keys(t[l]).length>0&&Yl(e[l],t[l])})}const Gr={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 Ft(){const e=typeof document<"u"?document:{};return Yl(e,Gr),e}const Bc={document:Gr,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 We(){const e=typeof window<"u"?window:{};return Yl(e,Bc),e}function Fc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function Rc(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function Yr(e,t=0){return setTimeout(e,t)}function nl(){return Date.now()}function Hc(e){const t=We();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function $c(e,t="x"){const a=We();let l,n,r;const i=Hc(e);return a.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(s=>s.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix(n==="none"?"":n)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=r.toString().split(",")),t==="x"&&(a.WebKitCSSMatrix?n=r.m41:l.length===16?n=parseFloat(l[12]):n=parseFloat(l[4])),t==="y"&&(a.WebKitCSSMatrix?n=r.m42:l.length===16?n=parseFloat(l[13]):n=parseFloat(l[5])),n||0}function rl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Uc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ze(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let l=1;l<e.length;l+=1){const n=e[l];if(n!=null&&!Uc(n)){const r=Object.keys(Object(n)).filter(i=>a.indexOf(i)<0);for(let i=0,s=r.length;i<s;i+=1){const u=r[i],o=Object.getOwnPropertyDescriptor(n,u);o!==void 0&&o.enumerable&&(rl(t[u])&&rl(n[u])?n[u].__swiper__?t[u]=n[u]:Ze(t[u],n[u]):!rl(t[u])&&rl(n[u])?(t[u]={},n[u].__swiper__?t[u]=n[u]:Ze(t[u],n[u])):t[u]=n[u])}}}return t}function Jt(e,t,a){e.style.setProperty(t,a)}function Wr({swiper:e,targetPosition:t,side:a}){const l=We(),n=-e.translate;let r=null,i;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const u=t>n?"next":"prev",o=(d,h)=>u==="next"&&d>=h||u==="prev"&&d<=h,c=()=>{i=new Date().getTime(),r===null&&(r=i);const d=Math.max(Math.min((i-r)/s,1),0),h=.5-Math.cos(d*Math.PI)/2;let f=n+h*(t-n);if(o(f,t)&&(f=t),e.wrapperEl.scrollTo({[a]:f}),o(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:f})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function dt(e,t=""){const a=We(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function qc(e,t){const a=[t];for(;a.length>0;){const l=a.shift();if(e===l)return!0;a.push(...l.children,...l.shadowRoot?l.shadowRoot.children:[],...l.assignedElements?l.assignedElements():[])}}function zc(e,t){const a=We();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=qc(e,t))),l}function il(e){try{console.warn(e);return}catch{}}function sl(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:Fc(t)),a}function Vc(e,t){const a=[];for(;e.previousElementSibling;){const l=e.previousElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function Gc(e,t){const a=[];for(;e.nextElementSibling;){const l=e.nextElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function _t(e,t){return We().getComputedStyle(e,null).getPropertyValue(t)}function jr(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Yc(e,t){const a=[];let l=e.parentElement;for(;l;)a.push(l),l=l.parentElement;return a}function Kr(e,t,a){const l=We();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function yt(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Wl(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let jl;function Wc(){const e=We(),t=Ft();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Xr(){return jl||(jl=Wc()),jl}let Kl;function jc({userAgent:e}={}){const t=Xr(),a=We(),l=a.navigator.platform,n=e||a.navigator.userAgent,r={ios:!1,android:!1},i=a.screen.width,s=a.screen.height,u=n.match(/(Android);?[\s\/]+([\d.]+)?/);let o=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=l==="Win32";let f=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&f&&t.touch&&E.indexOf(`${i}x${s}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),f=!1),u&&!h&&(r.os="android",r.android=!0),(o||d||c)&&(r.os="ios",r.ios=!0),r}function Qr(e={}){return Kl||(Kl=jc(e)),Kl}let Xl;function Kc(){const e=We(),t=Qr();let a=!1;function l(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(l()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[u,o]=s.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));a=u<16||u===16&&o<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=l(),i=r||n&&t.ios;return{isSafari:a||r,needPerspectiveFix:a,need3dFix:i,isWebView:n}}function Jr(){return Xl||(Xl=Kc()),Xl}function Xc({swiper:e,on:t,emit:a}){const l=We();let n=null,r=null;const i=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(c=>{r=l.requestAnimationFrame(()=>{const{width:d,height:h}=e;let f=d,E=h;c.forEach(({contentBoxSize:v,contentRect:b,target:y})=>{y&&y!==e.el||(f=b?b.width:(v[0]||v).inlineSize,E=b?b.height:(v[0]||v).blockSize)}),(f!==d||E!==h)&&i()})}),n.observe(e.el))},u=()=>{r&&l.cancelAnimationFrame(r),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},o=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){s();return}l.addEventListener("resize",i),l.addEventListener("orientationchange",o)}),t("destroy",()=>{u(),l.removeEventListener("resize",i),l.removeEventListener("orientationchange",o)})}function Qc({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=We(),i=(o,c={})=>{const d=r.MutationObserver||r.WebkitMutationObserver,h=new d(f=>{if(e.__preventObserver__)return;if(f.length===1){l("observerUpdate",f[0]);return}const E=function(){l("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(E):r.setTimeout(E,0)});h.observe(o,{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}),n.push(h)},s=()=>{if(e.params.observer){if(e.params.observeParents){const o=Yc(e.hostEl);for(let c=0;c<o.length;c+=1)i(o[c])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},u=()=>{n.forEach(o=>{o.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",s),a("destroy",u)}var Jc={on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;const n=a?"unshift":"push";return e.split(" ").forEach(r=>{l.eventsListeners[r]||(l.eventsListeners[r]=[]),l.eventsListeners[r][n](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;function n(...r){l.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(l,r)}return n.__emitterProxy=t,l.on(e,n,a)},onAny(e,t){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const l=t?"unshift":"push";return a.eventsAnyListeners.indexOf(e)<0&&a.eventsAnyListeners[l](e),a},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const a=t.eventsAnyListeners.indexOf(e);return a>=0&&t.eventsAnyListeners.splice(a,1),t},off(e,t){const a=this;return!a.eventsListeners||a.destroyed||!a.eventsListeners||e.split(" ").forEach(l=>{typeof t>"u"?a.eventsListeners[l]=[]:a.eventsListeners[l]&&a.eventsListeners[l].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&a.eventsListeners[l].splice(r,1)})}),a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let a,l,n;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),n=t):(a=e[0].events,l=e[0].data,n=e[0].context||t),l.unshift(n),(Array.isArray(a)?a:a.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(n,[i,...l])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(s=>{s.apply(n,l)})}),t}};function Zc(){const e=this;let t,a;const l=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=l.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?a=e.params.height:a=l.clientHeight,!(t===0&&e.isHorizontal()||a===0&&e.isVertical())&&(t=t-parseInt(_t(l,"padding-left")||0,10)-parseInt(_t(l,"padding-right")||0,10),a=a-parseInt(_t(l,"padding-top")||0,10)-parseInt(_t(l,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))}function ed(){const e=this;function t(D,P){return parseFloat(D.getPropertyValue(e.getDirectionLabel(P))||0)}const a=e.params,{wrapperEl:l,slidesEl:n,rtlTranslate:r,wrongRTL:i}=e,s=e.virtual&&a.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,o=dt(n,`.${e.params.slideClass}, swiper-slide`),c=s?e.virtual.slides.length:o.length;let d=[];const h=[],f=[];let E=a.slidesOffsetBefore;typeof E=="function"&&(E=a.slidesOffsetBefore.call(e));let v=a.slidesOffsetAfter;typeof v=="function"&&(v=a.slidesOffsetAfter.call(e));const b=e.snapGrid.length,y=e.slidesGrid.length,g=e.size-E-v;let m=a.spaceBetween,C=-E,T=0,w=0;if(typeof g>"u")return;typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*g:typeof m=="string"&&(m=parseFloat(m)),e.virtualSize=-m-E-v,o.forEach(D=>{r?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Jt(l,"--swiper-centered-offset-before",""),Jt(l,"--swiper-centered-offset-after","")),a.cssMode&&(Jt(l,"--swiper-slides-offset-before",`${E}px`),Jt(l,"--swiper-slides-offset-after",`${v}px`));const I=a.grid&&a.grid.rows>1&&e.grid;I?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let N;const S=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(D=>typeof a.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<c;D+=1){N=0;const P=o[D];if(!(P&&(I&&e.grid.updateSlide(D,P,o),_t(P,"display")==="none"))){if(s&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(N=a.virtual.slidesPerViewAutoSlideSize),N&&P&&(a.roundLengths&&(N=Math.floor(N)),P.style[e.getDirectionLabel("width")]=`${N}px`);else if(a.slidesPerView==="auto"){S&&(P.style[e.getDirectionLabel("width")]="");const H=getComputedStyle(P),B=P.style.transform,O=P.style.webkitTransform;if(B&&(P.style.transform="none"),O&&(P.style.webkitTransform="none"),a.roundLengths)N=e.isHorizontal()?Kr(P,"width"):Kr(P,"height");else{const x=t(H,"width"),L=t(H,"padding-left"),U=t(H,"padding-right"),R=t(H,"margin-left"),q=t(H,"margin-right"),k=H.getPropertyValue("box-sizing");if(k&&k==="border-box")N=x+R+q;else{const{clientWidth:W,offsetWidth:G}=P;N=x+L+U+R+q+(G-W)}}B&&(P.style.transform=B),O&&(P.style.webkitTransform=O),a.roundLengths&&(N=Math.floor(N))}else N=(g-(a.slidesPerView-1)*m)/a.slidesPerView,a.roundLengths&&(N=Math.floor(N)),P&&(P.style[e.getDirectionLabel("width")]=`${N}px`);P&&(P.swiperSlideSize=N),f.push(N),a.centeredSlides?(C=C+N/2+T/2+m,T===0&&D!==0&&(C=C-g/2-m),D===0&&(C=C-g/2-m),Math.abs(C)<1/1e3&&(C=0),a.roundLengths&&(C=Math.floor(C)),w%a.slidesPerGroup===0&&d.push(C),h.push(C)):(a.roundLengths&&(C=Math.floor(C)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup===0&&d.push(C),h.push(C),C=C+N+m),e.virtualSize+=N+m,T=N,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+v,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+m}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+m}px`),I&&e.grid.updateWrapperSize(N,d),!a.centeredSlides){const D=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,P=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||D);let H=d.length;if(P){let O;if(a.slidesPerView==="auto"){O=1;let x=0;for(let L=f.length-1;L>=0&&(x+=f[L]+(L<f.length-1?m:0),x<=g);L-=1)O=f.length-L}else O=Math.floor(a.slidesPerView);H=Math.max(c-O,0)}const B=[];for(let O=0;O<d.length;O+=1){let x=d[O];a.roundLengths&&(x=Math.floor(x)),P?O<=H&&B.push(x):d[O]<=e.virtualSize-g&&B.push(x)}d=B,Math.floor(e.virtualSize-g)-Math.floor(d[d.length-1])>1&&(P||d.push(e.virtualSize-g))}if(s&&a.loop){const D=f[0]+m;if(a.slidesPerGroup>1){const P=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),H=D*a.slidesPerGroup;for(let B=0;B<P;B+=1)d.push(d[d.length-1]+H)}for(let P=0;P<e.virtual.slidesBefore+e.virtual.slidesAfter;P+=1)a.slidesPerGroup===1&&d.push(d[d.length-1]+D),h.push(h[h.length-1]+D),e.virtualSize+=D}if(d.length===0&&(d=[0]),m!==0){const D=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((P,H)=>!a.cssMode||a.loop?!0:H!==o.length-1).forEach(P=>{P.style[D]=`${m}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let D=0;f.forEach(H=>{D+=H+(m||0)}),D-=m;const P=D>g?D-g:0;d=d.map(H=>H<=0?-E:H>P?P+v:H)}if(a.centerInsufficientSlides){let D=0;f.forEach(H=>{D+=H+(m||0)}),D-=m;const P=(E||0)+(v||0);if(D+P<g){const H=(g-D-P)/2;d.forEach((B,O)=>{d[O]=B-H}),h.forEach((B,O)=>{h[O]=B+H})}}if(Object.assign(e,{slides:o,snapGrid:d,slidesGrid:h,slidesSizesGrid:f}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Jt(l,"--swiper-centered-offset-before",`${-d[0]}px`),Jt(l,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const D=-e.snapGrid[0],P=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(H=>H+D),e.slidesGrid=e.slidesGrid.map(H=>H+P)}if(c!==u&&e.emit("slidesLengthChange"),d.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==y&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const D=`${a.containerModifierClass}backface-hidden`,P=e.el.classList.contains(D);c<=a.maxBackfaceHiddenSlides?P||e.el.classList.add(D):P&&e.el.classList.remove(D)}}function td(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=s=>l?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{a.push(s)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const s=t.activeIndex+r;if(s>t.slides.length&&!l)break;a.push(i(s))}else a.push(i(t.activeIndex));for(r=0;r<a.length;r+=1)if(typeof a[r]<"u"){const s=a[r].offsetHeight;n=s>n?s:n}(n||n===0)&&(t.wrapperEl.style.height=`${n}px`)}function ad(){const e=this,t=e.slides,a=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let l=0;l<t.length;l+=1)t[l].swiperSlideOffset=(e.isHorizontal()?t[l].offsetLeft:t[l].offsetTop)-a-e.cssOverflowAdjustment()}const Zr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function ld(e=this&&this.translate||0){const t=this,a=t.params,{slides:l,rtlTranslate:n,snapGrid:r}=t;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;n&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=a.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let u=0;u<l.length;u+=1){const o=l[u];let c=o.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(c-=l[0].swiperSlideOffset);const d=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+s),h=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+s),f=-(i-c),E=f+t.slidesSizesGrid[u],v=f>=0&&f<=t.size-t.slidesSizesGrid[u],b=f>=0&&f<t.size-1||E>1&&E<=t.size||f<=0&&E>=t.size;b&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(u)),Zr(o,b,a.slideVisibleClass),Zr(o,v,a.slideFullyVisibleClass),o.progress=n?-d:d,o.originalProgress=n?-h:h}}function nd(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:i,progressLoop:s}=t;const u=r,o=i;if(l===0)n=0,r=!0,i=!0;else{n=(e-t.minTranslate())/l;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=d||n>=1,c&&(n=0),d&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),h=t.slidesGrid[c],f=t.slidesGrid[d],E=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=h?s=(v-h)/E:s=(v+E-f)/E,s>1&&(s-=1)}Object.assign(t,{progress:n,progressLoop:s,isBeginning:r,isEnd:i}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),r&&!u&&t.emit("reachBeginning toEdge"),i&&!o&&t.emit("reachEnd toEdge"),(u&&!r||o&&!i)&&t.emit("fromEdge"),t.emit("progress",n)}const Ql=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function rd(){const e=this,{slides:t,params:a,slidesEl:l,activeIndex:n}=e,r=e.virtual&&a.virtual.enabled,i=e.grid&&a.grid&&a.grid.rows>1,s=d=>dt(l,`.${a.slideClass}${d}, swiper-slide${d}`)[0];let u,o,c;if(r)if(a.loop){let d=n-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),u=s(`[data-swiper-slide-index="${d}"]`)}else u=s(`[data-swiper-slide-index="${n}"]`);else i?(u=t.find(d=>d.column===n),c=t.find(d=>d.column===n+1),o=t.find(d=>d.column===n-1)):u=t[n];u&&(i||(c=Gc(u,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=Vc(u,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(d=>{Ql(d,d===u,a.slideActiveClass),Ql(d,d===c,a.slideNextClass),Ql(d,d===o,a.slidePrevClass)}),e.emitSlidesClasses()}const ul=(e,t)=>{if(!e||e.destroyed||!e.params)return;const a=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,l=t.closest(a());if(l){let n=l.querySelector(`.${e.params.lazyPreloaderClass}`);!n&&e.isElement&&(l.shadowRoot?n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),n&&!n.lazyPreloaderManaged&&n.remove())})),n&&!n.lazyPreloaderManaged&&n.remove()}},Jl=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},Zl=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const a=e.slides.length;if(!a||!t||t<0)return;t=Math.min(t,a);const l=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,s=[i-t];s.push(...Array.from({length:t}).map((u,o)=>i+l+o)),e.slides.forEach((u,o)=>{s.includes(u.column)&&Jl(e,o)});return}const r=n+l-1;if(e.params.rewind||e.params.loop)for(let i=n-t;i<=r+t;i+=1){const s=(i%a+a)%a;(s<n||s>r)&&Jl(e,s)}else for(let i=Math.max(n-t,0);i<=Math.min(r+t,a-1);i+=1)i!==n&&(i>r||i<n)&&Jl(e,i)};function id(e){const{slidesGrid:t,params:a}=e,l=e.rtlTranslate?e.translate:-e.translate;let n;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?l>=t[r]&&l<t[r+1]-(t[r+1]-t[r])/2?n=r:l>=t[r]&&l<t[r+1]&&(n=r+1):l>=t[r]&&(n=r);return a.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function sd(e){const t=this,a=t.rtlTranslate?t.translate:-t.translate,{snapGrid:l,params:n,activeIndex:r,realIndex:i,snapIndex:s}=t;let u=e,o;const c=f=>{let E=f-t.virtual.slidesBefore;return E<0&&(E=t.virtual.slides.length+E),E>=t.virtual.slides.length&&(E-=t.virtual.slides.length),E};if(typeof u>"u"&&(u=id(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const f=Math.min(n.slidesPerGroupSkip,u);o=f+Math.floor((u-f)/n.slidesPerGroup)}if(o>=l.length&&(o=l.length-1),u===r&&!t.params.loop){o!==s&&(t.snapIndex=o,t.emit("snapIndexChange"));return}if(u===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(u);return}const d=t.grid&&n.grid&&n.grid.rows>1;let h;if(t.virtual&&n.virtual.enabled)n.loop?h=c(u):h=u;else if(d){const f=t.slides.find(v=>v.column===u);let E=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(t.slides.indexOf(f),0)),h=Math.floor(E/n.grid.rows)}else if(t.slides[u]){const f=t.slides[u].getAttribute("data-swiper-slide-index");f?h=parseInt(f,10):h=u}else h=u;Object.assign(t,{previousSnapIndex:s,snapIndex:o,previousRealIndex:i,realIndex:h,previousIndex:r,activeIndex:u}),t.initialized&&Zl(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==h&&t.emit("realIndexChange"),t.emit("slideChange"))}function ud(e,t){const a=this,l=a.params;let n=e.closest(`.${l.slideClass}, swiper-slide`);!n&&a.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(s=>{!n&&s.matches&&s.matches(`.${l.slideClass}, swiper-slide`)&&(n=s)});let r=!1,i;if(n){for(let s=0;s<a.slides.length;s+=1)if(a.slides[s]===n){r=!0,i=s;break}}if(n&&r)a.clickedSlide=n,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=i;else{a.clickedSlide=void 0,a.clickedIndex=void 0;return}l.slideToClickedSlide&&a.clickedIndex!==void 0&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()}var od={updateSize:Zc,updateSlides:ed,updateAutoHeight:td,updateSlidesOffset:ad,updateSlidesProgress:ld,updateProgress:nd,updateSlidesClasses:rd,updateActiveIndex:sd,updateClickedSlide:ud};function cd(e=this.isHorizontal()?"x":"y"){const t=this,{params:a,rtlTranslate:l,translate:n,wrapperEl:r}=t;if(a.virtualTranslate)return l?-n:n;if(a.cssMode)return n;let i=$c(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function dd(e,t){const a=this,{rtlTranslate:l,params:n,wrapperEl:r,progress:i}=a;let s=0,u=0;const o=0;a.isHorizontal()?s=l?-e:e:u=e,n.roundLengths&&(s=Math.floor(s),u=Math.floor(u)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?s:u,n.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-s:-u:n.virtualTranslate||(a.isHorizontal()?s-=a.cssOverflowAdjustment():u-=a.cssOverflowAdjustment(),r.style.transform=`translate3d(${s}px, ${u}px, ${o}px)`);let c;const d=a.maxTranslate()-a.minTranslate();d===0?c=0:c=(e-a.minTranslate())/d,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function fd(){return-this.snapGrid[0]}function pd(){return-this.snapGrid[this.snapGrid.length-1]}function hd(e=0,t=this.params.speed,a=!0,l=!0,n){const r=this,{params:i,wrapperEl:s}=r;if(r.animating&&i.preventInteractionOnTransition)return!1;const u=r.minTranslate(),o=r.maxTranslate();let c;if(l&&e>u?c=u:l&&e<o?c=o:c=e,r.updateProgress(c),i.cssMode){const d=r.isHorizontal();if(t===0)s[d?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return Wr({swiper:r,targetPosition:-c,side:d?"left":"top"}),!0;s.scrollTo({[d?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(r.setTransition(0),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(h){!r||r.destroyed||h.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,a&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var bd={getTranslate:cd,setTranslate:dd,minTranslate:fd,maxTranslate:pd,translateTo:hd};function md(e,t){const a=this;a.params.cssMode||(a.wrapperEl.style.transitionDuration=`${e}ms`,a.wrapperEl.style.transitionDelay=e===0?"0ms":""),a.emit("setTransition",e,t)}function ei({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:n,previousIndex:r}=e;let i=a;i||(n>r?i="next":n<r?i="prev":i="reset"),e.emit(`transition${l}`),t&&i==="reset"?e.emit(`slideResetTransition${l}`):t&&n!==r&&(e.emit(`slideChangeTransition${l}`),i==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`))}function vd(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),ei({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function gd(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),ei({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var Ed={setTransition:md,transitionStart:vd,transitionEnd:gd};function yd(e=0,t,a=!0,l,n){typeof e=="string"&&(e=parseInt(e,10));const r=this;let i=e;i<0&&(i=0);const{params:s,snapGrid:u,slidesGrid:o,previousIndex:c,activeIndex:d,rtlTranslate:h,wrapperEl:f,enabled:E}=r;if(!E&&!l&&!n||r.destroyed||r.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const v=Math.min(r.params.slidesPerGroupSkip,i);let b=v+Math.floor((i-v)/r.params.slidesPerGroup);b>=u.length&&(b=u.length-1);const y=-u[b];if(s.normalizeSlideIndex)for(let I=0;I<o.length;I+=1){const N=-Math.floor(y*100),S=Math.floor(o[I]*100),D=Math.floor(o[I+1]*100);typeof o[I+1]<"u"?N>=S&&N<D-(D-S)/2?i=I:N>=S&&N<D&&(i=I+1):N>=S&&(i=I)}if(r.initialized&&i!==d&&(!r.allowSlideNext&&(h?y>r.translate&&y>r.minTranslate():y<r.translate&&y<r.minTranslate())||!r.allowSlidePrev&&y>r.translate&&y>r.maxTranslate()&&(d||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(y);let g;i>d?g="next":i<d?g="prev":g="reset";const m=r.virtual&&r.params.virtual.enabled;if(!(m&&n)&&(h&&-y===r.translate||!h&&y===r.translate))return r.updateActiveIndex(i),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),s.effect!=="slide"&&r.setTranslate(y),g!=="reset"&&(r.transitionStart(a,g),r.transitionEnd(a,g)),!1;if(s.cssMode){const I=r.isHorizontal(),N=h?y:-y;if(t===0)m&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),m&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[I?"scrollLeft":"scrollTop"]=N})):f[I?"scrollLeft":"scrollTop"]=N,m&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Wr({swiper:r,targetPosition:N,side:I?"left":"top"}),!0;f.scrollTo({[I?"left":"top"]:N,behavior:"smooth"})}return!0}const w=Jr().isSafari;return m&&!n&&w&&r.isElement&&r.virtual.update(!1,!1,i),r.setTransition(t),r.setTranslate(y),r.updateActiveIndex(i),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,l),r.transitionStart(a,g),t===0?r.transitionEnd(a,g):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(N){!r||r.destroyed||N.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(a,g))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Td(e=0,t,a=!0,l){typeof e=="string"&&(e=parseInt(e,10));const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let i=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)i=i+n.virtual.slidesBefore;else{let s;if(r){const v=i*n.params.grid.rows;s=n.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else s=n.getSlideIndexByData(i);const u=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:o,slidesOffsetBefore:c,slidesOffsetAfter:d}=n.params,h=o||!!c||!!d;let f=n.params.slidesPerView;f==="auto"?f=n.slidesPerViewDynamic():(f=Math.ceil(parseFloat(n.params.slidesPerView,10)),h&&f%2===0&&(f=f+1));let E=u-s<f;if(h&&(E=E||s<Math.ceil(f/2)),l&&h&&n.params.slidesPerView!=="auto"&&!r&&(E=!1),E){const v=h?s<n.activeIndex?"prev":"next":s-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?s+1:s-u+1,slideRealIndex:v==="next"?n.realIndex:void 0})}if(r){const v=i*n.params.grid.rows;i=n.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function xd(e,t=!0,a){const l=this,{enabled:n,params:r,animating:i}=l;if(!n||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);let s=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(s=Math.max(l.slidesPerViewDynamic("current",!0),1));const u=l.activeIndex<r.slidesPerGroupSkip?1:s,o=l.virtual&&r.virtual.enabled;if(r.loop){if(i&&!o&&r.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+u,e,t,a)}),!0}return r.rewind&&l.isEnd?l.slideTo(0,e,t,a):l.slideTo(l.activeIndex+u,e,t,a)}function Cd(e,t=!0,a){const l=this,{params:n,snapGrid:r,slidesGrid:i,rtlTranslate:s,enabled:u,animating:o}=l;if(!u||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);const c=l.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const d=s?l.translate:-l.translate;function h(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const f=h(d),E=r.map(g=>h(g)),v=n.freeMode&&n.freeMode.enabled;let b=r[E.indexOf(f)-1];if(typeof b>"u"&&(n.cssMode||v)){let g;r.forEach((m,C)=>{f>=m&&(g=C)}),typeof g<"u"&&(b=v?r[g]:r[g>0?g-1:g])}let y=0;if(typeof b<"u"&&(y=i.indexOf(b),y<0&&(y=l.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(y=y-l.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),n.rewind&&l.isBeginning){const g=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(g,e,t,a)}else if(n.loop&&l.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{l.slideTo(y,e,t,a)}),!0;return l.slideTo(y,e,t,a)}function Sd(e,t=!0,a){const l=this;if(!l.destroyed)return typeof e>"u"&&(e=l.params.speed),l.slideTo(l.activeIndex,e,t,a)}function wd(e,t=!0,a,l=.5){const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);let r=n.activeIndex;const i=Math.min(n.params.slidesPerGroupSkip,r),s=i+Math.floor((r-i)/n.params.slidesPerGroup),u=n.rtlTranslate?n.translate:-n.translate;if(u>=n.snapGrid[s]){const o=n.snapGrid[s],c=n.snapGrid[s+1];u-o>(c-o)*l&&(r+=n.params.slidesPerGroup)}else{const o=n.snapGrid[s-1],c=n.snapGrid[s];u-o<=(c-o)*l&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,a)}function Ad(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:a}=e,l=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.getSlideIndexWhenGrid(e.clickedIndex),r;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):n>(s?(e.slides.length-l)/2-(e.params.grid.rows-1):e.slides.length-l)?(e.loopFix(),n=e.getSlideIndex(dt(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),Yr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var _d={slideTo:yd,slideToLoop:Td,slideNext:xd,slidePrev:Cd,slideReset:Sd,slideToClosest:wd,slideToClickedSlide:Ad};function kd(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{dt(n,`.${l.slideClass}, swiper-slide`).forEach((E,v)=>{E.setAttribute("data-swiper-slide-index",v)})},i=()=>{const f=dt(n,`.${l.slideBlankClass}`);f.forEach(E=>{E.remove()}),f.length>0&&(a.recalcSlides(),a.updateSlides())},s=a.grid&&l.grid&&l.grid.rows>1;l.loopAddBlankSlides&&(l.slidesPerGroup>1||s)&&i();const u=l.slidesPerGroup*(s?l.grid.rows:1),o=a.slides.length%u!==0,c=s&&a.slides.length%l.grid.rows!==0,d=f=>{for(let E=0;E<f;E+=1){const v=a.isElement?sl("swiper-slide",[l.slideBlankClass]):sl("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(v)}};if(o){if(l.loopAddBlankSlides){const f=u-a.slides.length%u;d(f),a.recalcSlides(),a.updateSlides()}else il("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)");r()}else if(c){if(l.loopAddBlankSlides){const f=l.grid.rows-a.slides.length%l.grid.rows;d(f),a.recalcSlides(),a.updateSlides()}else il("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)");r()}else r();const h=l.centeredSlides||!!l.slidesOffsetBefore||!!l.slidesOffsetAfter;a.loopFix({slideRealIndex:e,direction:h?void 0:"next",initial:t})}function Nd({slideRealIndex:e,slideTo:t=!0,direction:a,setTranslate:l,activeSlideIndex:n,initial:r,byController:i,byMousewheel:s}={}){const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:o,allowSlidePrev:c,allowSlideNext:d,slidesEl:h,params:f}=u,{centeredSlides:E,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:y}=f,g=E||!!v||!!b;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&f.virtual.enabled){t&&(!g&&u.snapIndex===0?u.slideTo(u.virtual.slides.length,0,!1,!0):g&&u.snapIndex<f.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=d,u.emit("loopFix");return}let m=f.slidesPerView;m==="auto"?m=u.slidesPerViewDynamic():(m=Math.ceil(parseFloat(f.slidesPerView,10)),g&&m%2===0&&(m=m+1));const C=f.slidesPerGroupAuto?m:f.slidesPerGroup;let T=g?Math.max(C,Math.ceil(m/2)):C;T%C!==0&&(T+=C-T%C),T+=f.loopAdditionalSlides,u.loopedSlides=T;const w=u.grid&&f.grid&&f.grid.rows>1;o.length<m+T||u.params.effect==="cards"&&o.length<m+T*2?il("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"):w&&f.grid.fill==="row"&&il("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const I=[],N=[],S=w?Math.ceil(o.length/f.grid.rows):o.length,D=r&&S-y<m&&!g;let P=D?y:u.activeIndex;typeof n>"u"?n=u.getSlideIndex(o.find(R=>R.classList.contains(f.slideActiveClass))):P=n;const H=a==="next"||!a,B=a==="prev"||!a;let O=0,x=0;const U=(w?o[n].column:n)+(g&&typeof l>"u"?-m/2+.5:0);if(U<T){O=Math.max(T-U,C);for(let R=0;R<T-U;R+=1){const q=R-Math.floor(R/S)*S;if(w){const k=S-q-1;for(let W=o.length-1;W>=0;W-=1)o[W].column===k&&I.push(W)}else I.push(S-q-1)}}else if(U+m>S-T){x=Math.max(U-(S-T*2),C),D&&(x=Math.max(x,m-S+y+1));for(let R=0;R<x;R+=1){const q=R-Math.floor(R/S)*S;w?o.forEach((k,W)=>{k.column===q&&N.push(W)}):N.push(q)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect==="cards"&&o.length<m+T*2&&(N.includes(n)&&N.splice(N.indexOf(n),1),I.includes(n)&&I.splice(I.indexOf(n),1)),B&&I.forEach(R=>{o[R].swiperLoopMoveDOM=!0,h.prepend(o[R]),o[R].swiperLoopMoveDOM=!1}),H&&N.forEach(R=>{o[R].swiperLoopMoveDOM=!0,h.append(o[R]),o[R].swiperLoopMoveDOM=!1}),u.recalcSlides(),f.slidesPerView==="auto"?u.updateSlides():w&&(I.length>0&&B||N.length>0&&H)&&u.slides.forEach((R,q)=>{u.grid.updateSlide(q,R,u.slides)}),f.watchSlidesProgress&&u.updateSlidesOffset(),t){if(I.length>0&&B){if(typeof e>"u"){const R=u.slidesGrid[P],k=u.slidesGrid[P+O]-R;s?u.setTranslate(u.translate-k):(u.slideTo(P+Math.ceil(O),0,!1,!0),l&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-k,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-k))}else if(l){const R=w?I.length/f.grid.rows:I.length;u.slideTo(u.activeIndex+R,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(N.length>0&&H)if(typeof e>"u"){const R=u.slidesGrid[P],k=u.slidesGrid[P-x]-R;s?u.setTranslate(u.translate-k):(u.slideTo(P-x,0,!1,!0),l&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-k,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-k))}else{const R=w?N.length/f.grid.rows:N.length;u.slideTo(u.activeIndex-R,0,!1,!0)}}if(u.allowSlidePrev=c,u.allowSlideNext=d,u.controller&&u.controller.control&&!i){const R={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(q=>{!q.destroyed&&q.params.loop&&q.loopFix({...R,slideTo:q.params.slidesPerView===f.slidesPerView?t:!1})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...R,slideTo:u.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}u.emit("loopFix")}function Id(){const e=this,{params:t,slidesEl:a}=e;if(!t.loop||!a||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const l=[];e.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;l[r]=n}),e.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),l.forEach(n=>{a.append(n)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Ld={loopCreate:kd,loopFix:Nd,loopDestroy:Id};function Od(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const a=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Dd(){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 Pd={setGrabCursor:Od,unsetGrabCursor:Dd};function Md(e,t=this){function a(l){if(!l||l===Ft()||l===We())return null;l.assignedSlot&&(l=l.assignedSlot);const n=l.closest(e);return!n&&!l.getRootNode?null:n||a(l.getRootNode().host)}return a(t)}function ti(e,t,a){const l=We(),{params:n}=e,r=n.edgeSwipeDetection,i=n.edgeSwipeThreshold;return r&&(a<=i||a>=l.innerWidth-i)?r==="prevent"?(t.preventDefault(),!0):!1:!0}function Bd(e){const t=this,a=Ft();let l=e;l.originalEvent&&(l=l.originalEvent);const n=t.touchEventsData;if(l.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==l.pointerId)return;n.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(n.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){ti(t,l,l.targetTouches[0].pageX);return}const{params:r,touches:i,enabled:s}=t;if(!s||!r.simulateTouch&&l.pointerType==="mouse"||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let u=l.target;if(r.touchEventsTarget==="wrapper"&&!zc(u,t.wrapperEl)||"which"in l&&l.which===3||"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const o=!!r.noSwipingClass&&r.noSwipingClass!=="",c=l.composedPath?l.composedPath():l.path;o&&l.target&&l.target.shadowRoot&&c&&(u=c[0]);const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(h?Md(d,u):u.closest(d))){t.allowClick=!0;return}if(r.swipeHandler&&!u.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const f=i.currentX,E=i.currentY;if(!ti(t,l,f))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=f,i.startY=E,n.touchStartTime=nl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let v=!0;u.matches(n.focusableElements)&&(v=!1,u.nodeName==="SELECT"&&(n.isTouched=!1)),a.activeElement&&a.activeElement.matches(n.focusableElements)&&a.activeElement!==u&&(l.pointerType==="mouse"||l.pointerType!=="mouse"&&!u.matches(n.focusableElements))&&a.activeElement.blur();const b=v&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||b)&&!u.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function Fd(e){const t=Ft(),a=this,l=a.touchEventsData,{params:n,touches:r,rtlTranslate:i,enabled:s}=a;if(!s||!n.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(l.touchId!==null||u.pointerId!==l.pointerId))return;let o;if(u.type==="touchmove"){if(o=[...u.changedTouches].find(T=>T.identifier===l.touchId),!o||o.identifier!==l.touchId)return}else o=u;if(!l.isTouched){l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",u);return}const c=o.pageX,d=o.pageY;if(u.preventedByNestedSwiper){r.startX=c,r.startY=d;return}if(!a.allowTouchMove){u.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d}),l.touchStartTime=nl());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(d<r.startY&&a.translate<=a.maxTranslate()||d>r.startY&&a.translate>=a.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else{if(i&&(c>r.startX&&-a.translate<=a.maxTranslate()||c<r.startX&&-a.translate>=a.minTranslate()))return;if(!i&&(c<r.startX&&a.translate<=a.maxTranslate()||c>r.startX&&a.translate>=a.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(l.focusableElements)&&t.activeElement!==u.target&&u.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(l.focusableElements)){l.isMoved=!0,a.allowClick=!1;return}l.allowTouchCallbacks&&a.emit("touchMove",u),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=c,r.currentY=d;const h=r.currentX-r.startX,f=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(h**2+f**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let T;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:h*h+f*f>=25&&(T=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,l.isScrolling=a.isHorizontal()?T>n.touchAngle:90-T>n.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",u),typeof l.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(l.startMoving=!0),l.isScrolling||u.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;a.allowClick=!1,!n.cssMode&&u.cancelable&&u.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&u.stopPropagation();let E=a.isHorizontal()?h:f,v=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(E=Math.abs(E)*(i?1:-1),v=Math.abs(v)*(i?1:-1)),r.diff=E,E*=n.touchRatio,i&&(E=-E,v=-v);const b=a.touchesDirection;a.swipeDirection=E>0?"prev":"next",a.touchesDirection=v>0?"prev":"next";const y=a.params.loop&&!n.cssMode,g=a.touchesDirection==="next"&&a.allowSlideNext||a.touchesDirection==="prev"&&a.allowSlidePrev;if(!l.isMoved){if(y&&g&&a.loopFix({direction:a.swipeDirection}),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(T)}l.allowMomentumBounce=!1,n.grabCursor&&(a.allowSlideNext===!0||a.allowSlidePrev===!0)&&a.setGrabCursor(!0),a.emit("sliderFirstMove",u)}if(new Date().getTime(),n._loopSwapReset!==!1&&l.isMoved&&l.allowThresholdMove&&b!==a.touchesDirection&&y&&g&&Math.abs(E)>=1){Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",u),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let m=!0,C=n.resistanceRatio;if(n.touchReleaseOnEdges&&(C=0),E>0?(y&&g&&l.allowThresholdMove&&l.currentTranslate>(n.centeredSlides?a.minTranslate()-a.slidesSizesGrid[a.activeIndex+1]-(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.activeIndex+1]+a.params.spaceBetween:0)-a.params.spaceBetween:a.minTranslate())&&a.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>a.minTranslate()&&(m=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+E)**C))):E<0&&(y&&g&&l.allowThresholdMove&&l.currentTranslate<(n.centeredSlides?a.maxTranslate()+a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween+(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween:0):a.maxTranslate())&&a.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:a.slides.length-(n.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),l.currentTranslate<a.maxTranslate()&&(m=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-E)**C))),m&&(u.preventedByNestedSwiper=!0),!a.allowSlideNext&&a.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&a.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&!a.allowSlideNext&&(l.currentTranslate=l.startTranslate),n.threshold>0)if(Math.abs(E)>n.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,l.currentTranslate=l.startTranslate,r.diff=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{l.currentTranslate=l.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&a.freeMode||n.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function Rd(e){const t=this,a=t.touchEventsData;let l=e;l.originalEvent&&(l=l.originalEvent);let n;if(l.type==="touchend"||l.type==="touchcancel"){if(n=[...l.changedTouches].find(T=>T.identifier===a.touchId),!n||n.identifier!==a.touchId)return}else{if(a.touchId!==null||l.pointerId!==a.pointerId)return;n=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(t.browser.isSafari||t.browser.isWebView)))return;a.pointerId=null,a.touchId=null;const{params:i,touches:s,rtlTranslate:u,slidesGrid:o,enabled:c}=t;if(!c||!i.simulateTouch&&l.pointerType==="mouse")return;if(a.allowTouchCallbacks&&t.emit("touchEnd",l),a.allowTouchCallbacks=!1,!a.isTouched){a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,a.startMoving=!1;return}i.grabCursor&&a.isMoved&&a.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=nl(),h=d-a.touchStartTime;if(t.allowClick){const T=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(T&&T[0]||l.target,T),t.emit("tap click",l),h<300&&d-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=nl(),Yr(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||s.diff===0&&!a.loopSwapReset||a.currentTranslate===a.startTranslate&&!a.loopSwapReset){a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;return}a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;let f;if(i.followFinger?f=u?t.translate:-t.translate:f=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const E=f>=-t.maxTranslate()&&!t.params.loop;let v=0,b=t.slidesSizesGrid[0];for(let T=0;T<o.length;T+=T<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=T<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[T+w]<"u"?(E||f>=o[T]&&f<o[T+w])&&(v=T,b=o[T+w]-o[T]):(E||f>=o[T])&&(v=T,b=o[o.length-1]-o[o.length-2])}let y=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const m=(f-o[v])/b,C=v<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(h>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?y:v+C):t.slideTo(v)),t.swipeDirection==="prev"&&(m>1-i.longSwipesRatio?t.slideTo(v+C):g!==null&&m<0&&Math.abs(m)>i.longSwipesRatio?t.slideTo(g):t.slideTo(v))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(v+C):t.slideTo(v):(t.swipeDirection==="next"&&t.slideTo(y!==null?y:v+C),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:v))}}function ai(){const e=this,{params:t,el:a}=e;if(a&&a.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:n,snapGrid:r}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?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=n,e.allowSlideNext=l,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Hd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function $d(){const e=this,{wrapperEl:t,rtlTranslate:a,enabled:l}=e;if(!l)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 n;const r=e.maxTranslate()-e.minTranslate();r===0?n=0:n=(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ud(e){const t=this;ul(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function qd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const li=(e,t)=>{const a=Ft(),{params:l,el:n,wrapperEl:r,device:i}=e,s=!!l.nested,u=t==="on"?"addEventListener":"removeEventListener",o=t;!n||typeof n=="string"||(a[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),n[u]("touchstart",e.onTouchStart,{passive:!1}),n[u]("pointerdown",e.onTouchStart,{passive:!1}),a[u]("touchmove",e.onTouchMove,{passive:!1,capture:s}),a[u]("pointermove",e.onTouchMove,{passive:!1,capture:s}),a[u]("touchend",e.onTouchEnd,{passive:!0}),a[u]("pointerup",e.onTouchEnd,{passive:!0}),a[u]("pointercancel",e.onTouchEnd,{passive:!0}),a[u]("touchcancel",e.onTouchEnd,{passive:!0}),a[u]("pointerout",e.onTouchEnd,{passive:!0}),a[u]("pointerleave",e.onTouchEnd,{passive:!0}),a[u]("contextmenu",e.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&n[u]("click",e.onClick,!0),l.cssMode&&r[u]("scroll",e.onScroll),l.updateOnWindowResize?e[o](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ai,!0):e[o]("observerUpdate",ai,!0),n[u]("load",e.onLoad,{capture:!0}))};function zd(){const e=this,{params:t}=e;e.onTouchStart=Bd.bind(e),e.onTouchMove=Fd.bind(e),e.onTouchEnd=Rd.bind(e),e.onDocumentTouchStart=qd.bind(e),t.cssMode&&(e.onScroll=$d.bind(e)),e.onClick=Hd.bind(e),e.onLoad=Ud.bind(e),li(e,"on")}function Vd(){li(this,"off")}var Gd={attachEvents:zd,detachEvents:Vd};const ni=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Yd(){const e=this,{realIndex:t,initialized:a,params:l,el:n}=e,r=l.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const i=Ft(),s=l.breakpointsBase==="window"||!l.breakpointsBase?l.breakpointsBase:"container",u=["window","container"].includes(l.breakpointsBase)||!l.breakpointsBase?e.el:i.querySelector(l.breakpointsBase),o=e.getBreakpoint(r,s,u);if(!o||e.currentBreakpoint===o)return;const d=(o in r?r[o]:void 0)||e.originalParams,h=ni(e,l),f=ni(e,d),E=e.params.grabCursor,v=d.grabCursor,b=l.enabled;h&&!f?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&f&&(n.classList.add(`${l.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),E&&!v?e.unsetGrabCursor():!E&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof d[w]>"u")return;const I=l[w]&&l[w].enabled,N=d[w]&&d[w].enabled;I&&!N&&e[w].disable(),!I&&N&&e[w].enable()});const y=d.direction&&d.direction!==l.direction,g=l.loop&&(d.slidesPerView!==l.slidesPerView||y),m=l.loop;y&&a&&e.changeDirection(),Ze(e.params,d);const C=e.params.enabled,T=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),b&&!C?e.disable():!b&&C&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",d),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!m&&T?(e.loopCreate(t),e.updateSlides()):m&&!T&&e.loopDestroy()),e.emit("breakpoint",d)}function Wd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=We(),r=t==="window"?n.innerHeight:a.clientHeight,i=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const u=parseFloat(s.substr(1));return{value:r*u,point:s}}return{value:s,point:s}});i.sort((s,u)=>parseInt(s.value,10)-parseInt(u.value,10));for(let s=0;s<i.length;s+=1){const{point:u,value:o}=i[s];t==="window"?n.matchMedia(`(min-width: ${o}px)`).matches&&(l=u):o<=a.clientWidth&&(l=u)}return l||"max"}var jd={setBreakpoint:Yd,getBreakpoint:Wd};function Kd(e,t){const a=[];return e.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(n=>{l[n]&&a.push(t+n)}):typeof l=="string"&&a.push(t+l)}),a}function Xd(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=Kd(["initialized",a.direction,{"free-mode":e.params.freeMode&&a.freeMode.enabled},{autoheight:a.autoHeight},{rtl:l},{grid:a.grid&&a.grid.rows>1},{"grid-column":a.grid&&a.grid.rows>1&&a.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":a.cssMode},{centered:a.cssMode&&a.centeredSlides},{"watch-progress":a.watchSlidesProgress}],a.containerModifierClass);t.push(...i),n.classList.add(...t),e.emitContainerClasses()}function Qd(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var Jd={addClasses:Xd,removeClasses:Qd};function Zd(){const e=this,{isLocked:t,params:a}=e,{slidesOffsetBefore:l}=a;if(l){const n=e.slides.length-1,r=e.slidesGrid[n]+e.slidesSizesGrid[n]+l*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;a.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),a.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var ef={checkOverflow:Zd},en={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 tf(e,t){return function(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){Ze(t,l);return}if(e[n]===!0&&(e[n]={enabled:!0}),n==="navigation"&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),!(n in e&&"enabled"in r)){Ze(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ze(t,l)}}const tn={eventsEmitter:Jc,update:od,translate:bd,transition:Ed,slide:_d,loop:Ld,grabCursor:Pd,events:Gd,breakpoints:jd,checkOverflow:ef,classes:Jd},an={};let ln=class At{constructor(...t){let a,l;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?l=t[0]:[a,l]=t,l||(l={}),l=Ze({},l),a&&!l.el&&(l.el=a);const n=Ft();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const u=[];return n.querySelectorAll(l.el).forEach(o=>{const c=Ze({},l,{el:o});u.push(new At(c))}),u}const r=this;r.__swiper__=!0,r.support=Xr(),r.device=Qr({userAgent:l.userAgent}),r.browser=Jr(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],l.modules&&Array.isArray(l.modules)&&r.modules.push(...l.modules);const i={};r.modules.forEach(u=>{u({params:l,swiper:r,extendParams:tf(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const s=Ze({},en,i);return r.params=Ze({},s,an,l),r.originalParams=Ze({},r.params),r.passedParams=Ze({},l),r.params&&r.params.on&&Object.keys(r.params.on).forEach(u=>{r.on(u,r.params.on[u])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:a,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.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:r.params.allowSlideNext,allowSlidePrev:r.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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}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:a,params:l}=this,n=dt(a,`.${l.slideClass}, swiper-slide`),r=jr(n[0]);return jr(t)-r}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(a=>a.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:a,params:l}=t;t.slides=dt(a,`.${l.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,a){const l=this;t=Math.min(Math.max(t,0),1);const n=l.minTranslate(),i=(l.maxTranslate()-n)*t+n;l.translateTo(i,typeof a>"u"?0:a),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=t.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",a.join(" "))}getSlideClasses(t){const a=this;return a.destroyed?"":t.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(a.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=[];t.slides.forEach(l=>{const n=t.getSlideClasses(l);a.push({slideEl:l,classNames:n}),t.emit("_slideClass",l,n)}),t.emit("_slideClasses",a)}slidesPerViewDynamic(t="current",a=!1){const l=this,{params:n,slides:r,slidesGrid:i,slidesSizesGrid:s,size:u,activeIndex:o}=l;let c=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let d=r[o]?Math.ceil(r[o].swiperSlideSize):0,h;for(let f=o+1;f<r.length;f+=1)r[f]&&!h&&(d+=Math.ceil(r[f].swiperSlideSize),c+=1,d>u&&(h=!0));for(let f=o-1;f>=0;f-=1)r[f]&&!h&&(d+=r[f].swiperSlideSize,c+=1,d>u&&(h=!0))}else if(t==="current")for(let d=o+1;d<r.length;d+=1)(a?i[d]+s[d]-i[o]<u:i[d]-i[o]<u)&&(c+=1);else for(let d=o-1;d>=0;d-=1)i[o]-i[d]<u&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:a,params:l}=t;l.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&ul(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function n(){const i=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)n(),l.autoHeight&&t.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&t.isEnd&&!l.centeredSlides){const i=t.virtual&&l.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(i.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||n()}l.watchOverflow&&a!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,a=!0){const l=this,n=l.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${n}`),l.el.classList.add(`${l.params.containerModifierClass}${t}`),l.emitContainerClasses(),l.params.direction=t,l.slides.forEach(r=>{t==="vertical"?r.style.width="":r.style.height=""}),l.emit("changeDirection"),a&&l.update()),l}changeLanguageDirection(t){const a=this;a.rtl&&t==="rtl"||!a.rtl&&t==="ltr"||(a.rtl=t==="rtl",a.rtlTranslate=a.params.direction==="horizontal"&&a.rtl,a.rtl?(a.el.classList.add(`${a.params.containerModifierClass}rtl`),a.el.dir="rtl"):(a.el.classList.remove(`${a.params.containerModifierClass}rtl`),a.el.dir="ltr"),a.update())}mount(t){const a=this;if(a.mounted)return!0;let l=t||a.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=a,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===a.params.swiperElementNodeName.toUpperCase()&&(a.isElement=!0);const n=()=>`.${(a.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(n()):dt(l,n())[0];return!i&&a.params.createElements&&(i=sl("div",a.params.wrapperClass),l.append(i),dt(l,`.${a.params.slideClass}`).forEach(s=>{i.append(s)})),Object.assign(a,{el:l,wrapperEl:i,slidesEl:a.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:i,hostEl:a.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||_t(l,"direction")==="rtl"),wrongRTL:_t(i,"display")==="-webkit-box"}),!0}init(t){const a=this;if(a.initialized||a.mount(t)===!1)return a;a.emit("beforeInit"),a.params.breakpoints&&a.setBreakpoint(),a.addClasses(),a.updateSize(),a.updateSlides(),a.params.watchOverflow&&a.checkOverflow(),a.params.grabCursor&&a.enabled&&a.setGrabCursor(),a.params.loop&&a.virtual&&a.params.virtual.enabled?a.slideTo(a.params.initialSlide+a.virtual.slidesBefore,0,a.params.runCallbacksOnInit,!1,!0):a.slideTo(a.params.initialSlide,0,a.params.runCallbacksOnInit,!1,!0),a.params.loop&&a.loopCreate(void 0,!0),a.attachEvents();const n=[...a.el.querySelectorAll('[loading="lazy"]')];return a.isElement&&n.push(...a.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?ul(a,r):r.addEventListener("load",i=>{ul(a,i.target)})}),Zl(a),a.initialized=!0,Zl(a),a.emit("init"),a.emit("afterInit"),a}destroy(t=!0,a=!0){const l=this,{params:n,el:r,wrapperEl:i,slides:s}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),n.loop&&l.loopDestroy(),a&&(l.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),i&&i.removeAttribute("style"),s&&s.length&&s.forEach(u=>{u.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(u=>{l.off(u)}),t!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),Rc(l)),l.destroyed=!0),null}static extendDefaults(t){Ze(an,t)}static get extendedDefaults(){return an}static get defaults(){return en}static installModule(t){At.prototype.__modules__||(At.prototype.__modules__=[]);const a=At.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>At.installModule(a)),At):(At.installModule(t),At)}};Object.keys(tn).forEach(e=>{Object.keys(tn[e]).forEach(t=>{ln.prototype[t]=tn[e][t]})}),ln.use([Xc,Qc]);const ri=["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 Rt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Zt(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:Rt(t[l])&&Rt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:Zt(e[l],t[l]):e[l]=t[l]})}function ii(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function si(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ui(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function oi(e=""){const t=e.split(" ").map(l=>l.trim()).filter(l=>!!l),a=[];return t.forEach(l=>{a.indexOf(l)<0&&a.push(l)}),a.join(" ")}function af(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function lf({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:s}){const u=l.filter(N=>N!=="children"&&N!=="direction"&&N!=="wrapperClass"),{params:o,pagination:c,navigation:d,scrollbar:h,virtual:f,thumbs:E}=e;let v,b,y,g,m,C,T,w;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(v=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(b=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||s)&&(o.pagination||o.pagination===!1)&&c&&!c.el&&(y=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||i)&&(o.scrollbar||o.scrollbar===!1)&&h&&!h.el&&(g=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||r)&&(a.navigation.nextEl||n)&&(o.navigation||o.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(m=!0);const I=N=>{e[N]&&(e[N].destroy(),N==="navigation"?(e.isElement&&(e[N].prevEl.remove(),e[N].nextEl.remove()),o[N].prevEl=void 0,o[N].nextEl=void 0,e[N].prevEl=void 0,e[N].nextEl=void 0):(e.isElement&&e[N].el.remove(),o[N].el=void 0,e[N].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?C=!0:!o.loop&&a.loop?T=!0:w=!0),u.forEach(N=>{if(Rt(o[N])&&Rt(a[N]))Object.assign(o[N],a[N]),(N==="navigation"||N==="pagination"||N==="scrollbar")&&"enabled"in a[N]&&!a[N].enabled&&I(N);else{const S=a[N];(S===!0||S===!1)&&(N==="navigation"||N==="pagination"||N==="scrollbar")?S===!1&&I(N):o[N]=a[N]}}),u.includes("controller")&&!b&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&f&&o.virtual.enabled?(f.slides=t,f.update(!0)):l.includes("virtual")&&f&&o.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),l.includes("children")&&t&&o.loop&&(w=!0),v&&E.init()&&E.update(!0),b&&(e.controller.control=o.controller.control),y&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(o.pagination.el=s),c.init(),c.render(),c.update()),g&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(o.scrollbar.el=i),h.init(),h.updateSize(),h.setTranslate()),m&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),Wl(n,e.navigation.arrowSvg),n.part.add("button-next"),e.el.appendChild(n)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),Wl(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),d.init(),d.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(C||w)&&e.loopDestroy(),(T||w)&&e.loopCreate(),e.update()}function nf(e={},t=!0){const a={on:{}},l={},n={};Zt(a,en),a._emitClasses=!0,a.init=!1;const r={},i=ri.map(u=>u.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(u=>{typeof e[u]>"u"||(i.indexOf(u)>=0?Rt(e[u])?(a[u]={},n[u]={},Zt(a[u],e[u]),Zt(n[u],e[u])):(a[u]=e[u],n[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?l[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:a.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:r[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{a[u]===!0&&(a[u]={}),a[u]===!1&&delete a[u]}),{params:a,passedParams:n,rest:r,events:l}}function rf({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){ii(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),si(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ui(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function sf(e,t,a,l,n){const r=[];if(!t)return r;const i=u=>{r.indexOf(u)<0&&r.push(u)};if(a&&l){const u=l.map(n),o=a.map(n);u.join("")!==o.join("")&&i("children"),l.length!==a.length&&i("children")}return ri.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(Rt(e[u])&&Rt(t[u])){const o=Object.keys(e[u]),c=Object.keys(t[u]);o.length!==c.length?i(u):(o.forEach(d=>{e[u][d]!==t[u][d]&&i(u)}),c.forEach(d=>{e[u][d]!==t[u][d]&&i(u)}))}else e[u]!==t[u]&&i(u)}),r}const uf=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 ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ol.apply(this,arguments)}function ci(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function di(e){const t=[];return A.Children.toArray(e).forEach(a=>{ci(a)?t.push(a):a.props&&a.props.children&&di(a.props.children).forEach(l=>t.push(l))}),t}function of(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return A.Children.toArray(e).forEach(l=>{if(ci(l))t.push(l);else if(l.props&&l.props.slot&&a[l.props.slot])a[l.props.slot].push(l);else if(l.props&&l.props.children){const n=di(l.props.children);n.length>0?n.forEach(r=>t.push(r)):a["container-end"].push(l)}else a["container-end"].push(l)}),{slides:t,slots:a}}function cf(e,t,a){if(!a)return null;const l=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:r,to:i}=a,s=e.params.loop?-t.length:0,u=e.params.loop?t.length*2:t.length,o=[];for(let c=s;c<u;c+=1)c>=r&&c<=i&&o.push(t[l(c)]);return o.map((c,d)=>A.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ma(e,t){return typeof window>"u"?A.useEffect(e,t):A.useLayoutEffect(e,t)}const fi=A.createContext(null),df=A.createContext(null),pi=A.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let s=!1;const[u,o]=A.useState("swiper"),[c,d]=A.useState(null),[h,f]=A.useState(!1),E=A.useRef(!1),v=A.useRef(null),b=A.useRef(null),y=A.useRef(null),g=A.useRef(null),m=A.useRef(null),C=A.useRef(null),T=A.useRef(null),w=A.useRef(null),{params:I,passedParams:N,rest:S,events:D}=nf(r),{slides:P,slots:H}=of(l),B=()=>{f(!h)};Object.assign(I.on,{_containerClasses(R,q){o(q)}});const O=()=>{Object.assign(I.on,D),s=!0;const R={...I};if(delete R.wrapperClass,b.current=new ln(R),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=P;const q={cache:!1,slides:P,renderExternal:d,renderExternalUpdate:!1};Zt(b.current.params.virtual,q),Zt(b.current.originalParams.virtual,q)}};v.current||O(),b.current&&b.current.on("_beforeBreakpoint",B);const x=()=>{s||!D||!b.current||Object.keys(D).forEach(R=>{b.current.on(R,D[R])})},L=()=>{!D||!b.current||Object.keys(D).forEach(R=>{b.current.off(R,D[R])})};A.useEffect(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",B)}),A.useEffect(()=>{!E.current&&b.current&&(b.current.emitSlidesClasses(),E.current=!0)}),ma(()=>{if(i&&(i.current=v.current),!!v.current)return b.current.destroyed&&O(),rf({el:v.current,nextEl:m.current,prevEl:C.current,paginationEl:T.current,scrollbarEl:w.current,swiper:b.current},I),n&&!b.current.destroyed&&n(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),ma(()=>{x();const R=sf(N,y.current,P,g.current,q=>q.key);return y.current=N,g.current=P,R.length&&b.current&&!b.current.destroyed&&lf({swiper:b.current,slides:P,passedParams:N,changedParams:R,nextEl:m.current,prevEl:C.current,scrollbarEl:w.current,paginationEl:T.current}),()=>{L()}}),ma(()=>{uf(b.current)},[c]);function U(){return I.virtual?cf(b.current,P,c):P.map((R,q)=>A.cloneElement(R,{swiper:b.current,swiperSlideIndex:q}))}return A.createElement(t,ol({ref:v,className:oi(`${u}${e?` ${e}`:""}`)},S),A.createElement(df.Provider,{value:b.current},H["container-start"],A.createElement(a,{className:af(I.wrapperClass)},H["wrapper-start"],U(),H["wrapper-end"]),ii(I)&&A.createElement(A.Fragment,null,A.createElement("div",{ref:C,className:"swiper-button-prev"}),A.createElement("div",{ref:m,className:"swiper-button-next"})),ui(I)&&A.createElement("div",{ref:w,className:"swiper-scrollbar"}),si(I)&&A.createElement("div",{ref:T,className:"swiper-pagination"}),H["container-end"]))});pi.displayName="Swiper";const hi=A.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:s,...u}={},o)=>{const c=A.useRef(null),[d,h]=A.useState("swiper-slide"),[f,E]=A.useState(!1);function v(m,C,T){C===c.current&&h(T)}ma(()=>{if(typeof s<"u"&&(c.current.swiperSlideIndex=s),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){d!=="swiper-slide"&&h("swiper-slide");return}return l.on("_slideClass",v),()=>{l&&l.off("_slideClass",v)}}}),ma(()=>{l&&c.current&&!l.destroyed&&h(l.getSlideClasses(c.current))},[l]);const b={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},y=()=>typeof t=="function"?t(b):t,g=()=>{E(!0)};return A.createElement(e,ol({ref:c,className:oi(`${d}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},u),n&&A.createElement(fi.Provider,{value:b},A.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},y(),r&&!f&&A.createElement("div",{className:"swiper-lazy-preloader",ref:m=>{m&&(m.lazyPreloaderManaged=!0)}}))),!n&&A.createElement(fi.Provider,{value:b},y(),r&&!f&&A.createElement("div",{className:"swiper-lazy-preloader",ref:m=>{m&&(m.lazyPreloaderManaged=!0)}})))});hi.displayName="SwiperSlide";function ff(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=dt(e.el,`.${l[n]}`)[0];r||(r=sl("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const bi='<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 pf({swiper:e,extendParams:t,on:a,emit:l}){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:bi};function n(f){let E;return f&&typeof f=="string"&&e.isElement&&(E=e.el.querySelector(f)||e.hostEl.querySelector(f),E)?E:(f&&(typeof f=="string"&&(E=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&E&&E.length>1&&e.el.querySelectorAll(f).length===1?E=e.el.querySelector(f):E&&E.length===1&&(E=E[0])),f&&!E?f:E)}function r(f,E){const v=e.params.navigation;f=yt(f),f.forEach(b=>{b&&(b.classList[E?"add":"remove"](...v.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=E),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](v.lockClass))})}function i(){const{nextEl:f,prevEl:E}=e.navigation;if(e.params.loop){r(E,!1),r(f,!1);return}r(E,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function s(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function u(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const f=e.params.navigation;if(e.params.navigation=ff(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let E=n(f.nextEl),v=n(f.prevEl);Object.assign(e.navigation,{nextEl:E,prevEl:v}),E=yt(E),v=yt(v);const b=(y,g)=>{if(y){if(f.addIcons&&y.matches(".swiper-button-next,.swiper-button-prev")&&!y.querySelector("svg")){const m=document.createElement("div");Wl(m,bi),y.appendChild(m.querySelector("svg")),m.remove()}y.addEventListener("click",g==="next"?u:s)}!e.enabled&&y&&y.classList.add(...f.lockClass.split(" "))};E.forEach(y=>b(y,"next")),v.forEach(y=>b(y,"prev"))}function c(){let{nextEl:f,prevEl:E}=e.navigation;f=yt(f),E=yt(E);const v=(b,y)=>{b.removeEventListener("click",y==="next"?u:s),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(b=>v(b,"next")),E.forEach(b=>v(b,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?h():(o(),i())}),a("toEdge fromEdge lock unlock",()=>{i()}),a("destroy",()=>{c()}),a("enable disable",()=>{let{nextEl:f,prevEl:E}=e.navigation;if(f=yt(f),E=yt(E),e.enabled){i();return}[...f,...E].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),a("click",(f,E)=>{let{nextEl:v,prevEl:b}=e.navigation;v=yt(v),b=yt(b);const y=E.target;let g=b.includes(y)||v.includes(y);if(e.isElement&&!g){const m=E.path||E.composedPath&&E.composedPath();m&&(g=m.find(C=>v.includes(C)||b.includes(C)))}if(e.params.navigation.hideOnClick&&!g){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let m;v.length?m=v[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(m=b[0].classList.contains(e.params.navigation.hiddenClass)),l(m===!0?"navigationShow":"navigationHide"),[...v,...b].filter(C=>!!C).forEach(C=>C.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),o(),i()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:d,disable:h,update:i,init:o,destroy:c})}function zy(){}function Vy(){}function mi(e){const t=[],a=String(e||"");let l=a.indexOf(","),n=0,r=!1;for(;!r;){l===-1&&(l=a.length,r=!0);const i=a.slice(n,l).trim();(i||!r)&&t.push(i),n=l+1,l=a.indexOf(",",n)}return t}function vi(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const hf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mf={};function gi(e,t){return(mf.jsx?bf:hf).test(e)}const vf=/[ \t\n\f\r]/g;function gf(e){return typeof e=="object"?e.type==="text"?Ei(e.value):!1:Ei(e)}function Ei(e){return e.replace(vf,"")===""}class va{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}va.prototype.normal={},va.prototype.property={},va.prototype.space=void 0;function yi(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new va(a,l,t)}function ga(e){return e.toLowerCase()}class Ke{constructor(t,a){this.attribute=a,this.property=t}}Ke.prototype.attribute="",Ke.prototype.booleanish=!1,Ke.prototype.boolean=!1,Ke.prototype.commaOrSpaceSeparated=!1,Ke.prototype.commaSeparated=!1,Ke.prototype.defined=!1,Ke.prototype.mustUseProperty=!1,Ke.prototype.number=!1,Ke.prototype.overloadedBoolean=!1,Ke.prototype.property="",Ke.prototype.spaceSeparated=!1,Ke.prototype.space=void 0;let Ef=0;const Ee=Ht(),Fe=Ht(),nn=Ht(),le=Ht(),Ie=Ht(),ea=Ht(),et=Ht();function Ht(){return 2**++Ef}const rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:Fe,commaOrSpaceSeparated:et,commaSeparated:ea,number:le,overloadedBoolean:nn,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),sn=Object.keys(rn);class un extends Ke{constructor(t,a,l,n){let r=-1;if(super(t,a),Ti(this,"space",n),typeof l=="number")for(;++r<sn.length;){const i=sn[r];Ti(this,sn[r],(l&rn[i])===rn[i])}}}un.prototype.defined=!0;function Ti(e,t,a){a&&(e[t]=a)}function ta(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new un(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[ga(l)]=l,a[ga(r.attribute)]=l}return new va(t,a,e.space)}const xi=ta({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ie,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:le,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ie,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:Fe,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ci(e,t){return t in e?e[t]:t}function Si(e,t){return Ci(e,t.toLowerCase())}const yf=ta({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ea,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Ie,autoFocus:Ee,autoPlay:Ee,blocking:Ie,capture:null,charSet:null,checked:Ee,cite:null,className:Ie,cols:le,colSpan:null,content:null,contentEditable:Fe,controls:Ee,controlsList:Ie,coords:le|ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:nn,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Ie,height:le,hidden:nn,high:le,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:Ee,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:le,pattern:null,ping:Ie,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Ie,required:Ee,reversed:Ee,rows:le,rowSpan:le,sandbox:Ie,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:Fe,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:Si}),Tf=ta({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:et,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Ie,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:ea,g2:ea,glyphName:ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ci}),wi=ta({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()}}),Ai=ta({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Si}),_i=ta({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xf={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"},Cf=/[A-Z]/g,ki=/-[a-z]/g,Sf=/^data[-\w.:]+$/i;function cl(e,t){const a=ga(t);let l=t,n=Ke;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Sf.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(ki,Af);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!ki.test(r)){let i=r.replace(Cf,wf);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=un}return new n(l,t)}function wf(e){return"-"+e.toLowerCase()}function Af(e){return e.charAt(1).toUpperCase()}const Ea=yi([xi,yf,wi,Ai,_i],"html"),kt=yi([xi,Tf,wi,Ai,_i],"svg");function Ni(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ii(e){return e.join(" ").trim()}function on(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aa={},cn,Li;function _f(){if(Li)return cn;Li=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,s=/^\s+|\s+$/g,u=`
|
|
43
43
|
`,o="/",c="*",d="",h="comment",f="declaration";function E(b,y){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];y=y||{};var g=1,m=1;function C(O){var x=O.match(t);x&&(g+=x.length);var L=O.lastIndexOf(u);m=~L?O.length-L:m+O.length}function T(){var O={line:g,column:m};return function(x){return x.position=new w(O),S(),x}}function w(O){this.start=O,this.end={line:g,column:m},this.source=y.source}w.prototype.content=b;function I(O){var x=new Error(y.source+":"+g+":"+m+": "+O);if(x.reason=O,x.filename=y.source,x.line=g,x.column=m,x.source=b,!y.silent)throw x}function N(O){var x=O.exec(b);if(x){var L=x[0];return C(L),b=b.slice(L.length),x}}function S(){N(a)}function D(O){var x;for(O=O||[];x=P();)x!==!1&&O.push(x);return O}function P(){var O=T();if(!(o!=b.charAt(0)||c!=b.charAt(1))){for(var x=2;d!=b.charAt(x)&&(c!=b.charAt(x)||o!=b.charAt(x+1));)++x;if(x+=2,d===b.charAt(x-1))return I("End of comment missing");var L=b.slice(2,x-2);return m+=2,C(L),b=b.slice(x),m+=2,O({type:h,comment:L})}}function H(){var O=T(),x=N(l);if(x){if(P(),!N(n))return I("property missing ':'");var L=N(r),U=O({type:f,property:v(x[0].replace(e,d)),value:L?v(L[0].replace(e,d)):d});return N(i),U}}function B(){var O=[];D(O);for(var x;x=H();)x!==!1&&(O.push(x),D(O));return O}return S(),B()}function v(b){return b?b.replace(s,d):d}return cn=E,cn}var Oi;function kf(){if(Oi)return aa;Oi=1;var e=aa&&aa.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=a;const t=e(_f());function a(l,n){let r=null;if(!l||typeof l!="string")return r;const i=(0,t.default)(l),s=typeof n=="function";return i.forEach(u=>{if(u.type!=="declaration")return;const{property:o,value:c}=u;s?n(o,c,u):c&&(r=r||{},r[o]=c)}),r}return aa}var ya={},Di;function Nf(){if(Di)return ya;Di=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,a=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,r=function(o){return!o||a.test(o)||e.test(o)},i=function(o,c){return c.toUpperCase()},s=function(o,c){return"".concat(c,"-")},u=function(o,c){return c===void 0&&(c={}),r(o)?o:(o=o.toLowerCase(),c.reactCompat?o=o.replace(n,s):o=o.replace(l,s),o.replace(t,i))};return ya.camelCase=u,ya}var Ta,Pi;function If(){if(Pi)return Ta;Pi=1;var e=Ta&&Ta.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(kf()),a=Nf();function l(n,r){var i={};return!n||typeof n!="string"||(0,t.default)(n,function(s,u){s&&u&&(i[(0,a.camelCase)(s,r)]=u)}),i}return l.default=l,Ta=l,Ta}var Lf=If();const Of=on(Lf),dl=Mi("end"),ft=Mi("start");function Mi(e){return t;function t(a){const l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function Bi(e){const t=ft(e),a=dl(e);if(t&&a)return{start:t,end:a}}function xa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fi(e.position):"start"in e||"end"in e?Fi(e):"line"in e||"column"in e?dn(e):""}function dn(e){return Ri(e&&e.line)+":"+Ri(e&&e.column)}function Fi(e){return dn(e&&e.start)+"-"+dn(e&&e.end)}function Ri(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let n="",r={},i=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(i=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof l=="string"){const u=l.indexOf(":");u===-1?r.ruleId=l:(r.source=l.slice(0,u),r.ruleId=l.slice(u+1))}if(!r.place&&r.ancestors&&r.ancestors){const u=r.ancestors[r.ancestors.length-1];u&&(r.place=u.position)}const s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=s?s.line:void 0,this.name=xa(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=i&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ze.prototype.file="",ze.prototype.name="",ze.prototype.reason="",ze.prototype.message="",ze.prototype.stack="",ze.prototype.column=void 0,ze.prototype.line=void 0,ze.prototype.ancestors=void 0,ze.prototype.cause=void 0,ze.prototype.fatal=void 0,ze.prototype.place=void 0,ze.prototype.ruleId=void 0,ze.prototype.source=void 0;const fn={}.hasOwnProperty,Df=new Map,Pf=/[A-Z]/g,Mf=new Set(["table","tbody","thead","tfoot","tr"]),Bf=new Set(["td","th"]),Hi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ff(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=Gf(a,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");l=Vf(a,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kt:Ea,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=$i(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function $i(e,t,a){if(t.type==="element")return Rf(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Hf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Uf(e,t,a);if(t.type==="mdxjsEsm")return $f(e,t);if(t.type==="root")return qf(e,t,a);if(t.type==="text")return zf(e,t)}function Rf(e,t,a){const l=e.schema;let n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=kt,e.schema=n),e.ancestors.push(t);const r=qi(e,t.tagName,!1),i=Yf(e,t);let s=hn(e,t);return Mf.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!gf(u):!0})),Ui(e,i,r,t),pn(i,s),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function Hf(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Ca(e,t.position)}function $f(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ca(e,t.position)}function Uf(e,t,a){const l=e.schema;let n=l;t.name==="svg"&&l.space==="html"&&(n=kt,e.schema=n),e.ancestors.push(t);const r=t.name===null?e.Fragment:qi(e,t.name,!0),i=Wf(e,t),s=hn(e,t);return Ui(e,i,r,t),pn(i,s),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function qf(e,t,a){const l={};return pn(l,hn(e,t)),e.create(t,e.Fragment,l,a)}function zf(e,t){return t.value}function Ui(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function pn(e,t){if(t.length>0){const a=t.length>1?t:t[0];a&&(e.children=a)}}function Vf(e,t,a){return l;function l(n,r,i,s){const o=Array.isArray(i.children)?a:t;return s?o(r,i,s):o(r,i)}}function Gf(e,t){return a;function a(l,n,r,i){const s=Array.isArray(r.children),u=ft(l);return t(n,r,i,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Yf(e,t){const a={};let l,n;for(n in t.properties)if(n!=="children"&&fn.call(t.properties,n)){const r=jf(e,n,t.properties[n]);if(r){const[i,s]=r;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&Bf.has(t.tagName)?l=s:a[i]=s}}if(l){const r=a.style||(a.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function Wf(e,t){const a={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const r=l.data.estree.body[0];r.type;const i=r.expression;i.type;const s=i.properties[0];s.type,Object.assign(a,e.evaluater.evaluateExpression(s.argument))}else Ca(e,t.position);else{const n=l.name;let r;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const s=l.value.data.estree.body[0];s.type,r=e.evaluater.evaluateExpression(s.expression)}else Ca(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function hn(e,t){const a=[];let l=-1;const n=e.passKeys?new Map:Df;for(;++l<t.children.length;){const r=t.children[l];let i;if(e.passKeys){const u=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(u){const o=n.get(u)||0;i=u+"-"+o,n.set(u,o+1)}}const s=$i(e,r,i);s!==void 0&&a.push(s)}return a}function jf(e,t,a){const l=cl(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?vi(a):Ii(a)),l.property==="style"){let n=typeof a=="object"?a:Kf(e,String(a));return e.stylePropertyNameCase==="css"&&(n=Xf(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?xf[l.property]||l.property:l.attribute,a]}}function Kf(e,t){try{return Of(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,n=new ze("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Hi+"#cannot-parse-style-attribute",n}}function qi(e,t,a){let l;if(!a)l={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let r=-1,i;for(;++r<n.length;){const s=gi(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(r&&s.type==="Literal"),optional:!1}:s}l=i}else l=gi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const n=l.value;return fn.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);Ca(e)}function Ca(e,t){const a=new ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Hi+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Xf(e){const t={};let a;for(a in e)fn.call(e,a)&&(t[Qf(a)]=e[a]);return t}function Qf(e){let t=e.replace(Pf,Jf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Jf(e){return"-"+e.toLowerCase()}const bn={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"]},Zf={};function ep(e,t){const a=Zf,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return zi(e,l,n)}function zi(e,t,a){if(tp(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vi(e.children,t,a)}return Array.isArray(e)?Vi(e,t,a):""}function Vi(e,t,a){const l=[];let n=-1;for(;++n<e.length;)l[n]=zi(e[n],t,a);return l.join("")}function tp(e){return!!(e&&typeof e=="object")}const Gi=document.createElement("i");function Sa(e){const t="&"+e+";";Gi.innerHTML=t;const a=Gi.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function pt(e,t,a,l){const n=e.length;let r=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,a=a>0?a:0,l.length<1e4)i=Array.from(l),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);r<l.length;)i=l.slice(r,r+1e4),i.unshift(t,0),e.splice(...i),r+=1e4,t+=1e4}function lt(e,t){return e.length>0?(pt(e,e.length,0,t),e):t}const Yi={}.hasOwnProperty;function ap(e){const t={};let a=-1;for(;++a<e.length;)lp(t,e[a]);return t}function lp(e,t){let a;for(a in t){const n=(Yi.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a];let i;if(r)for(i in r){Yi.call(n,i)||(n[i]=[]);const s=r[i];np(n[i],Array.isArray(s)?s:s?[s]:[])}}}function np(e,t){let a=-1;const l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);pt(e,0,0,l)}function Wi(e,t){const a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function la(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ht=Nt(/[A-Za-z]/),tt=Nt(/[\dA-Za-z]/),rp=Nt(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const vn=Nt(/\d/),ip=Nt(/[\dA-Fa-f]/),sp=Nt(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Me(e){return e!==null&&(e<0||e===32)}function Ce(e){return e===-2||e===-1||e===32}const wa=Nt(new RegExp("\\p{P}|\\p{S}","u")),Aa=Nt(/\s/);function Nt(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function na(e){const t=[];let a=-1,l=0,n=0;for(;++a<e.length;){const r=e.charCodeAt(a);let i="";if(r===37&&tt(e.charCodeAt(a+1))&&tt(e.charCodeAt(a+2)))n=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(i=String.fromCharCode(r));else if(r>55295&&r<57344){const s=e.charCodeAt(a+1);r<56320&&s>56319&&s<57344?(i=String.fromCharCode(r,s),n=1):i="�"}else i=String.fromCharCode(r);i&&(t.push(e.slice(l,a),encodeURIComponent(i)),l=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(l)}function Se(e,t,a,l){const n=l?l-1:Number.POSITIVE_INFINITY;let r=0;return i;function i(u){return Ce(u)?(e.enter(a),s(u)):t(u)}function s(u){return Ce(u)&&r++<n?(e.consume(u),s):(e.exit(a),t(u))}}const up={tokenize:op};function op(e){const t=e.attempt(this.parser.constructs.contentInitial,l,n);let a;return t;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Se(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),r(s)}function r(s){const u=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=u),a=u,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return oe(s)?(e.consume(s),e.exit("chunkText"),r):(e.consume(s),i)}}const cp={tokenize:dp},ji={tokenize:fp};function dp(e){const t=this,a=[];let l=0,n,r,i;return s;function s(m){if(l<a.length){const C=a[l];return t.containerState=C[1],e.attempt(C[0].continuation,u,o)(m)}return o(m)}function u(m){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const C=t.events.length;let T=C,w;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){w=t.events[T][1].end;break}y(l);let I=C;for(;I<t.events.length;)t.events[I][1].end={...w},I++;return pt(t.events,T+1,0,t.events.slice(C)),t.events.length=I,o(m)}return s(m)}function o(m){if(l===a.length){if(!n)return h(m);if(n.currentConstruct&&n.currentConstruct.concrete)return E(m);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ji,c,d)(m)}function c(m){return n&&g(),y(l),h(m)}function d(m){return t.parser.lazy[t.now().line]=l!==a.length,i=t.now().offset,E(m)}function h(m){return t.containerState={},e.attempt(ji,f,E)(m)}function f(m){return l++,a.push([t.currentConstruct,t.containerState]),h(m)}function E(m){if(m===null){n&&g(),y(0),e.consume(m);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),v(m)}function v(m){if(m===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(m);return}return oe(m)?(e.consume(m),b(e.exit("chunkFlow")),l=0,t.interrupt=void 0,s):(e.consume(m),v)}function b(m,C){const T=t.sliceStream(m);if(C&&T.push(null),m.previous=r,r&&(r.next=m),r=m,n.defineSkip(m.start),n.write(T),t.parser.lazy[m.start.line]){let w=n.events.length;for(;w--;)if(n.events[w][1].start.offset<i&&(!n.events[w][1].end||n.events[w][1].end.offset>i))return;const I=t.events.length;let N=I,S,D;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(S){D=t.events[N][1].end;break}S=!0}for(y(l),w=I;w<t.events.length;)t.events[w][1].end={...D},w++;pt(t.events,N+1,0,t.events.slice(I)),t.events.length=w}}function y(m){let C=a.length;for(;C-- >m;){const T=a[C];t.containerState=T[1],T[0].exit.call(t,e)}a.length=m}function g(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function fp(e,t,a){return Se(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ki(e){if(e===null||Me(e)||Aa(e))return 1;if(wa(e))return 2}function gn(e,t,a){const l=[];let n=-1;for(;++n<e.length;){const r=e[n].resolveAll;r&&!l.includes(r)&&(t=r(t,a),l.push(r))}return t}const En={name:"attention",resolveAll:pp,tokenize:hp};function pp(e,t){let a=-1,l,n,r,i,s,u,o,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;u=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const d={...e[l][1].end},h={...e[a][1].start};Xi(d,-u),Xi(h,u),i={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[l][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:h},r={type:u>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[a][1].start}},n={type:u>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[l][1].end={...i.start},e[a][1].start={...s.end},o=[],e[l][1].end.offset-e[l][1].start.offset&&(o=lt(o,[["enter",e[l][1],t],["exit",e[l][1],t]])),o=lt(o,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",r,t]]),o=lt(o,gn(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),o=lt(o,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,o=lt(o,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,pt(e,l-1,a-l+3,o),a=l+o.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function hp(e,t){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=Ki(l);let r;return i;function i(u){return r=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===r)return e.consume(u),s;const o=e.exit("attentionSequence"),c=Ki(u),d=!c||c===2&&n||a.includes(u),h=!n||n===2&&c||a.includes(l);return o._open=!!(r===42?d:d&&(n||!h)),o._close=!!(r===42?h:h&&(c||!d)),t(u)}}function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bp={name:"autolink",tokenize:mp};function mp(e,t,a){let l=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(f){return ht(f)?(e.consume(f),i):f===64?a(f):o(f)}function i(f){return f===43||f===45||f===46||tt(f)?(l=1,s(f)):o(f)}function s(f){return f===58?(e.consume(f),l=0,u):(f===43||f===45||f===46||tt(f))&&l++<32?(e.consume(f),s):(l=0,o(f))}function u(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||mn(f)?a(f):(e.consume(f),u)}function o(f){return f===64?(e.consume(f),c):rp(f)?(e.consume(f),o):a(f)}function c(f){return tt(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),l=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):h(f)}function h(f){if((f===45||tt(f))&&l++<63){const E=f===45?h:d;return e.consume(f),E}return a(f)}}const fl={partial:!0,tokenize:vp};function vp(e,t,a){return l;function l(r){return Ce(r)?Se(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||oe(r)?t(r):a(r)}}const Qi={continuation:{tokenize:Ep},exit:yp,name:"blockQuote",tokenize:gp};function gp(e,t,a){const l=this;return n;function n(i){if(i===62){const s=l.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),r}return a(i)}function r(i){return Ce(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function Ep(e,t,a){const l=this;return n;function n(i){return Ce(i)?Se(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):r(i)}function r(i){return e.attempt(Qi,t,a)(i)}}function yp(e){e.exit("blockQuote")}const Ji={name:"characterEscape",tokenize:Tp};function Tp(e,t,a){return l;function l(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),n}function n(r){return sp(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}const Zi={name:"characterReference",tokenize:xp};function xp(e,t,a){const l=this;let n=0,r,i;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),r=31,i=tt,c(d))}function o(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ip,c):(e.enter("characterReferenceValue"),r=7,i=vn,c(d))}function c(d){if(d===59&&n){const h=e.exit("characterReferenceValue");return i===tt&&!Sa(l.sliceSerialize(h))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&n++<r?(e.consume(d),c):a(d)}}const es={partial:!0,tokenize:Sp},ts={concrete:!0,name:"codeFenced",tokenize:Cp};function Cp(e,t,a){const l=this,n={partial:!0,tokenize:T};let r=0,i=0,s;return u;function u(w){return o(w)}function o(w){const I=l.events[l.events.length-1];return r=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===s?(i++,e.consume(w),c):i<3?a(w):(e.exit("codeFencedFenceSequence"),Ce(w)?Se(e,d,"whitespace")(w):d(w))}function d(w){return w===null||oe(w)?(e.exit("codeFencedFence"),l.interrupt?t(w):e.check(es,v,C)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||oe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):Ce(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,f,"whitespace")(w)):w===96&&w===s?a(w):(e.consume(w),h)}function f(w){return w===null||oe(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||oe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===s?a(w):(e.consume(w),E)}function v(w){return e.attempt(n,C,b)(w)}function b(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return r>0&&Ce(w)?Se(e,g,"linePrefix",r+1)(w):g(w)}function g(w){return w===null||oe(w)?e.check(es,v,C)(w):(e.enter("codeFlowValue"),m(w))}function m(w){return w===null||oe(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),m)}function C(w){return e.exit("codeFenced"),t(w)}function T(w,I,N){let S=0;return D;function D(x){return w.enter("lineEnding"),w.consume(x),w.exit("lineEnding"),P}function P(x){return w.enter("codeFencedFence"),Ce(x)?Se(w,H,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):H(x)}function H(x){return x===s?(w.enter("codeFencedFenceSequence"),B(x)):N(x)}function B(x){return x===s?(S++,w.consume(x),B):S>=i?(w.exit("codeFencedFenceSequence"),Ce(x)?Se(w,O,"whitespace")(x):O(x)):N(x)}function O(x){return x===null||oe(x)?(w.exit("codeFencedFence"),I(x)):N(x)}}}function Sp(e,t,a){const l=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}const yn={name:"codeIndented",tokenize:Ap},wp={partial:!0,tokenize:_p};function Ap(e,t,a){const l=this;return n;function n(o){return e.enter("codeIndented"),Se(e,r,"linePrefix",5)(o)}function r(o){const c=l.events[l.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(o):a(o)}function i(o){return o===null?u(o):oe(o)?e.attempt(wp,i,u)(o):(e.enter("codeFlowValue"),s(o))}function s(o){return o===null||oe(o)?(e.exit("codeFlowValue"),i(o)):(e.consume(o),s)}function u(o){return e.exit("codeIndented"),t(o)}}function _p(e,t,a){const l=this;return n;function n(i){return l.parser.lazy[l.now().line]?a(i):oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Se(e,r,"linePrefix",5)(i)}function r(i){const s=l.events[l.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):oe(i)?n(i):a(i)}}const kp={name:"codeText",previous:Ip,resolve:Np,tokenize:Lp};function Np(e){let t=e.length-4,a=3,l,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=a;++l<t;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(l=a-1,t++;++l<=t;)n===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(n=l):(l===t||e[l][1].type==="lineEnding")&&(e[n][1].type="codeTextData",l!==n+2&&(e[n][1].end=e[l-1][1].end,e.splice(n+2,l-n-2),t-=l-n-2,l=n+2),n=void 0);return e}function Ip(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lp(e,t,a){let l=0,n,r;return i;function i(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),l++,s):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?a(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(r=e.enter("codeTextSequence"),n=0,c(d)):oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),o(d))}function o(d){return d===null||d===32||d===96||oe(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),o)}function c(d){return d===96?(e.consume(d),n++,c):n===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",o(d))}}class Op{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,a){const l=a??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,a,l){const n=a||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return l&&_a(this.left,l),r.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),_a(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_a(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 a=this.left.splice(t,Number.POSITIVE_INFINITY);_a(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_a(this.left,a.reverse())}}}function _a(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function as(e){const t={};let a=-1,l,n,r,i,s,u,o;const c=new Op(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(l=c.get(a),a&&l[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(u=l[1]._tokenizer.events,r=0,r<u.length&&u[r][1].type==="lineEndingBlank"&&(r+=2),r<u.length&&u[r][1].type==="content"))for(;++r<u.length&&u[r][1].type!=="content";)u[r][1].type==="chunkText"&&(u[r][1]._isInFirstContentOfListItem=!0,r++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,Dp(c,a)),a=t[a],o=!0);else if(l[1]._container){for(r=a,n=void 0;r--;)if(i=c.get(r),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;n&&(l[1].end={...c.get(n)[1].start},s=c.slice(n,a),s.unshift(l),c.splice(n,a-n+1,s))}}return pt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function Dp(e,t){const a=e.get(t)[1],l=e.get(t)[2];let n=t-1;const r=[];let i=a._tokenizer;i||(i=l.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,u=[],o={};let c,d,h=-1,f=a,E=0,v=0;const b=[v];for(;f;){for(;e.get(++n)[1]!==f;);r.push(n),f._tokenizer||(c=l.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=a;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v=h+1,b.push(v),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):b.pop(),h=b.length;h--;){const y=s.slice(b[h],b[h+1]),g=r.pop();u.push([g,g+y.length-1]),e.splice(g,2,y)}for(u.reverse(),h=-1;++h<u.length;)o[E+u[h][0]]=E+u[h][1],E+=u[h][1]-u[h][0]-1;return o}const Pp={resolve:Bp,tokenize:Fp},Mp={partial:!0,tokenize:Rp};function Bp(e){return as(e),e}function Fp(e,t){let a;return l;function l(s){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?r(s):oe(s)?e.check(Mp,i,r)(s):(e.consume(s),n)}function r(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,n}}function Rp(e,t,a){const l=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Se(e,r,"linePrefix")}function r(i){if(i===null||oe(i))return a(i);const s=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(l.parser.constructs.flow,a,t)(i)}}function ls(e,t,a,l,n,r,i,s,u){const o=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(l),e.enter(n),e.enter(r),e.consume(y),e.exit(r),h):y===null||y===32||y===41||mn(y)?a(y):(e.enter(l),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function h(y){return y===62?(e.enter(r),e.consume(y),e.exit(r),e.exit(n),e.exit(l),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(s),h(y)):y===null||y===60||oe(y)?a(y):(e.consume(y),y===92?E:f)}function E(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function v(y){return!c&&(y===null||y===41||Me(y))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(l),t(y)):c<o&&y===40?(e.consume(y),c++,v):y===41?(e.consume(y),c--,v):y===null||y===32||y===40||mn(y)?a(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function ns(e,t,a,l,n,r){const i=this;let s=0,u;return o;function o(f){return e.enter(l),e.enter(n),e.consume(f),e.exit(n),e.enter(r),c}function c(f){return s>999||f===null||f===91||f===93&&!u||f===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(r),e.enter(n),e.consume(f),e.exit(n),e.exit(l),t):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||oe(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ce(f)),f===92?h:d)}function h(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function rs(e,t,a,l,n,r){let i;return s;function s(h){return h===34||h===39||h===40?(e.enter(l),e.enter(n),e.consume(h),e.exit(n),i=h===40?41:h,u):a(h)}function u(h){return h===i?(e.enter(n),e.consume(h),e.exit(n),e.exit(l),t):(e.enter(r),o(h))}function o(h){return h===i?(e.exit(r),u(i)):h===null?a(h):oe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Se(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===i||h===null||oe(h)?(e.exit("chunkString"),o(h)):(e.consume(h),h===92?d:c)}function d(h){return h===i||h===92?(e.consume(h),c):c(h)}}function Tt(e,t){let a;return l;function l(n){return oe(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):Ce(n)?Se(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}const Hp={name:"definition",tokenize:Up},$p={partial:!0,tokenize:qp};function Up(e,t,a){const l=this;let n;return r;function r(f){return e.enter("definition"),i(f)}function i(f){return ns.call(l,e,s,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=la(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):a(f)}function u(f){return Me(f)?Tt(e,o)(f):o(f)}function o(f){return ls(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt($p,d,d)(f)}function d(f){return Ce(f)?Se(e,h,"whitespace")(f):h(f)}function h(f){return f===null||oe(f)?(e.exit("definition"),l.parser.defined.push(n),t(f)):a(f)}}function qp(e,t,a){return l;function l(s){return Me(s)?Tt(e,n)(s):a(s)}function n(s){return rs(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function r(s){return Ce(s)?Se(e,i,"whitespace")(s):i(s)}function i(s){return s===null||oe(s)?t(s):a(s)}}const zp={name:"hardBreakEscape",tokenize:Vp};function Vp(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return oe(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const Gp={name:"headingAtx",resolve:Yp,tokenize:Wp};function Yp(e,t){let a=e.length-2,l=3,n,r;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},r={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},pt(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function Wp(e,t,a){let l=0;return n;function n(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&l++<6?(e.consume(c),i):c===null||Me(c)?(e.exit("atxHeadingSequence"),s(c)):a(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):Ce(c)?Se(e,s,"whitespace")(c):(e.enter("atxHeadingText"),o(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function o(c){return c===null||c===35||Me(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),o)}}const jp=["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"],is=["pre","script","style","textarea"],Kp={concrete:!0,name:"htmlFlow",resolveTo:Jp,tokenize:Zp},Xp={partial:!0,tokenize:th},Qp={partial:!0,tokenize:eh};function Jp(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 Zp(e,t,a){const l=this;let n,r,i,s,u;return o;function o(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),r=!0,v):_===63?(e.consume(_),n=3,l.interrupt?t:k):ht(_)?(e.consume(_),i=String.fromCharCode(_),b):a(_)}function h(_){return _===45?(e.consume(_),n=2,f):_===91?(e.consume(_),n=5,s=0,E):ht(_)?(e.consume(_),n=4,l.interrupt?t:k):a(_)}function f(_){return _===45?(e.consume(_),l.interrupt?t:k):a(_)}function E(_){const V="CDATA[";return _===V.charCodeAt(s++)?(e.consume(_),s===V.length?l.interrupt?t:H:E):a(_)}function v(_){return ht(_)?(e.consume(_),i=String.fromCharCode(_),b):a(_)}function b(_){if(_===null||_===47||_===62||Me(_)){const V=_===47,Y=i.toLowerCase();return!V&&!r&&is.includes(Y)?(n=1,l.interrupt?t(_):H(_)):jp.includes(i.toLowerCase())?(n=6,V?(e.consume(_),y):l.interrupt?t(_):H(_)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(_):r?g(_):m(_))}return _===45||tt(_)?(e.consume(_),i+=String.fromCharCode(_),b):a(_)}function y(_){return _===62?(e.consume(_),l.interrupt?t:H):a(_)}function g(_){return Ce(_)?(e.consume(_),g):D(_)}function m(_){return _===47?(e.consume(_),D):_===58||_===95||ht(_)?(e.consume(_),C):Ce(_)?(e.consume(_),m):D(_)}function C(_){return _===45||_===46||_===58||_===95||tt(_)?(e.consume(_),C):T(_)}function T(_){return _===61?(e.consume(_),w):Ce(_)?(e.consume(_),T):m(_)}function w(_){return _===null||_===60||_===61||_===62||_===96?a(_):_===34||_===39?(e.consume(_),u=_,I):Ce(_)?(e.consume(_),w):N(_)}function I(_){return _===u?(e.consume(_),u=null,S):_===null||oe(_)?a(_):(e.consume(_),I)}function N(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Me(_)?T(_):(e.consume(_),N)}function S(_){return _===47||_===62||Ce(_)?m(_):a(_)}function D(_){return _===62?(e.consume(_),P):a(_)}function P(_){return _===null||oe(_)?H(_):Ce(_)?(e.consume(_),P):a(_)}function H(_){return _===45&&n===2?(e.consume(_),L):_===60&&n===1?(e.consume(_),U):_===62&&n===4?(e.consume(_),W):_===63&&n===3?(e.consume(_),k):_===93&&n===5?(e.consume(_),q):oe(_)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Xp,G,B)(_)):_===null||oe(_)?(e.exit("htmlFlowData"),B(_)):(e.consume(_),H)}function B(_){return e.check(Qp,O,G)(_)}function O(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),x}function x(_){return _===null||oe(_)?B(_):(e.enter("htmlFlowData"),H(_))}function L(_){return _===45?(e.consume(_),k):H(_)}function U(_){return _===47?(e.consume(_),i="",R):H(_)}function R(_){if(_===62){const V=i.toLowerCase();return is.includes(V)?(e.consume(_),W):H(_)}return ht(_)&&i.length<8?(e.consume(_),i+=String.fromCharCode(_),R):H(_)}function q(_){return _===93?(e.consume(_),k):H(_)}function k(_){return _===62?(e.consume(_),W):_===45&&n===2?(e.consume(_),k):H(_)}function W(_){return _===null||oe(_)?(e.exit("htmlFlowData"),G(_)):(e.consume(_),W)}function G(_){return e.exit("htmlFlow"),t(_)}}function eh(e,t,a){const l=this;return n;function n(i){return oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):a(i)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}function th(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(fl,t,a)}}const ah={name:"htmlText",tokenize:lh};function lh(e,t,a){const l=this;let n,r,i;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),u}function u(k){return k===33?(e.consume(k),o):k===47?(e.consume(k),T):k===63?(e.consume(k),m):ht(k)?(e.consume(k),N):a(k)}function o(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),r=0,E):ht(k)?(e.consume(k),g):a(k)}function c(k){return k===45?(e.consume(k),f):a(k)}function d(k){return k===null?a(k):k===45?(e.consume(k),h):oe(k)?(i=d,U(k)):(e.consume(k),d)}function h(k){return k===45?(e.consume(k),f):d(k)}function f(k){return k===62?L(k):k===45?h(k):d(k)}function E(k){const W="CDATA[";return k===W.charCodeAt(r++)?(e.consume(k),r===W.length?v:E):a(k)}function v(k){return k===null?a(k):k===93?(e.consume(k),b):oe(k)?(i=v,U(k)):(e.consume(k),v)}function b(k){return k===93?(e.consume(k),y):v(k)}function y(k){return k===62?L(k):k===93?(e.consume(k),y):v(k)}function g(k){return k===null||k===62?L(k):oe(k)?(i=g,U(k)):(e.consume(k),g)}function m(k){return k===null?a(k):k===63?(e.consume(k),C):oe(k)?(i=m,U(k)):(e.consume(k),m)}function C(k){return k===62?L(k):m(k)}function T(k){return ht(k)?(e.consume(k),w):a(k)}function w(k){return k===45||tt(k)?(e.consume(k),w):I(k)}function I(k){return oe(k)?(i=I,U(k)):Ce(k)?(e.consume(k),I):L(k)}function N(k){return k===45||tt(k)?(e.consume(k),N):k===47||k===62||Me(k)?S(k):a(k)}function S(k){return k===47?(e.consume(k),L):k===58||k===95||ht(k)?(e.consume(k),D):oe(k)?(i=S,U(k)):Ce(k)?(e.consume(k),S):L(k)}function D(k){return k===45||k===46||k===58||k===95||tt(k)?(e.consume(k),D):P(k)}function P(k){return k===61?(e.consume(k),H):oe(k)?(i=P,U(k)):Ce(k)?(e.consume(k),P):S(k)}function H(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(e.consume(k),n=k,B):oe(k)?(i=H,U(k)):Ce(k)?(e.consume(k),H):(e.consume(k),O)}function B(k){return k===n?(e.consume(k),n=void 0,x):k===null?a(k):oe(k)?(i=B,U(k)):(e.consume(k),B)}function O(k){return k===null||k===34||k===39||k===60||k===61||k===96?a(k):k===47||k===62||Me(k)?S(k):(e.consume(k),O)}function x(k){return k===47||k===62||Me(k)?S(k):a(k)}function L(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):a(k)}function U(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),R}function R(k){return Ce(k)?Se(e,q,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):q(k)}function q(k){return e.enter("htmlTextData"),i(k)}}const Tn={name:"labelEnd",resolveAll:sh,resolveTo:uh,tokenize:oh},nh={tokenize:ch},rh={tokenize:dh},ih={tokenize:fh};function sh(e){let t=-1;const a=[];for(;++t<e.length;){const l=e[t][1];if(a.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const n=l.type==="labelImage"?4:2;l.type="data",t+=n}}return e.length!==a.length&&pt(e,0,e.length,a),e}function uh(e,t){let a=e.length,l=0,n,r,i,s;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){l=2;break}}else n.type==="labelEnd"&&(i=a);const u={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",u,t],["enter",o,t]],s=lt(s,e.slice(r+1,r+l+3)),s=lt(s,[["enter",c,t]]),s=lt(s,gn(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),s=lt(s,[["exit",c,t],e[i-2],e[i-1],["exit",o,t]]),s=lt(s,e.slice(i+1)),s=lt(s,[["exit",u,t]]),pt(e,r,e.length,s),e}function oh(e,t,a){const l=this;let n=l.events.length,r,i;for(;n--;)if((l.events[n][1].type==="labelImage"||l.events[n][1].type==="labelLink")&&!l.events[n][1]._balanced){r=l.events[n][1];break}return s;function s(h){return r?r._inactive?d(h):(i=l.parser.defined.includes(la(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):a(h)}function u(h){return h===40?e.attempt(nh,c,i?c:d)(h):h===91?e.attempt(rh,c,i?o:d)(h):i?c(h):d(h)}function o(h){return e.attempt(ih,c,d)(h)}function c(h){return t(h)}function d(h){return r._balanced=!0,a(h)}}function ch(e,t,a){return l;function l(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),n}function n(d){return Me(d)?Tt(e,r)(d):r(d)}function r(d){return d===41?c(d):ls(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Me(d)?Tt(e,u)(d):c(d)}function s(d){return a(d)}function u(d){return d===34||d===39||d===40?rs(e,o,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function o(d){return Me(d)?Tt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function dh(e,t,a){const l=this;return n;function n(s){return ns.call(l,e,r,i,"reference","referenceMarker","referenceString")(s)}function r(s){return l.parser.defined.includes(la(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(s):a(s)}function i(s){return a(s)}}function fh(e,t,a){return l;function l(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),n}function n(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):a(r)}}const ph={name:"labelStartImage",resolveAll:Tn.resolveAll,tokenize:hh};function hh(e,t,a){const l=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),r}function r(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):a(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(s):t(s)}}const bh={name:"labelStartLink",resolveAll:Tn.resolveAll,tokenize:mh};function mh(e,t,a){const l=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),r}function r(i){return i===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(i):t(i)}}const xn={name:"lineEnding",tokenize:vh};function vh(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const pl={name:"thematicBreak",tokenize:gh};function gh(e,t,a){let l=0,n;return r;function r(o){return e.enter("thematicBreak"),i(o)}function i(o){return n=o,s(o)}function s(o){return o===n?(e.enter("thematicBreakSequence"),u(o)):l>=3&&(o===null||oe(o))?(e.exit("thematicBreak"),t(o)):a(o)}function u(o){return o===n?(e.consume(o),l++,u):(e.exit("thematicBreakSequence"),Ce(o)?Se(e,s,"whitespace")(o):s(o))}}const Xe={continuation:{tokenize:xh},exit:Sh,name:"list",tokenize:Th},Eh={partial:!0,tokenize:wh},yh={partial:!0,tokenize:Ch};function Th(e,t,a){const l=this,n=l.events[l.events.length-1];let r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(f){const E=l.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!l.containerState.marker||f===l.containerState.marker:vn(f)){if(l.containerState.type||(l.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(pl,a,o)(f):o(f);if(!l.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return a(f)}function u(f){return vn(f)&&++i<10?(e.consume(f),u):(!l.interrupt||i<2)&&(l.containerState.marker?f===l.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),o(f)):a(f)}function o(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||f,e.check(fl,l.interrupt?a:c,e.attempt(Eh,h,d))}function c(f){return l.containerState.initialBlankLine=!0,r++,h(f)}function d(f){return Ce(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):a(f)}function h(f){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function xh(e,t,a){const l=this;return l.containerState._closeFlow=void 0,e.check(fl,n,r);function n(s){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Se(e,t,"listItemIndent",l.containerState.size+1)(s)}function r(s){return l.containerState.furtherBlankLines||!Ce(s)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,i(s)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(yh,t,i)(s))}function i(s){return l.containerState._closeFlow=!0,l.interrupt=void 0,Se(e,e.attempt(Xe,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ch(e,t,a){const l=this;return Se(e,n,"listItemIndent",l.containerState.size+1);function n(r){const i=l.events[l.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===l.containerState.size?t(r):a(r)}}function Sh(e){e.exit(this.containerState.type)}function wh(e,t,a){const l=this;return Se(e,n,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(r){const i=l.events[l.events.length-1];return!Ce(r)&&i&&i[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const ss={name:"setextUnderline",resolveTo:Ah,tokenize:_h};function Ah(e,t){let a=e.length,l,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);const i={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",i,t]),e.splice(r+1,0,["exit",e[l][1],t]),e[l][1].end={...e[r][1].end}):e[l][1]=i,e.push(["exit",i,t]),e}function _h(e,t,a){const l=this;let n;return r;function r(o){let c=l.events.length,d;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){d=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||d)?(e.enter("setextHeadingLine"),n=o,i(o)):a(o)}function i(o){return e.enter("setextHeadingLineSequence"),s(o)}function s(o){return o===n?(e.consume(o),s):(e.exit("setextHeadingLineSequence"),Ce(o)?Se(e,u,"lineSuffix")(o):u(o))}function u(o){return o===null||oe(o)?(e.exit("setextHeadingLine"),t(o)):a(o)}}const kh={tokenize:Nh};function Nh(e){const t=this,a=e.attempt(fl,l,e.attempt(this.parser.constructs.flowInitial,n,Se(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Pp,n)),"linePrefix")));return a;function l(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Ih={resolveAll:os()},Lh=us("string"),Oh=us("text");function us(e){return{resolveAll:os(e==="text"?Dh:void 0),tokenize:t};function t(a){const l=this,n=this.parser.constructs[e],r=a.attempt(n,i,s);return i;function i(c){return o(c)?r(c):s(c)}function s(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),u}function u(c){return o(c)?(a.exit("data"),r(c)):(a.consume(c),u)}function o(c){if(c===null)return!0;const d=n[c];let h=-1;if(d)for(;++h<d.length;){const f=d[h];if(!f.previous||f.previous.call(l,l.previous))return!0}return!1}}}function os(e){return t;function t(a,l){let n=-1,r;for(;++n<=a.length;)r===void 0?a[n]&&a[n][1].type==="data"&&(r=n,n++):(!a[n]||a[n][1].type!=="data")&&(n!==r+2&&(a[r][1].end=a[n-1][1].end,a.splice(r+2,n-r-2),n=r+2),r=void 0);return e?e(a,l):a}}function Dh(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const l=e[a-1][1],n=t.sliceStream(l);let r=n.length,i=-1,s=0,u;for(;r--;){const o=n[r];if(typeof o=="string"){for(i=o.length;o.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(o===-2)u=!0,s++;else if(o!==-1){r++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(s=0),s){const o={type:a===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?i:l.start._bufferIndex+i,_index:l.start._index+r,line:l.end.line,column:l.end.column-s,offset:l.end.offset-s},end:{...l.end}};l.end={...o.start},l.start.offset===l.end.offset?Object.assign(l,o):(e.splice(a,0,["enter",o,t],["exit",o,t]),a+=2)}a++}return e}const Ph=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Hp},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Qi},flow:{35:Gp,42:pl,45:[ss,pl],60:Kp,61:ss,95:pl,96:ts,126:ts},flowInitial:{[-2]:yn,[-1]:yn,32:yn},insideSpan:{null:[En,Ih]},string:{38:Zi,92:Ji},text:{[-5]:xn,[-4]:xn,[-3]:xn,33:ph,38:Zi,42:En,60:[bp,ah],91:bh,92:[zp,Ji],93:Tn,95:En,96:kp}},Symbol.toStringTag,{value:"Module"}));function Mh(e,t,a){let l={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const n={},r=[];let i=[],s=[];const u={attempt:I(T),check:I(w),consume:g,enter:m,exit:C,interrupt:I(w,{interrupt:!0})},o={code:null,containerState:{},defineSkip:v,events:[],now:E,parser:e,previous:null,sliceSerialize:h,sliceStream:f,write:d};let c=t.tokenize.call(o,u);return t.resolveAll&&r.push(t),o;function d(P){return i=lt(i,P),b(),i[i.length-1]!==null?[]:(N(t,0),o.events=gn(r,o.events,o),o.events)}function h(P,H){return Fh(f(P),H)}function f(P){return Bh(i,P)}function E(){const{_bufferIndex:P,_index:H,line:B,column:O,offset:x}=l;return{_bufferIndex:P,_index:H,line:B,column:O,offset:x}}function v(P){n[P.line]=P.column,D()}function b(){let P;for(;l._index<i.length;){const H=i[l._index];if(typeof H=="string")for(P=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===P&&l._bufferIndex<H.length;)y(H.charCodeAt(l._bufferIndex));else y(H)}}function y(P){c=c(P)}function g(P){oe(P)?(l.line++,l.column=1,l.offset+=P===-3?2:1,D()):P!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===i[l._index].length&&(l._bufferIndex=-1,l._index++)),o.previous=P}function m(P,H){const B=H||{};return B.type=P,B.start=E(),o.events.push(["enter",B,o]),s.push(B),B}function C(P){const H=s.pop();return H.end=E(),o.events.push(["exit",H,o]),H}function T(P,H){N(P,H.from)}function w(P,H){H.restore()}function I(P,H){return B;function B(O,x,L){let U,R,q,k;return Array.isArray(O)?G(O):"tokenize"in O?G([O]):W(O);function W(X){return K;function K(te){const ue=te!==null&&X[te],de=te!==null&&X.null,ve=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(de)?de:de?[de]:[]];return G(ve)(te)}}function G(X){return U=X,R=0,X.length===0?L:_(X[R])}function _(X){return K;function K(te){return k=S(),q=X,X.partial||(o.currentConstruct=X),X.name&&o.parser.constructs.disable.null.includes(X.name)?Y():X.tokenize.call(H?Object.assign(Object.create(o),H):o,u,V,Y)(te)}}function V(X){return P(q,k),x}function Y(X){return k.restore(),++R<U.length?_(U[R]):L}}}function N(P,H){P.resolveAll&&!r.includes(P)&&r.push(P),P.resolve&&pt(o.events,H,o.events.length-H,P.resolve(o.events.slice(H),o)),P.resolveTo&&(o.events=P.resolveTo(o.events,o))}function S(){const P=E(),H=o.previous,B=o.currentConstruct,O=o.events.length,x=Array.from(s);return{from:O,restore:L};function L(){l=P,o.previous=H,o.currentConstruct=B,o.events.length=O,s=x,D()}}function D(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function Bh(e,t){const a=t.start._index,l=t.start._bufferIndex,n=t.end._index,r=t.end._bufferIndex;let i;if(a===n)i=[e[a].slice(l,r)];else{if(i=e.slice(a,n),l>-1){const s=i[0];typeof s=="string"?i[0]=s.slice(l):i.shift()}r>0&&i.push(e[n].slice(0,r))}return i}function Fh(e,t){let a=-1;const l=[];let n;for(;++a<e.length;){const r=e[a];let i;if(typeof r=="string")i=r;else switch(r){case-5:{i="\r";break}case-4:{i=`
|