"floating-ui-"+Math.random().toString(36).slice(2,6)+E5++;function v5(){const[e,t]=S.useState(()=>ck?dk():void 0);return ii(()=>{e==null&&t(dk())},[]),S.useEffect(()=>{ck=!0},[]),e}const T5=a2.useId,s2=T5||v5;function k5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const x5=S.createContext(null),S5=S.createContext(null),P1=()=>{var e;return((e=S.useContext(x5))==null?void 0:e.id)||null},B1=()=>S.useContext(S5);function z1(e){return"data-floating-ui-"+e}function lg(e){const t=S.useRef(e);return ii(()=>{t.current=e}),t}const fk=z1("safe-polygon");function nf(e,t,n){return n&&!fb(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function w5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,p=B1(),h=P1(),m=lg(u),y=lg(l),b=lg(n),E=S.useRef(),v=S.useRef(-1),k=S.useRef(),_=S.useRef(-1),x=S.useRef(!0),I=S.useRef(!1),R=S.useRef(()=>{}),z=S.useRef(!1),A=S.useCallback(()=>{var B;const M=(B=i.current.openEvent)==null?void 0:B.type;return(M==null?void 0:M.includes("mouse"))&&M!=="mousedown"},[i]);S.useEffect(()=>{if(!s)return;function B(M){let{open:N}=M;N||(clearTimeout(v.current),clearTimeout(_.current),x.current=!0,z.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[s,o]),S.useEffect(()=>{if(!s||!m.current||!n)return;function B(N){A()&&r(!1,N,"hover")}const M=ca(a.floating).documentElement;return M.addEventListener("mouseleave",B),()=>{M.removeEventListener("mouseleave",B)}},[a.floating,n,r,s,m,A]);const j=S.useCallback(function(B,M,N){M===void 0&&(M=!0),N===void 0&&(N="hover");const F=nf(y.current,"close",E.current);F&&!k.current?(clearTimeout(v.current),v.current=window.setTimeout(()=>r(!1,B,N),F)):M&&(clearTimeout(v.current),r(!1,B,N))},[y,r]),L=so(()=>{R.current(),k.current=void 0}),U=so(()=>{if(I.current){const B=ca(a.floating).body;B.style.pointerEvents="",B.removeAttribute(fk),I.current=!1}});S.useEffect(()=>{if(!s)return;function B(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function M(q){if(clearTimeout(v.current),x.current=!1,c&&!fb(E.current)||d>0&&!nf(y.current,"open"))return;const X=nf(y.current,"open",E.current);X?v.current=window.setTimeout(()=>{b.current||r(!0,q,"hover")},X):r(!0,q,"hover")}function N(q){if(B())return;R.current();const X=ca(a.floating);if(clearTimeout(_.current),z.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(v.current),k.current=m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q,!0,"safe-polygon")}});const be=k.current;X.addEventListener("mousemove",be),R.current=()=>{X.removeEventListener("mousemove",be)};return}(E.current==="touch"?!Yu(a.floating,q.relatedTarget):!0)&&j(q)}function F(q){B()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q)}})(q))}if(tt(a.domReference)){var w;const q=a.domReference;return n&&q.addEventListener("mouseleave",F),(w=a.floating)==null||w.addEventListener("mouseleave",F),f&&q.addEventListener("mousemove",M,{once:!0}),q.addEventListener("mouseenter",M),q.addEventListener("mouseleave",N),()=>{var X;n&&q.removeEventListener("mouseleave",F),(X=a.floating)==null||X.removeEventListener("mouseleave",F),f&&q.removeEventListener("mousemove",M),q.removeEventListener("mouseenter",M),q.removeEventListener("mouseleave",N)}}},[a,s,e,c,d,f,j,L,U,r,n,b,p,y,m,i]),ii(()=>{var B;if(s&&n&&(B=m.current)!=null&&B.__options.blockPointerEvents&&A()){I.current=!0;const N=a.floating;if(tt(a.domReference)&&N){var M;const F=ca(a.floating).body;F.setAttribute(fk,"");const w=a.domReference,q=p==null||(M=p.nodesRef.current.find(X=>X.id===h))==null||(M=M.context)==null?void 0:M.elements.floating;return q&&(q.style.pointerEvents=""),F.style.pointerEvents="none",w.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{F.style.pointerEvents="",w.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,h,a,p,m,A]),ii(()=>{n||(E.current=void 0,z.current=!1,L(),U())},[n,L,U]),S.useEffect(()=>()=>{L(),clearTimeout(v.current),clearTimeout(_.current),U()},[s,a.domReference,L,U]);const V=S.useMemo(()=>{function B(M){E.current=M.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(M){const{nativeEvent:N}=M;function F(){!x.current&&!b.current&&r(!0,N,"hover")}c&&!fb(E.current)||n||d===0||z.current&&M.movementX**2+M.movementY**2<2||(clearTimeout(_.current),E.current==="touch"?F():(z.current=!0,_.current=window.setTimeout(F,d)))}}},[c,r,n,b,d]),H=S.useMemo(()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(B){j(B.nativeEvent,!1)}}),[j]);return S.useMemo(()=>s?{reference:V,floating:H}:{},[s,V,H])}const bb=()=>{},l2=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:bb,setState:bb,isInstantPhase:!1}),u2=()=>S.useContext(l2);function _5(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=S.useReducer((l,u)=>({...l,...u}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=S.useRef(null),s=S.useCallback(l=>{o({currentId:l})},[]);return ii(()=>{i.currentId?a.current===null?a.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),S.createElement(l2.Provider,{value:S.useMemo(()=>({...i,setState:o,setCurrentId:s}),[i,s])},t)}function C5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{id:o,enabled:a=!0}=t,s=o??i,l=u2(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return ii(()=>{a&&u&&(f({delay:{open:1,close:nf(d,"close")}}),u!==s&&r(!1))},[a,s,r,f,u,d]),ii(()=>{function h(){r(!1),f({delay:d,currentId:null})}if(a&&u&&!n&&u===s){if(p){const m=window.setTimeout(h,p);return()=>{clearTimeout(m)}}h()}},[a,n,f,u,s,r,d,p]),ii(()=>{a&&(c===bb||!n||c(s))},[a,n,c,s]),l}function ug(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const N5="data-floating-ui-focusable",A5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},pk=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function I5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=B1(),y=so(typeof l=="function"?l:()=>!1),b=typeof l=="function"?y:l,E=S.useRef(!1),v=S.useRef(!1),{escapeKey:k,outsidePress:_}=pk(p),{escapeKey:x,outsidePress:I}=pk(h),R=S.useRef(!1),z=so(H=>{var B;if(!n||!a||!s||H.key!=="Escape"||R.current)return;const M=(B=o.current.floatingContext)==null?void 0:B.nodeId,N=m?ug(m.nodesRef.current,M):[];if(!k&&(H.stopPropagation(),N.length>0)){let F=!0;if(N.forEach(w=>{var q;if((q=w.context)!=null&&q.open&&!w.context.dataRef.current.__escapeKeyBubbles){F=!1;return}}),!F)return}r(!1,S4(H)?H.nativeEvent:H,"escape-key")}),A=so(H=>{var B;const M=()=>{var N;z(H),(N=ps(H))==null||N.removeEventListener("keydown",M)};(B=ps(H))==null||B.addEventListener("keydown",M)}),j=so(H=>{var B;const M=E.current;E.current=!1;const N=v.current;if(v.current=!1,u==="click"&&N||M||typeof b=="function"&&!b(H))return;const F=ps(H),w="["+z1("inert")+"]",q=ca(i.floating).querySelectorAll(w);let X=tt(F)?F:null;for(;X&&!Do(X);){const le=Ri(X);if(Do(le)||!tt(le))break;X=le}if(q.length&&tt(F)&&!w4(F)&&!Yu(F,i.floating)&&Array.from(q).every(le=>!Yu(X,le)))return;if(qn(F)&&V){const le=F.clientWidth>0&&F.scrollWidth>F.clientWidth,Ce=F.clientHeight>0&&F.scrollHeight>F.clientHeight;let Ie=Ce&&H.offsetX>F.clientWidth;if(Ce&&mr(F).direction==="rtl"&&(Ie=H.offsetX<=F.offsetWidth-F.clientWidth),Ie||le&&H.offsetY>F.clientHeight)return}const D=(B=o.current.floatingContext)==null?void 0:B.nodeId,be=m&&ug(m.nodesRef.current,D).some(le=>{var Ce;return og(H,(Ce=le.context)==null?void 0:Ce.elements.floating)});if(og(H,i.floating)||og(H,i.domReference)||be)return;const ge=m?ug(m.nodesRef.current,D):[];if(ge.length>0){let le=!0;if(ge.forEach(Ce=>{var Ie;if((Ie=Ce.context)!=null&&Ie.open&&!Ce.context.dataRef.current.__outsidePressBubbles){le=!1;return}}),!le)return}r(!1,H,"outside-press")}),L=so(H=>{var B;const M=()=>{var N;j(H),(N=ps(H))==null||N.removeEventListener(u,M)};(B=ps(H))==null||B.addEventListener(u,M)});S.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=k,o.current.__outsidePressBubbles=_;let H=-1;function B(q){r(!1,q,"ancestor-scroll")}function M(){window.clearTimeout(H),R.current=!0}function N(){H=window.setTimeout(()=>{R.current=!1},kh()?5:0)}const F=ca(i.floating);s&&(F.addEventListener("keydown",x?A:z,x),F.addEventListener("compositionstart",M),F.addEventListener("compositionend",N)),b&&F.addEventListener(u,I?L:j,I);let w=[];return f&&(tt(i.domReference)&&(w=wi(i.domReference)),tt(i.floating)&&(w=w.concat(wi(i.floating))),!tt(i.reference)&&i.reference&&i.reference.contextElement&&(w=w.concat(wi(i.reference.contextElement)))),w=w.filter(q=>{var X;return q!==((X=F.defaultView)==null?void 0:X.visualViewport)}),w.forEach(q=>{q.addEventListener("scroll",B,{passive:!0})}),()=>{s&&(F.removeEventListener("keydown",x?A:z,x),F.removeEventListener("compositionstart",M),F.removeEventListener("compositionend",N)),b&&F.removeEventListener(u,I?L:j,I),w.forEach(q=>{q.removeEventListener("scroll",B)}),window.clearTimeout(H)}},[o,i,s,b,u,n,r,f,a,k,_,z,x,A,j,I,L]),S.useEffect(()=>{E.current=!1},[b,u]);const U=S.useMemo(()=>({onKeyDown:z,[A5[d]]:H=>{c&&r(!1,H.nativeEvent,"reference-press")}}),[z,r,c,d]),V=S.useMemo(()=>({onKeyDown:z,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[O5[u]]:()=>{E.current=!0}}),[z,u]);return S.useMemo(()=>a?{reference:U,floating:V}:{},[a,U,V])}function R5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=s2(),o=S.useRef({}),[a]=S.useState(()=>k5()),s=P1()!=null,[l,u]=S.useState(r.reference),c=so((p,h,m)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:m,nested:s}),n==null||n(p,h,m)}),d=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[t,c,f,a,i,d])}function F1(e){e===void 0&&(e={});const{nodeId:t}=e,n=R5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=S.useState(null),[s,l]=S.useState(null),c=(i==null?void 0:i.domReference)||o,d=S.useRef(null),f=B1();ii(()=>{c&&(d.current=c)},[c]);const p=h5({...e,elements:{...i,...s&&{reference:s}}}),h=S.useCallback(v=>{const k=tt(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;l(k),p.refs.setReference(k)},[p.refs]),m=S.useCallback(v=>{(tt(v)||v===null)&&(d.current=v,a(v)),(tt(p.refs.reference.current)||p.refs.reference.current===null||v!==null&&!tt(v))&&p.refs.setReference(v)},[p.refs]),y=S.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),b=S.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),E=S.useMemo(()=>({...p,...r,refs:y,elements:b,nodeId:t}),[p,y,b,t,r]);return ii(()=>{r.dataRef.current.floatingContext=E;const v=f==null?void 0:f.nodesRef.current.find(k=>k.id===t);v&&(v.context=E)}),S.useMemo(()=>({...p,context:E,refs:y,elements:b}),[p,y,b,E])}function M5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),c=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const p=On(a.domReference);function h(){!n&&qn(a.domReference)&&a.domReference===nk(ca(a.domReference))&&(u.current=!0)}function m(){d.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[a.domReference,n,s]),S.useEffect(()=>{if(!s)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,s]),S.useEffect(()=>()=>{clearTimeout(c.current)},[]);const f=S.useMemo(()=>({onPointerDown(p){v4(p.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ps(p.nativeEvent);if(l&&tt(h))try{if(T4()&&k4())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!d.current&&!C4(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,y=tt(h)&&h.hasAttribute(z1("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const E=nk(a.domReference?a.domReference.ownerDocument:document);!h&&E===a.domReference||Yu((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,E)||Yu(a.domReference,E)||y||r(!1,m,"focus")})}}),[o,a.domReference,r,l]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const hk="active",mk="selected";function cg(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[hk]:a,[mk]:s,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[N5]:""},...o,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[hk,mk].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),a[u]=function(){for(var f,p=arguments.length,h=new Array(p),m=0;my(...h)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function D5(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=S.useCallback(s=>cg(s,e,"reference"),t),o=S.useCallback(s=>cg(s,e,"floating"),n),a=S.useCallback(s=>cg(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const L5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function P5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=(n=L5.get(a))!=null?n:a,l=s2(),c=P1()!=null,d=S.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,a]),f=S.useMemo(()=>{const h={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?h:{...h,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,a]),p=S.useCallback(h=>{let{active:m,selected:y}=h;const b={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":m&&y};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,a]);return S.useMemo(()=>o?{reference:d,floating:f,item:p}:{},[o,d,f,p])}function c2(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return t}function gk(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function bk(e,t,n,r,i){return e==="center"||r==="center"?{left:t}:e==="end"?{[i==="ltr"?"right":"left"]:n}:e==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const B5={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:o,arrowY:a,dir:s}){const[l,u="center"]=e.split("-"),c={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[B5[l]]:r},d=-t/2;return l==="left"?{...c,...gk(u,a,n,i),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:l==="right"?{...c,...gk(u,a,n,i),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:l==="top"?{...c,...bk(u,o,n,i,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:l==="bottom"?{...c,...bk(u,o,n,i,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const H1=S.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:l,...u},c)=>{const{dir:d}=Sc();return o?T.jsx("div",{...u,ref:c,style:{...l,...z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});H1.displayName="@mantine/core/FloatingArrow";const[F5,d2]=Uo("Popover component was not found in the tree");function Sh({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const i=zP(t),o=Dn(i,r);return Va(e)?S.cloneElement(e,{[n]:o}):e}function f2(e){return T.jsx(_1,{tabIndex:-1,"data-autofocus":!0,...e})}Sh.displayName="@mantine/core/FocusTrap";f2.displayName="@mantine/core/FocusTrapInitialFocus";Sh.InitialFocus=f2;function H5(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const U5={},p2=S.forwardRef((e,t)=>{const{children:n,target:r,...i}=ie("Portal",U5,e),[o,a]=S.useState(!1),s=S.useRef(null);return bl(()=>(a(!0),s.current=r?typeof r=="string"?document.querySelector(r):r:H5(i),yN(t,s.current),!r&&s.current&&document.body.appendChild(s.current),()=>{!r&&s.current&&document.body.removeChild(s.current)}),[r]),!o||!s.current?null:fh.createPortal(T.jsx(T.Fragment,{children:n}),s.current)});p2.displayName="@mantine/core/Portal";function Cc({withinPortal:e=!0,children:t,...n}){return e?T.jsx(p2,{...n,children:t}):T.jsx(T.Fragment,{children:t})}Cc.displayName="@mantine/core/OptionalPortal";const jl=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${Y(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),md={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...jl("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...jl("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...jl("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...jl("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...jl("top"),common:{transformOrigin:"top right"}}},yk={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function j5({transition:e,state:t,duration:n,timingFunction:r}){const i={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in md?{transitionProperty:md[e].transitionProperty,...i,...md[e].common,...md[e][yk[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[yk[t]]}}function $5({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:o,onEntered:a,onExited:s,enterDelay:l,exitDelay:u}){const c=li(),d=EN(),f=c.respectReducedMotion?d:!1,[p,h]=S.useState(f?0:e),[m,y]=S.useState(r?"entered":"exited"),b=S.useRef(-1),E=S.useRef(-1),v=S.useRef(-1),k=x=>{const I=x?i:o,R=x?a:s;window.clearTimeout(b.current);const z=f?0:x?e:t;h(z),z===0?(typeof I=="function"&&I(),typeof R=="function"&&R(),y(x?"entered":"exited")):v.current=requestAnimationFrame(()=>{rN.flushSync(()=>{y(x?"pre-entering":"pre-exiting")}),v.current=requestAnimationFrame(()=>{typeof I=="function"&&I(),y(x?"entering":"exiting"),b.current=window.setTimeout(()=>{typeof R=="function"&&R(),y(x?"entered":"exited")},z)})})},_=x=>{if(window.clearTimeout(E.current),typeof(x?l:u)!="number"){k(x);return}E.current=window.setTimeout(()=>{k(x)},x?l:u)};return Da(()=>{_(r)},[r]),S.useEffect(()=>()=>{window.clearTimeout(b.current),cancelAnimationFrame(v.current)},[]),{transitionDuration:p,transitionStatus:m,transitionTimingFunction:n||"ease"}}function qa({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:i,children:o,timingFunction:a="ease",onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f}){const{transitionDuration:p,transitionStatus:h,transitionTimingFunction:m}=$5({mounted:i,exitDuration:r,duration:n,timingFunction:a,onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return p===0?i?T.jsx(T.Fragment,{children:o({})}):e?o({display:"none"}):null:h==="exited"?e?o({display:"none"}):null:T.jsx(T.Fragment,{children:o(j5({transition:t,duration:p,state:h,timingFunction:m}))})}qa.displayName="@mantine/core/Transition";var h2={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const W5={},U1=fe((e,t)=>{var y,b,E,v;const n=ie("PopoverDropdown",W5,e),{className:r,style:i,vars:o,children:a,onKeyDownCapture:s,variant:l,classNames:u,styles:c,...d}=n,f=d2(),p=pN({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},m=Dn(t,f.floating);return f.disabled?null:T.jsx(Cc,{...f.portalProps,withinPortal:f.withinPortal,children:T.jsx(qa,{mounted:f.opened,...f.transitionProps,transition:((y=f.transitionProps)==null?void 0:y.transition)||"fade",duration:((b=f.transitionProps)==null?void 0:b.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((E=f.transitionProps)==null?void 0:E.exitDuration)=="number"?f.transitionProps.exitDuration:(v=f.transitionProps)==null?void 0:v.duration,children:k=>T.jsx(Sh,{active:f.trapFocus&&f.opened,innerRef:m,children:T.jsxs(se,{...h,...d,variant:l,onKeyDownCapture:wP(f.onClose,{active:f.closeOnEscape,onTrigger:p,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:c,style:[{...k,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Y(f.width)},i]}),children:[a,T.jsx(H1,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:c})})]})})})})});U1.classes=h2;U1.displayName="@mantine/core/PopoverDropdown";const V5={refProp:"ref",popupType:"dialog"},m2=fe((e,t)=>{const{children:n,refProp:r,popupType:i,...o}=ie("PopoverTarget",V5,e);if(!Va(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=o,s=d2(),l=Dn(s.reference,mh(n),t),u=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...a,...u,...s.targetProps,className:kt(s.targetProps.className,a.className,n.props.className),[r]:l,...s.controlled?null:{onClick:s.onToggle}})});m2.displayName="@mantine/core/PopoverTarget";function g2({opened:e,floating:t,position:n,positionDependencies:r}){const[i,o]=S.useState(0);S.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return a5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,n]),Da(()=>{t.update()},r),Da(()=>{o(a=>a+1)},[e])}function q5(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Y5(e,t){const n=q5(e.middlewares),r=[i2(e.offset)];return n.shift&&r.push(L1(typeof n.shift=="boolean"?{limiter:uk(),padding:5}:{limiter:uk(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?mb():mb(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?gb():gb(n.inline)),r.push(o2({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(g5({...typeof n.size=="boolean"?{}:n.size,apply({rects:i,availableWidth:o,availableHeight:a,...s}){var c;const u=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:i,availableWidth:o,availableHeight:a,...s}):Object.assign(u,{maxWidth:`${o}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),r}function K5(e){const[t,n]=La({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{t&&n(!1)},i=()=>n(!t),o=F1({strategy:e.strategy,placement:e.position,middleware:Y5(e,()=>o)});return g2({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),Da(()=>{var a;(a=e.onPositionChange)==null||a.call(e,o.placement)},[o.placement]),Da(()=>{var a,s;t?(s=e.onOpen)==null||s.call(e):(a=e.onClose)==null||a.call(e)},[t,e.onClose,e.onOpen]),{floating:o,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:i}}const G5={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Mn("popover"),__staticSelector:"Popover",width:"max-content"},Q5=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:gr(t),"--popover-shadow":h1(n)}});function Wo(e){var Fe,Ln,pe,ht,He,Me;const t=ie("Popover",G5,e),{children:n,position:r,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:l,width:u,middlewares:c,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,unstyled:y,classNames:b,styles:E,closeOnClickOutside:v,withinPortal:k,portalProps:_,closeOnEscape:x,clickOutsideEvents:I,trapFocus:R,onClose:z,onOpen:A,onChange:j,zIndex:L,radius:U,shadow:V,id:H,defaultOpened:B,__staticSelector:M,withRoles:N,disabled:F,returnFocus:w,variant:q,keepMounted:X,vars:D,floatingStrategy:be,...ge}=t,le=Pe({name:M,props:t,classes:h2,classNames:b,styles:E,unstyled:y,rootSelector:"dropdown",vars:D,varsResolver:Q5}),Ce=S.useRef(null),[Ie,Oe]=S.useState(null),[Ke,xt]=S.useState(null),{dir:Xt}=Sc(),ye=jo(H),Re=K5({middlewares:c,width:u,position:c2(Xt,r),offset:typeof i=="number"?i+(d?f/2:0):i,arrowRef:Ce,arrowOffset:p,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:B,onChange:j,onOpen:A,onClose:z,strategy:be});CP(()=>v&&Re.onClose(),I,[Ie,Ke]);const at=S.useCallback(St=>{Oe(St),Re.floating.refs.setReference(St)},[Re.floating.refs.setReference]),Be=S.useCallback(St=>{xt(St),Re.floating.refs.setFloating(St)},[Re.floating.refs.setFloating]);return T.jsx(F5,{value:{returnFocus:w,disabled:F,controlled:Re.controlled,reference:at,floating:Be,x:Re.floating.x,y:Re.floating.y,arrowX:(pe=(Ln=(Fe=Re.floating)==null?void 0:Fe.middlewareData)==null?void 0:Ln.arrow)==null?void 0:pe.x,arrowY:(Me=(He=(ht=Re.floating)==null?void 0:ht.middlewareData)==null?void 0:He.arrow)==null?void 0:Me.y,opened:Re.opened,arrowRef:Ce,transitionProps:l,width:u,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,placement:Re.floating.placement,trapFocus:R,withinPortal:k,portalProps:_,zIndex:L,radius:U,shadow:V,closeOnEscape:x,onClose:Re.onClose,onToggle:Re.onToggle,getTargetId:()=>`${ye}-target`,getDropdownId:()=>`${ye}-dropdown`,withRoles:N,targetProps:ge,__staticSelector:M,classNames:b,styles:E,unstyled:y,variant:q,keepMounted:X,getStyles:le,floatingStrategy:be},children:n})}Wo.Target=m2;Wo.Dropdown=U1;Wo.displayName="@mantine/core/Popover";Wo.extend=e=>e;var Or={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const b2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.barsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar})]}));b2.displayName="@mantine/core/Bars";const y2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.dotsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot})]}));y2.displayName="@mantine/core/Dots";const E2=S.forwardRef(({className:e,...t},n)=>T.jsx(se,{component:"span",className:kt(Or.ovalLoader,e),...t,ref:n}));E2.displayName="@mantine/core/Oval";const v2={bars:b2,oval:E2,dots:y2},X5={loaders:v2,type:"oval"},J5=(e,{size:t,color:n})=>({root:{"--loader-size":Je(t,"loader-size"),"--loader-color":n?Mo(n,e):void 0}}),Nc=fe((e,t)=>{const n=ie("Loader",X5,e),{size:r,color:i,type:o,vars:a,className:s,style:l,classNames:u,styles:c,unstyled:d,loaders:f,variant:p,children:h,...m}=n,y=Pe({name:"Loader",props:n,classes:Or,className:s,style:l,classNames:u,styles:c,unstyled:d,vars:a,varsResolver:J5});return h?T.jsx(se,{...y("root"),ref:t,...m,children:h}):T.jsx(se,{...y("root"),ref:t,component:f[o],variant:p,size:r,...m})});Nc.defaultLoaders=v2;Nc.classes=Or;Nc.displayName="@mantine/core/Loader";var wh={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ek={orientation:"horizontal"},Z5=(e,{borderWidth:t})=>({group:{"--ai-border-width":Y(t)}}),j1=fe((e,t)=>{const n=ie("ActionIconGroup",Ek,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ActionIconGroup",Ek,e),h=Pe({name:"ActionIconGroup",props:n,classes:wh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:Z5,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});j1.classes=wh;j1.displayName="@mantine/core/ActionIconGroup";const e8={},t8=(e,{size:t,radius:n,variant:r,gradient:i,color:o,autoContrast:a})=>{const s=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{root:{"--ai-size":Je(t,"ai-size"),"--ai-radius":n===void 0?void 0:gr(n),"--ai-bg":o||r?s.background:void 0,"--ai-hover":o||r?s.hover:void 0,"--ai-hover-color":o||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":o||r?s.border:void 0}}},ze=br((e,t)=>{const n=ie("ActionIcon",e8,e),{className:r,unstyled:i,variant:o,classNames:a,styles:s,style:l,loading:u,loaderProps:c,size:d,color:f,radius:p,__staticSelector:h,gradient:m,vars:y,children:b,disabled:E,"data-disabled":v,autoContrast:k,mod:_,...x}=n,I=Pe({name:["ActionIcon",h],props:n,className:r,style:l,classes:wh,classNames:a,styles:s,unstyled:i,vars:y,varsResolver:t8});return T.jsxs(yl,{...I("root",{active:!E&&!u&&!v}),...x,unstyled:i,variant:o,size:d,disabled:E||u,ref:t,mod:[{loading:u,disabled:E||v},_],children:[T.jsx(qa,{mounted:!!u,transition:"slide-down",duration:150,children:R=>T.jsx(se,{component:"span",...I("loader",{style:R}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),T.jsx(se,{component:"span",mod:{loading:u},...I("icon"),children:b})]})});ze.classes=wh;ze.displayName="@mantine/core/ActionIcon";ze.Group=j1;const T2=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:T.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));T2.displayName="@mantine/core/CloseIcon";var k2={root:"m_86a44da5","root--subtle":"m_220c80f2"};const n8={variant:"subtle"},r8=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Je(t,"cb-size"),"--cb-radius":n===void 0?void 0:gr(n),"--cb-icon-size":Y(r)}}),_h=br((e,t)=>{const n=ie("CloseButton",n8,e),{iconSize:r,children:i,vars:o,radius:a,className:s,classNames:l,style:u,styles:c,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:m,mod:y,...b}=n,E=Pe({name:"CloseButton",props:n,className:s,style:u,classes:k2,classNames:l,styles:c,unstyled:d,vars:o,varsResolver:r8});return T.jsxs(yl,{ref:t,...b,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},y],...E("root",{variant:h,active:!p&&!f}),children:[m||T.jsx(T2,{}),i]})});_h.classes=k2;_h.displayName="@mantine/core/CloseButton";function i8(e){return S.Children.toArray(e).filter(Boolean)}var x2={root:"m_4081bf90"};const o8={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},a8=(e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:o,wrap:a},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":vc(r),"--group-align":i,"--group-justify":o,"--group-wrap":a}}),it=fe((e,t)=>{const n=ie("Group",o8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,children:l,gap:u,align:c,justify:d,wrap:f,grow:p,preventGrowOverflow:h,vars:m,variant:y,__size:b,mod:E,...v}=n,k=i8(l),_=k.length,x=vc(u??"md"),R={childWidth:`calc(${100/_}% - (${x} - ${x} / ${_}))`},z=Pe({name:"Group",props:n,stylesCtx:R,className:i,style:o,classes:x2,classNames:r,styles:a,unstyled:s,vars:m,varsResolver:a8});return T.jsx(se,{...z("root"),ref:t,variant:y,mod:[{grow:p},E],size:b,...v,children:k})});it.classes=x2;it.displayName="@mantine/core/Group";var S2={root:"m_9814e45f"};const s8={zIndex:Mn("modal")},l8=(e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:o,zIndex:a})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Wr(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${Y(i)})`:void 0,"--overlay-radius":o===void 0?void 0:gr(o),"--overlay-z-index":a==null?void 0:a.toString()}}),$1=br((e,t)=>{const n=ie("Overlay",s8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,fixed:u,center:c,children:d,radius:f,zIndex:p,gradient:h,blur:m,color:y,backgroundOpacity:b,mod:E,...v}=n,k=Pe({name:"Overlay",props:n,classes:S2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:l8});return T.jsx(se,{ref:t,...k("root"),mod:[{center:c,fixed:u},E],...v,children:d})});$1.classes=S2;$1.displayName="@mantine/core/Overlay";const[u8,Pi]=Uo("ModalBase component was not found in tree");function c8({opened:e,transitionDuration:t}){const[n,r]=S.useState(e),i=S.useRef(),a=EN()?0:t;return S.useEffect(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function d8({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:o,returnFocus:a}){const s=jo(e),[l,u]=S.useState(!1),[c,d]=S.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=c8({opened:n,transitionDuration:f});return bN("keydown",h=>{var m;h.key==="Escape"&&i&&n&&((m=h.target)==null?void 0:m.getAttribute("data-mantine-stop-propagation"))!=="true"&&o()},{capture:!0}),pN({opened:n,shouldReturnFocus:r&&a}),{_id:s,titleMounted:l,bodyMounted:c,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:d}}const W1=S.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,trapFocus:o,closeOnEscape:a,returnFocus:s,closeOnClickOutside:l,withinPortal:u,portalProps:c,lockScroll:d,children:f,zIndex:p,shadow:h,padding:m,__vars:y,unstyled:b,removeScrollProps:E,...v},k)=>{const{_id:_,titleMounted:x,bodyMounted:I,shouldLockScroll:R,setTitleMounted:z,setBodyMounted:A}=d8({id:r,transitionProps:i,opened:t,trapFocus:o,closeOnEscape:a,onClose:n,returnFocus:s}),{key:j,...L}=E||{};return T.jsx(Cc,{...c,withinPortal:u,children:T.jsx(u8,{value:{opened:t,onClose:n,closeOnClickOutside:l,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${_}-title`,getBodyId:()=>`${_}-body`,titleMounted:x,bodyMounted:I,setTitleMounted:z,setBodyMounted:A,trapFocus:o,closeOnEscape:a,zIndex:p,unstyled:b},children:T.jsx(hh,{enabled:R&&d,...L,children:T.jsx(se,{ref:k,...v,__vars:{...y,"--mb-z-index":(p||Mn("modal")).toString(),"--mb-shadow":h1(h),"--mb-padding":vc(m)},children:f})},j)})})});W1.displayName="@mantine/core/ModalBase";function f8(){const e=Pi();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var il={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const V1=S.forwardRef(({className:e,...t},n)=>{const r=f8(),i=Pi();return T.jsx(se,{ref:n,...t,id:r,className:kt({[il.body]:!i.unstyled},e)})});V1.displayName="@mantine/core/ModalBaseBody";const q1=S.forwardRef(({className:e,onClick:t,...n},r)=>{const i=Pi();return T.jsx(_h,{ref:r,...n,onClick:o=>{i.onClose(),t==null||t(o)},className:kt({[il.close]:!i.unstyled},e),unstyled:i.unstyled})});q1.displayName="@mantine/core/ModalBaseCloseButton";const Y1=S.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,...o},a)=>{const s=Pi();return T.jsx(qa,{mounted:s.opened,transition:"pop",...s.transitionProps,...e,children:l=>T.jsx("div",{...n,className:kt({[il.inner]:!s.unstyled},n.className),children:T.jsx(Sh,{active:s.opened&&s.trapFocus,innerRef:a,children:T.jsx(Pa,{...o,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,l],className:kt({[il.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})});Y1.displayName="@mantine/core/ModalBaseContent";const K1=S.forwardRef(({className:e,...t},n)=>{const r=Pi();return T.jsx(se,{component:"header",ref:n,className:kt({[il.header]:!r.unstyled},e),...t})});K1.displayName="@mantine/core/ModalBaseHeader";const p8={duration:200,timingFunction:"ease",transition:"fade"};function h8(e){const t=Pi();return{...p8,...t.transitionProps,...e}}const G1=S.forwardRef(({onClick:e,transitionProps:t,style:n,visible:r,...i},o)=>{const a=Pi(),s=h8(t);return T.jsx(qa,{mounted:r!==void 0?r:a.opened,...s,transition:"fade",children:l=>T.jsx($1,{ref:o,fixed:!0,style:[n,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:u=>{e==null||e(u),a.closeOnClickOutside&&a.onClose()},...i})})});G1.displayName="@mantine/core/ModalBaseOverlay";function m8(){const e=Pi();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const Q1=S.forwardRef(({className:e,...t},n)=>{const r=m8(),i=Pi();return T.jsx(se,{component:"h2",ref:n,className:kt({[il.title]:!i.unstyled},e),...t,id:r})});Q1.displayName="@mantine/core/ModalBaseTitle";function w2({children:e}){return T.jsx(T.Fragment,{children:e})}const[g8,Ac]=p1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Er={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const vk={},b8=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Ch=fe((e,t)=>{const n=ie("InputDescription",vk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=ie("InputDescription",vk,n),h=Ac(),m=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:b8}),y=d&&(h==null?void 0:h.getStyles)||m;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("description",h!=null&&h.getStyles?{className:i,style:o}:void 0),...p})});Ch.classes=Er;Ch.displayName="@mantine/core/InputDescription";const y8={},E8=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Nh=fe((e,t)=>{const n=ie("InputError",y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=n,h=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:E8}),m=Ac(),y=d&&(m==null?void 0:m.getStyles)||h;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("error",m!=null&&m.getStyles?{className:i,style:o}:void 0),...p})});Nh.classes=Er;Nh.displayName="@mantine/core/InputError";const Tk={labelElement:"label"},v8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0}}),Ah=fe((e,t)=>{const n=ie("InputLabel",Tk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,labelElement:u,size:c,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:m,variant:y,mod:b,...E}=ie("InputLabel",Tk,n),v=Pe({name:["InputWrapper",m],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:v8}),k=Ac(),_=(k==null?void 0:k.getStyles)||v;return T.jsxs(se,{..._("label",k!=null&&k.getStyles?{className:i,style:o}:void 0),component:u,variant:y,size:c,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:d},b],onMouseDown:x=>{p==null||p(x),!x.defaultPrevented&&x.detail>1&&x.preventDefault()},...E,children:[h,d&&T.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Ah.classes=Er;Ah.displayName="@mantine/core/InputLabel";const kk={},X1=fe((e,t)=>{const n=ie("InputPlaceholder",kk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...p}=ie("InputPlaceholder",kk,n),h=Pe({name:["InputPlaceholder",u],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"placeholder"});return T.jsx(se,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:t,...p})});X1.classes=Er;X1.displayName="@mantine/core/InputPlaceholder";function T8(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),i=e.slice(0,r),o=e.slice(r+1),a=t&&i.includes("description")||n&&i.includes("error");return{offsetBottom:t&&o.includes("description")||n&&o.includes("error"),offsetTop:a}}const k8={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},x8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),J1=fe((e,t)=>{const n=ie("InputWrapper",k8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,variant:c,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:h,error:m,description:y,labelProps:b,descriptionProps:E,errorProps:v,labelElement:k,children:_,withAsterisk:x,id:I,required:R,__stylesApiProps:z,mod:A,...j}=n,L=Pe({name:["InputWrapper",d],props:z||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:x8}),U={size:u,variant:c,__staticSelector:d},V=jo(I),H=typeof x=="boolean"?x:R,B=(v==null?void 0:v.id)||`${V}-error`,M=(E==null?void 0:E.id)||`${V}-description`,N=V,F=!!m&&typeof m!="boolean",w=!!y,q=`${F?B:""} ${w?M:""}`,X=q.trim().length>0?q.trim():void 0,D=(b==null?void 0:b.id)||`${V}-label`,be=h&&T.jsx(Ah,{labelElement:k,id:D,htmlFor:N,required:H,...U,...b,children:h},"label"),ge=w&&T.jsx(Ch,{...E,...U,size:(E==null?void 0:E.size)||U.size,id:(E==null?void 0:E.id)||M,children:y},"description"),le=T.jsx(S.Fragment,{children:f(_)},"input"),Ce=F&&S.createElement(Nh,{...v,...U,size:(v==null?void 0:v.size)||U.size,key:"error",id:(v==null?void 0:v.id)||B},m),Ie=p.map(Oe=>{switch(Oe){case"label":return be;case"input":return le;case"description":return ge;case"error":return Ce;default:return null}});return T.jsx(g8,{value:{getStyles:L,describedBy:X,inputId:N,labelId:D,...T8(p,{hasDescription:w,hasError:F})},children:T.jsx(se,{ref:t,variant:c,size:u,mod:[{error:!!m},A],...L("root"),...j,children:Ie})})});J1.classes=Er;J1.displayName="@mantine/core/InputWrapper";const S8={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},w8=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Je(t.size,"input-height"),"--input-fz":$n(t.size),"--input-radius":t.radius===void 0?void 0:gr(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?Y(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?Y(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Je(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),zt=br((e,t)=>{const n=ie("Input",S8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,required:l,__staticSelector:u,__stylesApiProps:c,size:d,wrapperProps:f,error:p,disabled:h,leftSection:m,leftSectionProps:y,leftSectionWidth:b,rightSection:E,rightSectionProps:v,rightSectionWidth:k,rightSectionPointerEvents:_,leftSectionPointerEvents:x,variant:I,vars:R,pointer:z,multiline:A,radius:j,id:L,withAria:U,withErrorStyles:V,mod:H,inputSize:B,...M}=n,{styleProps:N,rest:F}=xc(M),w=Ac(),q={offsetBottom:w==null?void 0:w.offsetBottom,offsetTop:w==null?void 0:w.offsetTop},X=Pe({name:["Input",u],props:c||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,stylesCtx:q,rootSelector:"wrapper",vars:R,varsResolver:w8}),D=U?{required:l,disabled:h,"aria-invalid":!!p,"aria-describedby":w==null?void 0:w.describedBy,id:(w==null?void 0:w.inputId)||L}:{};return T.jsxs(se,{...X("wrapper"),...N,...f,mod:[{error:!!p&&V,pointer:z,disabled:h,multiline:A,"data-with-right-section":!!E,"data-with-left-section":!!m},H],variant:I,size:d,children:[m&&T.jsx("div",{...y,"data-position":"left",...X("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:m}),T.jsx(se,{component:"input",...F,...D,ref:t,required:l,mod:{disabled:h,error:!!p&&V},variant:I,__size:B,...X("input")}),E&&T.jsx("div",{...v,"data-position":"right",...X("section",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),children:E})]})});zt.classes=Er;zt.Wrapper=J1;zt.Label=Ah;zt.Error=Nh;zt.Description=Ch;zt.Placeholder=X1;zt.displayName="@mantine/core/Input";function _8(e,t,n){const r=ie(e,t,n),{label:i,description:o,error:a,required:s,classNames:l,styles:u,className:c,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:m,descriptionProps:y,wrapperProps:b,id:E,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,vars:z,mod:A,...j}=r,{styleProps:L,rest:U}=xc(j),V={label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:m,descriptionProps:y,unstyled:d,styles:u,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,id:E,mod:A,...b};return{...U,classNames:l,styles:u,unstyled:d,wrapperProps:{...V,...L},inputProps:{required:s,classNames:l,styles:u,unstyled:d,size:v,__staticSelector:f,__stylesApiProps:p||r,error:a,variant:R,id:E}}}const C8={__staticSelector:"InputBase",withAria:!0},Bi=br((e,t)=>{const{inputProps:n,wrapperProps:r,...i}=_8("InputBase",C8,e);return T.jsx(zt.Wrapper,{...r,children:T.jsx(zt,{...n,...i,ref:t})})});Bi.classes={...zt.classes,...zt.Wrapper.classes};Bi.displayName="@mantine/core/InputBase";var _2={root:"m_b6d8b162"};function N8(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const A8={inherit:!1},O8=(e,{variant:t,lineClamp:n,gradient:r,size:i,color:o})=>({root:{"--text-fz":$n(i),"--text-lh":_P(i),"--text-gradient":t==="gradient"?ob(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":o?Mo(o,e):void 0}}),qt=br((e,t)=>{const n=ie("Text",A8,e),{lineClamp:r,truncate:i,inline:o,inherit:a,gradient:s,span:l,__staticSelector:u,vars:c,className:d,style:f,classNames:p,styles:h,unstyled:m,variant:y,mod:b,size:E,...v}=n,k=Pe({name:["Text",u],props:n,classes:_2,className:d,style:f,classNames:p,styles:h,unstyled:m,vars:c,varsResolver:O8});return T.jsx(se,{...k("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":N8(i),"data-line-clamp":typeof r=="number","data-inline":o,"data-inherit":a},b],size:E,...v})});qt.classes=_2;qt.displayName="@mantine/core/Text";var C2={root:"m_849cf0da"};const I8={underline:"hover"},Wf=br((e,t)=>{const{underline:n,className:r,unstyled:i,mod:o,...a}=ie("Anchor",I8,e);return T.jsx(qt,{component:"a",ref:t,className:kt({[C2.root]:!i},r),...a,mod:[{underline:n},o],__staticSelector:"Anchor",unstyled:i})});Wf.classes=C2;Wf.displayName="@mantine/core/Anchor";const[R8,Tl]=Uo("AppShell was not found in tree");var Vo={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const M8={},Z1=fe((e,t)=>{const n=ie("AppShellAside",M8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"aside",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("aside",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-aside-z-index":`calc(${c??p.zIndex} + 1)`}})});Z1.classes=Vo;Z1.displayName="@mantine/core/AppShellAside";const D8={},eE=fe((e,t)=>{var h;const n=ie("AppShellFooter",D8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"footer",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("footer",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-footer-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});eE.classes=Vo;eE.displayName="@mantine/core/AppShellFooter";const L8={},tE=fe((e,t)=>{var h;const n=ie("AppShellHeader",L8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"header",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("header",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-header-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});tE.classes=Vo;tE.displayName="@mantine/core/AppShellHeader";const P8={},nE=fe((e,t)=>{const n=ie("AppShellMain",P8,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=Tl();return T.jsx(se,{component:"main",ref:t,...u.getStyles("main",{className:i,style:o,classNames:r,styles:a}),...l})});nE.classes=Vo;nE.displayName="@mantine/core/AppShellMain";function Oc(e){return typeof e=="object"?e.base:e}function Ic(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function Rc(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function B8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(var(--app-shell-aside-width))",s="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-aside-width"]=d,e["--app-shell-aside-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-aside-width"]=Y(o.base),e["--app-shell-aside-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-aside-width"]=Y(o[d]),t[d]["--app-shell-aside-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-aside-transform"]=a,t[d]["--app-shell-aside-transform-rtl"]=s,t[d]["--app-shell-aside-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-aside-width"]="100%",n[d]["--app-shell-aside-offset"]="0px",n[d]["--app-shell-aside-transform"]=a,n[d]["--app-shell-aside-transform-rtl"]=s}}function z8({baseStyles:e,minMediaStyles:t,footer:n}){const r=n==null?void 0:n.height,i="translateY(var(--app-shell-footer-height))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-footer-height"]=a,o&&(e["--app-shell-footer-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=Y(r.base),o&&(e["--app-shell-footer-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=Y(r[a]),o&&(t[a]["--app-shell-footer-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-footer-transform"]=i,e["--app-shell-footer-offset"]="0px !important")}function F8({baseStyles:e,minMediaStyles:t,header:n}){const r=n==null?void 0:n.height,i="translateY(calc(var(--app-shell-header-height) * -1))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-header-height"]=a,o&&(e["--app-shell-header-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=Y(r.base),o&&(e["--app-shell-header-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=Y(r[a]),o&&(t[a]["--app-shell-header-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-header-transform"]=i,e["--app-shell-header-offset"]="0px !important")}function H8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",s="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-navbar-width"]=d,e["--app-shell-navbar-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-navbar-width"]=Y(o.base),e["--app-shell-navbar-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-navbar-width"]=Y(o[d]),t[d]["--app-shell-navbar-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-navbar-transform"]=a,t[d]["--app-shell-navbar-transform-rtl"]=s,t[d]["--app-shell-navbar-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-navbar-width"]="100%",n[d]["--app-shell-navbar-offset"]="0px",n[d]["--app-shell-navbar-transform"]=a,n[d]["--app-shell-navbar-transform-rtl"]=s}}function dg(e){return Number(e)===0?"0px":vc(e)}function U8({padding:e,baseStyles:t,minMediaStyles:n}){Ic(e)&&(t["--app-shell-padding"]=dg(Oc(e))),Rc(e)&&(e.base&&(t["--app-shell-padding"]=dg(e.base)),Kt(e).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=dg(e[r]))}))}function j8({navbar:e,header:t,footer:n,aside:r,padding:i,theme:o}){const a={},s={},l={};H8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,navbar:e,theme:o}),B8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,aside:r,theme:o}),F8({baseStyles:l,minMediaStyles:a,header:t}),z8({baseStyles:l,minMediaStyles:a,footer:n}),U8({baseStyles:l,minMediaStyles:a,padding:i});const u=WT(Kt(a),o.breakpoints).map(f=>({query:`(min-width: ${zf(f.px)})`,styles:a[f.value]})),c=WT(Kt(s),o.breakpoints).map(f=>({query:`(max-width: ${zf(f.px)})`,styles:s[f.value]})),d=[...u,...c];return{baseStyles:l,media:d}}function $8({navbar:e,header:t,aside:n,footer:r,padding:i}){const o=li(),a=$o(),{media:s,baseStyles:l}=j8({navbar:e,header:t,footer:r,aside:n,padding:i,theme:o});return T.jsx(_N,{media:s,styles:l,selector:a.cssVariablesSelector})}const W8={},rE=fe((e,t)=>{const n=ie("AppShellNavbar",W8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"nav",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("navbar",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-navbar-z-index":`calc(${c??p.zIndex} + 1)`}})});rE.classes=Vo;rE.displayName="@mantine/core/AppShellNavbar";const V8={},iE=br((e,t)=>{const n=ie("AppShellSection",V8,e),{classNames:r,className:i,style:o,styles:a,vars:s,grow:l,mod:u,...c}=n,d=Tl();return T.jsx(se,{ref:t,mod:[{grow:l},u],...d.getStyles("section",{className:i,style:o,classNames:r,styles:a}),...c})});iE.classes=Vo;iE.displayName="@mantine/core/AppShellSection";function q8({transitionDuration:e,disabled:t}){const[n,r]=S.useState(!0),i=S.useRef(),o=S.useRef();return bN("resize",()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),200)}),bl(()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),e||0)},[t,e]),n}const Y8={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Mn("app")},K8=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),ur=fe((e,t)=>{const n=ie("AppShell",Y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,navbar:u,withBorder:c,padding:d,transitionDuration:f,transitionTimingFunction:p,header:h,zIndex:m,layout:y,disabled:b,aside:E,footer:v,offsetScrollbars:k,mod:_,...x}=n,I=Pe({name:"AppShell",classes:Vo,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:K8}),R=q8({disabled:b,transitionDuration:f});return T.jsxs(R8,{value:{getStyles:I,withBorder:c,zIndex:m,disabled:b,offsetScrollbars:k},children:[T.jsx($8,{navbar:u,header:h,aside:E,footer:v,padding:d}),T.jsx(se,{ref:t,...I("root"),mod:[{resizing:R,layout:y,disabled:b},_],...x})]})});ur.classes=Vo;ur.displayName="@mantine/core/AppShell";ur.Navbar=rE;ur.Header=tE;ur.Main=nE;ur.Aside=Z1;ur.Footer=eE;ur.Section=iE;function N2(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>N2(t))}:e}function G8(e){return e?e.map(t=>N2(t)):[]}function A2(e){return e.reduce((t,n)=>"group"in n?{...t,...A2(n.items)}:(t[n.value]=n,t),{})}var Rn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Q8={error:null},X8=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Je(t,"combobox-chevron-size")}}),oE=fe((e,t)=>{const n=ie("ComboboxChevron",Q8,e),{size:r,error:i,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,mod:d,...f}=n,p=Pe({name:"ComboboxChevron",classes:Rn,props:n,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,varsResolver:X8,rootSelector:"chevron"});return T.jsx(se,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],ref:t,children:T.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});oE.classes=Rn;oE.displayName="@mantine/core/ComboboxChevron";const[J8,vr]=Uo("Combobox component was not found in tree"),O2=S.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...i},o)=>T.jsx(_h,{ref:o,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:a=>{a.preventDefault(),t==null||t(a)},onClick:a=>{r(),n==null||n(a)}}));O2.displayName="@mantine/core/ComboboxClearButton";const Z8={},aE=fe((e,t)=>{const{classNames:n,styles:r,className:i,style:o,hidden:a,...s}=ie("ComboboxDropdown",Z8,e),l=vr();return T.jsx(Wo.Dropdown,{...s,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:o,classNames:n,styles:r})})});aE.classes=Rn;aE.displayName="@mantine/core/ComboboxDropdown";const eB={refProp:"ref"},I2=fe((e,t)=>{const{children:n,refProp:r}=ie("ComboboxDropdownTarget",eB,e);if(vr(),!Va(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return T.jsx(Wo.Target,{ref:t,refProp:r,children:n})});I2.displayName="@mantine/core/ComboboxDropdownTarget";const tB={},sE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxEmpty",tB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:o,style:i}),...s})});sE.classes=Rn;sE.displayName="@mantine/core/ComboboxEmpty";function lE({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:o}){const a=vr(),[s,l]=S.useState(null),u=d=>{if(e==null||e(d),!a.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):i==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&i==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(a.store.listId&&a.store.dropdownOpened)||void 0,"aria-controls":a.store.listId,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:o,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:u}}const nB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},R2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxEventsTarget",nB,e);if(!Va(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l});return S.cloneElement(n,{...d,...u,[r]:Dn(t,c.store.targetRef,mh(n))})});R2.displayName="@mantine/core/ComboboxEventsTarget";const rB={},uE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxFooter",rB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});uE.classes=Rn;uE.displayName="@mantine/core/ComboboxFooter";const iB={},cE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,children:s,label:l,...u}=ie("ComboboxGroup",iB,e),c=vr();return T.jsxs(se,{ref:t,...c.getStyles("group",{className:r,classNames:n,style:i,styles:o}),...u,children:[l&&T.jsx("div",{...c.getStyles("groupLabel",{classNames:n,styles:o}),children:l}),s]})});cE.classes=Rn;cE.displayName="@mantine/core/ComboboxGroup";const oB={},dE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxHeader",oB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});dE.classes=Rn;dE.displayName="@mantine/core/ComboboxHeader";function M2({value:e,valuesDivider:t=",",...n}){return T.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}M2.displayName="@mantine/core/ComboboxHiddenInput";const aB={},fE=fe((e,t)=>{const n=ie("ComboboxOption",aB,e),{classNames:r,className:i,style:o,styles:a,vars:s,onClick:l,id:u,active:c,onMouseDown:d,onMouseOver:f,disabled:p,selected:h,mod:m,...y}=n,b=vr(),E=S.useId(),v=u||E;return T.jsx(se,{...b.getStyles("option",{className:i,classNames:r,styles:a,style:o}),...y,ref:t,id:v,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":p,"combobox-selected":h},m],role:"option",onClick:k=>{var _;p?k.preventDefault():((_=b.onOptionSubmit)==null||_.call(b,n.value,n),l==null||l(k))},onMouseDown:k=>{k.preventDefault(),d==null||d(k)},onMouseOver:k=>{b.resetSelectionOnOptionHover&&b.store.resetSelectedOption(),f==null||f(k)}})});fE.classes=Rn;fE.displayName="@mantine/core/ComboboxOption";const sB={},pE=fe((e,t)=>{const n=ie("ComboboxOptions",sB,e),{classNames:r,className:i,style:o,styles:a,id:s,onMouseDown:l,labelledBy:u,...c}=n,d=vr(),f=jo(s);return S.useEffect(()=>{d.store.setListId(f)},[f]),T.jsx(se,{ref:t,...d.getStyles("options",{className:i,style:o,classNames:r,styles:a}),...c,id:f,role:"listbox","aria-labelledby":u,onMouseDown:p=>{p.preventDefault(),l==null||l(p)}})});pE.classes=Rn;pE.displayName="@mantine/core/ComboboxOptions";const lB={withAriaAttributes:!0,withKeyboardNavigation:!0},hE=fe((e,t)=>{const n=ie("ComboboxSearch",lB,e),{classNames:r,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=n,f=vr(),p=f.getStyles("search"),h=lE({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return T.jsx(zt,{ref:Dn(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},i],size:c||f.size,...h,...d,__staticSelector:"Combobox"})});hE.classes=Rn;hE.displayName="@mantine/core/ComboboxSearch";const uB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},D2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxTarget",uB,e);if(!Va(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l}),f=S.cloneElement(n,{...d,...u});return T.jsx(Wo.Target,{ref:Dn(t,c.store.targetRef),children:f})});D2.displayName="@mantine/core/ComboboxTarget";function cB(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function dB(e,t,n){for(let r=e+1;r{s||(l(!0),i==null||i(B))},[l,i,s]),b=S.useCallback((B="unknown")=>{s&&(l(!1),r==null||r(B))},[l,r,s]),E=S.useCallback((B="unknown")=>{s?b(B):y(B)},[b,y,s]),v=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-selected]`);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),k=S.useCallback(B=>{const M=document.getElementById(u.current),N=M==null?void 0:M.querySelectorAll("[data-combobox-option]");if(!N)return null;const F=B>=N.length?0:B<0?N.length-1:B;return c.current=F,N!=null&&N[F]&&!N[F].hasAttribute("data-combobox-disabled")?(v(),N[F].setAttribute("data-combobox-selected","true"),N[F].setAttribute("aria-selected","true"),N[F].scrollIntoView({block:"nearest",behavior:a}),N[F].id):null},[a,v]),_=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-active]`);if(B){const M=document.querySelectorAll(`#${u.current} [data-combobox-option]`),N=Array.from(M).findIndex(F=>F===B);return k(N)}return k(0)},[k]),x=S.useCallback(()=>k(dB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),I=S.useCallback(()=>k(cB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),R=S.useCallback(()=>k(fB(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[k]),z=S.useCallback((B="selected",M)=>{m.current=window.setTimeout(()=>{var w;const N=document.querySelectorAll(`#${u.current} [data-combobox-option]`),F=Array.from(N).findIndex(q=>q.hasAttribute(`data-combobox-${B}`));c.current=F,M!=null&&M.scrollIntoView&&((w=N[F])==null||w.scrollIntoView({block:"nearest",behavior:a}))},0)},[]),A=S.useCallback(()=>{c.current=-1,v()},[v]),j=S.useCallback(()=>{const B=document.querySelectorAll(`#${u.current} [data-combobox-option]`),M=B==null?void 0:B[c.current];M==null||M.click()},[]),L=S.useCallback(B=>{u.current=B},[]),U=S.useCallback(()=>{p.current=window.setTimeout(()=>d.current.focus(),0)},[]),V=S.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),H=S.useCallback(()=>c.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(h.current),window.clearTimeout(m.current)},[]),{dropdownOpened:s,openDropdown:y,closeDropdown:b,toggleDropdown:E,selectedOptionIndex:c.current,getSelectedOptionIndex:H,selectOption:k,selectFirstOption:R,selectActiveOption:_,selectNextOption:x,selectPreviousOption:I,resetSelectedOption:A,updateSelectedOptionIndex:z,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:d,focusSearchInput:U,targetRef:f,focusTarget:V}}const pB={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},hB=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Y(n),"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")}});function Ve(e){const t=ie("Combobox",pB,e),{classNames:n,styles:r,unstyled:i,children:o,store:a,vars:s,onOptionSubmit:l,onClose:u,size:c,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...m}=t,y=L2(),b=a||y,E=Pe({name:p||"Combobox",classes:Rn,props:t,classNames:n,styles:r,unstyled:i,vars:s,varsResolver:hB}),v=()=>{u==null||u(),b.closeDropdown()};return T.jsx(J8,{value:{getStyles:E,store:b,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:h},children:T.jsx(Wo,{opened:b.dropdownOpened,...m,onChange:k=>!k&&v(),withRoles:!1,unstyled:i,children:o})})}const mB=e=>e;Ve.extend=mB;Ve.classes=Rn;Ve.displayName="@mantine/core/Combobox";Ve.Target=D2;Ve.Dropdown=aE;Ve.Options=pE;Ve.Option=fE;Ve.Search=hE;Ve.Empty=sE;Ve.Chevron=oE;Ve.Footer=uE;Ve.Header=dE;Ve.EventsTarget=R2;Ve.DropdownTarget=I2;Ve.Group=cE;Ve.ClearButton=O2;Ve.HiddenInput=M2;var P2={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const gB=P2,B2=S.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:o,children:a,label:s,description:l,id:u,disabled:c,error:d,size:f,labelPosition:p="left",bodyElement:h="div",labelElement:m="label",variant:y,style:b,vars:E,mod:v,...k},_)=>{const x=Pe({name:e,props:t,className:n,style:b,classes:P2,classNames:r,styles:i,unstyled:o});return T.jsx(se,{...x("root"),ref:_,__vars:{"--label-fz":$n(f),"--label-lh":Je(f,"label-lh")},mod:[{"label-position":p},v],variant:y,size:f,...k,children:T.jsxs(se,{component:h,htmlFor:h==="label"?u:void 0,...x("body"),children:[a,T.jsxs("div",{...x("labelWrapper"),"data-disabled":c||void 0,children:[s&&T.jsx(se,{component:m,htmlFor:m==="label"?u:void 0,...x("label"),"data-disabled":c||void 0,children:s}),l&&T.jsx(zt.Description,{size:f,__inheritStyles:!1,...x("description"),children:l}),d&&typeof d!="boolean"&&T.jsx(zt.Error,{size:f,__inheritStyles:!1,...x("error"),children:d})]})]})})});B2.displayName="@mantine/core/InlineInput";function bB({children:e,role:t}){const n=Ac();return n?T.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):T.jsx(T.Fragment,{children:e})}function yB({size:e,style:t,...n}){const r=e!==void 0?{width:Y(e),height:Y(e),...t}:t;return T.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:T.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ku(e){return"group"in e}function z2({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),i=[];for(let o=0;o0)return!1;return!0}function F2(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ku(n))F2(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function vB(e,t){return Array.isArray(e)?e.includes(t):e===t}function H2({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:i,renderOption:o}){if(!Ku(e)){const s=vB(n,e.value),l=t&&s&&T.jsx(yB,{className:Rn.optionsDropdownCheckIcon}),u=T.jsxs(T.Fragment,{children:[r==="left"&&l,T.jsx("span",{children:e.label}),r==="right"&&l]});return T.jsx(Ve.Option,{value:e.value,disabled:e.disabled,className:kt({[Rn.optionsDropdownOption]:!i}),"data-reverse":r==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o=="function"?o({option:e,checked:s}):u})}const a=e.items.map(s=>T.jsx(H2,{data:s,value:n,unstyled:i,withCheckIcon:t,checkIconPosition:r,renderOption:o},s.value));return T.jsx(Ve.Group,{label:e.group,children:a})}function TB({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:o,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:u=!1,value:c,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:m,scrollAreaProps:y,"aria-label":b}){F2(e);const v=typeof i=="string"?(r||z2)({options:e,search:l?i:"",limit:o??1/0}):e,k=EB(v),_=v.map(x=>T.jsx(H2,{data:x,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:p,renderOption:m},Ku(x)?x.group:x.value));return T.jsx(Ve.Dropdown,{hidden:t||n&&k,children:T.jsxs(Ve.Options,{labelledBy:h,"aria-label":b,children:[s?T.jsx(wc.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:_}):_,k&&f&&T.jsx(Ve.Empty,{children:f})]})})}var U2={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const kB={},xB=(e,{color:t,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:o})=>({root:{"--burger-color":t?Mo(t,e):void 0,"--burger-size":Je(n,"burger-size"),"--burger-line-size":r?Y(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":o}}),mE=fe((e,t)=>{const n=ie("Burger",kB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,opened:u,children:c,transitionDuration:d,transitionTimingFunction:f,lineSize:p,...h}=n,m=Pe({name:"Burger",classes:U2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:xB});return T.jsxs(yl,{...m("root"),ref:t,...h,children:[T.jsx(se,{mod:["reduce-motion",{opened:u}],...m("burger")}),c]})});mE.classes=U2;mE.displayName="@mantine/core/Burger";var Oh={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const xk={orientation:"horizontal"},SB=(e,{borderWidth:t})=>({group:{"--button-border-width":Y(t)}}),gE=fe((e,t)=>{const n=ie("ButtonGroup",xk,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ButtonGroup",xk,e),h=Pe({name:"ButtonGroup",props:n,classes:Oh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:SB,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});gE.classes=Oh;gE.displayName="@mantine/core/ButtonGroup";const wB={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Y(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},_B={},CB=(e,{radius:t,color:n,gradient:r,variant:i,size:o,justify:a,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:s});return{root:{"--button-justify":a,"--button-height":Je(o,"button-height"),"--button-padding-x":Je(o,"button-padding-x"),"--button-fz":o!=null&&o.includes("compact")?$n(o.replace("compact-","")):$n(o),"--button-radius":t===void 0?void 0:gr(t),"--button-bg":n||i?l.background:void 0,"--button-hover":n||i?l.hover:void 0,"--button-color":l.color,"--button-bd":n||i?l.border:void 0,"--button-hover-color":n||i?l.hoverColor:void 0}}},$t=br((e,t)=>{const n=ie("Button",_B,e),{style:r,vars:i,className:o,color:a,disabled:s,children:l,leftSection:u,rightSection:c,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:m,gradient:y,classNames:b,styles:E,unstyled:v,"data-disabled":k,autoContrast:_,mod:x,...I}=n,R=Pe({name:"Button",props:n,classes:Oh,className:o,style:r,classNames:b,styles:E,unstyled:v,vars:i,varsResolver:CB}),z=!!u,A=!!c;return T.jsxs(yl,{ref:t,...R("root",{active:!s&&!h&&!k}),unstyled:v,variant:f,disabled:s||h,mod:[{disabled:s||k,loading:h,block:d,"with-left-section":z,"with-right-section":A},x],...I,children:[T.jsx(qa,{mounted:!!h,transition:wB,duration:150,children:j=>T.jsx(se,{component:"span",...R("loader",{style:j}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...m})})}),T.jsxs("span",{...R("inner"),children:[u&&T.jsx(se,{component:"span",...R("section"),mod:{position:"left"},children:u}),T.jsx(se,{component:"span",mod:{loading:h},...R("label"),children:l}),c&&T.jsx(se,{component:"span",...R("section"),mod:{position:"right"},children:c})]})]})});$t.classes=Oh;$t.displayName="@mantine/core/Button";$t.Group=gE;const NB={timeout:1e3};function j2(e){const{children:t,timeout:n,value:r,...i}=ie("CopyButton",NB,e),o=NP({timeout:n}),a=()=>o.copy(r);return T.jsx(T.Fragment,{children:t({copy:a,copied:o.copied,...i})})}j2.displayName="@mantine/core/CopyButton";const[AB,kl]=Uo("Drawer component was not found in tree");var zi={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const OB={},Ih=fe((e,t)=>{const n=ie("DrawerBody",OB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});Ih.classes=zi;Ih.displayName="@mantine/core/DrawerBody";const IB={},Rh=fe((e,t)=>{const n=ie("DrawerCloseButton",IB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Rh.classes=zi;Rh.displayName="@mantine/core/DrawerCloseButton";const RB={},Mh=fe((e,t)=>{const n=ie("DrawerContent",RB,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,radius:u,__hidden:c,...d}=n,f=kl(),p=f.scrollAreaComponent||w2;return T.jsx(Y1,{...f.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:f.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),ref:t,...d,radius:u||f.radius||0,"data-hidden":c||void 0,children:T.jsx(p,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});Mh.classes=zi;Mh.displayName="@mantine/core/DrawerContent";const MB={},Dh=fe((e,t)=>{const n=ie("DrawerHeader",MB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Dh.classes=zi;Dh.displayName="@mantine/core/DrawerHeader";const DB={},Lh=fe((e,t)=>{const n=ie("DrawerOverlay",DB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});Lh.classes=zi;Lh.displayName="@mantine/core/DrawerOverlay";function LB(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function PB(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const BB={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},zB={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},FB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),position:"left"},HB=(e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Je(n,"drawer-size"),"--drawer-flex":PB(t),"--drawer-height":t==="left"||t==="right"?void 0:"var(--drawer-size)","--drawer-align":LB(t),"--drawer-justify":t==="right"?"flex-end":void 0,"--drawer-offset":Y(r)}}),Ph=fe((e,t)=>{const n=ie("DrawerRoot",FB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,scrollAreaComponent:u,position:c,transitionProps:d,radius:f,...p}=n,{dir:h}=Sc(),m=Pe({name:"Drawer",classes:zi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:HB}),y=(h==="rtl"?zB:BB)[c];return T.jsx(AB,{value:{scrollAreaComponent:u,getStyles:m,radius:f},children:T.jsx(W1,{ref:t,...m("root"),transitionProps:{transition:y,...d},unstyled:s,...p})})});Ph.classes=zi;Ph.displayName="@mantine/core/DrawerRoot";const[UB,jB]=p1();function $2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(UB,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}$2.displayName="@mantine/core/DrawerStack";const $B={},Bh=fe((e,t)=>{const n=ie("DrawerTitle",$B,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Bh.classes=zi;Bh.displayName="@mantine/core/DrawerTitle";const WB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),withOverlay:!0,withCloseButton:!0},Fr=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,opened:l,stackId:u,zIndex:c,...d}=ie("Drawer",WB,e),f=jB(),p=!!n||o,h=f&&u?{closeOnEscape:f.currentId===u,trapFocus:f.currentId===u,zIndex:f.getZIndex(u)}:{},m=r===!1?!1:u&&f?f.currentId===u:l;return S.useEffect(()=>{f&&u&&(l?f.addModal(u,c||Mn("modal")):f.removeModal(u))},[l,u,c]),T.jsxs(Ph,{ref:t,opened:l,zIndex:f&&u?f.getZIndex(u):c,...d,...h,children:[r&&T.jsx(Lh,{visible:m,transitionProps:f&&u?{duration:0}:void 0,...i}),T.jsxs(Mh,{__hidden:f&&u&&l?u!==f.currentId:!1,children:[p&&T.jsxs(Dh,{children:[n&&T.jsx(Bh,{children:n}),o&&T.jsx(Rh,{...a})]}),T.jsx(Ih,{children:s})]})]})});Fr.classes=zi;Fr.displayName="@mantine/core/Drawer";Fr.Root=Ph;Fr.Overlay=Lh;Fr.Content=Mh;Fr.Body=Ih;Fr.Header=Dh;Fr.Title=Bh;Fr.CloseButton=Rh;Fr.Stack=$2;var W2={root:"m_9e117634"};const VB={},qB=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:gr(t),"--image-object-fit":n}}),Gu=br((e,t)=>{const n=ie("Image",VB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,onError:u,src:c,radius:d,fit:f,fallbackSrc:p,mod:h,...m}=n,[y,b]=S.useState(!c);S.useEffect(()=>b(!c),[c]);const E=Pe({name:"Image",classes:W2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:qB});return y&&p?T.jsx(se,{component:"img",ref:t,src:p,...E("root"),onError:u,mod:["fallback",h],...m}):T.jsx(se,{component:"img",ref:t,...E("root"),src:c,onError:v=>{u==null||u(v),b(!0)},mod:h,...m})});Gu.classes=W2;Gu.displayName="@mantine/core/Image";function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:r,minRows:i,__staticSelector:o,resize:a,...s}=ie("Textarea",uz,e),l=n&&WP()!=="test",u=l?{maxRows:r,minRows:i}:{};return T.jsx(Bi,{component:l?lz:"textarea",ref:t,...s,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":a},...u})});bE.classes=Bi.classes;bE.displayName="@mantine/core/Textarea";const[cz,xl]=Uo("Modal component was not found in tree");var Fi={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const dz={},zh=fe((e,t)=>{const n=ie("ModalBody",dz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});zh.classes=Fi;zh.displayName="@mantine/core/ModalBody";const fz={},Fh=fe((e,t)=>{const n=ie("ModalCloseButton",fz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Fh.classes=Fi;Fh.displayName="@mantine/core/ModalCloseButton";const pz={},Hh=fe((e,t)=>{const n=ie("ModalContent",pz,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,__hidden:u,...c}=n,d=xl(),f=d.scrollAreaComponent||w2;return T.jsx(Y1,{...d.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:d.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...c,children:T.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${Y(d.yOffset)} * 2))`},children:l})})});Hh.classes=Fi;Hh.displayName="@mantine/core/ModalContent";const hz={},Uh=fe((e,t)=>{const n=ie("ModalHeader",hz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Uh.classes=Fi;Uh.displayName="@mantine/core/ModalHeader";const mz={},jh=fe((e,t)=>{const n=ie("ModalOverlay",mz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});jh.classes=Fi;jh.displayName="@mantine/core/ModalOverlay";const gz={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},bz=(e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:gr(t),"--modal-size":Je(n,"modal-size"),"--modal-y-offset":Y(r),"--modal-x-offset":Y(i)}}),$h=fe((e,t)=>{const n=ie("ModalRoot",gz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,yOffset:u,scrollAreaComponent:c,radius:d,fullScreen:f,centered:p,xOffset:h,__staticSelector:m,...y}=n,b=Pe({name:m,classes:Fi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:bz});return T.jsx(cz,{value:{yOffset:u,scrollAreaComponent:c,getStyles:b,fullScreen:f},children:T.jsx(W1,{ref:t,...b("root"),"data-full-screen":f||void 0,"data-centered":p||void 0,unstyled:s,...y})})});$h.classes=Fi;$h.displayName="@mantine/core/ModalRoot";const[yz,Ez]=p1();function q2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(yz,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}q2.displayName="@mantine/core/ModalStack";const vz={},Wh=fe((e,t)=>{const n=ie("ModalTitle",vz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Wh.classes=Fi;Wh.displayName="@mantine/core/ModalTitle";const Tz={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Yn=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,radius:l,opened:u,stackId:c,zIndex:d,...f}=ie("Modal",Tz,e),p=Ez(),h=!!n||o,m=p&&c?{closeOnEscape:p.currentId===c,trapFocus:p.currentId===c,zIndex:p.getZIndex(c)}:{},y=r===!1?!1:c&&p?p.currentId===c:u;return S.useEffect(()=>{p&&c&&(u?p.addModal(c,d||Mn("modal")):p.removeModal(c))},[u,c,d]),T.jsxs($h,{ref:t,radius:l,opened:u,zIndex:p&&c?p.getZIndex(c):d,...f,...m,children:[r&&T.jsx(jh,{visible:y,transitionProps:p&&c?{duration:0}:void 0,...i}),T.jsxs(Hh,{radius:l,__hidden:p&&c&&u?c!==p.currentId:!1,children:[h&&T.jsxs(Uh,{children:[n&&T.jsx(Wh,{children:n}),o&&T.jsx(Fh,{...a})]}),T.jsx(zh,{children:s})]})]})});Yn.classes=Fi;Yn.displayName="@mantine/core/Modal";Yn.Root=$h;Yn.Overlay=jh;Yn.Content=Hh;Yn.Body=zh;Yn.Header=Uh;Yn.Title=Wh;Yn.CloseButton=Fh;Yn.Stack=q2;const kz=({reveal:e})=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:T.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var Eb={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const xz={visibilityToggleIcon:kz},Sz=(e,{size:t})=>({root:{"--psi-icon-size":Je(t,"psi-icon-size"),"--psi-button-size":Je(t,"psi-button-size")}}),yE=fe((e,t)=>{const n=ie("PasswordInput",xz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,required:u,error:c,leftSection:d,disabled:f,id:p,variant:h,inputContainer:m,description:y,label:b,size:E,errorProps:v,descriptionProps:k,labelProps:_,withAsterisk:x,inputWrapperOrder:I,wrapperProps:R,radius:z,rightSection:A,rightSectionWidth:j,rightSectionPointerEvents:L,leftSectionWidth:U,visible:V,defaultVisible:H,onVisibilityChange:B,visibilityToggleIcon:M,visibilityToggleButtonProps:N,rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withErrorStyles:X,mod:D,...be}=n,ge=jo(p),[le,Ce]=La({value:V,defaultValue:H,finalValue:!1,onChange:B}),Ie=()=>Ce(!le),Oe=Pe({name:"PasswordInput",classes:Eb,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Sz}),{resolvedClassNames:Ke,resolvedStyles:xt}=wN({classNames:r,styles:a,props:n}),{styleProps:Xt,rest:ye}=xc(be),Re=M,at=T.jsx(ze,{...Oe("visibilityToggle"),disabled:f,radius:z,"aria-hidden":!N,tabIndex:-1,...N,variant:"subtle",color:"gray",unstyled:s,onTouchEnd:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onTouchEnd)==null||Fe.call(N,Be),Ie()},onMouseDown:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onMouseDown)==null||Fe.call(N,Be),Ie()},onKeyDown:Be=>{var Fe;(Fe=N==null?void 0:N.onKeyDown)==null||Fe.call(N,Be),Be.key===" "&&(Be.preventDefault(),Ie())},children:T.jsx(Re,{reveal:le})});return T.jsx(zt.Wrapper,{required:u,id:ge,label:b,error:c,description:y,size:E,classNames:Ke,styles:xt,__staticSelector:"PasswordInput",errorProps:v,descriptionProps:k,unstyled:s,withAsterisk:x,inputWrapperOrder:I,inputContainer:m,variant:h,labelProps:{..._,htmlFor:ge},mod:D,...Oe("root"),...Xt,...R,children:T.jsx(zt,{component:"div",error:c,leftSection:d,size:E,classNames:{...Ke,input:kt(Eb.input,Ke.input)},styles:xt,radius:z,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:j,rightSection:A??at,variant:h,unstyled:s,leftSectionWidth:U,rightSectionPointerEvents:L||"all",rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withAria:!1,withErrorStyles:X,children:T.jsx("input",{required:u,"data-invalid":!!c||void 0,"data-with-left-section":!!d||void 0,...Oe("innerInput"),disabled:f,id:ge,ref:t,...ye,autoComplete:ye.autoComplete||"off",type:le?"text":"password"})})})});yE.classes={...Bi.classes,...Eb};yE.displayName="@mantine/core/PasswordInput";const wz={duration:100,transition:"fade"};function _z(e,t){return{...wz,...t,...e}}function Cz({offset:e,position:t,defaultOpened:n}){const[r,i]=S.useState(n),o=S.useRef(),{x:a,y:s,elements:l,refs:u,update:c,placement:d}=F1({placement:t,middleware:[L1({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,p=d.includes("bottom")?e:t.includes("top")?e*-1:0,h=S.useCallback(({clientX:m,clientY:y})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:m,y,left:m+f,top:y+p,right:m,bottom:y}}})},[l.reference]);return S.useEffect(()=>{if(u.floating.current){const m=o.current;m.addEventListener("mousemove",h);const y=wi(u.floating.current);return y.forEach(b=>{b.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",h),y.forEach(b=>{b.removeEventListener("scroll",c)})}}},[l.reference,u.floating.current,c,h,r]),{handleMouseMove:h,x:a,y:s,opened:r,setOpened:i,boundaryRef:o,floating:u.setFloating}}var Vh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Nz={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:Mn("popover")},Az=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),EE=fe((e,t)=>{const n=ie("TooltipFloating",Nz,e),{children:r,refProp:i,withinPortal:o,style:a,className:s,classNames:l,styles:u,unstyled:c,radius:d,color:f,label:p,offset:h,position:m,multiline:y,zIndex:b,disabled:E,defaultOpened:v,variant:k,vars:_,portalProps:x,...I}=n,R=li(),z=Pe({name:"TooltipFloating",props:n,classes:Vh,className:s,style:a,classNames:l,styles:u,unstyled:c,rootSelector:"tooltip",vars:_,varsResolver:Az}),{handleMouseMove:A,x:j,y:L,opened:U,boundaryRef:V,floating:H,setOpened:B}=Cz({offset:h,position:m,defaultOpened:v});if(!Va(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const M=Dn(V,mh(r),t),N=w=>{var q,X;(X=(q=r.props).onMouseEnter)==null||X.call(q,w),A(w),B(!0)},F=w=>{var q,X;(X=(q=r.props).onMouseLeave)==null||X.call(q,w),B(!1)};return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...x,withinPortal:o,children:T.jsx(se,{...I,...z("tooltip",{style:{...CN(a,R),zIndex:b,display:!E&&U?"block":"none",top:(L&&Math.round(L))??"",left:(j&&Math.round(j))??""}}),variant:k,ref:H,mod:{multiline:y},children:p})}),S.cloneElement(r,{...r.props,[i]:M,onMouseEnter:N,onMouseLeave:F})]})});EE.classes=Vh;EE.displayName="@mantine/core/TooltipFloating";const Y2=S.createContext(!1),Oz=Y2.Provider,Iz=()=>S.useContext(Y2),Rz={openDelay:0,closeDelay:0};function vE(e){const{openDelay:t,closeDelay:n,children:r}=ie("TooltipGroup",Rz,e);return T.jsx(Oz,{value:!0,children:T.jsx(_5,{delay:{open:t,close:n},children:r})})}vE.displayName="@mantine/core/TooltipGroup";vE.extend=e=>e;function Mz(e){var x,I,R;const[t,n]=S.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:t,o=Iz(),a=jo(),{delay:s,currentId:l,setCurrentId:u}=u2(),c=S.useCallback(z=>{n(z),z&&u(a)},[u,a]),{x:d,y:f,context:p,refs:h,update:m,placement:y,middlewareData:{arrow:{x:b,y:E}={}}}=F1({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:[i2(e.offset),L1({padding:8}),mb(),o2({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[gb()]:[]]});C5(p,{id:a});const{getReferenceProps:v,getFloatingProps:k}=D5([w5(p,{enabled:(x=e.events)==null?void 0:x.hover,delay:o?s:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((I=e.events)!=null&&I.touch)}),M5(p,{enabled:(R=e.events)==null?void 0:R.focus,visibleOnly:!0}),P5(p,{role:"tooltip"}),I5(p,{enabled:typeof e.opened>"u"})]);g2({opened:i,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:m}}),Da(()=>{var z;(z=e.onPositionChange)==null||z.call(e,y)},[y]);const _=i&&l&&l!==a;return{x:d,y:f,arrowX:b,arrowY:E,reference:h.setReference,floating:h.setFloating,getFloatingProps:k,getReferenceProps:v,isGroupPhase:_,opened:i,placement:y}}const Ak={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Mn("popover"),positionDependencies:[]},Dz=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Qe=fe((e,t)=>{const n=ie("Tooltip",Ak,e),{children:r,position:i,refProp:o,label:a,openDelay:s,closeDelay:l,onPositionChange:u,opened:c,defaultOpened:d,withinPortal:f,radius:p,color:h,classNames:m,styles:y,unstyled:b,style:E,className:v,withArrow:k,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,offset:z,transitionProps:A,multiline:j,events:L,zIndex:U,disabled:V,positionDependencies:H,onClick:B,onMouseEnter:M,onMouseLeave:N,inline:F,variant:w,keepMounted:q,vars:X,portalProps:D,mod:be,floatingStrategy:ge,...le}=ie("Tooltip",Ak,n),{dir:Ce}=Sc(),Ie=S.useRef(null),Oe=Mz({position:c2(Ce,i),closeDelay:l,openDelay:s,onPositionChange:u,opened:c,defaultOpened:d,events:L,arrowRef:Ie,arrowOffset:x,offset:typeof z=="number"?z+(k?_/2:0):z,positionDependencies:[...H,r],inline:F,strategy:ge}),Ke=Pe({name:"Tooltip",props:n,classes:Vh,className:v,style:E,classNames:m,styles:y,unstyled:b,rootSelector:"tooltip",vars:X,varsResolver:Dz});if(!Va(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const xt=Dn(Oe.reference,mh(r),t),Xt=_z(A,{duration:100,transition:"fade"});return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...D,withinPortal:f,children:T.jsx(qa,{...Xt,keepMounted:q,mounted:!V&&!!Oe.opened,duration:Oe.isGroupPhase?10:Xt.duration,children:ye=>T.jsxs(se,{...le,"data-fixed":ge==="fixed"||void 0,variant:w,mod:[{multiline:j},be],...Oe.getFloatingProps({ref:Oe.floating,className:Ke("tooltip").className,style:{...Ke("tooltip").style,...ye,zIndex:U,top:Oe.y??0,left:Oe.x??0}}),children:[a,T.jsx(H1,{ref:Ie,arrowX:Oe.arrowX,arrowY:Oe.arrowY,visible:k,position:Oe.placement,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,...Ke("arrow")})]})})}),S.cloneElement(r,Oe.getReferenceProps({onClick:B,onMouseEnter:M,onMouseLeave:N,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[o]:xt,className:kt(v,r.props.className),...r.props}))]})});Qe.classes=Vh;Qe.displayName="@mantine/core/Tooltip";Qe.Floating=EE;Qe.Group=vE;const Lz={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},TE=fe((e,t)=>{const n=ie("Select",Lz,e),{classNames:r,styles:i,unstyled:o,vars:a,dropdownOpened:s,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:p,onChange:h,data:m,value:y,defaultValue:b,selectFirstOptionOnChange:E,onOptionSubmit:v,comboboxProps:k,readOnly:_,disabled:x,filter:I,limit:R,withScrollArea:z,maxDropdownHeight:A,size:j,searchable:L,rightSection:U,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,name:M,form:N,searchValue:F,defaultSearchValue:w,onSearchChange:q,allowDeselect:X,error:D,rightSectionPointerEvents:be,id:ge,clearable:le,clearButtonProps:Ce,hiddenInputProps:Ie,renderOption:Oe,onClear:Ke,autoComplete:xt,scrollAreaProps:Xt,...ye}=n,Re=S.useMemo(()=>G8(m),[m]),at=S.useMemo(()=>A2(Re),[Re]),Be=jo(ge),[Fe,Ln,pe]=La({value:y,defaultValue:b,finalValue:null,onChange:h}),ht=typeof Fe=="string"?at[Fe]:void 0,He=jP(ht),[Me,St]=La({value:F,defaultValue:w,finalValue:ht?ht.label:"",onChange:q}),mt=L2({opened:s,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),mt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),mt.resetSelectedOption()}}),{resolvedClassNames:Ui,resolvedStyles:G}=wN({props:n,styles:i,classNames:r});S.useEffect(()=>{E&&mt.selectFirstOption()},[E,Fe]),S.useEffect(()=>{y===null&&St(""),typeof y=="string"&&ht&&((He==null?void 0:He.value)!==ht.value||(He==null?void 0:He.label)!==ht.label)&&St(ht.label)},[y,ht]);const W=le&&!!Fe&&!x&&!_&&T.jsx(Ve.ClearButton,{size:j,...Ce,onClear:()=>{Ln(null,null),St(""),Ke==null||Ke()}});return T.jsxs(T.Fragment,{children:[T.jsxs(Ve,{store:mt,__staticSelector:"Select",classNames:Ui,styles:G,unstyled:o,readOnly:_,onOptionSubmit:Q=>{v==null||v(Q);const re=X&&at[Q].value===Fe?null:at[Q],de=re?re.value:null;de!==Fe&&Ln(de,re),!pe&&St(typeof de=="string"&&(re==null?void 0:re.label)||""),mt.closeDropdown()},size:j,...k,children:[T.jsx(Ve.Target,{targetType:L?"input":"button",autoComplete:xt,children:T.jsx(Bi,{id:Be,ref:t,rightSection:U||W||T.jsx(Ve.Chevron,{size:j,error:D,unstyled:o}),rightSectionPointerEvents:be||(W?"all":"none"),...ye,size:j,__staticSelector:"Select",disabled:x,readOnly:_||!L,value:Me,onChange:Q=>{St(Q.currentTarget.value),mt.openDropdown(),E&&mt.selectFirstOption()},onFocus:Q=>{L&&mt.openDropdown(),d==null||d(Q)},onBlur:Q=>{var re;L&&mt.closeDropdown(),St(Fe!=null&&((re=at[Fe])==null?void 0:re.label)||""),f==null||f(Q)},onClick:Q=>{L?mt.openDropdown():mt.toggleDropdown(),p==null||p(Q)},classNames:Ui,styles:G,unstyled:o,pointer:!L,error:D})}),T.jsx(TB,{data:Re,hidden:_||x,filter:I,search:Me,limit:R,hiddenWhenEmpty:!B,withScrollArea:z,maxDropdownHeight:A,filterOptions:L&&(ht==null?void 0:ht.label)!==Me,value:Fe,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,unstyled:o,labelId:ye.label?`${Be}-label`:void 0,"aria-label":ye.label?void 0:ye["aria-label"],renderOption:Oe,scrollAreaProps:Xt})]}),T.jsx(Ve.HiddenInput,{value:Fe,name:M,form:N,disabled:x,...Ie})]})});TE.classes={...Bi.classes,...Ve.classes};TE.displayName="@mantine/core/Select";var K2={root:"m_6d731127"};const Pz={gap:"md",align:"stretch",justify:"flex-start"},Bz=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":vc(t),"--stack-align":n,"--stack-justify":r}}),Un=fe((e,t)=>{const n=ie("Stack",Pz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,align:u,justify:c,gap:d,variant:f,...p}=n,h=Pe({name:"Stack",props:n,classes:K2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Bz});return T.jsx(se,{ref:t,...h("root"),variant:f,...p})});Un.classes=K2;Un.displayName="@mantine/core/Stack";const G2=S.createContext(null),zz=G2.Provider,Fz=()=>S.useContext(G2),Hz={},kE=fe((e,t)=>{const{value:n,defaultValue:r,onChange:i,size:o,wrapperProps:a,children:s,readOnly:l,...u}=ie("SwitchGroup",Hz,e),[c,d]=La({value:n,defaultValue:r,finalValue:[],onChange:i}),f=p=>{const h=p.currentTarget.value;!l&&d(c.includes(h)?c.filter(m=>m!==h):[...c,h])};return T.jsx(zz,{value:{value:c,onChange:f,size:o},children:T.jsx(zt.Wrapper,{size:o,ref:t,...a,...u,labelElement:"div",__staticSelector:"SwitchGroup",children:T.jsx(bB,{role:"group",children:s})})})});kE.classes=zt.Wrapper.classes;kE.displayName="@mantine/core/SwitchGroup";var Q2={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Uz={labelPosition:"right"},jz=(e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:gr(t),"--switch-height":Je(r,"switch-height"),"--switch-width":Je(r,"switch-width"),"--switch-thumb-size":Je(r,"switch-thumb-size"),"--switch-label-font-size":Je(r,"switch-label-font-size"),"--switch-track-label-padding":Je(r,"switch-track-label-padding"),"--switch-color":n?Mo(n,e):void 0}}),qh=fe((e,t)=>{const n=ie("Switch",Uz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,color:u,label:c,offLabel:d,onLabel:f,id:p,size:h,radius:m,wrapperProps:y,thumbIcon:b,checked:E,defaultChecked:v,onChange:k,labelPosition:_,description:x,error:I,disabled:R,variant:z,rootRef:A,mod:j,...L}=n,U=Fz(),V=h||(U==null?void 0:U.size),H=Pe({name:"Switch",props:n,classes:Q2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:jz}),{styleProps:B,rest:M}=xc(L),N=jo(p),F=U?{checked:U.value.includes(M.value),onChange:U.onChange}:{},[w,q]=La({value:F.checked??E,defaultValue:v,finalValue:!1});return T.jsxs(B2,{...H("root"),__staticSelector:"Switch",__stylesApiProps:n,id:N,size:V,labelPosition:_,label:c,description:x,error:I,disabled:R,bodyElement:"label",labelElement:"span",classNames:r,styles:a,unstyled:s,"data-checked":F.checked||void 0,variant:z,ref:A,mod:j,...B,...y,children:[T.jsx("input",{...M,disabled:R,checked:w,onChange:X=>{var D;U?(D=F.onChange)==null||D.call(F,X):k==null||k(X),q(X.currentTarget.checked)},id:N,ref:t,type:"checkbox",role:"switch",...H("input")}),T.jsxs(se,{"aria-hidden":"true",mod:{error:I,"label-position":_,"without-labels":!f&&!d},...H("track"),children:[T.jsx(se,{component:"span",mod:"reduce-motion",...H("thumb"),children:b}),T.jsx("span",{...H("trackLabel"),children:w?f:d})]})]})});qh.classes={...Q2,...gB};qh.displayName="@mantine/core/Switch";qh.Group=kE;const $z={},Ea=fe((e,t)=>{const n=ie("TextInput",$z,e);return T.jsx(Bi,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Ea.classes=Bi.classes;Ea.displayName="@mantine/core/TextInput";const Wz="modulepreload",Vz=function(e){return"/"+e},Ok={},qz=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Vz(l),l in Ok)return;Ok[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Wz,u||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},X2=6048e5,Yz=864e5,Ik=Symbol.for("constructDateFrom");function Lo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ik in e?e[Ik](t):e instanceof Date?new e.constructor(t):new Date(t)}function Hr(e,t){return Lo(t||e,e)}let Kz={};function Yh(){return Kz}function Qu(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Hr(e,t==null?void 0:t.in),o=i.getDay(),a=(o=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Rk(e){const t=Hr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Gz(e,...t){const n=Lo.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Mk(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Qz(e,t,n){const[r,i]=Gz(n==null?void 0:n.in,e,t),o=Mk(r),a=Mk(i),s=+o-Rk(o),l=+a-Rk(a);return Math.round((s-l)/Yz)}function Xz(e,t){const n=J2(e,t),r=Lo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Vf(r)}function Jz(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zz(e){return!(!Jz(e)&&typeof e!="number"||isNaN(+Hr(e)))}function e9(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n9=(e,t,n)=>{let r;const i=t9[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a9={date:fg({formats:r9,defaultWidth:"full"}),time:fg({formats:i9,defaultWidth:"full"}),dateTime:fg({formats:o9,defaultWidth:"full"})},s9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l9=(e,t,n,r)=>s9[e];function $l(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const u9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},f9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m9=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},g9={ordinalNumber:m9,era:$l({values:u9,defaultWidth:"wide"}),quarter:$l({values:c9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$l({values:d9,defaultWidth:"wide"}),day:$l({values:f9,defaultWidth:"wide"}),dayPeriod:$l({values:p9,defaultWidth:"wide",formattingValues:h9,defaultFormattingWidth:"wide"})};function Wl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?y9(s,d=>d.test(a)):b9(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function b9(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y9(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const v9=/^(\d+)(th|st|nd|rd)?/i,T9=/\d+/i,k9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},x9={any:[/^b/i,/^(a|c)/i]},S9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w9={any:[/1/i,/2/i,/3/i,/4/i]},_9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},C9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},I9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},R9={ordinalNumber:E9({matchPattern:v9,parsePattern:T9,valueCallback:e=>parseInt(e,10)}),era:Wl({matchPatterns:k9,defaultMatchWidth:"wide",parsePatterns:x9,defaultParseWidth:"any"}),quarter:Wl({matchPatterns:S9,defaultMatchWidth:"wide",parsePatterns:w9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wl({matchPatterns:_9,defaultMatchWidth:"wide",parsePatterns:C9,defaultParseWidth:"any"}),day:Wl({matchPatterns:N9,defaultMatchWidth:"wide",parsePatterns:A9,defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:O9,defaultMatchWidth:"any",parsePatterns:I9,defaultParseWidth:"any"})},M9={code:"en-US",formatDistance:n9,formatLong:a9,formatRelative:l9,localize:g9,match:R9,options:{weekStartsOn:0,firstWeekContainsDate:1}};function D9(e,t){const n=Hr(e,t==null?void 0:t.in);return Qz(n,e9(n))+1}function L9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Vf(n)-+Xz(n);return Math.round(r/X2)+1}function Z2(e,t){var c,d,f,p;const n=Hr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Yh(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Lo((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Qu(a,t),l=Lo((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=Qu(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function P9(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Z2(e,t),o=Lo((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qu(o,t)}function B9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Qu(n,t)-+P9(n,t);return Math.round(r/X2)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $i={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ue(i,t.length)}},ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dk={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return $i.y(e,t)},Y:function(e,t,n,r){const i=Z2(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=J2(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return $i.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=B9(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ue(i,t.length)},I:function(e,t,n){const r=L9(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$i.d(e,t)},D:function(e,t,n){const r=D9(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ue(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ss.noon:r===0?i=ss.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ss.evening:r>=12?i=ss.afternoon:r>=4?i=ss.morning:i=ss.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $i.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$i.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$i.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$i.s(e,t)},S:function(e,t){return $i.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Pk(r);case"XXXX":case"XX":return na(r);case"XXXXX":case"XXX":default:return na(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pk(r);case"xxxx":case"xx":return na(r);case"xxxxx":case"xxx":default:return na(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Lk(r,":");case"OOOO":default:return"GMT"+na(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Lk(r,":");case"zzzz":default:return"GMT"+na(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function Lk(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ue(o,2)}function Pk(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):na(e,t)}function na(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+i+t+o}const Bk=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},z9=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Bk(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Bk(r,t)).replace("{{time}}",eA(i,t))},F9={p:eA,P:z9},H9=/^D+$/,U9=/^Y+$/,j9=["D","DD","YY","YYYY"];function $9(e){return H9.test(e)}function W9(e){return U9.test(e)}function V9(e,t,n){const r=q9(e,t,n);if(console.warn(r),j9.includes(e))throw new RangeError(r)}function q9(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Y9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G9=/^'([^]*?)'?$/,Q9=/''/g,X9=/[a-zA-Z]/;function vb(e,t,n){var c,d,f,p;const r=Yh(),i=r.locale??M9,o=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=Hr(e,n==null?void 0:n.in);if(!Zz(s))throw new RangeError("Invalid time value");let l=t.match(K9).map(h=>{const m=h[0];if(m==="p"||m==="P"){const y=F9[m];return y(h,i.formatLong)}return h}).join("").match(Y9).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const m=h[0];if(m==="'")return{isToken:!1,value:J9(h)};if(Dk[m])return{isToken:!0,value:h};if(m.match(X9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:h}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(h=>{if(!h.isToken)return h.value;const m=h.value;(W9(m)||$9(m))&&V9(m,t,String(e));const y=Dk[m[0]];return y(s,m,i.localize,u)}).join("")}function J9(e){const t=e.match(G9);return t?t[1].replace(Q9,"'"):e}/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var Z9={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Ze=(e,t,n,r)=>{const i=S.forwardRef(({color:o="currentColor",size:a=24,stroke:s=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...Z9[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:s,stroke:o,...d},[l&&S.createElement("title",{key:"svg-title"},l),...r.map(([p,h])=>S.createElement(p,h)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var eF=Ze("outline","bold","IconBold",[["path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z",key:"svg-0"}],["path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var Tb=Ze("outline","brand-github","IconBrandGithub",[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var tF=Ze("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var nF=Ze("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var rF=Ze("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var iF=Ze("outline","clear-formatting","IconClearFormatting",[["path",{d:"M17 15l4 4m0 -4l-4 4",key:"svg-0"}],["path",{d:"M7 6v-1h11v1",key:"svg-1"}],["path",{d:"M7 19l4 0",key:"svg-2"}],["path",{d:"M13 5l-4 14",key:"svg-3"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var tA=Ze("outline","cloud","IconCloud",[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var oF=Ze("outline","code","IconCode",[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var aF=Ze("outline","columns","IconColumns",[["path",{d:"M4 6l5.5 0",key:"svg-0"}],["path",{d:"M4 10l5.5 0",key:"svg-1"}],["path",{d:"M4 14l5.5 0",key:"svg-2"}],["path",{d:"M4 18l5.5 0",key:"svg-3"}],["path",{d:"M14.5 6l5.5 0",key:"svg-4"}],["path",{d:"M14.5 10l5.5 0",key:"svg-5"}],["path",{d:"M14.5 14l5.5 0",key:"svg-6"}],["path",{d:"M14.5 18l5.5 0",key:"svg-7"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var nA=Ze("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var zk=Ze("outline","edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var Fk=Ze("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var sF=Ze("outline","h-1","IconH1",[["path",{d:"M19 18v-8l-2 2",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var lF=Ze("outline","h-2","IconH2",[["path",{d:"M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var uF=Ze("outline","h-3","IconH3",[["path",{d:"M19 14a2 2 0 1 0 -2 -2",key:"svg-0"}],["path",{d:"M17 16a2 2 0 1 0 2 -2",key:"svg-1"}],["path",{d:"M4 6v12",key:"svg-2"}],["path",{d:"M12 6v12",key:"svg-3"}],["path",{d:"M11 18h2",key:"svg-4"}],["path",{d:"M3 18h2",key:"svg-5"}],["path",{d:"M4 12h8",key:"svg-6"}],["path",{d:"M3 6h2",key:"svg-7"}],["path",{d:"M11 6h2",key:"svg-8"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var cF=Ze("outline","italic","IconItalic",[["path",{d:"M11 5l6 0",key:"svg-0"}],["path",{d:"M7 19l6 0",key:"svg-1"}],["path",{d:"M14 5l-4 14",key:"svg-2"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var dF=Ze("outline","list-numbers","IconListNumbers",[["path",{d:"M11 6h9",key:"svg-0"}],["path",{d:"M11 12h9",key:"svg-1"}],["path",{d:"M12 18h8",key:"svg-2"}],["path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4",key:"svg-3"}],["path",{d:"M6 10v-6l-2 2",key:"svg-4"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var fF=Ze("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var kb=Ze("outline","moon","IconMoon",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var hu=Ze("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var pF=Ze("outline","quote","IconQuote",[["path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-0"}],["path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var rA=Ze("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var xb=Ze("outline","sun","IconSun",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var xE=Ze("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var hF=Ze("outline","typography","IconTypography",[["path",{d:"M4 20l3 0",key:"svg-0"}],["path",{d:"M14 20l7 0",key:"svg-1"}],["path",{d:"M6.9 15l6.9 0",key:"svg-2"}],["path",{d:"M10.2 6.3l5.8 13.7",key:"svg-3"}],["path",{d:"M5 20l6 -16l2 0l7 16",key:"svg-4"}]]);/**
+ * @license @tabler/icons-react v3.22.0 - MIT
+ *
+ * This source code is licensed under the MIT license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var iA=Ze("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);function Hk(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function oA(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bF={};function Uk(e,t){return(bF.jsx?gF:mF).test(e)}const yF=/[ \t\n\f\r]/g;function EF(e){return typeof e=="object"?e.type==="text"?jk(e.value):!1:jk(e)}function jk(e){return e.replace(yF,"")===""}let Mc=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mc.prototype.property={};Mc.prototype.normal={};Mc.prototype.space=null;function aA(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&SF.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Wk,CF);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Wk.test(o)){let a=o.replace(wF,_F);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=SE}return new i(r,t)}function _F(e){return"-"+e.toLowerCase()}function CF(e){return e.charAt(1).toUpperCase()}const NF={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"},Dc=aA([uA,lA,fA,pA,kF],"html"),qo=aA([uA,lA,fA,pA,xF],"svg");function Vk(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function hA(e){return e.join(" ").trim()}var mA={},qk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,AF=/\n/g,OF=/^\s*/,IF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,RF=/^:\s*/,MF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,DF=/^[;\s]*/,LF=/^\s+|\s+$/g,PF=`
+`,Yk="/",Kk="*",ia="",BF="comment",zF="declaration",FF=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(AF);m&&(n+=m.length);var y=h.lastIndexOf(PF);r=~y?h.length-y:r+h.length}function o(){var h={line:n,column:r};return function(m){return m.position=new a(h),u(),m}}function a(h){this.start=h,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var y=m[0];return i(y),e=e.slice(y.length),m}}function u(){l(OF)}function c(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=o();if(!(Yk!=e.charAt(0)||Kk!=e.charAt(1))){for(var m=2;ia!=e.charAt(m)&&(Kk!=e.charAt(m)||Yk!=e.charAt(m+1));)++m;if(m+=2,ia===e.charAt(m-1))return s("End of comment missing");var y=e.slice(2,m-2);return r+=2,i(y),e=e.slice(m),r+=2,h({type:BF,comment:y})}}function f(){var h=o(),m=l(IF);if(m){if(d(),!l(RF))return s("property missing ':'");var y=l(MF),b=h({type:zF,property:Gk(m[0].replace(qk,ia)),value:y?Gk(y[0].replace(qk,ia)):ia});return l(DF),b}}function p(){var h=[];c(h);for(var m;m=f();)m!==!1&&(h.push(m),c(h));return h}return u(),p()};function Gk(e){return e?e.replace(LF,ia):ia}var HF=Av&&Av.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mA,"__esModule",{value:!0});var Qk=mA.default=jF,UF=HF(FF);function jF(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,UF.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}const $F=Qk.default||Qk,Gh=gA("end"),ci=gA("start");function gA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function WF(e){const t=ci(e),n=Gh(e);if(t&&n)return{start:t,end:n}}function mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xk(e.position):"start"in e||"end"in e?Xk(e):"line"in e||"column"in e?wb(e):""}function wb(e){return Jk(e&&e.line)+":"+Jk(e&&e.column)}function Xk(e){return wb(e&&e.start)+"-"+wb(e&&e.end)}function Jk(e){return e&&typeof e=="number"?e:1}class sn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}sn.prototype.file="";sn.prototype.name="";sn.prototype.reason="";sn.prototype.message="";sn.prototype.stack="";sn.prototype.column=void 0;sn.prototype.line=void 0;sn.prototype.ancestors=void 0;sn.prototype.cause=void 0;sn.prototype.fatal=void 0;sn.prototype.place=void 0;sn.prototype.ruleId=void 0;sn.prototype.source=void 0;const wE={}.hasOwnProperty,VF=new Map,qF=/[A-Z]/g,YF=/-([a-z])/g,KF=new Set(["table","tbody","thead","tfoot","tr"]),GF=new Set(["td","th"]),bA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=i7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=r7(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qo:Dc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=yA(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function yA(e,t,n){if(t.type==="element")return XF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return JF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return e7(e,t,n);if(t.type==="mdxjsEsm")return ZF(e,t);if(t.type==="root")return t7(e,t,n);if(t.type==="text")return n7(e,t)}function XF(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=vA(e,t.tagName,!1),a=o7(e,t);let s=CE(e,t);return KF.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!EF(l):!0})),EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function JF(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ju(e,t.position)}function ZF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ju(e,t.position)}function e7(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:vA(e,t.name,!0),a=a7(e,t),s=CE(e,t);return EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function t7(e,t,n){const r={};return _E(r,CE(e,t)),e.create(t,e.Fragment,r,n)}function n7(e,t){return t.value}function EA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _E(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function r7(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function i7(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=ci(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function o7(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wE.call(t.properties,i)){const o=s7(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&GF.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ju(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Ju(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function CE(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:VF;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(Wn(e,e.length,0,t),e):t}const tx={}.hasOwnProperty;function kA(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fn=Yo(/[A-Za-z]/),rn=Yo(/[\dA-Za-z]/),b7=Yo(/[#-'*+\--9=?A-Z^-~]/);function qf(e){return e!==null&&(e<32||e===127)}const _b=Yo(/\d/),y7=Yo(/[\dA-Fa-f]/),E7=Yo(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Qh=Yo(new RegExp("\\p{P}|\\p{S}","u")),za=Yo(/\s/);function Yo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function wl(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function De(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ne(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ne(l)&&o++a))return;const I=t.events.length;let R=I,z,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){A=t.events[R][1].end;break}z=!0}for(b(r),x=I;xv;){const _=n[k];t.containerState=_[1],_[0].exit.call(t,e)}n.length=v}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function S7(e,t,n){return De(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ol(e){if(e===null||Ye(e)||za(e))return 1;if(Qh(e))return 2}function Xh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};rx(d,-l),rx(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=or(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=or(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=or(u,Xh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=or(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=or(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Wn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ne(x)?De(e,E,"linePrefix",o+1)(x):E(x)}function E(x){return x===null||he(x)?e.check(ix,m,k)(x):(e.enter("codeFlowValue"),v(x))}function v(x){return x===null||he(x)?(e.exit("codeFlowValue"),E(x)):(e.consume(x),v)}function k(x){return e.exit("codeFenced"),t(x)}function _(x,I,R){let z=0;return A;function A(H){return x.enter("lineEnding"),x.consume(H),x.exit("lineEnding"),j}function j(H){return x.enter("codeFencedFence"),Ne(H)?De(x,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):L(H)}function L(H){return H===s?(x.enter("codeFencedFenceSequence"),U(H)):R(H)}function U(H){return H===s?(z++,x.consume(H),U):z>=a?(x.exit("codeFencedFenceSequence"),Ne(H)?De(x,V,"whitespace")(H):V(H)):R(H)}function V(H){return H===null||he(H)?(x.exit("codeFencedFence"),I(H)):R(H)}}}function P7(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const mg={name:"codeIndented",tokenize:z7},B7={partial:!0,tokenize:F7};function z7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),De(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):he(u)?e.attempt(B7,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||he(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function F7(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):De(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):he(a)?i(a):n(a)}}const H7={name:"codeText",previous:j7,resolve:U7,tokenize:$7};function U7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=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 tthis.left.length)return this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse();const i=this.left.slice(t);return i.push(...this.right.slice(this.right.length-r+this.left.length).reverse()),i}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Vl(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Vl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Vl(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=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function NA(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),f):b===null||b===32||b===41||qf(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function f(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||he(b)?n(b):(e.consume(b),b===92?h:p)}function h(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function m(b){return!c&&(b===null||b===41||Ye(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):c999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!Ne(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function OA(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),De(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function gu(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ne(i)?De(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const X7={name:"definition",tokenize:Z7},J7={partial:!0,tokenize:eH};function Z7(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return AA.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Mr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ye(p)?gu(e,u)(p):u(p)}function u(p){return NA(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(J7,d,d)(p)}function d(p){return Ne(p)?De(e,f,"whitespace")(p):f(p)}function f(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function eH(e,t,n){return r;function r(s){return Ye(s)?gu(e,i)(s):n(s)}function i(s){return OA(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Ne(s)?De(e,a,"whitespace")(s):a(s)}function a(s){return s===null||he(s)?t(s):n(s)}}const tH={name:"hardBreakEscape",tokenize:nH};function nH(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return he(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const rH={name:"headingAtx",resolve:iH,tokenize:oH};function iH(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function oH(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||Ye(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Ne(c)?De(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const aH=["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"],ax=["pre","script","style","textarea"],sH={concrete:!0,name:"htmlFlow",resolveTo:cH,tokenize:dH},lH={partial:!0,tokenize:pH},uH={partial:!0,tokenize:fH};function cH(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 dH(e,t,n){const r=this;let i,o,a,s,l;return u;function u(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),f):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:w):fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function f(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,s=0,h):fn(D)?(e.consume(D),i=4,r.interrupt?t:w):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:w):n(D)}function h(D){const be="CDATA[";return D===be.charCodeAt(s++)?(e.consume(D),s===be.length?r.interrupt?t:L:h):n(D)}function m(D){return fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function y(D){if(D===null||D===47||D===62||Ye(D)){const be=D===47,ge=a.toLowerCase();return!be&&!o&&ax.includes(ge)?(i=1,r.interrupt?t(D):L(D)):aH.includes(a.toLowerCase())?(i=6,be?(e.consume(D),b):r.interrupt?t(D):L(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?E(D):v(D))}return D===45||rn(D)?(e.consume(D),a+=String.fromCharCode(D),y):n(D)}function b(D){return D===62?(e.consume(D),r.interrupt?t:L):n(D)}function E(D){return Ne(D)?(e.consume(D),E):A(D)}function v(D){return D===47?(e.consume(D),A):D===58||D===95||fn(D)?(e.consume(D),k):Ne(D)?(e.consume(D),v):A(D)}function k(D){return D===45||D===46||D===58||D===95||rn(D)?(e.consume(D),k):_(D)}function _(D){return D===61?(e.consume(D),x):Ne(D)?(e.consume(D),_):v(D)}function x(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,I):Ne(D)?(e.consume(D),x):R(D)}function I(D){return D===l?(e.consume(D),l=null,z):D===null||he(D)?n(D):(e.consume(D),I)}function R(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?_(D):(e.consume(D),R)}function z(D){return D===47||D===62||Ne(D)?v(D):n(D)}function A(D){return D===62?(e.consume(D),j):n(D)}function j(D){return D===null||he(D)?L(D):Ne(D)?(e.consume(D),j):n(D)}function L(D){return D===45&&i===2?(e.consume(D),B):D===60&&i===1?(e.consume(D),M):D===62&&i===4?(e.consume(D),q):D===63&&i===3?(e.consume(D),w):D===93&&i===5?(e.consume(D),F):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lH,X,U)(D)):D===null||he(D)?(e.exit("htmlFlowData"),U(D)):(e.consume(D),L)}function U(D){return e.check(uH,V,X)(D)}function V(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return D===null||he(D)?U(D):(e.enter("htmlFlowData"),L(D))}function B(D){return D===45?(e.consume(D),w):L(D)}function M(D){return D===47?(e.consume(D),a="",N):L(D)}function N(D){if(D===62){const be=a.toLowerCase();return ax.includes(be)?(e.consume(D),q):L(D)}return fn(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),N):L(D)}function F(D){return D===93?(e.consume(D),w):L(D)}function w(D){return D===62?(e.consume(D),q):D===45&&i===2?(e.consume(D),w):L(D)}function q(D){return D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),q)}function X(D){return e.exit("htmlFlow"),t(D)}}function fH(e,t,n){const r=this;return i;function i(a){return he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function pH(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lc,t,n)}}const hH={name:"htmlText",tokenize:mH};function mH(e,t,n){const r=this;let i,o,a;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),_):w===63?(e.consume(w),v):fn(w)?(e.consume(w),R):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),o=0,h):fn(w)?(e.consume(w),E):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(e.consume(w),f):he(w)?(a=d,M(w)):(e.consume(w),d)}function f(w){return w===45?(e.consume(w),p):d(w)}function p(w){return w===62?B(w):w===45?f(w):d(w)}function h(w){const q="CDATA[";return w===q.charCodeAt(o++)?(e.consume(w),o===q.length?m:h):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),y):he(w)?(a=m,M(w)):(e.consume(w),m)}function y(w){return w===93?(e.consume(w),b):m(w)}function b(w){return w===62?B(w):w===93?(e.consume(w),b):m(w)}function E(w){return w===null||w===62?B(w):he(w)?(a=E,M(w)):(e.consume(w),E)}function v(w){return w===null?n(w):w===63?(e.consume(w),k):he(w)?(a=v,M(w)):(e.consume(w),v)}function k(w){return w===62?B(w):v(w)}function _(w){return fn(w)?(e.consume(w),x):n(w)}function x(w){return w===45||rn(w)?(e.consume(w),x):I(w)}function I(w){return he(w)?(a=I,M(w)):Ne(w)?(e.consume(w),I):B(w)}function R(w){return w===45||rn(w)?(e.consume(w),R):w===47||w===62||Ye(w)?z(w):n(w)}function z(w){return w===47?(e.consume(w),B):w===58||w===95||fn(w)?(e.consume(w),A):he(w)?(a=z,M(w)):Ne(w)?(e.consume(w),z):B(w)}function A(w){return w===45||w===46||w===58||w===95||rn(w)?(e.consume(w),A):j(w)}function j(w){return w===61?(e.consume(w),L):he(w)?(a=j,M(w)):Ne(w)?(e.consume(w),j):z(w)}function L(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,U):he(w)?(a=L,M(w)):Ne(w)?(e.consume(w),L):(e.consume(w),V)}function U(w){return w===i?(e.consume(w),i=void 0,H):w===null?n(w):he(w)?(a=U,M(w)):(e.consume(w),U)}function V(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ye(w)?z(w):(e.consume(w),V)}function H(w){return w===47||w===62||Ye(w)?z(w):n(w)}function B(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function M(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return Ne(w)?De(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):F(w)}function F(w){return e.enter("htmlTextData"),a(w)}}const OE={name:"labelEnd",resolveAll:EH,resolveTo:vH,tokenize:TH},gH={tokenize:kH},bH={tokenize:xH},yH={tokenize:SH};function EH(e){let t=-1;const n=[];for(;++t=3&&(u===null||he(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ne(u)?De(e,s,"whitespace")(u):s(u))}}const kn={continuation:{tokenize:DH},exit:PH,name:"list",tokenize:MH},IH={partial:!0,tokenize:BH},RH={partial:!0,tokenize:LH};function MH(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_b(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(rf,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return _b(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Lc,r.interrupt?n:c,e.attempt(IH,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return Ne(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function DH(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lc,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Ne(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(RH,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(e,e.attempt(kn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function LH(e,t,n){const r=this;return De(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function PH(e){e.exit(this.containerState.type)}function BH(e,t,n){const r=this;return De(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Ne(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const sx={name:"setextUnderline",resolveTo:zH,tokenize:FH};function zH(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function FH(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ne(u)?De(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const HH={tokenize:UH};function UH(e){const t=this,n=e.attempt(Lc,r,e.attempt(this.parser.constructs.flowInitial,i,De(e,e.attempt(this.parser.constructs.flow,i,e.attempt(q7,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jH={resolveAll:RA()},$H=IA("string"),WH=IA("text");function IA(e){return{resolveAll:RA(e==="text"?VH:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function iU(e,t){let n=-1;const r=[];let i;for(;++n0){const $e=Q.tokenStack[Q.tokenStack.length-1];($e[1]||ux).call(Q,void 0,$e[0])}for(W.position={start:Wi(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Wi(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function TU(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function LA(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function xU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={src:wl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function SU(e,t){const n={src:wl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wU(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _U(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={href:wl(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function CU(e,t){const n={href:wl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NU(e,t,n){const r=e.all(t),i=n?AU(n):PA(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function OU(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=ci(t.children[1]),l=Gh(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function LU(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fx(t.slice(i),i>0,!1)),o.join("")}function fx(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===cx||o===dx;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===cx||o===dx;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zU(e,t){const n={type:"text",value:BU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const HU={blockquote:mU,break:gU,code:bU,delete:yU,emphasis:EU,footnoteReference:vU,heading:TU,html:kU,imageReference:xU,image:SU,inlineCode:wU,linkReference:_U,link:CU,listItem:NU,list:OU,paragraph:IU,root:RU,strong:MU,table:DU,tableCell:PU,tableRow:LU,text:zU,thematicBreak:FU,toml:gd,yaml:gd,definition:gd,footnoteDefinition:gd};function gd(){}const BA=-1,Jh=0,Yf=1,Kf=2,IE=3,RE=4,ME=5,DE=6,zA=7,FA=8,px=typeof self=="object"?self:globalThis,UU=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Jh:case BA:return n(a,i);case Yf:{const s=n([],i);for(const l of a)s.push(r(l));return s}case Kf:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case IE:return n(new Date(a),i);case RE:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case ME:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case DE:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case zA:{const{name:s,message:l}=a;return n(new px[s](l),i)}case FA:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new px[o](a),i)};return r},hx=e=>UU(new Map,e)(0),ls="",{toString:jU}={},{keys:$U}=Object,ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Jh,t];const n=jU.call(e).slice(8,-1);switch(n){case"Array":return[Yf,ls];case"Object":return[Kf,ls];case"Date":return[IE,ls];case"RegExp":return[RE,ls];case"Map":return[ME,ls];case"Set":return[DE,ls]}return n.includes("Array")?[Yf,n]:n.includes("Error")?[zA,n]:[Kf,n]},bd=([e,t])=>e===Jh&&(t==="function"||t==="symbol"),WU=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=ql(a);switch(s){case Jh:{let c=a;switch(l){case"bigint":s=FA,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([BA],a)}return i([s,c],a)}case Yf:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const f of a)c.push(o(f));return d}case Kf:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const f of $U(a))(e||!bd(ql(a[f])))&&c.push([o(f),o(a[f])]);return d}case IE:return i([s,a.toISOString()],a);case RE:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case ME:{const c=[],d=i([s,c],a);for(const[f,p]of a)(e||!(bd(ql(f))||bd(ql(p))))&&c.push([o(f),o(p)]);return d}case DE:{const c=[],d=i([s,c],a);for(const f of a)(e||!bd(ql(f)))&&c.push(o(f));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},mx=(e,{json:t,lossy:n}={})=>{const r=[];return WU(!(t||n),!!t,new Map,r)(e),r},al=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hx(mx(e,t)):structuredClone(e):(e,t)=>hx(mx(e,t));function VU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||VU,r=e.options.footnoteBackLabel||qU,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&h.push({type:"text",value:" "});let E=typeof n=="string"?n:n(l,p);typeof E=="string"&&(E={type:"text",value:E}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...h)}else c.push(...h);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...al(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
+`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
+`}]}}const Pc=function(e){if(e==null)return XU;if(typeof e=="function")return Zh(e);if(typeof e=="object")return Array.isArray(e)?KU(e):GU(e);if(typeof e=="string")return QU(e);throw new Error("Expected function, string, or object as test")};function KU(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=HA,h,m,y;if((!t||o(l,u,c[c.length-1]||void 0))&&(p=tj(n(l,c)),p[0]===Nb))return p;if("children"in l&&l.children){const b=l;if(b.children&&p[0]!==ej)for(m=(r?b.children.length:-1)+a,y=c.concat(b);m>-1&&m0&&n.push({type:"text",value:`
+`}),n}function gx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bx(e,t){const n=rj(e,t),r=n.one(e,void 0),i=YU(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
+`},i),o}function lj(e,t){return e&&"run"in e?async function(n,r){const i=bx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bx(n,{file:r,...e||t})}}function yx(e){if(e)throw e}var of=Object.prototype.hasOwnProperty,jA=Object.prototype.toString,Ex=Object.defineProperty,vx=Object.getOwnPropertyDescriptor,Tx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jA.call(t)==="[object Array]"},kx=function(t){if(!t||jA.call(t)!=="[object Object]")return!1;var n=of.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||of.call(t,i)},xx=function(t,n){Ex&&n.name==="__proto__"?Ex(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Sx=function(t,n){if(n==="__proto__")if(of.call(t,n)){if(vx)return vx(t,n).value}else return;return t[n]},uj=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Vr={basename:fj,dirname:pj,extname:hj,join:mj,sep:"/"};function fj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zc(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function pj(e){if(zc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hj(e){zc(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function mj(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bj(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function zc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yj={cwd:Ej};function Ej(){return"/"}function Ib(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vj(e){if(typeof e=="string")e=new URL(e);else if(!Ib(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tj(e)}function Tj(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const m=r[f][1];Ob(m)&&Ob(p)&&(p=bg(!0,m,p)),r[f]=[u,p,...h]}}}}const wj=new LE().freeze();function Tg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _x(e){if(!Ob(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yd(e){return _j(e)?e:new $A(e)}function _j(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cj(e){return typeof e=="string"||Nj(e)}function Nj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Aj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nx=[],Ax={allowDangerousHtml:!0},Oj=/^(https?|ircs?|mailto|xmpp)$/i,Ij=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rj(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Nx,l=e.remarkPlugins||Nx,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ax}:Ax,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Mj,p=wj().use(hU).use(l).use(lj,u).use(s),h=new $A;typeof r=="string"&&(h.value=r);for(const E of Ij)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+Aj+E.id,void 0);const m=p.parse(h);let y=p.runSync(m,h);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),Bc(y,b),QF(y,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function b(E,v,k){if(E.type==="raw"&&k&&typeof v=="number")return c?k.children.splice(v,1):k.children[v]={type:"text",value:E.value},v;if(E.type==="element"){let _;for(_ in hg)if(Object.hasOwn(hg,_)&&Object.hasOwn(E.properties,_)){const x=E.properties[_],I=hg[_];(I===null||I.includes(E.tagName))&&(E.properties[_]=f(String(x||""),_,E))}}if(E.type==="element"){let _=t?!t.includes(E.tagName):a?a.includes(E.tagName):!1;if(!_&&n&&typeof v=="number"&&(_=!n(E,v,k)),_&&k&&typeof v=="number")return d&&E.children?k.children.splice(v,1,...E.children):k.children.splice(v,1),v}}}function Mj(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Oj.test(e.slice(0,t))?e:""}function Ox(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Dj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lj(e,t,n){const i=Pc((n||{}).ignore||[]),o=Pj(t);let a=-1;for(;++a0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=k+1:(h!==k&&E.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(x)?E.push(...x):x&&E.push(x),h=k+v[0].length,b=!0),!f.global)break;v=f.exec(u.value)}return b?(h?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ox(e,"(");let o=Ox(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function WA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||za(n)||Qh(n))&&(!t||n!==47)}VA.peek=s$;function Xj(){return{enter:{gfmFootnoteDefinition:Zj,gfmFootnoteDefinitionLabelString:e$,gfmFootnoteCall:r$,gfmFootnoteCallString:i$},exit:{gfmFootnoteDefinition:n$,gfmFootnoteDefinitionLabelString:t$,gfmFootnoteCall:a$,gfmFootnoteCallString:o$}}}function Jj(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l$,footnoteReference:VA}}}function Zj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function e$(){this.buffer()}function t$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function n$(e){this.exit(e)}function r$(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i$(){this.buffer()}function o$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function a$(e){this.exit(e)}function VA(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function s$(){return"["}function l$(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),u$)),a(),o}function u$(e,t,n){return t===0?e:(n?"":" ")+e}const c$=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qA.peek=m$;function d$(){return{canContainEols:["delete"],enter:{strikethrough:p$},exit:{strikethrough:h$}}}function f$(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c$}],handlers:{delete:qA}}}function p$(e){this.enter({type:"delete",children:[]},e)}function h$(e){this.exit(e)}function qA(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function m$(){return"~"}function g$(e){return e.length}function b$(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||g$,o=[],a=[],s=[],l=[];let u=0,c=-1;for(;++cu&&(u=e[c].length);++bl[b])&&(l[b]=v)}m.push(E)}a[c]=m,s[c]=y}let d=-1;if(typeof r=="object"&&"length"in r)for(;++dl[d]&&(l[d]=E),p[d]=E),f[d]=v}a.splice(1,0,f),s.splice(1,0,p),c=-1;const h=[];for(;++c "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),v$);return i(),a}function v$(e,t,n){return">"+(n?"":" ")+e}function T$(e,t){return Mx(e,t.inConstruct,!0)&&!Mx(e,t.notInConstruct,!1)}function Mx(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function x$(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function S$(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function w$(e,t,n,r){const i=S$(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(x$(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(o,_$);return d(),f}const s=n.createTracker(r),l=i.repeat(Math.max(k$(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:`
+`,encode:["`"],...s.current()})),d()}return c+=s.move(`
+`),o&&(c+=s.move(o+`
+`)),c+=s.move(l),u(),c}function _$(e,t,n){return(n?"":" ")+e}function PE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C$(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
+`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function N$(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Zu(e){return""+e.toString(16).toUpperCase()+";"}function Gf(e,t,n){const r=ol(e),i=ol(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}KA.peek=A$;function KA(e,t,n,r){const i=N$(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function A$(e,t,n){return n.options.emphasis||"*"}function O$(e,t){let n=!1;return Bc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Nb}),!!((!e.depth||e.depth<3)&&NE(e)&&(t.options.setext||n))}function I$(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(O$(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:`
+`,after:`
+`});return d(),c(),f+`
+`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
+`))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
+`,...o.current()});return/^[\t ]/.test(u)&&(u=Zu(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}GA.peek=R$;function GA(e){return e.value||""}function R$(){return"<"}QA.peek=M$;function QA(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function M$(){return"!"}XA.peek=D$;function XA(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function D$(){return"!"}JA.peek=L$;function JA(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}eO.peek=P$;function eO(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(ZA(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function P$(e,t,n){return ZA(e,n)?"<":"["}tO.peek=B$;function tO(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function B$(){return"["}function BE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function z$(e){const t=BE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function F$(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nO(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function H$(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?F$(n):BE(n);const s=e.ordered?a==="."?")":".":z$(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),nO(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,f,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}function $$(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const W$=Pc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function V$(e,t,n,r){return(e.children.some(function(a){return W$(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function q$(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rO.peek=Y$;function rO(e,t,n,r){const i=q$(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function Y$(e,t,n){return n.options.strong||"*"}function K$(e,t,n,r){return n.safe(e.value,r)}function G$(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Q$(e,t,n){const r=(nO(n)+(n.options.ruleSpaces?" ":"")).repeat(G$(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iO={blockquote:E$,break:Dx,code:w$,definition:C$,emphasis:KA,hardBreak:Dx,heading:I$,html:GA,image:QA,imageReference:XA,inlineCode:JA,link:eO,linkReference:tO,list:H$,listItem:j$,paragraph:$$,root:V$,strong:rO,text:K$,thematicBreak:Q$};function X$(){return{enter:{table:J$,tableData:Lx,tableHeader:Lx,tableRow:eW},exit:{codeText:tW,table:Z$,tableData:Cg,tableHeader:Cg,tableRow:Cg}}}function J$(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Z$(e){this.exit(e),this.data.inTable=void 0}function eW(e){this.enter({type:"tableRow",children:[]},e)}function Cg(e){this.exit(e)}function Lx(e){this.enter({type:"tableCell",children:[]},e)}function tW(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nW));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nW(e,t){return t==="|"?t:e}function rW(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
+`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,m,y){return u(c(p,m,y),p.align)}function s(p,h,m,y){const b=d(p,m,y),E=u([b]);return E.slice(0,E.indexOf(`
+`))}function l(p,h,m,y){const b=m.enter("tableCell"),E=m.enter("phrasing"),v=m.containerPhrasing(p,{...y,before:o,after:o});return E(),b(),v}function u(p,h){return b$(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(p,h,m){const y=p.children;let b=-1;const E=[],v=h.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const TW={tokenize:AW,partial:!0};function kW(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_W,continuation:{tokenize:CW},exit:NW}},text:{91:{name:"gfmFootnoteCall",tokenize:wW},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xW,resolveTo:SW}}}}function xW(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Mr(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function SW(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wW(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Mr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function _W(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||Ye(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=Mr(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ye(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),De(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function CW(e,t,n){return e.check(Lc,t,e.attempt(TW,t,n))}function NW(e){e.exit("gfmFootnoteDefinition")}function AW(e,t,n){const r=this;return De(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function OW(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(h):(a.consume(h),d++,p);if(d<2&&!n)return l(h);const y=a.exit("strikethroughSequenceTemporary"),b=ol(h);return y._open=!b||b===2&&!!m,y._close=!m||m===2&&!!b,s(h)}}}class IW{constructor(){this.map=[]}add(t,n,r){RW(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function RW(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const V=r.events[j][1].type;if(V==="lineEnding"||V==="linePrefix")j--;else break}const L=j>-1?r.events[j][1].type:null,U=L==="tableHead"||L==="tableRow"?x:l;return U===x&&r.parser.lazy[r.now().line]?n(A):U(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,o+=1),c(A)}function c(A){return A===null?n(A):he(A)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):Ne(A)?De(e,c,"whitespace")(A):(o+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(A)))}function d(A){return A===null||A===124||Ye(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?f:d)}function f(A){return A===92||A===124?(e.consume(A),d):d(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,Ne(A)?De(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):h(A))}function h(A){return A===45||A===58?y(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),m):_(A)}function m(A){return Ne(A)?De(e,y,"whitespace")(A):y(A)}function y(A){return A===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(o+=1,b(A)):A===null||he(A)?k(A):_(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),E(A)):_(A)}function E(A){return A===45?(e.consume(A),E):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(A))}function v(A){return Ne(A)?De(e,k,"whitespace")(A):k(A)}function k(A){return A===124?h(A):A===null||he(A)?!a||i!==o?_(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):_(A)}function _(A){return n(A)}function x(A){return e.enter("tableRow"),I(A)}function I(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),I):A===null||he(A)?(e.exit("tableRow"),t(A)):Ne(A)?De(e,I,"whitespace")(A):(e.enter("data"),R(A))}function R(A){return A===null||A===124||Ye(A)?(e.exit("data"),I(A)):(e.consume(A),A===92?z:R)}function z(A){return A===92||A===124?(e.consume(A),R):R(A)}}function PW(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const f=new IW;for(;++nn[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},hs(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Bx(e,t,n,r,i){const o=[],a=hs(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function hs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const BW={name:"tasklistCheck",tokenize:FW};function zW(){return{text:{91:BW}}}function FW(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Ye(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):Ne(l)?e.check({tokenize:HW},t,n)(l):n(l)}}function HW(e,t,n){return De(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function UW(e){return kA([fW(),kW(),OW(e),DW(),zW()])}const jW={};function $W(e){const t=this,n=e||jW,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(UW(n)),o.push(lW()),a.push(uW(n))}const zx=/[#.]/g;function WW(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&o<=t.length){let a=0;for(;;){let s=n[a];if(s===void 0){const l=Hx(t,n[a-1]);s=l===-1?t.length+1:l+1,n[a]=s}if(s>o)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o};a++}}}function i(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length1?n[o.line-2]:0)+o.column-1;if(a=55296&&e<=57343}function gV(e){return e>=56320&&e<=57343}function bV(e,t){return(e-55296)*1024+9216+t}function yO(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function EO(e){return e>=64976&&e<=65007||mV.has(e)}var K;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K||(K={}));const yV=65536;class EV{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yV,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:o}=this,a=i+n,s=o+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(gV(n))return this.pos++,this._addGap(),bV(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(K.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bO(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){yO(t)?this._err(K.controlCharacterInInputStream):EO(t)&&this._err(K.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const TO=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vV=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ng;const TV=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),kV=(Ng=String.fromCodePoint)!==null&&Ng!==void 0?Ng:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xV(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TV.get(e))!==null&&t!==void 0?t:e}var Dt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Dt||(Dt={}));const SV=32;var po;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(po||(po={}));function Lb(e){return e>=Dt.ZERO&&e<=Dt.NINE}function wV(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_F||e>=Dt.LOWER_A&&e<=Dt.LOWER_F}function _V(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_Z||e>=Dt.LOWER_A&&e<=Dt.LOWER_Z||Lb(e)}function CV(e){return e===Dt.EQUALS||_V(e)}var At;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(At||(At={}));var Ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ti||(Ti={}));class kO{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=At.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ti.Strict}startEntity(t){this.decodeMode=t,this.state=At.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case At.EntityStart:return t.charCodeAt(n)===Dt.NUM?(this.state=At.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=At.NamedEntity,this.stateNamedEntity(t,n));case At.NumericStart:return this.stateNumericStart(t,n);case At.NumericDecimal:return this.stateNumericDecimal(t,n);case At.NumericHex:return this.stateNumericHex(t,n);case At.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SV)===Dt.LOWER_X?(this.state=At.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=At.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Dt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ti.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&po.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~po.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case At.NamedEntity:return this.result!==0&&(this.decodeMode!==Ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case At.NumericDecimal:return this.emitNumericEntity(0,2);case At.NumericHex:return this.emitNumericEntity(0,3);case At.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case At.EntityStart:return 0}}}function xO(e){let t="";const n=new kO(e,r=>t+=kV(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function NV(e,t,n,r){const i=(t&po.BRANCH_LENGTH)>>7,o=t&po.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}xO(TO);xO(vV);var J;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));var va;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(va||(va={}));var ar;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ar||(ar={}));var $;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})($||($={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const AV=new Map([[$.A,g.A],[$.ADDRESS,g.ADDRESS],[$.ANNOTATION_XML,g.ANNOTATION_XML],[$.APPLET,g.APPLET],[$.AREA,g.AREA],[$.ARTICLE,g.ARTICLE],[$.ASIDE,g.ASIDE],[$.B,g.B],[$.BASE,g.BASE],[$.BASEFONT,g.BASEFONT],[$.BGSOUND,g.BGSOUND],[$.BIG,g.BIG],[$.BLOCKQUOTE,g.BLOCKQUOTE],[$.BODY,g.BODY],[$.BR,g.BR],[$.BUTTON,g.BUTTON],[$.CAPTION,g.CAPTION],[$.CENTER,g.CENTER],[$.CODE,g.CODE],[$.COL,g.COL],[$.COLGROUP,g.COLGROUP],[$.DD,g.DD],[$.DESC,g.DESC],[$.DETAILS,g.DETAILS],[$.DIALOG,g.DIALOG],[$.DIR,g.DIR],[$.DIV,g.DIV],[$.DL,g.DL],[$.DT,g.DT],[$.EM,g.EM],[$.EMBED,g.EMBED],[$.FIELDSET,g.FIELDSET],[$.FIGCAPTION,g.FIGCAPTION],[$.FIGURE,g.FIGURE],[$.FONT,g.FONT],[$.FOOTER,g.FOOTER],[$.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[$.FORM,g.FORM],[$.FRAME,g.FRAME],[$.FRAMESET,g.FRAMESET],[$.H1,g.H1],[$.H2,g.H2],[$.H3,g.H3],[$.H4,g.H4],[$.H5,g.H5],[$.H6,g.H6],[$.HEAD,g.HEAD],[$.HEADER,g.HEADER],[$.HGROUP,g.HGROUP],[$.HR,g.HR],[$.HTML,g.HTML],[$.I,g.I],[$.IMG,g.IMG],[$.IMAGE,g.IMAGE],[$.INPUT,g.INPUT],[$.IFRAME,g.IFRAME],[$.KEYGEN,g.KEYGEN],[$.LABEL,g.LABEL],[$.LI,g.LI],[$.LINK,g.LINK],[$.LISTING,g.LISTING],[$.MAIN,g.MAIN],[$.MALIGNMARK,g.MALIGNMARK],[$.MARQUEE,g.MARQUEE],[$.MATH,g.MATH],[$.MENU,g.MENU],[$.META,g.META],[$.MGLYPH,g.MGLYPH],[$.MI,g.MI],[$.MO,g.MO],[$.MN,g.MN],[$.MS,g.MS],[$.MTEXT,g.MTEXT],[$.NAV,g.NAV],[$.NOBR,g.NOBR],[$.NOFRAMES,g.NOFRAMES],[$.NOEMBED,g.NOEMBED],[$.NOSCRIPT,g.NOSCRIPT],[$.OBJECT,g.OBJECT],[$.OL,g.OL],[$.OPTGROUP,g.OPTGROUP],[$.OPTION,g.OPTION],[$.P,g.P],[$.PARAM,g.PARAM],[$.PLAINTEXT,g.PLAINTEXT],[$.PRE,g.PRE],[$.RB,g.RB],[$.RP,g.RP],[$.RT,g.RT],[$.RTC,g.RTC],[$.RUBY,g.RUBY],[$.S,g.S],[$.SCRIPT,g.SCRIPT],[$.SEARCH,g.SEARCH],[$.SECTION,g.SECTION],[$.SELECT,g.SELECT],[$.SOURCE,g.SOURCE],[$.SMALL,g.SMALL],[$.SPAN,g.SPAN],[$.STRIKE,g.STRIKE],[$.STRONG,g.STRONG],[$.STYLE,g.STYLE],[$.SUB,g.SUB],[$.SUMMARY,g.SUMMARY],[$.SUP,g.SUP],[$.TABLE,g.TABLE],[$.TBODY,g.TBODY],[$.TEMPLATE,g.TEMPLATE],[$.TEXTAREA,g.TEXTAREA],[$.TFOOT,g.TFOOT],[$.TD,g.TD],[$.TH,g.TH],[$.THEAD,g.THEAD],[$.TITLE,g.TITLE],[$.TR,g.TR],[$.TRACK,g.TRACK],[$.TT,g.TT],[$.U,g.U],[$.UL,g.UL],[$.SVG,g.SVG],[$.VAR,g.VAR],[$.WBR,g.WBR],[$.XMP,g.XMP]]);function Cl(e){var t;return(t=AV.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const Z=g,OV={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Pb=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);$.STYLE,$.SCRIPT,$.XMP,$.IFRAME,$.NOEMBED,$.NOFRAMES,$.PLAINTEXT;var O;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(O||(O={}));const bt={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function IV(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function tu(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function RV(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function Xi(e){return RV(e)||tu(e)}function jx(e){return Xi(e)||IV(e)}function vd(e){return e+32}function SO(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function $x(e){return SO(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function MV(e){return e===C.NULL?K.nullCharacterReference:e>1114111?K.characterReferenceOutsideUnicodeRange:bO(e)?K.surrogateCharacterReference:EO(e)?K.noncharacterCharacterReference:yO(e)||e===C.CARRIAGE_RETURN?K.controlCharacterReference:null}class DV{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new EV(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kO(TO,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(K.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(K.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=MV(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:_e.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=SO(t)?_e.WHITESPACE_CHARACTER:t===C.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(_e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ti.Attribute:Ti.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case O.DATA:{this._stateData(t);break}case O.RCDATA:{this._stateRcdata(t);break}case O.RAWTEXT:{this._stateRawtext(t);break}case O.SCRIPT_DATA:{this._stateScriptData(t);break}case O.PLAINTEXT:{this._statePlaintext(t);break}case O.TAG_OPEN:{this._stateTagOpen(t);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case O.TAG_NAME:{this._stateTagName(t);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case O.BOGUS_COMMENT:{this._stateBogusComment(t);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case O.COMMENT_START:{this._stateCommentStart(t);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case O.COMMENT:{this._stateComment(t);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case O.COMMENT_END:{this._stateCommentEnd(t);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case O.DOCTYPE:{this._stateDoctype(t);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case O.CDATA_SECTION:{this._stateCdataSection(t);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xi(t))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(K.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xi(t))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(K.missingEndTagName),this.state=O.DATA;break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars(""),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.tagName+=rt;break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(tu(t)?vd(t):t)}}_stateRcdataLessThanSign(t){t===C.SOLIDUS?this.state=O.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Xi(t)?(this.state=O.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars(""),this.state=O.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=O.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=O.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=O.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars(""),this.state=O.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===C.SOLIDUS?this.state=O.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Xi(t)?(this.state=O.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars(""),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars(""),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case C.SOLIDUS:{this.state=O.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=O.SCRIPT_DATA_ESCAPE_START,this._emitChars("");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xi(t)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xi(t)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars(""),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars(""),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Tn.SCRIPT,!1)&&$x(this.preprocessor.peek(Tn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Tn.SCRIPT,!1)&&$x(this.preprocessor.peek(Tn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==J.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(FV,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(zV,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(BV,J.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(qx.has(i))return!1;break}case J.MATHML:{if(Vx.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Qf)}hasInListItemScope(t){return this.hasInDynamicScope(t,LV)}hasInButtonScope(t){return this.hasInDynamicScope(t,PV)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(Pb.has(n))return!0;if(Qf.has(n))return!1;break}case J.SVG:{if(qx.has(n))return!1;break}case J.MATHML:{if(Vx.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Wx.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Wx.has(this.currentTagId);)this.pop()}}const Ag=3;var Xr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xr||(Xr={}));const Yx={type:Xr.Marker};class jV{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=Ag&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Yx)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Xr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Xr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Yx);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Xr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Xr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Xr.Element&&n.element===t)}}const Ji={createDocument(){return{nodeName:"#document",mode:ar.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ji.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ji.isTextNode(n)){n.value+=t;return}}Ji.appendChild(e,Ji.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ji.isTextNode(r)?r.value+=t:Ji.insertBefore(e,Ji.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function KV(e){return e.name===_O&&e.publicId===null&&(e.systemId===null||e.systemId===$V)}function GV(e){if(e.name!==_O)return ar.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===WV)return ar.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qV.has(n))return ar.QUIRKS;let r=t===null?VV:CO;if(Kx(n,r))return ar.QUIRKS;if(r=t===null?NO:YV,Kx(n,r))return ar.LIMITED_QUIRKS}return ar.NO_QUIRKS}const Gx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},QV="definitionurl",XV="definitionURL",JV=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ZV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),eq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tq=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function nq(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:r})=>r===va.COLOR||r===va.SIZE||r===va.FACE)||tq.has(t)}function AO(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=bt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===$.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=bt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement($.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===_e.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(n)===$.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case _e.CHARACTER:{this.onCharacter(t);break}case _e.NULL_CHARACTER:{this.onNullCharacter(t);break}case _e.COMMENT:{this.onComment(t);break}case _e.DOCTYPE:{this.onDoctype(t);break}case _e.START_TAG:{this._processStartTag(t);break}case _e.END_TAG:{this.onEndTag(t);break}case _e.EOF:{this.onEof(t);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return aq(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Xr.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=P.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=P.IN_TABLE;return}case g.BODY:{this.insertionMode=P.IN_BODY;return}case g.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===g.TEMPLATE)break;if(r===g.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return IO.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case g.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return OV[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{MO(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{FO(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bb(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{Bb(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.AFTER_BODY:{bq(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{yq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{Eq(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,K.misplacedDoctype);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,K.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UY(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{vq(this,t);break}case P.BEFORE_HEAD:{kq(this,t);break}case P.IN_HEAD:{Ur(this,t);break}case P.IN_HEAD_NO_SCRIPT:{wq(this,t);break}case P.AFTER_HEAD:{Cq(this,t);break}case P.IN_BODY:{ln(this,t);break}case P.IN_TABLE:{sl(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{xY(this,t);break}case P.IN_COLUMN_GROUP:{WE(this,t);break}case P.IN_TABLE_BODY:{nm(this,t);break}case P.IN_ROW:{rm(this,t);break}case P.IN_CELL:{_Y(this,t);break}case P.IN_SELECT:{jO(this,t);break}case P.IN_SELECT_IN_TABLE:{NY(this,t);break}case P.IN_TEMPLATE:{OY(this,t);break}case P.AFTER_BODY:{RY(this,t);break}case P.IN_FRAMESET:{MY(this,t);break}case P.AFTER_FRAMESET:{LY(this,t);break}case P.AFTER_AFTER_BODY:{BY(this,t);break}case P.AFTER_AFTER_FRAMESET:{zY(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?jY(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{Tq(this,t);break}case P.BEFORE_HEAD:{xq(this,t);break}case P.IN_HEAD:{Sq(this,t);break}case P.IN_HEAD_NO_SCRIPT:{_q(this,t);break}case P.AFTER_HEAD:{Nq(this,t);break}case P.IN_BODY:{tm(this,t);break}case P.TEXT:{pY(this,t);break}case P.IN_TABLE:{ec(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{SY(this,t);break}case P.IN_COLUMN_GROUP:{wY(this,t);break}case P.IN_TABLE_BODY:{zb(this,t);break}case P.IN_ROW:{UO(this,t);break}case P.IN_CELL:{CY(this,t);break}case P.IN_SELECT:{$O(this,t);break}case P.IN_SELECT_IN_TABLE:{AY(this,t);break}case P.IN_TEMPLATE:{IY(this,t);break}case P.AFTER_BODY:{VO(this,t);break}case P.IN_FRAMESET:{DY(this,t);break}case P.AFTER_FRAMESET:{PY(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onEof(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{BO(this,t);break}case P.TEXT:{hY(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_TEMPLATE:{WO(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{$E(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{RO(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{zO(this,t);break}}}}function dq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):PO(e,t),n}function fq(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function pq(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=uq;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=hq(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function hq(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mq(e,t,n){const r=e.treeAdapter.getTagName(t),i=Cl(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===g.TEMPLATE&&o===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gq(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function jE(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function Eq(e,t){e._setDocumentType(t);const n=t.forceQuirks?ar.QUIRKS:GV(t);KV(t)||e._err(t,K.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=P.BEFORE_HTML}function Yl(e,t){e._err(t,K.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ar.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function vq(e,t){t.tagID===g.HTML?(e._insertElement(t,J.HTML),e.insertionMode=P.BEFORE_HEAD):bu(e,t)}function Tq(e,t){const n=t.tagID;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&bu(e,t)}function bu(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function kq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:yu(e,t)}}function xq(e,t){const n=t.tagID;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?yu(e,t):e._err(t,K.endTagWithoutMatchingOpenElement)}function yu(e,t){e._insertFakeElement($.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function Ur(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Eu(e,t)}}function Sq(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{Eu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Ka(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,K.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,K.endTagWithoutMatchingOpenElement)}function Eu(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function wq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{Ur(e,t);break}case g.NOSCRIPT:{e._err(t,K.nestedNoscriptInHead);break}default:vu(e,t)}}function _q(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case g.BR:{vu(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function vu(e,t){const n=t.type===_e.EOF?K.openElementsLeftAfterEof:K.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function Cq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,K.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),Ur(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Tu(e,t)}}function Nq(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Tu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Tu(e,t){e._insertFakeElement($.BODY,g.BODY),e.insertionMode=P.IN_BODY,em(e,t)}function em(e,t){switch(t.type){case _e.CHARACTER:{MO(e,t);break}case _e.WHITESPACE_CHARACTER:{RO(e,t);break}case _e.COMMENT:{Bb(e,t);break}case _e.START_TAG:{ln(e,t);break}case _e.END_TAG:{tm(e,t);break}case _e.EOF:{BO(e,t);break}}}function RO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Aq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Iq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET)}function Rq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Mq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Pb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Dq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Lq(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function Pq(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===g.LI&&i===g.LI||(n===g.DD||n===g.DT)&&(i===g.DD||i===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Bq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=bt.PLAINTEXT}function zq(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Fq(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName($.A);n&&(jE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Uq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(jE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function $q(e,t){e.treeAdapter.getDocumentMode(e.document)!==ar.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function DO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LO(e){const t=vO(e,va.TYPE);return t!=null&&t.toLowerCase()===sq}function Wq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),LO(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Vq(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function qq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yq(e,t){t.tagName=$.IMG,t.tagID=g.IMG,DO(e,t)}function Kq(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function Gq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Qq(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Jx(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function Xq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function Jq(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Zq(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function eY(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,J.HTML)}function tY(e,t){e._reconstructActiveFormattingElements(),AO(t),UE(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function nY(e,t){e._reconstructActiveFormattingElements(),OO(t),UE(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Zx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function ln(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{Hq(e,t);break}case g.A:{Fq(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Mq(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{Rq(e,t);break}case g.LI:case g.DD:case g.DT:{Pq(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{DO(e,t);break}case g.HR:{qq(e,t);break}case g.RB:case g.RTC:{Zq(e,t);break}case g.RT:case g.RP:{eY(e,t);break}case g.PRE:case g.LISTING:{Dq(e,t);break}case g.XMP:{Gq(e,t);break}case g.SVG:{nY(e,t);break}case g.HTML:{Aq(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{Ur(e,t);break}case g.BODY:{Oq(e,t);break}case g.FORM:{Lq(e,t);break}case g.NOBR:{Uq(e,t);break}case g.MATH:{tY(e,t);break}case g.TABLE:{$q(e,t);break}case g.INPUT:{Wq(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{Vq(e,t);break}case g.IMAGE:{Yq(e,t);break}case g.BUTTON:{zq(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{jq(e,t);break}case g.IFRAME:{Qq(e,t);break}case g.SELECT:{Xq(e,t);break}case g.OPTION:case g.OPTGROUP:{Jq(e,t);break}case g.NOEMBED:case g.NOFRAMES:{Jx(e,t);break}case g.FRAMESET:{Iq(e,t);break}case g.TEXTAREA:{Kq(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?Jx(e,t):Zx(e,t);break}case g.PLAINTEXT:{Bq(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:Zx(e,t)}}function rY(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iY(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,VO(e,t))}function oY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function aY(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):n&&e.openElements.remove(n))}function sY(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement($.P,g.P),e._closePElement()}function lY(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function uY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cY(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function fY(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function PO(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==g.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function tm(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{jE(e,t);break}case g.P:{sY(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{oY(e,t);break}case g.LI:{lY(e);break}case g.DD:case g.DT:{uY(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{cY(e);break}case g.BR:{fY(e);break}case g.BODY:{rY(e,t);break}case g.HTML:{iY(e,t);break}case g.FORM:{aY(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{dY(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:PO(e,t)}}function BO(e,t){e.tmplInsertionModeStack.length>0?WO(e,t):$E(e,t)}function pY(e,t){var n;t.tagID===g.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hY(e,t){e._err(t,K.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Og(e,t){if(IO.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case _e.CHARACTER:{FO(e,t);break}case _e.WHITESPACE_CHARACTER:{zO(e,t);break}}else Fc(e,t)}function mY(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_CAPTION}function gY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function bY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,g.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t)}function yY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_TABLE_BODY}function EY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,g.TBODY),e.insertionMode=P.IN_TABLE_BODY,nm(e,t)}function vY(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TY(e,t){LO(t)?e._appendElement(t,J.HTML):Fc(e,t),t.ackSelfClosing=!0}function kY(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function sl(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{EY(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{Ur(e,t);break}case g.COL:{bY(e,t);break}case g.FORM:{kY(e,t);break}case g.TABLE:{vY(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{yY(e,t);break}case g.INPUT:{TY(e,t);break}case g.CAPTION:{mY(e,t);break}case g.COLGROUP:{gY(e,t);break}default:Fc(e,t)}}function ec(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Fc(e,t)}}function Fc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,em(e,t),e.fosterParentingEnabled=n}function zO(e,t){e.pendingCharacterTokens.push(t)}function FO(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Kl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}}}function NY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jO(e,t)}function AY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$O(e,t)}function OY(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{Ur(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,sl(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,nm(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,rm(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,ln(e,t)}}function IY(e,t){t.tagID===g.TEMPLATE&&Ka(e,t)}function WO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):$E(e,t)}function RY(e,t){t.tagID===g.HTML?ln(e,t):Jf(e,t)}function VO(e,t){var n;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Jf(e,t)}function Jf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function MY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.FRAMESET:{e._insertElement(t,J.HTML);break}case g.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{Ur(e,t);break}}}function DY(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function LY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function PY(e,t){t.tagID===g.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function BY(e,t){t.tagID===g.HTML?ln(e,t):sf(e,t)}function sf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function zY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function FY(e,t){t.chars=rt,e._insertCharacters(t)}function HY(e,t){e._insertCharacters(t),e.framesetOk=!1}function qO(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UY(e,t){if(nq(t))qO(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?AO(t):r===J.SVG&&(rq(t),OO(t)),UE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function jY(e,t){if(t.tagID===g.P||t.tagID===g.BR){qO(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}$.AREA,$.BASE,$.BASEFONT,$.BGSOUND,$.BR,$.COL,$.EMBED,$.FRAME,$.HR,$.IMG,$.INPUT,$.KEYGEN,$.LINK,$.META,$.PARAM,$.SOURCE,$.TRACK,$.WBR;const $Y=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),eS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function YO(e,t){const n=ZY(e),r=YA("type",{handlers:{root:WY,element:VY,text:qY,comment:GO,doctype:YY,raw:GY},unknown:QY}),i={parser:n?new Xx(eS):Xx.getFragmentParser(void 0,eS),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Nl(i,ci());const o=n?i.parser.document:i.parser.getFragment(),a=tV(o,{file:i.options.file});return i.stitches&&Bc(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function KO(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:_e.CHARACTER,chars:e.value,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YY(e,t){const n={type:_e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function KY(e,t){t.stitches=!0;const n=eK(e);if("children"in e&&"children"in n){const r=YO({type:"root",children:e.children},t.options);n.children=r.children}GO({type:"comment",value:{stitch:n}},t)}function GO(e,t){const n=e.value,r={type:_e.COMMENT,data:n,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GY(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,QO(t,ci(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QY(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))KY(n,t);else{let r="";throw $Y.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Nl(e,t){QO(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function QO(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XY(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,ci(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:da.html;i===da.html&&n==="svg"&&(i=da.svg);const o=aV({...e,children:[]},{space:i===da.svg?"svg":"html"}),a={type:_e.START_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Hc(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JY(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&hV.includes(n)||t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,Gh(e));const r={type:_e.END_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Hc(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function ZY(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Hc(e){const t=ci(e)||{line:void 0,column:void 0,offset:void 0},n=Gh(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function eK(e){return"children"in e?al({...e,children:[]}):al(e)}function tK(e){return function(t,n){return YO(t,{...e,file:n})}}const tS=function(e,t,n){const r=Pc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++tu&&(u=c):c&&(u!==void 0&&u>-1&&l.push(`
+`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function JO(e,t,n){return e.type==="element"?lK(e,t,n):e.type==="text"?n.whitespace==="normal"?ZO(e,n):uK(e):[]}function lK(e,t,n){const r=eI(e,n),i=e.children||[];let o=-1,a=[];if(sK(e))return a;let s,l;for(Fb(e)||oS(e)&&tS(t,e,oS)?l=`
+`:aK(e)?(s=2,l=2):XO(e)&&(s=1,l=1);++o]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(I,R,_,x,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function mK(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=hK(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function gK(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...b,...E,"set","shopt",...v,...k]},contains:[f,e.SHEBANG(),p,c,e.HASH_COMMENT_MODE,o,y,a,s,l,u,n]}}function bK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",y={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:y,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"",contains:[].concat(E,v,b,[d,{begin:e.IDENT_RE+"::",keywords:y},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:u,keywords:y}}}function yK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(I,R,_,x,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function EK(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=e.inherit(u,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[m,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:"?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}const vK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),TK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],kK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],xK=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],SK=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],wK=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function _K(e){const t=e.regex,n=vK(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+xK.join("|")+")"},{begin:":(:)?("+SK.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wK.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:kK.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TK.join("|")+")\\b"}]}}function CK(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function NK(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function AK(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function OK(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,c=/'[^']*'/,d=t.either(l,u,c),f=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}var ms="[0-9](_*[0-9])*",Td=`\\.(${ms})`,kd="[0-9a-fA-F](_*[0-9a-fA-F])*",sS={className:"number",variants:[{begin:`(\\b(${ms})((${Td})|\\.)?|(${Td}))[eE][+-]?(${ms})[fFdD]?\\b`},{begin:`\\b(${ms})((${Td})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Td})[fFdD]?\\b`},{begin:`\\b(${ms})[fFdD]\\b`},{begin:`\\b0[xX]((${kd})\\.?|(${kd})?\\.(${kd}))[pP][+-]?(${ms})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${kd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function tI(e,t,n){return n===-1?"":e.replace(t,r=>tI(e,t,n-1))}function IK(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+tI("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,sS,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},sS,u]}}const lS="[A-Za-z$_][0-9A-Za-z$_]*",RK=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],MK=["true","false","null","undefined","NaN","Infinity"],nI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],iI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],DK=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],LK=[].concat(iI,nI,rI);function PK(e){const t=e.regex,n=(N,{after:F})=>{const w=""+N[0].slice(1);return N.input.indexOf(w,F)!==-1},r=lS,i={begin:"<>",end:">"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:lS,keyword:RK,literal:MK,built_in:LK,"variable.language":DK},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...nI,...rI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...iI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function BK(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var gs="[0-9](_*[0-9])*",xd=`\\.(${gs})`,Sd="[0-9a-fA-F](_*[0-9a-fA-F])*",zK={className:"number",variants:[{begin:`(\\b(${gs})((${xd})|\\.)?|(${xd}))[eE][+-]?(${gs})[fFdD]?\\b`},{begin:`\\b(${gs})((${xd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${xd})[fFdD]?\\b`},{begin:`\\b(${gs})[fFdD]\\b`},{begin:`\\b0[xX]((${Sd})\\.?|(${Sd})?\\.(${Sd}))[pP][+-]?(${gs})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Sd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function FK(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},u=zK,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,s,l,a,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
+`},u]}}const HK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),UK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],jK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],oI=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],aI=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$K=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),WK=oI.concat(aI);function VK(e){const t=HK(e),n=WK,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(v){return{className:"string",begin:"~?"+v+".*?"+v}},u=function(v,k,_){return{className:v,begin:k,relevance:_}},c={$pattern:/[a-z-]+/,keyword:r,attribute:jK.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:a}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},h={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$K.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},y={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+UK.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",o,0),u("selector-id","#"+o),u("selector-class","\\."+o,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+oI.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+aI.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},E={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[b]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,y,E,h,b,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function qK(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function YK(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}function KK(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(u,{contains:[]}),f=e.inherit(c,{contains:[]});u.contains.push(f),c.contains.push(d);let p=[n,l];return[u,c,d,f].forEach(y=>{y.contains=y.contains.concat(p)}),p=p.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,u,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,a]}}function GK(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function QK(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(p,h,m="\\1")=>{const y=m==="\\1"?m:t.concat(m,h);return t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,y,/(?:\\.|[^\\\/])*?/,m,r)},d=(p,h,m)=>t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,m,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",t.either(...u,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=f,a.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function XK(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(U,V)=>{V.data._beginMatch=U[1]||U[2]},"on:end":(U,V)=>{V.data._beginMatch!==U[1]&&V.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
+]`,p={scope:"string",variants:[u,l,c,d]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:y,literal:(U=>{const V=[];return U.forEach(H=>{V.push(H),H.toLowerCase()===H?V.push(H.toUpperCase()):V.push(H.toLowerCase())}),V})(m),built_in:b},k=U=>U.map(V=>V.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",k(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=t.concat(r,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},R={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[R,o,I,e.C_BLOCK_COMMENT_MODE,p,h,_]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",k(y).join("\\b|"),"|",k(b).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(A);const j=[R,I,e.C_BLOCK_COMMENT_MODE,p,h,_],L={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:v,contains:[L,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,A,I,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,p,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,h]}}function JK(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function ZK(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function eG(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,h=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${h})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${f})[jJ](?=${h})`}]},y={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return u.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,y,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,b,d]}]}}function tG(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function nG(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function rG(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},x=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=x,m.contains=x;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:x}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(u).concat(x)}}function iG(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:"",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:s}},{className:"punctuation",begin:"->"},n]}}const oG=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),aG=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sG=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],lG=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],uG=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],cG=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function dG(e){const t=oG(e),n=uG,r=lG,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+aG.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+cG.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:sG.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function fG(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function pG(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,h=[...u,...l].filter(v=>!c.includes(v)),m={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},y={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function E(v,{exceptions:k,when:_}={}){const x=_;return k=k||[],v.map(I=>I.match(/\|\d+$/)||k.includes(I)?I:x(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(h,{when:v=>v.length<3}),literal:o,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:o,type:s}},{className:"type",begin:t.either(...a)},b,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,y]}}function sI(e){return e?typeof e=="string"?e:e.source:null}function wd(e){return We("(?=",e,")")}function We(...e){return e.map(n=>sI(n)).join("")}function hG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function xn(...e){return"("+(hG(e).capture?"":"?:")+e.map(r=>sI(r)).join("|")+")"}const qE=e=>We(/\b/,e,/\w$/.test(e)?/\b/:/\B/),mG=["Protocol","Type"].map(qE),uS=["init","self"].map(qE),gG=["Any","Self"],Ig=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],cS=["false","nil","true"],bG=["assignment","associativity","higherThan","left","lowerThan","none","right"],yG=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],dS=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],lI=xn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),uI=xn(lI,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Rg=We(lI,uI,"*"),cI=xn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Zf=xn(cI,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),gi=We(cI,Zf,"*"),Mg=We(/[A-Z]/,Zf,"*"),EG=["attached","autoclosure",We(/convention\(/,xn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",We(/objc\(/,gi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],vG=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function TG(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,xn(...mG,...uS)],className:{2:"keyword"}},o={match:We(/\./,xn(...Ig)),relevance:0},a=Ig.filter(ye=>typeof ye=="string").concat(["_|0"]),s=Ig.filter(ye=>typeof ye!="string").concat(gG).map(qE),l={variants:[{className:"keyword",match:xn(...s,...uS)}]},u={$pattern:xn(/\b\w+/,/#\w+/),keyword:a.concat(yG),literal:cS},c=[i,o,l],d={match:We(/\./,xn(...dS)),relevance:0},f={className:"built_in",match:We(/\b/,xn(...dS),/(?=\()/)},p=[d,f],h={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Rg},{match:`\\.(\\.|${uI})+`}]},y=[h,m],b="([0-9]_*)+",E="([0-9a-fA-F]_*)+",v={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(ye="")=>({className:"subst",variants:[{match:We(/\\/,ye,/[0\\tnr"']/)},{match:We(/\\/,ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_=(ye="")=>({className:"subst",match:We(/\\/,ye,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(ye="")=>({className:"subst",label:"interpol",begin:We(/\\/,ye,/\(/),end:/\)/}),I=(ye="")=>({begin:We(ye,/"""/),end:We(/"""/,ye),contains:[k(ye),_(ye),x(ye)]}),R=(ye="")=>({begin:We(ye,/"/),end:We(/"/,ye),contains:[k(ye),x(ye)]}),z={className:"string",variants:[I(),I("#"),I("##"),I("###"),R(),R("#"),R("##"),R("###")]},A=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],j={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:A},L=ye=>{const Re=We(ye,/\//),at=We(/\//,ye);return{begin:Re,end:at,contains:[...A,{scope:"comment",begin:`#(?!.*${at})`,end:/$/}]}},U={scope:"regexp",variants:[L("###"),L("##"),L("#"),j]},V={match:We(/`/,gi,/`/)},H={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${Zf}+`},M=[V,H,B],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:vG,contains:[...y,v,z]}]}},F={scope:"keyword",match:We(/@/,xn(...EG))},w={scope:"meta",match:We(/@/,gi)},q=[N,F,w],X={match:wd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:We(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Zf,"+")},{className:"type",match:Mg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:We(/\s+&\s+/,wd(Mg)),relevance:0}]},D={begin:/,end:/>/,keywords:u,contains:[...r,...c,...q,h,X]};X.contains.push(D);const be={match:We(gi,/\s*:/),keywords:"_|0",relevance:0},ge={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",be,...r,U,...c,...p,...y,v,z,...M,...q,X]},le={begin:/,end:/>/,keywords:"repeat each",contains:[...r,X]},Ce={begin:xn(wd(We(gi,/\s*:/)),wd(We(gi,/\s+/,gi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:gi}]},Ie={begin:/\(/,end:/\)/,keywords:u,contains:[Ce,...r,...c,...y,v,z,...q,X,ge],endsParent:!0,illegal:/["']/},Oe={match:[/(func|macro)/,/\s+/,xn(V.match,gi,Rg)],className:{1:"keyword",3:"title.function"},contains:[le,Ie,t],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[le,Ie,t],illegal:/\[|%/},xt={match:[/operator/,/\s+/,Rg],className:{1:"keyword",3:"title"}},Xt={begin:[/precedencegroup/,/\s+/,Mg],className:{1:"keyword",3:"title"},contains:[X],keywords:[...bG,...cS],end:/}/};for(const ye of z.variants){const Re=ye.contains.find(Be=>Be.label==="interpol");Re.keywords=u;const at=[...c,...p,...y,v,z,...M];Re.contains=[...at,{begin:/\(/,end:/\)/,contains:["self",...at]}]}return{name:"Swift",keywords:u,contains:[...r,Oe,Ke,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:u,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},xt,Xt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},U,...c,...p,...y,v,z,...M,...q,X,ge]}}const ep="[A-Za-z$_][0-9A-Za-z$_]*",dI=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],fI=["true","false","null","undefined","NaN","Infinity"],pI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],hI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gI=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],bI=[].concat(mI,pI,hI);function kG(e){const t=e.regex,n=(N,{after:F})=>{const w=""+N[0].slice(1);return N.input.indexOf(w,F)!==-1},r=ep,i={begin:"<>",end:">"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:ep,keyword:dI,literal:fI,built_in:bI,"variable.language":gI},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...pI,...hI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...mI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function xG(e){const t=kG(e),n=ep,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:ep,keyword:dI.concat(s),literal:fI,built_in:bI.concat(r),"variable.language":gI},u={className:"meta",begin:"@"+n},c=(f,p,h)=>{const m=f.contains.findIndex(y=>y.label===p);if(m===-1)throw new Error("can not find mode to replace");f.contains.splice(m,1,h)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(u),t.contains=t.contains.concat([u,i,o]),c(t,"shebang",e.SHEBANG()),c(t,"use_strict",a);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function SG(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,u,c,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function wG(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,u,s]}}function _G(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/