lianshu-editor 1.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/lianshu-editor.es.js +52982 -0
- package/dist/lianshu-editor.es.js.map +1 -0
- package/dist/lianshu-editor.umd.js +979 -0
- package/dist/lianshu-editor.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
(function(Z,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("@tiptap/vue-3"),require("@tiptap/core"),require("@tiptap/extension-code-block-lowlight"),require("lowlight"),require("@tiptap/starter-kit"),require("@tiptap/extension-placeholder"),require("@tiptap/extension-task-list"),require("@tiptap/extension-task-item"),require("@tiptap/extension-underline"),require("@tiptap/extension-link"),require("@tiptap/extension-table-row"),require("@tiptap/extension-table-cell"),require("@tiptap/extension-table-header"),require("@tiptap/extension-table"),require("@tiptap/markdown"),require("@tiptap/extensions"),require("@tiptap/suggestion"),require("tippy.js"),require("@tiptap/extension-text-style"),require("@tiptap/extension-highlight"),require("@tiptap/extension-color")):typeof define=="function"&&define.amd?define(["exports","vue","@tiptap/vue-3","@tiptap/core","@tiptap/extension-code-block-lowlight","lowlight","@tiptap/starter-kit","@tiptap/extension-placeholder","@tiptap/extension-task-list","@tiptap/extension-task-item","@tiptap/extension-underline","@tiptap/extension-link","@tiptap/extension-table-row","@tiptap/extension-table-cell","@tiptap/extension-table-header","@tiptap/extension-table","@tiptap/markdown","@tiptap/extensions","@tiptap/suggestion","tippy.js","@tiptap/extension-text-style","@tiptap/extension-highlight","@tiptap/extension-color"],s):(Z=typeof globalThis<"u"?globalThis:Z||self,s(Z.LianShuEditor={},Z.Vue,Z.TiptapVue3,Z.TiptapCore,Z.CodeBlockLowlight,Z.lowlight$1,Z.StarterKit,Z.Placeholder,Z.TaskList,Z.TaskItem,Z.Underline$1,Z.Link$1,Z.extensionTableRow,Z.extensionTableCell,Z.extensionTableHeader,Z.extensionTable,Z.markdown$1,Z.extensions,Z.Suggestion,Z.tippy,Z.extensionTextStyle,Z.Highlight,Z.extensionColor))})(this,function(Z,s,ne,ue,wp,Dl,Os,Ls,Bs,Rs,Cp,Ps,_p,xp,Mp,Sp,vl,Dp,Us,Fs,vp,Op,Lp){"use strict";var bD=Object.defineProperty;var AD=(Z,s,ne)=>s in Z?bD(Z,s,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Z[s]=ne;var Oe=(Z,s,ne)=>AD(Z,typeof s!="symbol"?s+"":s,ne);var Ms;const Ol=["top","right","bottom","left"],Ll=["start","end"],Bl=Ol.reduce((e,t)=>e.concat(t,t+"-"+Ll[0],t+"-"+Ll[1]),[]),Jt=Math.min,gt=Math.max,Ga=Math.round,Zt=e=>({x:e,y:e}),Bp={left:"right",right:"left",bottom:"top",top:"bottom"},Rp={start:"end",end:"start"};function Hs(e,t,n){return gt(e,Jt(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function Ot(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function Rl(e){return e==="x"?"y":"x"}function zs(e){return e==="y"?"height":"width"}const Pp=new Set(["top","bottom"]);function Xt(e){return Pp.has(Ot(e))?"y":"x"}function js(e){return Rl(Xt(e))}function Pl(e,t,n){n===void 0&&(n=!1);const r=Ht(e),a=js(e),i=zs(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=qa(o)),[o,qa(o)]}function Up(e){const t=qa(e);return[$a(e),t,$a(t)]}function $a(e){return e.replace(/start|end/g,t=>Rp[t])}const Ul=["left","right"],Fl=["right","left"],Fp=["top","bottom"],Hp=["bottom","top"];function zp(e,t,n){switch(e){case"top":case"bottom":return n?t?Fl:Ul:t?Ul:Fl;case"left":case"right":return t?Fp:Hp;default:return[]}}function jp(e,t,n,r){const a=Ht(e);let i=zp(Ot(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map($a)))),i}function qa(e){return e.replace(/left|right|bottom|top/g,t=>Bp[t])}function Vp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vs(e){return typeof e!="number"?Vp(e):{top:e,right:e,bottom:e,left:e}}function pr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Hl(e,t,n){let{reference:r,floating:a}=e;const i=Xt(t),o=js(t),u=zs(o),l=Ot(t),c=i==="y",f=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[u]/2-a[u]/2;let g;switch(l){case"top":g={x:f,y:r.y-a.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-a.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Ht(t)){case"start":g[o]-=p*(n&&c?-1:1);break;case"end":g[o]+=p*(n&&c?-1:1);break}return g}async function Yp(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=hn(t,e),m=Vs(g),A=u[p?d==="floating"?"reference":"floating":d],E=pr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:f,strategy:l})),w=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),T=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},N=pr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:C,strategy:l}):w);return{top:(E.top-N.top+m.top)/T.y,bottom:(N.bottom-E.bottom+m.bottom)/T.y,left:(E.left-N.left+m.left)/T.x,right:(N.right-E.right+m.right)/T.x}}const Qp=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,u=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:d}=Hl(c,r,l),p=r,g={},m=0;for(let A=0;A<u.length;A++){var b;const{name:E,fn:w}=u[A],{x:C,y:T,data:N,reset:D}=await w({x:f,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:g,rects:c,platform:{...o,detectOverflow:(b=o.detectOverflow)!=null?b:Yp},elements:{reference:e,floating:t}});f=C??f,d=T??d,g={...g,[E]:{...g[E],...N}},D&&m<=50&&(m++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(c=D.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):D.rects),{x:f,y:d}=Hl(c,p,l)),A=-1)}return{x:f,y:d,placement:p,strategy:a,middlewareData:g}},Kp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:u,middlewareData:l}=t,{element:c,padding:f=0}=hn(e,t)||{};if(c==null)return{};const d=Vs(f),p={x:n,y:r},g=js(a),m=zs(g),b=await o.getDimensions(c),A=g==="y",E=A?"top":"left",w=A?"bottom":"right",C=A?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-p[g]-i.floating[m],N=p[g]-i.reference[g],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let B=D?D[C]:0;(!B||!await(o.isElement==null?void 0:o.isElement(D)))&&(B=u.floating[C]||i.floating[m]);const v=T/2-N/2,_=B/2-b[m]/2-1,x=Jt(d[E],_),R=Jt(d[w],_),O=x,M=B-b[m]-R,S=B/2-b[m]/2+v,F=Hs(O,S,M),V=!l.arrow&&Ht(a)!=null&&S!==F&&i.reference[m]/2-(S<O?x:R)-b[m]/2<0,z=V?S<O?S-O:S-M:0;return{[g]:p[g]+z,data:{[g]:F,centerOffset:S-F-z,...V&&{alignmentOffset:z}},reset:V}}});function Wp(e,t,n){return(e?[...n.filter(a=>Ht(a)===e),...n.filter(a=>Ht(a)!==e)]:n.filter(a=>Ot(a)===a)).filter(a=>e?Ht(a)===e||(t?$a(a)!==a:!1):!0)}const Gp=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:i,middlewareData:o,placement:u,platform:l,elements:c}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:p=Bl,autoAlignment:g=!0,...m}=hn(e,t),b=d!==void 0||p===Bl?Wp(d||null,g,p):p,A=await l.detectOverflow(t,m),E=((n=o.autoPlacement)==null?void 0:n.index)||0,w=b[E];if(w==null)return{};const C=Pl(w,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(u!==w)return{reset:{placement:b[0]}};const T=[A[Ot(w)],A[C[0]],A[C[1]]],N=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:T}],D=b[E+1];if(D)return{data:{index:E+1,overflows:N},reset:{placement:D}};const B=N.map(x=>{const R=Ht(x.placement);return[x.placement,R&&f?x.overflows.slice(0,2).reduce((O,M)=>O+M,0):x.overflows[0],x.overflows]}).sort((x,R)=>x[1]-R[1]),_=((a=B.filter(x=>x[2].slice(0,Ht(x[0])?2:3).every(R=>R<=0))[0])==null?void 0:a[0])||B[0][0];return _!==u?{data:{index:E+1,overflows:N},reset:{placement:_}}:{}}}},$p=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:u,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...A}=hn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const E=Ot(a),w=Xt(u),C=Ot(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),N=p||(C||!b?[qa(u)]:Up(u)),D=m!=="none";!p&&D&&N.push(...jp(u,b,m,T));const B=[u,...N],v=await l.detectOverflow(t,A),_=[];let x=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&_.push(v[E]),d){const S=Pl(a,o,T);_.push(v[S[0]],v[S[1]])}if(x=[...x,{placement:a,overflows:_}],!_.every(S=>S<=0)){var R,O;const S=(((R=i.flip)==null?void 0:R.index)||0)+1,F=B[S];if(F&&(!(d==="alignment"?w!==Xt(F):!1)||x.every(H=>Xt(H.placement)===w?H.overflows[0]>0:!0)))return{data:{index:S,overflows:x},reset:{placement:F}};let V=(O=x.filter(z=>z.overflows[0]<=0).sort((z,H)=>z.overflows[1]-H.overflows[1])[0])==null?void 0:O.placement;if(!V)switch(g){case"bestFit":{var M;const z=(M=x.filter(H=>{if(D){const ie=Xt(H.placement);return ie===w||ie==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(ie=>ie>0).reduce((ie,Me)=>ie+Me,0)]).sort((H,ie)=>H[1]-ie[1])[0])==null?void 0:M[0];z&&(V=z);break}case"initialPlacement":V=u;break}if(a!==V)return{reset:{placement:V}}}return{}}}};function zl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jl(e){return Ol.some(t=>e[t]>=0)}const qp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...i}=hn(e,t);switch(a){case"referenceHidden":{const o=await r.detectOverflow(t,{...i,elementContext:"reference"}),u=zl(o,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:jl(u)}}}case"escaped":{const o=await r.detectOverflow(t,{...i,altBoundary:!0}),u=zl(o,n.floating);return{data:{escapedOffsets:u,escaped:jl(u)}}}default:return{}}}}};function Vl(e){const t=Jt(...e.map(i=>i.left)),n=Jt(...e.map(i=>i.top)),r=gt(...e.map(i=>i.right)),a=gt(...e.map(i=>i.bottom));return{x:t,y:n,width:r-t,height:a-n}}function Jp(e){const t=e.slice().sort((a,i)=>a.y-i.y),n=[];let r=null;for(let a=0;a<t.length;a++){const i=t[a];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(a=>pr(Vl(a)))}const Zp=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:a,platform:i,strategy:o}=t,{padding:u=2,x:l,y:c}=hn(e,t),f=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(r.reference))||[]),d=Jp(f),p=pr(Vl(f)),g=Vs(u);function m(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&c!=null)return d.find(A=>l>A.left-g.left&&l<A.right+g.right&&c>A.top-g.top&&c<A.bottom+g.bottom)||p;if(d.length>=2){if(Xt(n)==="y"){const x=d[0],R=d[d.length-1],O=Ot(n)==="top",M=x.top,S=R.bottom,F=O?x.left:R.left,V=O?x.right:R.right,z=V-F,H=S-M;return{top:M,bottom:S,left:F,right:V,width:z,height:H,x:F,y:M}}const A=Ot(n)==="left",E=gt(...d.map(x=>x.right)),w=Jt(...d.map(x=>x.left)),C=d.filter(x=>A?x.left===w:x.right===E),T=C[0].top,N=C[C.length-1].bottom,D=w,B=E,v=B-D,_=N-T;return{top:T,bottom:N,left:D,right:B,width:v,height:_,x:D,y:T}}return p}const b=await i.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return a.reference.x!==b.reference.x||a.reference.y!==b.reference.y||a.reference.width!==b.reference.width||a.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},Xp=new Set(["left","top"]);async function eg(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Ot(n),u=Ht(n),l=Xt(n)==="y",c=Xp.has(o)?-1:1,f=i&&l?-1:1,d=hn(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&typeof m=="number"&&(g=u==="end"?m*-1:m),l?{x:g*f,y:p*c}:{x:p*c,y:g*f}}const tg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:u}=t,l=await eg(t,e);return o===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},ng=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:u=!1,limiter:l={fn:E=>{let{x:w,y:C}=E;return{x:w,y:C}}},...c}=hn(e,t),f={x:n,y:r},d=await i.detectOverflow(t,c),p=Xt(Ot(a)),g=Rl(p);let m=f[g],b=f[p];if(o){const E=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=m+d[E],T=m-d[w];m=Hs(C,m,T)}if(u){const E=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=b+d[E],T=b-d[w];b=Hs(C,b,T)}const A=l.fn({...t,[g]:m,[p]:b});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[g]:o,[p]:u}}}}}},rg=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:u}=t,{apply:l=()=>{},...c}=hn(e,t),f=await o.detectOverflow(t,c),d=Ot(a),p=Ht(a),g=Xt(a)==="y",{width:m,height:b}=i.floating;let A,E;d==="top"||d==="bottom"?(A=d,E=p===(await(o.isRTL==null?void 0:o.isRTL(u.floating))?"start":"end")?"left":"right"):(E=d,A=p==="end"?"top":"bottom");const w=b-f.top-f.bottom,C=m-f.left-f.right,T=Jt(b-f[A],w),N=Jt(m-f[E],C),D=!t.middlewareData.shift;let B=T,v=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(v=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(B=w),D&&!p){const x=gt(f.left,0),R=gt(f.right,0),O=gt(f.top,0),M=gt(f.bottom,0);g?v=m-2*(x!==0||R!==0?x+R:gt(f.left,f.right)):B=b-2*(O!==0||M!==0?O+M:gt(f.top,f.bottom))}await l({...t,availableWidth:v,availableHeight:B});const _=await o.getDimensions(u.floating);return m!==_.width||b!==_.height?{reset:{rects:!0}}:{}}}};function Ja(){return typeof window<"u"}function gr(e){return Yl(e)?(e.nodeName||"").toLowerCase():"#document"}function _t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=(Yl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yl(e){return Ja()?e instanceof Node||e instanceof _t(e).Node:!1}function zt(e){return Ja()?e instanceof Element||e instanceof _t(e).Element:!1}function en(e){return Ja()?e instanceof HTMLElement||e instanceof _t(e).HTMLElement:!1}function Ql(e){return!Ja()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _t(e).ShadowRoot}const ag=new Set(["inline","contents"]);function Qr(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ag.has(a)}const ig=new Set(["table","td","th"]);function sg(e){return ig.has(gr(e))}const og=[":popover-open",":modal"];function Za(e){return og.some(t=>{try{return e.matches(t)}catch{return!1}})}const ug=["transform","translate","scale","rotate","perspective"],lg=["transform","translate","scale","rotate","perspective","filter"],cg=["paint","layout","strict","content"];function Ys(e){const t=Qs(),n=zt(e)?jt(e):e;return ug.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||lg.some(r=>(n.willChange||"").includes(r))||cg.some(r=>(n.contain||"").includes(r))}function fg(e){let t=_n(e);for(;en(t)&&!mr(t);){if(Ys(t))return t;if(Za(t))return null;t=_n(t)}return null}function Qs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dg=new Set(["html","body","#document"]);function mr(e){return dg.has(gr(e))}function jt(e){return _t(e).getComputedStyle(e)}function Xa(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ql(e)&&e.host||pn(e);return Ql(t)?t.host:t}function Kl(e){const t=_n(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&Qr(t)?t:Kl(t)}function Wl(e,t,n){var r;t===void 0&&(t=[]);const a=Kl(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=_t(a);return i?(Ks(o),t.concat(o,o.visualViewport||[],Qr(a)?a:[],[])):t.concat(a,Wl(a,[]))}function Ks(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gl(e){const t=jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=en(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,u=Ga(n)!==i||Ga(r)!==o;return u&&(n=i,r=o),{width:n,height:r,$:u}}function $l(e){return zt(e)?e:e.contextElement}function br(e){const t=$l(e);if(!en(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=Gl(t);let o=(i?Ga(n.width):n.width)/r,u=(i?Ga(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const hg=Zt(0);function ql(e){const t=_t(e);return!Qs()||!t.visualViewport?hg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_t(e)?!1:t}function Kr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=$l(e);let o=Zt(1);t&&(r?zt(r)&&(o=br(r)):o=br(e));const u=pg(i,n,r)?ql(i):Zt(0);let l=(a.left+u.x)/o.x,c=(a.top+u.y)/o.y,f=a.width/o.x,d=a.height/o.y;if(i){const p=_t(i),g=r&&zt(r)?_t(r):r;let m=p,b=Ks(m);for(;b&&r&&g!==m;){const A=br(b),E=b.getBoundingClientRect(),w=jt(b),C=E.left+(b.clientLeft+parseFloat(w.paddingLeft))*A.x,T=E.top+(b.clientTop+parseFloat(w.paddingTop))*A.y;l*=A.x,c*=A.y,f*=A.x,d*=A.y,l+=C,c+=T,m=_t(b),b=Ks(m)}}return pr({width:f,height:d,x:l,y:c})}function ei(e,t){const n=Xa(e).scrollLeft;return t?t.left+n:Kr(pn(e)).left+n}function Jl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ei(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function gg(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=pn(r),u=t?Za(t.floating):!1;if(r===o||u&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Zt(1);const f=Zt(0),d=en(r);if((d||!d&&!i)&&((gr(r)!=="body"||Qr(o))&&(l=Xa(r)),en(r))){const g=Kr(r);c=br(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const p=o&&!d&&!i?Jl(o,l):Zt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-l.scrollTop*c.y+f.y+p.y}}function mg(e){return Array.from(e.getClientRects())}function bg(e){const t=pn(e),n=Xa(e),r=e.ownerDocument.body,a=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ei(e);const u=-n.scrollTop;return jt(r).direction==="rtl"&&(o+=gt(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:u}}const Zl=25;function Ag(e,t){const n=_t(e),r=pn(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,u=0,l=0;if(a){i=a.width,o=a.height;const f=Qs();(!f||f&&t==="fixed")&&(u=a.offsetLeft,l=a.offsetTop)}const c=ei(r);if(c<=0){const f=r.ownerDocument,d=f.body,p=getComputedStyle(d),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-g);m<=Zl&&(i-=m)}else c<=Zl&&(i+=c);return{width:i,height:o,x:u,y:l}}const Eg=new Set(["absolute","fixed"]);function yg(e,t){const n=Kr(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=en(e)?br(e):Zt(1),o=e.clientWidth*i.x,u=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:u,x:l,y:c}}function Xl(e,t,n){let r;if(t==="viewport")r=Ag(e,n);else if(t==="document")r=bg(pn(e));else if(zt(t))r=yg(t,n);else{const a=ql(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return pr(r)}function ec(e,t){const n=_n(e);return n===t||!zt(n)||mr(n)?!1:jt(n).position==="fixed"||ec(n,t)}function Tg(e,t){const n=t.get(e);if(n)return n;let r=Wl(e,[]).filter(u=>zt(u)&&gr(u)!=="body"),a=null;const i=jt(e).position==="fixed";let o=i?_n(e):e;for(;zt(o)&&!mr(o);){const u=jt(o),l=Ys(o);!l&&u.position==="fixed"&&(a=null),(i?!l&&!a:!l&&u.position==="static"&&!!a&&Eg.has(a.position)||Qr(o)&&!l&&ec(e,o))?r=r.filter(f=>f!==o):a=u,o=_n(o)}return t.set(e,r),r}function kg(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Za(t)?[]:Tg(t,this._c):[].concat(n),r],u=o[0],l=o.reduce((c,f)=>{const d=Xl(t,f,a);return c.top=gt(d.top,c.top),c.right=Jt(d.right,c.right),c.bottom=Jt(d.bottom,c.bottom),c.left=gt(d.left,c.left),c},Xl(t,u,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ng(e){const{width:t,height:n}=Gl(e);return{width:t,height:n}}function Ig(e,t,n){const r=en(t),a=pn(t),i=n==="fixed",o=Kr(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const l=Zt(0);function c(){l.x=ei(a)}if(r||!r&&!i)if((gr(t)!=="body"||Qr(a))&&(u=Xa(t)),r){const g=Kr(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else a&&c();i&&!r&&a&&c();const f=a&&!r&&!i?Jl(a,u):Zt(0),d=o.left+u.scrollLeft-l.x-f.x,p=o.top+u.scrollTop-l.y-f.y;return{x:d,y:p,width:o.width,height:o.height}}function Ws(e){return jt(e).position==="static"}function tc(e,t){if(!en(e)||jt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pn(e)===n&&(n=n.ownerDocument.body),n}function nc(e,t){const n=_t(e);if(Za(e))return n;if(!en(e)){let a=_n(e);for(;a&&!mr(a);){if(zt(a)&&!Ws(a))return a;a=_n(a)}return n}let r=tc(e,t);for(;r&&sg(r)&&Ws(r);)r=tc(r,t);return r&&mr(r)&&Ws(r)&&!Ys(r)?n:r||fg(e)||n}const wg=async function(e){const t=this.getOffsetParent||nc,n=this.getDimensions,r=await n(e.floating);return{reference:Ig(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cg(e){return jt(e).direction==="rtl"}const _g={convertOffsetParentRelativeRectToViewportRelativeRect:gg,getDocumentElement:pn,getClippingRect:kg,getOffsetParent:nc,getElementRects:wg,getClientRects:mg,getDimensions:Ng,getScale:br,isElement:zt,isRTL:Cg},rc=tg,ac=Gp,ic=ng,sc=$p,oc=rg,uc=qp,lc=Kp,cc=Zp,fc=(e,t,n)=>{const r=new Map,a={platform:_g,...n},i={...a.platform,_c:r};return Qp(e,t,{...a,platform:i})};function dc(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let a=e.child(r),i=t.child(r);if(a==i){n+=a.nodeSize;continue}if(!a.sameMarkup(i))return n;if(a.isText&&a.text!=i.text){for(let o=0;a.text[o]==i.text[o];o++)n++;return n}if(a.content.size||i.content.size){let o=dc(a.content,i.content,n+1);if(o!=null)return o}n+=a.nodeSize}}function hc(e,t,n,r){for(let a=e.childCount,i=t.childCount;;){if(a==0||i==0)return a==i?null:{a:n,b:r};let o=e.child(--a),u=t.child(--i),l=o.nodeSize;if(o==u){n-=l,r-=l;continue}if(!o.sameMarkup(u))return{a:n,b:r};if(o.isText&&o.text!=u.text){let c=0,f=Math.min(o.text.length,u.text.length);for(;c<f&&o.text[o.text.length-c-1]==u.text[u.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(o.content.size||u.content.size){let c=hc(o.content,u.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class Ae{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,a=0,i){for(let o=0,u=0;u<n;o++){let l=this.content[o],c=u+l.nodeSize;if(c>t&&r(l,a+u,i||null,o)!==!1&&l.content.size){let f=u+1;l.nodesBetween(Math.max(0,t-f),Math.min(l.content.size,n-f),r,a+f)}u=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,a){let i="",o=!0;return this.nodesBetween(t,n,(u,l)=>{let c=u.isText?u.text.slice(Math.max(t,l)-l,n-l):u.isLeaf?a?typeof a=="function"?a(u):a:u.type.spec.leafText?u.type.spec.leafText(u):"":"";u.isBlock&&(u.isLeaf&&c||u.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,a=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),i=1);i<t.content.length;i++)a.push(t.content[i]);return new Ae(a,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],a=0;if(n>t)for(let i=0,o=0;o<n;i++){let u=this.content[i],l=o+u.nodeSize;l>t&&((o<t||l>n)&&(u.isText?u=u.cut(Math.max(0,t-o),Math.min(u.text.length,n-o)):u=u.cut(Math.max(0,t-o-1),Math.min(u.content.size,n-o-1))),r.push(u),a+=u.nodeSize),o=l}return new Ae(r,a)}cutByIndex(t,n){return t==n?Ae.empty:t==0&&n==this.content.length?this:new Ae(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let a=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return a[t]=n,new Ae(a,i)}addToStart(t){return new Ae([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Ae(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let a=this.content[n];t(a,r,n),r+=a.nodeSize}}findDiffStart(t,n=0){return dc(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return hc(this,t,n,r)}findIndex(t){if(t==0)return ti(0,t);if(t==this.size)return ti(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let a=this.child(n),i=r+a.nodeSize;if(i>=t)return i==t?ti(n+1,i):ti(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Ae.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ae(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Ae.empty;let n,r=0;for(let a=0;a<t.length;a++){let i=t[a];r+=i.nodeSize,a&&i.isText&&t[a-1].sameMarkup(i)?(n||(n=t.slice(0,a)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new Ae(n||t,r)}static from(t){if(!t)return Ae.empty;if(t instanceof Ae)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new Ae([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ae.empty=new Ae([],0);const Gs={index:0,offset:0};function ti(e,t){return Gs.index=e,Gs.offset=t,Gs}function $s(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!$s(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!$s(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class Lt{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let a=0;a<t.length;a++){let i=t[a];if(this.eq(i))return t;if(this.type.excludes(i.type))n||(n=t.slice(0,a));else{if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(n||(n=t.slice(0,a)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&$s(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let a=r.create(n.attrs);return r.checkAttrs(a.attrs),a}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return Lt.none;if(t instanceof Lt)return[t];let n=t.slice();return n.sort((r,a)=>r.type.rank-a.type.rank),n}}Lt.none=[];class xg extends Error{}class pe{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=gc(this.content,t+this.openStart,n);return r&&new pe(r,this.openStart,this.openEnd)}removeBetween(t,n){return new pe(pc(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return pe.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new pe(Ae.fromJSON(t,n.content),r,a)}static maxOpen(t,n=!0){let r=0,a=0;for(let i=t.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)a++;return new pe(t,r,a)}}pe.empty=new pe(Ae.empty,0,0);function pc(e,t,n){let{index:r,offset:a}=e.findIndex(t),i=e.maybeChild(r),{index:o,offset:u}=e.findIndex(n);if(a==t||i.isText){if(u!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(pc(i.content,t-a-1,n-a-1)))}function gc(e,t,n,r){let{index:a,offset:i}=e.findIndex(t),o=e.maybeChild(a);if(i==t||o.isText)return r&&!r.canReplace(a,a,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=gc(o.content,t-i-1,n,o);return u&&e.replaceChild(a,o.copy(u))}function Mg(e){return e.tag!=null}function Sg(e){return e.style!=null}let Dg=class xl{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(Mg(a))this.tags.push(a);else if(Sg(a)){let i=/[^=]*/.exec(a.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let i=t.nodes[a.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let r=new Ec(this,n,!1);return r.addAll(t,Lt.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new Ec(this,n,!0);return r.addAll(t,Lt.none,n.from,n.to),pe.maxOpen(r.finish())}matchTag(t,n,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){let i=this.tags[a];if(Lg(t,i.tag)&&(i.namespace===void 0||t.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(t);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(t,n,r,a){for(let i=a?this.styles.indexOf(a)+1:0;i<this.styles.length;i++){let o=this.styles[i],u=o.style;if(!(u.indexOf(t)!=0||o.context&&!r.matchesContext(o.context)||u.length>t.length&&(u.charCodeAt(t.length)!=61||u.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(a){let i=a.priority==null?50:a.priority,o=0;for(;o<n.length;o++){let u=n[o];if((u.priority==null?50:u.priority)<i)break}n.splice(o,0,a)}for(let a in t.marks){let i=t.marks[a].spec.parseDOM;i&&i.forEach(o=>{r(o=yc(o)),o.mark||o.ignore||o.clearMark||(o.mark=a)})}for(let a in t.nodes){let i=t.nodes[a].spec.parseDOM;i&&i.forEach(o=>{r(o=yc(o)),o.node||o.ignore||o.mark||(o.node=a)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new xl(t,xl.schemaRules(t)))}};const mc={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},vg={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},bc={ol:!0,ul:!0},Wr=1,qs=2,Gr=4;function Ac(e,t,n){return t!=null?(t?Wr:0)|(t==="full"?qs:0):e&&e.whitespace=="pre"?Wr|qs:n&~Gr}class ni{constructor(t,n,r,a,i,o){this.type=t,this.attrs=n,this.marks=r,this.solid=a,this.options=o,this.content=[],this.activeMarks=Lt.none,this.match=i||(o&Gr?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ae.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(t.type))?(this.match=r,a):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Wr)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-a[0].length))}}let n=Ae.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Ae.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!mc.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class Ec{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let a=n.topNode,i,o=Ac(null,n.preserveWhitespace,0)|(r?Gr:0);a?i=new ni(a.type,a.attrs,Lt.none,!0,n.topMatch||a.type.contentMatch,o):r?i=new ni(null,null,Lt.none,!0,null,o):i=new ni(t.schema.topNodeType,null,Lt.none,!0,null,o),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,a=this.top,i=a.options&qs?"full":this.localPreserveWS||(a.options&Wr)>0,{schema:o}=this.parser;if(i==="full"||a.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
|
|
2
|
+
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let u=r.split(/\r?\n|\r/);for(let l=0;l<u.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),n,!0),u[l]&&this.insertNode(o.text(u[l]),n,!/\S/.test(u[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let u=a.content[a.content.length-1],l=t.previousSibling;(!u||l&&l.nodeName=="BR"||u.isText&&/[ \t\r\n\u000c]$/.test(u.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let a=this.localPreserveWS,i=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),u;bc.hasOwnProperty(o)&&this.parser.normalizeLists&&Og(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(u=this.parser.matchTag(t,this,r));e:if(l?l.ignore:vg.hasOwnProperty(o))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,f=this.needsBlock;if(mc.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=l&&l.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),c&&this.sync(i),this.needsBlock=f}else{let c=this.readStyles(t,n);c&&this.addElementByRule(t,l,c,l.consuming===!1?u:void 0)}this.localPreserveWS=a}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
|
|
3
|
+
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let i=this.parser.matchedStyles[a],o=r.getPropertyValue(i);if(o)for(let u=void 0;;){let l=this.parser.matchStyle(i,o,this,u);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)u=l;else break}}return n}addElementByRule(t,n,r,a){let i,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let l=this.enter(o,n.attrs||null,r,n.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let u=this.top;if(o&&o.isLeaf)this.findInside(t);else if(a)this.addElement(t,r,a);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}i&&this.sync(u)&&this.open--}addAll(t,n,r,a){let i=r||0;for(let o=r?t.childNodes[r]:t.firstChild,u=a==null?null:t.childNodes[a];o!=u;o=o.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(o,n);this.findAtPoint(t,i)}findPlace(t,n,r){let a,i;for(let o=this.open,u=0;o>=0;o--){let l=this.nodes[o],c=l.findWrapping(t);if(c&&(!a||a.length>c.length+u)&&(a=c,i=l,!c.length))break;if(l.solid){if(r)break;u+=2}}if(!a)return null;this.sync(i);for(let o=0;o<a.length;o++)n=this.enterInner(a[o],null,n,!1);return n}insertNode(t,n,r){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let a=this.findPlace(t,n,r);if(a){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let o=Lt.none;for(let u of a.concat(t.marks))(i.type?i.type.allowsMarkType(u.type):Tc(u.type,t.type))&&(o=u.addToSet(o));return i.content.push(t.mark(o)),!0}return!1}enter(t,n,r,a){let i=this.findPlace(t.create(n),r,!1);return i&&(i=this.enterInner(t,n,r,!0,a)),i}enterInner(t,n,r,a=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let u=Ac(t,i,o.options);o.options&Gr&&o.content.length==0&&(u|=Gr);let l=Lt.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):Tc(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new ni(t,n,l,a,null,u)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Wr)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let a=r.length-1;a>=0;a--)t+=r[a].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let a=0;a<this.find.length;a++)this.find[a].pos==null&&t.nodeType==1&&t.contains(this.find[a].node)&&n.compareDocumentPosition(this.find[a].node)&(r?2:4)&&(this.find[a].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),o=(u,l)=>{for(;u>=0;u--){let c=n[u];if(c==""){if(u==n.length-1||u==0)continue;for(;l>=i;l--)if(o(u-1,l))return!0;return!1}else{let f=l>0||l==0&&a?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!f||f.name!=c&&!f.isInGroup(c))return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function Og(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&bc.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function Lg(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function yc(e){let t={};for(let n in e)t[n]=e[n];return t}function Tc(e,t){let n=t.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(e))continue;let i=[],o=u=>{i.push(u);for(let l=0;l<u.edgeCount;l++){let{type:c,next:f}=u.edge(l);if(c==t||i.indexOf(f)<0&&o(f))return!0}};if(o(a.contentMatch))return!0}}class ri{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=Js(n).createDocumentFragment());let a=r,i=[];return t.forEach(o=>{if(i.length||o.marks.length){let u=0,l=0;for(;u<i.length&&l<o.marks.length;){let c=o.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[u][0])||c.type.spec.spanning===!1)break;u++,l++}for(;u<i.length;)a=i.pop()[1];for(;l<o.marks.length;){let c=o.marks[l++],f=this.serializeMark(c,o.isInline,n);f&&(i.push([c,a]),a.appendChild(f.dom),a=f.contentDOM||f.dom)}}a.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(t,n){let{dom:r,contentDOM:a}=ai(Js(n),this.nodes[t.type.name](t),null,t.attrs);if(a){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,a)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let a=t.marks.length-1;a>=0;a--){let i=this.serializeMark(t.marks[a],t.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(t,n,r={}){let a=this.marks[t.type.name];return a&&ai(Js(r),a(t,n),null,t.attrs)}static renderSpec(t,n,r=null,a){return ai(t,n,r,a)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new ri(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=kc(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return kc(t.marks)}}function kc(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Js(e){return e.document||window.document}const Nc=new WeakMap;function Bg(e){let t=Nc.get(e);return t===void 0&&Nc.set(e,t=Rg(e)),t}function Rg(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let a=0;a<r.length;a++)n(r[a]);else for(let a in r)n(r[a])}return n(e),t}function ai(e,t,n,r){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let a=t[0],i;if(typeof a!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=Bg(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=a.indexOf(" ");o>0&&(n=a.slice(0,o),a=a.slice(o+1));let u,l=n?e.createElementNS(n,a):e.createElement(a),c=t[1],f=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){f=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=f;d<t.length;d++){let p=t[d];if(p===0){if(d<t.length-1||d>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:g,contentDOM:m}=ai(e,p,n,r);if(l.appendChild(g),m){if(u)throw new RangeError("Multiple content holes");u=m}}}return{dom:l,contentDOM:u}}const Ic=65535,wc=Math.pow(2,16);function Pg(e,t){return e+t*wc}function Cc(e){return e&Ic}function Ug(e){return(e-(e&Ic))/wc}const _c=1,xc=2,ii=4,Mc=8;class Sc{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Mc)>0}get deletedBefore(){return(this.delInfo&(_c|ii))>0}get deletedAfter(){return(this.delInfo&(xc|ii))>0}get deletedAcross(){return(this.delInfo&ii)>0}}class xt{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&xt.empty)return xt.empty}recover(t){let n=0,r=Cc(t);if(!this.inverted)for(let a=0;a<r;a++)n+=this.ranges[a*3+2]-this.ranges[a*3+1];return this.ranges[r*3]+n+Ug(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let a=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let l=this.ranges[u]-(this.inverted?a:0);if(l>t)break;let c=this.ranges[u+i],f=this.ranges[u+o],d=l+c;if(t<=d){let p=c?t==l?-1:t==d?1:n:n,g=l+a+(p<0?0:f);if(r)return g;let m=t==(n<0?l:d)?null:Pg(u/3,t-l),b=t==l?xc:t==d?_c:ii;return(n<0?t!=l:t!=d)&&(b|=Mc),new Sc(g,b,m)}a+=f-c}return r?t+a:new Sc(t+a,0,null)}touches(t,n){let r=0,a=Cc(n),i=this.inverted?2:1,o=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let l=this.ranges[u]-(this.inverted?r:0);if(l>t)break;let c=this.ranges[u+i],f=l+c;if(t<=f&&u==a*3)return!0;r+=this.ranges[u+o]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,i=0;a<this.ranges.length;a+=3){let o=this.ranges[a],u=o-(this.inverted?i:0),l=o+(this.inverted?0:i),c=this.ranges[a+n],f=this.ranges[a+r];t(u,u+c,l,l+f),i+=f-c}}invert(){return new xt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?xt.empty:new xt(t<0?[0,-t,0]:[0,0,t])}}xt.empty=new xt([]);const Zs=Object.create(null);class ft{getMap(){return xt.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Zs[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in Zs)throw new RangeError("Duplicate use of step JSON ID "+t);return Zs[t]=n,n.prototype.jsonID=t,n}}class Je{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new Je(t,null)}static fail(t){return new Je(null,t)}static fromReplace(t,n,r,a){try{return Je.ok(t.replace(n,r,a))}catch(i){if(i instanceof xg)return Je.fail(i.message);throw i}}}function Xs(e,t,n){let r=[];for(let a=0;a<e.childCount;a++){let i=e.child(a);i.content.size&&(i=i.copy(Xs(i.content,t,i))),i.isInline&&(i=t(i,n,a)),r.push(i)}return Ae.fromArray(r)}class Vn extends ft{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),a=r.node(r.sharedDepth(this.to)),i=new pe(Xs(n.content,(o,u)=>!o.isAtom||!u.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),a),n.openStart,n.openEnd);return Je.fromReplace(t,this.from,this.to,i)}invert(){return new Yn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Vn(n.pos,r.pos,this.mark)}merge(t){return t instanceof Vn&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Vn(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Vn(n.from,n.to,t.markFromJSON(n.mark))}}ft.jsonID("addMark",Vn);class Yn extends ft{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new pe(Xs(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),t),n.openStart,n.openEnd);return Je.fromReplace(t,this.from,this.to,r)}invert(){return new Vn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Yn(n.pos,r.pos,this.mark)}merge(t){return t instanceof Yn&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Yn(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Yn(n.from,n.to,t.markFromJSON(n.mark))}}ft.jsonID("removeMark",Yn);class Qn extends ft{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Je.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Je.fromReplace(t,this.pos,this.pos+1,new pe(Ae.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let a=0;a<n.marks.length;a++)if(!n.marks[a].isInSet(r))return new Qn(this.pos,n.marks[a]);return new Qn(this.pos,this.mark)}}return new $r(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Qn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Qn(n.pos,t.markFromJSON(n.mark))}}ft.jsonID("addNodeMark",Qn);class $r extends ft{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Je.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Je.fromReplace(t,this.pos,this.pos+1,new pe(Ae.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Qn(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new $r(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new $r(n.pos,t.markFromJSON(n.mark))}}ft.jsonID("removeNodeMark",$r);class gn extends ft{constructor(t,n,r,a=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=a}apply(t){return this.structure&&eo(t,this.from,this.to)?Je.fail("Structure replace would overwrite content"):Je.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new xt([this.from,this.to-this.from,this.slice.size])}invert(t){return new gn(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new gn(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(t){if(!(t instanceof gn)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?pe.empty:new pe(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new gn(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?pe.empty:new pe(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new gn(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new gn(n.from,n.to,pe.fromJSON(t,n.slice),!!n.structure)}}ft.jsonID("replace",gn);class Ar extends ft{constructor(t,n,r,a,i,o,u=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=o,this.structure=u}apply(t){if(this.structure&&(eo(t,this.from,this.gapFrom)||eo(t,this.gapTo,this.to)))return Je.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Je.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Je.fromReplace(t,this.from,this.to,r):Je.fail("Content does not fit in gap")}getMap(){return new xt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Ar(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),a=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||a<n.pos||i>r.pos?null:new Ar(n.pos,r.pos,a,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ar(n.from,n.to,n.gapFrom,n.gapTo,pe.fromJSON(t,n.slice),n.insert,!!n.structure)}}ft.jsonID("replaceAround",Ar);function eo(e,t,n){let r=e.resolve(t),a=n-t,i=r.depth;for(;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0){let o=r.node(i).maybeChild(r.indexAfter(i));for(;a>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,a--}}return!1}function Fg(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let a=n.content;for(let i=0;i<n.openStart;i++)a=a.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let o=r.depth;o>=0;o--){let u=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(u>0?1:0),c=r.node(o),f=!1;if(i==1)f=c.canReplace(l,l,a);else{let d=c.contentMatchAt(l).findWrapping(a.firstChild.type);f=d&&c.canReplaceWith(l,l,d[0])}if(f)return u==0?r.pos:u<0?r.before(o+1):r.after(o+1)}return null}class qr extends ft{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Je.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let a=n.type.create(r,null,n.marks);return Je.fromReplace(t,this.pos,this.pos+1,new pe(Ae.from(a),0,n.isLeaf?0:1))}getMap(){return xt.empty}invert(t){return new qr(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new qr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new qr(n.pos,n.attr,n.value)}}ft.jsonID("attr",qr);class si extends ft{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let a in t.attrs)n[a]=t.attrs[a];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Je.ok(r)}getMap(){return xt.empty}invert(t){return new si(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new si(n.attr,n.value)}}ft.jsonID("docAttr",si);let Jr=class extends Error{};Jr=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Jr.prototype=Object.create(Error.prototype),Jr.prototype.constructor=Jr,Jr.prototype.name="TransformError";const to=Object.create(null);class _e{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new Dc(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=pe.empty){let r=n.content.lastChild,a=null;for(let u=0;u<n.openEnd;u++)a=r,r=r.lastChild;let i=t.steps.length,o=this.ranges;for(let u=0;u<o.length;u++){let{$from:l,$to:c}=o[u],f=t.mapping.slice(i);t.replaceRange(f.map(l.pos),f.map(c.pos),u?pe.empty:n),u==0&&Lc(t,i,(r?r.isInline:a&&a.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,a=this.ranges;for(let i=0;i<a.length;i++){let{$from:o,$to:u}=a[i],l=t.mapping.slice(r),c=l.map(o.pos),f=l.map(u.pos);i?t.deleteRange(c,f):(t.replaceRangeWith(c,f,n),Lc(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let a=t.parent.inlineContent?new Ye(t):Er(t.node(0),t.parent,t.pos,t.index(),n,r);if(a)return a;for(let i=t.depth-1;i>=0;i--){let o=n<0?Er(t.node(0),t.node(i),t.before(i+1),t.index(i),n,r):Er(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new tn(t.node(0))}static atStart(t){return Er(t,t,0,0,1)||new tn(t)}static atEnd(t){return Er(t,t,t.content.size,t.childCount,-1)||new tn(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=to[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in to)throw new RangeError("Duplicate use of selection JSON ID "+t);return to[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ye.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class Dc{constructor(t,n){this.$from=t,this.$to=n}}let vc=!1;function Oc(e){!vc&&!e.parent.inlineContent&&(vc=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ye extends _e{constructor(t,n=t){Oc(t),Oc(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return _e.near(r);let a=t.resolve(n.map(this.anchor));return new Ye(a.parent.inlineContent?a:r,r)}replace(t,n=pe.empty){if(super.replace(t,n),n==pe.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Ye&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new oi(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ye(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let a=t.resolve(n);return new this(a,r==n?a:t.resolve(r))}static between(t,n,r){let a=t.pos-n.pos;if((!r||a)&&(r=a>=0?1:-1),!n.parent.inlineContent){let i=_e.findFrom(n,r,!0)||_e.findFrom(n,-r,!0);if(i)n=i.$head;else return _e.near(n,r)}return t.parent.inlineContent||(a==0?t=n:(t=(_e.findFrom(t,-r,!0)||_e.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=a<0&&(t=n))),new Ye(t,n)}}_e.jsonID("text",Ye);class oi{constructor(t,n){this.anchor=t,this.head=n}map(t){return new oi(t.map(this.anchor),t.map(this.head))}resolve(t){return Ye.between(t.resolve(this.anchor),t.resolve(this.head))}}class ke extends _e{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:a}=n.mapResult(this.anchor),i=t.resolve(a);return r?_e.near(i):new ke(i)}content(){return new pe(Ae.from(this.node),0,0)}eq(t){return t instanceof ke&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new no(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new ke(t.resolve(n.anchor))}static create(t,n){return new ke(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}ke.prototype.visible=!1,_e.jsonID("node",ke);class no{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new oi(r,r):new no(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&ke.isSelectable(r)?new ke(n):_e.near(n)}}class tn extends _e{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=pe.empty){if(n==pe.empty){t.delete(0,t.doc.content.size);let r=_e.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new tn(t)}map(t){return new tn(t)}eq(t){return t instanceof tn}getBookmark(){return Hg}}_e.jsonID("all",tn);const Hg={map(){return this},resolve(e){return new tn(e)}};function Er(e,t,n,r,a,i=!1){if(t.inlineContent)return Ye.create(e,n);for(let o=r-(a>0?0:1);a>0?o<t.childCount:o>=0;o+=a){let u=t.child(o);if(u.isAtom){if(!i&&ke.isSelectable(u))return ke.create(e,n-(a<0?u.nodeSize:0))}else{let l=Er(e,u,n+a,a<0?u.childCount:0,a,i);if(l)return l}n+=u.nodeSize*a}return null}function Lc(e,t,n){let r=e.steps.length-1;if(r<t)return;let a=e.steps[r];if(!(a instanceof gn||a instanceof Ar))return;let i=e.mapping.maps[r],o;i.forEach((u,l,c,f)=>{o==null&&(o=f)}),e.setSelection(_e.near(e.doc.resolve(o),n))}function Bc(e,t){return!t||!e?e:e.bind(t)}class ui{constructor(t,n,r){this.name=t,this.init=Bc(n.init,r),this.apply=Bc(n.apply,r)}}new ui("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new ui("selection",{init(e,t){return e.selection||_e.atStart(t.doc)},apply(e){return e.selection}}),new ui("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new ui("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function Rc(e,t,n){for(let r in e){let a=e[r];a instanceof Function?a=a.bind(t):r=="handleDOMEvents"&&(a=Rc(a,t,{})),n[r]=a}return n}class Zr{constructor(t){this.spec=t,this.props={},t.props&&Rc(t.props,this,this.props),this.key=t.key?t.key.key:Pc("plugin")}getState(t){return t[this.key]}}const ro=Object.create(null);function Pc(e){return e in ro?e+"$"+ ++ro[e]:(ro[e]=0,e+"$")}class Vt{constructor(t="key"){this.key=Pc(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Kn=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Uc=function(e,t,n,r){return n&&(Fc(e,t,n,r,-1)||Fc(e,t,n,r,1))},zg=/^(img|br|input|textarea|hr)$/i;function Fc(e,t,n,r,a){for(var i;;){if(e==n&&t==r)return!0;if(t==(a<0?0:li(e))){let o=e.parentNode;if(!o||o.nodeType!=1||ao(e)||zg.test(e.nodeName)||e.contentEditable=="false")return!1;t=Kn(e)+(a<0?0:1),e=o}else if(e.nodeType==1){let o=e.childNodes[t+(a<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((i=o.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)t+=a;else return!1;else e=o,t=a<0?li(e):0}else return!1}}function li(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function jg(e,t,n){for(let r=t==0,a=t==li(e);r||a;){if(e==n)return!0;let i=Kn(e);if(e=e.parentNode,!e)return!1;r=r&&i==0,a=a&&i==li(e)}}function ao(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Hc=function(e){return e.focusNode&&Uc(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function zc(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const nn=typeof navigator<"u"?navigator:null,jc=typeof document<"u"?document:null,xn=nn&&nn.userAgent||"",io=/Edge\/(\d+)/.exec(xn),Vc=/MSIE \d/.exec(xn),so=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xn),Xr=!!(Vc||so||io),Yc=Vc?document.documentMode:so?+so[1]:io?+io[1]:0,ci=!Xr&&/gecko\/(\d+)/i.test(xn);ci&&+(/Firefox\/(\d+)/.exec(xn)||[0,0])[1];const oo=!Xr&&/Chrome\/(\d+)/.exec(xn),mn=!!oo,Qc=oo?+oo[1]:0,Wn=!Xr&&!!nn&&/Apple Computer/.test(nn.vendor),uo=Wn&&(/Mobile\/\w+/.test(xn)||!!nn&&nn.maxTouchPoints>2),Bt=uo||(nn?/Mac/.test(nn.platform):!1),Kc=nn?/Win/.test(nn.platform):!1,ea=/Android \d/.test(xn),lo=!!jc&&"webkitFontSmoothing"in jc.documentElement.style,Vg=lo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Yg(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let a=e.docView.nearestDesc(n.focusNode),i=a&&a.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let u=r.resolve(o),l,c;if(Hc(n)){for(l=o;a&&!a.node;)a=a.parent;let d=a.node;if(a&&d.isAtom&&ke.isSelectable(d)&&a.parent&&!(d.isInline&&jg(n.focusNode,n.focusOffset,a.dom))){let p=a.posBefore;c=new ke(o==p?u:r.resolve(p))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=o,p=o;for(let g=0;g<n.rangeCount;g++){let m=n.getRangeAt(g);d=Math.min(d,e.docView.posFromDOM(m.startContainer,m.startOffset,1)),p=Math.max(p,e.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(d<0)return null;[l,o]=p==e.state.selection.anchor?[p,d]:[d,p],u=r.resolve(o)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let f=r.resolve(l);if(!c){let d=t=="pointer"||e.state.selection.head<u.pos&&!i?1:-1;c=Zc(e,f,u,d)}return c}function Wc(e){return e.editable?e.hasFocus():Gg(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function co(e,t=!1){let n=e.state.selection;if(Wg(e,n),!!Wc(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&mn){let r=e.domSelectionRange(),a=e.domObserver.currentSelection;if(r.anchorNode&&a.anchorNode&&Uc(r.anchorNode,r.anchorOffset,a.anchorNode,a.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Kg(e);else{let{anchor:r,head:a}=n,i,o;Gc&&!(n instanceof Ye)&&(n.$from.parent.inlineContent||(i=$c(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=$c(e,n.to))),e.docView.setSelection(r,a,e,t),Gc&&(i&&qc(i),o&&qc(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Qg(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Gc=Wn||mn&&Qc<63;function $c(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),a=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Wn&&a&&a.contentEditable=="false")return fo(a);if((!a||a.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(a)return fo(a);if(i)return fo(i)}}function fo(e){return e.contentEditable="true",Wn&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function qc(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Qg(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,a=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=a)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Wc(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Kg(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,Kn(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Xr&&Yc<=11&&(n.disabled=!0,n.disabled=!1)}function Wg(e,t){if(t instanceof ke){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Jc(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Jc(e)}function Jc(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Zc(e,t,n,r){return e.someProp("createSelectionBetween",a=>a(e,t,n))||Ye.between(t,n,r)}function Gg(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function ho(e,t){let{$anchor:n,$head:r}=e.selection,a=t>0?n.max(r):n.min(r),i=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return i&&_e.findFrom(i,t)}function Mn(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Xc(e,t,n){let r=e.state.selection;if(r instanceof Ye)if(n.indexOf("s")>-1){let{$head:a}=r,i=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=e.state.doc.resolve(a.pos+i.nodeSize*(t<0?-1:1));return Mn(e,new Ye(r.$anchor,o))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let a=ho(e.state,t);return a&&a instanceof ke?Mn(e,a):!1}else if(!(Bt&&n.indexOf("m")>-1)){let a=r.$head,i=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter,o;if(!i||i.isText)return!1;let u=t<0?a.pos-i.nodeSize:a.pos;return i.isAtom||(o=e.docView.descAt(u))&&!o.contentDOM?ke.isSelectable(i)?Mn(e,new ke(t<0?e.state.doc.resolve(a.pos-i.nodeSize):a)):lo?Mn(e,new Ye(e.state.doc.resolve(t<0?u:u+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ke&&r.node.isInline)return Mn(e,new Ye(t>0?r.$to:r.$from));{let a=ho(e.state,t);return a?Mn(e,a):!1}}}function fi(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function ta(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function yr(e,t){return t<0?$g(e):qg(e)}function $g(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a,i,o=!1;for(ci&&n.nodeType==1&&r<fi(n)&&ta(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let u=n.childNodes[r-1];if(ta(u,-1))a=n,i=--r;else if(u.nodeType==3)n=u,r=n.nodeValue.length;else break}}else{if(ef(n))break;{let u=n.previousSibling;for(;u&&ta(u,-1);)a=n.parentNode,i=Kn(u),u=u.previousSibling;if(u)n=u,r=fi(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?po(e,n,r):a&&po(e,a,i)}function qg(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a=fi(n),i,o;for(;;)if(r<a){if(n.nodeType!=1)break;let u=n.childNodes[r];if(ta(u,1))i=n,o=++r;else break}else{if(ef(n))break;{let u=n.nextSibling;for(;u&&ta(u,1);)i=u.parentNode,o=Kn(u)+1,u=u.nextSibling;if(u)n=u,r=0,a=fi(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}}i&&po(e,i,o)}function ef(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Jg(e,t){for(;e&&t==e.childNodes.length&&!ao(e);)t=Kn(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function Zg(e,t){for(;e&&!t&&!ao(e);)t=Kn(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function po(e,t,n){if(t.nodeType!=3){let i,o;(o=Jg(t,n))?(t=o,n=0):(i=Zg(t,n))&&(t=i,n=i.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Hc(r)){let i=document.createRange();i.setEnd(t,n),i.setStart(t,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&co(e)},50)}function tf(e,t){let n=e.state.doc.resolve(t);if(!(mn||Kc)&&n.parent.inlineContent){let a=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left<a.left?"ltr":"rtl"}if(t<n.end()){let i=e.coordsAtPos(t+1),o=(i.top+i.bottom)/2;if(o>a.top&&o<a.bottom&&Math.abs(i.left-a.left)>1)return i.left>a.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function nf(e,t,n){let r=e.state.selection;if(r instanceof Ye&&!r.empty||n.indexOf("s")>-1||Bt&&n.indexOf("m")>-1)return!1;let{$from:a,$to:i}=r;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=ho(e.state,t);if(o&&o instanceof ke)return Mn(e,o)}if(!a.parent.inlineContent){let o=t<0?a:i,u=r instanceof tn?_e.near(o,t):_e.findFrom(o,t);return u?Mn(e,u):!1}return!1}function rf(e,t){if(!(e.state.selection instanceof Ye))return!0;let{$head:n,$anchor:r,empty:a}=e.state.selection;if(!n.sameParent(r))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let o=e.state.tr;return t<0?o.delete(n.pos-i.nodeSize,n.pos):o.delete(n.pos,n.pos+i.nodeSize),e.dispatch(o),!0}return!1}function af(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Xg(e){if(!Wn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;af(e,r,"true"),setTimeout(()=>af(e,r,"false"),20)}return!1}function em(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function tm(e,t){let n=t.keyCode,r=em(t);if(n==8||Bt&&n==72&&r=="c")return rf(e,-1)||yr(e,-1);if(n==46&&!t.shiftKey||Bt&&n==68&&r=="c")return rf(e,1)||yr(e,1);if(n==13||n==27)return!0;if(n==37||Bt&&n==66&&r=="c"){let a=n==37?tf(e,e.state.selection.from)=="ltr"?-1:1:-1;return Xc(e,a,r)||yr(e,a)}else if(n==39||Bt&&n==70&&r=="c"){let a=n==39?tf(e,e.state.selection.from)=="ltr"?1:-1:1;return Xc(e,a,r)||yr(e,a)}else{if(n==38||Bt&&n==80&&r=="c")return nf(e,-1,r)||yr(e,-1);if(n==40||Bt&&n==78&&r=="c")return Xg(e)||nf(e,1,r)||yr(e,1);if(r==(Bt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function sf(e,t){e.someProp("transformCopied",g=>{t=g(t,e)});let n=[],{content:r,openStart:a,openEnd:i}=t;for(;a>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){a--,i--;let g=r.firstChild;n.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),r=g.content}let o=e.someProp("clipboardSerializer")||ri.fromSchema(e.state.schema),u=pf(),l=u.createElement("div");l.appendChild(o.serializeFragment(r,{document:u}));let c=l.firstChild,f,d=0;for(;c&&c.nodeType==1&&(f=df[c.nodeName.toLowerCase()]);){for(let g=f.length-1;g>=0;g--){let m=u.createElement(f[g]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${a} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=e.someProp("clipboardTextSerializer",g=>g(t,e))||t.content.textBetween(0,t.content.size,`
|
|
4
|
+
|
|
5
|
+
`);return{dom:l,text:p,slice:t}}function of(e,t,n,r,a){let i=a.parent.type.spec.code,o,u;if(!n&&!t)return null;let l=!!t&&(r||i||!n);if(l){if(e.someProp("transformPastedText",p=>{t=p(t,i||r,e)}),i)return u=new pe(Ae.from(e.state.schema.text(t.replace(/\r\n?/g,`
|
|
6
|
+
`))),0,0),e.someProp("transformPasted",p=>{u=p(u,e,!0)}),u;let d=e.someProp("clipboardTextParser",p=>p(t,a,r,e));if(d)u=d;else{let p=a.marks(),{schema:g}=e.state,m=ri.fromSchema(g);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(b=>{let A=o.appendChild(document.createElement("p"));b&&A.appendChild(m.serializeNode(g.text(b,p)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),o=im(n),lo&&sm(o);let c=o&&o.querySelector("[data-pm-slice]"),f=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let d=+f[3];d>0;d--){let p=o.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;o=p}if(u||(u=(e.someProp("clipboardParser")||e.someProp("domParser")||Dg.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||f),context:a,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!nm.test(p.parentNode.nodeName)?{ignore:!0}:null}})),f)u=om(ff(u,+f[1],+f[2]),f[4]);else if(u=pe.maxOpen(rm(u.content,a),!0),u.openStart||u.openEnd){let d=0,p=0;for(let g=u.content.firstChild;d<u.openStart&&!g.type.spec.isolating;d++,g=g.firstChild);for(let g=u.content.lastChild;p<u.openEnd&&!g.type.spec.isolating;p++,g=g.lastChild);u=ff(u,d,p)}return e.someProp("transformPasted",d=>{u=d(u,e,l)}),u}const nm=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function rm(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let a=t.node(n).contentMatchAt(t.index(n)),i,o=[];if(e.forEach(u=>{if(!o)return;let l=a.findWrapping(u.type),c;if(!l)return o=null;if(c=o.length&&i.length&&lf(l,i,u,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=cf(o[o.length-1],i.length));let f=uf(u,l);o.push(f),a=a.matchType(f.type),i=l}}),o)return Ae.from(o)}return e}function uf(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Ae.from(e));return e}function lf(e,t,n,r,a){if(a<e.length&&a<t.length&&e[a]==t[a]){let i=lf(e,t,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(a==e.length-1?n.type:e[a+1]))return r.copy(r.content.append(Ae.from(uf(n,e,a+1))))}}function cf(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,cf(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Ae.empty,!0);return e.copy(n.append(r))}function go(e,t,n,r,a,i){let o=t<0?e.firstChild:e.lastChild,u=o.content;return e.childCount>1&&(i=0),a<r-1&&(u=go(u,t,n,r,a+1,i)),a>=n&&(u=t<0?o.contentMatchAt(0).fillBefore(u,i<=a).append(u):u.append(o.contentMatchAt(o.childCount).fillBefore(Ae.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(u))}function ff(e,t,n){return t<e.openStart&&(e=new pe(go(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new pe(go(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const df={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let hf=null;function pf(){return hf||(hf=document.implementation.createHTMLDocument("title"))}let mo=null;function am(e){let t=window.trustedTypes;return t?(mo||(mo=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),mo.createHTML(e)):e}function im(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=pf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),a;if((a=r&&df[r[1].toLowerCase()])&&(e=a.map(i=>"<"+i+">").join("")+e+a.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=am(e),a)for(let i=0;i<a.length;i++)n=n.querySelector(a[i])||n;return n}function sm(e){let t=e.querySelectorAll(mn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function om(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:a,openStart:i,openEnd:o}=e;for(let u=r.length-2;u>=0;u-=2){let l=n.nodes[r[u]];if(!l||l.hasRequiredAttrs())break;a=Ae.from(l.create(r[u+1],a)),i++,o++}return new pe(a,i,o)}const Yt={},Mt={};function Sn(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}Mt.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!mf(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ea&&mn&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),uo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",a=>a(e,zc(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||tm(e,n)?n.preventDefault():Sn(e,"key")},Mt.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},Mt.keypress=(e,t)=>{let n=t;if(mf(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Bt&&n.metaKey)return;if(e.someProp("handleKeyPress",a=>a(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Ye)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,a,i))&&e.dispatch(i()),n.preventDefault()}};function di(e){return{left:e.clientX,top:e.clientY}}function um(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function bo(e,t,n,r,a){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let o=i.depth+1;o>0;o--)if(e.someProp(t,u=>o>i.depth?u(e,n,i.nodeAfter,i.before(o),a,!0):u(e,n,i.node(o),i.before(o),a,!1)))return!0;return!1}function Tr(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function lm(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&ke.isSelectable(r)?(Tr(e,new ke(n)),!0):!1}function cm(e,t){if(t==-1)return!1;let n=e.state.selection,r,a;n instanceof ke&&(r=n.node);let i=e.state.doc.resolve(t);for(let o=i.depth+1;o>0;o--){let u=o>i.depth?i.nodeAfter:i.node(o);if(ke.isSelectable(u)){r&&n.$from.depth>0&&o>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?a=i.before(n.$from.depth):a=i.before(o);break}}return a!=null?(Tr(e,ke.create(e.state.doc,a)),!0):!1}function fm(e,t,n,r,a){return bo(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(a?cm(e,n):lm(e,n))}function dm(e,t,n,r){return bo(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",a=>a(e,t,r))}function hm(e,t,n,r){return bo(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",a=>a(e,t,r))||pm(e,n,r)}function pm(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Tr(e,Ye.create(r,0,r.content.size)),!0):!1;let a=r.resolve(t);for(let i=a.depth+1;i>0;i--){let o=i>a.depth?a.nodeAfter:a.node(i),u=a.before(i);if(o.inlineContent)Tr(e,Ye.create(r,u+1,u+1+o.content.size));else if(ke.isSelectable(o))Tr(e,ke.create(r,u));else continue;return!0}}function Ao(e){return hi(e)}const gf=Bt?"metaKey":"ctrlKey";Yt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Ao(e),a=Date.now(),i="singleClick";a-e.input.lastClick.time<500&&um(n,e.input.lastClick)&&!n[gf]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:i,button:n.button};let o=e.posAtCoords(di(n));o&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new gm(e,o,n,!!r)):(i=="doubleClick"?dm:hm)(e,o.pos,o.inside,n)?n.preventDefault():Sn(e,"pointer"))};class gm{constructor(t,n,r,a){this.view=t,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[gf],this.allowDefault=r.shiftKey;let i,o;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),o=n.inside;else{let f=t.state.doc.resolve(n.pos);i=f.parent,o=f.depth?f.before():0}const u=a?null:r.target,l=u?t.docView.nearestDesc(u,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof ke&&c.from<=o&&c.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ci&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Sn(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>co(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(di(t))),this.updateAllowDefault(t),this.allowDefault||!n?Sn(this.view,"pointer"):fm(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Wn&&this.mightDrag&&!this.mightDrag.node.isAtom||mn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Tr(this.view,_e.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Sn(this.view,"pointer")}move(t){this.updateAllowDefault(t),Sn(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Yt.touchstart=e=>{e.input.lastTouch=Date.now(),Ao(e),Sn(e,"pointer")},Yt.touchmove=e=>{e.input.lastTouch=Date.now(),Sn(e,"pointer")},Yt.contextmenu=e=>Ao(e);function mf(e,t){return e.composing?!0:Wn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const mm=ea?5e3:-1;Mt.compositionstart=Mt.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ye&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||mn&&Kc&&bm(e)))e.markCursor=e.state.storedMarks||n.marks(),hi(e,!0),e.markCursor=null;else if(hi(e,!t.selection.empty),ci&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let a=r.focusNode,i=r.focusOffset;a&&a.nodeType==1&&i!=0;){let o=i<0?a.lastChild:a.childNodes[i-1];if(!o)break;if(o.nodeType==3){let u=e.domSelection();u&&u.collapse(o,o.nodeValue.length);break}else a=o,i=-1}}e.input.composing=!0}bf(e,mm)};function bm(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Mt.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,bf(e,20))};function bf(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>hi(e),t))}function Am(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Em());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Em(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function hi(e,t=!1){if(!(ea&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Am(e),t||e.docView&&e.docView.dirty){let n=Yg(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function ym(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const na=Xr&&Yc<15||uo&&Vg<604;Yt.copy=Mt.cut=(e,t)=>{let n=t,r=e.state.selection,a=n.type=="cut";if(r.empty)return;let i=na?null:n.clipboardData,o=r.content(),{dom:u,text:l}=sf(e,o);i?(n.preventDefault(),i.clearData(),i.setData("text/html",u.innerHTML),i.setData("text/plain",l)):ym(e,u),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Tm(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function km(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Eo(e,r.value,null,a,t):Eo(e,r.textContent,r.innerHTML,a,t)},50)}function Eo(e,t,n,r,a){let i=of(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,a,i||pe.empty)))return!0;if(!i)return!1;let o=Tm(i),u=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(i);return e.dispatch(u.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Af(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Mt.paste=(e,t)=>{let n=t;if(e.composing&&!ea)return;let r=na?null:n.clipboardData,a=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&Eo(e,Af(r),r.getData("text/html"),a,n)?n.preventDefault():km(e,n)};class Nm{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const Im=Bt?"altKey":"ctrlKey";function Ef(e,t){let n=e.someProp("dragCopies",r=>!r(t));return n??!t[Im]}Yt.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=e.state.selection,i=a.empty?null:e.posAtCoords(di(n)),o;if(!(i&&i.pos>=a.from&&i.pos<=(a instanceof ke?a.to-1:a.to))){if(r&&r.mightDrag)o=ke.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(o=ke.create(e.state.doc,d.posBefore))}}let u=(o||e.state.selection).content(),{dom:l,text:c,slice:f}=sf(e,u);(!n.dataTransfer.files.length||!mn||Qc>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(na?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",na||n.dataTransfer.setData("text/plain",c),e.dragging=new Nm(f,Ef(e,n),o)},Yt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Mt.dragover=Mt.dragenter=(e,t)=>t.preventDefault(),Mt.drop=(e,t)=>{try{wm(e,t,e.dragging)}finally{e.dragging=null}};function wm(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(di(t));if(!r)return;let a=e.state.doc.resolve(r.pos),i=n&&n.slice;i?e.someProp("transformPasted",g=>{i=g(i,e,!1)}):i=of(e,Af(t.dataTransfer),na?null:t.dataTransfer.getData("text/html"),!1,a);let o=!!(n&&Ef(e,t));if(e.someProp("handleDrop",g=>g(e,t,i||pe.empty,o))){t.preventDefault();return}if(!i)return;t.preventDefault();let u=i?Fg(e.state.doc,a.pos,i):a.pos;u==null&&(u=a.pos);let l=e.state.tr;if(o){let{node:g}=n;g?g.replace(l):l.deleteSelection()}let c=l.mapping.map(u),f=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),l.doc.eq(d))return;let p=l.doc.resolve(c);if(f&&ke.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new ke(p));else{let g=l.mapping.map(u);l.mapping.maps[l.mapping.maps.length-1].forEach((m,b,A,E)=>g=E),l.setSelection(Zc(e,p,l.doc.resolve(g)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}Yt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&co(e)},20))},Yt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Yt.beforeinput=(e,t)=>{if(mn&&ea&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,zc(8,"Backspace")))))return;let{$cursor:a}=e.state.selection;a&&a.pos>0&&e.dispatch(e.state.tr.delete(a.pos-1,a.pos).scrollIntoView())},50)}};for(let e in Mt)Yt[e]=Mt[e];function ra(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class pi{constructor(t,n){this.toDOM=t,this.spec=n||Gn,this.side=this.spec.side||0}map(t,n,r,a){let{pos:i,deleted:o}=t.mapResult(n.from+a,this.side<0?-1:1);return o?null:new Qt(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof pi&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&ra(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Dn{constructor(t,n){this.attrs=t,this.spec=n||Gn}map(t,n,r,a){let i=t.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return i>=o?null:new Qt(i,o,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Dn&&ra(this.attrs,t.attrs)&&ra(this.spec,t.spec)}static is(t){return t.type instanceof Dn}destroy(){}}class yo{constructor(t,n){this.attrs=t,this.spec=n||Gn}map(t,n,r,a){let i=t.mapResult(n.from+a,1);if(i.deleted)return null;let o=t.mapResult(n.to+a,-1);return o.deleted||o.pos<=i.pos?null:new Qt(i.pos-r,o.pos-r,this)}valid(t,n){let{index:r,offset:a}=t.content.findIndex(n.from),i;return a==n.from&&!(i=t.child(r)).isText&&a+i.nodeSize==n.to}eq(t){return this==t||t instanceof yo&&ra(this.attrs,t.attrs)&&ra(this.spec,t.spec)}destroy(){}}class Qt{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new Qt(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new Qt(t,t,new pi(n,r))}static inline(t,n,r,a){return new Qt(t,n,new Dn(r,a))}static node(t,n,r,a){return new Qt(t,n,new yo(r,a))}get spec(){return this.type.spec}get inline(){return this.type instanceof Dn}get widget(){return this.type instanceof pi}}const kr=[],Gn={};class je{constructor(t,n){this.local=t.length?t:kr,this.children=n.length?n:kr}static create(t,n){return n.length?gi(n,t,0,Gn):mt}find(t,n,r){let a=[];return this.findInner(t??0,n??1e9,a,0,r),a}findInner(t,n,r,a,i){for(let o=0;o<this.local.length;o++){let u=this.local[o];u.from<=n&&u.to>=t&&(!i||i(u.spec))&&r.push(u.copy(u.from+a,u.to+a))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>t){let u=this.children[o]+1;this.children[o+2].findInner(t-u,n-u,r,a+u,i)}}map(t,n,r){return this==mt||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Gn)}mapInner(t,n,r,a,i){let o;for(let u=0;u<this.local.length;u++){let l=this.local[u].map(t,r,a);l&&l.type.valid(n,l)?(o||(o=[])).push(l):i.onRemove&&i.onRemove(this.local[u].spec)}return this.children.length?Cm(this.children,o||[],t,n,r,a,i):o?new je(o.sort(qn),kr):mt}add(t,n){return n.length?this==mt?je.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let a,i=0;t.forEach((u,l)=>{let c=l+r,f;if(f=Tf(n,u,c)){for(a||(a=this.children.slice());i<a.length&&a[i]<l;)i+=3;a[i]==l?a[i+2]=a[i+2].addInner(u,f,c+1):a.splice(i,0,l,l+u.nodeSize,gi(f,u,c+1,Gn)),i+=3}});let o=yf(i?kf(n):n,-r);for(let u=0;u<o.length;u++)o[u].type.valid(t,o[u])||o.splice(u--,1);return new je(o.length?this.local.concat(o).sort(qn):this.local,a||this.children)}remove(t){return t.length==0||this==mt?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,a=this.local;for(let i=0;i<r.length;i+=3){let o,u=r[i]+n,l=r[i+1]+n;for(let f=0,d;f<t.length;f++)(d=t[f])&&d.from>u&&d.to<l&&(t[f]=null,(o||(o=[])).push(d));if(!o)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(o,u+1);c!=mt?r[i+2]=c:(r.splice(i,3),i-=3)}if(a.length){for(let i=0,o;i<t.length;i++)if(o=t[i])for(let u=0;u<a.length;u++)a[u].eq(o,n)&&(a==this.local&&(a=this.local.slice()),a.splice(u--,1))}return r==this.children&&a==this.local?this:a.length||r.length?new je(a,r):mt}forChild(t,n){if(this==mt)return this;if(n.isLeaf)return je.empty;let r,a;for(let u=0;u<this.children.length;u+=3)if(this.children[u]>=t){this.children[u]==t&&(r=this.children[u+2]);break}let i=t+1,o=i+n.content.size;for(let u=0;u<this.local.length;u++){let l=this.local[u];if(l.from<o&&l.to>i&&l.type instanceof Dn){let c=Math.max(i,l.from)-i,f=Math.min(o,l.to)-i;c<f&&(a||(a=[])).push(l.copy(c,f))}}if(a){let u=new je(a.sort(qn),kr);return r?new $n([u,r]):u}return r||mt}eq(t){if(this==t)return!0;if(!(t instanceof je)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return To(this.localsInner(t))}localsInner(t){if(this==mt)return kr;if(t.inlineContent||!this.local.some(Dn.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Dn||n.push(this.local[r]);return n}forEachSet(t){t(this)}}je.empty=new je([],[]),je.removeOverlap=To;const mt=je.empty;class $n{constructor(t){this.members=t}map(t,n){const r=this.members.map(a=>a.map(t,n,Gn));return $n.from(r)}forChild(t,n){if(n.isLeaf)return je.empty;let r=[];for(let a=0;a<this.members.length;a++){let i=this.members[a].forChild(t,n);i!=mt&&(i instanceof $n?r=r.concat(i.members):r.push(i))}return $n.from(r)}eq(t){if(!(t instanceof $n)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let a=0;a<this.members.length;a++){let i=this.members[a].localsInner(t);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let o=0;o<i.length;o++)n.push(i[o])}}return n?To(r?n:n.sort(qn)):kr}static from(t){switch(t.length){case 0:return mt;case 1:return t[0];default:return new $n(t.every(n=>n instanceof je)?t:t.reduce((n,r)=>n.concat(r instanceof je?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function Cm(e,t,n,r,a,i,o){let u=e.slice();for(let c=0,f=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((p,g,m,b)=>{let A=b-m-(g-p);for(let E=0;E<u.length;E+=3){let w=u[E+1];if(w<0||p>w+f-d)continue;let C=u[E]+f-d;g>=C?u[E+1]=p<=C?-2:-1:p>=f&&A&&(u[E]+=A,u[E+1]+=A)}d+=A}),f=n.maps[c].map(f,-1)}let l=!1;for(let c=0;c<u.length;c+=3)if(u[c+1]<0){if(u[c+1]==-2){l=!0,u[c+1]=-1;continue}let f=n.map(e[c]+i),d=f-a;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(e[c+1]+i,-1),g=p-a,{index:m,offset:b}=r.content.findIndex(d),A=r.maybeChild(m);if(A&&b==d&&b+A.nodeSize==g){let E=u[c+2].mapInner(n,A,f+1,e[c]+i+1,o);E!=mt?(u[c]=d,u[c+1]=g,u[c+2]=E):(u[c+1]=-2,l=!0)}else l=!0}if(l){let c=_m(u,e,t,n,a,i,o),f=gi(c,r,0,o);t=f.local;for(let d=0;d<u.length;d+=3)u[d+1]<0&&(u.splice(d,3),d-=3);for(let d=0,p=0;d<f.children.length;d+=3){let g=f.children[d];for(;p<u.length&&u[p]<g;)p+=3;u.splice(p,0,f.children[d],f.children[d+1],f.children[d+2])}}return new je(t.sort(qn),u)}function yf(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let a=e[r];n.push(new Qt(a.from+t,a.to+t,a.type))}return n}function _m(e,t,n,r,a,i,o){function u(l,c){for(let f=0;f<l.local.length;f++){let d=l.local[f].map(r,a,c);d?n.push(d):o.onRemove&&o.onRemove(l.local[f].spec)}for(let f=0;f<l.children.length;f+=3)u(l.children[f+2],l.children[f]+c+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&u(e[l+2],t[l]+i+1);return n}function Tf(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,a=null;for(let i=0,o;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),e[i]=null);return a}function kf(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function gi(e,t,n,r){let a=[],i=!1;t.forEach((u,l)=>{let c=Tf(e,u,l+n);if(c){i=!0;let f=gi(c,u,n+l+1,r);f!=mt&&a.push(l,l+u.nodeSize,f)}});let o=yf(i?kf(e):e,-n).sort(qn);for(let u=0;u<o.length;u++)o[u].type.valid(t,o[u])||(r.onRemove&&r.onRemove(o[u].spec),o.splice(u--,1));return o.length||a.length?new je(o,a):mt}function qn(e,t){return e.from-t.from||e.to-t.to}function To(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let a=n+1;a<t.length;a++){let i=t[a];if(i.from==r.from){i.to!=r.to&&(t==e&&(t=e.slice()),t[a]=i.copy(i.from,r.to),Nf(t,a+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Nf(t,a,r.copy(i.from,r.to)));break}}}return t}function Nf(e,t,n){for(;t<e.length&&qn(n,e[t])>0;)t++;e.splice(t,0,n)}for(var vn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},xm=typeof navigator<"u"&&/Mac/.test(navigator.platform),Mm=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),lt=0;lt<10;lt++)vn[48+lt]=vn[96+lt]=String(lt);for(var lt=1;lt<=24;lt++)vn[lt+111]="F"+lt;for(var lt=65;lt<=90;lt++)vn[lt]=String.fromCharCode(lt+32),mi[lt]=String.fromCharCode(lt);for(var ko in vn)mi.hasOwnProperty(ko)||(mi[ko]=vn[ko]);function Sm(e){var t=xm&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Mm&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?mi:vn)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Dm=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),vm=typeof navigator<"u"&&/Win/.test(navigator.platform);function Om(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,a,i,o;for(let u=0;u<t.length-1;u++){let l=t[u];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))a=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Dm?o=!0:a=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),a&&(n="Ctrl-"+n),o&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function Lm(e){let t=Object.create(null);for(let n in e)t[Om(n)]=e[n];return t}function No(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Bm(e){let t=Lm(e);return function(n,r){let a=Sm(r),i,o=t[No(a,r)];if(o&&o(n.state,n.dispatch,n))return!0;if(a.length==1&&a!=" "){if(r.shiftKey){let u=t[No(a,r,!1)];if(u&&u(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(vm&&r.ctrlKey&&r.altKey)&&(i=vn[r.keyCode])&&i!=a){let u=t[No(i,r)];if(u&&u(n.state,n.dispatch,n))return!0}}return!1}}let Io,wo;if(typeof WeakMap<"u"){let e=new WeakMap;Io=t=>e.get(t),wo=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;Io=r=>{for(let a=0;a<e.length;a+=2)if(e[a]==r)return e[a+1]},wo=(r,a)=>(n==10&&(n=0),e[n++]=r,e[n++]=a)}var bn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,a=t/this.width|0;let i=r+1,o=a+1;for(let u=1;i<this.width&&this.map[t+u]==n;u++)i++;for(let u=1;o<this.height&&this.map[t+this.width*u]==n;u++)o++;return{left:r,top:a,right:i,bottom:o}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:a,top:i,bottom:o}=this.findCell(e);return t=="horiz"?(n<0?r==0:a==this.width)?null:this.map[i*this.width+(n<0?r-1:a)]:(n<0?i==0:o==this.height)?null:this.map[r+this.width*(n<0?i-1:o)]}rectBetween(e,t){const{left:n,right:r,top:a,bottom:i}=this.findCell(e),{left:o,right:u,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(a,l),right:Math.max(r,u),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let a=e.left;a<e.right;a++){const i=r*this.width+a,o=this.map[i];n[o]||(n[o]=!0,!(a==e.left&&a&&this.map[i-1]==o||r==e.top&&r&&this.map[i-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,a=0;;r++){const i=a+n.child(r).nodeSize;if(r==e){let o=t+e*this.width;const u=(e+1)*this.width;for(;o<u&&this.map[o]<a;)o++;return o==u?i-1:this.map[o]}a=i}}static get(e){return Io(e)||wo(e,Rm(e))}};function Rm(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=Pm(e),n=e.childCount,r=[];let a=0,i=null;const o=[];for(let c=0,f=t*n;c<f;c++)r[c]=0;for(let c=0,f=0;c<n;c++){const d=e.child(c);f++;for(let m=0;;m++){for(;a<r.length&&r[a]!=0;)a++;if(m==d.childCount)break;const b=d.child(m),{colspan:A,rowspan:E,colwidth:w}=b.attrs;for(let C=0;C<E;C++){if(C+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:f,n:E-C});break}const T=a+C*t;for(let N=0;N<A;N++){r[T+N]==0?r[T+N]=f:(i||(i=[])).push({type:"collision",row:c,pos:f,n:A-N});const D=w&&w[N];if(D){const B=(T+N)%t*2,v=o[B];v==null||v!=D&&o[B+1]==1?(o[B]=D,o[B+1]=1):v==D&&o[B+1]++}}}a+=A,f+=b.nodeSize}const p=(c+1)*t;let g=0;for(;a<p;)r[a++]==0&&g++;g&&(i||(i=[])).push({type:"missing",row:c,n:g}),f++}(t===0||n===0)&&(i||(i=[])).push({type:"zero_sized"});const u=new bn(t,n,r,i);let l=!1;for(let c=0;!l&&c<o.length;c+=2)o[c]!=null&&o[c+1]<n&&(l=!0);return l&&Um(u,o,e),u}function Pm(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const a=e.child(r);let i=0;if(n)for(let o=0;o<r;o++){const u=e.child(o);for(let l=0;l<u.childCount;l++){const c=u.child(l);o+c.attrs.rowspan>r&&(i+=c.attrs.colspan)}}for(let o=0;o<a.childCount;o++){const u=a.child(o);i+=u.attrs.colspan,u.attrs.rowspan>1&&(n=!0)}t==-1?t=i:t!=i&&(t=Math.max(t,i))}return t}function Um(e,t,n){e.problems||(e.problems=[]);const r={};for(let a=0;a<e.map.length;a++){const i=e.map[a];if(r[i])continue;r[i]=!0;const o=n.nodeAt(i);if(!o)throw new RangeError(`No cell with offset ${i} found`);let u=null;const l=o.attrs;for(let c=0;c<l.colspan;c++){const f=t[(a+c)%e.width*2];f!=null&&(!l.colwidth||l.colwidth[c]!=f)&&((u||(u=Fm(l)))[c]=f)}u&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:u})}}function Fm(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function Co(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],a=r.spec.tableRole;a&&(t[a]=r)}}return t}new Vt("selectingCells");function Hm(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function If(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function zm(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=Hm(t.$head)||jm(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function jm(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function wf(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function Cf(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function _f(e,t,n){const r=e.node(-1),a=bn.get(r),i=e.start(-1),o=a.nextCell(e.pos-i,t,n);return o==null?null:e.node(0).resolve(i+o)}function xf(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(a=>a>0)||(r.colwidth=null)),r}var Kt=class Cn extends _e{constructor(t,n=t){const r=t.node(-1),a=bn.get(r),i=t.start(-1),o=a.rectBetween(t.pos-i,n.pos-i),u=t.node(0),l=a.cellsInRect(o).filter(f=>f!=n.pos-i);l.unshift(n.pos-i);const c=l.map(f=>{const d=r.nodeAt(f);if(!d)throw new RangeError(`No cell with offset ${f} found`);const p=i+f+1;return new Dc(u.resolve(p),u.resolve(p+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),a=t.resolve(n.map(this.$headCell.pos));if(wf(r)&&wf(a)&&Cf(r,a)){const i=this.$anchorCell.node(-1)!=r.node(-1);return i&&this.isRowSelection()?Cn.rowSelection(r,a):i&&this.isColSelection()?Cn.colSelection(r,a):new Cn(r,a)}return Ye.between(r,a)}content(){const t=this.$anchorCell.node(-1),n=bn.get(t),r=this.$anchorCell.start(-1),a=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},o=[];for(let l=a.top;l<a.bottom;l++){const c=[];for(let f=l*n.width+a.left,d=a.left;d<a.right;d++,f++){const p=n.map[f];if(i[p])continue;i[p]=!0;const g=n.findCell(p);let m=t.nodeAt(p);if(!m)throw new RangeError(`No cell with offset ${p} found`);const b=a.left-g.left,A=g.right-a.right;if(b>0||A>0){let E=m.attrs;if(b>0&&(E=xf(E,0,b)),A>0&&(E=xf(E,E.colspan-A,A)),g.left<a.left){if(m=m.type.createAndFill(E),!m)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(E)}`)}else m=m.type.create(E,m.content)}if(g.top<a.top||g.bottom>a.bottom){const E={...m.attrs,rowspan:Math.min(g.bottom,a.bottom)-Math.max(g.top,a.top)};g.top<a.top?m=m.type.createAndFill(E):m=m.type.create(E,m.content)}c.push(m)}o.push(t.child(l).copy(Ae.from(c)))}const u=this.isColSelection()&&this.isRowSelection()?t:o;return new pe(Ae.from(u),1,1)}replace(t,n=pe.empty){const r=t.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){const{$from:u,$to:l}=a[o],c=t.mapping.slice(r);t.replace(c.map(u.pos),c.map(l.pos),o?pe.empty:n)}const i=_e.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);i&&t.setSelection(i)}replaceWith(t,n){this.replace(t,new pe(Ae.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),r=bn.get(n),a=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-a,this.$headCell.pos-a));for(let o=0;o<i.length;o++)t(n.nodeAt(i[o]),a+i[o])}isColSelection(){const t=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(t,n)>0)return!1;const r=t+this.$anchorCell.nodeAfter.attrs.rowspan,a=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,a)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),a=bn.get(r),i=t.start(-1),o=a.findCell(t.pos-i),u=a.findCell(n.pos-i),l=t.node(0);return o.top<=u.top?(o.top>0&&(t=l.resolve(i+a.map[o.left])),u.bottom<a.height&&(n=l.resolve(i+a.map[a.width*(a.height-1)+u.right-1]))):(u.top>0&&(n=l.resolve(i+a.map[u.left])),o.bottom<a.height&&(t=l.resolve(i+a.map[a.width*(a.height-1)+o.right-1]))),new Cn(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=bn.get(t),r=this.$anchorCell.start(-1),a=n.colCount(this.$anchorCell.pos-r),i=n.colCount(this.$headCell.pos-r);if(Math.min(a,i)>0)return!1;const o=a+this.$anchorCell.nodeAfter.attrs.colspan,u=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,u)==n.width}eq(t){return t instanceof Cn&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),a=bn.get(r),i=t.start(-1),o=a.findCell(t.pos-i),u=a.findCell(n.pos-i),l=t.node(0);return o.left<=u.left?(o.left>0&&(t=l.resolve(i+a.map[o.top*a.width])),u.right<a.width&&(n=l.resolve(i+a.map[a.width*(u.top+1)-1]))):(u.left>0&&(n=l.resolve(i+a.map[u.top*a.width])),o.right<a.width&&(t=l.resolve(i+a.map[a.width*(o.top+1)-1]))),new Cn(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new Cn(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new Cn(t.resolve(n),t.resolve(r))}getBookmark(){return new Vm(this.$anchorCell.pos,this.$headCell.pos)}};Kt.prototype.visible=!1,_e.jsonID("cell",Kt);var Vm=class Ip{constructor(t,n){this.anchor=t,this.head=n}map(t){return new Ip(t.map(this.anchor),t.map(this.head))}resolve(t){const n=t.resolve(this.anchor),r=t.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&Cf(n,r)?new Kt(n,r):_e.near(r,1)}};new Vt("fix-tables");function Mf(e){const t=e.selection,n=zm(e),r=n.node(-1),a=n.start(-1),i=bn.get(r);return{...t instanceof Kt?i.rectBetween(t.$anchorCell.pos-a,t.$headCell.pos-a):i.findCell(n.pos-a),tableStart:a,map:i,table:r}}function Ym(e){return function(t,n){if(!If(t))return!1;if(n){const r=Co(t.schema),a=Mf(t),i=t.tr,o=a.map.cellsInRect(e=="column"?{left:a.left,top:0,right:a.right,bottom:a.map.height}:e=="row"?{left:0,top:a.top,right:a.map.width,bottom:a.bottom}:a),u=o.map(l=>a.table.nodeAt(l));for(let l=0;l<o.length;l++)u[l].type==r.header_cell&&i.setNodeMarkup(a.tableStart+o[l],r.cell,u[l].attrs);if(i.steps.length===0)for(let l=0;l<o.length;l++)i.setNodeMarkup(a.tableStart+o[l],r.header_cell,u[l].attrs);n(i)}return!0}}function Sf(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let a=0;a<r.length;a++){const i=t.table.nodeAt(r[a]);if(i&&i.type!==n.header_cell)return!1}return!0}function _o(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?Ym(e):function(n,r){if(!If(n))return!1;if(r){const a=Co(n.schema),i=Mf(n),o=n.tr,u=Sf("row",i,a),l=Sf("column",i,a),c=(e==="column"?u:e==="row"&&l)?1:0,f=e=="column"?{left:0,top:c,right:1,bottom:i.map.height}:e=="row"?{left:c,top:0,right:i.map.width,bottom:1}:i,d=e=="column"?l?a.cell:a.header_cell:e=="row"?u?a.cell:a.header_cell:a.cell;i.map.cellsInRect(f).forEach(p=>{const g=p+i.tableStart,m=o.doc.nodeAt(g);m&&o.setNodeMarkup(g,d,m.attrs)}),r(o)}return!0}}_o("row",{useDeprecatedLogic:!0}),_o("column",{useDeprecatedLogic:!0}),_o("cell",{useDeprecatedLogic:!0});function bi(e,t){const n=e.selection;if(!(n instanceof Kt))return!1;if(t){const r=e.tr,a=Co(e.schema).cell.createAndFill().content;n.forEachCell((i,o)=>{i.content.eq(a)||r.replace(r.mapping.map(o+1),r.mapping.map(o+i.nodeSize-1),new pe(a,0,0))}),r.docChanged&&t(r)}return!0}Bm({ArrowLeft:Ei("horiz",-1),ArrowRight:Ei("horiz",1),ArrowUp:Ei("vert",-1),ArrowDown:Ei("vert",1),"Shift-ArrowLeft":yi("horiz",-1),"Shift-ArrowRight":yi("horiz",1),"Shift-ArrowUp":yi("vert",-1),"Shift-ArrowDown":yi("vert",1),Backspace:bi,"Mod-Backspace":bi,Delete:bi,"Mod-Delete":bi});function Ai(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Ei(e,t){return(n,r,a)=>{if(!a)return!1;const i=n.selection;if(i instanceof Kt)return Ai(n,r,_e.near(i.$headCell,t));if(e!="horiz"&&!i.empty)return!1;const o=Df(a,e,t);if(o==null)return!1;if(e=="horiz")return Ai(n,r,_e.near(n.doc.resolve(i.head+t),t));{const u=n.doc.resolve(o),l=_f(u,e,t);let c;return l?c=_e.near(l,1):t<0?c=_e.near(n.doc.resolve(u.before(-1)),-1):c=_e.near(n.doc.resolve(u.after(-1)),1),Ai(n,r,c)}}}function yi(e,t){return(n,r,a)=>{if(!a)return!1;const i=n.selection;let o;if(i instanceof Kt)o=i;else{const l=Df(a,e,t);if(l==null)return!1;o=new Kt(n.doc.resolve(l))}const u=_f(o.$headCell,e,t);return u?Ai(n,r,new Kt(o.$anchorCell,u)):!1}}function Df(e,t,n){if(!(e.state.selection instanceof Ye))return null;const{$head:r}=e.state.selection;for(let a=r.depth-1;a>=0;a--){const i=r.node(a);if((n<0?r.index(a):r.indexAfter(a))!=(n<0?0:i.childCount))return null;if(i.type.spec.tableRole=="cell"||i.type.spec.tableRole=="header_cell"){const o=r.before(a),u=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(u)?o:null}}return null}var Qm=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),vf(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,vf(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function vf(e,t,n,r,a,i){let o=0,u=!0,l=t.firstChild;const c=e.firstChild;if(c){for(let d=0,p=0;d<c.childCount;d++){const{colspan:g,colwidth:m}=c.child(d).attrs;for(let b=0;b<g;b++,p++){const A=a==p?i:m&&m[b],E=A?A+"px":"";if(o+=A||r,A||(u=!1),l)l.style.width!=E&&(l.style.width=E),l=l.nextSibling;else{const w=document.createElement("col");w.style.width=E,t.appendChild(w)}}}for(;l;){var f;const d=l.nextSibling;(f=l.parentNode)===null||f===void 0||f.removeChild(l),l=d}u?(n.style.width=o+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=o+"px")}}new Vt("tableColumnResizing");function Km(e,t){const n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),a=Math.min(e.left,t.left),o=Math.max(e.right,t.right)-a,u=r-n,l=a,c=n;return new DOMRect(l,c,o,u)}var Wm=class{constructor({editor:e,element:t,view:n,pluginKey:r="bubbleMenu",updateDelay:a=250,resizeDelay:i=60,shouldShow:o,appendTo:u,getReferencedVirtualElement:l,options:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:d,state:p,from:g,to:m})=>{const{doc:b,selection:A}=p,{empty:E}=A,w=!b.textBetween(g,m).length&&ue.isTextSelection(p.selection),C=this.element.contains(document.activeElement);return!(!(d.hasFocus()||C)||E||w||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:d})=>{var p;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}d!=null&&d.relatedTarget&&((p=this.element.parentNode)!=null&&p.contains(d.relatedTarget))||(d==null?void 0:d.relatedTarget)!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(d,p)=>{const g=!(p!=null&&p.selection.eq(d.state.selection)),m=!(p!=null&&p.doc.eq(d.state.doc));!g&&!m||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(d,g,m,p)},this.updateDelay))},this.updateHandler=(d,p,g,m)=>{const{composing:b}=d;if(b||!p&&!g)return;if(!this.getShouldShow(m)){this.hide();return}this.updatePosition(),this.show()},this.transactionHandler=({transaction:d})=>{const p=d.getMeta(this.pluginKey);p==="updatePosition"?this.updatePosition():p&&typeof p=="object"&&p.type==="updateOptions"&&this.updateOptions(p.options)};var f;this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=a,this.resizeDelay=i,this.appendTo=u,this.scrollTarget=(f=c==null?void 0:c.scrollTarget)!=null?f:window,this.getReferencedVirtualElement=l,this.floatingUIOptions={...this.floatingUIOptions,...c},this.element.tabIndex=0,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}get middlewares(){const e=[];return this.floatingUIOptions.flip&&e.push(sc(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(ic(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(rc(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(lc(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(oc(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(ac(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(uc(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(cc(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),e}get virtualElement(){var e,t,n;const{selection:r}=this.editor.state,a=(e=this.getReferencedVirtualElement)==null?void 0:e.call(this);if(a)return a;if(!((n=(t=this.view)==null?void 0:t.dom)!=null&&n.parentNode))return;const i=ue.posToDOMRect(this.view,r.from,r.to);let o={getBoundingClientRect:()=>i,getClientRects:()=>[i]};if(r instanceof ke){let u=this.view.nodeDOM(r.from);const l=u.dataset.nodeViewWrapper?u:u.querySelector("[data-node-view-wrapper]");l&&(u=l),u&&(o={getBoundingClientRect:()=>u.getBoundingClientRect(),getClientRects:()=>[u.getBoundingClientRect()]})}if(r instanceof Kt){const{$anchorCell:u,$headCell:l}=r,c=u?u.pos:l.pos,f=l?l.pos:u.pos,d=this.view.nodeDOM(c),p=this.view.nodeDOM(f);if(!d||!p)return;const g=d===p?d.getBoundingClientRect():Km(d.getBoundingClientRect(),p.getBoundingClientRect());o={getBoundingClientRect:()=>g,getClientRects:()=>[g]}}return o}updatePosition(){const e=this.virtualElement;e&&fc(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:t,y:n,strategy:r,middlewareData:a})=>{var i,o;if((i=a.hide)!=null&&i.referenceHidden||(o=a.hide)!=null&&o.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${t}px`,this.element.style.top=`${n}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(e,t){const{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}const a=!(t!=null&&t.selection.eq(e.state.selection)),i=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,a,i,t)}getShouldShow(e){var t;const{state:n}=this.view,{selection:r}=n,{ranges:a}=r,i=Math.min(...a.map(l=>l.$from.pos)),o=Math.max(...a.map(l=>l.$to.pos));return((t=this.shouldShow)==null?void 0:t.call(this,{editor:this.editor,element:this.element,view:this.view,state:n,oldState:e,from:i,to:o}))||!1}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const t=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(e=t??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(e){var t;if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){const n=(t=e.options.scrollTarget)!=null?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},Gm=e=>new Zr({key:typeof e.pluginKey=="string"?new Vt(e.pluginKey):e.pluginKey,view:t=>new Wm({view:t,...e})}),$m=s.defineComponent({name:"BubbleMenu",inheritAttrs:!1,props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},resizeDelay:{type:Number,default:void 0},options:{type:Object,default:()=>({})},appendTo:{type:[Object,Function],default:void 0},shouldShow:{type:Function,default:null},getReferencedVirtualElement:{type:Function,default:void 0}},setup(e,{slots:t,attrs:n}){const r=s.ref(null);return s.onMounted(()=>{const{editor:a,options:i,pluginKey:o,resizeDelay:u,appendTo:l,shouldShow:c,getReferencedVirtualElement:f,updateDelay:d}=e,p=r.value;p&&(p.style.visibility="hidden",p.style.position="absolute",p.remove(),s.nextTick(()=>{a.registerPlugin(Gm({editor:a,element:p,options:i,pluginKey:o,resizeDelay:u,appendTo:l,shouldShow:c,getReferencedVirtualElement:f,updateDelay:d}))}))}),s.onBeforeUnmount(()=>{const{pluginKey:a,editor:i}=e;i.unregisterPlugin(a)}),()=>{var a;return s.h("div",{ref:r,...n},(a=t.default)==null?void 0:a.call(t))}}}),qm=class{constructor({editor:e,element:t,view:n,pluginKey:r="floatingMenu",updateDelay:a=250,resizeDelay:i=60,options:o,appendTo:u,shouldShow:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:f,state:d})=>{const{selection:p}=d,{$anchor:g,empty:m}=p,b=g.depth===1,A=g.parent.isTextblock&&!g.parent.type.spec.code&&!g.parent.textContent&&g.parent.childCount===0&&!this.getTextContent(g.parent);return!(!f.hasFocus()||!m||!b||!A||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(f,d,p,g)=>{const{composing:m}=f;if(m||!d&&!p)return;if(!this.getShouldShow(g)){this.hide();return}this.updatePosition(),this.show()},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:f})=>{var d;if(this.preventHide){this.preventHide=!1;return}f!=null&&f.relatedTarget&&((d=this.element.parentNode)!=null&&d.contains(f.relatedTarget))||(f==null?void 0:f.relatedTarget)!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:f})=>{const d=f.getMeta(this.pluginKey);d==="updatePosition"?this.updatePosition():d&&typeof d=="object"&&d.type==="updateOptions"&&this.updateOptions(d.options)},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)};var c;this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=a,this.resizeDelay=i,this.appendTo=u,this.scrollTarget=(c=o==null?void 0:o.scrollTarget)!=null?c:window,this.floatingUIOptions={...this.floatingUIOptions,...o},this.element.tabIndex=0,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getTextContent(e){return ue.getText(e,{textSerializers:ue.getTextSerializersFromSchema(this.editor.schema)})}get middlewares(){const e=[];return this.floatingUIOptions.flip&&e.push(sc(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(ic(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(rc(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(lc(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(oc(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(ac(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(uc(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(cc(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),e}getShouldShow(e){var t;const{state:n}=this.view,{selection:r}=n,{ranges:a}=r,i=Math.min(...a.map(l=>l.$from.pos)),o=Math.max(...a.map(l=>l.$to.pos));return(t=this.shouldShow)==null?void 0:t.call(this,{editor:this.editor,view:this.view,state:n,oldState:e,from:i,to:o})}updateOptions(e){var t;if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){const n=(t=e.options.scrollTarget)!=null?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){const{selection:e}=this.editor.state,t=ue.posToDOMRect(this.view,e.from,e.to);fc({getBoundingClientRect:()=>t,getClientRects:()=>[t]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:r,y:a,strategy:i,middlewareData:o})=>{var u,l;if((u=o.hide)!=null&&u.referenceHidden||(l=o.hide)!=null&&l.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=i,this.element.style.left=`${r}px`,this.element.style.top=`${a}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(e,t){const n=!(t!=null&&t.selection.eq(e.state.selection)),r=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,n,r,t)}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const t=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(e=t??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},Jm=e=>new Zr({key:typeof e.pluginKey=="string"?new Vt(e.pluginKey):e.pluginKey,view:t=>new qm({view:t,...e})});s.defineComponent({name:"FloatingMenu",inheritAttrs:!1,props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},resizeDelay:{type:Number,default:void 0},options:{type:Object,default:()=>({})},appendTo:{type:[Object,Function],default:void 0},shouldShow:{type:Function,default:null}},setup(e,{slots:t,attrs:n}){const r=s.ref(null);return s.onMounted(()=>{const{pluginKey:a,editor:i,updateDelay:o,resizeDelay:u,options:l,appendTo:c,shouldShow:f}=e,d=r.value;d&&(d.style.visibility="hidden",d.style.position="absolute",d.remove(),i.registerPlugin(Jm({pluginKey:a,editor:i,element:d,updateDelay:o,resizeDelay:u,options:l,appendTo:c,shouldShow:f})))}),s.onBeforeUnmount(()=>{const{pluginKey:a,editor:i}=e;i.unregisterPlugin(a)}),()=>{var a;return s.h("div",{ref:r,...n},(a=t.default)==null?void 0:a.call(t))}}});/**
|
|
7
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const Of=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Xm=e=>{const t=Zm(e);return t.charAt(0).toUpperCase()+t.slice(1)},eb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Lf=e=>e==="";/**
|
|
12
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/var aa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
17
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const tb=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:a,"stroke-width":i,size:o=aa.width,color:u=aa.stroke,...l},{slots:c})=>s.h("svg",{...aa,...l,width:o,height:o,stroke:u,"stroke-width":Lf(n)||Lf(r)||n===!0||r===!0?Number(a||i||aa["stroke-width"])*24/Number(o):a||i||aa["stroke-width"],class:eb("lucide",l.class,...e?[`lucide-${Of(Xm(e))}-icon`,`lucide-${Of(e)}`]:["lucide-icon"])},[...t.map(f=>s.h(...f)),...c.default?[c.default()]:[]]);/**
|
|
22
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const $=(e,t)=>(n,{slots:r,attrs:a})=>s.h(tb,{...a,...n,iconNode:t,name:e},r);/**
|
|
27
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const nb=$("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
32
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const rb=$("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
37
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const ab=$("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
42
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const ib=$("arrow-up-left",[["path",{d:"M7 17V7h10",key:"11bw93"}],["path",{d:"M17 17 7 7",key:"2786uv"}]]);/**
|
|
47
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const sb=$("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
52
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const ob=$("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
57
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const Bf=$("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
62
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const Rf=$("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
67
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const xo=$("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/**
|
|
72
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const ub=$("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
|
|
77
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Mo=$("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
82
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const lb=$("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
87
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Pf=$("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
92
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const cb=$("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
97
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const So=$("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);/**
|
|
102
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const fb=$("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]);/**
|
|
107
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Uf=$("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
112
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Ff=$("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]);/**
|
|
117
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const db=$("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
122
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const ia=$("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
127
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const hb=$("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]);/**
|
|
132
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const pb=$("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
137
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const gb=$("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
142
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const mb=$("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/**
|
|
147
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const bb=$("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/**
|
|
152
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Ab=$("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/**
|
|
157
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Eb=$("heading-4",[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]]);/**
|
|
162
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const yb=$("heading-5",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]]);/**
|
|
167
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Ti=$("highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]);/**
|
|
172
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const ki=$("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
|
|
177
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Hf=$("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
182
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const Tb=$("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
187
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const kb=$("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
192
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const zf=$("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|
197
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Nb=$("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
202
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Ib=$("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
207
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const jf=$("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);/**
|
|
212
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const Do=$("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);/**
|
|
217
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const vo=$("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
|
|
222
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const wb=$("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);/**
|
|
227
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const Cb=$("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
232
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Vf=$("monitor-play",[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);/**
|
|
237
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const _b=$("paint-bucket",[["path",{d:"M11 7 6 2",key:"1jwth8"}],["path",{d:"M18.992 12H2.041",key:"xw1gg"}],["path",{d:"M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595",key:"1nkol4"}],["path",{d:"m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33",key:"1nk1rd"}]]);/**
|
|
242
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const Yf=$("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);/**
|
|
247
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Ni=$("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
252
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const xb=$("pilcrow",[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]]);/**
|
|
257
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Mb=$("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
262
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const Qf=$("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
|
|
267
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const Kf=$("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
272
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const Sb=$("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
277
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const Db=$("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
282
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const vb=$("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
|
|
287
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const Ii=$("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/**
|
|
292
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const Ob=$("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
297
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const Lb=$("square-split-horizontal",[["path",{d:"M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3",key:"lubmu8"}],["path",{d:"M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3",key:"1ag34g"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
302
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const Bb=$("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
|
|
307
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const Rb=$("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
|
|
312
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const Jn=$("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
|
|
317
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const Zn=$("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]);/**
|
|
322
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const Pb=$("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
|
|
327
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const Ub=$("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);/**
|
|
332
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const wi=$("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
337
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const An=$("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
342
|
+
* @license lucide-vue-next v0.562.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const Wf=$("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Fb={class:"color-picker"},Hb={class:"color-picker-header"},zb=["title"],jb={class:"color-grid"},Vb=["onClick","title"],Yb={class:"custom-color"},Qb={class:"custom-label"},Kb=["value"],Wb=s.defineComponent({__name:"ColorPicker",props:{type:{},currentColor:{}},emits:["select"],setup(e,{emit:t}){const n=t,r=["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff","#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff","#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc","#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd"],a=u=>{n("select",u)},i=()=>{n("select",null)},o=u=>{const l=u.target;n("select",l.value)};return(u,l)=>(s.openBlock(),s.createElementBlock("div",Fb,[s.createElementVNode("div",Hb,[s.createElementVNode("button",{class:"clear-btn",onClick:i,title:e.type==="text"?"清除文字颜色":"清除背景色"},[s.createVNode(s.unref(ob),{size:14}),s.createElementVNode("span",null,s.toDisplayString(e.type==="text"?"默认颜色":"无背景"),1)],8,zb)]),s.createElementVNode("div",jb,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(r,c=>s.createElementVNode("button",{key:c,class:s.normalizeClass(["color-item",{active:e.currentColor===c}]),style:s.normalizeStyle({backgroundColor:c}),onClick:f=>a(c),title:c},[e.currentColor===c?(s.openBlock(),s.createBlock(s.unref(Mo),{key:0,size:12,class:"check-icon"})):s.createCommentVNode("",!0)],14,Vb)),64))]),s.createElementVNode("div",Yb,[s.createElementVNode("label",Qb,[s.createVNode(s.unref(Yf),{size:14}),l[0]||(l[0]=s.createElementVNode("span",null,"自定义颜色",-1)),s.createElementVNode("input",{type:"color",value:e.currentColor||"#000000",onInput:o,class:"color-input"},null,40,Kb)])])]))}}),Qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},On=Qe(Wb,[["__scopeId","data-v-2104979a"]]);function Gf(e){return{convertToParagraph:()=>{e&&(e.isActive("bulletList")||e.isActive("orderedList")?e.chain().focus().liftListItem("listItem").run():e.isActive("taskList")?e.chain().focus().liftListItem("taskItem").run():e.isActive("blockquote")?e.chain().focus().lift("blockquote").run():e.chain().focus().setParagraph().run())},convertToHeading:l=>{e&&(e.isActive("bulletList")?e.chain().focus().liftListItem("listItem").setHeading({level:l}).run():e.isActive("orderedList")?e.chain().focus().liftListItem("listItem").setHeading({level:l}).run():e.isActive("taskList")?e.chain().focus().liftListItem("taskItem").setHeading({level:l}).run():e.isActive("blockquote")?e.chain().focus().lift("blockquote").setHeading({level:l}).run():e.chain().focus().setHeading({level:l}).run())},convertToBulletList:()=>{e&&(e.isActive("orderedList")?e.chain().focus().toggleOrderedList().toggleBulletList().run():e.isActive("taskList")?e.chain().focus().toggleTaskList().toggleBulletList().run():e.isActive("blockquote")?e.chain().focus().toggleBlockquote().toggleBulletList().run():e.chain().focus().toggleBulletList().run())},convertToOrderedList:()=>{e&&(e.isActive("bulletList")?e.chain().focus().toggleBulletList().toggleOrderedList().run():e.isActive("taskList")?e.chain().focus().toggleTaskList().toggleOrderedList().run():e.isActive("blockquote")?e.chain().focus().toggleBlockquote().toggleOrderedList().run():e.chain().focus().toggleOrderedList().run())},convertToTaskList:()=>{e&&(e.isActive("bulletList")?e.chain().focus().toggleBulletList().toggleTaskList().run():e.isActive("orderedList")?e.chain().focus().toggleOrderedList().toggleTaskList().run():e.isActive("blockquote")?e.chain().focus().toggleBlockquote().toggleTaskList().run():e.chain().focus().toggleTaskList().run())},convertToBlockquote:()=>{e&&(e.isActive("bulletList")?e.chain().focus().toggleBulletList().toggleBlockquote().run():e.isActive("orderedList")?e.chain().focus().toggleOrderedList().toggleBlockquote().run():e.isActive("taskList")?e.chain().focus().toggleTaskList().toggleBlockquote().run():e.chain().focus().toggleBlockquote().run())},convertToCodeBlock:()=>{e&&(e.isActive("bulletList")?e.chain().focus().toggleBulletList().toggleCodeBlock().run():e.isActive("orderedList")?e.chain().focus().toggleOrderedList().toggleCodeBlock().run():e.isActive("taskList")?e.chain().focus().toggleTaskList().toggleCodeBlock().run():e.isActive("blockquote")?e.chain().focus().toggleBlockquote().toggleCodeBlock().run():e.chain().focus().toggleCodeBlock().run())}}}const Gb={class:"bubble-toolbar"},$b={class:"toolbar-group"},qb={class:"heading-selector-wrapper"},Jb={class:"heading-label"},Zb={key:0,class:"heading-dropdown"},Xb=["onClick"],eA={class:"toolbar-group"},tA={class:"toolbar-group"},nA={class:"color-btn-wrapper"},rA={key:0,class:"color-dropdown"},aA={class:"color-btn-wrapper"},iA={key:0,class:"color-dropdown"},sA={class:"toolbar-group"},oA={class:"link-btn-wrapper"},uA={key:0,class:"link-popup"},lA={class:"link-popup-header"},cA={class:"link-popup-content"},fA={key:0,class:"document-list"},dA=["onClick"],hA={class:"link-popup-footer"},pA=["disabled"],gA={class:"toolbar-group"},mA={class:"toolbar-group"},bA={class:"template-btn-wrapper"},AA={key:0,class:"template-save-popup"},EA={class:"template-save-header"},yA={class:"template-save-content"},TA={class:"template-save-footer"},kA=["disabled"],NA=Qe(s.defineComponent({__name:"BubbleToolbar",props:{editor:{},documentList:{}},emits:["selectDocument"],setup(e,{emit:t}){const n=e,r=t,a=[{value:"paragraph",label:"正文",icon:xb},{value:"heading1",label:"标题一",icon:bb,level:1},{value:"heading2",label:"标题二",icon:mb,level:2},{value:"heading3",label:"标题三",icon:Ab,level:3},{value:"heading4",label:"标题四",icon:Eb,level:4},{value:"heading5",label:"标题五",icon:yb,level:5}],i=s.ref(!1),o=s.ref(!1),u=s.ref(!1),l=s.ref(!1),c=s.ref(""),f=s.ref(null),d=s.computed(()=>n.documentList||[]),p=s.computed(()=>{if(!n.editor)return"正文";for(const q of a)if(q.level&&n.editor.isActive("heading",{level:q.level}))return q.label;return"正文"}),g=s.computed(()=>n.editor?n.editor.isActive("heading"):!1),m=q=>n.editor?q.level?n.editor.isActive("heading",{level:q.level}):n.editor.isActive("paragraph"):!1,b=()=>{N(),l.value=!1,i.value=!i.value},A=q=>{if(!n.editor)return;const{convertToParagraph:J,convertToHeading:Ie}=Gf(n.editor);q.level?Ie(q.level):J(),i.value=!1},E=s.computed(()=>{var q;return((q=n.editor)==null?void 0:q.getAttributes("textStyle").color)||null}),w=s.computed(()=>{var q;return((q=n.editor)==null?void 0:q.getAttributes("highlight").color)||null}),C=()=>{u.value=!1,i.value=!1,l.value=!1,o.value=!o.value},T=()=>{o.value=!1,i.value=!1,l.value=!1,u.value=!u.value},N=()=>{o.value=!1,u.value=!1},D=()=>{o.value=!1,u.value=!1,i.value=!1,l.value=!1,z.value=!1},B=q=>{n.editor&&(q?n.editor.chain().focus().setColor(q).run():n.editor.chain().focus().unsetColor().run(),o.value=!1)},v=q=>{n.editor&&(q?n.editor.chain().focus().setHighlight({color:q}).run():n.editor.chain().focus().unsetHighlight().run(),u.value=!1)},_=()=>{if(!n.editor)return;const q=n.editor.getAttributes("link").href;c.value=q||"https://",N(),i.value=!1,l.value=!l.value,l.value&&s.nextTick(()=>{var J,Ie;(J=f.value)==null||J.focus(),(Ie=f.value)==null||Ie.select()})},x=()=>{l.value=!1,c.value=""},R=()=>{if(!n.editor)return;const q=c.value.trim();if(!q||q==="https://"){x();return}let J=q;!J.startsWith("http://")&&!J.startsWith("https://")&&(J="https://"+J);const{from:Ie,to:Ve}=n.editor.state.selection,oe=n.editor.state.doc.textBetween(Ie,Ve," ");n.editor.chain().focus().deleteSelection().insertContent({type:"linkCardInline",attrs:{url:J,title:oe||""}}).run(),x()},O=q=>{if(n.editor){if(r("selectDocument",q),q.url){const{from:J,to:Ie}=n.editor.state.selection,Ve=n.editor.state.doc.textBetween(J,Ie," ");n.editor.chain().focus().deleteSelection().insertContent({type:"linkCardInline",attrs:{url:q.url,title:Ve||q.title||""}}).run()}x()}},M=()=>{if(!n.editor)return;const{from:q,to:J}=n.editor.state.selection,Ie=q!==J?n.editor.state.doc.textBetween(q,J):"";n.editor.commands.showAIPromptInput(Ie),D()},S=()=>{n.editor&&n.editor.chain().focus().unsetAllMarks().run()},F=s.inject("editorTemplateConfig",s.ref(void 0)),V=s.computed(()=>F.value),z=s.ref(!1),H=s.ref(""),ie=s.ref(null),Me=()=>{N(),i.value=!1,l.value=!1,z.value=!z.value,H.value="",z.value&&s.nextTick(()=>{var q;(q=ie.value)==null||q.focus()})},ye=()=>{z.value=!1,H.value=""},ve=async()=>{if(!n.editor||!V.value||!H.value.trim())return;const{from:q,to:J}=n.editor.state.selection;if(q===J)return;const Ve=n.editor.state.doc.slice(q,J).content.toJSON();try{await V.value.saveTemplate(H.value.trim(),Ve),ye()}catch(oe){console.error("[模板] 保存失败:",oe)}};return(q,J)=>{var Ie,Ve,oe,W,se,Se,le;return s.openBlock(),s.createElementBlock("div",Gb,[s.createElementVNode("div",$b,[s.createElementVNode("div",qb,[s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn heading-btn",{active:g.value}]),onClick:b,title:"文本样式"},[s.createElementVNode("span",Jb,s.toDisplayString(p.value),1),s.createVNode(s.unref(lb),{size:12,class:s.normalizeClass(["dropdown-icon",{open:i.value}])},null,8,["class"])],2),i.value?(s.openBlock(),s.createElementBlock("div",Zb,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(a,be=>s.createElementVNode("div",{key:be.value,class:s.normalizeClass(["heading-option",{active:m(be)}]),onClick:De=>A(be)},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(be.icon),{size:16})),s.createElementVNode("span",null,s.toDisplayString(be.label),1)],10,Xb)),64))])):s.createCommentVNode("",!0)])]),J[11]||(J[11]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("div",eA,[s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(Ie=e.editor)==null?void 0:Ie.isActive("bold")}]),onClick:J[0]||(J[0]=be=>{var De;return(De=e.editor)==null?void 0:De.chain().focus().toggleBold().run()}),title:"粗体 (Ctrl+B)"},[s.createVNode(s.unref(Bf),{size:16})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(Ve=e.editor)==null?void 0:Ve.isActive("italic")}]),onClick:J[1]||(J[1]=be=>{var De;return(De=e.editor)==null?void 0:De.chain().focus().toggleItalic().run()}),title:"斜体 (Ctrl+I)"},[s.createVNode(s.unref(Tb),{size:16})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(oe=e.editor)==null?void 0:oe.isActive("underline")}]),onClick:J[2]||(J[2]=be=>{var De;return(De=e.editor)==null?void 0:De.chain().focus().toggleUnderline().run()}),title:"下划线 (Ctrl+U)"},[s.createVNode(s.unref(Pb),{size:16})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(W=e.editor)==null?void 0:W.isActive("strike")}]),onClick:J[3]||(J[3]=be=>{var De;return(De=e.editor)==null?void 0:De.chain().focus().toggleStrike().run()}),title:"删除线"},[s.createVNode(s.unref(Bb),{size:16})],2),s.createElementVNode("button",{class:"toolbar-btn",onClick:S,title:"清除格式"},[s.createVNode(s.unref(Ff),{size:16})])]),J[12]||(J[12]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("div",tA,[s.createElementVNode("div",nA,[s.createElementVNode("button",{class:"toolbar-btn color-btn",onClick:C,title:"文字颜色"},[s.createVNode(s.unref(Zn),{size:16}),s.createElementVNode("span",{class:"color-indicator",style:s.normalizeStyle({backgroundColor:E.value||"currentColor"})},null,4)]),o.value?(s.openBlock(),s.createElementBlock("div",rA,[s.createVNode(On,{type:"text","current-color":E.value,onSelect:B},null,8,["current-color"])])):s.createCommentVNode("",!0)]),s.createElementVNode("div",aA,[s.createElementVNode("button",{class:"toolbar-btn color-btn",onClick:T,title:"背景颜色"},[s.createVNode(s.unref(Ti),{size:16}),s.createElementVNode("span",{class:"color-indicator",style:s.normalizeStyle({backgroundColor:w.value||"transparent"})},null,4)]),u.value?(s.openBlock(),s.createElementBlock("div",iA,[s.createVNode(On,{type:"background","current-color":w.value,onSelect:v},null,8,["current-color"])])):s.createCommentVNode("",!0)])]),J[13]||(J[13]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("div",sA,[s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(se=e.editor)==null?void 0:se.isActive("code")}]),onClick:J[4]||(J[4]=be=>{var De;return(De=e.editor)==null?void 0:De.chain().focus().toggleCode().run()}),title:"行内代码"},[s.createVNode(s.unref(So),{size:16})],2),s.createElementVNode("div",oA,[s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{active:(Se=e.editor)==null?void 0:Se.isActive("link")}]),onClick:_,title:"链接"},[s.createVNode(s.unref(Nb),{size:16})],2),l.value?(s.openBlock(),s.createElementBlock("div",uA,[s.createElementVNode("div",lA,[J[7]||(J[7]=s.createElementVNode("span",null,"添加链接",-1)),s.createElementVNode("button",{class:"link-popup-close",onClick:x},[s.createVNode(s.unref(An),{size:14})])]),s.createElementVNode("div",cA,[s.withDirectives(s.createElementVNode("input",{ref_key:"linkInputRef",ref:f,"onUpdate:modelValue":J[5]||(J[5]=be=>c.value=be),type:"text",class:"link-input",placeholder:"输入链接地址...",onKeydown:[s.withKeys(R,["enter"]),s.withKeys(x,["esc"])]},null,544),[[s.vModelText,c.value]]),d.value.length>0?(s.openBlock(),s.createElementBlock("div",fA,[J[8]||(J[8]=s.createElementVNode("div",{class:"document-list-header"},"或选择文档",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,be=>(s.openBlock(),s.createElementBlock("div",{key:be.id,class:"document-item",onClick:De=>O(be)},[s.createVNode(s.unref(ia),{size:14}),s.createElementVNode("span",null,s.toDisplayString(be.title),1)],8,dA))),128))])):s.createCommentVNode("",!0)]),s.createElementVNode("div",hA,[s.createElementVNode("button",{class:"link-btn-cancel",onClick:x},"取消"),s.createElementVNode("button",{class:"link-btn-apply",onClick:R,disabled:!c.value.trim()},s.toDisplayString((le=e.editor)!=null&&le.isActive("link")?"更新":"添加"),9,pA)])])):s.createCommentVNode("",!0)])]),J[14]||(J[14]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("div",gA,[s.createElementVNode("button",{class:"toolbar-btn ai-btn",onClick:M,title:"AI 写作"},[s.createVNode(s.unref(Ii),{size:16})])]),V.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[J[10]||(J[10]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("div",mA,[s.createElementVNode("div",bA,[s.createElementVNode("button",{class:"toolbar-btn template-btn",onClick:Me,title:"保存为模板"},[s.createVNode(s.unref(xo),{size:16})]),z.value?(s.openBlock(),s.createElementBlock("div",AA,[s.createElementVNode("div",EA,[J[9]||(J[9]=s.createElementVNode("span",null,"保存为模板",-1)),s.createElementVNode("button",{class:"template-save-close",onClick:ye},[s.createVNode(s.unref(An),{size:14})])]),s.createElementVNode("div",yA,[s.withDirectives(s.createElementVNode("input",{ref_key:"templateTitleInputRef",ref:ie,"onUpdate:modelValue":J[6]||(J[6]=be=>H.value=be),type:"text",class:"template-title-input",placeholder:"输入模板名称...",onKeydown:[s.withKeys(ve,["enter"]),s.withKeys(ye,["esc"])]},null,544),[[s.vModelText,H.value]])]),s.createElementVNode("div",TA,[s.createElementVNode("button",{class:"template-btn-cancel",onClick:ye},"取消"),s.createElementVNode("button",{class:"template-btn-confirm",onClick:ve,disabled:!H.value.trim()},"保存",8,kA)])])):s.createCommentVNode("",!0)])])],64)):s.createCommentVNode("",!0),o.value||u.value||i.value||l.value||z.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"color-overlay",onClick:D})):s.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-7191d1f7"]]),IA={key:0,class:"highlight-line top-line"},wA={key:1,class:"highlight-line top-line-full"},CA={key:2,class:"highlight-line left-line"},_A={key:3,class:"highlight-line left-line-full"},xA={class:"color-menu-item"},MA={class:"color-menu-item"},SA={class:"color-menu-item"},DA={class:"color-menu-item"},vA={class:"color-menu-item"},OA={class:"color-menu-item"},LA=["disabled"],BA=["disabled"],RA=Qe(s.defineComponent({__name:"TableBubbleMenu",props:{editor:{}},setup(e){const t=e,n=s.inject("editorTheme","light"),r=s.computed(()=>typeof n=="object"&&(n!=null&&n.value)?n.value==="dark":n==="dark"),a=s.ref(!1),i=s.ref(null),o=s.ref(!1),u=s.ref(!1),l=s.ref([]),c=s.ref(!1),f=s.ref(null),d=s.ref(!1),p=s.ref(!1),g=s.ref(!1),m=s.ref(!1),b=s.ref(!1),A=s.ref(!1),E=s.ref(!1),w=s.ref(!1),C=s.ref(!1),T=s.ref(!1),N=s.ref(!1),D=s.ref(!1),B=s.computed(()=>{if(!f.value)return!1;const G=f.value;return window.innerWidth-G.right<160+240+40}),v=s.computed(()=>{var G;return((G=t.editor)==null?void 0:G.can().mergeCells())??!1}),_=s.computed(()=>{var G;return((G=t.editor)==null?void 0:G.can().splitCell())??!1}),x=G=>{if(G.length===0)return new DOMRect;if(G.length===1)return G[0];const U=Math.min(...G.map(ce=>ce.left)),Ce=Math.min(...G.map(ce=>ce.top)),Le=Math.max(...G.map(ce=>ce.right)),X=Math.max(...G.map(ce=>ce.bottom));return new DOMRect(U,Ce,Le-U,X-Ce)},R=s.computed(()=>{var Ce;if(!f.value)return{};const G=f.value;let U="none";if((Ce=t.editor)!=null&&Ce.view){const Le=t.editor.view.dom.querySelector(".tableWrapper");if(Le){const X=Le.getBoundingClientRect(),ce=Math.max(0,X.left-G.left),Te=Math.max(0,X.top-G.top),pt=Math.min(G.width,X.right-G.left),Ue=Math.min(G.height,X.bottom-G.top);U=`inset(${Te}px ${G.width-pt}px ${G.height-Ue}px ${ce}px)`}}return{position:"fixed",top:`${G.top}px`,left:`${G.left}px`,width:`${G.width}px`,height:`${G.height}px`,pointerEvents:"none",zIndex:999,clipPath:U}}),O=s.computed(()=>{var Ce;if(!f.value)return{};const G=f.value,U=G.left+1;if((Ce=t.editor)!=null&&Ce.view){const Le=t.editor.view.dom.querySelector(".tableWrapper");if(Le){const X=Le.getBoundingClientRect();if(U<X.left||U>X.right)return{display:"none"}}}return{position:"fixed",top:`${G.top+G.height/2}px`,left:`${U}px`,transform:"translate(-50%, -50%)",zIndex:1e3}}),M=s.computed(()=>{var Ce;if(!f.value)return{};const G=f.value,U=G.left+G.width/2;if((Ce=t.editor)!=null&&Ce.view){const Le=t.editor.view.dom.querySelector(".tableWrapper");if(Le){const X=Le.getBoundingClientRect();if(U<X.left||U>X.right)return{display:"none"}}}return{position:"fixed",top:`${G.top+1}px`,left:`${U}px`,transform:"translate(-50%, -50%)",zIndex:1e3}}),S=s.computed(()=>{var Ce;if(!f.value)return{};const G=f.value,U=G.right-1;if((Ce=t.editor)!=null&&Ce.view){const Le=t.editor.view.dom.querySelector(".tableWrapper");if(Le){const X=Le.getBoundingClientRect();if(U<X.left||U>X.right)return{display:"none"}}}return{position:"fixed",top:`${G.top+G.height/2}px`,left:`${U}px`,transform:"translate(-50%, -50%)",zIndex:1e3}}),F=s.computed(()=>{if(!f.value)return{};const G=f.value;return window.innerWidth-G.right<160+20?{position:"absolute",top:"0",right:"100%",marginRight:"8px"}:{position:"absolute",top:"0",left:"100%",marginLeft:"8px"}}),V=s.computed(()=>{if(!f.value)return{};const G=f.value;return window.innerHeight-G.bottom<200?{position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"8px"}:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"8px"}}),z=s.computed(()=>{if(!f.value)return{};const G=f.value;return window.innerWidth-G.right<160+20?{position:"absolute",top:"0",right:"100%",marginRight:"8px"}:{position:"absolute",top:"0",left:"100%",marginLeft:"8px"}}),H=()=>{if(!t.editor||!t.editor.isEditable){a.value=!1;return}if(!t.editor.isActive("table")){a.value=!1,i.value=null,l.value=[],c.value=!1,f.value=null;return}try{const{selection:U}=t.editor.state;if(U instanceof Kt){c.value=!0;const ze=[],{view:we}=t.editor;if(U.forEachCell((ut,Ct)=>{const vt=we.nodeDOM(Ct);vt instanceof HTMLElement&&(vt.tagName==="TD"||vt.tagName==="TH")&&ze.push(vt)}),ze.length>0){l.value=ze.map(wn=>wn.getBoundingClientRect()),f.value=x(l.value);const ut=ze[0],Ct=ut.parentElement,vt=Ct==null?void 0:Ct.closest("table");if(vt){const wn=vt.querySelector("tr");o.value=Ct===wn}if(Ct){const wn=Array.from(Ct.children).indexOf(ut);u.value=wn===0}a.value=!0;return}}c.value=!1;const{from:Ce}=U;let X=t.editor.view.domAtPos(Ce).node;X.nodeType===Node.TEXT_NODE&&(X=X.parentElement);let ce=null,Te=X;for(;Te&&Te!==document.body;){if(Te instanceof HTMLElement&&(Te.tagName==="TD"||Te.tagName==="TH")){ce=Te;break}Te=Te.parentNode}if(!ce){a.value=!1;return}const pt=ce.getBoundingClientRect();i.value=pt,l.value=[pt],f.value=pt;const Ue=ce.parentElement,qe=Ue==null?void 0:Ue.closest("table");if(qe){const ze=qe.querySelector("tr");o.value=Ue===ze}if(Ue){const ze=Array.from(Ue.children).indexOf(ce);u.value=ze===0}a.value=!0}catch(U){console.warn("TableBubbleMenu: failed to find table",U),a.value=!1}},ie=()=>{t.editor.chain().focus().addColumnBefore().run(),p.value=!1},Me=()=>{t.editor.chain().focus().addColumnAfter().run(),p.value=!1},ye=()=>{t.editor.chain().focus().deleteColumn().run(),p.value=!1},ve=()=>{t.editor.chain().focus().addRowBefore().run(),d.value=!1},q=()=>{t.editor.chain().focus().addRowAfter().run(),d.value=!1},J=()=>{t.editor.chain().focus().deleteRow().run(),d.value=!1},Ie=()=>t.editor.chain().focus().mergeCells().run(),Ve=()=>t.editor.chain().focus().splitCell().run(),oe=()=>t.editor.chain().focus().deleteTable().run(),W=()=>{m.value=!m.value,b.value=!1},se=()=>{b.value=!b.value,m.value=!1},Se=()=>{A.value=!A.value,E.value=!1},le=()=>{E.value=!E.value,A.value=!1},be=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;for(let ce=X.depth;ce>0;ce--){const Te=X.node(ce);if(Te.type.name==="tableRow"){const pt=X.before(ce);let Ue=U.tr,qe=pt+1;Te.forEach(ze=>{const we=qe+1,ut=we+ze.content.size;G?Ue=Ue.addMark(we,ut,U.schema.marks.textStyle.create({color:G})):Ue=Ue.removeMark(we,ut,U.schema.marks.textStyle),qe+=ze.nodeSize}),Ce.dispatch(Ue);break}}m.value=!1},De=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;for(let ce=X.depth;ce>0;ce--){const Te=X.node(ce);if(Te.type.name==="tableRow"){const pt=X.before(ce);let Ue=U.tr,qe=pt+1;Te.forEach(ze=>{Ue=Ue.setNodeMarkup(qe,null,{...ze.attrs,background:G||null}),qe+=ze.nodeSize}),Ce.dispatch(Ue);break}}b.value=!1},he=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;let ce=-1;for(let we=X.depth;we>0;we--){const ut=X.node(we);if(ut.type.name==="tableCell"||ut.type.name==="tableHeader"){ce=X.index(we-1);break}}if(ce===-1)return;let Te=-1;for(let we=X.depth;we>0;we--)if(X.node(we).type.name==="table"){Te=we;break}if(Te===-1)return;const pt=X.node(Te),Ue=X.before(Te);let qe=U.tr,ze=Ue+1;pt.forEach(we=>{if(we.type.name==="tableRow"){let ut=0,Ct=ze+1;we.forEach(vt=>{if(ut===ce){const wn=Ct+1,Np=wn+vt.content.size;G?qe=qe.addMark(wn,Np,U.schema.marks.textStyle.create({color:G})):qe=qe.removeMark(wn,Np,U.schema.marks.textStyle)}ut++,Ct+=vt.nodeSize})}ze+=we.nodeSize}),Ce.dispatch(qe),A.value=!1},tt=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;let ce=-1;for(let we=X.depth;we>0;we--){const ut=X.node(we);if(ut.type.name==="tableCell"||ut.type.name==="tableHeader"){ce=X.index(we-1);break}}if(ce===-1)return;let Te=-1;for(let we=X.depth;we>0;we--)if(X.node(we).type.name==="table"){Te=we;break}if(Te===-1)return;const pt=X.node(Te),Ue=X.before(Te);let qe=U.tr,ze=Ue+1;pt.forEach(we=>{if(we.type.name==="tableRow"){let ut=0,Ct=ze+1;we.forEach(vt=>{ut===ce&&(qe=qe.setNodeMarkup(Ct,null,{...vt.attrs,background:G||null})),ut++,Ct+=vt.nodeSize})}ze+=we.nodeSize}),Ce.dispatch(qe),E.value=!1},re=()=>{d.value=!d.value,p.value=!1,g.value=!1},Ge=()=>{p.value=!p.value,d.value=!1,g.value=!1},Fe=()=>{g.value=!g.value,d.value=!1,p.value=!1},nt=()=>{w.value=!w.value,C.value=!1},Pe=()=>{C.value=!C.value,w.value=!1},rt=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;for(let ce=X.depth;ce>0;ce--){const Te=X.node(ce);if(Te.type.name==="tableCell"||Te.type.name==="tableHeader"){const Ue=X.before(ce)+1,qe=Ue+Te.content.size;let ze=U.tr;G?ze=ze.addMark(Ue,qe,U.schema.marks.textStyle.create({color:G})):ze=ze.removeMark(Ue,qe,U.schema.marks.textStyle),Ce.dispatch(ze);break}}w.value=!1},hr=G=>{if(!t.editor)return;const{state:U,view:Ce}=t.editor,{selection:Le}=U,{$from:X}=Le;for(let ce=X.depth;ce>0;ce--){const Te=X.node(ce);if(Te.type.name==="tableCell"||Te.type.name==="tableHeader"){const pt=X.before(ce),Ue=U.tr.setNodeMarkup(pt,null,{...Te.attrs,background:G||null});Ce.dispatch(Ue);break}}C.value=!1},Yr=()=>{T.value=!0},wt=()=>{T.value=!1,setTimeout(()=>{T.value||(d.value=!1)},200)},ht=()=>{N.value=!0},In=()=>{N.value=!1,setTimeout(()=>{N.value||(p.value=!1)},200)},Ss=()=>{D.value=!0},Ds=()=>{D.value=!1,setTimeout(()=>{D.value||(g.value=!1)},200)},yp=G=>{const U=G.target;!U.closest(".table-row-handle")&&!U.closest(".table-col-handle")&&(d.value=!1,p.value=!1)};let vs=!1;const Tp=G=>{vs||!G||(G.on("selectionUpdate",H),G.on("transaction",H),window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),window.addEventListener("click",yp),vs=!0)},kp=G=>{!vs||!G||(G.off("selectionUpdate",H),G.off("transaction",H),window.removeEventListener("scroll",H,!0),window.removeEventListener("resize",H),window.removeEventListener("click",yp),vs=!1)};return s.onMounted(()=>{t.editor&&Tp(t.editor)}),s.onUnmounted(()=>{kp(t.editor)}),s.watch(()=>t.editor,(G,U)=>{U&&kp(U),G&&(Tp(G),H())},{immediate:!0}),(G,U)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[a.value&&f.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"cell-highlight",style:s.normalizeStyle(R.value)},[o.value?(s.openBlock(),s.createElementBlock("div",IA)):(s.openBlock(),s.createElementBlock("div",wA)),U[6]||(U[6]=s.createElementVNode("div",{class:"highlight-line bottom-line-full"},null,-1)),u.value?(s.openBlock(),s.createElementBlock("div",CA)):(s.openBlock(),s.createElementBlock("div",_A)),U[7]||(U[7]=s.createElementVNode("div",{class:"highlight-line right-line"},null,-1))],4)):s.createCommentVNode("",!0),a.value&&i.value&&u.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["table-row-handle",{"theme-dark":r.value}]),style:s.normalizeStyle(O.value),onMouseenter:Yr,onMouseleave:wt},[s.createElementVNode("div",{class:s.normalizeClass(["handle-trigger row-trigger",{"opacity-0":T.value||d.value}])},null,2),T.value||d.value?(s.openBlock(),s.createElementBlock("button",{key:0,class:"handle-btn",onClick:s.withModifiers(re,["stop"]),title:"行操作"},[...U[8]||(U[8]=[s.createElementVNode("div",{class:"css-grip-vertical"},[s.createElementVNode("i"),s.createElementVNode("i"),s.createElementVNode("i"),s.createElementVNode("i"),s.createElementVNode("i"),s.createElementVNode("i")],-1)])])):s.createCommentVNode("",!0),d.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"table-menu",style:s.normalizeStyle(F.value)},[s.createElementVNode("button",{class:"menu-item",onClick:ve},[s.createVNode(s.unref(sb),{size:14}),U[9]||(U[9]=s.createElementVNode("span",null,"在上方插入行",-1))]),s.createElementVNode("button",{class:"menu-item",onClick:q},[s.createVNode(s.unref(nb),{size:14}),U[10]||(U[10]=s.createElementVNode("span",null,"在下方插入行",-1))]),U[14]||(U[14]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("div",xA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(W,["stop"])},[s.createVNode(s.unref(Zn),{size:14}),U[11]||(U[11]=s.createElementVNode("span",null,"文本颜色",-1))]),m.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[0]||(U[0]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"text",onSelect:be})],2)):s.createCommentVNode("",!0)]),s.createElementVNode("div",MA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(se,["stop"])},[s.createVNode(s.unref(Ti),{size:14}),U[12]||(U[12]=s.createElementVNode("span",null,"背景颜色",-1))]),b.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[1]||(U[1]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"background",onSelect:De})],2)):s.createCommentVNode("",!0)]),U[15]||(U[15]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("button",{class:"menu-item danger",onClick:J},[s.createVNode(s.unref(Jn),{size:14}),U[13]||(U[13]=s.createElementVNode("span",null,"删除行",-1))])],4)):s.createCommentVNode("",!0)],38)):s.createCommentVNode("",!0),a.value&&i.value&&o.value?(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["table-col-handle",{"theme-dark":r.value}]),style:s.normalizeStyle(M.value),onMouseenter:ht,onMouseleave:In},[s.createElementVNode("div",{class:s.normalizeClass(["handle-trigger col-trigger",{"opacity-0":N.value||p.value}])},null,2),N.value||p.value?(s.openBlock(),s.createElementBlock("button",{key:0,class:"handle-btn",onClick:s.withModifiers(Ge,["stop"]),title:"列操作"},[s.createVNode(s.unref(hb),{size:14})])):s.createCommentVNode("",!0),p.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"table-menu",style:s.normalizeStyle(V.value)},[s.createElementVNode("button",{class:"menu-item",onClick:ie},[s.createVNode(s.unref(rb),{size:14}),U[16]||(U[16]=s.createElementVNode("span",null,"在左侧插入列",-1))]),s.createElementVNode("button",{class:"menu-item",onClick:Me},[s.createVNode(s.unref(ab),{size:14}),U[17]||(U[17]=s.createElementVNode("span",null,"在右侧插入列",-1))]),U[21]||(U[21]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("div",SA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(Se,["stop"])},[s.createVNode(s.unref(Zn),{size:14}),U[18]||(U[18]=s.createElementVNode("span",null,"文本颜色",-1))]),A.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[2]||(U[2]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"text",onSelect:he})],2)):s.createCommentVNode("",!0)]),s.createElementVNode("div",DA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(le,["stop"])},[s.createVNode(s.unref(Ti),{size:14}),U[19]||(U[19]=s.createElementVNode("span",null,"背景颜色",-1))]),E.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[3]||(U[3]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"background",onSelect:tt})],2)):s.createCommentVNode("",!0)]),U[22]||(U[22]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("button",{class:"menu-item danger",onClick:ye},[s.createVNode(s.unref(Jn),{size:14}),U[20]||(U[20]=s.createElementVNode("span",null,"删除列",-1))])],4)):s.createCommentVNode("",!0)],38)):s.createCommentVNode("",!0),a.value&&i.value?(s.openBlock(),s.createElementBlock("div",{key:3,class:s.normalizeClass(["table-cell-handle",{"theme-dark":r.value}]),style:s.normalizeStyle(S.value),onMouseenter:Ss,onMouseleave:Ds},[s.createElementVNode("div",{class:s.normalizeClass(["handle-trigger cell-trigger",{"opacity-0":D.value||g.value}])},null,2),D.value||g.value?(s.openBlock(),s.createElementBlock("button",{key:0,class:"handle-btn",onClick:s.withModifiers(Fe,["stop"]),title:"单元格操作"},[...U[23]||(U[23]=[s.createElementVNode("div",{class:"css-more-vertical"},[s.createElementVNode("i"),s.createElementVNode("i"),s.createElementVNode("i")],-1)])])):s.createCommentVNode("",!0),g.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"table-menu",style:s.normalizeStyle(z.value)},[s.createElementVNode("div",vA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(nt,["stop"])},[s.createVNode(s.unref(Zn),{size:14}),U[24]||(U[24]=s.createElementVNode("span",null,"文本颜色",-1))]),w.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[4]||(U[4]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"text",onSelect:rt})],2)):s.createCommentVNode("",!0)]),s.createElementVNode("div",OA,[s.createElementVNode("button",{class:"menu-item",onClick:s.withModifiers(Pe,["stop"])},[s.createVNode(s.unref(Ti),{size:14}),U[25]||(U[25]=s.createElementVNode("span",null,"背景颜色",-1))]),C.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["color-picker-dropdown",{"show-left":B.value}]),onClick:U[5]||(U[5]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(On,{type:"background",onSelect:hr})],2)):s.createCommentVNode("",!0)]),U[29]||(U[29]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("button",{class:"menu-item",onClick:Ie,disabled:!v.value},[s.createVNode(s.unref(fb),{size:14}),U[26]||(U[26]=s.createElementVNode("span",null,"合并单元格",-1))],8,LA),s.createElementVNode("button",{class:"menu-item",onClick:Ve,disabled:!_.value},[s.createVNode(s.unref(Lb),{size:14}),U[27]||(U[27]=s.createElementVNode("span",null,"拆分单元格",-1))],8,BA),U[30]||(U[30]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),s.createElementVNode("button",{class:"menu-item danger",onClick:oe},[s.createVNode(s.unref(Jn),{size:14}),U[28]||(U[28]=s.createElementVNode("span",null,"删除表格",-1))])],4)):s.createCommentVNode("",!0)],38)):s.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f3a17012"]]),$f="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",qf={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},Jf="u",Ci="n",_i="v",sa="r",PA={[Ci]:["grinning face","grinning"],[Jf]:"1f600",[sa]:"1f600"},xi="neutral",UA=[xi,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],FA={placeholder:"Search emoji",skinTone:"Skin tone"},HA=["light","dark","auto"];var zA={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},Zf=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const jA=(e,t)=>t.some(n=>e instanceof n);let Xf,ed;function VA(){return Xf||(Xf=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function YA(){return ed||(ed=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const td=new WeakMap,Oo=new WeakMap,nd=new WeakMap,Lo=new WeakMap,Bo=new WeakMap;function QA(e){const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{n(Ln(e.result)),a()},o=()=>{r(e.error),a()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&td.set(n,e)}).catch(()=>{}),Bo.set(t,e),t}function KA(e){if(Oo.has(e))return;const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{n(),a()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});Oo.set(e,t)}let Ro={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Oo.get(e);if(t==="objectStoreNames")return e.objectStoreNames||nd.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ln(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function WA(e){Ro=e(Ro)}function GA(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Po(this),t,...n);return nd.set(r,t.sort?t.sort():[t]),Ln(r)}:YA().includes(e)?function(...t){return e.apply(Po(this),t),Ln(td.get(this))}:function(...t){return Ln(e.apply(Po(this),t))}}function $A(e){return typeof e=="function"?GA(e):(e instanceof IDBTransaction&&KA(e),jA(e,VA())?new Proxy(e,Ro):e)}function Ln(e){if(e instanceof IDBRequest)return QA(e);if(Lo.has(e))return Lo.get(e);const t=$A(e);return t!==e&&(Lo.set(e,t),Bo.set(t,e)),t}const Po=e=>Bo.get(e);function Uo(e,t,{blocked:n,upgrade:r,blocking:a,terminated:i}={}){const o=indexedDB.open(e,t),u=Ln(o);return r&&o.addEventListener("upgradeneeded",l=>{r(Ln(o.result),l.oldVersion,l.newVersion,Ln(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),u.then(l=>{i&&l.addEventListener("close",()=>i()),a&&l.addEventListener("versionchange",c=>a(c.oldVersion,c.newVersion,c))}).catch(()=>{}),u}const qA=["get","getKey","getAll","getAllKeys","count"],JA=["put","add","delete","clear"],Fo=new Map;function rd(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Fo.get(t))return Fo.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,a=JA.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||qA.includes(n)))return;const i=async function(o,...u){const l=this.transaction(o,a?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(u.shift())),(await Promise.all([c[n](...u),a&&l.done]))[0]};return Fo.set(t,i),i}WA(e=>({...e,get:(t,n,r)=>rd(t,n)||e.get(t,n,r),has:(t,n)=>!!rd(t,n)||e.has(t,n)}));const Ho="EMJ",Nr="emojis",zo=3;async function ZA(){(await Uo(Ho,zo,{upgrade(t,n){t.objectStoreNames.contains(Nr)||t.createObjectStore(Nr,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}ZA();const XA={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function e2(){return await(await Uo(Ho,zo)).transaction(Nr,"readonly").objectStore(Nr).getAll()}function t2(){const e=s.reactive({search:"",emoji:PA,activeGroup:"",skinTone:xi,options:XA,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...zA}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return Zf.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...Zf.map(p=>p.key)];return[...new Set(d)].filter(p=>!this.disabled.includes(p))}});function t(){e.options.displayRecent&&r()}async function n(){var d;let p=await e2();return Array.isArray(p)&&p.length?p=JSON.parse(((d=p[0])==null?void 0:d.value)||""):p=[],p}function r(){n().then(d=>{e.recent=d,c()})}const a=d=>{e.search=d},i=d=>{e.emoji=d},o=d=>{e.activeGroup=d},u=(d=xi)=>{e.skinTone=d},l=d=>{e.options=Object.assign({},e.options,d),t()};async function c(){(await Uo(Ho,zo)).transaction(Nr,"readwrite").objectStore(Nr).put({id:0,value:JSON.stringify(e.recent)})}const f=d=>{if(e.options.displayRecent!==!0)return;const p=e.recent.findIndex(m=>m.u===d.u);if(p>0&&e.recent.splice(p,1),p===0)return;const g={u:d.u,n:s.toRaw(d.n)};e.recent=[g,...e.recent],e.recent.length>24&&(e.recent.length=24),c()};return{state:s.readonly(e),updateSearch:a,updateEmoji:i,updateActiveGroup:o,updateSkinTone:u,updateOptions:l,updateSelect:f}}var Et="top",Rt="bottom",Pt="right",yt="left",jo="auto",oa=[Et,Rt,Pt,yt],Ir="start",ua="end",n2="clippingParents",ad="viewport",la="popper",r2="reference",id=oa.reduce(function(e,t){return e.concat([t+"-"+Ir,t+"-"+ua])},[]),sd=[].concat(oa,[jo]).reduce(function(e,t){return e.concat([t,t+"-"+Ir,t+"-"+ua])},[]),a2="beforeRead",i2="read",s2="afterRead",o2="beforeMain",u2="main",l2="afterMain",c2="beforeWrite",f2="write",d2="afterWrite",h2=[a2,i2,s2,o2,u2,l2,c2,f2,d2];function rn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Ut(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function od(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p2(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Ut(i)||!rn(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var u=a[o];u===!1?i.removeAttribute(o):i.setAttribute(o,u===!0?"":u)}))})}function g2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=o.reduce(function(l,c){return l[c]="",l},{});!Ut(a)||!rn(a)||(Object.assign(a.style,u),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var m2={name:"applyStyles",enabled:!0,phase:"write",fn:p2,effect:g2,requires:["computeStyles"]};function an(e){return e.split("-")[0]}var Xn=Math.max,Mi=Math.min,Cr=Math.round;function _r(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Ut(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=Cr(n.width)/o||1),i>0&&(a=Cr(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Vo(e){var t=_r(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ud(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&od(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sn(e){return Wt(e).getComputedStyle(e)}function b2(e){return["table","td","th"].indexOf(rn(e))>=0}function Bn(e){return((wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Si(e){return rn(e)==="html"?e:e.assignedSlot||e.parentNode||(od(e)?e.host:null)||Bn(e)}function ld(e){return!Ut(e)||sn(e).position==="fixed"?null:e.offsetParent}function A2(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ut(e)){var r=sn(e);if(r.position==="fixed")return null}for(var a=Si(e);Ut(a)&&["html","body"].indexOf(rn(a))<0;){var i=sn(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ca(e){for(var t=Wt(e),n=ld(e);n&&b2(n)&&sn(n).position==="static";)n=ld(n);return n&&(rn(n)==="html"||rn(n)==="body"&&sn(n).position==="static")?t:n||A2(e)||t}function Yo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fa(e,t,n){return Xn(e,Mi(t,n))}function E2(e,t,n){var r=fa(e,t,n);return r>n?n:r}function cd(){return{top:0,right:0,bottom:0,left:0}}function fd(e){return Object.assign({},cd(),e)}function dd(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var y2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fd(typeof t!="number"?t:dd(t,oa))};function T2(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,u=an(n.placement),l=Yo(u),c=[yt,Pt].indexOf(u)>=0,f=c?"height":"width";if(!(!i||!o)){var d=y2(a.padding,n),p=Vo(i),g=l==="y"?Et:yt,m=l==="y"?Rt:Pt,b=n.rects.reference[f]+n.rects.reference[l]-o[l]-n.rects.popper[f],A=o[l]-n.rects.reference[l],E=ca(i),w=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,C=b/2-A/2,T=d[g],N=w-p[f]-d[m],D=w/2-p[f]/2+C,B=fa(T,D,N),v=l;n.modifiersData[r]=(t={},t[v]=B,t.centerOffset=B-D,t)}}function k2(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ud(t.elements.popper,a)&&(t.elements.arrow=a))}var N2={name:"arrow",enabled:!0,phase:"main",fn:T2,effect:k2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xr(e){return e.split("-")[1]}var I2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function w2(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Cr(t*a)/a||0,y:Cr(n*a)/a||0}}function hd(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,u=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=f===!0?w2(o):typeof f=="function"?f(o):o,g=p.x,m=g===void 0?0:g,b=p.y,A=b===void 0?0:b,E=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),C=yt,T=Et,N=window;if(c){var D=ca(n),B="clientHeight",v="clientWidth";if(D===Wt(n)&&(D=Bn(n),sn(D).position!=="static"&&u==="absolute"&&(B="scrollHeight",v="scrollWidth")),D=D,a===Et||(a===yt||a===Pt)&&i===ua){T=Rt;var _=d&&N.visualViewport?N.visualViewport.height:D[B];A-=_-r.height,A*=l?1:-1}if(a===yt||(a===Et||a===Rt)&&i===ua){C=Pt;var x=d&&N.visualViewport?N.visualViewport.width:D[v];m-=x-r.width,m*=l?1:-1}}var R=Object.assign({position:u},c&&I2);if(l){var O;return Object.assign({},R,(O={},O[T]=w?"0":"",O[C]=E?"0":"",O.transform=(N.devicePixelRatio||1)<=1?"translate("+m+"px, "+A+"px)":"translate3d("+m+"px, "+A+"px, 0)",O))}return Object.assign({},R,(t={},t[T]=w?A+"px":"",t[C]=E?m+"px":"",t.transform="",t))}function C2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,u=n.roundOffsets,l=u===void 0?!0:u,c={placement:an(t.placement),variation:xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C2,data:{}},Di={passive:!0};function x2(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,u=o===void 0?!0:o,l=Wt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,Di)}),u&&l.addEventListener("resize",n.update,Di),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Di)}),u&&l.removeEventListener("resize",n.update,Di)}}var M2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:x2,data:{}},S2={left:"right",right:"left",bottom:"top",top:"bottom"};function vi(e){return e.replace(/left|right|bottom|top/g,function(t){return S2[t]})}var D2={start:"end",end:"start"};function pd(e){return e.replace(/start|end/g,function(t){return D2[t]})}function Qo(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ko(e){return _r(Bn(e)).left+Qo(e).scrollLeft}function v2(e){var t=Wt(e),n=Bn(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,u=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,u=r.offsetTop)),{width:a,height:i,x:o+Ko(e),y:u}}function O2(e){var t,n=Bn(e),r=Qo(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Xn(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Xn(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-r.scrollLeft+Ko(e),l=-r.scrollTop;return sn(a||n).direction==="rtl"&&(u+=Xn(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:u,y:l}}function Wo(e){var t=sn(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function gd(e){return["html","body","#document"].indexOf(rn(e))>=0?e.ownerDocument.body:Ut(e)&&Wo(e)?e:gd(Si(e))}function da(e,t){var n;t===void 0&&(t=[]);var r=gd(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(r),o=a?[i].concat(i.visualViewport||[],Wo(r)?r:[]):r,u=t.concat(o);return a?u:u.concat(da(Si(o)))}function Go(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L2(e){var t=_r(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function md(e,t){return t===ad?Go(v2(e)):wr(t)?L2(t):Go(O2(Bn(e)))}function B2(e){var t=da(Si(e)),n=["absolute","fixed"].indexOf(sn(e).position)>=0,r=n&&Ut(e)?ca(e):e;return wr(r)?t.filter(function(a){return wr(a)&&ud(a,r)&&rn(a)!=="body"&&(n?sn(a).position!=="static":!0)}):[]}function R2(e,t,n){var r=t==="clippingParents"?B2(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(u,l){var c=md(e,l);return u.top=Xn(c.top,u.top),u.right=Mi(c.right,u.right),u.bottom=Mi(c.bottom,u.bottom),u.left=Xn(c.left,u.left),u},md(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function bd(e){var t=e.reference,n=e.element,r=e.placement,a=r?an(r):null,i=r?xr(r):null,o=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,l;switch(a){case Et:l={x:o,y:t.y-n.height};break;case Rt:l={x:o,y:t.y+t.height};break;case Pt:l={x:t.x+t.width,y:u};break;case yt:l={x:t.x-n.width,y:u};break;default:l={x:t.x,y:t.y}}var c=a?Yo(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case Ir:l[c]=l[c]-(t[f]/2-n[f]/2);break;case ua:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function ha(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,o=i===void 0?n2:i,u=n.rootBoundary,l=u===void 0?ad:u,c=n.elementContext,f=c===void 0?la:c,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,m=g===void 0?0:g,b=fd(typeof m!="number"?m:dd(m,oa)),A=f===la?r2:la,E=e.rects.popper,w=e.elements[p?A:f],C=R2(wr(w)?w:w.contextElement||Bn(e.elements.popper),o,l),T=_r(e.elements.reference),N=bd({reference:T,element:E,placement:a}),D=Go(Object.assign({},E,N)),B=f===la?D:T,v={top:C.top-B.top+b.top,bottom:B.bottom-C.bottom+b.bottom,left:C.left-B.left+b.left,right:B.right-C.right+b.right},_=e.modifiersData.offset;if(f===la&&_){var x=_[a];Object.keys(v).forEach(function(R){var O=[Pt,Rt].indexOf(R)>=0?1:-1,M=[Et,Rt].indexOf(R)>=0?"y":"x";v[R]+=x[M]*O})}return v}function P2(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?sd:l,f=xr(r),d=f?u?id:id.filter(function(m){return xr(m)===f}):oa,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var g=p.reduce(function(m,b){return m[b]=ha(e,{placement:b,boundary:a,rootBoundary:i,padding:o})[an(b)],m},{});return Object.keys(g).sort(function(m,b){return g[m]-g[b]})}function U2(e){if(an(e)===jo)return[];var t=vi(e);return[pd(e),t,pd(t)]}function F2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,u=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,b=n.allowedAutoPlacements,A=t.options.placement,E=an(A),w=E===A,C=l||(w||!m?[vi(A)]:U2(A)),T=[A].concat(C).reduce(function(J,Ie){return J.concat(an(Ie)===jo?P2(t,{placement:Ie,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:b}):Ie)},[]),N=t.rects.reference,D=t.rects.popper,B=new Map,v=!0,_=T[0],x=0;x<T.length;x++){var R=T[x],O=an(R),M=xr(R)===Ir,S=[Et,Rt].indexOf(O)>=0,F=S?"width":"height",V=ha(t,{placement:R,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),z=S?M?Pt:yt:M?Rt:Et;N[F]>D[F]&&(z=vi(z));var H=vi(z),ie=[];if(i&&ie.push(V[O]<=0),u&&ie.push(V[z]<=0,V[H]<=0),ie.every(function(J){return J})){_=R,v=!1;break}B.set(R,ie)}if(v)for(var Me=m?3:1,ye=function(Ie){var Ve=T.find(function(oe){var W=B.get(oe);if(W)return W.slice(0,Ie).every(function(se){return se})});if(Ve)return _=Ve,"break"},ve=Me;ve>0;ve--){var q=ye(ve);if(q==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var H2={name:"flip",enabled:!0,phase:"main",fn:F2,requiresIfExists:["offset"],data:{_skip:!1}};function Ad(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ed(e){return[Et,Pt,Rt,yt].some(function(t){return e[t]>=0})}function z2(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=ha(t,{elementContext:"reference"}),u=ha(t,{altBoundary:!0}),l=Ad(o,r),c=Ad(u,a,i),f=Ed(l),d=Ed(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var j2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z2};function V2(e,t,n){var r=an(e),a=[yt,Et].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],u=i[1];return o=o||0,u=(u||0)*a,[yt,Pt].indexOf(r)>=0?{x:u,y:o}:{x:o,y:u}}function Y2(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=sd.reduce(function(f,d){return f[d]=V2(d,t.rects,i),f},{}),u=o[t.placement],l=u.x,c=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var Q2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Y2};function K2(e){var t=e.state,n=e.name;t.modifiersData[n]=bd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var W2={name:"popperOffsets",enabled:!0,phase:"read",fn:K2,data:{}};function G2(e){return e==="x"?"y":"x"}function $2(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,u=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,A=ha(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:f}),E=an(t.placement),w=xr(t.placement),C=!w,T=Yo(E),N=G2(T),D=t.modifiersData.popperOffsets,B=t.rects.reference,v=t.rects.popper,_=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,x=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(D){if(i){var M,S=T==="y"?Et:yt,F=T==="y"?Rt:Pt,V=T==="y"?"height":"width",z=D[T],H=z+A[S],ie=z-A[F],Me=g?-v[V]/2:0,ye=w===Ir?B[V]:v[V],ve=w===Ir?-v[V]:-B[V],q=t.elements.arrow,J=g&&q?Vo(q):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cd(),Ve=Ie[S],oe=Ie[F],W=fa(0,B[V],J[V]),se=C?B[V]/2-Me-W-Ve-x.mainAxis:ye-W-Ve-x.mainAxis,Se=C?-B[V]/2+Me+W+oe+x.mainAxis:ve+W+oe+x.mainAxis,le=t.elements.arrow&&ca(t.elements.arrow),be=le?T==="y"?le.clientTop||0:le.clientLeft||0:0,De=(M=R==null?void 0:R[T])!=null?M:0,he=z+se-De-be,tt=z+Se-De,re=fa(g?Mi(H,he):H,z,g?Xn(ie,tt):ie);D[T]=re,O[T]=re-z}if(u){var Ge,Fe=T==="x"?Et:yt,nt=T==="x"?Rt:Pt,Pe=D[N],rt=N==="y"?"height":"width",hr=Pe+A[Fe],Yr=Pe-A[nt],wt=[Et,yt].indexOf(E)!==-1,ht=(Ge=R==null?void 0:R[N])!=null?Ge:0,In=wt?hr:Pe-B[rt]-v[rt]-ht+x.altAxis,Ss=wt?Pe+B[rt]+v[rt]-ht-x.altAxis:Yr,Ds=g&&wt?E2(In,Pe,Ss):fa(g?In:hr,Pe,g?Ss:Yr);D[N]=Ds,O[N]=Ds-Pe}t.modifiersData[r]=O}}var q2={name:"preventOverflow",enabled:!0,phase:"main",fn:$2,requiresIfExists:["offset"]};function J2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z2(e){return e===Wt(e)||!Ut(e)?Qo(e):J2(e)}function X2(e){var t=e.getBoundingClientRect(),n=Cr(t.width)/e.offsetWidth||1,r=Cr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function e3(e,t,n){n===void 0&&(n=!1);var r=Ut(t),a=Ut(t)&&X2(t),i=Bn(t),o=_r(e,a),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(t)!=="body"||Wo(i))&&(u=Z2(t)),Ut(t)?(l=_r(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ko(i))),{x:o.left+u.scrollLeft-l.x,y:o.top+u.scrollTop-l.y,width:o.width,height:o.height}}function t3(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(u){if(!n.has(u)){var l=t.get(u);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function n3(e){var t=t3(e);return h2.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function r3(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function a3(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var yd={placement:"bottom",modifiers:[],strategy:"absolute"};function Td(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function i3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?yd:a;return function(u,l,c){c===void 0&&(c=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},yd,i),modifiersData:{},elements:{reference:u,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:f,setOptions:function(E){var w=typeof E=="function"?E(f.options):E;b(),f.options=Object.assign({},i,f.options,w),f.scrollParents={reference:wr(u)?da(u):u.contextElement?da(u.contextElement):[],popper:da(l)};var C=n3(a3([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(T){return T.enabled}),m(),g.update()},forceUpdate:function(){if(!p){var E=f.elements,w=E.reference,C=E.popper;if(Td(w,C)){f.rects={reference:e3(w,ca(C),f.options.strategy==="fixed"),popper:Vo(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(x){return f.modifiersData[x.name]=Object.assign({},x.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var N=f.orderedModifiers[T],D=N.fn,B=N.options,v=B===void 0?{}:B,_=N.name;typeof D=="function"&&(f=D({state:f,options:v,name:_,instance:g})||f)}}}},update:r3(function(){return new Promise(function(A){g.forceUpdate(),A(f)})}),destroy:function(){b(),p=!0}};if(!Td(u,l))return g;g.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function m(){f.orderedModifiers.forEach(function(A){var E=A.name,w=A.options,C=w===void 0?{}:w,T=A.effect;if(typeof T=="function"){var N=T({state:f,name:E,instance:g,options:C}),D=function(){};d.push(N||D)}})}function b(){d.forEach(function(A){return A()}),d=[]}return g}}var s3=[M2,W2,_2,m2,Q2,H2,q2,N2,j2],o3=i3({defaultModifiers:s3}),kd="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function Oi(e){return e.split("-").map(t=>parseInt(t,16)).map(t=>String.fromCodePoint(t)).join("")}function u3(e,t,n,r=[]){const a={};return Object.keys(e).forEach(i=>{if(r.includes(i))return;const o=[];e[i].forEach(u=>{var l;if(u[Ci][0].includes(t.toLocaleLowerCase())){let c=u[Jf];if(n!==xi&&Array.isArray(u[_i])){const f=((l=u[_i])==null?void 0:l.findIndex(d=>d.includes(n)))||-1;f!==-1&&u[_i]&&(c=u[_i][f])}return o.push({...u,[sa]:c})}}),o.length&&(a[i]=o)}),a}function Nd(){var e;return(((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function Id(e){return e.replace(/^_*(.)|_+(.)/g,(t,n,r)=>n?n.toUpperCase():" "+r.toUpperCase())}var pa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const l3=s.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:t,updateSelect:n}=s.inject("store"),r=s.ref(null),a=s.computed(()=>u3(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),i=s.getCurrentInstance(),o=s.computed(()=>!e.options.hideGroupNames),u=s.computed(()=>!e.options.disableStickyGroupNames),l=s.toRaw(e.options.groupNames),c=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(m=>{e.options.groupNames[m]?l[m]=e.options.groupNames[m]:l[m]=Id(m)});const f=Nd()?"is-mac":"";function d(m){t(m)}function p(m){n(m),i==null||i.emit("select",{...m,t:e.skinTone,i:Oi(m.r)})}function g(m,b){var A;const E=(A=m==null?void 0:m.target)==null?void 0:A.closest("button");E&&(E.innerHTML=`<span>${Oi(b)}</span>`)}return s.watch(()=>e.activeGroup,()=>{var m;const b=(m=r.value)==null?void 0:m.querySelector("#"+e.activeGroup);b&&(b.parentNode.scrollTop=b.offsetTop-b.parentNode.offsetTop)}),{emojis:a,bodyInner:r,EMOJI_REMOTE_SRC:$f,GROUP_NAMES:qf,handleClick:p,handleError:g,handleMouseEnter:d,native:e.options.native,unicodeToEmoji:Oi,EMOJI_RESULT_KEY:sa,EMOJI_NAME_KEY:Ci,hasGroupNames:o,isSticky:u,platform:f,groupNames:l,orderedKeys:c}}}),c3={class:"v3-body"},f3=["id"],d3={class:"v3-emojis"},h3=["onMouseenter","onClick"],p3={key:0},g3=["src","alt","onError"],m3={key:1,class:"v3-no-result"};function b3(e,t,n,r,a,i){return s.openBlock(),s.createElementBlock("div",c3,[s.createElementVNode("div",{ref:"bodyInner",class:s.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.orderedKeys,o=>(s.openBlock(),s.createElementBlock("div",{id:o,key:o,class:"v3-group"},[e.hasGroupNames?s.withDirectives((s.openBlock(),s.createElementBlock("h5",{key:0,class:s.normalizeClass(e.isSticky?"v3-sticky":"")},s.toDisplayString(e.groupNames[o]),3)),[[s.vShow,e.emojis[o]]]):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",d3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.emojis[o],u=>(s.openBlock(),s.createElementBlock("button",{key:u.r,type:"button",onMouseenter:l=>e.handleMouseEnter(u),onClick:l=>e.handleClick(u)},[e.native?(s.openBlock(),s.createElementBlock("span",p3,s.toDisplayString(e.unicodeToEmoji(u.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${u.r}.png`,alt:u.n[0],onError:l=>e.handleError(l,u.r)},null,40,g3))],40,h3))),128))],512),[[s.vShow,e.emojis[o]]])],8,f3))),128)):(s.openBlock(),s.createElementBlock("span",m3," No emoji has been found! "))],2)])}var A3=pa(l3,[["render",b3]]),E3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",y3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",T3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",k3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",N3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",I3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",w3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",C3="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const _3=s.defineComponent({name:"Header",setup(e){const{state:t,updateSearch:n,updateActiveGroup:r}=s.inject("store"),a=s.computed(()=>!t.options.hideSearch),i=s.computed(()=>!t.options.hideGroupIcons),o=JSON.parse(JSON.stringify(t.orderedGroupKeys)),u=s.computed(()=>t.options.staticTexts.placeholder||""),l=s.computed({get:()=>t.search,set:d=>n(d)}),c=[...t.groups,...Object.keys(t.options.additionalGroups).map(d=>({key:d,title:t.options.groupNames[d]?t.options.groupNames[d]:Id(d)}))],f=[];return o.forEach(d=>{const p=c.findIndex(g=>g.key===d);p!==-1&&(f.push(c[p]),c.splice(p,1))}),{orderedGroups:f,orderedKeys:o,searchValue:l,updateActiveGroup:r,hasSearch:a,hasGroupIcons:i,placeholder:u,icons:{smileys_people:kd,animals_nature:E3,food_drink:y3,activities:T3,travel_places:k3,objects:N3,symbols:I3,flags:w3,...t.options.groupIcons,recent:C3}}}}),x3={key:0,class:"v3-header"},M3={key:0,class:"v3-groups"},S3=["onClick"],D3=["title"],v3=["src"],O3={key:1,class:"v3-spacing"},L3={key:2,class:"v3-search"},B3=["placeholder"];function R3(e,t,n,r,a,i){return e.hasGroupIcons||e.hasSearch?(s.openBlock(),s.createElementBlock("div",x3,[e.hasGroupIcons?(s.openBlock(),s.createElementBlock("div",M3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.orderedGroups,o=>(s.openBlock(),s.createElementBlock("button",{key:o.key,type:"button",class:s.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[o.key]}]),onClick:u=>e.updateActiveGroup(o.key)},[s.createElementVNode("span",{title:o.title,class:"v3-icon"},[s.createElementVNode("img",{src:e.icons[o.key],alt:""},null,8,v3)],8,D3)],10,S3))),128))])):s.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(s.openBlock(),s.createElementBlock("div",O3)):s.createCommentVNode("",!0),e.hasSearch?(s.openBlock(),s.createElementBlock("div",L3,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>e.searchValue=o),type:"text",placeholder:e.placeholder},null,8,B3),[[s.vModelText,e.searchValue]])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}var P3=pa(_3,[["render",R3]]);const U3=s.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:t}=s.inject("store"),n=s.ref(!1),r=s.ref(!1),a=s.computed(()=>e.skinTone),i=s.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),o=s.computed(()=>!e.options.disableSkinTones),u=Nd()?"is-mac":"",l=s.computed(()=>({...e.emoji,src:$f+"/"+e.emoji[sa]+".png"}));function c(p=!0){n.value=p}function f(){n.value=!n.value}function d(p){t(p),c(!1)}return s.watch(()=>e.emoji,()=>{r.value=!1}),{emoji:l,SKIN_TONES:UA,updateSkinToneState:c,skinTone:n,stateSkinTone:a,selectSkinTone:d,toggleSkinToneState:f,EMOJI_RESULT_KEY:sa,EMOJI_NAME_KEY:Ci,skinToneText:i,hasSkinTones:o,native:e.options.native,unicodeToEmoji:Oi,platform:u,hasError:r}}}),F3={class:"v3-foot-left"},H3={key:0},z3=["alt","src"],j3={class:"v3-text"},V3={class:"v3-text"},Y3=["onClick"];function Q3(e,t,n,r,a,i){return s.openBlock(),s.createElementBlock("div",{class:"v3-footer",onMouseleave:t[2]||(t[2]=o=>e.updateSkinToneState(!1))},[s.createElementVNode("div",F3,[s.createElementVNode("span",{class:s.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(s.openBlock(),s.createElementBlock("span",H3,s.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:t[0]||(t[0]=o=>e.hasError=!0)},null,40,z3))],2),s.createElementVNode("span",j3," :"+s.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("button",{type:"button",class:"v3-tone",onClick:t[1]||(t[1]=(...o)=>e.toggleSkinToneState&&e.toggleSkinToneState(...o))},[s.createElementVNode("span",V3,s.toDisplayString(e.skinToneText),1),s.createElementVNode("span",{class:s.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),s.createElementVNode("div",{class:s.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.SKIN_TONES,o=>(s.openBlock(),s.createElementBlock("button",{key:o,type:"button",class:s.normalizeClass(["v3-skin-tone-"+o,"v3-skin-tone"]),onClick:u=>e.selectSkinTone(o)},null,10,Y3))),128))],2)],64)):s.createCommentVNode("",!0)],32)}var K3=pa(U3,[["render",Q3]]);const W3=s.defineComponent({name:"PickerRoot",components:{Header:P3,Body:A3,Footer:K3},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:e=>!0,"update:text":e=>!0},setup(e,{emit:t}){const n=s.ref(),r=s.ref(),a=s.ref(),i=s.ref(!1),o=s.ref(e.text),u=e.type==="input"||e.type==="textarea";let l=-1;const{state:c}=s.inject("store"),f=s.computed(()=>c.options.colorTheme);function d(A){if(u){const E=c.options.mode;E==="prepend"?o.value=A.i+o.value:E==="insert"&&l!==-1?(o.value=`${o.value.slice(0,l)}${A.i}${o.value.slice(l)}`,l+=A.i.length):o.value+=A.i,t("update:text",o.value)}t("select",A)}function p(){var A;n.value&&(l=((A=n.value)==null?void 0:A.selectionEnd)||-1)}function g(A){var E;!((E=A.target)!=null&&E.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function m(){if(r.value&&a.value&&u){let A=c.options.offset;typeof A!="number"&&(A=6),o3(r.value,a.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,A]}}]}),document.body.addEventListener("click",g)}}function b(A){o.value=A.target.value||"",t("update:text",o.value)}return s.onMounted(()=>{m()}),s.onBeforeUnmount(()=>{document.body.removeEventListener("click",g)}),{face:kd,open:i,onSelect:d,input:o,elem:n,updateCursor:p,button:r,picker:a,isInputType:u,onChangeText:b,colorTheme:f}}}),G3={key:0,class:"v3-input-emoji-picker"},$3={class:"v3-input-picker-root"},q3=["value"],J3=["value"],Z3=["src"];function X3(e,t,n,r,a,i){const o=s.resolveComponent("Header"),u=s.resolveComponent("Body"),l=s.resolveComponent("Footer");return e.isInputType?(s.openBlock(),s.createElementBlock("div",G3,[s.createElementVNode("div",$3,[e.type==="input"?(s.openBlock(),s.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:t[0]||(t[0]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[1]||(t[1]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,q3)):(s.openBlock(),s.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:t[2]||(t[2]=(...c)=>e.onChangeText&&e.onChangeText(...c)),onBlur:t[3]||(t[3]=(...c)=>e.updateCursor&&e.updateCursor(...c))},null,40,J3)),s.createElementVNode("div",{class:s.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[s.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:t[4]||(t[4]=c=>e.open=!e.open)},[s.createElementVNode("img",{src:e.face,alt:""},null,8,Z3)],512),s.createElementVNode("div",{ref:"picker",class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[s.createVNode(o),s.createVNode(u,{onSelect:e.onSelect},null,8,["onSelect"]),s.createVNode(l)],2)],2)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[s.createVNode(o),s.createVNode(u,{onSelect:e.onSelect},null,8,["onSelect"]),s.createVNode(l)],2))}var eE=pa(W3,[["render",X3]]);const tE=s.defineComponent({name:"Picker",components:{PickerRoot:eE},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":e=>!0,select:e=>!0},setup(e,{emit:t}){const n=s.ref(e.text);function r(i){n.value=i||"",t("update:text",n.value)}const a=t2();return a.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...FA,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...qf,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:HA.includes(e.theme)?e.theme:"light"}),s.provide("store",a),{type:e.pickerType,input:n,onChangeText:r}}});function nE(e,t,n,r,a,i){const o=s.resolveComponent("picker-root");return s.openBlock(),s.createBlock(o,{type:e.type,text:e.input,onSelect:t[0]||(t[0]=u=>e.$emit("select",u)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var wd=pa(tE,[["render",nE]]);const rE={smileys_people:"笑脸 & 人物",animals_nature:"动物 & 自然",food_drink:"食物 & 饮料",activities:"活动",travel_places:"旅行 & 地点",objects:"物体",symbols:"符号",flags:"旗帜",recently_used:"最近使用"},aE={placeholder:"搜索表情...",skinTone:"肤色"},iE=["readonly"],sE={class:"text"},oE={key:0,class:"title-picker-popover backlinks-popover"},uE={class:"title-picker-content backlinks-content"},lE={class:"backlinks-list"},cE=["onClick"],fE={class:"backlink-title"},dE={key:1,class:"title-picker-popover"},hE={class:"title-picker-content"},pE=Qe(s.defineComponent({__name:"EditorTitle",props:{title:{default:""},editable:{type:Boolean,default:!0},theme:{default:"light"},backlinks:{default:()=>[]}},emits:["update:title","backlink-click","backlink-menu-click","focus-editor"],setup(e,{emit:t}){const n=e,r=t,a=s.ref(n.title||""),i=s.ref(!1),o=s.ref(!1),u=s.ref(!1),l=()=>{r("update:title",a.value)},c=()=>{u.value=!1,o.value=!o.value},f=()=>{o.value=!1,u.value=!u.value,u.value&&r("backlink-menu-click")},d=g=>{r("backlink-click",g),u.value=!1},p=g=>{const m=g.i||g.emoji;m&&(a.value=m+" "+a.value,r("update:title",a.value),o.value=!1)};return s.watch(()=>n.title,g=>{g!==a.value&&(a.value=g||"")}),(g,m)=>(s.openBlock(),s.createElementBlock("div",{class:"document-title-wrapper",onMouseenter:m[4]||(m[4]=b=>i.value=!0),onMouseleave:m[5]||(m[5]=b=>i.value=!1)},[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),class:"document-title-input",placeholder:"请输入标题",readonly:!e.editable,onInput:l,onKeydown:m[1]||(m[1]=s.withKeys(s.withModifiers(b=>g.$emit("focus-editor"),["prevent"]),["enter"]))},null,40,iE),[[s.vModelText,a.value]]),s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["title-icon-actions",{"is-active":o.value||u.value,"is-dark":e.theme==="dark"}])},[e.backlinks&&e.backlinks.length>0?(s.openBlock(),s.createElementBlock("button",{key:0,class:"title-action-btn backlink-btn",onClick:s.withModifiers(f,["stop","prevent"]),title:"查看反向链接"},[s.createVNode(s.unref(ib),{class:"icon",size:16}),s.createElementVNode("span",sE,s.toDisplayString(e.backlinks.length)+" backlink"+s.toDisplayString(e.backlinks.length>1?"s":""),1)])):s.createCommentVNode("",!0),s.createElementVNode("button",{class:"title-action-btn",onClick:s.withModifiers(c,["stop","prevent"]),title:"添加图标"},[s.createVNode(s.unref(vb),{class:"icon",size:18}),m[6]||(m[6]=s.createElementVNode("span",{class:"text"},"添加图标",-1))])],2),[[s.vShow,e.editable&&(i.value||o.value||u.value)]]),u.value?(s.openBlock(),s.createElementBlock("div",oE,[s.createElementVNode("div",{class:"title-picker-overlay",onClick:m[2]||(m[2]=b=>u.value=!1)}),s.createElementVNode("div",uE,[m[7]||(m[7]=s.createElementVNode("div",{class:"backlinks-header"},"链接到此页面",-1)),s.createElementVNode("div",lE,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.backlinks,b=>(s.openBlock(),s.createElementBlock("div",{key:b.id,class:"backlink-item",onClick:A=>d(b.id)},[s.createVNode(s.unref(ia),{class:"backlink-icon",size:16}),s.createElementVNode("span",fE,s.toDisplayString(b.title||"无标题文档"),1)],8,cE))),128))])])])):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createElementBlock("div",dE,[s.createElementVNode("div",{class:"title-picker-overlay",onClick:m[3]||(m[3]=b=>o.value=!1)}),s.createElementVNode("div",hE,[s.createVNode(s.unref(wd),{native:!0,onSelect:p,"display-recent":!0,"group-names":s.unref(rE),"static-texts":s.unref(aE),theme:e.theme},null,8,["group-names","static-texts","theme"])])])):s.createCommentVNode("",!0)],32))}}),[["__scopeId","data-v-1e04277b"]]);function $o(e,t){const n=()=>e.value?e.value.getHTML():"",r=()=>{var p;if(!e.value)return"";const f=e.value.getMarkdown(),d=((p=t==null?void 0:t.getTitle)==null?void 0:p.call(t))||"";return d?`---
|
|
347
|
+
title: ${d}
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
${f}`:f},a=()=>e.value?e.value.getText():"",i=()=>e.value?e.value.getJSON():null,o=f=>{const d=/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/,p=f.match(d);if(!p)return{title:"",content:f};const g=p[1],m=p[2],b=g.match(/^title:\s*(.+)$/m);return{title:b?b[1].trim():"",content:m}};return{getHTML:n,getMarkdown:r,getJSON:i,getText:a,setMarkdown:(f,d=!0)=>{if(!e.value)return;const{title:p,content:g}=o(f);p&&(t!=null&&t.setTitle)&&t.setTitle(p),e.value.commands.setContent(g,{contentType:"markdown",emitUpdate:!1})},setHTML:f=>{e.value&&e.value.commands.setContent(f,{emitUpdate:!1})},setJSON:f=>{if(e.value)try{const d=typeof f=="string"?JSON.parse(f):f;d.title&&(t!=null&&t.setTitle)&&t.setTitle(d.title);const p=d.content||d;e.value.commands.setContent(p,!1)}catch(d){throw console.error("[setJSON] Failed to import JSON:",d),d}}}}function Cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var _d={exports:{}},xe;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(xe||(xe={}));function mE(e){return e.type===xe.Tag||e.type===xe.Script||e.type===xe.Style}const bE=xe.Root,AE=xe.Text,EE=xe.Directive,yE=xe.Comment,TE=xe.Script,kE=xe.Style,NE=xe.Tag,IE=xe.CDATA,wE=xe.Doctype;let xd=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return ma(this,t)}};class qo extends xd{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class ga extends qo{constructor(){super(...arguments),this.type=xe.Text}get nodeType(){return 3}}class Jo extends qo{constructor(){super(...arguments),this.type=xe.Comment}get nodeType(){return 8}}class Zo extends qo{constructor(t,n){super(n),this.name=t,this.type=xe.Directive}get nodeType(){return 1}}class Xo extends xd{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class Md extends Xo{constructor(){super(...arguments),this.type=xe.CDATA}get nodeType(){return 4}}let er=class extends Xo{constructor(){super(...arguments),this.type=xe.Root}get nodeType(){return 9}},eu=class extends Xo{constructor(t,n,r=[],a=t==="script"?xe.Script:t==="style"?xe.Style:xe.Tag){super(r),this.name=t,this.attribs=n,this.type=a}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var n,r;return{name:t,value:this.attribs[t],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function ae(e){return mE(e)}function Li(e){return e.type===xe.CDATA}function on(e){return e.type===xe.Text}function Bi(e){return e.type===xe.Comment}function tu(e){return e.type===xe.Directive}function Rn(e){return e.type===xe.Root}function $e(e){return Object.prototype.hasOwnProperty.call(e,"children")}function ma(e,t=!1){let n;if(on(e))n=new ga(e.data);else if(Bi(e))n=new Jo(e.data);else if(ae(e)){const r=t?nu(e.children):[],a=new eu(e.name,{...e.attribs},r);r.forEach(i=>i.parent=a),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=a}else if(Li(e)){const r=t?nu(e.children):[],a=new Md(r);r.forEach(i=>i.parent=a),n=a}else if(Rn(e)){const r=t?nu(e.children):[],a=new er(r);r.forEach(i=>i.parent=a),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else if(tu(e)){const r=new Zo(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function nu(e){const t=e.map(n=>ma(n,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const Sd={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class CE{constructor(t,n,r){this.dom=[],this.root=new er(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=Sd),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??Sd,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new er(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,n){const r=this.options.xmlMode?xe.Tag:void 0,a=new eu(t,n,void 0,r);this.addNode(a),this.tagStack.push(a)}ontext(t){const{lastNode:n}=this;if(n&&n.type===xe.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new ga(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===xe.Comment){this.lastNode.data+=t;return}const n=new Jo(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new ga(""),n=new Md([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new Zo(t,n);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),r&&(t.prev=r,r.next=t),t.parent=n,this.lastNode=null}}const Dd=/["&'<>$\x80-\uFFFF]/g,_E=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),xE=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function vd(e){let t="",n=0,r;for(;(r=Dd.exec(e))!==null;){const a=r.index,i=e.charCodeAt(a),o=_E.get(i);o!==void 0?(t+=e.substring(n,a)+o,n=a+1):(t+=`${e.substring(n,a)}&#x${xE(e,a).toString(16)};`,n=Dd.lastIndex+=+((i&64512)===55296))}return t+e.substr(n)}function Od(e,t){return function(r){let a,i=0,o="";for(;a=e.exec(r);)i!==a.index&&(o+=r.substring(i,a.index)),o+=t.get(a[0].charCodeAt(0)),i=a.index+1;return o+r.substring(i)}}const ME=Od(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),SE=Od(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),DE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),vE=new Map(["definitionURL","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])),OE=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function LE(e){return e.replace(/"/g,""")}function BE(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?LE:t.xmlMode||t.encodeEntities!=="utf8"?vd:ME;return Object.keys(e).map(a=>{var i,o;const u=(i=e[a])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(a=(o=vE.get(a))!==null&&o!==void 0?o:a),!t.emptyAttrs&&!t.xmlMode&&u===""?a:`${a}="${r(u)}"`}).join(" ")}const Ld=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Ri(e,t={}){const n="length"in e?e:[e];let r="";for(let a=0;a<n.length;a++)r+=RE(n[a],t);return r}function RE(e,t){switch(e.type){case bE:return Ri(e.children,t);case wE:case EE:return HE(e);case yE:return VE(e);case IE:return jE(e);case TE:case kE:case NE:return FE(e,t);case AE:return zE(e,t)}}const PE=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),UE=new Set(["svg","math"]);function FE(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=DE.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&PE.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&UE.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const a=BE(e.attribs,t);return a&&(r+=` ${a}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Ld.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=Ri(e.children,t)),(t.xmlMode||!Ld.has(e.name))&&(r+=`</${e.name}>`)),r}function HE(e){return`<${e.data}>`}function zE(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&OE.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?vd(r):SE(r)),r}function jE(e){return`<![CDATA[${e.children[0].data}]]>`}function VE(e){return`<!--${e.data}-->`}function Bd(e,t){return Ri(e,t)}function YE(e,t){return $e(e)?e.children.map(n=>Bd(n,t)).join(""):""}function Pi(e){return Array.isArray(e)?e.map(Pi).join(""):ae(e)?e.name==="br"?`
|
|
351
|
+
`:Pi(e.children):Li(e)?Pi(e.children):on(e)?e.data:""}function Mr(e){return Array.isArray(e)?e.map(Mr).join(""):$e(e)&&!Bi(e)?Mr(e.children):on(e)?e.data:""}function Ui(e){return Array.isArray(e)?e.map(Ui).join(""):$e(e)&&(e.type===xe.Tag||Li(e))?Ui(e.children):on(e)?e.data:""}function Fi(e){return $e(e)?e.children:[]}function Rd(e){return e.parent||null}function Pd(e){const t=Rd(e);if(t!=null)return Fi(t);const n=[e];let{prev:r,next:a}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;a!=null;)n.push(a),{next:a}=a;return n}function QE(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function KE(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function WE(e){return e.name}function ru(e){let{next:t}=e;for(;t!==null&&!ae(t);)({next:t}=t);return t}function au(e){let{prev:t}=e;for(;t!==null&&!ae(t);)({prev:t}=t);return t}function tr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function GE(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const a=t.parent=e.parent;if(a){const i=a.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function $E(e,t){if(tr(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function qE(e,t){tr(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const a=n.children;a.splice(a.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function JE(e,t){if(tr(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function ZE(e,t){tr(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function ba(e,t,n=!0,r=1/0){return iu(e,Array.isArray(t)?t:[t],n,r)}function iu(e,t,n,r){const a=[],i=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return a;i.shift(),o.shift();continue}const u=i[0][o[0]++];if(e(u)&&(a.push(u),--r<=0))return a;n&&$e(u)&&u.children.length>0&&(o.unshift(0),i.unshift(u.children))}}function XE(e,t){return t.find(e)}function su(e,t,n=!0){const r=Array.isArray(t)?t:[t];for(let a=0;a<r.length;a++){const i=r[a];if(ae(i)&&e(i))return i;if(n&&$e(i)&&i.children.length>0){const o=su(e,i.children,!0);if(o)return o}}return null}function Ud(e,t){return(Array.isArray(t)?t:[t]).some(n=>ae(n)&&e(n)||$e(n)&&Ud(e,n.children))}function ey(e,t){const n=[],r=[Array.isArray(t)?t:[t]],a=[0];for(;;){if(a[0]>=r[0].length){if(r.length===1)return n;r.shift(),a.shift();continue}const i=r[0][a[0]++];ae(i)&&e(i)&&n.push(i),$e(i)&&i.children.length>0&&(a.unshift(0),r.unshift(i.children))}}const Hi={tag_name(e){return typeof e=="function"?t=>ae(t)&&e(t.name):e==="*"?ae:t=>ae(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>on(t)&&e(t.data):t=>on(t)&&t.data===e}};function ou(e,t){return typeof t=="function"?n=>ae(n)&&t(n.attribs[e]):n=>ae(n)&&n.attribs[e]===t}function ty(e,t){return n=>e(n)||t(n)}function Fd(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Hi,n)?Hi[n](r):ou(n,r)});return t.length===0?null:t.reduce(ty)}function ny(e,t){const n=Fd(e);return n?n(t):!0}function ry(e,t,n,r=1/0){const a=Fd(e);return a?ba(a,t,n,r):[]}function ay(e,t,n=!0){return Array.isArray(t)||(t=[t]),su(ou("id",e),t,n)}function Sr(e,t,n=!0,r=1/0){return ba(Hi.tag_name(e),t,n,r)}function iy(e,t,n=!0,r=1/0){return ba(ou("class",e),t,n,r)}function sy(e,t,n=!0,r=1/0){return ba(Hi.tag_type(e),t,n,r)}function oy(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Ft;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Ft||(Ft={}));function Hd(e,t){const n=[],r=[];if(e===t)return 0;let a=$e(e)?e:e.parent;for(;a;)n.unshift(a),a=a.parent;for(a=$e(t)?t:t.parent;a;)r.unshift(a),a=a.parent;const i=Math.min(n.length,r.length);let o=0;for(;o<i&&n[o]===r[o];)o++;if(o===0)return Ft.DISCONNECTED;const u=n[o-1],l=u.children,c=n[o],f=r[o];return l.indexOf(c)>l.indexOf(f)?u===t?Ft.FOLLOWING|Ft.CONTAINED_BY:Ft.FOLLOWING:u===e?Ft.PRECEDING|Ft.CONTAINS:Ft.PRECEDING}function Dr(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=Hd(t,n);return r&Ft.PRECEDING?-1:r&Ft.FOLLOWING?1:0}),e}function uy(e){const t=zi(hy,e);return t?t.name==="feed"?ly(t):cy(t):null}function ly(e){var t;const n=e.children,r={type:"atom",items:Sr("entry",n).map(o=>{var u;const{children:l}=o,c={media:zd(l)};Tt(c,"id","id",l),Tt(c,"title","title",l);const f=(u=zi("link",l))===null||u===void 0?void 0:u.attribs.href;f&&(c.link=f);const d=Pn("summary",l)||Pn("content",l);d&&(c.description=d);const p=Pn("updated",l);return p&&(c.pubDate=new Date(p)),c})};Tt(r,"id","id",n),Tt(r,"title","title",n);const a=(t=zi("link",n))===null||t===void 0?void 0:t.attribs.href;a&&(r.link=a),Tt(r,"description","subtitle",n);const i=Pn("updated",n);return i&&(r.updated=new Date(i)),Tt(r,"author","email",n,!0),r}function cy(e){var t,n;const r=(n=(t=zi("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],a={type:e.name.substr(0,3),id:"",items:Sr("item",e.children).map(o=>{const{children:u}=o,l={media:zd(u)};Tt(l,"id","guid",u),Tt(l,"title","title",u),Tt(l,"link","link",u),Tt(l,"description","description",u);const c=Pn("pubDate",u)||Pn("dc:date",u);return c&&(l.pubDate=new Date(c)),l})};Tt(a,"title","title",r),Tt(a,"link","link",r),Tt(a,"description","description",r);const i=Pn("lastBuildDate",r);return i&&(a.updated=new Date(i)),Tt(a,"author","managingEditor",r,!0),a}const fy=["url","type","lang"],dy=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function zd(e){return Sr("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const a of fy)n[a]&&(r[a]=n[a]);for(const a of dy)n[a]&&(r[a]=parseInt(n[a],10));return n.expression&&(r.expression=n.expression),r})}function zi(e,t){return Sr(e,t,!0,1)[0]}function Pn(e,t,n=!1){return Mr(Sr(e,t,n,1)).trim()}function Tt(e,t,n,r,a=!1){const i=Pn(n,r,a);i&&(e[t]=i)}function hy(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const ji=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Ft},append:qE,appendChild:$E,compareDocumentPosition:Hd,existsOne:Ud,filter:ba,find:iu,findAll:ey,findOne:su,findOneChild:XE,getAttributeValue:QE,getChildren:Fi,getElementById:ay,getElements:ry,getElementsByClassName:iy,getElementsByTagName:Sr,getElementsByTagType:sy,getFeed:uy,getInnerHTML:YE,getName:WE,getOuterHTML:Bd,getParent:Rd,getSiblings:Pd,getText:Pi,hasAttrib:KE,hasChildren:$e,innerText:Ui,isCDATA:Li,isComment:Bi,isDocument:Rn,isTag:ae,isText:on,nextElementSibling:ru,prepend:ZE,prependChild:JE,prevElementSibling:au,removeElement:tr,removeSubsets:oy,replaceElement:GE,testElement:ny,textContent:Mr,uniqueSort:Dr},Symbol.toStringTag,{value:"Module"})),py={_useHtmlParser2:!1};function uu(e,t){if(!e)return t??py;const n={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(n._useHtmlParser2=!0,n.xmlMode=!0,e.xml!==!0&&Object.assign(n,e.xml)):e.xmlMode&&(n._useHtmlParser2=!0),n}function jd(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function gy(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function my(e,t){const n=gy(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...uu(t)};return jd(this,n,r)}function by(e){const t={...this._options,xmlMode:!0};return jd(this,e,t)}function Aa(e){const t=e??(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=Mr(t[r]);return n}function Ay(e,t,n=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t);const r=this.load(e,this._options,!1);return n||r("script").remove(),[...r.root()[0].children]}function Ey(){return this(this._root)}function lu(e,t){if(t===e)return!1;let n=t;for(;n&&n!==n.parent;)if(n=n.parent,n===e)return!0;return!1}function yy(e){return this.root().extract(e)}function Vd(e,t){if(!Yd(e)||!Yd(t))return;let n=e.length;const r=+t.length;for(let a=0;a<r;a++)e[n++]=t[a];return e.length=n,e}function Yd(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const Ty=Object.freeze(Object.defineProperty({__proto__:null,contains:lu,extract:yy,html:my,merge:Vd,parseHTML:Ay,root:Ey,text:Aa,xml:by},Symbol.toStringTag,{value:"Module"}));function En(e){return e.cheerio!=null}function ky(e){return e.replace(/[._-](\w|$)/g,(t,n)=>n.toUpperCase())}function Ny(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function We(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}var nr;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(nr||(nr={}));function cu(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=nr.LowerA&&n<=nr.LowerZ||n>=nr.UpperA&&n<=nr.UpperZ||n===nr.Exclamation)&&e.includes(">",t+2)}const Ea=Object.prototype.hasOwnProperty,ya=/\s+/,fu="data-",du=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Iy=/^{[^]*}$|^\[[^]*]$/;function Vi(e,t,n){var r;if(!(!e||!ae(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(Ea.call(e.attribs,t))return!n&&du.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Aa(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function vr(e,t,n){n===null?Gd(e,t):e.attribs[t]=`${n}`}function wy(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return We(this,(n,r)=>{ae(n)&&vr(n,e,t.call(n,r,n.attribs[e]))})}return We(this,n=>{if(ae(n))if(typeof e=="object")for(const r of Object.keys(e)){const a=e[r];vr(n,r,a)}else vr(n,e,t)})}return arguments.length>1?this:Vi(this[0],e,this.options.xmlMode)}function Qd(e,t,n){return t in e?e[t]:!n&&du.test(t)?Vi(e,t,!1)!==void 0:Vi(e,t,n)}function hu(e,t,n,r){t in e?e[t]=n:vr(e,t,!r&&du.test(t)?n?"":null:`${n}`)}function Cy(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!ae(r))return;switch(e){case"style":{const a=this.css(),i=Object.keys(a);for(let o=0;o<i.length;o++)a[o]=i[o];return a.length=i.length,a}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const a=(n=r.attribs)===null||n===void 0?void 0:n[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&a!==void 0&&this.options.baseURI?new URL(a,this.options.baseURI).href:a}case"innerText":return Ui(r);case"textContent":return Mr(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Qd(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return We(this,(r,a)=>{ae(r)&&hu(r,e,t.call(r,a,Qd(r,e,this.options.xmlMode)),this.options.xmlMode)})}return We(this,r=>{if(ae(r))if(typeof e=="object")for(const a of Object.keys(e)){const i=e[a];hu(r,a,i,this.options.xmlMode)}else hu(r,e,t,this.options.xmlMode)})}}function Kd(e,t,n){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&n!==void 0&&(e.data[t]=n)}function _y(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(fu))continue;const n=ky(t.slice(fu.length));Ea.call(e.data,n)||(e.data[n]=Wd(e.attribs[t]))}return e.data}function xy(e,t){const n=fu+Ny(t),r=e.data;if(Ea.call(r,t))return r[t];if(Ea.call(e.attribs,n))return r[t]=Wd(e.attribs[n])}function Wd(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(Iy.test(e))try{return JSON.parse(e)}catch{}return e}function My(e,t){var n;const r=this[0];if(!r||!ae(r))return;const a=r;return(n=a.data)!==null&&n!==void 0||(a.data={}),e==null?_y(a):typeof e=="object"||t!==void 0?(We(this,i=>{ae(i)&&(typeof e=="object"?Kd(i,e):Kd(i,e,t))}),this):xy(a,e)}function Sy(e){const t=arguments.length===0,n=this[0];if(!n||!ae(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const a=typeof e=="object"?e:[e];for(const i of a)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(a=>Aa(a.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Gd(e,t){!e.attribs||!Ea.call(e.attribs,t)||delete e.attribs[t]}function Yi(e){return e?e.trim().split(ya):[]}function Dy(e){const t=Yi(e);for(const n of t)We(this,r=>{ae(r)&&Gd(r,n)});return this}function vy(e){return this.toArray().some(t=>{const n=ae(t)&&t.attribs.class;let r=-1;if(n&&e.length>0)for(;(r=n.indexOf(e,r+1))>-1;){const a=r+e.length;if((r===0||ya.test(n[r-1]))&&(a===n.length||ya.test(n[a])))return!0}return!1})}function $d(e){if(typeof e=="function")return We(this,(r,a)=>{if(ae(r)){const i=r.attribs.class||"";$d.call([r],e.call(r,a,i))}});if(!e||typeof e!="string")return this;const t=e.split(ya),n=this.length;for(let r=0;r<n;r++){const a=this[r];if(!ae(a))continue;const i=Vi(a,"class",!1);if(i){let o=` ${i} `;for(const u of t){const l=`${u} `;o.includes(` ${l}`)||(o+=l)}vr(a,"class",o.trim())}else vr(a,"class",t.join(" ").trim())}return this}function qd(e){if(typeof e=="function")return We(this,(a,i)=>{ae(a)&&qd.call([a],e.call(a,i,a.attribs.class||""))});const t=Yi(e),n=t.length,r=arguments.length===0;return We(this,a=>{if(ae(a))if(r)a.attribs.class="";else{const i=Yi(a.attribs.class);let o=!1;for(let u=0;u<n;u++){const l=i.indexOf(t[u]);l>=0&&(i.splice(l,1),o=!0,u--)}o&&(a.attribs.class=i.join(" "))}})}function Jd(e,t){if(typeof e=="function")return We(this,(o,u)=>{ae(o)&&Jd.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(ya),r=n.length,a=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let o=0;o<i;o++){const u=this[o];if(!ae(u))continue;const l=Yi(u.attribs.class);for(let c=0;c<r;c++){const f=l.indexOf(n[c]);a>=0&&f<0?l.push(n[c]):a<=0&&f>=0&&l.splice(f,1)}u.attribs.class=l.join(" ")}return this}const Oy=Object.freeze(Object.defineProperty({__proto__:null,addClass:$d,attr:wy,data:My,hasClass:vy,prop:Cy,removeAttr:Dy,removeClass:qd,toggleClass:Jd,val:Sy},Symbol.toStringTag,{value:"Module"}));var ee;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(ee||(ee={}));var Xe;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(Xe||(Xe={}));const Zd=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Ly=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,By=new Map([[126,Xe.Element],[94,Xe.Start],[36,Xe.End],[42,Xe.Any],[33,Xe.Not],[124,Xe.Hyphen]]),Ry=new Set(["has","not","matches","is","where","host","host-context"]);function Ta(e){switch(e.type){case ee.Adjacent:case ee.Child:case ee.Descendant:case ee.Parent:case ee.Sibling:case ee.ColumnCombinator:return!0;default:return!1}}const Py=new Set(["contains","icontains"]);function Uy(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function ka(e){return e.replace(Ly,Uy)}function pu(e){return e===39||e===34}function Xd(e){return e===32||e===9||e===10||e===12||e===13}function Qi(e){const t=[],n=e0(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function e0(e,t,n){let r=[];function a(p){const g=t.slice(n+p).match(Zd);if(!g)throw new Error(`Expected name, found ${t.slice(n)}`);const[m]=g;return n+=p+m.length,ka(m)}function i(p){for(n+=p;n<t.length&&Xd(t.charCodeAt(n));)n++}function o(){n+=1;const p=n;let g=1;for(;g>0&&n<t.length;n++)t.charCodeAt(n)===40&&!u(n)?g++:t.charCodeAt(n)===41&&!u(n)&&g--;if(g)throw new Error("Parenthesis not matched");return ka(t.slice(p,n-1))}function u(p){let g=0;for(;t.charCodeAt(--p)===92;)g++;return(g&1)===1}function l(){if(r.length>0&&Ta(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function c(p){if(r.length>0&&r[r.length-1].type===ee.Descendant){r[r.length-1].type=p;return}l(),r.push({type:p})}function f(p,g){r.push({type:ee.Attribute,name:p,action:g,value:a(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===ee.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){const p=t.charCodeAt(n);switch(p){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==ee.Descendant)&&(l(),r.push({type:ee.Descendant})),i(1);break}case 62:{c(ee.Child),i(1);break}case 60:{c(ee.Parent),i(1);break}case 126:{c(ee.Sibling),i(1);break}case 43:{c(ee.Adjacent),i(1);break}case 46:{f("class",Xe.Element);break}case 35:{f("id",Xe.Equals);break}case 91:{i(1);let g,m=null;t.charCodeAt(n)===124?g=a(1):t.startsWith("*|",n)?(m="*",g=a(2)):(g=a(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(m=g,g=a(1))),i(0);let b=Xe.Exists;const A=By.get(t.charCodeAt(n));if(A){if(b=A,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===61&&(b=Xe.Equals,i(1));let E="",w=null;if(b!=="exists"){if(pu(t.charCodeAt(n))){const N=t.charCodeAt(n);let D=n+1;for(;D<t.length&&(t.charCodeAt(D)!==N||u(D));)D+=1;if(t.charCodeAt(D)!==N)throw new Error("Attribute value didn't end");E=ka(t.slice(n+1,D)),n=D+1}else{const N=n;for(;n<t.length&&(!Xd(t.charCodeAt(n))&&t.charCodeAt(n)!==93||u(n));)n+=1;E=ka(t.slice(N,n))}i(0);const T=t.charCodeAt(n)|32;T===115?(w=!1,i(1)):T===105&&(w=!0,i(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const C={type:ee.Attribute,name:g,action:b,value:E,namespace:m,ignoreCase:w};r.push(C);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:ee.PseudoElement,name:a(2).toLowerCase(),data:t.charCodeAt(n)===40?o():null});continue}const g=a(1).toLowerCase();let m=null;if(t.charCodeAt(n)===40)if(Ry.has(g)){if(pu(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${g} cannot be quoted`);if(m=[],n=e0(m,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${g} (${t})`);n+=1}else{if(m=o(),Py.has(g)){const b=m.charCodeAt(0);b===m.charCodeAt(m.length-1)&&pu(b)&&(m=m.slice(1,-1))}m=ka(m)}r.push({type:ee.Pseudo,name:g,data:m});break}case 44:{d(),r=[],i(1);break}default:{if(t.startsWith("/*",n)){const b=t.indexOf("*/",n+2);if(b<0)throw new Error("Comment was not terminated");n=b+2,r.length===0&&i(0);break}let g=null,m;if(p===42)n+=1,m="*";else if(p===124){if(m="",t.charCodeAt(n+1)===124){c(ee.ColumnCombinator),i(2);break}}else if(Zd.test(t.slice(n)))m=a(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(g=m,t.charCodeAt(n+1)===42?(m="*",n+=2):m=a(1)),r.push(m==="*"?{type:ee.Universal,namespace:g}:{type:ee.Tag,name:m,namespace:g})}}}return d(),n}var Ki={trueFunc:function(){return!0},falseFunc:function(){return!1}};const ge=Cd(Ki),t0=new Map([[ee.Universal,50],[ee.Tag,30],[ee.Attribute,1],[ee.Pseudo,0]]);function gu(e){return!t0.has(e.type)}const Fy=new Map([[Xe.Exists,10],[Xe.Equals,8],[Xe.Not,7],[Xe.Start,6],[Xe.End,6],[Xe.Any,5]]);function Hy(e){const t=e.map(n0);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let a=n-1;a>=0&&r<t[a];a--){const i=e[a+1];e[a+1]=e[a],e[a]=i,t[a+1]=t[a],t[a]=r}}}function n0(e){var t,n;let r=(t=t0.get(e.type))!==null&&t!==void 0?t:-1;return e.type===ee.Attribute?(r=(n=Fy.get(e.action))!==null&&n!==void 0?n:4,e.action===Xe.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===ee.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(a=>Math.min(...a.map(n0)))),r<0&&(r=0)):r=2:r=3),r}const zy=/[-[\]{}()*+?.,\\^$|#\s]/g;function r0(e){return e.replace(zy,"\\$&")}const jy=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function rr(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&jy.has(e.name)}const Vy={equals(e,t,n){const{adapter:r}=n,{name:a}=t;let{value:i}=t;return rr(t,n)?(i=i.toLowerCase(),o=>{const u=r.getAttributeValue(o,a);return u!=null&&u.length===i.length&&u.toLowerCase()===i&&e(o)}):o=>r.getAttributeValue(o,a)===i&&e(o)},hyphen(e,t,n){const{adapter:r}=n,{name:a}=t;let{value:i}=t;const o=i.length;return rr(t,n)?(i=i.toLowerCase(),function(l){const c=r.getAttributeValue(l,a);return c!=null&&(c.length===o||c.charAt(o)==="-")&&c.substr(0,o).toLowerCase()===i&&e(l)}):function(l){const c=r.getAttributeValue(l,a);return c!=null&&(c.length===o||c.charAt(o)==="-")&&c.substr(0,o)===i&&e(l)}},element(e,t,n){const{adapter:r}=n,{name:a,value:i}=t;if(/\s/.test(i))return ge.falseFunc;const o=new RegExp(`(?:^|\\s)${r0(i)}(?:$|\\s)`,rr(t,n)?"i":"");return function(l){const c=r.getAttributeValue(l,a);return c!=null&&c.length>=i.length&&o.test(c)&&e(l)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){const{adapter:r}=n,{name:a}=t;let{value:i}=t;const o=i.length;return o===0?ge.falseFunc:rr(t,n)?(i=i.toLowerCase(),u=>{const l=r.getAttributeValue(u,a);return l!=null&&l.length>=o&&l.substr(0,o).toLowerCase()===i&&e(u)}):u=>{var l;return!!(!((l=r.getAttributeValue(u,a))===null||l===void 0)&&l.startsWith(i))&&e(u)}},end(e,t,n){const{adapter:r}=n,{name:a}=t;let{value:i}=t;const o=-i.length;return o===0?ge.falseFunc:rr(t,n)?(i=i.toLowerCase(),u=>{var l;return((l=r.getAttributeValue(u,a))===null||l===void 0?void 0:l.substr(o).toLowerCase())===i&&e(u)}):u=>{var l;return!!(!((l=r.getAttributeValue(u,a))===null||l===void 0)&&l.endsWith(i))&&e(u)}},any(e,t,n){const{adapter:r}=n,{name:a,value:i}=t;if(i==="")return ge.falseFunc;if(rr(t,n)){const o=new RegExp(r0(i),"i");return function(l){const c=r.getAttributeValue(l,a);return c!=null&&c.length>=i.length&&o.test(c)&&e(l)}}return o=>{var u;return!!(!((u=r.getAttributeValue(o,a))===null||u===void 0)&&u.includes(i))&&e(o)}},not(e,t,n){const{adapter:r}=n,{name:a}=t;let{value:i}=t;return i===""?o=>!!r.getAttributeValue(o,a)&&e(o):rr(t,n)?(i=i.toLowerCase(),o=>{const u=r.getAttributeValue(o,a);return(u==null||u.length!==i.length||u.toLowerCase()!==i)&&e(o)}):o=>r.getAttributeValue(o,a)!==i&&e(o)}},Yy=new Set([9,10,12,13,32]),a0=48,Qy=57;function Ky(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),a=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),u(),t<e.length?(r=i(),u(),a=o()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){const l=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=a0&&e.charCodeAt(t)<=Qy;)c=c*10+(e.charCodeAt(t)-a0),t++;return t===l?null:c}function u(){for(;t<e.length&&Yy.has(e.charCodeAt(t));)t++}}function Wy(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return ge.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?ge.trueFunc:i=>i>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?i=>i>=n&&i%r===a:i=>i<=n&&i%r===a}function Wi(e){return Wy(Ky(e))}function Gi(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const mu={contains(e,t,{adapter:n}){return function(a){return e(a)&&n.getText(a).includes(t)}},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(i){return e(i)&&n.getText(i).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const a=Wi(t);return a===ge.falseFunc?ge.falseFunc:a===ge.trueFunc?Gi(e,n):function(o){const u=n.getSiblings(o);let l=0;for(let c=0;c<u.length&&!r(o,u[c]);c++)n.isTag(u[c])&&l++;return a(l)&&e(o)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const a=Wi(t);return a===ge.falseFunc?ge.falseFunc:a===ge.trueFunc?Gi(e,n):function(o){const u=n.getSiblings(o);let l=0;for(let c=u.length-1;c>=0&&!r(o,u[c]);c--)n.isTag(u[c])&&l++;return a(l)&&e(o)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const a=Wi(t);return a===ge.falseFunc?ge.falseFunc:a===ge.trueFunc?Gi(e,n):function(o){const u=n.getSiblings(o);let l=0;for(let c=0;c<u.length;c++){const f=u[c];if(r(o,f))break;n.isTag(f)&&n.getName(f)===n.getName(o)&&l++}return a(l)&&e(o)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const a=Wi(t);return a===ge.falseFunc?ge.falseFunc:a===ge.trueFunc?Gi(e,n):function(o){const u=n.getSiblings(o);let l=0;for(let c=u.length-1;c>=0;c--){const f=u[c];if(r(o,f))break;n.isTag(f)&&n.getName(f)===n.getName(o)&&l++}return a(l)&&e(o)}},root(e,t,{adapter:n}){return r=>{const a=n.getParent(r);return(a==null||!n.isTag(a))&&e(r)}},scope(e,t,n,r){const{equals:a}=n;return!r||r.length===0?mu.root(e,t,n):r.length===1?i=>a(r[0],i)&&e(i):i=>r.includes(i)&&e(i)},hover:bu("isHovered"),visited:bu("isVisited"),active:bu("isActive")};function bu(e){return function(n,r,{adapter:a}){const i=a[e];return typeof i!="function"?ge.falseFunc:function(u){return i(u)&&n(u)}}}const i0={empty(e,{adapter:t}){return!t.getChildren(e).some(n=>t.isTag(n)||t.getText(n)!=="")},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(a=>t.isTag(a));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let a=r.length-1;a>=0;a--){if(n(e,r[a]))return!0;if(t.isTag(r[a]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),a=t.getName(e);for(let i=0;i<r.length;i++){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===a)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),a=t.getName(e);for(let i=r.length-1;i>=0;i--){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===a)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(a=>n(e,a)||!t.isTag(a)||t.getName(a)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function s0(e,t,n,r){if(n===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Gy={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
352
|
+
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|
353
|
+
optgroup[disabled] > option,
|
|
354
|
+
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|
355
|
+
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},o0={};function $y(e,t){return e===ge.falseFunc?ge.falseFunc:n=>t.isTag(n)&&e(n)}function u0(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Au(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Eu=(e,t,n,r,a)=>{const i=a(t,Au(n),r);return i===ge.trueFunc?e:i===ge.falseFunc?ge.falseFunc:o=>i(o)&&e(o)},yu={is:Eu,matches:Eu,where:Eu,not(e,t,n,r,a){const i=a(t,Au(n),r);return i===ge.falseFunc?e:i===ge.trueFunc?ge.falseFunc:o=>!i(o)&&e(o)},has(e,t,n,r,a){const{adapter:i}=n,o=Au(n);o.relativeSelector=!0;const u=t.some(f=>f.some(gu))?[o0]:void 0,l=a(t,o,u);if(l===ge.falseFunc)return ge.falseFunc;const c=$y(l,i);if(u&&l!==ge.trueFunc){const{shouldTestNextSiblings:f=!1}=l;return d=>{if(!e(d))return!1;u[0]=d;const p=i.getChildren(d),g=f?[...p,...u0(d,i)]:p;return i.existsOne(c,g)}}return f=>e(f)&&i.existsOne(c,i.getChildren(f))}};function qy(e,t,n,r,a){var i;const{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in yu))throw new Error(`Unknown pseudo-class :${o}(${u})`);return yu[o](e,u,n,r,a)}const l=(i=n.pseudos)===null||i===void 0?void 0:i[o],c=typeof l=="string"?l:Gy[o];if(typeof c=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const f=Qi(c);return yu.is(e,f,n,r,a)}if(typeof l=="function")return s0(l,o,u,1),f=>l(f,u)&&e(f);if(o in mu)return mu[o](e,u,n,r);if(o in i0){const f=i0[o];return s0(f,o,u,2),d=>f(d,n,u)&&e(d)}throw new Error(`Unknown pseudo-class :${o}`)}function Tu(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function Jy(e,t,n,r,a){const{adapter:i,equals:o}=n;switch(t.type){case ee.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ee.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ee.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Vy[t.action](e,t,n)}case ee.Pseudo:return qy(e,t,n,r,a);case ee.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!n.xmlMode||n.lowerCaseTags)&&(u=u.toLowerCase()),function(c){return i.getName(c)===u&&e(c)}}case ee.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(c){let f=c;for(;f=Tu(f,i);)if(e(f))return!0;return!1};const u=new WeakSet;return function(c){let f=c;for(;f=Tu(f,i);)if(!u.has(f)){if(i.isTag(f)&&e(f))return!0;u.add(f)}return!1}}case"_flexibleDescendant":return function(l){let c=l;do if(e(c))return!0;while(c=Tu(c,i));return!1};case ee.Parent:return function(l){return i.getChildren(l).some(c=>i.isTag(c)&&e(c))};case ee.Child:return function(l){const c=i.getParent(l);return c!=null&&i.isTag(c)&&e(c)};case ee.Sibling:return function(l){const c=i.getSiblings(l);for(let f=0;f<c.length;f++){const d=c[f];if(o(l,d))break;if(i.isTag(d)&&e(d))return!0}return!1};case ee.Adjacent:return i.prevElementSibling?function(l){const c=i.prevElementSibling(l);return c!=null&&e(c)}:function(l){const c=i.getSiblings(l);let f;for(let d=0;d<c.length;d++){const p=c[d];if(o(l,p))break;i.isTag(p)&&(f=p)}return!!f&&e(f)};case ee.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function l0(e){return e.type===ee.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(l0)))}const Zy={type:ee.Descendant},Xy={type:"_flexibleDescendant"},e4={type:ee.Pseudo,name:"scope",data:null};function t4(e,{adapter:t},n){const r=!!(n!=null&&n.every(a=>{const i=t.isTag(a)&&t.getParent(a);return a===o0||i&&t.isTag(i)}));for(const a of e){if(!(a.length>0&&gu(a[0])&&a[0].type!==ee.Descendant))if(r&&!a.some(l0))a.unshift(Zy);else continue;a.unshift(e4)}}function c0(e,t,n){var r;e.forEach(Hy),n=(r=t.context)!==null&&r!==void 0?r:n;const a=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)t4(e,t,i);else if(e.some(l=>l.length>0&&gu(l[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const u=e.map(l=>{if(l.length>=2){const[c,f]=l;c.type!==ee.Pseudo||c.name!=="scope"||(a&&f.type===ee.Descendant?l[1]=Xy:(f.type===ee.Adjacent||f.type===ee.Sibling)&&(o=!0))}return n4(l,t,i)}).reduce(r4,ge.falseFunc);return u.shouldTestNextSiblings=o,u}function n4(e,t,n){var r;return e.reduce((a,i)=>a===ge.falseFunc?ge.falseFunc:Jy(a,i,t,n,c0),(r=t.rootFunc)!==null&&r!==void 0?r:ge.trueFunc)}function r4(e,t){return t===ge.falseFunc||e===ge.trueFunc?e:e===ge.falseFunc||t===ge.trueFunc?t:function(r){return e(r)||t(r)}}const f0=(e,t)=>e===t,a4={adapter:ji,equals:f0};function i4(e){var t,n,r,a;const i=e??a4;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=ji),(n=i.equals)!==null&&n!==void 0||(i.equals=(a=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&a!==void 0?a:f0),i}function s4(e){return function(n,r,a){const i=i4(r);return e(n,i,a)}}const ku=s4(c0);function d0(e,t,n=!1){return n&&(e=o4(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function o4(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let a=0;a<r;a++){const i=u0(n[a],t);n.push(...i)}return n}const u4=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function $i(e){return e.type!=="pseudo"?!1:u4.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some($i)):!1}function l4(e,t,n){const r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}function c4(e){for(;e.parent;)e=e.parent;return e}function Nu(e){const t=[],n=[];for(const r of e)r.some($i)?t.push(r):n.push(r);return[n,t]}const f4={type:ee.Universal,namespace:null},d4={type:ee.Pseudo,name:"scope",data:null};function h0(e,t,n={}){return p0([e],t,n)}function p0(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,a]=Nu(Qi(t));return r.length>0&&e.some(ku(r,n))||a.some(i=>b0(i,e,n).length>0)}function h4(e,t,n,r){const a=typeof n=="string"?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(a)&&Math.abs(a)<t.length?[a<0?t[t.length+a]:t[a]]:[];case"gt":return isFinite(a)?t.slice(a+1):[];case"even":return t.filter((i,o)=>o%2===0);case"odd":return t.filter((i,o)=>o%2===1);case"not":{const i=new Set(m0(n,t,r));return t.filter(o=>!i.has(o))}}}function g0(e,t,n={}){return m0(Qi(e),t,n)}function m0(e,t,n){if(t.length===0)return[];const[r,a]=Nu(e);let i;if(r.length){const o=wu(t,r,n);if(a.length===0)return o;o.length&&(i=new Set(o))}for(let o=0;o<a.length&&(i==null?void 0:i.size)!==t.length;o++){const u=a[o];if((i?t.filter(f=>ae(f)&&!i.has(f)):t).length===0)break;const c=b0(u,t,n);if(c.length)if(i)c.forEach(f=>i.add(f));else{if(o===a.length-1)return c;i=new Set(c)}}return typeof i<"u"?i.size===t.length?t:t.filter(o=>i.has(o)):[]}function b0(e,t,n){var r;if(e.some(Ta)){const a=(r=n.root)!==null&&r!==void 0?r:c4(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(d4),qi(a,e,i,!0,t.length)}return qi(t,e,n,!1,t.length)}function p4(e,t,n={},r=1/0){if(typeof e=="function")return A0(t,e);const[a,i]=Nu(Qi(e)),o=i.map(u=>qi(t,u,n,!0,r));return a.length&&o.push(Iu(t,a,n,r)),o.length===0?[]:o.length===1?o[0]:Dr(o.reduce((u,l)=>[...u,...l]))}function qi(e,t,n,r,a){const i=t.findIndex($i),o=t.slice(0,i),u=t[i],l=t.length-1===i?a:1/0,c=l4(u.name,u.data,l);if(c===0)return[];const d=(o.length===0&&!Array.isArray(e)?Fi(e).filter(ae):o.length===0?(Array.isArray(e)?e:[e]).filter(ae):r||o.some(Ta)?Iu(e,[o],n,c):wu(e,[o],n)).slice(0,c);let p=h4(u.name,d,u.data,n);if(p.length===0||t.length===i+1)return p;const g=t.slice(i+1),m=g.some(Ta);if(m){if(Ta(g[0])){const{type:b}=g[0];(b===ee.Sibling||b===ee.Adjacent)&&(p=d0(p,ji,!0)),g.unshift(f4)}n={...n,relativeSelector:!1,rootFunc:b=>p.includes(b)}}else n.rootFunc&&n.rootFunc!==Ki.trueFunc&&(n={...n,rootFunc:Ki.trueFunc});return g.some($i)?qi(p,g,n,!1,a):m?Iu(p,[g],n,a):wu(p,[g],n)}function Iu(e,t,n,r){const a=ku(t,n,e);return A0(e,a,r)}function A0(e,t,n=1/0){const r=d0(e,ji,t.shouldTestNextSiblings);return iu(a=>ae(a)&&t(a),r,!0,n)}function wu(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(ae);if(r.length===0)return r;const a=ku(t,n);return a===Ki.trueFunc?r:r.filter(a)}const g4=/^\s*[+~]/;function m4(e){if(!e)return this._make([]);if(typeof e!="string"){const t=En(e)?e.toArray():[e],n=this.toArray();return this._make(t.filter(r=>n.some(a=>lu(a,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function b4(e,t){var n;const r=this.toArray(),a=g4.test(e)?r:this.children().toArray(),i={context:r,root:(n=this._root)===null||n===void 0?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(p4(e,a,i,t))}function Cu(e){return function(t,...n){return function(r){var a;let i=e(t,this);return r&&(i=Mu(i,r,this.options.xmlMode,(a=this._root)===null||a===void 0?void 0:a[0])),this._make(this.length>1&&i.length>1?n.reduce((o,u)=>u(o),i):i)}}}const Na=Cu((e,t)=>{let n=[];for(let r=0;r<t.length;r++){const a=e(t[r]);a.length>0&&(n=n.concat(a))}return n}),_u=Cu((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const a=e(t[r]);a!==null&&n.push(a)}return n});function xu(e,...t){let n=null;const r=Cu((a,i)=>{const o=[];return We(i,u=>{for(let l;(l=a(u))&&!(n!=null&&n(l,o.length));u=l)o.push(l)}),o})(e,...t);return function(a,i){n=typeof a=="string"?u=>h0(u,a,this.options):a?Ia(a):null;const o=r.call(this,i);return n=null,o}}function Or(e){return e.length>1?Array.from(new Set(e)):e}const A4=_u(({parent:e})=>e&&!Rn(e)?e:null,Or),E4=Na(e=>{const t=[];for(;e.parent&&!Rn(e.parent);)t.push(e.parent),e=e.parent;return t},Dr,e=>e.reverse()),y4=xu(({parent:e})=>e&&!Rn(e)?e:null,Dr,e=>e.reverse());function T4(e){var t;const n=[];if(!e)return this._make(n);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},a=typeof e=="string"?i=>h0(i,e,r):Ia(e);return We(this,i=>{for(i&&!Rn(i)&&!ae(i)&&(i=i.parent);i&&ae(i);){if(a(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}const k4=_u(e=>ru(e)),N4=Na(e=>{const t=[];for(;e.next;)e=e.next,ae(e)&&t.push(e);return t},Or),I4=xu(e=>ru(e),Or),w4=_u(e=>au(e)),C4=Na(e=>{const t=[];for(;e.prev;)e=e.prev,ae(e)&&t.push(e);return t},Or),_4=xu(e=>au(e),Or),x4=Na(e=>Pd(e).filter(t=>ae(t)&&t!==e),Dr),M4=Na(e=>Fi(e).filter(ae),Or);function S4(){const e=this.toArray().reduce((t,n)=>$e(n)?t.concat(n.children):t,[]);return this._make(e)}function D4(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function v4(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],a=e.call(r,n,r);a!=null&&(t=t.concat(a))}return this._make(t)}function Ia(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):En(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function O4(e){var t;return this._make(Mu(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Mu(e,t,n,r){return typeof t=="string"?g0(t,e,{xmlMode:n,root:r}):e.filter(Ia(t))}function L4(e){const t=this.toArray();return typeof e=="string"?p0(t.filter(ae),e,this.options):e?t.some(Ia(e)):!1}function B4(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(g0(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=Ia(e);t=t.filter((r,a)=>!n(r,a))}return this._make(t)}function R4(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function P4(){return this.length>1?this._make(this[0]):this}function U4(){return this.length>0?this._make(this[this.length-1]):this}function F4(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function H4(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function z4(){return Array.prototype.slice.call(this)}function j4(e){let t,n;return e==null?(t=this.parent().children(),n=this[0]):typeof e=="string"?(t=this._make(e),n=this[0]):(t=this,n=En(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function V4(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function Y4(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function Q4(e,t){const n=this._make(e,t),r=Dr([...this.get(),...n.get()]);return this._make(r)}function K4(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const W4=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:b4,add:Q4,addBack:K4,children:M4,closest:T4,contents:S4,each:D4,end:Y4,eq:F4,filter:O4,filterArray:Mu,find:m4,first:P4,get:H4,has:R4,index:j4,is:L4,last:U4,map:v4,next:k4,nextAll:N4,nextUntil:I4,not:B4,parent:A4,parents:E4,parentsUntil:y4,prev:w4,prevAll:C4,prevUntil:_4,siblings:x4,slice:V4,toArray:z4},Symbol.toStringTag,{value:"Module"}));function G4(e){return function(n,r,a,i){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return e(n,r,a,i);const o=n;if(!Array.isArray(o)&&Rn(o))return o;const u=new er([]);return ar(o,u),u}}function ar(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let r=0;r<n.length;r++){const a=n[r];a.parent&&a.parent.children!==n&&tr(a),t?(a.prev=n[r-1]||null,a.next=n[r+1]||null):a.prev=a.next=null,a.parent=t}return t}function $4(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const n=[];for(let r=0;r<e.length;r++){const a=e[r];if(typeof a=="object"){if(a==null)continue;if(!("length"in a)){n.push(t?ma(a,!0):a);continue}}n.push(...this._makeDomArray(a,t))}return n}return[t?ma(e,!0):e]}function E0(e){return function(...t){const n=this.length-1;return We(this,(r,a)=>{if(!$e(r))return;const i=typeof t[0]=="function"?t[0].call(r,a,this._render(r.children)):t,o=this._makeDomArray(i,a<n);e(o,r.children,r)})}}function Un(e,t,n,r,a){var i,o;const u=[t,n,...r],l=t===0?null:e[t-1],c=t+n>=e.length?null:e[t+n];for(let f=0;f<r.length;++f){const d=r[f],p=d.parent;if(p){const m=p.children.indexOf(d);m>-1&&(p.children.splice(m,1),a===p&&t>m&&u[0]--)}d.parent=a,d.prev&&(d.prev.next=(i=d.next)!==null&&i!==void 0?i:null),d.next&&(d.next.prev=(o=d.prev)!==null&&o!==void 0?o:null),d.prev=f===0?l:r[f-1],d.next=f===r.length-1?c:r[f+1]}return l&&(l.next=r[0]),c&&(c.prev=r[r.length-1]),e.splice(...u)}function q4(e){return(En(e)?e:this._make(e)).append(this),this}function J4(e){return(En(e)?e:this._make(e)).prepend(this),this}const Z4=E0((e,t,n)=>{Un(t,t.length,0,e,n)}),X4=E0((e,t,n)=>{Un(t,0,0,e,n)});function y0(e){return function(t){const n=this.length-1,r=this.parents().last();for(let a=0;a<this.length;a++){const i=this[a],o=typeof t=="function"?t.call(i,a,i):typeof t=="string"&&!cu(t)?r.find(t).clone():t,[u]=this._makeDomArray(o,a<n);if(!u||!$e(u))continue;let l=u,c=0;for(;c<l.children.length;){const f=l.children[c];ae(f)?(l=f,c=0):c++}e(i,l,[u])}return this}}const eT=y0((e,t,n)=>{const{parent:r}=e;if(!r)return;const a=r.children,i=a.indexOf(e);ar([e],t),Un(a,i,0,n,r)}),tT=y0((e,t,n)=>{$e(e)&&(ar(e.children,t),ar(n,e))});function nT(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function rT(e){const t=this[0];if(t){const n=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let i=0;i<n.length;i++)n[i].type==="tag"&&(r=n[i]);let a=0;for(;r&&a<r.children.length;){const i=r.children[a];i.type==="tag"?(r=i,a=0):a++}r&&this._make(r).append(this)}return this}function aT(...e){const t=this.length-1;return We(this,(n,r)=>{if(!$e(n)||!n.parent)return;const a=n.parent.children,i=a.indexOf(n);if(i<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,u=this._makeDomArray(o,r<t);Un(a,i+1,0,u,n.parent)})}function iT(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const n of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:a}=n;if(!a)continue;const i=a.children,o=i.indexOf(n);o<0||(Un(i,o+1,0,r,a),t.push(...r))}return this._make(t)}function sT(...e){const t=this.length-1;return We(this,(n,r)=>{if(!$e(n)||!n.parent)return;const a=n.parent.children,i=a.indexOf(n);if(i<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,u=this._makeDomArray(o,r<t);Un(a,i,0,u,n.parent)})}function oT(e){const t=this._make(e);this.remove();const n=[];return We(t,r=>{const a=this.clone().toArray(),{parent:i}=r;if(!i)return;const o=i.children,u=o.indexOf(r);u<0||(Un(o,u,0,a,i),n.push(...a))}),this._make(n)}function uT(e){const t=e?this.filter(e):this;return We(t,n=>{tr(n),n.prev=n.next=n.parent=null}),this}function lT(e){return We(this,(t,n)=>{const{parent:r}=t;if(!r)return;const a=r.children,i=typeof e=="function"?e.call(t,n,t):e,o=this._makeDomArray(i);ar(o,null);const u=a.indexOf(t);Un(a,u,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function cT(){return We(this,e=>{if($e(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function fT(e){if(e===void 0){const t=this[0];return!t||!$e(t)?null:this._render(t.children)}return We(this,t=>{if(!$e(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=En(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;ar(n,t)})}function dT(){return this._render(this)}function hT(e){return e===void 0?Aa(this):typeof e=="function"?We(this,(t,n)=>this._make(t).text(e.call(t,n,Aa([t])))):We(this,t=>{if(!$e(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=new ga(`${e}`);ar(n,t)})}function pT(){const e=Array.prototype.map.call(this.get(),n=>ma(n,!0)),t=new er(e);for(const n of e)n.parent=t;return this._make(e)}const gT=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:$4,after:aT,append:Z4,appendTo:q4,before:sT,clone:pT,empty:cT,html:fT,insertAfter:iT,insertBefore:oT,prepend:X4,prependTo:J4,remove:uT,replaceWith:lT,text:hT,toString:dT,unwrap:nT,wrap:eT,wrapAll:rT,wrapInner:tT},Symbol.toStringTag,{value:"Module"}));function mT(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return We(this,(n,r)=>{ae(n)&&T0(n,e,t,r)});if(this.length!==0)return k0(this[0],e)}function T0(e,t,n,r){if(typeof t=="string"){const a=k0(e),i=typeof n=="function"?n.call(e,r,a[t]):n;i===""?delete a[t]:i!=null&&(a[t]=i),e.attribs.style=bT(a)}else if(typeof t=="object"){const a=Object.keys(t);for(let i=0;i<a.length;i++){const o=a[i];T0(e,o,t[o],i)}}}function k0(e,t){if(!e||!ae(e))return;const n=AT(e.attribs.style);if(typeof t=="string")return n[t];if(Array.isArray(t)){const r={};for(const a of t)n[a]!=null&&(r[a]=n[a]);return r}return n}function bT(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function AT(e){if(e=(e||"").trim(),!e)return{};const t={};let n;for(const r of e.split(";")){const a=r.indexOf(":");if(a<1||a===r.length-1){const i=r.trimEnd();i.length>0&&n!==void 0&&(t[n]+=`;${i}`)}else n=r.slice(0,a).trim(),t[n]=r.slice(a+1).trim()}return t}const ET=Object.freeze(Object.defineProperty({__proto__:null,css:mT},Symbol.toStringTag,{value:"Module"})),N0="input,select,textarea,keygen",yT=/%20/g,I0=/\r?\n/g;function TT(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(yT,"+")}function kT(){return this.map((e,t)=>{const n=this._make(t);return ae(t)&&t.name==="form"?n.find(N0).toArray():n.filter(N0).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var n;const r=this._make(t),a=r.attr("name"),i=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(i)?i.map(o=>({name:a,value:o.replace(I0,`\r
|
|
356
|
+
`)})):{name:a,value:i.replace(I0,`\r
|
|
357
|
+
`)}}).toArray()}const NT=Object.freeze(Object.defineProperty({__proto__:null,serialize:TT,serializeArray:kT},Symbol.toStringTag,{value:"Module"}));function IT(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function wT(e){const t={};for(const n in e){const r=e[n],a=Array.isArray(r),{selector:i,value:o}=IT(a?r[0]:r),u=typeof o=="function"?o:typeof o=="string"?l=>this._make(l).prop(o):l=>this._make(l).extract(o);if(a)t[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((l,c)=>u(c,n,t)).get();else{const l=this._findBySelector(i,1);t[n]=l.length>0?u(l[0],n,t):void 0}}return t}const CT=Object.freeze(Object.defineProperty({__proto__:null,extract:wT},Symbol.toStringTag,{value:"Module"}));class wa{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let a=0;a<t.length;a++)this[a]=t[a];this.length=t.length}}}wa.prototype.cheerio="[cheerio object]",wa.prototype.splice=Array.prototype.splice,wa.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(wa.prototype,Oy,W4,gT,ET,NT,CT);function _T(e,t){return function n(r,a,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=uu(a),u=e(r,o,i,null);class l extends wa{_make(d,p){const g=c(d,p);return g.prevObject=this,g}_parse(d,p,g,m){return e(d,p,g,m)}_render(d){return t(d,this.options)}}function c(f,d,p=u,g){if(f&&En(f))return f;const m=uu(g,o),b=typeof p=="string"?[e(p,m,!1,null)]:"length"in p?p:[p],A=En(b)?b:new l(b,null,m);if(A._root=A,!f)return new l(void 0,A,m);const E=typeof f=="string"&&cu(f)?e(f,m,!1,null).children:xT(f)?[f]:Array.isArray(f)?f:void 0,w=new l(E,A,m);if(E)return w;if(typeof f!="string")throw new TypeError("Unexpected type of selector");let C=f;const T=d?typeof d=="string"?cu(d)?new l([e(d,m,!1,null)],A,m):(C=`${d} ${C}`,A):En(d)?d:new l(Array.isArray(d)?d:[d],A,m):A;return T?T.find(C):w}return Object.assign(c,Ty,{load:n,_root:u,_options:o,fn:l.prototype,prototype:l.prototype}),c}}function xT(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}const MT=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ke="�";var y;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(y||(y={}));const kt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function w0(e){return e>=55296&&e<=57343}function ST(e){return e>=56320&&e<=57343}function DT(e,t){return(e-55296)*1024+9216+t}function C0(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function _0(e){return e>=64976&&e<=65007||MT.has(e)}var P;(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"})(P||(P={}));const vT=65536;class OT{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=vT,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,o=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:u,endOffset:u}}_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(ST(n))return this.pos++,this._addGap(),DT(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,y.EOF;return this._err(P.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,y.EOF;const r=this.html.charCodeAt(n);return r===y.CARRIAGE_RETURN?y.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,y.EOF;let t=this.html.charCodeAt(this.pos);return t===y.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,y.LINE_FEED):t===y.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,w0(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===y.LINE_FEED||t===y.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){C0(t)?this._err(P.controlCharacterInInputStream):_0(t)&&this._err(P.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ne;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ne||(Ne={}));function x0(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const LT=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))),BT=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function RT(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=BT.get(e))!==null&&t!==void 0?t:e}var at;(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"})(at||(at={}));const PT=32;var Fn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Fn||(Fn={}));function Su(e){return e>=at.ZERO&&e<=at.NINE}function UT(e){return e>=at.UPPER_A&&e<=at.UPPER_F||e>=at.LOWER_A&&e<=at.LOWER_F}function FT(e){return e>=at.UPPER_A&&e<=at.UPPER_Z||e>=at.LOWER_A&&e<=at.LOWER_Z||Su(e)}function HT(e){return e===at.EQUALS||FT(e)}var it;(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"})(it||(it={}));var yn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(yn||(yn={}));let zT=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yn.Strict}startEntity(t){this.decodeMode=t,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case it.EntityStart:return t.charCodeAt(n)===at.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=it.NamedEntity,this.stateNamedEntity(t,n));case it.NumericStart:return this.stateNumericStart(t,n);case it.NumericDecimal:return this.stateNumericDecimal(t,n);case it.NumericHex:return this.stateNumericHex(t,n);case it.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|PT)===at.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Su(a)||UT(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Su(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===at.SEMI)this.consumed+=1;else if(this.decodeMode===yn.Strict)return 0;return this.emitCodePoint(RT(this.result),this.consumed),this.errors&&(t!==at.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&Fn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=jT(r,a,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===yn.Attribute&&(i===0||HT(o))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&Fn.VALUE_LENGTH)>>14,i!==0){if(o===at.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==yn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Fn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Fn.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==yn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}};function jT(e,t,n,r){const a=(t&Fn.BRANCH_LENGTH)>>7,i=t&Fn.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let o=n,u=o+a-1;for(;o<=u;){const l=o+u>>>1,c=e[l];if(c<r)o=l+1;else if(c>r)u=l-1;else return e[l+a]}return-1}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 ir;(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"})(ir||(ir={}));var St;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(St||(St={}));var L;(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"})(L||(L={}));var h;(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"})(h||(h={}));const VT=new Map([[L.A,h.A],[L.ADDRESS,h.ADDRESS],[L.ANNOTATION_XML,h.ANNOTATION_XML],[L.APPLET,h.APPLET],[L.AREA,h.AREA],[L.ARTICLE,h.ARTICLE],[L.ASIDE,h.ASIDE],[L.B,h.B],[L.BASE,h.BASE],[L.BASEFONT,h.BASEFONT],[L.BGSOUND,h.BGSOUND],[L.BIG,h.BIG],[L.BLOCKQUOTE,h.BLOCKQUOTE],[L.BODY,h.BODY],[L.BR,h.BR],[L.BUTTON,h.BUTTON],[L.CAPTION,h.CAPTION],[L.CENTER,h.CENTER],[L.CODE,h.CODE],[L.COL,h.COL],[L.COLGROUP,h.COLGROUP],[L.DD,h.DD],[L.DESC,h.DESC],[L.DETAILS,h.DETAILS],[L.DIALOG,h.DIALOG],[L.DIR,h.DIR],[L.DIV,h.DIV],[L.DL,h.DL],[L.DT,h.DT],[L.EM,h.EM],[L.EMBED,h.EMBED],[L.FIELDSET,h.FIELDSET],[L.FIGCAPTION,h.FIGCAPTION],[L.FIGURE,h.FIGURE],[L.FONT,h.FONT],[L.FOOTER,h.FOOTER],[L.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[L.FORM,h.FORM],[L.FRAME,h.FRAME],[L.FRAMESET,h.FRAMESET],[L.H1,h.H1],[L.H2,h.H2],[L.H3,h.H3],[L.H4,h.H4],[L.H5,h.H5],[L.H6,h.H6],[L.HEAD,h.HEAD],[L.HEADER,h.HEADER],[L.HGROUP,h.HGROUP],[L.HR,h.HR],[L.HTML,h.HTML],[L.I,h.I],[L.IMG,h.IMG],[L.IMAGE,h.IMAGE],[L.INPUT,h.INPUT],[L.IFRAME,h.IFRAME],[L.KEYGEN,h.KEYGEN],[L.LABEL,h.LABEL],[L.LI,h.LI],[L.LINK,h.LINK],[L.LISTING,h.LISTING],[L.MAIN,h.MAIN],[L.MALIGNMARK,h.MALIGNMARK],[L.MARQUEE,h.MARQUEE],[L.MATH,h.MATH],[L.MENU,h.MENU],[L.META,h.META],[L.MGLYPH,h.MGLYPH],[L.MI,h.MI],[L.MO,h.MO],[L.MN,h.MN],[L.MS,h.MS],[L.MTEXT,h.MTEXT],[L.NAV,h.NAV],[L.NOBR,h.NOBR],[L.NOFRAMES,h.NOFRAMES],[L.NOEMBED,h.NOEMBED],[L.NOSCRIPT,h.NOSCRIPT],[L.OBJECT,h.OBJECT],[L.OL,h.OL],[L.OPTGROUP,h.OPTGROUP],[L.OPTION,h.OPTION],[L.P,h.P],[L.PARAM,h.PARAM],[L.PLAINTEXT,h.PLAINTEXT],[L.PRE,h.PRE],[L.RB,h.RB],[L.RP,h.RP],[L.RT,h.RT],[L.RTC,h.RTC],[L.RUBY,h.RUBY],[L.S,h.S],[L.SCRIPT,h.SCRIPT],[L.SEARCH,h.SEARCH],[L.SECTION,h.SECTION],[L.SELECT,h.SELECT],[L.SOURCE,h.SOURCE],[L.SMALL,h.SMALL],[L.SPAN,h.SPAN],[L.STRIKE,h.STRIKE],[L.STRONG,h.STRONG],[L.STYLE,h.STYLE],[L.SUB,h.SUB],[L.SUMMARY,h.SUMMARY],[L.SUP,h.SUP],[L.TABLE,h.TABLE],[L.TBODY,h.TBODY],[L.TEMPLATE,h.TEMPLATE],[L.TEXTAREA,h.TEXTAREA],[L.TFOOT,h.TFOOT],[L.TD,h.TD],[L.TH,h.TH],[L.THEAD,h.THEAD],[L.TITLE,h.TITLE],[L.TR,h.TR],[L.TRACK,h.TRACK],[L.TT,h.TT],[L.U,h.U],[L.UL,h.UL],[L.SVG,h.SVG],[L.VAR,h.VAR],[L.WBR,h.WBR],[L.XMP,h.XMP]]);function Ji(e){var t;return(t=VT.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const Q=h,YT={[j.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[j.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[j.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[j.XLINK]:new Set,[j.XML]:new Set,[j.XMLNS]:new Set},Du=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]),QT=new Set([L.STYLE,L.SCRIPT,L.XMP,L.IFRAME,L.NOEMBED,L.NOFRAMES,L.PLAINTEXT]);function KT(e,t){return QT.has(e)||t&&e===L.NOSCRIPT}var k;(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"})(k||(k={}));const Nt={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function WT(e){return e>=y.DIGIT_0&&e<=y.DIGIT_9}function Ca(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_Z}function GT(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_Z}function Hn(e){return GT(e)||Ca(e)}function M0(e){return Hn(e)||WT(e)}function Zi(e){return e+32}function S0(e){return e===y.SPACE||e===y.LINE_FEED||e===y.TABULATION||e===y.FORM_FEED}function D0(e){return S0(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN}function $T(e){return e===y.NULL?P.nullCharacterReference:e>1114111?P.characterReferenceOutsideUnicodeRange:w0(e)?P.surrogateCharacterReference:_0(e)?P.noncharacterCharacterReference:C0(e)||e===y.CARRIAGE_RETURN?P.controlCharacterReference:null}let qT=class{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=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new OT(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new zT(LT,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=$T(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==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;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ne.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ne.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ne.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ne.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(x0(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ji(t.tagName),t.type===Ne.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(P.endTagWithAttributes),t.selfClosing&&this._err(P.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 Ne.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ne.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ne.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:Ne.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=S0(t)?Ne.WHITESPACE_CHARACTER:t===y.NULL?Ne.NULL_CHARACTER:Ne.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ne.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yn.Attribute:yn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case y.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitCodePoint(t);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case y.AMPERSAND:{this._startCharacterReference();break}case y.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case y.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Hn(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case y.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case y.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case y.QUESTION_MARK:{this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case y.EOF:{this._err(P.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Hn(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case y.GREATER_THAN_SIGN:{this._err(P.missingEndTagName),this.state=k.DATA;break}case y.EOF:{this._err(P.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case y.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.tagName+=Ke;break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ca(t)?Zi(t):t)}}_stateRcdataLessThanSign(t){t===y.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Hn(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.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 y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case y.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case y.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===y.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Hn(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case y.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case y.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Hn(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===y.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===y.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case y.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case y.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case y.HYPHEN_MINUS:{this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===y.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Hn(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Hn(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(kt.SCRIPT,!1)&&D0(this.preprocessor.peek(kt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case y.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case y.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case y.HYPHEN_MINUS:{this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ke);break}case y.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===y.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(kt.SCRIPT,!1)&&D0(this.preprocessor.peek(kt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.SOLIDUS:case y.GREATER_THAN_SIGN:case y.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case y.EQUALS_SIGN:{this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:case y.SOLIDUS:case y.GREATER_THAN_SIGN:case y.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case y.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case y.QUOTATION_MARK:case y.APOSTROPHE:case y.LESS_THAN_SIGN:{this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.name+=Ke;break}default:this.currentAttr.name+=String.fromCodePoint(Ca(t)?Zi(t):t)}}_stateAfterAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case y.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(P.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case y.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ke;break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case y.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ke;break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case y.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ke;break}case y.QUOTATION_MARK:case y.APOSTROPHE:case y.LESS_THAN_SIGN:case y.EQUALS_SIGN:case y.GRAVE_ACCENT:{this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case y.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case y.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case y.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case y.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ke;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(kt.DASH_DASH,!0)?(this._createCommentToken(kt.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(kt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(kt.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(kt.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(kt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case y.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case y.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case y.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ke;break}case y.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case y.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case y.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===y.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===y.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==y.GREATER_THAN_SIGN&&t!==y.EOF&&this._err(P.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case y.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case y.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case y.HYPHEN_MINUS:{n.data+="-";break}case y.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case y.GREATER_THAN_SIGN:{this._err(P.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case y.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case y.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ca(t))this._createDoctypeToken(String.fromCharCode(Zi(t))),this.state=k.DOCTYPE_NAME;else switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.NULL:{this._err(P.unexpectedNullCharacter),this._createDoctypeToken(Ke),this.state=k.DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.name+=Ke;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ca(t)?Zi(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(kt.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(kt.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case y.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ke;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case y.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ke;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case y.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.QUOTATION_MARK:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case y.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ke;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case y.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ke;break}case y.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case y.NULL:{this._err(P.unexpectedNullCharacter);break}case y.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case y.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case y.EOF:{this._err(P.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===y.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case y.GREATER_THAN_SIGN:{this.state=k.DATA;break}case y.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(y.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&M0(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){M0(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===y.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const v0=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),O0=new Set([...v0,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Xi=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),JT=new Set([...Xi,h.OL,h.UL]),ZT=new Set([...Xi,h.BUTTON]),L0=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),B0=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),XT=new Set([h.TR,h.TEMPLATE,h.HTML]),e6=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),t6=new Set([h.TABLE,h.TEMPLATE,h.HTML]),n6=new Set([h.TD,h.TH]);class r6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===j.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==j.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Du,j.HTML)}popUntilTableCellPopped(){this.popUntilPopped(n6,j.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(t6,j.HTML)}clearBackToTableBodyContext(){this.clearBackTo(e6,j.HTML)}clearBackToTableRowContext(){this.clearBackTo(XT,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]===h.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]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case j.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case j.SVG:{if(B0.has(a))return!1;break}case j.MATHML:{if(L0.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Xi)}hasInListItemScope(t){return this.hasInDynamicScope(t,JT)}hasInButtonScope(t){return this.hasInDynamicScope(t,ZT)}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(Du.has(n))return!0;if(Xi.has(n))return!1;break}case j.SVG:{if(B0.has(n))return!1;break}case j.MATHML:{if(L0.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 h.TABLE:case h.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 h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.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 h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&v0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&O0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&O0.has(this.currentTagId);)this.pop()}}const vu=3;var un;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(un||(un={}));const R0={type:un.Marker};class a6{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===un.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===o){const f=this.treeAdapter.getAttrList(c);f.length===a&&r.push({idx:u,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<vu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<vu)return;const a=new Map(n.map(o=>[o.name,o.value]));let i=0;for(let o=0;o<r.length;o++){const u=r[o];u.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=vu&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(R0)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:un.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:un.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(R0);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===un.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===un.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===un.Element&&n.element===t)}}const Tn={createDocument(){return{nodeName:"#document",mode:St.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Tn.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Tn.isTextNode(n)){n.value+=t;return}}Tn.appendChild(e,Tn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Tn.isTextNode(r)?r.value+=t:Tn.insertBefore(e,Tn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},P0="html",i6="about:legacy-compat",s6="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",U0=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o6=[...U0,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],u6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),F0=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],l6=[...F0,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function H0(e,t){return t.some(n=>e.startsWith(n))}function c6(e){return e.name===P0&&e.publicId===null&&(e.systemId===null||e.systemId===i6)}function f6(e){if(e.name!==P0)return St.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===s6)return St.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),u6.has(n))return St.QUIRKS;let r=t===null?o6:U0;if(H0(n,r))return St.QUIRKS;if(r=t===null?F0:l6,H0(n,r))return St.LIMITED_QUIRKS}return St.NO_QUIRKS}const z0={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},d6="definitionurl",h6="definitionURL",p6=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])),g6=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}]]),m6=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])),b6=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function A6(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===ir.COLOR||r===ir.SIZE||r===ir.FACE)||b6.has(t)}function j0(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===d6){e.attrs[t].name=h6;break}}function V0(e){for(let t=0;t<e.attrs.length;t++){const n=p6.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ou(e){for(let t=0;t<e.attrs.length;t++){const n=g6.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function E6(e){const t=m6.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ji(e.tagName))}function y6(e,t){return t===j.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function T6(e,t,n){if(t===j.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ir.ENCODING){const a=n[r].value.toLowerCase();return a===z0.TEXT_HTML||a===z0.APPLICATION_XML}}return t===j.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function k6(e,t,n,r){return(!r||r===j.HTML)&&T6(e,t,n)||(!r||r===j.MATHML)&&y6(e,t)}const N6="hidden",I6=8,w6=3;var I;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(I||(I={}));const C6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Y0=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),Q0={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Tn,onParseError:null};let K0=class{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=I.INITIAL,this.originalInsertionMode=I.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Q0,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new qT(this.options,this),this.activeFormattingElements=new a6(this.treeAdapter),this.fragmentContextID=r?Ji(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new r6(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Q0,...n};t??(t=r.treeAdapter.createElement(L.TEMPLATE,j.HTML,[]));const a=r.treeAdapter.createElement("documentmock",j.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===h.TEMPLATE&&i.tmplInsertionModeStack.unshift(I.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:C6,o={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,o;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,o=this.fragmentContextID):{current:i,currentTagId:o}=this.openElements,this._setContextModes(i,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===j.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,j.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=I.TEXT}switchToPlaintextParsing(){this.insertionMode=I.TEXT,this.originalInsertionMode=I.IN_BODY,this.tokenizer.state=Nt.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)===L.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 h.TITLE:case h.TEXTAREA:{this.tokenizer.state=Nt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=Nt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=Nt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=Nt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,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(L.HTML,j.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,o=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===Ne.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===L.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===j.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,j.HTML)}_processToken(t){switch(t.type){case Ne.CHARACTER:{this.onCharacter(t);break}case Ne.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ne.COMMENT:{this.onComment(t);break}case Ne.DOCTYPE:{this.onDoctype(t);break}case Ne.START_TAG:{this._processStartTag(t);break}case Ne.END_TAG:{this.onEndTag(t);break}case Ne.EOF:{this.onEof(t);break}case Ne.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return k6(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===un.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=I.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=I.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=I.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=I.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=I.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=I.IN_TABLE;return}case h.BODY:{this.insertionMode=I.IN_BODY;return}case h.FRAMESET:{this.insertionMode=I.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?I.AFTER_HEAD:I.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=I.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=I.IN_HEAD;return}break}}this.insertionMode=I.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=I.IN_SELECT_IN_TABLE;return}}this.insertionMode=I.IN_SELECT}_isElementCausesFosterParenting(t){return Y0.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===j.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.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 YT[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nN(this,t);return}switch(this.insertionMode){case I.INITIAL:{_a(this,t);break}case I.BEFORE_HTML:{xa(this,t);break}case I.BEFORE_HEAD:{Ma(this,t);break}case I.IN_HEAD:{Sa(this,t);break}case I.IN_HEAD_NO_SCRIPT:{Da(this,t);break}case I.AFTER_HEAD:{va(this,t);break}case I.IN_BODY:case I.IN_CAPTION:case I.IN_CELL:case I.IN_TEMPLATE:{G0(this,t);break}case I.TEXT:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Pu(this,t);break}case I.IN_TABLE_TEXT:{n1(this,t);break}case I.IN_COLUMN_GROUP:{ns(this,t);break}case I.AFTER_BODY:{is(this,t);break}case I.AFTER_AFTER_BODY:{ss(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tN(this,t);return}switch(this.insertionMode){case I.INITIAL:{_a(this,t);break}case I.BEFORE_HTML:{xa(this,t);break}case I.BEFORE_HEAD:{Ma(this,t);break}case I.IN_HEAD:{Sa(this,t);break}case I.IN_HEAD_NO_SCRIPT:{Da(this,t);break}case I.AFTER_HEAD:{va(this,t);break}case I.TEXT:{this._insertCharacters(t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Pu(this,t);break}case I.IN_COLUMN_GROUP:{ns(this,t);break}case I.AFTER_BODY:{is(this,t);break}case I.AFTER_AFTER_BODY:{ss(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bu(this,t);return}switch(this.insertionMode){case I.INITIAL:case I.BEFORE_HTML:case I.BEFORE_HEAD:case I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:case I.IN_BODY:case I.IN_TABLE:case I.IN_CAPTION:case I.IN_COLUMN_GROUP:case I.IN_TABLE_BODY:case I.IN_ROW:case I.IN_CELL:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:case I.IN_TEMPLATE:case I.IN_FRAMESET:case I.AFTER_FRAMESET:{Bu(this,t);break}case I.IN_TABLE_TEXT:{Ba(this,t);break}case I.AFTER_BODY:{O6(this,t);break}case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{L6(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case I.INITIAL:{B6(this,t);break}case I.BEFORE_HEAD:case I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:{this._err(t,P.misplacedDoctype);break}case I.IN_TABLE_TEXT:{Ba(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?rN(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case I.INITIAL:{_a(this,t);break}case I.BEFORE_HTML:{R6(this,t);break}case I.BEFORE_HEAD:{U6(this,t);break}case I.IN_HEAD:{Gt(this,t);break}case I.IN_HEAD_NO_SCRIPT:{z6(this,t);break}case I.AFTER_HEAD:{V6(this,t);break}case I.IN_BODY:{dt(this,t);break}case I.IN_TABLE:{Lr(this,t);break}case I.IN_TABLE_TEXT:{Ba(this,t);break}case I.IN_CAPTION:{Fk(this,t);break}case I.IN_COLUMN_GROUP:{Uu(this,t);break}case I.IN_TABLE_BODY:{rs(this,t);break}case I.IN_ROW:{as(this,t);break}case I.IN_CELL:{jk(this,t);break}case I.IN_SELECT:{i1(this,t);break}case I.IN_SELECT_IN_TABLE:{Yk(this,t);break}case I.IN_TEMPLATE:{Kk(this,t);break}case I.AFTER_BODY:{Gk(this,t);break}case I.IN_FRAMESET:{$k(this,t);break}case I.AFTER_FRAMESET:{Jk(this,t);break}case I.AFTER_AFTER_BODY:{Xk(this,t);break}case I.AFTER_AFTER_FRAMESET:{eN(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?aN(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case I.INITIAL:{_a(this,t);break}case I.BEFORE_HTML:{P6(this,t);break}case I.BEFORE_HEAD:{F6(this,t);break}case I.IN_HEAD:{H6(this,t);break}case I.IN_HEAD_NO_SCRIPT:{j6(this,t);break}case I.AFTER_HEAD:{Y6(this,t);break}case I.IN_BODY:{ts(this,t);break}case I.TEXT:{Mk(this,t);break}case I.IN_TABLE:{Oa(this,t);break}case I.IN_TABLE_TEXT:{Ba(this,t);break}case I.IN_CAPTION:{Hk(this,t);break}case I.IN_COLUMN_GROUP:{zk(this,t);break}case I.IN_TABLE_BODY:{Fu(this,t);break}case I.IN_ROW:{a1(this,t);break}case I.IN_CELL:{Vk(this,t);break}case I.IN_SELECT:{s1(this,t);break}case I.IN_SELECT_IN_TABLE:{Qk(this,t);break}case I.IN_TEMPLATE:{Wk(this,t);break}case I.AFTER_BODY:{u1(this,t);break}case I.IN_FRAMESET:{qk(this,t);break}case I.AFTER_FRAMESET:{Zk(this,t);break}case I.AFTER_AFTER_BODY:{ss(this,t);break}}}onEof(t){switch(this.insertionMode){case I.INITIAL:{_a(this,t);break}case I.BEFORE_HTML:{xa(this,t);break}case I.BEFORE_HEAD:{Ma(this,t);break}case I.IN_HEAD:{Sa(this,t);break}case I.IN_HEAD_NO_SCRIPT:{Da(this,t);break}case I.AFTER_HEAD:{va(this,t);break}case I.IN_BODY:case I.IN_TABLE:case I.IN_CAPTION:case I.IN_COLUMN_GROUP:case I.IN_TABLE_BODY:case I.IN_ROW:case I.IN_CELL:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:{e1(this,t);break}case I.TEXT:{Sk(this,t);break}case I.IN_TABLE_TEXT:{Ba(this,t);break}case I.IN_TEMPLATE:{o1(this,t);break}case I.AFTER_BODY:case I.IN_FRAMESET:case I.AFTER_FRAMESET:case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{Ru(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===y.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 I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:case I.TEXT:case I.IN_COLUMN_GROUP:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:case I.IN_FRAMESET:case I.AFTER_FRAMESET:{this._insertCharacters(t);break}case I.IN_BODY:case I.IN_CAPTION:case I.IN_CELL:case I.IN_TEMPLATE:case I.AFTER_BODY:case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{W0(this,t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Pu(this,t);break}case I.IN_TABLE_TEXT:{t1(this,t);break}}}};function _6(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):X0(e,t),n}function x6(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function M6(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const u=e.activeFormattingElements.getElementEntry(o),l=u&&i>=w6;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=S6(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function S6(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 D6(e,t,n){const r=e.treeAdapter.getTagName(t),a=Ji(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===h.TEMPLATE&&i===j.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function v6(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Lu(e,t){for(let n=0;n<I6;n++){const r=_6(e,t);if(!r)break;const a=x6(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=M6(e,a,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),o&&D6(e,o,i),v6(e,a,r)}}function Bu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function O6(e,t){e._appendCommentNode(t,e.openElements.items[0])}function L6(e,t){e._appendCommentNode(t,e.document)}function Ru(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(i);o&&!o.endTag&&e._setEndLocation(i,t)}}}}function B6(e,t){e._setDocumentType(t);const n=t.forceQuirks?St.QUIRKS:f6(t);c6(t)||e._err(t,P.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=I.BEFORE_HTML}function _a(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,St.QUIRKS),e.insertionMode=I.BEFORE_HTML,e._processToken(t)}function R6(e,t){t.tagID===h.HTML?(e._insertElement(t,j.HTML),e.insertionMode=I.BEFORE_HEAD):xa(e,t)}function P6(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&xa(e,t)}function xa(e,t){e._insertFakeRootElement(),e.insertionMode=I.BEFORE_HEAD,e._processToken(t)}function U6(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.HEAD:{e._insertElement(t,j.HTML),e.headElement=e.openElements.current,e.insertionMode=I.IN_HEAD;break}default:Ma(e,t)}}function F6(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ma(e,t):e._err(t,P.endTagWithoutMatchingOpenElement)}function Ma(e,t){e._insertFakeElement(L.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=I.IN_HEAD,e._processToken(t)}function Gt(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,Nt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Nt.RAWTEXT):(e._insertElement(t,j.HTML),e.insertionMode=I.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,Nt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,Nt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=I.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(I.IN_TEMPLATE);break}case h.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:Sa(e,t)}}function H6(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=I.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Sa(e,t);break}case h.TEMPLATE:{sr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function sr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function Sa(e,t){e.openElements.pop(),e.insertionMode=I.AFTER_HEAD,e._processToken(t)}function z6(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Gt(e,t);break}case h.NOSCRIPT:{e._err(t,P.nestedNoscriptInHead);break}default:Da(e,t)}}function j6(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=I.IN_HEAD;break}case h.BR:{Da(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function Da(e,t){const n=t.type===Ne.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=I.IN_HEAD,e._processToken(t)}function V6(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.BODY:{e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=I.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,j.HTML),e.insertionMode=I.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,P.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Gt(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:va(e,t)}}function Y6(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{va(e,t);break}case h.TEMPLATE:{sr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function va(e,t){e._insertFakeElement(L.BODY,h.BODY),e.insertionMode=I.IN_BODY,es(e,t)}function es(e,t){switch(t.type){case Ne.CHARACTER:{G0(e,t);break}case Ne.WHITESPACE_CHARACTER:{W0(e,t);break}case Ne.COMMENT:{Bu(e,t);break}case Ne.START_TAG:{dt(e,t);break}case Ne.END_TAG:{ts(e,t);break}case Ne.EOF:{e1(e,t);break}}}function W0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function G0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Q6(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function K6(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function W6(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_FRAMESET)}function G6(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function $6(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Du.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,j.HTML)}function q6(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function J6(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML),n||(e.formElement=e.openElements.current))}function Z6(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===h.LI&&a===h.LI||(n===h.DD||n===h.DT)&&(a===h.DD||a===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function X6(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.tokenizer.state=Nt.PLAINTEXT}function ek(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1}function tk(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(L.A);n&&(Lu(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 nk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rk(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Lu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ak(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ik(e,t){e.treeAdapter.getDocumentMode(e.document)!==St.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=I.IN_TABLE}function $0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function q0(e){const t=x0(e,ir.TYPE);return t!=null&&t.toLowerCase()===N6}function sk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),q0(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function ok(e,t){e._appendElement(t,j.HTML),t.ackSelfClosing=!0}function uk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lk(e,t){t.tagName=L.IMG,t.tagID=h.IMG,$0(e,t)}function ck(e,t){e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=I.TEXT}function fk(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function dk(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nt.RAWTEXT)}function J0(e,t){e._switchToTextParsing(t,Nt.RAWTEXT)}function hk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===I.IN_TABLE||e.insertionMode===I.IN_CAPTION||e.insertionMode===I.IN_TABLE_BODY||e.insertionMode===I.IN_ROW||e.insertionMode===I.IN_CELL?I.IN_SELECT_IN_TABLE:I.IN_SELECT}function pk(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function gk(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,j.HTML)}function mk(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,j.HTML)}function bk(e,t){e._reconstructActiveFormattingElements(),j0(t),Ou(t),t.selfClosing?e._appendElement(t,j.MATHML):e._insertElement(t,j.MATHML),t.ackSelfClosing=!0}function Ak(e,t){e._reconstructActiveFormattingElements(),V0(t),Ou(t),t.selfClosing?e._appendElement(t,j.SVG):e._insertElement(t,j.SVG),t.ackSelfClosing=!0}function Z0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function dt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{nk(e,t);break}case h.A:{tk(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{$6(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{G6(e,t);break}case h.LI:case h.DD:case h.DT:{Z6(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{$0(e,t);break}case h.HR:{uk(e,t);break}case h.RB:case h.RTC:{gk(e,t);break}case h.RT:case h.RP:{mk(e,t);break}case h.PRE:case h.LISTING:{q6(e,t);break}case h.XMP:{fk(e,t);break}case h.SVG:{Ak(e,t);break}case h.HTML:{Q6(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{Gt(e,t);break}case h.BODY:{K6(e,t);break}case h.FORM:{J6(e,t);break}case h.NOBR:{rk(e,t);break}case h.MATH:{bk(e,t);break}case h.TABLE:{ik(e,t);break}case h.INPUT:{sk(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{ok(e,t);break}case h.IMAGE:{lk(e,t);break}case h.BUTTON:{ek(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{ak(e,t);break}case h.IFRAME:{dk(e,t);break}case h.SELECT:{hk(e,t);break}case h.OPTION:case h.OPTGROUP:{pk(e,t);break}case h.NOEMBED:case h.NOFRAMES:{J0(e,t);break}case h.FRAMESET:{W6(e,t);break}case h.TEXTAREA:{ck(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?J0(e,t):Z0(e,t);break}case h.PLAINTEXT:{X6(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:Z0(e,t)}}function Ek(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=I.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function yk(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=I.AFTER_BODY,u1(e,t))}function Tk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function kk(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function Nk(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(L.P,h.P),e._closePElement()}function Ik(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function wk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Ck(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _k(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function xk(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(L.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function X0(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,o))break}}function ts(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{Lu(e,t);break}case h.P:{Nk(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{Tk(e,t);break}case h.LI:{Ik(e);break}case h.DD:case h.DT:{wk(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{Ck(e);break}case h.BR:{xk(e);break}case h.BODY:{Ek(e,t);break}case h.HTML:{yk(e,t);break}case h.FORM:{kk(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{_k(e,t);break}case h.TEMPLATE:{sr(e,t);break}default:X0(e,t)}}function e1(e,t){e.tmplInsertionModeStack.length>0?o1(e,t):Ru(e,t)}function Mk(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Sk(e,t){e._err(t,P.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Pu(e,t){if(e.openElements.currentTagId!==void 0&&Y0.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=I.IN_TABLE_TEXT,t.type){case Ne.CHARACTER:{n1(e,t);break}case Ne.WHITESPACE_CHARACTER:{t1(e,t);break}}else La(e,t)}function Dk(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_CAPTION}function vk(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_COLUMN_GROUP}function Ok(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.COLGROUP,h.COLGROUP),e.insertionMode=I.IN_COLUMN_GROUP,Uu(e,t)}function Lk(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_TABLE_BODY}function Bk(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.TBODY,h.TBODY),e.insertionMode=I.IN_TABLE_BODY,rs(e,t)}function Rk(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Pk(e,t){q0(t)?e._appendElement(t,j.HTML):La(e,t),t.ackSelfClosing=!0}function Uk(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,j.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Lr(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{Bk(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Gt(e,t);break}case h.COL:{Ok(e,t);break}case h.FORM:{Uk(e,t);break}case h.TABLE:{Rk(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{Lk(e,t);break}case h.INPUT:{Pk(e,t);break}case h.CAPTION:{Dk(e,t);break}case h.COLGROUP:{vk(e,t);break}default:La(e,t)}}function Oa(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{sr(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:La(e,t)}}function La(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,es(e,t),e.fosterParentingEnabled=n}function t1(e,t){e.pendingCharacterTokens.push(t)}function n1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ba(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)La(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const r1=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function Fk(e,t){const n=t.tagID;r1.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_TABLE,Lr(e,t)):dt(e,t)}function Hk(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_TABLE,n===h.TABLE&&Oa(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:ts(e,t)}}function Uu(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.COL:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{Gt(e,t);break}default:ns(e,t)}}function zk(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=I.IN_TABLE);break}case h.TEMPLATE:{sr(e,t);break}case h.COL:break;default:ns(e,t)}}function ns(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=I.IN_TABLE,e._processToken(t))}function rs(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(L.TR,h.TR),e.insertionMode=I.IN_ROW,as(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE,Lr(e,t));break}default:Lr(e,t)}}function Fu(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE,Oa(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:Oa(e,t)}}function as(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,j.HTML),e.insertionMode=I.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,rs(e,t));break}default:Lr(e,t)}}function a1(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,Fu(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,Fu(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:Oa(e,t)}}function jk(e,t){const n=t.tagID;r1.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),as(e,t)):dt(e,t)}function Vk(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),a1(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:ts(e,t)}}function i1(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{Gt(e,t);break}}}function s1(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{sr(e,t);break}}}function Yk(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):i1(e,t)}function Qk(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):s1(e,t)}function Kk(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{Gt(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=I.IN_TABLE,e.insertionMode=I.IN_TABLE,Lr(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=I.IN_COLUMN_GROUP,e.insertionMode=I.IN_COLUMN_GROUP,Uu(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=I.IN_TABLE_BODY,e.insertionMode=I.IN_TABLE_BODY,rs(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=I.IN_ROW,e.insertionMode=I.IN_ROW,as(e,t);break}default:e.tmplInsertionModeStack[0]=I.IN_BODY,e.insertionMode=I.IN_BODY,dt(e,t)}}function Wk(e,t){t.tagID===h.TEMPLATE&&sr(e,t)}function o1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ru(e,t)}function Gk(e,t){t.tagID===h.HTML?dt(e,t):is(e,t)}function u1(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=I.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.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 is(e,t)}function is(e,t){e.insertionMode=I.IN_BODY,es(e,t)}function $k(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.FRAMESET:{e._insertElement(t,j.HTML);break}case h.FRAME:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Gt(e,t);break}}}function qk(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=I.AFTER_FRAMESET))}function Jk(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.NOFRAMES:{Gt(e,t);break}}}function Zk(e,t){t.tagID===h.HTML&&(e.insertionMode=I.AFTER_AFTER_FRAMESET)}function Xk(e,t){t.tagID===h.HTML?dt(e,t):ss(e,t)}function ss(e,t){e.insertionMode=I.IN_BODY,es(e,t)}function eN(e,t){switch(t.tagID){case h.HTML:{dt(e,t);break}case h.NOFRAMES:{Gt(e,t);break}}}function tN(e,t){t.chars=Ke,e._insertCharacters(t)}function nN(e,t){e._insertCharacters(t),e.framesetOk=!1}function l1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==j.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function rN(e,t){if(A6(t))l1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===j.MATHML?j0(t):r===j.SVG&&(E6(t),V0(t)),Ou(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function aN(e,t){if(t.tagID===h.P||t.tagID===h.BR){l1(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 a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}function c1(e,t){return function(r){let a,i=0,o="";for(;a=e.exec(r);)i!==a.index&&(o+=r.substring(i,a.index)),o+=t.get(a[0].charCodeAt(0)),i=a.index+1;return o+r.substring(i)}}const iN=c1(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),sN=c1(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),oN=new Set([L.AREA,L.BASE,L.BASEFONT,L.BGSOUND,L.BR,L.COL,L.EMBED,L.FRAME,L.HR,L.IMG,L.INPUT,L.KEYGEN,L.LINK,L.META,L.PARAM,L.SOURCE,L.TRACK,L.WBR]);function uN(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===j.HTML&&oN.has(t.treeAdapter.getTagName(e))}const lN={treeAdapter:Tn,scriptingEnabled:!0};function cN(e,t){const n={...lN,...t};return f1(e,n)}function fN(e,t){let n="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===L.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===j.HTML?t.treeAdapter.getTemplateContent(e):e,a=t.treeAdapter.getChildNodes(r);if(a)for(const i of a)n+=f1(i,t);return n}function f1(e,t){return t.treeAdapter.isElementNode(e)?dN(e,t):t.treeAdapter.isTextNode(e)?pN(e,t):t.treeAdapter.isCommentNode(e)?gN(e,t):t.treeAdapter.isDocumentTypeNode(e)?mN(e,t):""}function dN(e,t){const n=t.treeAdapter.getTagName(e);return`<${n}${hN(e,t)}>${uN(e,t)?"":`${fN(e,t)}</${n}>`}`}function hN(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",r.namespace)switch(r.namespace){case j.XML:{n+=`xml:${r.name}`;break}case j.XMLNS:{r.name!=="xmlns"&&(n+="xmlns:"),n+=r.name;break}case j.XLINK:{n+=`xlink:${r.name}`;break}default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${iN(r.value)}"`}return n}function pN(e,t){const{treeAdapter:n}=t,r=n.getTextNodeContent(e),a=n.getParentNode(e),i=a&&n.isElementNode(a)&&n.getTagName(a);return i&&n.getNamespaceURI(a)===j.HTML&&KT(i,t.scriptingEnabled)?r:sN(r)}function gN(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function mN(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function bN(e,t){return K0.parse(e,t)}function AN(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=K0.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function d1(e){const t=e.includes('"')?"'":'"';return t+e+t}function EN(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${d1(t)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${d1(n)}`),r}const zn={isCommentNode:Bi,isElementNode:ae,isTextNode:on,createDocument(){const e=new er([]);return e["x-mode"]=St.NO_QUIRKS,e},createDocumentFragment(){return new er([])},createElement(e,t,n){const r=Object.create(null),a=Object.create(null),i=Object.create(null);for(let u=0;u<n.length;u++){const l=n[u].name;r[l]=n[u].value,a[l]=n[u].namespace,i[l]=n[u].prefix}const o=new eu(e,r,[]);return o.namespace=t,o["x-attribsNamespace"]=a,o["x-attribsPrefix"]=i,o},createCommentNode(e){return new Jo(e)},createTextNode(e){return new ga(e)},appendChild(e,t){const n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){const r=e.children.indexOf(n),{prev:a}=n;a&&(a.next=t,t.prev=a),n.prev=t,t.next=n,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){zn.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,n,r){const a=EN(t,n,r);let i=e.children.find(o=>tu(o)&&o.name==="!doctype");i?i.data=a??null:(i=new Zo("!doctype",a),zn.appendChild(e,i)),i["x-name"]=t,i["x-publicId"]=n,i["x-systemId"]=r},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:n,next:r}=e;e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const n=e.children[e.children.length-1];n&&on(n)?n.data+=t:zn.appendChild(e,zn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.children[e.children.indexOf(n)-1];r&&on(r)?r.data+=t:zn.insertBefore(e,zn.createTextNode(t),n)},adoptAttributes(e,t){for(let n=0;n<t.length;n++){const r=t[n].name;e.attribs[r]===void 0&&(e.attribs[r]=t[n].value,e["x-attribsNamespace"][r]=t[n].namespace,e["x-attribsPrefix"][r]=t[n].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return tu(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function yN(e,t,n,r){var a;return(a=t.treeAdapter)!==null&&a!==void 0||(t.treeAdapter=zn),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),n?bN(e,t):AN(r,e,t)}const TN={treeAdapter:zn};function kN(e){const t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){const a=t[r];Rn(a)&&Array.prototype.splice.call(t,r,1,...a.children)}let n="";for(let r=0;r<t.length;r+=1){const a=t[r];n+=cN(a,TN)}return n}const h1=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))),p1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Hu;const NN=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]]),zu=(Hu=String.fromCodePoint)!==null&&Hu!==void 0?Hu: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 IN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=NN.get(e))!==null&&t!==void 0?t:e}var st;(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"})(st||(st={}));const wN=32;var jn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jn||(jn={}));function ju(e){return e>=st.ZERO&&e<=st.NINE}function CN(e){return e>=st.UPPER_A&&e<=st.UPPER_F||e>=st.LOWER_A&&e<=st.LOWER_F}function _N(e){return e>=st.UPPER_A&&e<=st.UPPER_Z||e>=st.LOWER_A&&e<=st.LOWER_Z||ju(e)}function xN(e){return e===st.EQUALS||_N(e)}var ot;(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"})(ot||(ot={}));var ln;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ln||(ln={}));class g1{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ot.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ln.Strict}startEntity(t){this.decodeMode=t,this.state=ot.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ot.EntityStart:return t.charCodeAt(n)===st.NUM?(this.state=ot.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ot.NamedEntity,this.stateNamedEntity(t,n));case ot.NumericStart:return this.stateNumericStart(t,n);case ot.NumericDecimal:return this.stateNumericDecimal(t,n);case ot.NumericHex:return this.stateNumericHex(t,n);case ot.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|wN)===st.LOWER_X?(this.state=ot.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ot.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(ju(a)||CN(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(ju(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===st.SEMI)this.consumed+=1;else if(this.decodeMode===ln.Strict)return 0;return this.emitCodePoint(IN(this.result),this.consumed),this.errors&&(t!==st.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&jn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=MN(r,a,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===ln.Attribute&&(i===0||xN(o))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&jn.VALUE_LENGTH)>>14,i!==0){if(o===st.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ln.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&jn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~jn.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case ot.NamedEntity:return this.result!==0&&(this.decodeMode!==ln.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ot.NumericDecimal:return this.emitNumericEntity(0,2);case ot.NumericHex:return this.emitNumericEntity(0,3);case ot.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ot.EntityStart:return 0}}}function m1(e){let t="";const n=new g1(e,r=>t+=zu(r));return function(a,i){let o=0,u=0;for(;(u=a.indexOf("&",u))>=0;){t+=a.slice(o,u),n.startEntity(i);const c=n.write(a,u+1);if(c<0){o=u+n.end();break}o=u+c,u=c===0?o+1:o}const l=t+a.slice(o);return t="",l}}function MN(e,t,n,r){const a=(t&jn.BRANCH_LENGTH)>>7,i=t&jn.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let o=n,u=o+a-1;for(;o<=u;){const l=o+u>>>1,c=e[l];if(c<r)o=l+1;else if(c>r)u=l-1;else return e[l+a]}return-1}m1(h1),m1(p1);var te;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(te||(te={}));var Y;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(Y||(Y={}));function kn(e){return e===te.Space||e===te.NewLine||e===te.Tab||e===te.FormFeed||e===te.CarriageReturn}function os(e){return e===te.Slash||e===te.Gt||kn(e)}function SN(e){return e>=te.LowerA&&e<=te.LowerZ||e>=te.UpperA&&e<=te.UpperZ}var cn;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(cn||(cn={}));const ct={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class DN{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=Y.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Y.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=n,this.entityDecoder=new g1(t?p1:h1,(a,i)=>this.emitCodePoint(a,i))}reset(){this.state=Y.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Y.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===te.Lt||!this.decodeEntities&&this.fastForwardTo(te.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Y.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===te.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?os(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Y.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===te.Gt||kn(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ct.TitleEnd?this.decodeEntities&&t===te.Amp&&this.startEntity():this.fastForwardTo(te.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===te.Lt)}stateCDATASequence(t){t===ct.Cdata[this.sequenceIndex]?++this.sequenceIndex===ct.Cdata.length&&(this.state=Y.InCommentLike,this.currentSequence=ct.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=Y.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ct.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Y.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!os(t):SN(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=Y.SpecialStartSequence}stateBeforeTagName(t){if(t===te.ExclamationMark)this.state=Y.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===te.Questionmark)this.state=Y.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,this.xmlMode?this.state=Y.InTagName:n===ct.ScriptEnd[2]?this.state=Y.BeforeSpecialS:n===ct.TitleEnd[2]?this.state=Y.BeforeSpecialT:this.state=Y.InTagName}else t===te.Slash?this.state=Y.BeforeClosingTagName:(this.state=Y.Text,this.stateText(t))}stateInTagName(t){os(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Y.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){kn(t)||(t===te.Gt?this.state=Y.Text:(this.state=this.isTagStartChar(t)?Y.InClosingTagName:Y.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===te.Gt||kn(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Y.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===te.Gt||this.fastForwardTo(te.Gt))&&(this.state=Y.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===te.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=Y.InSpecialTag,this.sequenceIndex=0):this.state=Y.Text,this.sectionStart=this.index+1):t===te.Slash?this.state=Y.InSelfClosingTag:kn(t)||(this.state=Y.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===te.Gt?(this.cbs.onselfclosingtag(this.index),this.state=Y.Text,this.sectionStart=this.index+1,this.isSpecial=!1):kn(t)||(this.state=Y.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===te.Eq||os(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Y.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===te.Eq?this.state=Y.BeforeAttributeValue:t===te.Slash||t===te.Gt?(this.cbs.onattribend(cn.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Y.BeforeAttributeName,this.stateBeforeAttributeName(t)):kn(t)||(this.cbs.onattribend(cn.NoValue,this.sectionStart),this.state=Y.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===te.DoubleQuote?(this.state=Y.InAttributeValueDq,this.sectionStart=this.index+1):t===te.SingleQuote?(this.state=Y.InAttributeValueSq,this.sectionStart=this.index+1):kn(t)||(this.sectionStart=this.index,this.state=Y.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,n){t===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===te.DoubleQuote?cn.Double:cn.Single,this.index+1),this.state=Y.BeforeAttributeName):this.decodeEntities&&t===te.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,te.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,te.SingleQuote)}stateInAttributeValueNoQuotes(t){kn(t)||t===te.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(cn.Unquoted,this.index),this.state=Y.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===te.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===te.OpeningSquareBracket?(this.state=Y.CDATASequence,this.sequenceIndex=0):this.state=t===te.Dash?Y.BeforeComment:Y.InDeclaration}stateInDeclaration(t){(t===te.Gt||this.fastForwardTo(te.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Y.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===te.Gt||this.fastForwardTo(te.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=Y.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===te.Dash?(this.state=Y.InCommentLike,this.currentSequence=ct.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=Y.InDeclaration}stateInSpecialComment(t){(t===te.Gt||this.fastForwardTo(te.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Y.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===ct.ScriptEnd[3]?this.startSpecial(ct.ScriptEnd,4):n===ct.StyleEnd[3]?this.startSpecial(ct.StyleEnd,4):(this.state=Y.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const n=t|32;n===ct.TitleEnd[3]?this.startSpecial(ct.TitleEnd,4):n===ct.TextareaEnd[3]?this.startSpecial(ct.TextareaEnd,4):(this.state=Y.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=Y.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?ln.Strict:this.baseState===Y.Text||this.baseState===Y.InSpecialTag?ln.Legacy:ln.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Y.Text||this.state===Y.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Y.InAttributeValueDq||this.state===Y.InAttributeValueSq||this.state===Y.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Y.Text:{this.stateText(t);break}case Y.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case Y.InSpecialTag:{this.stateInSpecialTag(t);break}case Y.CDATASequence:{this.stateCDATASequence(t);break}case Y.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case Y.InAttributeName:{this.stateInAttributeName(t);break}case Y.InCommentLike:{this.stateInCommentLike(t);break}case Y.InSpecialComment:{this.stateInSpecialComment(t);break}case Y.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case Y.InTagName:{this.stateInTagName(t);break}case Y.InClosingTagName:{this.stateInClosingTagName(t);break}case Y.BeforeTagName:{this.stateBeforeTagName(t);break}case Y.AfterAttributeName:{this.stateAfterAttributeName(t);break}case Y.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case Y.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case Y.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case Y.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case Y.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case Y.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case Y.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case Y.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case Y.InDeclaration:{this.stateInDeclaration(t);break}case Y.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case Y.BeforeComment:{this.stateBeforeComment(t);break}case Y.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case Y.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===Y.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===Y.InCommentLike?this.currentSequence===ct.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===Y.InTagName||this.state===Y.BeforeAttributeName||this.state===Y.BeforeAttributeValue||this.state===Y.AfterAttributeName||this.state===Y.InAttributeName||this.state===Y.InAttributeValueSq||this.state===Y.InAttributeValueDq||this.state===Y.InAttributeValueNq||this.state===Y.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==Y.Text&&this.baseState!==Y.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}const Br=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Be=new Set(["p"]),b1=new Set(["thead","tbody"]),A1=new Set(["dd","dt"]),E1=new Set(["rt","rp"]),vN=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Be],["h1",Be],["h2",Be],["h3",Be],["h4",Be],["h5",Be],["h6",Be],["select",Br],["input",Br],["output",Br],["button",Br],["datalist",Br],["textarea",Br],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",A1],["dt",A1],["address",Be],["article",Be],["aside",Be],["blockquote",Be],["details",Be],["div",Be],["dl",Be],["fieldset",Be],["figcaption",Be],["figure",Be],["footer",Be],["form",Be],["header",Be],["hr",Be],["main",Be],["nav",Be],["ol",Be],["pre",Be],["section",Be],["table",Be],["ul",Be],["rt",E1],["rp",E1],["tbody",b1],["tfoot",b1]]),ON=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),y1=new Set(["math","svg"]),T1=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),LN=/\s|\//;class BN{constructor(t,n={}){var r,a,i,o,u,l;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(a=n.lowerCaseAttributeNames)!==null&&a!==void 0?a:this.htmlMode,this.recognizeSelfClosing=(i=n.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((o=n.Tokenizer)!==null&&o!==void 0?o:DN)(this.options,this),this.foreignContext=[!this.htmlMode],(l=(u=this.cbs).onparserinit)===null||l===void 0||l.call(u,this)}ontext(t,n){var r,a;const i=this.getSlice(t,n);this.endIndex=n-1,(a=(r=this.cbs).ontext)===null||a===void 0||a.call(r,i),this.startIndex=n}ontextentity(t,n){var r,a;this.endIndex=n-1,(a=(r=this.cbs).ontext)===null||a===void 0||a.call(r,zu(t)),this.startIndex=n}isVoidElement(t){return this.htmlMode&&ON.has(t)}onopentagname(t,n){this.endIndex=n;let r=this.getSlice(t,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var n,r,a,i;this.openTagStart=this.startIndex,this.tagname=t;const o=this.htmlMode&&vN.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){const u=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,u,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(y1.has(t)?this.foreignContext.unshift(!0):T1.has(t)&&this.foreignContext.unshift(!1))),(i=(a=this.cbs).onopentagname)===null||i===void 0||i.call(a,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var r,a,i,o,u,l,c,f;this.endIndex=n;let d=this.getSlice(t,n);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),this.htmlMode&&(y1.has(d)||T1.has(d))&&this.foreignContext.shift(),this.isVoidElement(d))this.htmlMode&&d==="br"&&((o=(i=this.cbs).onopentagname)===null||o===void 0||o.call(i,"br"),(l=(u=this.cbs).onopentag)===null||l===void 0||l.call(u,"br",{},!0),(f=(c=this.cbs).onclosetag)===null||f===void 0||f.call(c,"br",!1));else{const p=this.stack.indexOf(d);if(p!==-1)for(let g=0;g<=p;g++){const m=this.stack.shift();(a=(r=this.cbs).onclosetag)===null||a===void 0||a.call(r,m,g!==p)}else this.htmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const a=this.tagname;this.endOpenTag(t),this.stack[0]===a&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,a,!t),this.stack.shift())}onattribname(t,n){this.startIndex=t;const r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=zu(t)}onattribend(t,n){var r,a;this.endIndex=n,(a=(r=this.cbs).onattribute)===null||a===void 0||a.call(r,this.attribname,this.attribvalue,t===cn.Double?'"':t===cn.Single?"'":t===cn.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(LN);let r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const a=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${a}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const a=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${a}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var a,i,o,u;this.endIndex=n,(i=(a=this.cbs).oncomment)===null||i===void 0||i.call(a,this.getSlice(t,n-r)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=n+1}oncdata(t,n,r){var a,i,o,u,l,c,f,d,p,g;this.endIndex=n;const m=this.getSlice(t,n-r);!this.htmlMode||this.options.recognizeCDATA?((i=(a=this.cbs).oncdatastart)===null||i===void 0||i.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,m),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((d=(f=this.cbs).oncomment)===null||d===void 0||d.call(f,`[CDATA[${m}]]`),(g=(p=this.cbs).oncommentend)===null||g===void 0||g.call(p)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,r,a;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(r=this.cbs).onparserinit)===null||a===void 0||a.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}function RN(e,t){const n=new CE(void 0,t);return new BN(n,t).end(e),n.root}const PN=G4((e,t,n,r)=>t._useHtmlParser2?RN(e,t):yN(e,t,n,r)),UN=_T(PN,(e,t)=>t._useHtmlParser2?Ri(e,t):kN(e)),FN=gE(Object.freeze(Object.defineProperty({__proto__:null,contains:lu,load:UN,merge:Vd},Symbol.toStringTag,{value:"Module"})));var Vu={},k1={exports:{}},N1={exports:{}};(function(e,t){e.exports=n;function n(a){return r.bind(null,a)}function r(a){var i=[].slice.call(arguments,1);i.unshift("["+a+"]"),process.stderr.write(i.join(" ")+`
|
|
358
|
+
`)}})(N1);var Yu=N1.exports;(function(e,t){Yu("lex"),e.exports=n;function n(r){var a="",i,o=0,u=-1,l=0,c=1,f="before-selector",d=[f],p={},g=[],m=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function b(){return v(),r[u]}function A(z){return z?d[d.length-1-z]:f}function E(z){var H=u+1;return z===r.slice(H,H+z.length)}function w(z){var H=r.slice(u).indexOf(z);return H>0?H:!1}function C(z){return z===T(1)}function T(z){return r[u+(z||1)]}function N(){var z=d.pop();return f=d[d.length-1],z}function D(z){return f=z,d.push(f),d.length}function B(z){var H=f;return d[d.length-1]=f=z,H}function v(z){if((z||1)==1)r[u]==`
|
|
359
|
+
`?(c++,o=1):o++,u++;else{var H=r.slice(u,u+z).split(`
|
|
360
|
+
`);H.length>1&&(c+=H.length-1,o=1),o+=H[H.length-1].length,u=u+z}}function _(){p.end={line:c,col:o},g.push(p),a="",p={}}function x(z){p={type:z,start:{line:c,col:o}}}for(;i=b();)switch(i){case" ":switch(A()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":a+=i;break}break;case`
|
|
361
|
+
`:case" ":case"\r":case"\f":switch(A()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":a+=i;break;case"at-value":i===`
|
|
362
|
+
`&&(p.value=a.trim(),_(),N());break}break;case":":switch(A()){case"name":p.name=a.trim(),a="",B("before-value");break;case"before-selector":a+=i,x("selector"),D("selector");break;case"before-value":B("value"),a+=i;break;default:a+=i;break}break;case";":switch(A()){case"name":case"before-value":case"value":a.trim().length>0&&(p.value=a.trim(),_()),B("before-name");break;case"value-paren":a+=i;break;case"at-value":p.value=a.trim(),_(),N();break;case"before-name":break;default:a+=i;break}break;case"{":switch(A()){case"selector":if(T(-1)==="\\"){a+=i;break}p.text=a.trim(),_(),B("before-name"),l=l+1;break;case"at-group":switch(p.name=a.trim(),p.type){case"font-face":case"viewport":case"page":D("before-name");break;default:D("before-selector")}_(),l=l+1;break;case"name":case"at-rule":p.name=a.trim(),_(),D("before-name"),l=l+1;break;case"comment":case"double-string":case"single-string":a+=i;break;case"before-value":B("value"),a+=i;break}break;case"}":switch(A()){case"before-name":case"name":case"before-value":case"value":a&&(p.value=a.trim()),p.name&&p.value&&_(),x("end"),_(),N(),A()==="at-group"&&(x("at-group-end"),_(),N()),l>0&&(l=l-1);break;case"at-group":case"before-selector":case"selector":if(T(-1)==="\\"){a+=i;break}l>0&&A(1)==="at-group"&&(x("at-group-end"),_()),l>1&&N(),l>0&&(l=l-1);break;case"double-string":case"single-string":case"comment":a+=i;break}break;case'"':case"'":switch(A()){case"double-string":i==='"'&&T(-1)!=="\\"&&N();break;case"single-string":i==="'"&&T(-1)!=="\\"&&N();break;case"before-at-value":B("at-value"),D(i==='"'?"double-string":"single-string");break;case"before-value":B("value"),D(i==='"'?"double-string":"single-string");break;case"comment":break;default:T(-1)!=="\\"&&D(i==='"'?"double-string":"single-string")}a+=i;break;case"/":switch(A()){case"comment":case"double-string":case"single-string":a+=i;break;case"before-value":case"selector":case"name":case"value":if(C("*")){var R=w("*/");R&&v(R+1)}else A()=="before-value"&&B("value"),a+=i;break;default:C("*")?(x("comment"),D("comment"),v()):a+=i;break}break;case"*":switch(A()){case"comment":C("/")?(p.text=a,v(),_(),N()):a+=i;break;case"before-selector":a+=i,x("selector"),D("selector");break;case"before-value":B("value"),a+=i;break;default:a+=i}break;case"@":switch(A()){case"comment":case"double-string":case"single-string":a+=i;break;case"before-value":B("value"),a+=i;break;default:for(var O=!1,M,S,F=0,V=m.length;!O&&F<V;++F)S=m[F],M=S.name||S,E(M)&&(O=!0,x(M),D(S.state||"at-group"),v(M.length),S.prefix&&(p.prefix=S.prefix),S.type&&(p.type=S.type));O||(a+=i);break}break;case"(":switch(A()){case"value":D("value-paren");break;case"before-value":B("value");break}a+=i;break;case")":switch(A()){case"value-paren":N();break;case"before-value":B("value");break}a+=i;break;default:switch(A()){case"before-selector":x("selector"),D("selector");break;case"before-name":x("property"),B("name");break;case"before-value":B("value");break;case"before-at-value":B("at-value");break}a+=i;break}return g}})(k1);var I1=k1.exports,w1={exports:{}};(function(e,t){Yu("parse");var n=I1;e.exports=u;var r,a,i,o;function u(N,D){D||(D={}),r=!!D.comments,i=!!D.position,a=0,o=Array.isArray(N)?N.slice():n(N);for(var B,v=[],_;_=c();)B=E(_),B&&v.push(B);return{type:"stylesheet",stylesheet:{rules:v}}}function l(N,D){D||(D={});for(var B,v=["type","name","value"],_={},x=0;x<v.length;++x)B=v[x],N[B]&&(_[B]=D[B]||N[B]);for(v=Object.keys(D),x=0;x<v.length;++x)B=v[x],_[B]||(_[B]=D[B]);return i&&(_.position={start:N.start,end:N.end}),_}function c(){var N=o.shift();return N}function f(N){a=a+1;var D={};switch(N.type){case"font-face":case"viewport":D.declarations=C();break;case"page":D.prefix=N.prefix,D.declarations=C();break;default:D.prefix=N.prefix,D.rules=T()}return l(N,D)}function d(N){return l(N)}function p(N){return l(N)}function g(N){return l(N,{text:N.text})}function m(N){return l(N)}function b(N){return l(N)}function A(N){function D(B){return B.trim()}return l(N,{type:"rule",selectors:N.text.split(",").map(D),declarations:C()})}function E(N){switch(N.type){case"property":return b(N);case"selector":return A(N);case"at-group-end":a=a-1;return;case"media":case"keyframes":return f(N);case"comment":if(r)return g(N);break;case"charset":return p(N);case"import":return d(N);case"namespace":return m(N);case"font-face":case"supports":case"viewport":case"document":case"page":return f(N)}}function w(N){for(var D,B=[],v;(v=c())&&N&&N(v);)D=E(v),D&&B.push(D);return v&&v.type!=="end"&&o.unshift(v),B}function C(){return w(function(N){return N.type==="property"||N.type==="comment"})}function T(){return w(function(){return a})}})(w1);var HN=w1.exports,C1={exports:{}};(function(e,t){Yu("stringify");var n,r,a,i,o,u;e.exports=l;function l(T,N){N||(N={}),a=N.indentation||"",r=!!N.compress,n=!!N.comments,i=1,r?o=u="":(o=`
|
|
363
|
+
`,u=" ");var D=m(T.stylesheet.rules,w).join(`
|
|
364
|
+
`).trim();return D}function c(T){if(T){i+=T;return}return r?"":Array(i).join(a||"")}function f(T){return"@"+T.type+" "+T.value+";"+o}function d(T){var N="",D=T.prefix||"";T.name&&(N=" "+T.name);var B=T.type!=="page";return"@"+D+T.type+N+u+b(T,B)+o}function p(T){return n?"/*"+(T.text||"")+"*/"+o:""}function g(T){var N;return T.selectors?N=T.selectors.join(","+o):(N="@"+T.type,N+=T.name?" "+T.name:""),c()+N+u+b(T)+o}function m(T,N){return T.reduce(function(D,B){var v=B.type==="comment"?p(B):N(B);return v&&D.push(v),D},[])}function b(T,N){var D=T.declarations,B=E;return T.rules&&(D=T.rules,B=g),D=A(D,B),D&&(D=o+D+(N?"":o)),"{"+D+c()+"}"}function A(T,N){if(!T)return"";c(1);var D=m(T,N);return c(-1),D.length?D.join(o):""}function E(T){if(T.type==="property")return C(T)}function w(T){switch(T.type){case"rule":return g(T);case"media":case"keyframes":return d(T);case"comment":return p(T);case"import":case"charset":case"namespace":return f(T);case"font-face":case"supports":case"viewport":case"document":case"page":return d(T)}}function C(T){var N=T.name?T.name+":"+u:"";return c()+N+T.value+";"}})(C1);var zN=C1.exports,jN={lex:I1,parse:HN,stringify:zN},_1={exports:{}},VN=/([-.*+?^${}()|[\]\/\\])/g,YN=/\\/g,or=function(e){return(e+"").replace(VN,"\\$1")},ur=function(e){return(e+"").replace(YN,"")},QN=RegExp(`^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+or(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),x1=function(t){this.combinator=t||" ",this.tag="*"};x1.prototype.toString=function(){if(!this.raw){var e="",t,n;if(e+=this.tag||"*",this.id&&(e+="#"+this.id),this.classes&&(e+="."+this.classList.join(".")),this.attributes)for(t=0;n=this.attributes[t++];)e+="["+n.name+(n.operator?n.operator+'"'+n.value+'"':"")+"]";if(this.pseudos)for(t=0;n=this.pseudos[t++];)e+=":"+n.name,n.value&&(e+="("+n.value+")");this.raw=e}return this.raw};var M1=function(){this.length=0};M1.prototype.toString=function(){if(!this.raw){for(var e="",t=0,n;n=this[t++];)t!==1&&(e+=" "),n.combinator!==" "&&(e+=n.combinator+" "),e+=n;this.raw=e}return this.raw};var KN=function(e,t,n,r,a,i,o,u,l,c,f,d,p,g,m,b){var A,E;if((t||!this.length)&&(A=this[this.length++]=new M1,t))return"";if(A||(A=this[this.length-1]),(n||r||!A.length)&&(E=A[A.length++]=new x1(n)),E||(E=A[A.length-1]),a)E.tag=ur(a);else if(i)E.id=ur(i);else if(o){var w=ur(o),C=E.classes||(E.classes={});if(!C[w]){C[w]=or(o);var T=E.classList||(E.classList=[]);T.push(w),T.sort()}}else p?(b=b||m,(E.pseudos||(E.pseudos=[])).push({type:d.length==1?"class":"element",name:ur(p),escapedName:or(p),value:b?ur(b):null,escapedValue:b?or(b):null})):u&&(f=f?or(f):null,(E.attributes||(E.attributes=[])).push({operator:l,name:ur(u),escapedName:or(u),value:f?ur(f):null,escapedValue:f?or(f):null}));return""},S1=function(t){this.length=0;for(var n=this,r=t,a;t;){if(a=t.replace(QN,function(){return KN.apply(n,arguments)}),a===t)throw new Error(r+" is an invalid expression");t=a}};S1.prototype.toString=function(){if(!this.raw){for(var e=[],t=0,n;n=this[t++];)e.push(n);this.raw=e.join(", ")}return this.raw};var D1={},WN=function(e){return e==null?null:(e=(""+e).replace(/^\s+|\s+$/g,""),D1[e]||(D1[e]=new S1(e)))},GN=WN;(function(e,t){var n=GN;e.exports=r;function r(i,o){this.text=i,this.spec=void 0,this.styleAttribute=o||!1}r.prototype.parsed=function(){return this.tokens||(this.tokens=a(this.text)),this.tokens},r.prototype.specificity=function(){var i=this.styleAttribute;return this.spec||(this.spec=o(this.text,this.parsed())),this.spec;function o(u,l){for(var c=l||a(u),f=[i?1:0,0,0,0],d=[],p=0;p<c.length;p++){var g=c[p],m=g.pseudos;if(g.id&&f[1]++,g.attributes&&(f[2]+=g.attributes.length),g.classList&&(f[2]+=g.classList.length),g.tag&&g.tag!=="*"&&f[3]++,m){f[3]+=m.length;for(var b=0;b<m.length;b++)m[b].name==="not"&&(d.push(m[b].value),f[3]--)}}for(var A=d.length;A--;)for(var E=o(d[A]),w=4;w--;)f[w]+=E[w];return f}};function a(i){try{return n(i)[0]}catch{return[]}}})(_1);var $N=_1.exports,Qu={exports:{}},v1;function qN(){return v1||(v1=1,function(e,t){e.exports=r;var n=Ku();function r(a,i,o,u,l){this.prop=a,this.value=i,this.selector=o,this.priority=u||0,this.additionalPriority=l||[]}r.prototype.compareFunc=function(a){var i=[];i.push.apply(i,this.selector.specificity()),i.push.apply(i,this.additionalPriority),i[0]+=this.priority;var o=[];return o.push.apply(o,a.selector.specificity()),o.push.apply(o,a.additionalPriority),o[0]+=a.priority,n.compareFunc(i,o)},r.prototype.compare=function(a){var i=this.compareFunc(a);return i===1?this:a},r.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}}(Qu)),Qu.exports}var O1;function Ku(){return O1||(O1=1,function(e){var t=jN,n=$N,r=qN();e.Selector=n,e.Property=r;/**
|
|
365
|
+
* Returns an array of the selectors.
|
|
366
|
+
*
|
|
367
|
+
* @license Sizzle CSS Selector Engine - MIT
|
|
368
|
+
* @param {String} selectorText from mensch
|
|
369
|
+
* @api public
|
|
370
|
+
*/e.extract=function(i){for(var o=0,u=[],l="",c=0,f=i.length;c<f;c++){var d=i.charAt(c);o?((d==="]"||d===")")&&o--,l+=d):d===","?(u.push(l),l=""):((d==="["||d==="(")&&o++,(l.length||d!==","&&d!==`
|
|
371
|
+
`&&d!==" ")&&(l+=d))}return l.length&&u.push(l),u},e.parseCSS=function(a){var i=t.parse(a,{position:!0,comments:!0}),o=typeof i.stylesheet<"u"&&i.stylesheet.rules?i.stylesheet.rules:[],u=[],l=!1,c=!1;if(o.length>0&&o[0].type==="comment"&&o[0].text){var f=o[0].text.trim();f==="juice ignore"&&(c=!0)}if(c)return u;for(var d=0,p=o.length;d<p;d++){if(o[d].type==="comment"){if(!o[d].text)continue;var g=o[d].text.trim();g==="juice start ignore"?l=!0:g==="juice end ignore"?l=!1:g==="juice ignore next"&&d++;continue}if(!l&&o[d].type=="rule"){var m=o[d],b=m.selectors,A=[];if(m.declarations)for(var E=!1,w=0;w<m.declarations.length;w++){var C=m.declarations[w];if(C.type==="comment"&&C.text){var T=C.text.trim();if(T==="juice ignore next"){E=!0;continue}}if(E&&C.type==="property"){E=!1;continue}C.type==="property"&&A.push(C)}if(A.length>0)for(var N=0,D=b.length;N<D;N++)u.push([b[N],A])}}return u},e.getPreservedText=function(a,i,o){var u=t.parse(a,{position:!0,comments:!0}),l=typeof u.stylesheet<"u"&&u.stylesheet.rules?u.stylesheet.rules:[],c=[],f=!1,d=[],p=!1,g=new Set;if(l.length>0&&l[0].type==="comment"&&l[0].text){var m=l[0].text.trim();m==="juice ignore"&&(p=!0)}if(p)return`
|
|
372
|
+
`+a+`
|
|
373
|
+
`;for(var b=0;b<l.length;b++){if(l[b].type==="comment"&&l[b].text){var A=l[b].text.trim();A==="juice ignore next"&&b+1<l.length&&g.add(b+1)}if(l[b].type==="rule"&&l[b].declarations){for(var E=0;E<l[b].declarations.length;E++)if(l[b].declarations[E].type==="comment"&&l[b].declarations[E].text){var w=l[b].declarations[E].text.trim();if(w==="juice ignore next"){g.add(b);break}}}}for(var b=l.length-1;b>=0;b--){var C=l[b];if(C.type==="comment"){if(!C.text)continue;var A=C.text.trim();A==="juice end ignore"?(f=!0,d.push(C)):A==="juice start ignore"&&(f=!1,d.push(C),d.length>0&&(c.unshift(t.stringify({stylesheet:{rules:d.reverse()}},{comments:!0,indentation:" "})),d=[]));continue}if(f){d.push(C);continue}if(g.has(b)){c.unshift(t.stringify({stylesheet:{rules:[C]}},{comments:!0,indentation:" "}));continue}(i.fontFaces&&C.type==="font-face"||i.mediaQueries&&C.type==="media"||i.keyFrames&&C.type==="keyframes"||i.pseudos&&C.selectors&&this.matchesPseudo(C.selectors[0],o)||i.preservedSelectors&&C.selectors&&C.selectors.some(function(N){return e.matchesPreservedSelector(N,i.preservedSelectors)}))&&c.unshift(t.stringify({stylesheet:{rules:[C]}},{comments:!1,indentation:" "})),C.position.start}return c.length===0?!1:`
|
|
374
|
+
`+c.join(`
|
|
375
|
+
`)+`
|
|
376
|
+
`},e.normalizeLineEndings=function(a){return a.replace(/\r\n/g,`
|
|
377
|
+
`).replace(/\n/g,`\r
|
|
378
|
+
`)},e.matchesPseudo=function(a,i){return i.find(function(o){return a.indexOf(":"+o)>-1})},e.matchesPreservedSelector=function(a,i){if(!i||i.length===0)return!1;for(var o=0;o<i.length;o++){var u=i[o];if(a===u||a.indexOf(u)!==-1)return!0}return!1},e.removeInlinedSelectorsFromCSS=function(a,i,o,u){for(var l=t.parse(a,{position:!0,comments:!0}),c=typeof l.stylesheet<"u"&&l.stylesheet.rules?l.stylesheet.rules:[],f=[],d=0;d<c.length;d++){var p=c[d];if(p.type!=="rule"){f.push(p);continue}if(p.selectors&&o.preservePseudos&&this.matchesPseudo(p.selectors[0],u)){f.push(p);continue}if(p.selectors&&o.preservedSelectors&&p.selectors.some(function(b){return e.matchesPreservedSelector(b,o.preservedSelectors)})){f.push(p);continue}var g=p.selectors.filter(function(b){return!i.has(b)});if(g.length>0){var m=Object.assign({},p,{selectors:g});f.push(m)}}return f.length===0?"":t.stringify({stylesheet:{rules:f}},{comments:!1,indentation:" "})},e.compareFunc=function(a,i){for(var o=Math.min(a.length,i.length),u=0;u<o;u++)if(a[u]!==i[u])return a[u]>i[u]?1:-1;return a.length-i.length},e.compare=function(a,i){return e.compareFunc(a,i)==1?a:i},e.getDefaultOptions=function(a){var i=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,removeInlinedSelectors:!1,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,preservedSelectors:[],applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,inlineDuplicateProperties:!1,url:""},a);return i.webResources=i.webResources||{},i}}(Vu)),Vu}(function(e){var t=FN;Ku();var n=function(a,i,o){const{xmlMode:u,...l}=i;return i=Object.assign({xml:{decodeEntities:!1,xmlMode:u}},l),a=o(a),t.load(a,i)},r=function(){var a=[],i=function(u){var l=e.exports.codeBlocks;return Object.keys(l).forEach(function(c){var f=new RegExp(l[c].start+"([\\S\\s]*?)"+l[c].end,"g");u=u.replace(f,function(d,p){return a.push(d),"JUICE_CODE_BLOCK_"+(a.length-1)+"_"})}),u},o=function(u){for(var l=0;l<a.length;l++){var c=new RegExp("JUICE_CODE_BLOCK_"+l+'_(="")?',"gi");u=u.replace(c,function(){return a[l]})}return u};return{encodeEntities:i,decodeEntities:o}};e.exports=function(a,i,o,u){var l=r(),c=n(a,i,l.encodeEntities),f=[c];f.push.apply(f,u);var d=o.apply(void 0,f)||c;return i&&i.xmlMode?l.decodeEntities(d.xml()):l.decodeEntities(d.html())},e.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(_d);var JN=_d.exports,L1={},Wu={},Gu={};(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=void 0,e.replaceCodePoint=r,e.decodeCodePoint=a;const n=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]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:i=>{let o="";return i>65535&&(i-=65536,o+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),o+=String.fromCharCode(i),o};function r(i){var o;return i>=55296&&i<=57343||i>1114111?65533:(o=n.get(i))!==null&&o!==void 0?o:i}function a(i){return(0,e.fromCodePoint)(r(i))}})(Gu);var Ra={},us={};Object.defineProperty(us,"__esModule",{value:!0}),us.decodeBase64=ZN;function ZN(e){const t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),n=t.length&-2,r=new Uint16Array(n/2);for(let a=0,i=0;a<n;a+=2){const o=t.charCodeAt(a),u=t.charCodeAt(a+1);r[i++]=o|u<<8}return r}Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.htmlDecodeTree=void 0;const XN=us;Ra.htmlDecodeTree=(0,XN.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.xmlDecodeTree=void 0;const eI=us;Pa.xmlDecodeTree=(0,eI.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var ls={};Object.defineProperty(ls,"__esModule",{value:!0}),ls.BinTrieFlags=void 0;var B1;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(B1||(ls.BinTrieFlags=B1={})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.xmlDecodeTree=e.htmlDecodeTree=e.replaceCodePoint=e.fromCodePoint=e.decodeCodePoint=e.EntityDecoder=e.DecodingMode=void 0,e.determineBranch=b,e.decodeHTML=w,e.decodeHTMLAttribute=C,e.decodeHTMLStrict=T,e.decodeXML=N;const t=Gu,n=Ra,r=Pa,a=ls;var i;(function(_){_[_.NUM=35]="NUM",_[_.SEMI=59]="SEMI",_[_.EQUALS=61]="EQUALS",_[_.ZERO=48]="ZERO",_[_.NINE=57]="NINE",_[_.LOWER_A=97]="LOWER_A",_[_.LOWER_F=102]="LOWER_F",_[_.LOWER_X=120]="LOWER_X",_[_.LOWER_Z=122]="LOWER_Z",_[_.UPPER_A=65]="UPPER_A",_[_.UPPER_F=70]="UPPER_F",_[_.UPPER_Z=90]="UPPER_Z"})(i||(i={}));const o=32;function u(_){return _>=i.ZERO&&_<=i.NINE}function l(_){return _>=i.UPPER_A&&_<=i.UPPER_F||_>=i.LOWER_A&&_<=i.LOWER_F}function c(_){return _>=i.UPPER_A&&_<=i.UPPER_Z||_>=i.LOWER_A&&_<=i.LOWER_Z||u(_)}function f(_){return _===i.EQUALS||c(_)}var d;(function(_){_[_.EntityStart=0]="EntityStart",_[_.NumericStart=1]="NumericStart",_[_.NumericDecimal=2]="NumericDecimal",_[_.NumericHex=3]="NumericHex",_[_.NamedEntity=4]="NamedEntity"})(d||(d={}));var p;(function(_){_[_.Legacy=0]="Legacy",_[_.Strict=1]="Strict",_[_.Attribute=2]="Attribute"})(p||(e.DecodingMode=p={}));class g{constructor(x,R,O){this.decodeTree=x,this.emitCodePoint=R,this.errors=O,this.state=d.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=p.Strict,this.runConsumed=0}startEntity(x){this.decodeMode=x,this.state=d.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(x,R){switch(this.state){case d.EntityStart:return x.charCodeAt(R)===i.NUM?(this.state=d.NumericStart,this.consumed+=1,this.stateNumericStart(x,R+1)):(this.state=d.NamedEntity,this.stateNamedEntity(x,R));case d.NumericStart:return this.stateNumericStart(x,R);case d.NumericDecimal:return this.stateNumericDecimal(x,R);case d.NumericHex:return this.stateNumericHex(x,R);case d.NamedEntity:return this.stateNamedEntity(x,R)}}stateNumericStart(x,R){return R>=x.length?-1:(x.charCodeAt(R)|o)===i.LOWER_X?(this.state=d.NumericHex,this.consumed+=1,this.stateNumericHex(x,R+1)):(this.state=d.NumericDecimal,this.stateNumericDecimal(x,R))}stateNumericHex(x,R){for(;R<x.length;){const O=x.charCodeAt(R);if(u(O)||l(O)){const M=O<=i.NINE?O-i.ZERO:(O|o)-i.LOWER_A+10;this.result=this.result*16+M,this.consumed++,R++}else return this.emitNumericEntity(O,3)}return-1}stateNumericDecimal(x,R){for(;R<x.length;){const O=x.charCodeAt(R);if(u(O))this.result=this.result*10+(O-i.ZERO),this.consumed++,R++;else return this.emitNumericEntity(O,2)}return-1}emitNumericEntity(x,R){var O;if(this.consumed<=R)return(O=this.errors)===null||O===void 0||O.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(x===i.SEMI)this.consumed+=1;else if(this.decodeMode===p.Strict)return 0;return this.emitCodePoint((0,t.replaceCodePoint)(this.result),this.consumed),this.errors&&(x!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(x,R){const{decodeTree:O}=this;let M=O[this.treeIndex],S=(M&a.BinTrieFlags.VALUE_LENGTH)>>14;for(;R<x.length;){if(S===0&&M&a.BinTrieFlags.FLAG13){const V=(M&a.BinTrieFlags.BRANCH_LENGTH)>>7;if(this.runConsumed===0){const z=M&a.BinTrieFlags.JUMP_TABLE;if(x.charCodeAt(R)!==z)return this.result===0?0:this.emitNotTerminatedNamedEntity();R++,this.excess++,this.runConsumed++}for(;this.runConsumed<V;){if(R>=x.length)return-1;const z=this.runConsumed-1,H=O[this.treeIndex+1+(z>>1)],ie=z%2===0?H&255:H>>8&255;if(x.charCodeAt(R)!==ie)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();R++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(V>>1),M=O[this.treeIndex],S=(M&a.BinTrieFlags.VALUE_LENGTH)>>14}if(R>=x.length)break;const F=x.charCodeAt(R);if(F===i.SEMI&&S!==0&&M&a.BinTrieFlags.FLAG13)return this.emitNamedEntityData(this.treeIndex,S,this.consumed+this.excess);if(this.treeIndex=b(O,M,this.treeIndex+Math.max(1,S),F),this.treeIndex<0)return this.result===0||this.decodeMode===p.Attribute&&(S===0||f(F))?0:this.emitNotTerminatedNamedEntity();if(M=O[this.treeIndex],S=(M&a.BinTrieFlags.VALUE_LENGTH)>>14,S!==0){if(F===i.SEMI)return this.emitNamedEntityData(this.treeIndex,S,this.consumed+this.excess);this.decodeMode!==p.Strict&&!(M&a.BinTrieFlags.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}R++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var x;const{result:R,decodeTree:O}=this,M=(O[R]&a.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(R,M,this.consumed),(x=this.errors)===null||x===void 0||x.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(x,R,O){const{decodeTree:M}=this;return this.emitCodePoint(R===1?M[x]&~(a.BinTrieFlags.VALUE_LENGTH|a.BinTrieFlags.FLAG13):M[x+1],O),R===3&&this.emitCodePoint(M[x+2],O),O}end(){var x;switch(this.state){case d.NamedEntity:return this.result!==0&&(this.decodeMode!==p.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case d.NumericDecimal:return this.emitNumericEntity(0,2);case d.NumericHex:return this.emitNumericEntity(0,3);case d.NumericStart:return(x=this.errors)===null||x===void 0||x.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case d.EntityStart:return 0}}}e.EntityDecoder=g;function m(_){let x="";const R=new g(_,O=>x+=(0,t.fromCodePoint)(O));return function(M,S){let F=0,V=0;for(;(V=M.indexOf("&",V))>=0;){x+=M.slice(F,V),R.startEntity(S);const H=R.write(M,V+1);if(H<0){F=V+R.end();break}F=V+H,V=H===0?F+1:F}const z=x+M.slice(F);return x="",z}}function b(_,x,R,O){const M=(x&a.BinTrieFlags.BRANCH_LENGTH)>>7,S=x&a.BinTrieFlags.JUMP_TABLE;if(M===0)return S!==0&&O===S?R:-1;if(S){const H=O-S;return H<0||H>=M?-1:_[R+H]-1}const F=M+1>>1;let V=0,z=M-1;for(;V<=z;){const H=V+z>>>1,ie=H>>1,ye=_[R+ie]>>(H&1)*8&255;if(ye<O)V=H+1;else if(ye>O)z=H-1;else return _[R+F+H]}return-1}const A=m(n.htmlDecodeTree),E=m(r.xmlDecodeTree);function w(_,x=p.Legacy){return A(_,x)}function C(_){return A(_,p.Attribute)}function T(_){return A(_,p.Strict)}function N(_){return E(_,p.Strict)}var D=Gu;Object.defineProperty(e,"decodeCodePoint",{enumerable:!0,get:function(){return D.decodeCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return D.fromCodePoint}}),Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return D.replaceCodePoint}});var B=Ra;Object.defineProperty(e,"htmlDecodeTree",{enumerable:!0,get:function(){return B.htmlDecodeTree}});var v=Pa;Object.defineProperty(e,"xmlDecodeTree",{enumerable:!0,get:function(){return v.xmlDecodeTree}})}(Wu);var Ua={},cs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.XML_BITSET_VALUE=e.getCodePoint=void 0,e.encodeXML=n;const t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt==null?(a,i)=>(a.charCodeAt(i)&64512)===55296?(a.charCodeAt(i)-55296)*1024+a.charCodeAt(i+1)-56320+65536:a.charCodeAt(i):(a,i)=>a.codePointAt(i),e.XML_BITSET_VALUE=1342177476;function n(a){let i,o=0;const{length:u}=a;for(let l=0;l<u;l++){const c=a.charCodeAt(l);if(c<128&&(!(e.XML_BITSET_VALUE>>>c&1)||c>=64||c<32))continue;if(i===void 0?i=a.substring(0,l):o!==l&&(i+=a.substring(o,l)),c<64){i+=t.get(c),o=l+1;continue}const f=(0,e.getCodePoint)(a,l);i+=`&#x${f.toString(16)};`,f!==c&&l++,o=l+1}return i===void 0?a:(o<u&&(i+=a.substr(o)),i)}e.escape=n;function r(a,i){return function(u){let l,c=0,f="";for(;l=a.exec(u);)c!==l.index&&(f+=u.substring(c,l.index)),f+=i.get(l[0].charCodeAt(0)),c=l.index+1;return f+u.substring(c)}}e.escapeUTF8=r(/["&'<>]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(cs);var fs={},$u={};Object.defineProperty($u,"__esModule",{value:!0}),$u.parseEncodeTrie=tI;function tI(e){const t=new Map,n=e.length;let r=0,a=-1;function i(){const u=r;for(;r<n;){const l=e.charAt(r);if((l<"0"||l>"9")&&(l<"a"||l>"z"))break;r++}return r===u?0:Number.parseInt(e.slice(u,r),36)}function o(){if(e[r]!=="&")throw new Error(`Child entry missing value near index ${r}`);const u=r,l=e.indexOf(";",r+1);if(l===-1)throw new Error(`Unterminated entity starting at index ${u}`);return r=l+1,e.slice(u,r)}for(;r<n;){const u=i(),l=a===-1?u:a+u+1;let c;if(e[r]==="&"&&(c=o()),e[r]==="{"){r++;let f=i(),d=f;const p=o();if(e[r]==="{")throw new Error("Unexpected nested '{' beyond depth 2");if(e[r]==="}")t.set(l,{value:c,next:d,nextValue:p}),r++;else{const g=new Map;g.set(d,p);let m=d;for(;r<n&&e[r]!=="}";){f=i(),d=m+f+1;const b=o();if(e[r]==="{")throw new Error("Unexpected nested '{' beyond depth 2");g.set(d,b),m=d}if(e[r]!=="}")throw new Error("Unterminated child block");r++,t.set(l,{value:c,next:g})}}else{if(c===void 0)throw new Error(`Malformed encode trie: missing value at index ${r}`);t.set(l,c)}a=l}return t}Object.defineProperty(fs,"__esModule",{value:!0}),fs.htmlTrie=void 0;const nI=$u;fs.htmlTrie=(0,nI.parseEncodeTrie)("9	
m!"#$%&'()*+,1./a:;<{6he<⃒}={6hx=⃥}>{6he>⃒}?@q[\]^_`5{2yfj}k{|}y ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒē2ĖėĘęĚěĜĝĞğĠġĢ1ĤĥĦħĨĩĪī2ĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌō2ŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžjƒyƵ1rǵ1tȷ3yˆˇg˘˙˚˛˜˝1f̑3jΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ1ΣΤΥΦΧΨΩ7αβγδεζηθικλμνξοπρςστυφχψω7ϑϒ2ϕϖ5Ϝϝiϰϱ3ϵ϶aЁЂЃЄЅІЇЈЉЊЋЌ1ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя1ёђѓєѕіїјљњћќ1ўџ5gi    1    ​‌‍‎‏‐2–—―‖1‘’‚1“”„1†‡•2‥…9‰‱′″‴‵3‹›3‾2⁁1⁃⁄a⁏7⁗7 {6bu  }⁠⁡⁢⁣20€1a⃛⃜11ℂ2℅4ℊℋℌℍℎℏℐℑℒℓ1ℕ№℗℘ℙℚℛℜℝ℞3™1ℤ2℧ℨ℩2ℬℭ1ℯℰℱ1ℳℴℵℶℷℸcⅅⅆⅇⅈa⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞1d←↑→↓↔↕↖↗↘↙↚↛1↝{mw↝̸}↞↟↠↡↢↣↤↥↦↧1↩↪↫↬↭↮1↰↱↲↳1↵↶↷2↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛1⇝6⇤⇥f⇵7⇽⇾⇿∀∁∂{mw∂̸}∃∄∅1∇∈∉1∋∌2∏∐∑−∓∔1∖∗∘1√2∝∞∟∠{6he∠⃒}∡∢∣∤∥∦∧∨∩{1e68∩︀}∪{1e68∪︀}∫∬∭∮∯∰∱∲∳∴∵∶∷∸1∺∻∼{6he∼⃒}∽{mp∽̱}∾{mr∾̳}∿≀≁≂{mw≂̸}≃≄≅≆≇≈≉≊≋{mw≋̸}≌≍{6he≍⃒}≎{mw≎̸}≏{mw≏̸}≐{mw≐̸}≑≒≓≔≕≖≗1≙≚1≜2≟≠≡{6hx≡⃥}≢1≤{6he≤⃒}≥{6he≥⃒}≦{mw≦̸}≧{mw≧̸}≨{1e68≨︀}≩{1e68≩︀}≪{mw≪̸5uh≪⃒}≫{mw≫̸5uh≫⃒}≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿{mw≿̸}⊀⊁⊂{6he⊂⃒}⊃{6he⊃⃒}⊄⊅⊆⊇⊈⊉⊊{1e68⊊︀}⊋{1e68⊋︀}1⊍⊎⊏{mw⊏̸}⊐{mw⊐̸}⊑⊒⊓{1e68⊓︀}⊔{1e68⊔︀}⊕⊖⊗⊘⊙⊚⊛1⊝⊞⊟⊠⊡⊢⊣⊤⊥1⊧⊨⊩⊪⊫⊬⊭⊮⊯⊰1⊲⊳⊴{6he⊴⃒}⊵{6he⊵⃒}⊶⊷⊸⊹⊺⊻1⊽⊾⊿⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋘{mw⋘̸}⋙{mw⋙̸}⋚{1e68⋚︀}⋛{1e68⋛︀}2⋞⋟⋠⋡⋢⋣2⋦⋧⋨⋩⋪⋫⋬⋭⋮⋯⋰⋱⋲⋳⋴⋵{mw⋵̸}⋶⋷1⋹{mw⋹̸}⋺⋻⋼⋽⋾6⌅⌆1⌈⌉⌊⌋⌌⌍⌎⌏⌐1⌒⌓1⌕⌖5⌜⌝⌞⌟2⌢⌣9⌭⌮7⌶6⌽1⌿1o⍼1f⎰⎱2⎴⎵⎶11⏜⏝⏞⏟2⏢4⏧1n␣4kⓈ1j─1│9┌3┐3└3┘3├7┤7┬7┴7┼j═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬j▀3▄3█8░▒▓d□8▪▫1▭▮2▱1△▴▵2▸▹3▽▾▿2◂◃6◊○w◬2◯8◸◹◺◻◼8★☆7☎1d♀1♂t♠2♣1♥♦3♪2♭♮♯4j✓3✗8✠l✶x❘p❲❳2c⟈⟉s⟦⟧⟨⟩⟪⟫⟬⟭7⟵⟶⟷⟸⟹⟺1⟼2⟿76⤂⤃⤄⤅6⤌⤍⤎⤏⤐⤑⤒⤓2⤖2⤙⤚⤛⤜⤝⤞⤟⤠2⤣⤤⤥⤦⤧⤨⤩⤪8⤳{mw⤳̸}1⤵⤶⤷⤸⤹2⤼⤽7⥅2⥈⥉⥊⥋2⥎⥏⥐⥑⥒⥓⥔⥕⥖⥗⥘⥙⥚⥛⥜⥝⥞⥟⥠⥡⥢⥣⥤⥥⥦⥧⥨⥩⥪⥫⥬⥭⥮⥯⥰⥱⥲⥳⥴⥵⥶1⥸⥹1⥻⥼⥽⥾⥿5⦅⦆4⦋⦌⦍⦎⦏⦐⦑⦒⦓⦔⦕⦖3⦚1⦜⦝6⦤⦥⦦⦧⦨⦩⦪⦫⦬⦭⦮⦯⦰⦱⦲⦳⦴⦵⦶⦷1⦹1⦻⦼1⦾⦿⧀⧁⧂⧃⧄⧅3⧉3⧍⧎⧏{mw⧏̸}⧐{mw⧐̸}b⧜⧝⧞4⧣⧤⧥5⧫8⧴1⧶9⨀⨁⨂1⨄1⨆5⨌⨍2⨐⨑⨒⨓⨔⨕⨖⨗a⨢⨣⨤⨥⨦⨧1⨩⨪2⨭⨮⨯⨰⨱1⨳⨴⨵⨶⨷⨸⨹⨺⨻⨼2⨿⩀1⩂⩃⩄⩅⩆⩇⩈⩉⩊⩋⩌⩍2⩐2⩓⩔⩕⩖⩗⩘1⩚⩛⩜⩝1⩟6⩦3⩪2⩭{mw⩭̸}⩮⩯⩰{mw⩰̸}⩱⩲⩳⩴⩵1⩷⩸⩹⩺⩻⩼⩽{mw⩽̸}⩾{mw⩾̸}⩿⪀⪁⪂⪃⪄⪅⪆⪇⪈⪉⪊⪋⪌⪍⪎⪏⪐⪑⪒⪓⪔⪕⪖⪗⪘⪙⪚2⪝⪞⪟⪠⪡{mw⪡̸}⪢{mw⪢̸}1⪤⪥⪦⪧⪨⪩⪪⪫⪬{1e68⪬︀}⪭{1e68⪭︀}⪮⪯{mw⪯̸}⪰{mw⪰̸}2⪳⪴⪵⪶⪷⪸⪹⪺⪻⪼⪽⪾⪿⫀⫁⫂⫃⫄⫅{mw⫅̸}⫆{mw⫆̸}⫇⫈2⫋{1e68⫋︀}⫌{1e68⫌︀}2⫏⫐⫑⫒⫓⫔⫕⫖⫗⫘⫙⫚⫛8⫤1⫦⫧⫨⫩1⫫⫬⫭⫮⫯⫰⫱⫲⫳9⫽{6hx⫽⃥}y7r{17ks𝒜1𝒞𝒟2𝒢2𝒥𝒦2𝒩𝒪𝒫𝒬1𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵𝒶𝒷𝒸𝒹1𝒻1𝒽𝒾𝒿𝓀𝓁𝓂𝓃1𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏1g𝔄𝔅1𝔇𝔈𝔉𝔊2𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔1𝔖𝔗𝔘𝔙𝔚𝔛𝔜1𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷𝔸𝔹1𝔻𝔼𝔽𝔾1𝕀𝕁𝕂𝕃𝕄1𝕆3𝕊𝕋𝕌𝕍𝕎𝕏𝕐1𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫}6vefffiflffiffl"),Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.encodeHTML=sI,Ua.encodeNonAsciiHTML=oI;const R1=cs,rI=fs,aI=new Uint32Array([5632,4227923966,4160749569,939524097]),iI=new Uint32Array([0,R1.XML_BITSET_VALUE,0,0]);function sI(e){return P1(aI,e)}function oI(e){return P1(iI,e)}function P1(e,t){let n,r=0;const{length:a}=t;for(let i=0;i<a;i++){const o=t.charCodeAt(i);if(o<128&&!(e[o>>>5]>>>o&1))continue;n===void 0?n=t.substring(0,i):r!==i&&(n+=t.substring(r,i));let u=rI.htmlTrie.get(o);if(typeof u=="object"){if(i+1<a){const l=t.charCodeAt(i+1),c=typeof u.next=="number"?u.next===l?u.nextValue:void 0:u.next.get(l);if(c!==void 0){n+=c,i++,r=i+1;continue}}u=u.value}if(u===void 0){const l=(0,R1.getCodePoint)(t,i);n+=`&#x${l.toString(16)};`,l!==o&&i++,r=i+1}else n+=u,r=i+1}return n===void 0?t:(r<a&&(n+=t.substr(r)),n)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escapeText=e.escapeAttribute=e.encodeXML=e.encodeNonAsciiHTML=e.encodeHTML5=e.encodeHTML4=e.encodeHTML=e.EntityDecoder=e.decodeXMLStrict=e.decodeXML=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML5=e.decodeHTML4=e.decodeHTML=e.DecodingMode=e.EncodingMode=e.EntityLevel=void 0,e.decode=o,e.decodeStrict=u,e.encode=l;const t=Wu,n=Ua,r=cs;var a;(function(p){p[p.XML=0]="XML",p[p.HTML=1]="HTML"})(a||(e.EntityLevel=a={}));var i;(function(p){p[p.UTF8=0]="UTF8",p[p.ASCII=1]="ASCII",p[p.Extensive=2]="Extensive",p[p.Attribute=3]="Attribute",p[p.Text=4]="Text"})(i||(e.EncodingMode=i={}));function o(p,g=a.XML){if((typeof g=="number"?g:g.level)===a.HTML){const b=typeof g=="object"?g.mode:void 0;return(0,t.decodeHTML)(p,b)}return(0,t.decodeXML)(p)}function u(p,g=a.XML){var m;const b=typeof g=="number"?{level:g}:g;return(m=b.mode)!==null&&m!==void 0||(b.mode=t.DecodingMode.Strict),o(p,b)}function l(p,g=a.XML){const{mode:m=i.Extensive,level:b=a.XML}=typeof g=="number"?{level:g}:g;switch(m){case i.UTF8:return(0,r.escapeUTF8)(p);case i.Attribute:return(0,r.escapeAttribute)(p);case i.Text:return(0,r.escapeText)(p);case i.ASCII:return b===a.HTML?(0,n.encodeNonAsciiHTML)(p):(0,r.encodeXML)(p);case i.Extensive:default:return b===a.HTML?(0,n.encodeHTML)(p):(0,r.encodeXML)(p)}}var c=Wu;Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return c.DecodingMode}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return c.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return c.decodeXML}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return c.decodeXML}}),Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return c.EntityDecoder}});var f=Ua;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}});var d=cs;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return d.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return d.escape}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return d.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return d.escapeText}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return d.escapeUTF8}})})(L1);var qu={};qu.romanize=function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",a=3;a--;)r=(n[+t.pop()+a*10]||"")+r;return Array(+t.join("")+1).join("M")+r},qu.alphanumeric=function(e){for(var t="",n;e>0;)n=(e-1)%26,t=String.fromCharCode(65+n)+t,e=(e-n)/26|0;return t||void 0};const uI=e=>{let t="";do t=(Math.random()+1).toString(36).substring(2);while(e.indexOf(t)!==-1);return t},lI=(e,t)=>{let n=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,r=[],a,i=uI(t);for(;(a=n.exec(t))!==null;){let u=`${r.length}`;if(a[1].toLowerCase()=="var"){const c=U1(e,a[2]);if(c){t=t.replace(a[0],c);continue}if(a[3]){t=t.replace(a[0],a[3]);continue}}let l=`${i}${u.padStart(5,"-")}`;t=t.replace(a[0],l),r.push({placeholder:l,replace:a[0]})}for(var o=r.length-1;o>=0;o--){const u=r[o];t=t.replace(u.placeholder,u.replace)}return t},U1=(e,t)=>{for(;e;){if(e.styleProps&&t in e.styleProps)return e.styleProps[t].value;var e=e.pseudoElementParent||e.parent}};var cI={replaceVariables:lI,findVariableValue:U1},{decode:fI}=L1,Nn=Ku(),ds=qu,F1=cI,dI=function(t){t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=c,t.inlineDocument=n;function n(g,m,b){b=b||{};var A=Nn.parseCSS(m),E=[],w="style",C={},T=b.removeInlinedSelectors?new Set:null;b.styleAttributeName&&(w=b.styleAttributeName);function N(M){var S=M[0],F=M[1],V=new Nn.Selector(S),z=V.parsed();if(z){for(var H=o(z),ie=0;ie<z.length;++ie){var Me=z[ie];if(Me.pseudos)for(var ye=0;ye<Me.pseudos.length;++ye){var ve=Me.pseudos[ye];if(t.ignoredPseudos.indexOf(ve.name)>=0)return}}if(H){var q=z[z.length-1],J=q.pseudos;q.pseudos=l(q.pseudos),S=z.toString(),q.pseudos=J}var Ie;try{Ie=g(S)}catch{return}var Ve=!1;Ie.each(function(){var oe=this;if(oe.name&&t.nonVisualElements.indexOf(oe.name.toUpperCase())>=0)return;if(Ve=!0,oe.counterProps||(oe.counterProps=oe.parent&&oe.parent.counterProps?Object.create(oe.parent.counterProps):{}),H){var W="pseudo"+H,se=oe[W];se||(se=oe[W]=g("<span />").get(0),se.pseudoElementType=H,se.pseudoElementParent=oe,se.counterProps=oe.counterProps,oe[W]=se),oe=se}if(!oe.styleProps){if(oe.styleProps={},g(oe).attr(w)){var Se=g(oe).attr(w),le=b.decodeStyleAttributes?fI(Se):Se,be="* { "+le+" } ";tt(Nn.parseCSS(be)[0][1],new Nn.Selector("<style>",!0))}E.push(oe)}function De(re,Ge){for(var Fe=Ge.split(/\s+/),nt=0;nt<Fe.length;nt++){var Pe=Fe[nt],rt=parseInt(Fe[nt+1],10);isNaN(rt)?re.counterProps[Pe]=C[Pe]=0:re.counterProps[Pe]=C[Fe[nt++]]=rt}}function he(re,Ge){for(var Fe=Ge.split(/\s+/),nt=0;nt<Fe.length;nt++){var Pe=Fe[nt];if(re.counterProps[Pe]!==void 0){var rt=parseInt(Fe[nt+1],10);isNaN(rt)?re.counterProps[Pe]=C[Pe]+=1:re.counterProps[Pe]=C[Fe[nt++]]+=rt}}}function tt(re,Ge){for(var Fe=0,nt=re.length;Fe<nt;Fe++)if(re[Fe].type=="property"){var Pe=re[Fe].name,rt=re[Fe].value;Pe==="counter-reset"&&De(oe,rt),Pe==="counter-increment"&&he(oe,rt);var hr=rt.match(/!important$/)!==null;hr&&!b.preserveImportant&&(rt=r(rt));var Yr=[re[Fe].position.start.line,re[Fe].position.start.col],wt=new Nn.Property(Pe,rt,Ge,hr?2:0,Yr),ht=oe.styleProps[Pe];if(t.excludedProperties.indexOf(Pe)<0)if(b.inlineDuplicateProperties)if(ht)if(ht.selector===Ge)wt.nextProp=ht,oe.styleProps[Pe]=wt;else{for(var In=ht;In.nextProp;)In=In.nextProp;In.nextProp=wt}else oe.styleProps[Pe]=wt;else(ht&&ht.compare(wt)===wt||!ht)&&(ht&&ht.selector!==Ge?delete oe.styleProps[Pe]:ht&&(wt.nextProp=ht),oe.styleProps[Pe]=wt)}}tt(F,V)}),Ve&&T&&T.add(M[0])}}function D(M){Object.keys(M.styleProps).length;var S=[];Object.keys(M.styleProps).forEach(function(V){for(var z=M.styleProps[V];typeof z<"u";)S.push(z),z=z.nextProp}),S.sort(function(V,z){return V.compareFunc(z)});var F=S.filter(function(V){return b.resolveCSSVariables&&V.prop.indexOf("--")===0?!1:V.prop!=="content"}).map(function(V){return b.resolveCSSVariables&&(V.value=F1.replaceVariables(M,V.value)),V.prop+": "+V.value.replace(/["]/g,"'")+";"}).join(" ");F&&g(M).attr(w,F)}function B(M){if(M.pseudoElementType&&M.styleProps.content){var S=i(M);S.img?(M.name="img",g(M).attr("src",S.img)):g(M).text(S);var F=M.pseudoElementParent;M.pseudoElementType==="before"?g(F).prepend(M):g(F).append(M)}}function v(M,S){if(M.name){var F=M.name.toUpperCase();if(t[S+"Elements"].indexOf(F)>-1){for(var V in M.styleProps)if(M.styleProps[V].prop===S){var z=M.styleProps[V].value;if(b.preserveImportant&&(z=r(z)),z.match(/(px|auto)/)){var H=z.replace("px","");g(M).attr(S,H);return}if(t.tableElements.indexOf(F)>-1&&z.match(/\%/)){g(M).attr(S,z);return}}}}}function _(M){return M.indexOf("url(")!==0?M:M.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}function x(M){if(M.name){var S=M.name.toUpperCase(),F=Object.keys(t.styleToAttribute);if(t.tableElements.indexOf(S)>-1){for(var V in M.styleProps)if(F.indexOf(M.styleProps[V].prop)>-1){var z=t.styleToAttribute[M.styleProps[V].prop],H=M.styleProps[V].value;if(b.preserveImportant&&(H=r(H)),z==="background"&&(H=_(H)),/(linear|radial)-gradient\(/i.test(H))continue;g(M).attr(z,H)}}}}if(A.forEach(N),E.forEach(D),b.inlinePseudoElements&&E.forEach(B),b.applyWidthAttributes&&E.forEach(function(M){v(M,"width")}),b.applyHeightAttributes&&E.forEach(function(M){v(M,"height")}),b.applyAttributesTableElements&&E.forEach(x),b.insertPreservedExtraCss&&b.extraCss){var R=Nn.getPreservedText(b.extraCss,{mediaQueries:b.preserveMediaQueries,fontFaces:b.preserveFontFaces,keyFrames:b.preserveKeyFrames,preservedSelectors:b.preservedSelectors});if(R){var O=null;b.insertPreservedExtraCss!==!0?O=g(b.insertPreservedExtraCss):(O=g("head"),O.length||(O=g("body")),O.length||(O=g.root())),O.first().append("<style>"+R+"</style>")}}return T}function r(g){return g.replace(/\s*!important$/,"")}function a(g,m){switch(m){case"lower-roman":return ds.romanize(g).toLowerCase();case"upper-roman":return ds.romanize(g);case"lower-latin":case"lower-alpha":return ds.alphanumeric(g).toLowerCase();case"upper-latin":case"upper-alpha":return ds.alphanumeric(g);default:return g.toString()}}function i(g){var m=g.styleProps.content.value;if(m==="none"||m==="normal")return"";var b=m.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(b){var A=b[1].replace(/^['"]|['"]$/g,"");return{img:A}}for(var E=[],w=m.split(/['"]/),C=0;C<w.length;C++)if(w[C]!==""){var T=w[C].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(T){var N=F1.findVariableValue(g,T[1])||T[2];E.push(N.replace(/^['"]|['"]$/g,""));continue}var D=w[C].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(D&&D[1]in g.counterProps){var B=g.counterProps[D[1]];E.push(a(B,D[3]));continue}var v=w[C].match(/attr\s*\(\s*(.*?)\s*\)/i);if(v){var _=v[1];E.push(g.pseudoElementParent?g.pseudoElementParent.attribs[_]:g.attribs[_]);continue}E.push(w[C])}return m=E.join(""),m=m.replace(/\\/g,""),m}function o(g){if(g.length!==0){var m=g[g.length-1].pseudos;if(m){for(var b=0;b<m.length;b++)if(u(m[b]))return m[b].name}}}function u(g){return g.name==="before"||g.name==="after"}function l(g){return g.filter(function(m){return!u(m)})}function c(g,m){m=Nn.getDefaultOptions(m);var b=new Set;m.removeInlinedSelectors&&!m.removeStyleTags&&g("style[data-embed]").each(function(){b.add(this)});var A=p(g,m);A+=`
|
|
379
|
+
`+m.extraCss;var E=n(g,A,m);return E&&!m.removeStyleTags&&f(g,E,m,b),g}function f(g,m,b,A){var E=g("style");E.each(function(){var w=this,C=w.childNodes;if(C.length===1&&!(A&&A.has(w))){var T=C[0].nodeValue,N=Nn.removeInlinedSelectorsFromCSS(T,m,b,t.ignoredPseudos);N&&N.trim()?w.childNodes[0].nodeValue=N:g(w).remove()}})}function d(g,m){var b=[],A=g("style"),E,w,C;return A.each(function(){if(C=this,E=C.childNodes,E.length!==1){m.removeStyleTags&&g(C).remove();return}if(w=E[0].data,m.applyStyleTags&&g(C).attr("data-embed")===void 0&&b.push(w),m.removeStyleTags&&g(C).attr("data-embed")===void 0){var T=C.childNodes[0].nodeValue,N=Nn.getPreservedText(T,{mediaQueries:m.preserveMediaQueries,fontFaces:m.preserveFontFaces,keyFrames:m.preserveKeyFrames,pseudos:m.preservePseudos,preservedSelectors:m.preservedSelectors},t.ignoredPseudos);N?C.childNodes[0].nodeValue=N:g(C).remove()}g(C).removeAttr("data-embed")}),b}function p(g,m){var b=d(g,m),A=b.join(`
|
|
380
|
+
`);return A}return t},Ju=JN,hI=dI,Fa=hI(function(e,t){return Ju(e,{xmlMode:t&&t.xmlMode},pI,[t])}),pI=function(e,t){return Fa.juiceDocument(e,t)};Fa.inlineContent=function(e,t,n){return Ju(e,{xmlMode:n&&n.xmlMode},Fa.inlineDocument,[t,n])},Fa.codeBlocks=Ju.codeBlocks;var gI=Fa;const Rr=Cd(gI),mI={key:0,class:"tp-list"},bI={key:0,class:"tp-empty"},AI=["onClick"],EI={class:"tp-item-info"},yI={class:"tp-item-title"},TI={class:"tp-item-actions"},kI=["onClick"],NI=["onClick"],II={key:1,class:"tp-edit"},wI={class:"tp-edit-actions"},CI=["disabled"],_I=s.defineComponent({__name:"TemplateSubPanel",props:{templates:{},templateConfig:{},isDark:{type:Boolean}},emits:["select","refresh"],setup(e,{emit:t}){const n=e,r=t,a=s.ref(null),i=s.ref(""),o=s.ref(null),u=d=>{a.value=d,i.value=d.title,s.nextTick(()=>{var p,g;(p=o.value)==null||p.focus(),(g=o.value)==null||g.select()})},l=()=>{a.value=null,i.value=""},c=async()=>{var d;if(!(!a.value||!i.value.trim()||!((d=n.templateConfig)!=null&&d.updateTemplate)))try{await n.templateConfig.updateTemplate(a.value.id,i.value.trim(),a.value.contentJson),l(),r("refresh")}catch(p){console.error("[模板] 更新失败:",p)}},f=async d=>{var p;if((p=n.templateConfig)!=null&&p.deleteTemplate)try{await n.templateConfig.deleteTemplate(d.id),r("refresh")}catch(g){console.error("[模板] 删除失败:",g)}};return(d,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["template-panel",{"tp-dark":e.isDark}])},[p[1]||(p[1]=s.createElementVNode("div",{class:"tp-header"},[s.createElementVNode("span",{class:"tp-title"},"模板")],-1)),a.value?(s.openBlock(),s.createElementBlock("div",II,[s.withDirectives(s.createElementVNode("input",{ref_key:"editInputRef",ref:o,"onUpdate:modelValue":p[0]||(p[0]=g=>i.value=g),class:"tp-edit-input",placeholder:"模板名称",onKeydown:[s.withKeys(c,["enter"]),s.withKeys(l,["esc"])]},null,544),[[s.vModelText,i.value]]),s.createElementVNode("div",wI,[s.createElementVNode("button",{class:"tp-edit-btn tp-edit-cancel",onClick:l},"取消"),s.createElementVNode("button",{class:"tp-edit-btn tp-edit-confirm",onClick:c,disabled:!i.value.trim()},"保存",8,CI)])])):(s.openBlock(),s.createElementBlock("div",mI,[e.templates.length===0?(s.openBlock(),s.createElementBlock("div",bI," 暂无模板 ")):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.templates,g=>(s.openBlock(),s.createElementBlock("div",{key:g.id,class:"tp-item",onClick:m=>d.$emit("select",g)},[s.createElementVNode("div",EI,[s.createVNode(s.unref(xo),{size:14,class:"tp-item-icon"}),s.createElementVNode("span",yI,s.toDisplayString(g.title),1)]),s.createElementVNode("div",TI,[s.createElementVNode("button",{class:"tp-action-btn",onClick:s.withModifiers(m=>u(g),["stop"]),title:"编辑"},[s.createVNode(s.unref(Ni),{size:13})],8,kI),s.createElementVNode("button",{class:"tp-action-btn tp-action-delete",onClick:s.withModifiers(m=>f(g),["stop"]),title:"删除"},[s.createVNode(s.unref(Jn),{size:13})],8,NI)])],8,AI))),128))]))],2))}}),xI={class:"toolbar-section"},MI={class:"list-section"},SI={class:"list-item-icon green"},DI={class:"list-item-icon cyan"},vI={class:"list-item-icon blue"},OI={class:"list-item-icon pink"},LI={class:"list-item-icon gray"},BI={class:"list-item-icon orange"},RI={class:"list-item-icon pink"},PI={class:"list-item-icon purple"},UI={class:"list-item-icon amber"},H1=s.defineComponent({__name:"BlockMenuPanel",props:{currentBlockType:{}},emits:["select"],setup(e,{expose:t,emit:n}){const r=n,a=s.inject("editorTheme",s.ref(void 0)),i=s.computed(()=>a.value==="dark"),o=s.inject("editorTemplateConfig",s.ref(void 0)),u=s.computed(()=>o.value),l=s.ref([]),c=async()=>{if(u.value)try{l.value=await u.value.getTemplates()}catch(M){console.error("[模板] 加载失败:",M)}};s.onMounted(()=>{c()});const f=s.ref(!1),d=s.ref(null),p=s.ref(null),g=s.ref({top:"0px",left:"0px"});let m=null;const b=()=>{if(!p.value||!d.value)return;const M=p.value.getBoundingClientRect(),S=d.value.getBoundingClientRect();g.value={top:`${M.top}px`,left:`${S.right+6}px`}},A=()=>{m&&clearTimeout(m),c(),b(),f.value=!0},E=()=>{m=setTimeout(()=>{f.value=!1},200)},w=()=>{m&&clearTimeout(m)},C=M=>{r("select",`template:${M.id}`),f.value=!1},T=s.ref(!1),N=s.ref(""),D=s.ref({top:"0px",left:"0px"});let B=null;const v=(M,S)=>{B&&clearTimeout(B);const V=M.currentTarget.getBoundingClientRect();B=setTimeout(()=>{N.value=S,D.value={left:`${V.left+V.width/2}px`,top:`${V.bottom+8}px`},T.value=!0},200)},_=()=>{B&&clearTimeout(B),T.value=!1},x=s.ref(0);return t({onKeyDown:({event:M})=>!1,resetSelection:()=>{x.value=0},loadTemplates:c}),(M,S)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"panelRef",ref:d,class:s.normalizeClass(["block-menu-panel",{"bmp-dark":i.value}])},[s.createElementVNode("div",xI,[s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="paragraph"}]),onClick:S[0]||(S[0]=F=>M.$emit("select","paragraph")),onMouseenter:S[1]||(S[1]=F=>v(F,"正文")),onMouseleave:_},[s.createVNode(s.unref(Zn),{size:18})],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="heading1"}]),onClick:S[2]||(S[2]=F=>M.$emit("select","heading1")),onMouseenter:S[3]||(S[3]=F=>v(F,"标题 1")),onMouseleave:_},[...S[26]||(S[26]=[s.createElementVNode("span",{class:"heading-text"},"H1",-1)])],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="heading2"}]),onClick:S[4]||(S[4]=F=>M.$emit("select","heading2")),onMouseenter:S[5]||(S[5]=F=>v(F,"标题 2")),onMouseleave:_},[...S[27]||(S[27]=[s.createElementVNode("span",{class:"heading-text"},"H2",-1)])],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="heading3"}]),onClick:S[6]||(S[6]=F=>M.$emit("select","heading3")),onMouseenter:S[7]||(S[7]=F=>v(F,"标题 3")),onMouseleave:_},[...S[28]||(S[28]=[s.createElementVNode("span",{class:"heading-text"},"H3",-1)])],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="bulletList"}]),onClick:S[8]||(S[8]=F=>M.$emit("select","bulletList")),onMouseenter:S[9]||(S[9]=F=>v(F,"无序列表")),onMouseleave:_},[s.createVNode(s.unref(vo),{size:18})],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="orderedList"}]),onClick:S[10]||(S[10]=F=>M.$emit("select","orderedList")),onMouseenter:S[11]||(S[11]=F=>v(F,"有序列表")),onMouseleave:_},[s.createVNode(s.unref(Do),{size:18})],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="taskList"}]),onClick:S[12]||(S[12]=F=>M.$emit("select","taskList")),onMouseenter:S[13]||(S[13]=F=>v(F,"任务列表")),onMouseleave:_},[s.createVNode(s.unref(jf),{size:18})],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="blockquote"}]),onClick:S[14]||(S[14]=F=>M.$emit("select","blockquote")),onMouseenter:S[15]||(S[15]=F=>v(F,"引用")),onMouseleave:_},[s.createVNode(s.unref(Qf),{size:18})],34),s.createElementVNode("div",{class:s.normalizeClass(["toolbar-item",{"is-active":e.currentBlockType==="codeBlock"}]),onClick:S[16]||(S[16]=F=>M.$emit("select","codeBlock")),onMouseenter:S[17]||(S[17]=F=>v(F,"代码块")),onMouseleave:_},[s.createVNode(s.unref(ub),{size:18})],34)]),S[38]||(S[38]=s.createElementVNode("div",{class:"menu-divider"},null,-1)),S[39]||(S[39]=s.createElementVNode("div",{class:"section-title"},"插入",-1)),s.createElementVNode("div",MI,[s.createElementVNode("div",{class:s.normalizeClass(["list-item",{"is-active":e.currentBlockType==="table"}]),onClick:S[18]||(S[18]=F=>M.$emit("select","table"))},[s.createElementVNode("div",SI,[s.createVNode(s.unref(Rb),{size:18})]),S[29]||(S[29]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"表格"),s.createElementVNode("span",{class:"list-item-desc"},"插入 3x3 表格")],-1))],2),s.createElementVNode("div",{class:s.normalizeClass(["list-item",{"is-active":e.currentBlockType==="colorBlock"}]),onClick:S[19]||(S[19]=F=>M.$emit("select","colorBlock"))},[s.createElementVNode("div",DI,[s.createVNode(s.unref(Yf),{size:18})]),S[30]||(S[30]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"彩色块"),s.createElementVNode("span",{class:"list-item-desc"},"添加带颜色的提示块")],-1))],2),s.createElementVNode("div",{class:s.normalizeClass(["list-item",{"is-active":e.currentBlockType==="linkCard"}]),onClick:S[20]||(S[20]=F=>M.$emit("select","linkCard"))},[s.createElementVNode("div",vI,[s.createVNode(s.unref(Ib),{size:18})]),S[31]||(S[31]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"链接卡片"),s.createElementVNode("span",{class:"list-item-desc"},"嵌入链接预览卡片")],-1))],2),s.createElementVNode("div",{class:"list-item",onClick:S[21]||(S[21]=F=>M.$emit("select","videoEmbed"))},[s.createElementVNode("div",OI,[s.createVNode(s.unref(wi),{size:18})]),S[32]||(S[32]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"视频"),s.createElementVNode("span",{class:"list-item-desc"},"嵌入 B站 / YouTube 视频")],-1))]),s.createElementVNode("div",{class:s.normalizeClass(["list-item",{"is-active":e.currentBlockType==="horizontalRule"}]),onClick:S[22]||(S[22]=F=>M.$emit("select","horizontalRule"))},[s.createElementVNode("div",LI,[s.createVNode(s.unref(Cb),{size:18})]),S[33]||(S[33]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"分割线"),s.createElementVNode("span",{class:"list-item-desc"},"插入水平分割线")],-1))],2),s.createElementVNode("div",{class:"list-item",onClick:S[23]||(S[23]=F=>M.$emit("select","imageUpload"))},[s.createElementVNode("div",BI,[s.createVNode(s.unref(Hf),{size:18})]),S[34]||(S[34]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"图片"),s.createElementVNode("span",{class:"list-item-desc"},"上传本地图片")],-1))]),s.createElementVNode("div",{class:"list-item",onClick:S[24]||(S[24]=F=>M.$emit("select","videoUpload"))},[s.createElementVNode("div",RI,[s.createVNode(s.unref(Ub),{size:18})]),S[35]||(S[35]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"视频上传"),s.createElementVNode("span",{class:"list-item-desc"},"上传本地视频")],-1))]),s.createElementVNode("div",{class:"list-item",onClick:S[25]||(S[25]=F=>M.$emit("select","aiImage"))},[s.createElementVNode("div",PI,[s.createVNode(s.unref(ki),{size:18})]),S[36]||(S[36]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"AI 图片"),s.createElementVNode("span",{class:"list-item-desc"},"输入描述,AI 生成图片")],-1))])]),u.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"templateTriggerRef",ref:p,class:"list-item template-trigger",onMouseenter:A,onMouseleave:E},[s.createElementVNode("div",UI,[s.createVNode(s.unref(xo),{size:18})]),S[37]||(S[37]=s.createElementVNode("div",{class:"list-item-content"},[s.createElementVNode("span",{class:"list-item-title"},"模板"),s.createElementVNode("span",{class:"list-item-desc"},"插入已保存的模板")],-1)),s.createVNode(s.unref(Pf),{size:14,class:"list-item-arrow"})],544)):s.createCommentVNode("",!0),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[f.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"template-sub-wrapper",style:s.normalizeStyle(g.value),onMouseenter:w,onMouseleave:E},[s.createVNode(_I,{templates:l.value,"template-config":u.value,"is-dark":i.value,onSelect:C,onRefresh:c},null,8,["templates","template-config","is-dark"])],36)):s.createCommentVNode("",!0)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[T.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"block-menu-tooltip",style:s.normalizeStyle(D.value)},s.toDisplayString(N.value),5)):s.createCommentVNode("",!0)]))],2))}});function z1(){const e=s.inject("editorTemplateConfig",s.ref(void 0)),t=s.computed(()=>e.value),n=async i=>t.value?(await t.value.getTemplates()).find(u=>u.id===i):void 0;return{templateConfig:t,getTemplateById:n,insertTemplateAtNode:async(i,o,u,l)=>{const c=await n(o);if(!c||!i)return;const f=Array.isArray(c.contentJson)?c.contentJson:[c.contentJson];if(l){const d=i.state.doc.nodeAt(u);d&&i.chain().focus().deleteRange({from:u,to:u+d.nodeSize}).insertContent(f).run()}else{const d=i.state.doc.nodeAt(u);if(d){const p=u+d.nodeSize;i.chain().focus().insertContentAt(p,f).run()}}},insertTemplateAtRange:async(i,o,u)=>{const l=await n(o);if(!l||!i)return;const c=Array.isArray(l.contentJson)?l.contentJson:[l.contentJson];i.chain().focus().deleteRange(u).insertContent(c).run()}}}const FI={key:0,class:"plus-menu"},HI={class:"menu-wrapper"},zI={key:0,class:"ai-image-input-panel"},jI={class:"ai-image-header"},VI={class:"ai-image-actions"},YI=["disabled"],j1=Qe(s.defineComponent({__name:"PlusMenu",props:{editor:{},show:{type:Boolean},currentNodePos:{}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,a=s.ref(null),{insertTemplateAtNode:i}=z1(),o=s.ref(!1),u=s.ref(""),l=s.ref(null),c=()=>{o.value=!1,u.value=""};s.watch(()=>n.show,v=>{v?s.nextTick(()=>{var _,x;(x=(_=a.value)==null?void 0:_.loadTemplates)==null||x.call(_)}):c()});const f=()=>{r("close")},d=()=>{c()},p=()=>{if(!n.editor||n.currentNodePos===void 0||!u.value.trim())return;const v=u.value.trim(),_=`ai-img-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;if(b.value){const x=n.editor.state.doc.nodeAt(n.currentNodePos);x&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+x.nodeSize}).insertContent({type:"aiImageLoader",attrs:{prompt:v,loaderId:_,status:"generating"}}).run()}else{const x=n.editor.state.doc.nodeAt(n.currentNodePos);if(x){const R=n.currentNodePos+x.nodeSize;n.editor.chain().focus().insertContentAt(R,{type:"aiImageLoader",attrs:{prompt:v,loaderId:_,status:"generating"}}).run()}}f()},g=v=>{v.key==="Enter"&&!v.shiftKey?(v.preventDefault(),p()):v.key==="Escape"&&(v.preventDefault(),d())},m=s.computed(()=>{if(!n.editor||n.currentNodePos===void 0)return;const v=n.editor.state.doc.nodeAt(n.currentNodePos);if(!v)return;const _=v.type.name;if(_==="heading")return`heading${v.attrs.level}`;if(_==="codeBlock")return"codeBlock";const x=n.editor.state.doc.resolve(n.currentNodePos);for(let R=x.depth;R>0;R--){const M=x.node(R).type.name;if(M==="bulletList")return"bulletList";if(M==="orderedList")return"orderedList";if(M==="taskList")return"taskList";if(M==="blockquote")return"blockquote";if(M==="codeBlock")return"codeBlock";if(M==="colorBlock")return"colorBlock"}if(_==="paragraph")return"paragraph"}),b=s.computed(()=>{if(!n.editor||n.currentNodePos===void 0)return!1;const v=n.editor.state.doc.nodeAt(n.currentNodePos);return v&&v.type.name==="paragraph"&&(v.content.size===0||v.textContent.length===0)}),A=async v=>{if(!n.editor||n.currentNodePos===void 0)return;if(v.startsWith("template:")){const V=v.replace("template:","");await i(n.editor,V,n.currentNodePos,b.value),f();return}if(v==="aiImage"){if(b.value){const V=n.editor.state.doc.nodeAt(n.currentNodePos);V&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+V.nodeSize}).insertContent({type:"aiImagePromptNode",attrs:{prompt:""}}).run()}else{const V=n.editor.state.doc.nodeAt(n.currentNodePos);if(V){const z=n.currentNodePos+V.nodeSize;n.editor.chain().focus().insertContentAt(z,{type:"aiImagePromptNode",attrs:{prompt:""}}).run()}}f();return}n.editor.chain().focus().setTextSelection(n.currentNodePos+1).run();const{convertToParagraph:_,convertToHeading:x,convertToBulletList:R,convertToOrderedList:O,convertToTaskList:M,convertToBlockquote:S,convertToCodeBlock:F}=Gf(n.editor);switch(v){case"paragraph":_(),f();break;case"heading1":x(1),f();break;case"heading2":x(2),f();break;case"heading3":x(3),f();break;case"bulletList":R(),f();break;case"orderedList":O(),f();break;case"taskList":M(),f();break;case"blockquote":S(),f();break;case"colorBlock":w();break;case"linkCard":C();break;case"codeBlock":F(),f();break;case"horizontalRule":B();break;case"table":E();break;case"videoEmbed":T();break;case"imageUpload":N();break;case"videoUpload":D();break}},E=()=>{if(!(!n.editor||n.currentNodePos===void 0)){if(b.value){const v=n.editor.state.doc.nodeAt(n.currentNodePos);v&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+v.nodeSize}).insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}else{const v=n.editor.state.doc.nodeAt(n.currentNodePos);if(v){const _=n.currentNodePos+v.nodeSize;n.editor.chain().focus().setTextSelection(_).insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}}f()}},w=()=>{if(!(!n.editor||n.currentNodePos===void 0)){if(b.value){const v=n.editor.state.doc.nodeAt(n.currentNodePos);v&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+v.nodeSize}).insertContent({type:"colorBlock",attrs:{color:"cyan"},content:[{type:"paragraph"}]}).run()}else{const v=n.editor.state.doc.nodeAt(n.currentNodePos);if(v){const _=n.currentNodePos+v.nodeSize;n.editor.chain().focus().insertContentAt(_,{type:"colorBlock",attrs:{color:"cyan"},content:[{type:"paragraph"}]}).run()}}f()}},C=()=>{if(!(!n.editor||n.currentNodePos===void 0)){if(b.value){const v=n.editor.state.doc.nodeAt(n.currentNodePos);v&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+v.nodeSize}).insertContent({type:"linkCardBlock",attrs:{url:"",title:""}}).run()}else{const v=n.editor.state.doc.nodeAt(n.currentNodePos);if(v){const _=n.currentNodePos+v.nodeSize;n.editor.chain().focus().insertContentAt(_,{type:"linkCardBlock",attrs:{url:"",title:""}}).run()}}f()}},T=()=>{if(!(!n.editor||n.currentNodePos===void 0)){if(b.value){const v=n.editor.state.doc.nodeAt(n.currentNodePos);v&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+v.nodeSize}).insertContent({type:"videoEmbed",attrs:{url:"",platform:"unknown",videoId:""}}).run()}else{const v=n.editor.state.doc.nodeAt(n.currentNodePos);if(v){const _=n.currentNodePos+v.nodeSize;n.editor.chain().focus().insertContentAt(_,{type:"videoEmbed",attrs:{url:"",platform:"unknown",videoId:""}}).run()}}f()}},N=()=>{f(),window.dispatchEvent(new CustomEvent("editor-trigger-image-upload"))},D=()=>{f(),window.dispatchEvent(new CustomEvent("editor-trigger-video-upload"))},B=()=>{if(!(!n.editor||n.currentNodePos===void 0)){if(b.value){const v=n.editor.state.doc.nodeAt(n.currentNodePos);v&&n.editor.chain().focus().deleteRange({from:n.currentNodePos,to:n.currentNodePos+v.nodeSize}).setHorizontalRule().run()}else n.editor.chain().focus().setHorizontalRule().run();f()}};return(v,_)=>e.show?(s.openBlock(),s.createElementBlock("div",FI,[s.createElementVNode("div",{class:"menu-overlay",onClick:f}),s.createElementVNode("div",HI,[o.value?(s.openBlock(),s.createElementBlock("div",zI,[s.createElementVNode("div",jI,[s.createVNode(s.unref(ki),{size:18,class:"ai-image-icon"}),_[1]||(_[1]=s.createElementVNode("span",null,"AI 图片",-1))]),s.withDirectives(s.createElementVNode("textarea",{ref_key:"aiImageInputRef",ref:l,"onUpdate:modelValue":_[0]||(_[0]=x=>u.value=x),class:"ai-image-textarea",placeholder:"描述你想生成的图片...",rows:"3",onKeydown:g},null,544),[[s.vModelText,u.value]]),s.createElementVNode("div",VI,[s.createElementVNode("button",{class:"ai-btn ai-btn-cancel",onClick:d}," 取消 "),s.createElementVNode("button",{class:"ai-btn ai-btn-generate",onClick:p,disabled:!u.value.trim()},[s.createVNode(s.unref(Ii),{size:14}),_[2]||(_[2]=s.createTextVNode(" 生成 ",-1))],8,YI)]),_[3]||(_[3]=s.createElementVNode("div",{class:"ai-image-hint"},[s.createElementVNode("kbd",null,"Enter"),s.createTextVNode(" 生成 · "),s.createElementVNode("kbd",null,"Esc"),s.createTextVNode(" 取消 ")],-1))])):(s.openBlock(),s.createBlock(H1,{key:1,ref_key:"menuPanel",ref:a,"current-block-type":m.value,onSelect:A},null,8,["current-block-type"]))])])):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-77c8a09c"]]),QI={class:"code-block-header"},KI=["value"],WI={key:1,class:"code-description-readonly"},GI={class:"header-actions"},$I={key:0,class:"language-selector-wrapper",contenteditable:"false"},qI={key:0,class:"language-dropdown"},JI={class:"language-dropdown-list"},ZI=["onClick"],XI={key:1,class:"language-label"},ew={class:"code-content-clip"},tw=["data-language"],nw=s.defineComponent({__name:"CodeBlockComponent",props:ne.nodeViewProps,setup(e){const t=e,n=s.ref(!1);let r=null;const a=s.ref(!1),i=s.ref(!1),o=s.ref(!1),u=[{value:"javascript",label:"JavaScript"},{value:"typescript",label:"TypeScript"},{value:"python",label:"Python"},{value:"java",label:"Java"},{value:"cpp",label:"C++"},{value:"csharp",label:"C#"},{value:"php",label:"PHP"},{value:"ruby",label:"Ruby"},{value:"go",label:"Go"},{value:"rust",label:"Rust"},{value:"swift",label:"Swift"},{value:"kotlin",label:"Kotlin"},{value:"sql",label:"SQL"},{value:"bash",label:"Bash"},{value:"shell",label:"Shell"},{value:"json",label:"JSON"},{value:"xml",label:"XML"},{value:"html",label:"HTML"},{value:"css",label:"CSS"},{value:"scss",label:"SCSS"},{value:"markdown",label:"Markdown"}],l=s.computed(()=>{const A=u.find(E=>E.value===t.node.attrs.language);return A?A.label:"JavaScript"}),c=()=>{o.value=!o.value},f=A=>{t.updateAttributes({language:A}),o.value=!1},d=s.computed(()=>{if(typeof t.getPos=="function"){const A=t.getPos(),w=t.editor.state.doc.resolve(A).parent;return w.type.name==="listItem"||w.type.name==="taskItem"}return!1}),p=()=>{i.value||(a.value=!1)},g=()=>{i.value=!i.value},m=A=>{const E=A.target;t.updateAttributes({description:E.value})},b=async A=>{A.preventDefault(),A.stopPropagation();try{const E=t.node.textContent;await navigator.clipboard.writeText(E),n.value=!0,r&&clearTimeout(r),r=setTimeout(()=>{n.value=!1},2e3)}catch(E){console.error("复制失败:",E)}};return(A,E)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"code-block-wrapper",onMouseover:E[2]||(E[2]=w=>a.value=!0),onMouseleave:p},{default:s.withCtx(()=>[t.editor.isEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["handle-container",{visible:a.value||i.value,"in-list":d.value}]),contenteditable:"false"},[s.createElementVNode("div",{class:"handle-btn",onClick:g},[s.createVNode(s.unref(So),{class:"block-type-svg",size:16})]),i.value?(s.openBlock(),s.createBlock(j1,{key:0,editor:A.editor,show:i.value,"current-node-pos":typeof A.getPos=="function"?A.getPos():void 0,onClose:E[0]||(E[0]=w=>i.value=!1),class:"block-menu"},null,8,["editor","show","current-node-pos"])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),s.createElementVNode("div",QI,[t.editor.isEditable?(s.openBlock(),s.createElementBlock("input",{key:0,type:"text",class:"code-description",value:A.node.attrs.description||"",onInput:m,placeholder:"添加代码说明..."},null,40,KI)):(s.openBlock(),s.createElementBlock("span",WI,s.toDisplayString(A.node.attrs.description||""),1)),s.createElementVNode("div",GI,[t.editor.isEditable?(s.openBlock(),s.createElementBlock("div",$I,[s.createElementVNode("div",{class:"language-selector",onClick:c},[s.createElementVNode("span",null,s.toDisplayString(l.value),1),(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(["dropdown-arrow",{open:o.value}]),viewBox:"0 0 12 12",width:"10",height:"10"},[...E[3]||(E[3]=[s.createElementVNode("path",{fill:"currentColor",d:"M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z"},null,-1)])],2))]),o.value?(s.openBlock(),s.createElementBlock("div",qI,[s.createElementVNode("div",{class:"language-dropdown-overlay",onClick:E[1]||(E[1]=w=>o.value=!1)}),s.createElementVNode("div",JI,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(u,w=>s.createElementVNode("div",{key:w.value,class:s.normalizeClass(["language-option",{active:A.node.attrs.language===w.value}]),onClick:C=>f(w.value)},s.toDisplayString(w.label),11,ZI)),64))])])):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",XI,s.toDisplayString(l.value),1)),s.createElementVNode("button",{class:s.normalizeClass(["copy-button",{copied:n.value}]),onClick:b,contenteditable:"false"},[n.value?(s.openBlock(),s.createBlock(s.unref(Mo),{key:1,size:16})):(s.openBlock(),s.createBlock(s.unref(Uf),{key:0,size:16}))],2)])]),s.createElementVNode("div",ew,[s.createElementVNode("pre",{"data-language":A.node.attrs.language},[s.createVNode(s.unref(ne.NodeViewContent),{as:"code"})],8,tw)])]),_:1}))}}),rw=Qe(nw,[["__scopeId","data-v-3338e6db"]]),V1="[A-Za-z$_][0-9A-Za-z$_]*",aw=["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","using"],iw=["true","false","null","undefined","NaN","Infinity"],Y1=["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"],Q1=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],K1=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],sw=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ow=[].concat(K1,Y1,Q1);function W1(e){const t=e.regex,n=(H,{after:ie})=>{const Me="</"+H[0].slice(1);return H.input.indexOf(Me,ie)!==-1},r=V1,a={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,ie)=>{const Me=H[0].length+H.index,ye=H.input[Me];if(ye==="<"||ye===","){ie.ignoreMatch();return}ye===">"&&(n(H,{after:Me})||ie.ignoreMatch());let ve;const q=H.input.substring(Me);if(ve=q.match(/^\s*=/)){ie.ignoreMatch();return}if((ve=q.match(/^\s+extends\s+/))&&ve.index===0){ie.ignoreMatch();return}}},u={$pattern:V1,keyword:aw,literal:iw,built_in:ow,"variable.language":sw},l="[0-9](_?[0-9])*",c=`\\.(${l})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${f})\\b((${c})\\b|\\.)?|(${c})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},g={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},w={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]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,m,b,A,{match:/\$\d+/},d];p.contains=C.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(C)});const T=[].concat(w,p.contains),N=T.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(T)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N},B={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"}}]},v={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:{_:[...Y1,...Q1]}},_={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},x={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(H){return t.concat("(?!",H.join("|"),")")}const M={match:t.concat(/\b/,O([...K1,"super","import"].map(H=>`${H}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},S={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",z={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:v},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,m,b,A,w,{match:/\$\d+/},d,v,{scope:"attr",match:r+t.lookahead(":"),relevance:0},z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[w,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},x,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},M,R,B,F,{match:/\$[(.]/}]}}const hs="[A-Za-z$_][0-9A-Za-z$_]*",G1=["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","using"],$1=["true","false","null","undefined","NaN","Infinity"],q1=["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"],J1=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Z1=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],X1=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],eh=[].concat(Z1,q1,J1);function uw(e){const t=e.regex,n=(H,{after:ie})=>{const Me="</"+H[0].slice(1);return H.input.indexOf(Me,ie)!==-1},r=hs,a={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,ie)=>{const Me=H[0].length+H.index,ye=H.input[Me];if(ye==="<"||ye===","){ie.ignoreMatch();return}ye===">"&&(n(H,{after:Me})||ie.ignoreMatch());let ve;const q=H.input.substring(Me);if(ve=q.match(/^\s*=/)){ie.ignoreMatch();return}if((ve=q.match(/^\s+extends\s+/))&&ve.index===0){ie.ignoreMatch();return}}},u={$pattern:hs,keyword:G1,literal:$1,built_in:eh,"variable.language":X1},l="[0-9](_?[0-9])*",c=`\\.(${l})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${f})\\b((${c})\\b|\\.)?|(${c})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},g={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},w={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]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,m,b,A,{match:/\$\d+/},d];p.contains=C.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(C)});const T=[].concat(w,p.contains),N=T.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(T)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N},B={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"}}]},v={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:{_:[...q1,...J1]}},_={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},x={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(H){return t.concat("(?!",H.join("|"),")")}const M={match:t.concat(/\b/,O([...Z1,"super","import"].map(H=>`${H}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},S={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",z={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:v},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,m,b,A,w,{match:/\$\d+/},d,v,{scope:"attr",match:r+t.lookahead(":"),relevance:0},z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[w,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},x,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},S,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},M,R,B,F,{match:/\$[(.]/}]}}function th(e){const t=e.regex,n=uw(e),r=hs,a=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:a},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:hs,keyword:G1.concat(l),literal:$1,built_in:eh.concat(a),"variable.language":X1},f={className:"meta",begin:"@"+r},d=(b,A,E)=>{const w=b.contains.findIndex(C=>C.label===A);if(w===-1)throw new Error("can not find mode to replace");b.contains.splice(w,1,E)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(f);const p=n.contains.find(b=>b.scope==="attr"),g=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,g]),n.contains=n.contains.concat([f,i,o,g]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",u);const m=n.contains.find(b=>b.label==="func.def");return m.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function nh(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"],u={$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:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},f={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,f,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,f,c]},{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,f,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,f,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,m=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?(?=${m})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${p})[jJ](?=${m})`}]},A={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",l,b,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,b,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[l,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[E]},{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:[b,E,d]}]}}var Pr="[0-9](_*[0-9])*",ps=`\\.(${Pr})`,gs="[0-9a-fA-F](_*[0-9a-fA-F])*",rh={className:"number",variants:[{begin:`(\\b(${Pr})((${ps})|\\.)?|(${ps}))[eE][+-]?(${Pr})[fFdD]?\\b`},{begin:`\\b(${Pr})((${ps})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ps})[fFdD]?\\b`},{begin:`\\b(${Pr})[fFdD]\\b`},{begin:`\\b0[xX]((${gs})\\.?|(${gs})?\\.(${gs}))[pP][+-]?(${Pr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${gs})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ah(e,t,n){return n===-1?"":e.replace(t,r=>ah(e,t,n-1))}function lw(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+ah("(?:<"+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","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},f={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:[f,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:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,rh,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},rh,c]}}function ih(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={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})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],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(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},g=t.optional(a)+e.IDENT_RE+"\\s*\\(",m=["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"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","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"],E=["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"],T={type:b,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},N={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[N,d,u,n,e.C_BLOCK_COMMENT_MODE,f,c],B={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:D.concat([{begin:/\(/,end:/\)/,keywords:T,contains:D.concat(["self"]),relevance:0}]),relevance:0},v={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:T,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,f,u,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,f,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(B,v,N,D,[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|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:T,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function sh(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"],a=["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"],i=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(i),built_in:t,literal:r},u=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},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},f={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(f,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:o},g=e.inherit(p,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},A=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[b,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],g.contains=[A,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[c,b,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},w={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},C=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",T={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,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"}},E,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,w,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,w,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:"("+C+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,w],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[E,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},T]}}function cw(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),a=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(S,F)=>{F.data._beginMatch=S[1]||S[2]},"on:end":(S,F)=>{F.data._beginMatch!==S[1]&&F.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[
|
|
381
|
+
]`,m={scope:"string",variants:[f,c,d,p]},b={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},A=["false","null","true"],E=["__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"],w=["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"],T={keyword:E,literal:(S=>{const F=[];return S.forEach(V=>{F.push(V),V.toLowerCase()===V?F.push(V.toUpperCase()):F.push(V.toLowerCase())}),F})(A),built_in:w},N=S=>S.map(F=>F.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,t.concat(g,"+"),t.concat("(?!",N(w).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},B=t.concat(r,"\\b(?!\\()"),v={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),B],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),B],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},_={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[_,o,v,e.C_BLOCK_COMMENT_MODE,m,b,D]},R={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",N(E).join("\\b|"),"|",N(w).join("\\b|"),"\\b)"),r,t.concat(g,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(R);const O=[_,v,e.C_BLOCK_COMMENT_MODE,m,b,D],M={begin:t.concat(/#\[\s*\\?/,t.either(a,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...O]},...O,{scope:"meta",variants:[{match:a},{match:i}]}]};return{case_insensitive:!1,keywords:T,contains:[M,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}]}},u,{scope:"variable.language",match:/\$this\b/},o,R,v,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},D,{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:T,contains:["self",M,o,v,e.C_BLOCK_COMMENT_MODE,m,b]}]},{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]},m,b]}}function oh(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]+/),a=t.concat(r,/(::\w+)*/),o={"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"]},u={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],f={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[e.BACKSLASH_ESCAPE,f],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,f]})]}]},p="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${g}))?([eE][+-]?(${g})|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"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},D=[d,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.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:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,f],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,c),relevance:0}].concat(l,c);f.contains=D,b.contains=D;const x=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:D}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(x).concat(c).concat(D)}}function uh(e){const i={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:i,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:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,illegal:/["']/}]}]}}function lh(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),a=t.concat(n,e.IDENT_RE),i={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",u=["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","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["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!"],f=["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:f,keyword:u,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:f}},{className:"punctuation",begin:"->"},i]}}function ch(e){return e?typeof e=="string"?e:e.source:null}function Ha(e){return Re("(?=",e,")")}function Re(...e){return e.map(n=>ch(n)).join("")}function fw(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function bt(...e){return"("+(fw(e).capture?"":"?:")+e.map(r=>ch(r)).join("|")+")"}const Zu=e=>Re(/\b/,e,/\w$/.test(e)?/\b/:/\B/),dw=["Protocol","Type"].map(Zu),fh=["init","self"].map(Zu),hw=["Any","Self"],Xu=["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","package","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"],dh=["false","nil","true"],pw=["assignment","associativity","higherThan","left","lowerThan","none","right"],gw=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],hh=["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"],ph=bt(/[/=\-+!*%<>&|^~?]/,/[\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]/),gh=bt(ph,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),el=Re(ph,gh,"*"),mh=bt(/[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]/),ms=bt(mh,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),fn=Re(mh,ms,"*"),bs=Re(/[A-Z]/,ms,"*"),mw=["attached","autoclosure",Re(/convention\(/,bt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Re(/objc\(/,fn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],bw=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Aw(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],a={match:[/\./,bt(...dw,...fh)],className:{2:"keyword"}},i={match:Re(/\./,bt(...Xu)),relevance:0},o=Xu.filter(re=>typeof re=="string").concat(["_|0"]),u=Xu.filter(re=>typeof re!="string").concat(hw).map(Zu),l={variants:[{className:"keyword",match:bt(...u,...fh)}]},c={$pattern:bt(/\b\w+/,/#\w+/),keyword:o.concat(gw),literal:dh},f=[a,i,l],d={match:Re(/\./,bt(...hh)),relevance:0},p={className:"built_in",match:Re(/\b/,bt(...hh),/(?=\()/)},g=[d,p],m={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:el},{match:`\\.(\\.|${gh})+`}]},A=[m,b],E="([0-9]_*)+",w="([0-9a-fA-F]_*)+",C={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${w})(\\.(${w}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},T=(re="")=>({className:"subst",variants:[{match:Re(/\\/,re,/[0\\tnr"']/)},{match:Re(/\\/,re,/u\{[0-9a-fA-F]{1,8}\}/)}]}),N=(re="")=>({className:"subst",match:Re(/\\/,re,/[\t ]*(?:[\r\n]|\r\n)/)}),D=(re="")=>({className:"subst",label:"interpol",begin:Re(/\\/,re,/\(/),end:/\)/}),B=(re="")=>({begin:Re(re,/"""/),end:Re(/"""/,re),contains:[T(re),N(re),D(re)]}),v=(re="")=>({begin:Re(re,/"/),end:Re(/"/,re),contains:[T(re),D(re)]}),_={className:"string",variants:[B(),B("#"),B("##"),B("###"),v(),v("#"),v("##"),v("###")]},x=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],R={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:x},O=re=>{const Ge=Re(re,/\//),Fe=Re(/\//,re);return{begin:Ge,end:Fe,contains:[...x,{scope:"comment",begin:`#(?!.*${Fe})`,end:/$/}]}},M={scope:"regexp",variants:[O("###"),O("##"),O("#"),R]},S={match:Re(/`/,fn,/`/)},F={className:"variable",match:/\$\d+/},V={className:"variable",match:`\\$${ms}+`},z=[S,F,V],H={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:bw,contains:[...A,C,_]}]}},ie={scope:"keyword",match:Re(/@/,bt(...mw),Ha(bt(/\(/,/\s+/)))},Me={scope:"meta",match:Re(/@/,fn)},ye=[H,ie,Me],ve={match:Ha(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Re(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,ms,"+")},{className:"type",match:bs,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Re(/\s+&\s+/,Ha(bs)),relevance:0}]},q={begin:/</,end:/>/,keywords:c,contains:[...r,...f,...ye,m,ve]};ve.contains.push(q);const J={match:Re(fn,/\s*:/),keywords:"_|0",relevance:0},Ie={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",J,...r,M,...f,...g,...A,C,_,...z,...ye,ve]},Ve={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ve]},oe={begin:bt(Ha(Re(fn,/\s*:/)),Ha(Re(fn,/\s+/,fn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:fn}]},W={begin:/\(/,end:/\)/,keywords:c,contains:[oe,...r,...f,...A,C,_,...ye,ve,Ie],endsParent:!0,illegal:/["']/},se={match:[/(func|macro)/,/\s+/,bt(S.match,fn,el)],className:{1:"keyword",3:"title.function"},contains:[Ve,W,t],illegal:[/\[/,/%/]},Se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ve,W,t],illegal:/\[|%/},le={match:[/operator/,/\s+/,el],className:{1:"keyword",3:"title"}},be={begin:[/precedencegroup/,/\s+/,bs],className:{1:"keyword",3:"title"},contains:[ve],keywords:[...pw,...dh],end:/}/},De={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},he={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},tt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,fn,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[Ve,...f,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:bs},...f],relevance:0}]};for(const re of _.variants){const Ge=re.contains.find(nt=>nt.label==="interpol");Ge.keywords=c;const Fe=[...f,...g,...A,C,_,...z];Ge.contains=[...Fe,{begin:/\(/,end:/\)/,contains:["self",...Fe]}]}return{name:"Swift",keywords:c,contains:[...r,se,Se,De,he,tt,le,be,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},M,...f,...g,...A,C,_,...z,...ye,ve,Ie]}}var Ur="[0-9](_*[0-9])*",As=`\\.(${Ur})`,Es="[0-9a-fA-F](_*[0-9a-fA-F])*",Ew={className:"number",variants:[{begin:`(\\b(${Ur})((${As})|\\.)?|(${As}))[eE][+-]?(${Ur})[fFdD]?\\b`},{begin:`\\b(${Ur})((${As})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${As})[fFdD]?\\b`},{begin:`\\b(${Ur})[fFdD]\\b`},{begin:`\\b0[xX]((${Es})\\.?|(${Es})?\\.(${Es}))[pP][+-]?(${Ur})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Es})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function bh(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+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,a]}]};a.contains.push(o);const u={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(o,{className:"string"}),"self"]}]},c=Ew,f=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,f,n,r,u,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,f],relevance:0},e.C_LINE_COMMENT_MODE,f,u,l,o,e.C_NUMBER_MODE]},f]},{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},u,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
382
|
+
`},c]}}function yw(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],u=["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"],c=["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"],f=["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"],p=["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"],g=f,m=[...c,...l].filter(N=>!f.includes(N)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function w(N){return t.concat(/\b/,t.either(...N.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}const C={scope:"keyword",match:w(p),relevance:0};function T(N,{exceptions:D,when:B}={}){const v=B;return D=D||[],N.map(_=>_.match(/\|\d+$/)||D.includes(_)?_:v(_)?`${_}|0`:_)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:T(m,{when:N=>N.length<3}),literal:i,type:u,built_in:d},contains:[{scope:"type",match:w(o)},C,E,b,r,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,A]}}function Ah(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 a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,a]};a.contains.push(u);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},f={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],E={match:/(\/[a-z._-]+)+/},w=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],C=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],T=["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"],N=["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","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:A,built_in:[...w,...C,"set","shopt",...T,...N]},contains:[g,e.SHEBANG(),m,d,i,o,E,u,l,c,f,n]}}function Tw(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function kw(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],a={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Eh(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,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(i,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={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:[a]},{begin:/'/,end:/'/,contains:[a]},{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:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,u,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,l,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Nw=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_-]*/}}),Iw=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ww=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Cw=[...Iw,...ww],_w=["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"].sort().reverse(),xw=["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"].sort().reverse(),Mw=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Sw=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Dw(e){const t=e.regex,n=Nw(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",u=[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:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+xw.join("|")+")"},{begin:":(:)?("+Mw.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Sw.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:_w.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cw.join("|")+")\\b"}]}}const vw=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_-]*/}}),Ow=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Lw=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Bw=[...Ow,...Lw],Rw=["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"].sort().reverse(),Pw=["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"].sort().reverse(),Uw=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Fw=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function yh(e){const t=vw(e),n=Uw,r=Pw,a="@[a-z-]+",i="and or not only",u={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("+Bw.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Fw.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,u,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:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Rw.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Th(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},a={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}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),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}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},f={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),p=e.inherit(f,{contains:[]});c.contains.push(p),f.contains.push(d);let g=[n,l];return[c,f,d,p].forEach(E=>{E.contains=E.contains.concat(g)}),g=g.concat(c,f),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},n,i,c,f,{className:"quote",begin:"^>\\s+",contains:g,end:"$"},a,r,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}const de=Dl.createLowlight(Dl.common);de.register("javascript",W1),de.register("js",W1),de.register("typescript",th),de.register("ts",th),de.register("python",nh),de.register("py",nh),de.register("java",lw),de.register("cpp",ih),de.register("c++",ih),de.register("csharp",sh),de.register("cs",sh),de.register("php",cw),de.register("ruby",oh),de.register("rb",oh),de.register("go",uh),de.register("golang",uh),de.register("rust",lh),de.register("rs",lh),de.register("swift",Aw),de.register("kotlin",bh),de.register("kt",bh),de.register("sql",yw),de.register("bash",Ah),de.register("sh",Ah),de.register("shell",Tw),de.register("json",kw),de.register("xml",Eh),de.register("html",Eh),de.register("css",Dw),de.register("scss",yh),de.register("sass",yh),de.register("markdown",Th),de.register("md",Th);const Hw=wp.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),description:{default:"",parseHTML:t=>t.getAttribute("data-description"),renderHTML:t=>t.description?{"data-description":t.description}:{}}}},addNodeView(){return ne.VueNodeViewRenderer(rw)}}).configure({lowlight:de,defaultLanguage:"javascript"}),zw=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class za{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}za.prototype.normal={},za.prototype.property={},za.prototype.space=void 0;function kh(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new za(n,r,t)}function tl(e){return e.toLowerCase()}class It{constructor(t,n){this.attribute=n,this.property=t}}It.prototype.attribute="",It.prototype.booleanish=!1,It.prototype.boolean=!1,It.prototype.commaOrSpaceSeparated=!1,It.prototype.commaSeparated=!1,It.prototype.defined=!1,It.prototype.mustUseProperty=!1,It.prototype.number=!1,It.prototype.overloadedBoolean=!1,It.prototype.property="",It.prototype.spaceSeparated=!1,It.prototype.space=void 0;let jw=0;const fe=lr(),Ze=lr(),nl=lr(),K=lr(),He=lr(),Fr=lr(),Dt=lr();function lr(){return 2**++jw}const rl=Object.freeze(Object.defineProperty({__proto__:null,boolean:fe,booleanish:Ze,commaOrSpaceSeparated:Dt,commaSeparated:Fr,number:K,overloadedBoolean:nl,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),al=Object.keys(rl);class il extends It{constructor(t,n,r,a){let i=-1;if(super(t,n),Nh(this,"space",a),typeof r=="number")for(;++i<al.length;){const o=al[i];Nh(this,al[i],(r&rl[o])===rl[o])}}}il.prototype.defined=!0;function Nh(e,t,n){n&&(e[t]=n)}function Hr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new il(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[tl(r)]=r,n[tl(i.attribute)]=r}return new za(t,n,e.space)}const Ih=Hr({properties:{ariaActiveDescendant:null,ariaAtomic:Ze,ariaAutoComplete:null,ariaBusy:Ze,ariaChecked:Ze,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:Ze,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:Ze,ariaFlowTo:He,ariaGrabbed:Ze,ariaHasPopup:null,ariaHidden:Ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:K,ariaLive:null,ariaModal:Ze,ariaMultiLine:Ze,ariaMultiSelectable:Ze,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Ze,ariaReadOnly:Ze,ariaRelevant:null,ariaRequired:Ze,ariaRoleDescription:He,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Ze,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function wh(e,t){return t in e?e[t]:t}function Ch(e,t){return wh(e,t.toLowerCase())}const Vw=Hr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fr,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:fe,allowPaymentRequest:fe,allowUserMedia:fe,alt:null,as:null,async:fe,autoCapitalize:null,autoComplete:He,autoFocus:fe,autoPlay:fe,blocking:He,capture:null,charSet:null,checked:fe,cite:null,className:He,cols:K,colSpan:null,content:null,contentEditable:Ze,controls:fe,controlsList:He,coords:K|Fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fe,defer:fe,dir:null,dirName:null,disabled:fe,download:nl,draggable:Ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fe,formTarget:null,headers:He,height:K,hidden:nl,high:K,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:fe,inputMode:null,integrity:null,is:null,isMap:fe,itemId:null,itemProp:He,itemRef:He,itemScope:fe,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fe,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:fe,muted:fe,name:null,nonce:null,noModule:fe,noValidate:fe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fe,optimum:K,pattern:null,ping:He,placeholder:null,playsInline:fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fe,referrerPolicy:null,rel:He,required:fe,reversed:fe,rows:K,rowSpan:K,sandbox:He,scope:null,scoped:fe,seamless:fe,selected:fe,shadowRootClonable:fe,shadowRootDelegatesFocus:fe,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:fe,useMap:null,value:Ze,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fe,declare:fe,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:fe,noHref:fe,noShade:fe,noWrap:fe,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Ze,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fe,disableRemotePlayback:fe,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:Ch}),Yw=Hr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Dt,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fr,g2:Fr,glyphName:Fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Dt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dt,rev:Dt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dt,requiredFeatures:Dt,requiredFonts:Dt,requiredFormats:Dt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Dt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dt,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wh}),_h=Hr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xh=Hr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ch}),Mh=Hr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qw=/[A-Z]/g,Sh=/-[a-z]/g,Kw=/^data[-\w.:]+$/i;function Ww(e,t){const n=tl(t);let r=t,a=It;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Kw.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Sh,$w);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Sh.test(i)){let o=i.replace(Qw,Gw);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=il}return new a(r,t)}function Gw(e){return"-"+e.toLowerCase()}function $w(e){return e.charAt(1).toUpperCase()}const qw=kh([Ih,Vw,_h,xh,Mh],"html"),Dh=kh([Ih,Yw,_h,xh,Mh],"svg"),vh={}.hasOwnProperty;function Jw(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const u=r.handlers;if(a&&vh.call(a,e)){const l=String(a[e]);o=vh.call(u,l)?u[l]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Zw=/["&'<>`]/g,Xw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eC=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tC=/[|\\{}()[\]^$+*?.]/g,Oh=new WeakMap;function nC(e,t){if(e=e.replace(t.subset?rC(t.subset):Zw,r),t.subset||t.escapeOnly)return e;return e.replace(Xw,n).replace(eC,r);function n(a,i,o){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),t)}function r(a,i,o){return t.format(a.charCodeAt(0),o.charCodeAt(i+1),t)}}function rC(e){let t=Oh.get(e);return t||(t=aC(e),Oh.set(e,t)),t}function aC(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(tC,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const iC=/[\dA-Fa-f]/;function sC(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!iC.test(String.fromCharCode(t))?r:r+";"}const oC=/\d/;function uC(e,t,n){const r="&#"+String(e);return n&&t&&!oC.test(String.fromCharCode(t))?r:r+";"}const lC=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],sl={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},cC=["cent","copy","divide","gt","lt","not","para","times"],Lh={}.hasOwnProperty,ol={};let ys;for(ys in sl)Lh.call(sl,ys)&&(ol[sl[ys]]=ys);const fC=/[^\dA-Za-z]/;function dC(e,t,n,r){const a=String.fromCharCode(e);if(Lh.call(ol,a)){const i=ol[a],o="&"+i;return n&&lC.includes(i)&&!cC.includes(i)&&(!r||t&&t!==61&&fC.test(String.fromCharCode(t)))?o:o+";"}return""}function hC(e,t,n){let r=sC(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=dC(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=uC(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function zr(e,t){return nC(e,Object.assign({format:hC},t))}const pC=/^>|^->|<!--|-->|--!>|<!-$/g,gC=[">"],mC=["<",">"];function bC(e,t,n,r){return r.settings.bogusComments?"<?"+zr(e.value,Object.assign({},r.settings.characterReferences,{subset:gC}))+">":"<!--"+e.value.replace(pC,a)+"-->";function a(i){return zr(i,Object.assign({},r.settings.characterReferences,{subset:mC}))}}function AC(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Bh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function EC(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function yC(e){return e.join(" ").trim()}const TC=/[ \t\n\f\r]/g;function ul(e){return typeof e=="object"?e.type==="text"?Rh(e.value):!1:Rh(e)}function Rh(e){return e.replace(TC,"")===""}const et=Uh(1),Ph=Uh(-1),kC=[];function Uh(e){return t;function t(n,r,a){const i=n?n.children:kC;let o=(r||0)+e,u=i[o];if(!a)for(;u&&ul(u);)o+=e,u=i[o];return u}}const NC={}.hasOwnProperty;function Fh(e){return t;function t(n,r,a){return NC.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const ll=Fh({body:wC,caption:cl,colgroup:cl,dd:MC,dt:xC,head:cl,html:IC,li:_C,optgroup:SC,option:DC,p:CC,rp:Hh,rt:Hh,tbody:OC,td:zh,tfoot:LC,th:zh,thead:vC,tr:BC});function cl(e,t,n){const r=et(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ul(r.value.charAt(0)))}function IC(e,t,n){const r=et(n,t);return!r||r.type!=="comment"}function wC(e,t,n){const r=et(n,t);return!r||r.type!=="comment"}function CC(e,t,n){const r=et(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function _C(e,t,n){const r=et(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xC(e,t,n){const r=et(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function MC(e,t,n){const r=et(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Hh(e,t,n){const r=et(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function SC(e,t,n){const r=et(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function DC(e,t,n){const r=et(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vC(e,t,n){const r=et(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function OC(e,t,n){const r=et(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function LC(e,t,n){return!et(n,t)}function BC(e,t,n){const r=et(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function zh(e,t,n){const r=et(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const RC=Fh({body:FC,colgroup:HC,head:UC,html:PC,tbody:zC});function PC(e){const t=et(e,-1);return!t||t.type!=="comment"}function UC(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function FC(e){const t=et(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ul(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function HC(e,t,n){const r=Ph(n,t),a=et(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ll(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function zC(e,t,n){const r=Ph(n,t),a=et(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ll(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Ts={name:[[`
|
|
383
|
+
\f\r &/=>`.split(""),`
|
|
384
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
385
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
386
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
387
|
+
\f\r &>`.split(""),`\0
|
|
388
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
389
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
390
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function jC(e,t,n,r){const a=r.schema,i=a.space==="svg"?!1:r.settings.omitOptionalTags;let o=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let l;a.space==="html"&&e.tagName==="svg"&&(r.schema=Dh);const c=VC(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(o=!1),(c||!i||!RC(e,t,n))&&(u.push("<",e.tagName,c?" "+c:""),o&&(a.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!o&&(!i||!ll(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function VC(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const i=YC(e,a,t[a]);i&&n.push(i)}}for(;++r<n.length;){const i=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&i!=='"'&&i!=="'"&&(n[r]+=" ")}return n.join("")}function YC(e,t,n){const r=Ww(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let o=e.quote,u;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=zr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ts.name[a][i]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?EC:yC)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(u=zr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ts.unquoted[a][i]}))),u!==n&&(e.settings.quoteSmart&&Bh(n,o)>Bh(n,e.alternative)&&(o=e.alternative),u=o+zr(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Ts.single:Ts.double)[a][i],attribute:!0}))+o),l+(u&&"="+u))}const QC=["<","&"];function jh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:zr(e.value,Object.assign({},r.settings.characterReferences,{subset:QC}))}function KC(e,t,n,r){return r.settings.allowDangerousHtml?e.value:jh(e,t,n,r)}function WC(e,t,n,r){return r.all(e)}const GC=Jw("type",{invalid:$C,unknown:qC,handlers:{comment:bC,doctype:AC,element:jC,raw:KC,root:WC,text:jh}});function $C(e){throw new Error("Expected node, not `"+e+"`")}function qC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const JC={},ZC={},XC=[];function Vh(e,t){const n=JC,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:e_,all:t_,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||zw,characterReferences:n.characterReferences||ZC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Dh:qw,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function e_(e,t,n){return GC(e,t,n,this)}function t_(e){const t=[],n=e&&e.children||XC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}const Yh={gray:"#f1f1ef",blue:"#e7f3ff",cyan:"#e0f7fa",green:"#e8f5e9",lime:"#edf8dc",yellow:"#fffde7",cream:"#fdf6e3",orange:"#fff3e0",pink:"#fce4ec",purple:"#f3e5f5"},Qh={"hljs-comment":"color: #6a737d; font-style: italic;","hljs-quote":"color: #6a737d; font-style: italic;","hljs-keyword":"color: #d73a49; font-weight: 600;","hljs-selector-tag":"color: #d73a49; font-weight: 600;","hljs-subst":"color: #d73a49; font-weight: 600;","hljs-number":"color: #005cc5;","hljs-literal":"color: #005cc5;","hljs-variable":"color: #005cc5;","hljs-template-variable":"color: #005cc5;","hljs-string":"color: #032f62;","hljs-doctag":"color: #032f62;","hljs-title":"color: #6f42c1; font-weight: 600;","hljs-section":"color: #6f42c1; font-weight: 600;","hljs-selector-id":"color: #6f42c1; font-weight: 600;","hljs-type":"color: #6f42c1;","hljs-tag":"color: #22863a; font-weight: 600;","hljs-name":"color: #22863a; font-weight: 600;","hljs-attribute":"color: #22863a; font-weight: 600;","hljs-regexp":"color: #032f62;","hljs-link":"color: #032f62;","hljs-symbol":"color: #005cc5;","hljs-bullet":"color: #005cc5;","hljs-built_in":"color: #e36209;","hljs-builtin-name":"color: #e36209;","hljs-meta":"color: #6a737d;","hljs-params":"color: #24292e;","hljs-function":"color: #6f42c1;"},Kh=e=>{e.type==="text"&&(e.value=e.value.replace(/ /g," ")),e.children&&e.children.length>0&&e.children.forEach(Kh)},ja=e=>{const n=new DOMParser().parseFromString(e,"text/html");return n.querySelectorAll('li[data-type="taskItem"]').forEach(o=>{const u=o,l=u.getAttribute("data-checked")==="true",c=u.querySelector('input[type="checkbox"]'),f=u.querySelector("label");c&&c.remove(),f&&f.remove();const d=n.createElement("span");l?(d.innerHTML="✅",d.style.cssText=`
|
|
391
|
+
font-size: 16px;
|
|
392
|
+
margin-right: 8px;
|
|
393
|
+
flex-shrink: 0;
|
|
394
|
+
`):(d.innerHTML="☐",d.style.cssText=`
|
|
395
|
+
font-size: 18px;
|
|
396
|
+
margin-right: 8px;
|
|
397
|
+
color: #999;
|
|
398
|
+
flex-shrink: 0;
|
|
399
|
+
`),u.style.listStyle="none",u.style.display="flex",u.style.alignItems="flex-start";const p=n.createElement("div");for(p.style.flex="1",l&&(p.style.textDecoration="line-through",p.style.color="#b2b2b2");u.firstChild;)p.appendChild(u.firstChild);u.appendChild(d),u.appendChild(p)}),n.querySelectorAll('div[data-type="color-block"]').forEach(o=>{var d;const u=o,l=u.getAttribute("data-color")||"cyan",c=Yh[l]||Yh.cyan,f=n.createElement("section");for(f.style.cssText=`background-color: ${c}; border-radius: 8px; padding: 16px 20px; margin: 12px 0;`;u.firstChild;){const p=u.firstChild;p instanceof HTMLElement&&p.tagName==="P"&&(p.style.margin="0"),f.appendChild(p)}(d=u.parentNode)==null||d.replaceChild(f,u)}),n.querySelectorAll("pre code").forEach(o=>{const u=o,l=u.textContent||"",c=u.className.match(/language-(\w+)/),f=c?c[1]:null;try{let d;f&&de.registered(f)?d=de.highlight(f,l):d=de.highlightAuto(l),Kh(d);const p=Vh(d);u.innerHTML=p,u.querySelectorAll("span[class]").forEach(m=>{const b=m,A=b.className.split(" ");let E="";for(const w of A)Qh[w]&&(E+=Qh[w]);E&&(b.style.cssText=E)})}catch(d){console.warn("[WeChat Export] Code highlighting failed:",d)}}),n.body.innerHTML},Va=`/* 原样式 - 简洁大方 */
|
|
400
|
+
section {
|
|
401
|
+
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
|
|
402
|
+
font-size: 16px;
|
|
403
|
+
line-height: 1.8;
|
|
404
|
+
color: #333;
|
|
405
|
+
background: #fff;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
h1 {
|
|
409
|
+
color: #1a1a1a;
|
|
410
|
+
font-size: 22px;
|
|
411
|
+
font-weight: bold;
|
|
412
|
+
margin: 24px 0 16px 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
h2 {
|
|
416
|
+
color: #333;
|
|
417
|
+
font-size: 18px;
|
|
418
|
+
font-weight: bold;
|
|
419
|
+
margin: 20px 0 12px 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
p {
|
|
423
|
+
margin: 12px 0;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
strong {
|
|
427
|
+
color: #1a1a1a;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
a {
|
|
431
|
+
color: #576b95;
|
|
432
|
+
text-decoration: none;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
blockquote {
|
|
436
|
+
margin: 16px 0;
|
|
437
|
+
padding: 12px 16px;
|
|
438
|
+
border-left: 4px solid #ddd;
|
|
439
|
+
background: #f7f7f7;
|
|
440
|
+
color: #666;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
pre {
|
|
444
|
+
background: #f6f8fa;
|
|
445
|
+
padding: 16px;
|
|
446
|
+
border-radius: 6px;
|
|
447
|
+
overflow-x: auto;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
code {
|
|
451
|
+
font-family: Consolas, Monaco, monospace;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
img {
|
|
455
|
+
max-width: 100%;
|
|
456
|
+
border-radius: 8px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
ul,
|
|
460
|
+
ol {
|
|
461
|
+
padding-left: 24px;
|
|
462
|
+
margin: 12px 0;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
ul[data-type="taskList"] {
|
|
466
|
+
padding-left: 10px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* 表格样式 */
|
|
470
|
+
table {
|
|
471
|
+
border-collapse: collapse;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
th,
|
|
475
|
+
td {
|
|
476
|
+
border: 1px solid #ddd;
|
|
477
|
+
padding: 8px 12px;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
th {
|
|
481
|
+
background: #f5f5f5;
|
|
482
|
+
}
|
|
483
|
+
`,fl=`/* 枫叶主题 - 清新绿意 */
|
|
484
|
+
section {
|
|
485
|
+
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
|
|
486
|
+
font-size: 15px;
|
|
487
|
+
line-height: 1.75;
|
|
488
|
+
color: #3f3f3f;
|
|
489
|
+
background: #fff;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
h1 {
|
|
493
|
+
color: #00bb7a;
|
|
494
|
+
font-size: 22px;
|
|
495
|
+
font-weight: bold;
|
|
496
|
+
margin: 24px 0 16px 0;
|
|
497
|
+
border-bottom: 2px solid #00bb7a;
|
|
498
|
+
padding-bottom: 8px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
h2 {
|
|
502
|
+
color: #1a1a1a;
|
|
503
|
+
font-size: 18px;
|
|
504
|
+
font-weight: bold;
|
|
505
|
+
margin: 20px 0 12px 0;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
p {
|
|
509
|
+
margin: 12px 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
strong {
|
|
513
|
+
color: #00bb7a;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
a {
|
|
517
|
+
color: #00bb7a;
|
|
518
|
+
text-decoration: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
blockquote {
|
|
522
|
+
margin: 16px 0;
|
|
523
|
+
padding: 12px 16px;
|
|
524
|
+
border-left: 4px solid #00bb7a;
|
|
525
|
+
background: #f9f9f9;
|
|
526
|
+
color: #666;
|
|
527
|
+
border-radius: 0 8px 8px 0;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
pre {
|
|
531
|
+
background: #f8f8f8;
|
|
532
|
+
padding: 16px;
|
|
533
|
+
border-radius: 8px;
|
|
534
|
+
overflow-x: auto;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
code {
|
|
538
|
+
font-family: Consolas, Monaco, monospace;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
img {
|
|
542
|
+
max-width: 100%;
|
|
543
|
+
border-radius: 8px;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
ul,
|
|
547
|
+
ol {
|
|
548
|
+
padding-left: 24px;
|
|
549
|
+
margin: 12px 0;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
ul[data-type="taskList"] {
|
|
553
|
+
padding-left: 10px;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/* 表格样式 */
|
|
557
|
+
table {
|
|
558
|
+
border-collapse: collapse;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
th,
|
|
562
|
+
td {
|
|
563
|
+
border: 1px solid #ddd;
|
|
564
|
+
padding: 8px 12px;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
th {
|
|
568
|
+
background: #00bb7a;
|
|
569
|
+
color: #fff;
|
|
570
|
+
}
|
|
571
|
+
`,dl=`/* 极简主题 - 黑白分明 */
|
|
572
|
+
section {
|
|
573
|
+
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
|
|
574
|
+
font-size: 16px;
|
|
575
|
+
line-height: 1.8;
|
|
576
|
+
color: #333;
|
|
577
|
+
background: #fff;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
h1 {
|
|
581
|
+
color: #000;
|
|
582
|
+
font-size: 24px;
|
|
583
|
+
font-weight: 600;
|
|
584
|
+
margin: 32px 0 16px 0;
|
|
585
|
+
letter-spacing: -0.5px;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
h2 {
|
|
589
|
+
color: #111;
|
|
590
|
+
font-size: 20px;
|
|
591
|
+
font-weight: 600;
|
|
592
|
+
margin: 24px 0 12px 0;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
p {
|
|
596
|
+
margin: 16px 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
strong {
|
|
600
|
+
color: #000;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
a {
|
|
604
|
+
color: #000;
|
|
605
|
+
text-decoration: underline;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
blockquote {
|
|
609
|
+
margin: 20px 0;
|
|
610
|
+
padding: 16px 20px;
|
|
611
|
+
border-left: 3px solid #000;
|
|
612
|
+
background: #fafafa;
|
|
613
|
+
color: #555;
|
|
614
|
+
font-style: italic;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
pre {
|
|
618
|
+
background: #f4f4f4;
|
|
619
|
+
padding: 16px;
|
|
620
|
+
border-radius: 4px;
|
|
621
|
+
overflow-x: auto;
|
|
622
|
+
border: 1px solid #eee;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
code {
|
|
626
|
+
font-family: Consolas, Monaco, monospace;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
img {
|
|
630
|
+
max-width: 100%;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
ul,
|
|
634
|
+
ol {
|
|
635
|
+
padding-left: 24px;
|
|
636
|
+
margin: 16px 0;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
ul[data-type="taskList"] {
|
|
640
|
+
padding-left: 10px;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/* 表格样式 */
|
|
644
|
+
table {
|
|
645
|
+
border-collapse: collapse;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
th,
|
|
649
|
+
td {
|
|
650
|
+
border: 1px solid #000;
|
|
651
|
+
padding: 10px 12px;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
th {
|
|
655
|
+
background: #000;
|
|
656
|
+
color: #fff;
|
|
657
|
+
}
|
|
658
|
+
`,ks={original:Va,maple:fl,minimal:dl},Wh=`
|
|
659
|
+
<h1 class="document-title">微信公众号样式预览</h1>
|
|
660
|
+
<h1>一级标题</h1>
|
|
661
|
+
<p>这是一段普通的正文段落。支持<strong>加粗</strong>、<em>斜体</em>、<code>行内代码</code>等格式。</p>
|
|
662
|
+
<h2>二级标题</h2>
|
|
663
|
+
<p>段落文字用于展示正文的排版效果。</p>
|
|
664
|
+
<h3>三级标题</h3>
|
|
665
|
+
<blockquote><p>💡 这是一段引用文字,常用于强调重要信息。</p></blockquote>
|
|
666
|
+
<pre><code class="language-javascript">function hello() {
|
|
667
|
+
console.log('Hello World!');
|
|
668
|
+
}</code></pre>
|
|
669
|
+
<ul>
|
|
670
|
+
<li>无序列表项 1</li>
|
|
671
|
+
<li>无序列表项 2</li>
|
|
672
|
+
</ul>
|
|
673
|
+
<ol>
|
|
674
|
+
<li>有序列表项 1</li>
|
|
675
|
+
<li>有序列表项 2</li>
|
|
676
|
+
</ol>
|
|
677
|
+
`,Gh=async e=>{const n=new DOMParser().parseFromString(e,"text/html"),r=n.querySelectorAll("img[src]");return await Promise.all(Array.from(r).map(async a=>{const i=a.getAttribute("src");if(!(!i||i.startsWith("data:")))try{const u=await(await fetch(i)).blob(),l=await new Promise(c=>{const f=new FileReader;f.onloadend=()=>c(f.result),f.readAsDataURL(u)});a.setAttribute("src",l)}catch(o){console.warn("[WeChat Export] 图片转换失败:",i,o)}})),n.body.innerHTML};function $h(e){const n=new DOMParser().parseFromString(e,"text/html");return n.querySelectorAll("table").forEach(a=>{const i=a;i.style.removeProperty("width"),i.removeAttribute("width"),i.style.removeProperty("table-layout");const o=a.querySelector("colgroup");o&&o.remove(),a.querySelectorAll("th > p, td > p").forEach(f=>{const d=f;d.style.margin="0"});const l=n.createElement("section");l.style.cssText="width: 100%; max-width: 100%; overflow-x: auto; margin: 16px 0;";const c=a.parentNode;c&&(c.insertBefore(l,a),l.appendChild(a))}),n.body.innerHTML}function n_(e,t){const r=`<section class="wechat-content">${ja(e)}</section>`,a=Rr(r,{extraCss:t,removeStyleTags:!0,preserveMediaQueries:!1,preserveFontFaces:!1});return $h(a)}async function r_(e,t){try{let n=ja(e);n=await Gh(n);const r=`<section class="wechat-content">${n}</section>`,a=Rr(r,{extraCss:t,removeStyleTags:!0,preserveMediaQueries:!1,preserveFontFaces:!1}),i=e.replace(/<[^>]*>/g,""),o=new Blob([a],{type:"text/html"}),u=new Blob([i],{type:"text/plain"});return await navigator.clipboard.write([new ClipboardItem({"text/html":o,"text/plain":u})]),{success:!0,message:"内容已复制到剪贴板,可直接粘贴到微信公众号",html:a}}catch(n){return console.error("[WeChat Export] 复制失败:",n),{success:!1,message:n instanceof Error?n.message:"复制失败,请重试"}}}function a_(){return[{id:"original",name:"原样式",css:Va,isBuiltIn:!0},{id:"maple",name:"枫叶主题",css:fl,isBuiltIn:!0},{id:"minimal",name:"极简主题",css:dl,isBuiltIn:!0}]}function i_(e){return ks[e]||Va}function qh(e){const t=u=>u!=null&&u.customCss?u.customCss:u!=null&&u.themeId&&ks[u.themeId]?ks[u.themeId]:Va;return{copyToWechat:async u=>{if(!e.value)return{success:!1,message:"编辑器未初始化"};try{let l=e.value.getHTML();l=ja(l),l=await Gh(l);const c=t(u),f=`<section class="wechat-content">${l}</section>`;let d=Rr(f,{extraCss:c,removeStyleTags:!0,preserveMediaQueries:!1,preserveFontFaces:!1});d=$h(d);const p=e.value.getText(),g=new Blob([d],{type:"text/html"}),m=new Blob([p],{type:"text/plain"});return await navigator.clipboard.write([new ClipboardItem({"text/html":g,"text/plain":m})]),{success:!0,message:"内容已复制到剪贴板,可直接粘贴到微信公众号",html:d}}catch(l){return console.error("[WeChat Export] 复制失败:",l),{success:!1,message:l instanceof Error?l.message:"复制失败,请重试"}}},getWechatThemes:()=>[{id:"original",name:"原样式",css:Va,isBuiltIn:!0},{id:"maple",name:"枫叶主题",css:fl,isBuiltIn:!0},{id:"minimal",name:"极简主题",css:dl,isBuiltIn:!0}],getWechatSamplePreview:u=>{if(!u)return Wh;const l=`<section class="wechat-content">${Wh}</section>`;return Rr(l,{extraCss:u,removeStyleTags:!0,preserveMediaQueries:!1,preserveFontFaces:!1})},getWechatPreviewHtml:(u,l)=>{let c=l||(e.value?e.value.getHTML():"");c=ja(c);const f=`<section class="wechat-content">${c}</section>`;return Rr(f,{extraCss:u,removeStyleTags:!0,preserveMediaQueries:!1,preserveFontFaces:!1})},getWechatThemeCssById:u=>ks[u]||defaultCss}}function s_(e,t,n){const r=s.ref(""),a=s.ref(!1),i=s.ref(!1),o=n||s.ref(new Map),u=m=>{if(!e.value||a.value)return!1;const b=(m==null?void 0:m.requireConfirmation)??!1;i.value=b,e.value.commands.focus("end"),o.value.clear();const A=e.value.commands.setStreamingPreview({requireConfirmation:b});return A&&(r.value="",a.value=!0),A},l=m=>{if(!e.value||!a.value)return!1;r.value+=m;const b=/\(\(img:\s*([^)]+)\)\)/g;let A;for(;(A=b.exec(r.value))!==null;){const C=A[1].trim();if(!o.value.has(C)){const T=`ai-img-${Date.now()}-${Math.random().toString(36).substring(2,9)}`;o.value.set(C,{id:T,status:"generating",src:null,error:null}),p(C,T)}}const E=r.value.replace(b,(C,T)=>{const N=o.value.get(T.trim());return`
|
|
678
|
+
|
|
679
|
+
[AI_IMAGE:${(N==null?void 0:N.id)||"unknown"}:${T.trim()}]
|
|
680
|
+
|
|
681
|
+
`}),w=e.value.commands.updateStreamingPreviewContent(E);return w&&requestAnimationFrame(()=>{const C=document.querySelector(".streaming-preview-wrapper");C&&C.scrollIntoView({behavior:"smooth",block:"end"})}),w},c=()=>{if(!e.value||!a.value)return!1;if(a.value=!1,!i.value)return setTimeout(()=>{try{e.value&&e.value.commands.finishStreamingPreview()}catch(m){console.error("[endAIStream] Error in finishStreamingPreview:",m)}r.value="",i.value=!1,o.value.clear()},100),!0;try{e.value.chain().command(({tr:m,state:b})=>(b.doc.descendants((A,E)=>{A.type.name==="streamingPreview"&&m.setNodeAttribute(E,"status","finished")}),!0)).run()}catch(m){console.error("[endAIStream] Error updating status:",m)}return a.value=!1,!0},f=()=>{if(!e.value)return!1;const m=e.value.commands.removeStreamingPreview();return r.value="",a.value=!1,i.value=!1,o.value.clear(),m},d=()=>({isActive:a.value,content:r.value,requireConfirmation:i.value}),p=async(m,b)=>{if(!t){console.warn("[流式预生成] ⚠️ 未配置 onAiImageGenerate"),o.value.set(m,{id:b,status:"error",src:null,error:"未配置图片生成服务"});return}try{const A=await t(m);"error"in A?(console.error("[流式预生成] ❌ 生成失败:",A.error),o.value.set(m,{id:b,status:"error",src:null,error:A.error})):o.value.set(m,{id:b,status:"success",src:A.src,error:null})}catch(A){console.error("[流式预生成] 💥 异常:",A),o.value.set(m,{id:b,status:"error",src:null,error:A.message})}};return{streamBuffer:r,isStreamActive:a,streamRequiresConfirmation:i,pendingImages:o,startAIStream:u,streamContent:l,endAIStream:c,cancelAIStream:f,getStreamStatus:d,getPendingImage:m=>{const b=o.value.get(m);return b?b.status==="success"?{src:b.src,error:null}:b.status==="error"?{src:"",error:b.error}:{src:"",error:null,generating:!0}:null}}}const hl={black:"#000000","gray-dark":"#434343","gray-700":"#666666","gray-500":"#999999","gray-400":"#b7b7b7","gray-300":"#cccccc","gray-200":"#d9d9d9","gray-100":"#efefef","gray-50":"#f3f3f3",white:"#ffffff","red-dark":"#980000",red:"#ff0000",orange:"#ff9900",yellow:"#ffff00",green:"#00ff00",cyan:"#00ffff",blue:"#4a86e8","blue-dark":"#0000ff",purple:"#9900ff",magenta:"#ff00ff","red-light":"#e6b8af","red-lighter":"#f4cccc","orange-light":"#fce5cd","yellow-light":"#fff2cc","green-light":"#d9ead3","cyan-light":"#d0e0e3","blue-light":"#c9daf8","blue-lighter":"#cfe2f3","purple-light":"#d9d2e9","pink-light":"#ead1dc","red-pale":"#dd7e6b","red-pale2":"#ea9999","orange-pale":"#f9cb9c","yellow-pale":"#ffe599","green-pale":"#b6d7a8","cyan-pale":"#a2c4c9","blue-pale":"#a4c2f4","blue-pale2":"#9fc5e8","purple-pale":"#b4a7d6","pink-pale":"#d5a6bd"},o_=Object.entries(hl).reduce((e,[t,n])=>(e[n.toLowerCase()]=t,e),{});function u_(e){if(!e)return"";const t=l_(e);if(!t)return"";const n=o_[t.toLowerCase()];return n||t.replace("#","")}function l_(e){if(!e)return null;if(/^#[0-9a-f]{6}$/i.test(e))return e.toLowerCase();const t=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(t){const r=parseInt(t[1]),a=parseInt(t[2]),i=parseInt(t[3]);return`#${((1<<24)+(r<<16)+(a<<8)+i).toString(16).slice(1)}`}const n=e.match(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/);if(n){const r=parseInt(n[1]),a=parseInt(n[2]),i=parseInt(n[3]);return`#${((1<<24)+(r<<16)+(a<<8)+i).toString(16).slice(1)}`}if(hl[e])return hl[e];if(typeof document<"u"){const r=document.createElement("div");r.style.color=e,document.body.appendChild(r);const a=window.getComputedStyle(r).color;document.body.removeChild(r);const i=a.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(i){const o=parseInt(i[1]),u=parseInt(i[2]),l=parseInt(i[3]);return`#${((1<<24)+(o<<16)+(u<<8)+l).toString(16).slice(1)}`}}return null}const c_=xp.TableCell.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),background:{default:null,parseHTML:t=>t.style.backgroundColor||null,renderHTML:t=>t.background?{style:`background-color: ${t.background}`}:{}}}},renderMarkdown(e,t){var a;const n=(a=e.attrs)==null?void 0:a.background,r=t.renderChildren(e.content||[]);if(n){const i=u_(n);if(i)return`::${i}[${r.trim()}]`}return r}}),f_=Mp.TableHeader.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),background:{default:null,parseHTML:t=>t.style.backgroundColor||null,renderHTML:t=>t.background?{style:`background-color: ${t.background}`}:{}}}}});class d_ extends Qm{constructor(t,n){super(t,n),this.updateTableWidth(t),this.setupWrapper()}setupWrapper(){if(this.dom&&this.dom.parentElement){const t=this.dom.parentElement;t.style.overflowX="auto",t.style.width="100%"}}updateTableWidth(t){if(!this.table)return;const n=t.content.child(0);if(!n)return;let r=0,a=!1;n.forEach(i=>{const o=i.attrs.colwidth;o&&Array.isArray(o)&&o.length>0?(a=!0,r+=o.reduce((u,l)=>u+l,0)):r+=this.cellMinWidth||100}),a&&r>0?(this.table.style.width=`${r}px`,this.table.style.minWidth="unset"):(this.table.style.width="auto",this.table.style.minWidth="unset"),this.table.style.tableLayout="fixed",this.table.style.maxWidth="none"}update(t){const n=super.update(t);return n&&(this.updateTableWidth(t),this.setupWrapper()),n}}function h_(e){const t=e.text||"",n=e.marks||[];if(n.length===0)return gl(t);let r=gl(t);return n.forEach(a=>{var i,o,u;switch(a.type){case"textStyle":(i=a.attrs)!=null&&i.color&&(r=`<span style="color: ${a.attrs.color}">${r}</span>`);break;case"highlight":(o=a.attrs)!=null&&o.color?r=`<mark style="background-color: ${a.attrs.color}">${r}</mark>`:r=`<mark>${r}</mark>`;break;case"bold":r=`<strong>${r}</strong>`;break;case"italic":r=`<em>${r}</em>`;break;case"strike":r=`<s>${r}</s>`;break;case"underline":r=`<u>${r}</u>`;break;case"code":r=`<code>${r}</code>`;break;case"link":(u=a.attrs)!=null&&u.href&&(r=`<a href="${gl(a.attrs.href)}">${r}</a>`);break}}),r}function pl(e){return e?e.type==="text"?h_(e):e.type==="paragraph"?e.content&&Array.isArray(e.content)?e.content.map(t=>pl(t)).join(""):"":e.content&&Array.isArray(e.content)?e.content.map(t=>pl(t)).join(""):"":""}function gl(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,n=>t[n])}const p_=Sp.Table.extend({addNodeView(){return({node:e})=>new d_(e,this.options.cellMinWidth)},renderMarkdown(e,t){var o;const n=[];let r=!1;(o=e.content)==null||o.forEach((u,l)=>{var f;const c=[];(f=u.content)==null||f.forEach(d=>{var E,w,C,T;d.type==="tableHeader"&&(r=!0);const p=pl(d),g=(E=d.attrs)==null?void 0:E.background,m=(w=d.attrs)==null?void 0:w.colspan,b=(C=d.attrs)==null?void 0:C.rowspan,A=(T=d.attrs)==null?void 0:T.colwidth;c.push({content:p,background:g,colspan:m,rowspan:b,colwidth:A,isHeader:d.type==="tableHeader"})}),n.push(c)});let a=`
|
|
682
|
+
<table>
|
|
683
|
+
`;if(n.length>0){const u=n[0];u.some(c=>c.colwidth&&Array.isArray(c.colwidth)&&c.colwidth.length>0)&&(a+=` <colgroup>
|
|
684
|
+
`,u.forEach(c=>{if(c.colwidth&&Array.isArray(c.colwidth)&&c.colwidth.length>0){const f=c.colwidth.reduce((d,p)=>d+p,0);a+=` <col width="${f}">
|
|
685
|
+
`}else a+=` <col>
|
|
686
|
+
`}),a+=` </colgroup>
|
|
687
|
+
`)}if(r){a+=` <thead>
|
|
688
|
+
`;const u=n[0];a+=` <tr>
|
|
689
|
+
`,u.forEach(l=>{const c=[];l.background&&c.push(`style="background-color: ${l.background}"`),l.colspan&&l.colspan>1&&c.push(`colspan="${l.colspan}"`),l.rowspan&&l.rowspan>1&&c.push(`rowspan="${l.rowspan}"`);const f=c.length>0?" "+c.join(" "):"";a+=` <th${f}>${l.content}</th>
|
|
690
|
+
`}),a+=` </tr>
|
|
691
|
+
`,a+=` </thead>
|
|
692
|
+
`}const i=r?n.slice(1):n;return i.length>0&&(a+=` <tbody>
|
|
693
|
+
`,i.forEach(u=>{a+=` <tr>
|
|
694
|
+
`,u.forEach(l=>{const c=[];l.background&&c.push(`style="background-color: ${l.background}"`),l.colspan&&l.colspan>1&&c.push(`colspan="${l.colspan}"`),l.rowspan&&l.rowspan>1&&c.push(`rowspan="${l.rowspan}"`);const f=c.length>0?" "+c.join(" "):"",d=l.isHeader?"th":"td";a+=` <${d}${f}>${l.content}</${d}>
|
|
695
|
+
`}),a+=` </tr>
|
|
696
|
+
`}),a+=` </tbody>
|
|
697
|
+
`),a+=`</table>
|
|
698
|
+
|
|
699
|
+
`,a}});var g_=ue.Node.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
700
|
+
|
|
701
|
+
`):""}),m_=g_;const b_=m_.extend({content:"block+"});var Jh=" ",A_=" ",E_=ue.Node.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",ue.mergeAttributes(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(n.length===1&&n[0].type==="image")return t.parseChildren([n[0]]);const r=t.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===Jh||r[0].text===A_)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t)=>{if(!e)return"";const n=Array.isArray(e.content)?e.content:[];return n.length===0?Jh:t.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),y_=E_;const T_=s.defineComponent({__name:"BlockAction",props:ne.nodeViewProps,setup(e){const t=e,n=s.ref(!1),r=s.ref(!1),a=s.computed(()=>{const m=t.node;return m.type.name==="paragraph"?m.content.size===0||m.textContent.trim().length===0:!1}),i=s.computed(()=>{if(typeof t.getPos!="function")return t.node.type.name;const m=t.getPos(),b=t.editor.state.doc.resolve(m);for(let A=b.depth;A>0;A--){const w=b.node(A).type.name;if(["bulletList","orderedList","taskList","blockquote","codeBlock","colorBlock"].includes(w))return w}return t.node.type.name}),o=s.computed(()=>{if(a.value&&i.value==="paragraph")return{component:s.markRaw(Mb)};const m=i.value;if(t.node.type.name==="heading")return{text:`H${t.node.attrs.level}`,class:"heading-icon"};switch(m){case"bulletList":return{component:s.markRaw(vo)};case"orderedList":return{component:s.markRaw(Do)};case"taskList":return{component:s.markRaw(jf)};case"blockquote":return{component:s.markRaw(Qf)};case"codeBlock":return{component:s.markRaw(So)};case"colorBlock":return{component:s.markRaw(_b)};case"paragraph":return{component:s.markRaw(Zn)};default:return{component:s.markRaw(pb)}}}),u=s.computed(()=>{const m=[`node-type-${t.node.type.name}`];return t.node.type.name==="heading"&&m.push(`heading-level-${t.node.attrs.level}`),m}),l=s.computed(()=>{const m=t.node.type.name;return m==="heading"?"div":m==="taskItem"?"li":"p"}),c=s.computed(()=>{if(typeof t.getPos=="function"){const m=t.getPos(),A=t.editor.state.doc.resolve(m).parent;return A.type.name==="listItem"||A.type.name==="taskItem"||A.type.name==="blockquote"}return!1}),f=s.computed(()=>{if(typeof t.getPos=="function"){const m=t.getPos();return t.editor.state.doc.resolve(m).parent.type.name==="colorBlock"}return!1}),d=s.computed(()=>{if(typeof t.getPos=="function"){const m=t.getPos(),b=t.editor.state.doc.resolve(m);for(let A=b.depth;A>0;A--){const E=b.node(A).type.name;if(["tableCell","tableHeader"].includes(E))return!0}}return!1}),p=()=>{r.value||(n.value=!1)},g=()=>{r.value=!r.value};return(m,b)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["block-action-wrapper",u.value]),id:m.node.attrs.id,onMouseover:b[1]||(b[1]=A=>n.value=!0),onMouseleave:p},{default:s.withCtx(()=>[!f.value&&!d.value&&m.editor.isEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["handle-container",{visible:n.value||r.value,"in-list":c.value}]),contenteditable:"false"},[s.createElementVNode("div",{class:"handle-btn",onClick:g},[o.value.component?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.value.component),{key:0,class:"block-type-svg",size:16})):(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["block-type-icon",o.value.class])},s.toDisplayString(o.value.text),3))]),r.value?(s.openBlock(),s.createBlock(j1,{key:0,editor:m.editor,show:r.value,"current-node-pos":typeof m.getPos=="function"?m.getPos():void 0,onClose:b[0]||(b[0]=A=>r.value=!1),class:"block-menu"},null,8,["editor","show","current-node-pos"])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),s.createVNode(s.unref(ne.NodeViewContent),{class:"block-content",as:l.value},null,8,["as"])]),_:1},8,["class","id"]))}}),Zh=Qe(T_,[["__scopeId","data-v-a86d9db0"]]),k_=y_.extend({draggable:!0,renderMarkdown(e,t){return`${t.renderChildren(e.content||[])}
|
|
702
|
+
|
|
703
|
+
`},addNodeView(){return ne.VueNodeViewRenderer(Zh)}});var N_=ue.Node.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,ue.mergeAttributes(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=(n=e.attrs)!=null&&n.level?parseInt(e.attrs.level,10):1,a="#".repeat(r);return e.content?`${a} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>ue.textblockTypeInputRule({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),I_=N_;const w_=I_.extend({draggable:!0,addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),levels:[1,2,3,4,5],HTMLAttributes:{class:"custom-heading"}}},addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),id:{default:null,parseHTML:t=>t.getAttribute("id"),renderHTML:t=>t.id?{id:t.id}:{}}}},renderMarkdown(e,t){const n=e.attrs.level||1,r=t.renderChildren(e.content||[]);return`${"#".repeat(n)} ${r}
|
|
704
|
+
|
|
705
|
+
`},onCreate(){this.editor.state.doc.descendants((e,t)=>{if(e.type.name===this.name&&!e.attrs.id){const n=Math.random().toString(36).substring(2,9);this.editor.commands.updateAttributes(this.name,{id:n})}})},addNodeView(){return ne.VueNodeViewRenderer(Zh)}}),C_=["onClick","title"],__={key:0,class:"check-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},x_=Qe(s.defineComponent({__name:"ColorBlockComponent",props:{node:{},updateAttributes:{type:Function}},setup(e){const t=e,n=s.ref(!1),r=s.ref(!1),a=()=>{setTimeout(()=>{r.value||(n.value=!1)},100)},i=()=>{r.value=!1,n.value=!1},o=u=>{t.updateAttributes({color:u})};return(u,l)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["color-block-wrapper",`color-${e.node.attrs.color}`]),onMouseenter:l[3]||(l[3]=c=>n.value=!0),onMouseleave:a},{default:s.withCtx(()=>[n.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"color-picker-bar",contenteditable:"false",onMouseenter:l[0]||(l[0]=c=>r.value=!0),onMouseleave:i},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(jr),c=>(s.openBlock(),s.createElementBlock("div",{key:c.name,class:s.normalizeClass(["color-option",[`option-${c.name}`,{active:e.node.attrs.color===c.name}]]),onClick:s.withModifiers(f=>o(c.name),["stop","prevent"]),title:c.label},[e.node.attrs.color===c.name?(s.openBlock(),s.createElementBlock("svg",__,[...l[4]||(l[4]=[s.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):s.createCommentVNode("",!0)],10,C_))),128))],32)):s.createCommentVNode("",!0),s.createVNode(s.unref(ne.NodeViewContent),{class:"color-block-content",onFocusin:l[1]||(l[1]=c=>n.value=!1),onKeydown:l[2]||(l[2]=c=>n.value=!1)})]),_:1},8,["class"]))}}),[["__scopeId","data-v-b451a37e"]]);function ml(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var cr=ml();function Xh(e){cr=e}var fr={exec:()=>null};function Ee(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(At.caret,"$1"),n=n.replace(a,o),r},getRegex:()=>new RegExp(n,t)};return r}var M_=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),At={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},S_=/^(?:[ \t]*(?:\n|$))+/,D_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,v_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ya=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,O_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bl=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ep=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tp=Ee(ep).replace(/bull/g,bl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L_=Ee(ep).replace(/bull/g,bl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Al=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,B_=/^[^\n]+/,El=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,R_=Ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",El).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P_=Ee(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bl).getRegex(),Ns="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yl=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,U_=Ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yl).replace("tag",Ns).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),np=Ee(Al).replace("hr",Ya).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ns).getRegex(),F_=Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",np).getRegex(),Tl={blockquote:F_,code:D_,def:R_,fences:v_,heading:O_,hr:Ya,html:U_,lheading:tp,list:P_,newline:S_,paragraph:np,table:fr,text:B_},rp=Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ya).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ns).getRegex(),H_={...Tl,lheading:L_,table:rp,paragraph:Ee(Al).replace("hr",Ya).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ns).getRegex()},z_={...Tl,html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yl).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(Al).replace("hr",Ya).replace("heading",` *#{1,6} *[^
|
|
706
|
+
]`).replace("lheading",tp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},j_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,V_=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ap=/^( {2,}|\\)\n(?!\s*$)/,Y_=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Is=/[\p{P}\p{S}]/u,kl=/[\s\p{P}\p{S}]/u,ip=/[^\s\p{P}\p{S}]/u,Q_=Ee(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kl).getRegex(),sp=/(?!~)[\p{P}\p{S}]/u,K_=/(?!~)[\s\p{P}\p{S}]/u,W_=/(?:[^\s\p{P}\p{S}]|~)/u,op=/(?![*_])[\p{P}\p{S}]/u,G_=/(?![*_])[\s\p{P}\p{S}]/u,$_=/(?:[^\s\p{P}\p{S}]|[*_])/u,q_=Ee(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",M_?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),up=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J_=Ee(up,"u").replace(/punct/g,Is).getRegex(),Z_=Ee(up,"u").replace(/punct/g,sp).getRegex(),lp="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",X_=Ee(lp,"gu").replace(/notPunctSpace/g,ip).replace(/punctSpace/g,kl).replace(/punct/g,Is).getRegex(),ex=Ee(lp,"gu").replace(/notPunctSpace/g,W_).replace(/punctSpace/g,K_).replace(/punct/g,sp).getRegex(),tx=Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ip).replace(/punctSpace/g,kl).replace(/punct/g,Is).getRegex(),nx=Ee(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,op).getRegex(),rx="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ax=Ee(rx,"gu").replace(/notPunctSpace/g,$_).replace(/punctSpace/g,G_).replace(/punct/g,op).getRegex(),ix=Ee(/\\(punct)/,"gu").replace(/punct/g,Is).getRegex(),sx=Ee(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ox=Ee(yl).replace("(?:-->|$)","-->").getRegex(),ux=Ee("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ox).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ws=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,lx=Ee(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ws).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cp=Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",ws).replace("ref",El).getRegex(),fp=Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",El).getRegex(),cx=Ee("reflink|nolink(?!\\()","g").replace("reflink",cp).replace("nolink",fp).getRegex(),dp=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Nl={_backpedal:fr,anyPunctuation:ix,autolink:sx,blockSkip:q_,br:ap,code:V_,del:fr,delLDelim:fr,delRDelim:fr,emStrongLDelim:J_,emStrongRDelimAst:X_,emStrongRDelimUnd:tx,escape:j_,link:lx,nolink:fp,punctuation:Q_,reflink:cp,reflinkSearch:cx,tag:ux,text:Y_,url:fr},fx={...Nl,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",ws).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ws).getRegex()},Il={...Nl,emStrongRDelimAst:ex,emStrongLDelim:Z_,delLDelim:nx,delRDelim:ax,url:Ee(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",dp).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ee(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",dp).getRegex()},dx={...Il,br:Ee(ap).replace("{2,}","*").getRegex(),text:Ee(Il.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Cs={normal:Tl,gfm:H_,pedantic:z_},Qa={normal:Nl,gfm:Il,breaks:dx,pedantic:fx},hx={"&":"&","<":"<",">":">",'"':""","'":"'"},hp=e=>hx[e];function dn(e,t){if(t){if(At.escapeTest.test(e))return e.replace(At.escapeReplace,hp)}else if(At.escapeTestNoEncode.test(e))return e.replace(At.escapeReplaceNoEncode,hp);return e}function pp(e){try{e=encodeURI(e).replace(At.percentDecode,"%")}catch{return null}return e}function gp(e,t){var i;let n=e.replace(At.findPipe,(o,u,l)=>{let c=!1,f=u;for(;--f>=0&&l[f]==="\\";)c=!c;return c?"|":" |"}),r=n.split(At.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(At.slashPipe,"|");return r}function Ka(e,t,n){let r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function px(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function gx(e,t=0){let n=t,r="";for(let a of e)if(a===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=a,n++;return r}function mp(e,t,n,r,a){let i=t.href,o=t.title||null,u=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,l}function mx(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
|
|
707
|
+
`).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[u]=o;return u.length>=a.length?i.slice(a.length):i}).join(`
|
|
708
|
+
`)}var _s=class{constructor(e){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=e||cr}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ka(n,`
|
|
709
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=mx(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ka(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ka(t[0],`
|
|
710
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ka(t[0],`
|
|
711
|
+
`).split(`
|
|
712
|
+
`),r="",a="",i=[];for(;n.length>0;){let o=!1,u=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))u.push(n[l]),o=!0;else if(!o)u.push(n[l]);else break;n=n.slice(l);let c=u.join(`
|
|
713
|
+
`),f=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
714
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
715
|
+
${c}`:c,a=a?`${a}
|
|
716
|
+
${f}`:f;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,i,!0),this.lexer.state.top=d,n.length===0)break;let p=i.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let g=p,m=g.raw+`
|
|
717
|
+
`+n.join(`
|
|
718
|
+
`),b=this.blockquote(m);i[i.length-1]=b,r=r.substring(0,r.length-g.raw.length)+b.raw,a=a.substring(0,a.length-g.text.length)+b.text;break}else if((p==null?void 0:p.type)==="list"){let g=p,m=g.raw+`
|
|
719
|
+
`+n.join(`
|
|
720
|
+
`),b=this.list(m);i[i.length-1]=b,r=r.substring(0,r.length-p.raw.length)+b.raw,a=a.substring(0,a.length-g.raw.length)+b.raw,n=m.substring(i.at(-1).raw.length).split(`
|
|
721
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let a=t[1].trim(),i=a.length>1,o={type:"list",raw:"",ordered:i,start:i?+a.slice(0,-1):"",loose:!1,items:[]};a=i?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=i?a:"[*+-]");let u=this.rules.other.listItemRegex(a),l=!1;for(;e;){let f=!1,d="",p="";if(!(t=u.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let g=gx(t[2].split(`
|
|
722
|
+
`,1)[0],t[1].length),m=e.split(`
|
|
723
|
+
`,1)[0],b=!g.trim(),A=0;if(this.options.pedantic?(A=2,p=g.trimStart()):b?A=t[1].length+1:(A=g.search(this.rules.other.nonSpaceChar),A=A>4?1:A,p=g.slice(A),A+=t[1].length),b&&this.rules.other.blankLine.test(m)&&(d+=m+`
|
|
724
|
+
`,e=e.substring(m.length+1),f=!0),!f){let E=this.rules.other.nextBulletRegex(A),w=this.rules.other.hrRegex(A),C=this.rules.other.fencesBeginRegex(A),T=this.rules.other.headingBeginRegex(A),N=this.rules.other.htmlBeginRegex(A),D=this.rules.other.blockquoteBeginRegex(A);for(;e;){let B=e.split(`
|
|
725
|
+
`,1)[0],v;if(m=B,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),v=m):v=m.replace(this.rules.other.tabCharGlobal," "),C.test(m)||T.test(m)||N.test(m)||D.test(m)||E.test(m)||w.test(m))break;if(v.search(this.rules.other.nonSpaceChar)>=A||!m.trim())p+=`
|
|
726
|
+
`+v.slice(A);else{if(b||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(g)||T.test(g)||w.test(g))break;p+=`
|
|
727
|
+
`+m}b=!m.trim(),d+=B+`
|
|
728
|
+
`,e=e.substring(B.length+1),g=v.slice(A)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),o.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),o.raw+=d}let c=o.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let f of o.items){if(this.lexer.state.top=!1,f.tokens=this.lexer.blockTokens(f.text,[]),f.task){if(f.text=f.text.replace(this.rules.other.listReplaceTask,""),((n=f.tokens[0])==null?void 0:n.type)==="text"||((r=f.tokens[0])==null?void 0:r.type)==="paragraph"){f.tokens[0].raw=f.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),f.tokens[0].text=f.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(f.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};f.checked=p.checked,o.loose?f.tokens[0]&&["paragraph","text"].includes(f.tokens[0].type)&&"tokens"in f.tokens[0]&&f.tokens[0].tokens?(f.tokens[0].raw=p.raw+f.tokens[0].raw,f.tokens[0].text=p.raw+f.tokens[0].text,f.tokens[0].tokens.unshift(p)):f.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):f.tokens.unshift(p)}}if(!o.loose){let d=f.tokens.filter(g=>g.type==="space"),p=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));o.loose=p}}if(o.loose)for(let f of o.items){f.loose=!0;for(let d of f.tokens)d.type==="text"&&(d.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:a}}}table(e){var o;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=gp(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
729
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let u of r)this.rules.other.tableAlignRight.test(u)?i.align.push("right"):this.rules.other.tableAlignCenter.test(u)?i.align.push("center"):this.rules.other.tableAlignLeft.test(u)?i.align.push("left"):i.align.push(null);for(let u=0;u<n.length;u++)i.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:i.align[u]});for(let u of a)i.rows.push(gp(u,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
730
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Ka(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=px(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],a=i[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),mp(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[r.toLowerCase()];if(!a){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return mp(n,a,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,o,u=a,l=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){u+=o;continue}else if((r[5]||r[6])&&a%3&&!((a+o)%3)){l+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u+l);let f=[...r[0]][0].length,d=e.slice(0,a+r.index+f+o);if(Math.min(a,o)%2){let g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,o,u=a,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+a);(r=l.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(o=[...i].length,o!==a))continue;if(r[3]||r[4]){u+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u);let c=[...r[0]][0].length,f=e.slice(0,a+r.index+c+o),d=f.slice(a,-a);return{type:"del",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,a;if(t[2]==="@")r=t[0],a="mailto:"+r;else{let i;do i=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(i!==t[0]);r=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},$t=class Ml{constructor(t){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"inlineQueue");Oe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||cr,this.options.tokenizer=this.options.tokenizer||new _s,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:At,block:Cs.normal,inline:Qa.normal};this.options.pedantic?(n.block=Cs.pedantic,n.inline=Qa.pedantic):this.options.gfm&&(n.block=Cs.gfm,this.options.breaks?n.inline=Qa.breaks:n.inline=Qa.gfm),this.tokenizer.rules=n}static get rules(){return{block:Cs,inline:Qa}}static lex(t,n){return new Ml(n).lex(t)}static lexInline(t,n){return new Ml(n).inlineTokens(t)}lex(t){t=t.replace(At.carriageReturn,`
|
|
731
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,o;for(this.options.pedantic&&(t=t.replace(At.tabCharGlobal," ").replace(At.spaceLine,""));t;){let u;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(u=c.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(t)){t=t.substring(u.raw.length);let c=n.at(-1);u.raw.length===1&&c!==void 0?c.raw+=`
|
|
732
|
+
`:n.push(u);continue}if(u=this.tokenizer.code(t)){t=t.substring(u.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
733
|
+
`)?"":`
|
|
734
|
+
`)+u.raw,c.text+=`
|
|
735
|
+
`+u.text,this.inlineQueue.at(-1).src=c.text):n.push(u);continue}if(u=this.tokenizer.fences(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.heading(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.hr(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.blockquote(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.list(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.html(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.def(t)){t=t.substring(u.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
736
|
+
`)?"":`
|
|
737
|
+
`)+u.raw,c.text+=`
|
|
738
|
+
`+u.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},n.push(u));continue}if(u=this.tokenizer.table(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.lheading(t)){t=t.substring(u.raw.length),n.push(u);continue}let l=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0,f=t.slice(1),d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(u=this.tokenizer.paragraph(l))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
739
|
+
`)?"":`
|
|
740
|
+
`)+u.raw,c.text+=`
|
|
741
|
+
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(u),r=l.length!==t.length,t=t.substring(u.raw.length);continue}if(u=this.tokenizer.text(t)){t=t.substring(u.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
742
|
+
`)?"":`
|
|
743
|
+
`)+u.raw,c.text+=`
|
|
744
|
+
`+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(u);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var l,c,f,d,p;let r=t,a=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)g.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=a[2]?a[2].length:0,r=r.slice(0,a.index+i)+"["+"a".repeat(a[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let o=!1,u="";for(;t;){o||(u=""),o=!1;let g;if((d=(f=this.options.extensions)==null?void 0:f.inline)!=null&&d.some(b=>(g=b.call({lexer:this},t,n))?(t=t.substring(g.raw.length),n.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let b=n.at(-1);g.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):n.push(g);continue}if(g=this.tokenizer.emStrong(t,r,u)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.del(t,r,u)){t=t.substring(g.raw.length),n.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),n.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),n.push(g);continue}let m=t;if((p=this.options.extensions)!=null&&p.startInline){let b=1/0,A=t.slice(1),E;this.options.extensions.startInline.forEach(w=>{E=w.call({lexer:this},A),typeof E=="number"&&E>=0&&(b=Math.min(b,E))}),b<1/0&&b>=0&&(m=t.substring(0,b+1))}if(g=this.tokenizer.inlineText(m)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(u=g.raw.slice(-1)),o=!0;let b=n.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):n.push(g);continue}if(t){let b="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return n}},xs=class{constructor(e){Oe(this,"options");Oe(this,"parser");this.options=e||cr}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let r=(i=(t||"").match(At.notSpaceStart))==null?void 0:i[0],a=e.replace(At.endingNewline,"")+`
|
|
745
|
+
`;return r?'<pre><code class="language-'+dn(r)+'">'+(n?a:dn(a,!0))+`</code></pre>
|
|
746
|
+
`:"<pre><code>"+(n?a:dn(a,!0))+`</code></pre>
|
|
747
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
748
|
+
${this.parser.parse(e)}</blockquote>
|
|
749
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
750
|
+
`}hr(e){return`<hr>
|
|
751
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let o=0;o<e.items.length;o++){let u=e.items[o];r+=this.listitem(u)}let a=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+a+i+`>
|
|
752
|
+
`+r+"</"+a+`>
|
|
753
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
754
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
755
|
+
`}table(e){let t="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);t+=this.tablerow({text:n});let r="";for(let a=0;a<e.rows.length;a++){let i=e.rows[a];n="";for(let o=0;o<i.length;o++)n+=this.tablecell(i[o]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
756
|
+
<thead>
|
|
757
|
+
`+t+`</thead>
|
|
758
|
+
`+r+`</table>
|
|
759
|
+
`}tablerow({text:e}){return`<tr>
|
|
760
|
+
${e}</tr>
|
|
761
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
762
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${dn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),a=pp(e);if(a===null)return r;e=a;let i='<a href="'+e+'"';return t&&(i+=' title="'+dn(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let a=pp(e);if(a===null)return dn(n);e=a;let i=`<img src="${e}" alt="${dn(n)}"`;return t&&(i+=` title="${dn(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dn(e.text)}},wl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},qt=class Sl{constructor(t){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=t||cr,this.options.renderer=this.options.renderer||new xs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wl}static parse(t,n){return new Sl(n).parse(t)}static parseInline(t,n){return new Sl(n).parseInline(t)}parse(t){var r,a;let n="";for(let i=0;i<t.length;i++){let o=t[i];if((a=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&a[o.type]){let l=o,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=c||"";continue}}let u=o;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,n=this.renderer){var a,i;let r="";for(let o=0;o<t.length;o++){let u=t[o];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[u.type]){let c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(u.type)){r+=c||"";continue}}let l=u;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Wa=(Ms=class{constructor(e){Oe(this,"options");Oe(this,"block");this.options=e||cr}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?$t.lex:$t.lexInline}provideParser(){return this.block?qt.parse:qt.parseInline}},Oe(Ms,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Oe(Ms,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ms),bx=class{constructor(...e){Oe(this,"defaults",ml());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",qt);Oe(this,"Renderer",xs);Oe(this,"TextRenderer",wl);Oe(this,"Lexer",$t);Oe(this,"Tokenizer",_s);Oe(this,"Hooks",Wa);this.use(...e)}walkTokens(e,t){var r,a;let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let o=i;for(let u of o.header)n=n.concat(this.walkTokens(u.tokens,t));for(let u of o.rows)for(let l of u)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let o=i;n=n.concat(this.walkTokens(o.items,t));break}default:{let o=i;(a=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(u=>{let l=o[u].flat(1/0);n=n.concat(this.walkTokens(l,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...o){let u=a.renderer.apply(this,o);return u===!1&&(u=i.apply(this,o)),u}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),n.renderer){let a=this.defaults.renderer||new xs(this.defaults);for(let i in n.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,u=n.renderer[o],l=a[o];a[o]=(...c)=>{let f=u.apply(a,c);return f===!1&&(f=l.apply(a,c)),f||""}}r.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new _s(this.defaults);for(let i in n.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,u=n.tokenizer[o],l=a[o];a[o]=(...c)=>{let f=u.apply(a,c);return f===!1&&(f=l.apply(a,c)),f}}r.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Wa;for(let i in n.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,u=n.hooks[o],l=a[o];Wa.passThroughHooks.has(i)?a[o]=c=>{if(this.defaults.async&&Wa.passThroughHooksRespectAsync.has(i))return(async()=>{let d=await u.call(a,c);return l.call(a,d)})();let f=u.call(a,c);return l.call(a,f)}:a[o]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await u.apply(a,c);return d===!1&&(d=await l.apply(a,c)),d})();let f=u.apply(a,c);return f===!1&&(f=l.apply(a,c)),f}}r.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let u=[];return u.push(i.call(this,o)),a&&(u=u.concat(a.call(this,o))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return $t.lex(e,t??this.defaults)}parser(e,t){return qt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},a={...this.defaults,...r},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(t):t,u=await(a.hooks?await a.hooks.provideLexer():e?$t.lex:$t.lexInline)(o,a),l=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let c=await(a.hooks?await a.hooks.provideParser():e?qt.parse:qt.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(c):c})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let o=(a.hooks?a.hooks.provideLexer():e?$t.lex:$t.lexInline)(t,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():e?qt.parse:qt.parseInline)(o,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=`
|
|
763
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+dn(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},dr=new bx;function me(e,t){return dr.parse(e,t)}me.options=me.setOptions=function(e){return dr.setOptions(e),me.defaults=dr.defaults,Xh(me.defaults),me},me.getDefaults=ml,me.defaults=cr,me.use=function(...e){return dr.use(...e),me.defaults=dr.defaults,Xh(me.defaults),me},me.walkTokens=function(e,t){return dr.walkTokens(e,t)},me.parseInline=dr.parseInline,me.Parser=qt,me.parser=qt.parse,me.Renderer=xs,me.TextRenderer=wl,me.Lexer=$t,me.lexer=$t.lex,me.Tokenizer=_s,me.Hooks=Wa,me.parse=me,me.options,me.setOptions,me.use,me.walkTokens,me.parseInline,qt.parse,$t.lex;const jr=[{name:"gray",bg:"#f6f6f5",darkBg:"#373737",textColor:"#5c5c5c",borderColor:"#a0a0a0",label:"灰色"},{name:"blue",bg:"#eff6ff",darkBg:"#1e3a5f",textColor:"#2563eb",borderColor:"#bfdbfe",label:"蓝色"},{name:"cyan",bg:"#ecfeff",darkBg:"#1a4a4f",textColor:"#0891b2",borderColor:"#22d3ee",label:"天蓝"},{name:"green",bg:"#f0fdf4",darkBg:"#1e3d1e",textColor:"#16a34a",borderColor:"#4ade80",label:"绿色"},{name:"lime",bg:"#f7fee7",darkBg:"#2d3d1e",textColor:"#65a30d",borderColor:"#a3e635",label:"青柠"},{name:"yellow",bg:"#fefce8",darkBg:"#3d3a1e",textColor:"#ca8a04",borderColor:"#facc15",label:"黄色"},{name:"cream",bg:"#fffbeb",darkBg:"#3a3425",textColor:"#b45309",borderColor:"#fbbf24",label:"米黄"},{name:"orange",bg:"#fff7ed",darkBg:"#3d2e1e",textColor:"#ea580c",borderColor:"#fb923c",label:"橙色"},{name:"pink",bg:"#fdf2f8",darkBg:"#3d1e2e",textColor:"#db2777",borderColor:"#f472b6",label:"粉色"},{name:"purple",bg:"#faf5ff",darkBg:"#2e1e3d",textColor:"#9333ea",borderColor:"#c084fc",label:"紫色"}],Ax=jr.map(e=>e.name),Ex=ue.Node.create({name:"colorBlock",group:"block",content:"block+",defining:!0,addAttributes(){return{color:{default:"cyan",parseHTML:e=>e.getAttribute("data-color")||"cyan",renderHTML:e=>({"data-color":e.color})}}},renderMarkdown(e,t){var i;const n=((i=e.attrs)==null?void 0:i.color)||"cyan",r=t.renderChildren(e.content||[]),a=me.parse(r.trim());return`<div data-type="colorBlock" data-color="${n}">${a}</div>
|
|
764
|
+
|
|
765
|
+
`},parseHTML(){return[{tag:'div[data-type="color-block"]'},{tag:'div[data-type="colorBlock"]',getAttrs:e=>{if(typeof e=="string")return!1;const t=e.getAttribute("data-color");return t?{color:t}:!1}}]},renderHTML({node:e,HTMLAttributes:t}){const n=jr.find(r=>r.name===e.attrs.color)||jr[2];return["div",ue.mergeAttributes(t,{"data-type":"color-block","data-color":e.attrs.color,class:`color-block-wrapper color-${e.attrs.color}`,style:`background-color: ${n.bg}; color: ${n.textColor}; border: 1px solid ${n.borderColor}; border-radius: 16px; padding: 16px 20px; margin: 12px 0;`}),0]},addCommands(){return{setColorBlock:(e={})=>({commands:t})=>t.wrapIn(this.name,e),updateColorBlock:e=>({commands:t})=>t.updateAttributes(this.name,e)}},addNodeView(){return ne.VueNodeViewRenderer(x_)},addKeyboardShortcuts(){return{Backspace:()=>{const{state:e}=this.editor,{selection:t}=e,{$from:n}=t;let r=-1;for(let o=n.depth;o>0;o--)if(n.node(o).type.name==="colorBlock"){r=o;break}if(r===-1)return!1;const a=n.node(r);return n.pos-n.start(r)===1&&a.content.size===2?this.editor.chain().lift(this.name).run():!1}}},addInputRules(){return[new ue.InputRule({find:/^:::(\w+)\s$/,handler:({state:e,range:t,match:n})=>{const r=n[1];if(!Ax.includes(r))return null;const{tr:a}=e;a.delete(t.from,t.to),this.editor.chain().deleteRange({from:t.from,to:t.to}).insertContent({type:"colorBlock",attrs:{color:r},content:[{type:"paragraph"}]}).run()}})]}}),yx=["href"],Tx={class:"link-card-icon"},kx={class:"link-card-content"},Nx={class:"link-card-title"},Ix={class:"link-card-url"},wx={class:"link-card-arrow"},Cx={key:0,class:"link-toolbar",contenteditable:"false"},_x={key:1,class:"link-editor-popup",contenteditable:"false"},xx={class:"editor-field"},Mx={class:"editor-field"},Sx={class:"editor-actions"},Dx=["disabled"],vx=Qe(s.defineComponent({__name:"LinkCardBlockComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=e,n=s.ref(!t.node.attrs.url),r=s.ref(t.node.attrs.url||""),a=s.ref(t.node.attrs.title||""),i=s.ref(null),o=s.computed(()=>{if(t.node.attrs.title)return t.node.attrs.title;try{return new URL(t.node.attrs.url).hostname}catch{return t.node.attrs.url||"链接"}}),u=()=>{const{url:d,title:p}=t.node.attrs;t.deleteNode(),t.editor.chain().focus().insertContent({type:"paragraph",content:[{type:"linkCardInline",attrs:{url:d,title:p}}]}).run()},l=()=>{r.value=t.node.attrs.url||"",a.value=t.node.attrs.title||"",n.value=!0,s.nextTick(()=>{var d,p;(d=i.value)==null||d.focus(),(p=i.value)==null||p.select()})},c=()=>{if(!r.value.trim())return;let d=r.value.trim();!d.startsWith("http://")&&!d.startsWith("https://")&&(d="https://"+d),t.updateAttributes({url:d,title:a.value.trim()}),n.value=!1},f=()=>{t.node.attrs.url?n.value=!1:t.deleteNode()};return(d,p)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"link-card-block-wrapper"},{default:s.withCtx(()=>[s.createElementVNode("a",{class:"link-card",href:e.node.attrs.url,target:"_blank",rel:"noopener noreferrer",onClick:p[0]||(p[0]=s.withModifiers(()=>{},["stop"])),onDblclick:p[1]||(p[1]=s.withModifiers(g=>e.editor.isEditable?l():null,["prevent"])),contenteditable:"false"},[s.createElementVNode("div",Tx,[s.createVNode(s.unref(db),{size:18})]),s.createElementVNode("div",kx,[s.createElementVNode("div",Nx,s.toDisplayString(o.value),1),s.createElementVNode("div",Ix,s.toDisplayString(e.node.attrs.url),1)]),s.createElementVNode("div",wx,[s.createVNode(s.unref(Pf),{size:16})])],40,yx),!n.value&&e.editor.isEditable?(s.openBlock(),s.createElementBlock("div",Cx,[s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(u,["stop","prevent"]),title:"转为文本链接"},[s.createVNode(s.unref(Zn),{size:14})]),p[5]||(p[5]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(l,["stop","prevent"]),title:"编辑"},[s.createVNode(s.unref(Ni),{size:14})]),s.createElementVNode("button",{class:"toolbar-btn delete-btn",onClick:p[2]||(p[2]=s.withModifiers((...g)=>e.deleteNode&&e.deleteNode(...g),["stop","prevent"])),title:"删除"},[s.createVNode(s.unref(An),{size:14})])])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createElementBlock("div",_x,[s.createElementVNode("div",xx,[p[6]||(p[6]=s.createElementVNode("label",null,"链接地址",-1)),s.withDirectives(s.createElementVNode("input",{ref_key:"urlInputRef",ref:i,"onUpdate:modelValue":p[3]||(p[3]=g=>r.value=g),type:"text",placeholder:"https://example.com",onKeydown:[s.withKeys(c,["enter"]),s.withKeys(f,["esc"])]},null,544),[[s.vModelText,r.value]])]),s.createElementVNode("div",Mx,[p[7]||(p[7]=s.createElementVNode("label",null,"显示文本",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[4]||(p[4]=g=>a.value=g),type:"text",placeholder:"链接文本",onKeydown:[s.withKeys(c,["enter"]),s.withKeys(f,["esc"])]},null,544),[[s.vModelText,a.value]])]),s.createElementVNode("div",Sx,[s.createElementVNode("button",{class:"btn-cancel",onClick:f},"取消"),s.createElementVNode("button",{class:"btn-save",onClick:c,disabled:!r.value.trim()},"保存",8,Dx)])])):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-02de158b"]]),Ox=ue.Node.create({name:"linkCardBlock",group:"block",atom:!0,draggable:!0,addAttributes(){return{url:{default:"",parseHTML:e=>e.getAttribute("data-url")||"",renderHTML:e=>({"data-url":e.url})},title:{default:"",parseHTML:e=>e.getAttribute("data-title")||"",renderHTML:e=>({"data-title":e.title})}}},parseHTML(){return[{tag:'div[data-type="link-card-block"]'},{tag:'div[data-type="linkCardBlock"]',getAttrs:e=>{if(typeof e=="string")return!1;const t=e.getAttribute("data-url")||"",n=e.getAttribute("data-title")||"";return{url:t,title:n}}}]},renderMarkdown(e){const{url:t,title:n}=e.attrs||{};return`<div data-type="linkCardBlock" data-url="${t||""}" data-title="${n||""}"></div>
|
|
766
|
+
|
|
767
|
+
`},renderHTML({node:e,HTMLAttributes:t}){const{url:n,title:r}=e.attrs,a=r||n;return["div",ue.mergeAttributes(t,{"data-type":"link-card-block",class:"link-card-block",style:"display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; margin: 12px 0; text-decoration: none; transition: all 0.2s ease;"}),["a",{href:n,target:"_blank",rel:"noopener noreferrer",style:"display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; flex: 1;"},["span",{style:"font-weight: 500; color: #1f2937;"},a],["span",{style:"font-size: 0.875em; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"},n]]]},addCommands(){return{setLinkCardBlock:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e}),convertToInlineLink:()=>({state:e,chain:t})=>{const{selection:n}=e,r=e.doc.nodeAt(n.from);if((r==null?void 0:r.type.name)!==this.name)return!1;const{url:a,title:i}=r.attrs;return t().deleteSelection().insertContent({type:"linkCardInline",attrs:{url:a,title:i}}).run()}}},addNodeView(){return ne.VueNodeViewRenderer(vx)},addInputRules(){return[new ue.InputRule({find:/@\[([^\]]*)\]\(([^)]+)\)\s$/,handler:({state:e,range:t,match:n})=>{const r=n[1],a=n[2];this.editor.chain().deleteRange({from:t.from,to:t.to}).insertContent({type:"linkCardBlock",attrs:{url:a,title:r}}).run()}})]}}),Lx=["href"],Bx={key:0,class:"link-toolbar",contenteditable:"false"},Rx={key:1,class:"link-editor-popup",contenteditable:"false"},Px={class:"editor-field"},Ux={class:"editor-field"},Fx={class:"editor-actions"},Hx=["disabled"],zx=Qe(s.defineComponent({__name:"LinkCardInlineComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=e,n=s.ref(!t.node.attrs.url),r=s.ref(t.node.attrs.url||""),a=s.ref(t.node.attrs.title||""),i=s.ref(null),o=s.computed(()=>{if(t.node.attrs.title)return t.node.attrs.title;try{return new URL(t.node.attrs.url).hostname}catch{return t.node.attrs.url||"链接"}}),u=()=>{const{url:d,title:p}=t.node.attrs,g=t.getPos(),m=t.node.nodeSize;t.editor.chain().focus().deleteRange({from:g,to:g+m}).insertContentAt(g,{type:"linkCardBlock",attrs:{url:d,title:p}}).run()},l=()=>{r.value=t.node.attrs.url||"",a.value=t.node.attrs.title||"",n.value=!0,s.nextTick(()=>{var d,p;(d=i.value)==null||d.focus(),(p=i.value)==null||p.select()})},c=()=>{if(!r.value.trim())return;let d=r.value.trim();!d.startsWith("http://")&&!d.startsWith("https://")&&(d="https://"+d),t.updateAttributes({url:d,title:a.value.trim()}),n.value=!1},f=()=>{t.node.attrs.url?n.value=!1:t.deleteNode()};return(d,p)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"link-inline-wrapper",as:"span"},{default:s.withCtx(()=>[s.createElementVNode("a",{class:"link-inline",href:e.node.attrs.url,target:"_blank",rel:"noopener noreferrer",onClick:p[0]||(p[0]=s.withModifiers(()=>{},["stop"])),onDblclick:p[1]||(p[1]=s.withModifiers(g=>e.editor.isEditable?l():null,["prevent"])),contenteditable:"false"},s.toDisplayString(o.value),41,Lx),!n.value&&e.editor.isEditable?(s.openBlock(),s.createElementBlock("div",Bx,[s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(u,["stop","prevent"]),title:"转为卡片"},[s.createVNode(s.unref(kb),{size:14})]),p[5]||(p[5]=s.createElementVNode("div",{class:"toolbar-divider"},null,-1)),s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(l,["stop","prevent"]),title:"编辑"},[s.createVNode(s.unref(Ni),{size:14})]),s.createElementVNode("button",{class:"toolbar-btn delete-btn",onClick:p[2]||(p[2]=s.withModifiers((...g)=>e.deleteNode&&e.deleteNode(...g),["stop","prevent"])),title:"删除"},[s.createVNode(s.unref(An),{size:14})])])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createElementBlock("div",Rx,[s.createElementVNode("div",Px,[p[6]||(p[6]=s.createElementVNode("label",null,"链接地址",-1)),s.withDirectives(s.createElementVNode("input",{ref_key:"urlInputRef",ref:i,"onUpdate:modelValue":p[3]||(p[3]=g=>r.value=g),type:"text",placeholder:"https://example.com",onKeydown:[s.withKeys(c,["enter"]),s.withKeys(f,["esc"])]},null,544),[[s.vModelText,r.value]])]),s.createElementVNode("div",Ux,[p[7]||(p[7]=s.createElementVNode("label",null,"显示文本",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":p[4]||(p[4]=g=>a.value=g),type:"text",placeholder:"链接文本",onKeydown:[s.withKeys(c,["enter"]),s.withKeys(f,["esc"])]},null,544),[[s.vModelText,a.value]])]),s.createElementVNode("div",Fx,[s.createElementVNode("button",{class:"btn-cancel",onClick:f},"取消"),s.createElementVNode("button",{class:"btn-save",onClick:c,disabled:!r.value.trim()},"保存",8,Hx)])])):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-98351105"]]),jx=ue.Node.create({name:"linkCardInline",group:"inline",inline:!0,atom:!0,addAttributes(){return{url:{default:"",parseHTML:e=>e.getAttribute("data-url")||"",renderHTML:e=>({"data-url":e.url})},title:{default:"",parseHTML:e=>e.getAttribute("data-title")||"",renderHTML:e=>({"data-title":e.title})}}},parseHTML(){return[{tag:'span[data-type="link-card-inline"]'}]},renderHTML({HTMLAttributes:e}){return["span",ue.mergeAttributes(e,{"data-type":"link-card-inline"})]},addCommands(){return{setLinkCardInline:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e}),convertToBlockCard:()=>({state:e,chain:t})=>{const{selection:n}=e,r=e.doc.nodeAt(n.from);if((r==null?void 0:r.type.name)!==this.name)return!1;const{url:a,title:i}=r.attrs;return t().deleteSelection().insertContent({type:"linkCardBlock",attrs:{url:a,title:i}}).run()}}},addNodeView(){return ne.VueNodeViewRenderer(zx)}}),Vx={key:0,class:"video-player",contenteditable:"false"},Yx=["src"],Qx={class:"video-empty-icon"},Kx={key:2,class:"video-toolbar",contenteditable:"false"},Wx={key:3,class:"video-editor-popup",contenteditable:"false"},Gx={class:"editor-header"},$x={class:"editor-field"},qx={key:0,class:"editor-preview"},Jx={class:"preview-id"},Zx={class:"editor-actions"},Xx=["disabled"],eM=Qe(s.defineComponent({__name:"VideoEmbedComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=e,n=s.ref(!t.node.attrs.url),r=s.ref(t.node.attrs.url||""),a=s.ref(null),i=s.computed(()=>Vr(t.node.attrs.url).embedUrl),o=s.computed(()=>{switch(t.node.attrs.platform){case"bilibili":return"Bilibili";case"youtube":return"YouTube";default:return"视频"}}),u=s.computed(()=>{switch(t.node.attrs.platform){case"bilibili":return Vf;case"youtube":return Wf;default:return wi}}),l=s.computed(()=>Vr(r.value)),c=()=>{r.value=t.node.attrs.url||"",n.value=!0,s.nextTick(()=>{var p,g;(p=a.value)==null||p.focus(),(g=a.value)==null||g.select()})},f=()=>{if(!r.value.trim())return;const p=Vr(r.value.trim());p.platform!=="unknown"&&(t.updateAttributes({url:r.value.trim(),platform:p.platform,videoId:p.videoId}),n.value=!1)},d=()=>{t.node.attrs.url?n.value=!1:t.deleteNode()};return(p,g)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"video-embed-block-wrapper"},{default:s.withCtx(()=>[i.value&&!n.value?(s.openBlock(),s.createElementBlock("div",Vx,[s.createElementVNode("div",{class:s.normalizeClass(["video-platform-badge",`platform-${e.node.attrs.platform}`])},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(u.value),{size:14})),s.createElementVNode("span",null,s.toDisplayString(o.value),1)],2),s.createElementVNode("div",{class:"video-container",onDblclick:g[0]||(g[0]=s.withModifiers(m=>e.editor.isEditable?c():null,["prevent"]))},[s.createElementVNode("iframe",{src:i.value,frameborder:"0",allowfullscreen:"",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"},null,8,Yx)],32)])):s.createCommentVNode("",!0),!i.value&&!n.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"video-empty",contenteditable:"false",onClick:g[1]||(g[1]=m=>e.editor.isEditable?c():null)},[s.createElementVNode("div",Qx,[s.createVNode(s.unref(wi),{size:24})]),g[4]||(g[4]=s.createElementVNode("div",{class:"video-empty-text"},"点击添加视频链接",-1)),g[5]||(g[5]=s.createElementVNode("div",{class:"video-empty-hint"},"支持 B站 / YouTube",-1))])):s.createCommentVNode("",!0),!n.value&&i.value&&e.editor.isEditable?(s.openBlock(),s.createElementBlock("div",Kx,[s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(c,["stop","prevent"]),title:"编辑"},[s.createVNode(s.unref(Ni),{size:14})]),s.createElementVNode("button",{class:"toolbar-btn delete-btn",onClick:g[2]||(g[2]=s.withModifiers((...m)=>e.deleteNode&&e.deleteNode(...m),["stop","prevent"])),title:"删除"},[s.createVNode(s.unref(An),{size:14})])])):s.createCommentVNode("",!0),n.value?(s.openBlock(),s.createElementBlock("div",Wx,[s.createElementVNode("div",Gx,[s.createVNode(s.unref(wi),{size:18,class:"editor-header-icon"}),g[6]||(g[6]=s.createElementVNode("span",null,"嵌入视频",-1))]),s.createElementVNode("div",$x,[g[7]||(g[7]=s.createElementVNode("label",null,"视频链接",-1)),s.withDirectives(s.createElementVNode("input",{ref_key:"urlInputRef",ref:a,"onUpdate:modelValue":g[3]||(g[3]=m=>r.value=m),type:"text",placeholder:"粘贴 B站或 YouTube 链接...",onKeydown:[s.withKeys(f,["enter"]),s.withKeys(d,["esc"])]},null,544),[[s.vModelText,r.value]])]),l.value.platform!=="unknown"?(s.openBlock(),s.createElementBlock("div",qx,[s.createElementVNode("div",{class:s.normalizeClass(["preview-badge",`platform-${l.value.platform}`])},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(l.value.platform==="bilibili"?s.unref(Vf):s.unref(Wf)),{size:14})),s.createElementVNode("span",null,s.toDisplayString(l.value.platform==="bilibili"?"Bilibili":"YouTube"),1)],2),s.createElementVNode("span",Jx,s.toDisplayString(l.value.videoId),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",Zx,[s.createElementVNode("button",{class:"btn-cancel",onClick:d},"取消"),s.createElementVNode("button",{class:"btn-save",onClick:f,disabled:!r.value.trim()||l.value.platform==="unknown"},"保存",8,Xx)])])):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-47b47c4d"]]);function Vr(e){if(!e)return{platform:"unknown",videoId:"",embedUrl:""};const t=e.trim(),n=/(?:bilibili\.com\/video\/(BV[\w]+|av\d+))|(?:b23\.tv\/([\w]+))/i,r=t.match(n);if(r){const o=r[1]||r[2],l=o.startsWith("BV")?`https://player.bilibili.com/player.html?bvid=${o}&autoplay=0&high_quality=1`:`https://player.bilibili.com/player.html?aid=${o.replace("av","")}&autoplay=0&high_quality=1`;return{platform:"bilibili",videoId:o,embedUrl:l}}const a=/(?:youtube\.com\/watch\?.*v=([\w-]+))|(?:youtu\.be\/([\w-]+))|(?:youtube\.com\/embed\/([\w-]+))/i,i=t.match(a);if(i){const o=i[1]||i[2]||i[3],u=`https://www.youtube.com/embed/${o}`;return{platform:"youtube",videoId:o,embedUrl:u}}return{platform:"unknown",videoId:"",embedUrl:""}}const tM=ue.Node.create({name:"videoEmbed",group:"block",atom:!0,draggable:!0,addAttributes(){return{url:{default:"",parseHTML:e=>e.getAttribute("data-url")||"",renderHTML:e=>({"data-url":e.url})},platform:{default:"unknown",parseHTML:e=>e.getAttribute("data-platform")||"unknown",renderHTML:e=>({"data-platform":e.platform})},videoId:{default:"",parseHTML:e=>e.getAttribute("data-video-id")||"",renderHTML:e=>({"data-video-id":e.videoId})}}},parseHTML(){return[{tag:'div[data-type="video-embed"]'},{tag:'div[data-type="videoEmbed"]',getAttrs:e=>{if(typeof e=="string")return!1;const t=e.getAttribute("data-url")||"",n=e.getAttribute("data-platform")||"unknown",r=e.getAttribute("data-video-id")||"";return{url:t,platform:n,videoId:r}}}]},renderMarkdown(e){const{url:t,platform:n,videoId:r}=e.attrs||{};return`<div data-type="videoEmbed" data-url="${t||""}" data-platform="${n||"unknown"}" data-video-id="${r||""}"></div>
|
|
768
|
+
|
|
769
|
+
`},renderHTML({node:e,HTMLAttributes:t}){const r=Vr(e.attrs.url).embedUrl;return r?["div",ue.mergeAttributes(t,{"data-type":"video-embed",class:"video-embed-wrapper",style:"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 16px 0; border-radius: 12px;"}),["iframe",{src:r,style:"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 12px;",frameborder:"0",allowfullscreen:"true",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}]]:["div",ue.mergeAttributes(t,{"data-type":"video-embed",class:"video-embed-wrapper video-embed-empty",style:"padding: 24px; margin: 16px 0; border: 1px dashed #d1d5db; border-radius: 12px; text-align: center; color: #9ca3af;"}),"点击编辑添加视频链接"]},addCommands(){return{setVideoEmbed:e=>({commands:t})=>{const n=Vr(e.url);return t.insertContent({type:this.name,attrs:{url:e.url,platform:n.platform,videoId:n.videoId}})}}},addNodeView(){return ne.VueNodeViewRenderer(eM)},addInputRules(){return[new ue.InputRule({find:/@video\[([^\]]*)\]\(([^)]+)\)\s$/,handler:({range:e,match:t})=>{const n=t[2],r=Vr(n);this.editor.chain().deleteRange({from:e.from,to:e.to}).insertContent({type:"videoEmbed",attrs:{url:n,platform:r.platform,videoId:r.videoId}}).run()}})]}}),nM={class:"slash-menu-wrapper"},rM=Qe(s.defineComponent({__name:"SlashCommandList",props:{command:{type:Function},editor:{},range:{}},setup(e,{expose:t}){const n=e,r=s.ref(null),{insertTemplateAtRange:a}=z1(),i=async u=>{if(u.startsWith("template:")){const l=u.replace("template:","");n.editor&&n.range&&await a(n.editor,l,n.range),n.command({type:"__noop__"});return}n.command({type:u})};return t({onKeyDown:({event:u})=>{if(!r.value)return!1;const l=r.value.onKeyDown({event:u});return typeof l=="string"?(i(l),!0):l}}),(u,l)=>(s.openBlock(),s.createElementBlock("div",nM,[s.createVNode(H1,{ref_key:"menuPanel",ref:r,onSelect:i},null,512)]))}}),[["__scopeId","data-v-3e53f11f"]]),aM=(e,t,n)=>{switch(n){case"paragraph":e.chain().focus().deleteRange(t).setParagraph().run();break;case"heading1":e.chain().focus().deleteRange(t).setNode("heading",{level:1}).run();break;case"heading2":e.chain().focus().deleteRange(t).setNode("heading",{level:2}).run();break;case"heading3":e.chain().focus().deleteRange(t).setNode("heading",{level:3}).run();break;case"bulletList":e.chain().focus().deleteRange(t).toggleBulletList().run();break;case"orderedList":e.chain().focus().deleteRange(t).toggleOrderedList().run();break;case"taskList":e.chain().focus().deleteRange(t).toggleTaskList().run();break;case"blockquote":e.chain().focus().deleteRange(t).toggleBlockquote().run();break;case"colorBlock":e.chain().focus().deleteRange(t).insertContent({type:"colorBlock",attrs:{color:"cyan"},content:[{type:"paragraph"}]}).run();break;case"linkCard":e.chain().focus().deleteRange(t).insertContent({type:"linkCardBlock",attrs:{url:"",title:""}}).run();break;case"codeBlock":e.chain().focus().deleteRange(t).setCodeBlock().run();break;case"horizontalRule":e.chain().focus().deleteRange(t).setHorizontalRule().run();break;case"table":e.chain().focus().deleteRange(t).insertTable({rows:3,cols:3,withHeaderRow:!0}).run();break;case"videoEmbed":e.chain().focus().deleteRange(t).insertContent({type:"videoEmbed",attrs:{url:"",platform:"unknown",videoId:""}}).run();break;case"imageUpload":{e.chain().focus().deleteRange(t).run(),window.dispatchEvent(new CustomEvent("editor-trigger-image-upload"));break}case"videoUpload":{e.chain().focus().deleteRange(t).run(),window.dispatchEvent(new CustomEvent("editor-trigger-video-upload"));break}}},iM=ue.Extension.create({name:"slashCommands",addOptions(){return{suggestion:{char:"/",command:({editor:e,range:t,props:n})=>{aM(e,t,n.type)}}}},addProseMirrorPlugins(){return[Us({pluginKey:new Vt("slashCommands"),editor:this.editor,...this.options.suggestion,items:()=>[{}],render:()=>{let e,t;return{onStart:n=>{n.editor.isEditable&&(e=new ne.VueRenderer(rM,{props:{editor:n.editor,range:n.range,command:r=>{n.command({...n,...r}),t&&t[0]&&t[0].destroy(),e&&e.destroy()}},editor:n.editor}),n.clientRect&&(t=Fs(document.body,{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",theme:"slash-menu",arrow:!1,animation:!1,offset:[0,4]})))},onUpdate:n=>{n.clientRect&&(e&&e.updateProps({range:n.range}),t&&t[0]&&t[0].setProps({getReferenceClientRect:n.clientRect}))},onKeyDown:n=>{var r;return n.event.key==="Escape"?(t&&t[0]&&t[0].hide(),!0):(r=e.ref)==null?void 0:r.onKeyDown(n)},onExit:()=>{t&&t[0]&&t[0].destroy(),e&&e.destroy()}}}})]}}),sM={key:0,class:"thinking-indicator"},oM=["innerHTML"],uM={key:2,class:"typing-cursor"},lM={key:3,class:"confirm-buttons",contenteditable:"false"},cM=s.defineComponent({__name:"StreamingPreviewComponent",props:ne.nodeViewProps,setup(e){me.use({gfm:!0,breaks:!1});const t=e,n=s.computed(()=>{var d;return((d=t.node)==null?void 0:d.attrs.content)||""}),r=s.computed(()=>{var d;return((d=t.node)==null?void 0:d.attrs.status)||"streaming"}),a=s.computed(()=>{var d;return((d=t.node)==null?void 0:d.attrs.requireConfirmation)||!1}),i=s.computed(()=>{if(!n.value)return"";try{let d=me.parse(n.value);d=d.replace(/<li>\s*\[\s*\]\s*/g,'<li data-type="taskItem" data-checked="false">'),d=d.replace(/<li>\s*\[x\]\s*/gi,'<li data-type="taskItem" data-checked="true">'),d.includes('data-type="taskItem"')&&(d=d.replace(/<ul>/g,'<ul data-type="taskList">'));const p=()=>{var m,b;const g=(m=t.editor)==null?void 0:m.extensionManager.extensions.find(A=>A.name==="aiImageLoader");return(b=g==null?void 0:g.options)==null?void 0:b.getPendingImage};return d=d.replace(/\[AI_IMAGE:([^:]+):([^\]]+)\]/g,(g,m,b)=>{const A=p();if(A){const E=A(b);if(E&&E.src)return`
|
|
770
|
+
<div class="ai-image-preview-success">
|
|
771
|
+
<img src="${E.src}" alt="${b}" />
|
|
772
|
+
</div>
|
|
773
|
+
`;if(E&&E.error)return`
|
|
774
|
+
<div class="ai-image-placeholder error">
|
|
775
|
+
<div class="ai-image-error-icon">❌</div>
|
|
776
|
+
<div class="ai-image-info">
|
|
777
|
+
<p class="ai-image-title">生成失败</p>
|
|
778
|
+
<p class="ai-image-prompt">"${b}"</p>
|
|
779
|
+
</div>
|
|
780
|
+
</div>
|
|
781
|
+
`}return`
|
|
782
|
+
<div class="ai-image-placeholder">
|
|
783
|
+
<div class="ai-image-spinner"></div>
|
|
784
|
+
<div class="ai-image-info">
|
|
785
|
+
<p class="ai-image-title">AI 正在绘制...</p>
|
|
786
|
+
<p class="ai-image-prompt">"${b}"</p>
|
|
787
|
+
</div>
|
|
788
|
+
</div>
|
|
789
|
+
`}),d}catch(d){console.warn("[StreamingPreview] marked.parse 失败,使用降级方案:",d);try{let p=n.value;p=p.replace(/^(\s*)-\s*\[\s*\]\s*/gm,"$1- ☐ "),p=p.replace(/^(\s*)-\s*\[x\]\s*/gim,"$1- ☑ ");let g=me.parse(p);return g=g.replace(/<li>☐\s*/g,'<li data-type="taskItem" data-checked="false">'),g=g.replace(/<li>☑\s*/g,'<li data-type="taskItem" data-checked="true">'),g.includes('data-type="taskItem"')&&(g=g.replace(/<ul>/g,'<ul data-type="taskList">')),g}catch(p){return console.error("[StreamingPreview] 降级方案也失败了:",p),`<p>${n.value.replace(/\n/g,"<br>")}</p>`}}}),o=s.computed(()=>r.value==="streaming"),u=s.computed(()=>o.value&&!n.value),l=s.computed(()=>!o.value&&a.value&&n.value),c=()=>{t.editor&&t.editor.commands.finishStreamingPreview()},f=()=>{t.editor&&t.editor.commands.removeStreamingPreview()};return(d,p)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["streaming-preview-wrapper",{"is-streaming":o.value,"is-thinking":u.value,"show-buttons":l.value}])},{default:s.withCtx(()=>[u.value?(s.openBlock(),s.createElementBlock("div",sM,[...p[0]||(p[0]=[s.createElementVNode("span",{class:"thinking-dot"},null,-1),s.createElementVNode("span",{class:"thinking-dot"},null,-1),s.createElementVNode("span",{class:"thinking-dot"},null,-1),s.createElementVNode("span",{class:"thinking-text"},"炼书正在思考...",-1)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"streaming-preview-content",innerHTML:i.value},null,8,oM)),o.value&&n.value&&!u.value?(s.openBlock(),s.createElementBlock("span",uM)):s.createCommentVNode("",!0),l.value?(s.openBlock(),s.createElementBlock("div",lM,[s.createElementVNode("button",{class:"confirm-btn accept",onClick:c,title:"确认保存"},[s.createVNode(s.unref(Mo),{size:16}),p[1]||(p[1]=s.createElementVNode("span",null,"保存",-1))]),s.createElementVNode("button",{class:"confirm-btn reject",onClick:f,title:"丢弃"},[s.createVNode(s.unref(An),{size:16}),p[2]||(p[2]=s.createElementVNode("span",null,"丢弃",-1))])])):s.createCommentVNode("",!0)]),_:1},8,["class"]))}}),fM=Qe(cM,[["__scopeId","data-v-b86f4e84"]]);me.use({gfm:!0,breaks:!1,pedantic:!1,mangle:!1,headerIds:!1});function dM(e){const t=/^:::(\w+)[ \t]*\n([\s\S]*?)\n:::[ \t]*(?:\n|$)/gm;return e.replace(t,(n,r,a)=>{const i=jr.find(u=>u.name===r);if(!i)return n;const o=me.parse(a.trim());return`<div data-type="color-block" data-color="${r}" style="background-color: ${i.bg}; border-radius: 8px; padding: 16px 20px; margin: 12px 0;">${o}</div>
|
|
790
|
+
`})}function hM(e){const t=/^---title[ \t]*\n(.*?)\n---[ \t]*\n/m;return e.replace(t,(r,a)=>`<h1 class="document-title">${a.trim()}</h1>
|
|
791
|
+
|
|
792
|
+
`)}function pM(e){const t=/@\[([^\]]*)\]\(([^)]+)\)/g;return e.replace(t,(n,r,a)=>`<div data-type="link-card-block" data-url="${a}" data-title="${r}"></div>`)}const gM=ue.Node.create({name:"streamingPreview",group:"block",atom:!0,draggable:!1,selectable:!0,addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{content:{default:""},status:{default:"streaming"},requireConfirmation:{default:!1}}},parseHTML(){return[{tag:'div[data-type="streaming-preview"]'}]},renderHTML({HTMLAttributes:e}){return["div",ue.mergeAttributes(this.options.HTMLAttributes,e,{"data-type":"streaming-preview"})]},addNodeView(){return ne.VueNodeViewRenderer(fM)},addCommands(){return{setStreamingPreview:e=>({commands:t})=>t.insertContent({type:this.name,attrs:{content:"",status:"streaming",requireConfirmation:(e==null?void 0:e.requireConfirmation)??!1}}),updateStreamingPreviewContent:e=>({tr:t,state:n,dispatch:r})=>{if(!r)return!1;let a=!1;return n.doc.descendants((i,o)=>{i.type.name===this.name&&!a&&(a=!0,t.setNodeAttribute(o,"content",e))}),a},finishStreamingPreview:()=>({editor:e,state:t})=>{let n=null,r="",a=0;if(t.doc.descendants((d,p)=>{d.type.name===this.name&&n===null&&(n=p,r=d.attrs.content||"",a=d.nodeSize)}),n===null||!r||a===0)return console.warn("[finishStreamingPreview] 未找到有效的流式预览节点"),!1;if(n<0||n+a>t.doc.content.size)return console.warn("[finishStreamingPreview] 节点位置无效:",n,"size:",a,"docSize:",t.doc.content.size),!1;let i=hM(r);i=dM(i);let o;try{o=me.parse(i)}catch(d){console.warn("[finishStreamingPreview] marked.parse 失败,保留原始 Markdown:",d.message),o=i}o=pM(o),o=o.replace(/<li>\s*\[\s*\]\s*/g,'<li data-type="taskItem" data-checked="false">'),o=o.replace(/<li>\s*\[x\]\s*/gi,'<li data-type="taskItem" data-checked="true">'),o.includes('data-type="taskItem"')&&(o=o.replace(/<ul>/g,'<ul data-type="taskList">')),o=o.replace(/\[AI_IMAGE:([^:]+):([^\]]+)\]/g,(d,p,g)=>`<div data-type="ai-image-loader" data-loader-id="${p}" data-prompt="${g}" data-status="generating"></div>`),o=o.replace(/\[AI_IMAGE_PLACEHOLDER:[^\]]+\]/g,""),o=o.replace(/\(\(img:\s*[^)]+\)\)/g,""),o=o.replace(/<p>\s*(<div data-type="link-card-block"[^>]*><\/div>)\s*<\/p>/g,"$1"),o=o.replace(/<p>\s*(<div data-type="ai-image-loader"[^>]*><\/div>)\s*<\/p>/g,"$1");const u=e.getHTML(),l=u.substring(0,n),c=u.substring(n+a),f=l+o+c;return e.commands.setContent(f,{contentType:"markdown",emitUpdate:!0})},removeStreamingPreview:()=>({tr:e,state:t,dispatch:n})=>{if(!n)return!1;const r=[];return t.doc.descendants((a,i)=>{a.type.name===this.name&&r.push(i)}),r.reverse().forEach(a=>{const i=t.doc.nodeAt(a);i&&e.delete(a,a+i.nodeSize)}),r.length>0}}}}),mM=new Vt("aiPromptInput"),bM=ue.Extension.create({name:"aiPromptInput",addOptions(){return{onAIRequest:void 0}},addStorage(){return{isInputVisible:!1}},addCommands(){return{showAIPromptInput:e=>({chain:t})=>t().insertContent({type:"aiPromptInputNode",attrs:{selectedText:e||""}}).run(),hideAIPromptInput:()=>({tr:e,state:t,dispatch:n})=>{if(!n)return!1;let r=!1;return t.doc.descendants((a,i)=>{a.type.name==="aiPromptInputNode"&&!r&&(r=!0,e.setMeta("addToHistory",!1),e.delete(i,i+a.nodeSize))}),this.storage.isInputVisible=!1,r}}},addProseMirrorPlugins(){const e=this;return[new Zr({key:mM,props:{handleKeyDown(t,n){if(n.key!==" ")return!1;const{state:r}=t,{selection:a}=r,{$from:i,from:o,to:u}=a,l=o!==u?r.doc.textBetween(o,u):"",c=i.parentOffset===0,f=i.parent.content.size===0,d=l.length>0;if(!c&&!f&&!d)return!1;let p=!1;return r.doc.descendants(g=>{g.type.name==="aiPromptInputNode"&&(p=!0)}),p?!1:(n.preventDefault(),e.editor.commands.showAIPromptInput(l),e.storage.isInputVisible=!0,!0)}}})]}}),AM=vp.TextStyle.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),color:{default:null,parseHTML:t=>t.style.color||null,renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}},parseHTML(){var e;return[...((e=this.parent)==null?void 0:e.call(this))||[],{tag:'span[style*="color"]',priority:100,getAttrs:t=>{if(typeof t=="string")return!1;const n=t.getAttribute("style");return n&&n.match(/color:\s*([^;]+)/)?{}:!1}}]},renderMarkdown(e,t){var a;const n=t.renderChildren(e),r=(a=e.attrs)==null?void 0:a.color;return r?`<span style="color: ${r}">${n}</span>`:n}}),EM={class:"ai-prompt-container"},yM={class:"ai-prompt-icon"},TM={class:"ai-prompt-actions"},kM=["disabled"],NM=s.defineComponent({__name:"AIPromptInputComponent",props:ne.nodeViewProps,setup(e){const t=e,n=s.ref(null),r=s.ref(""),a=s.ref(!1),i=()=>{a.value=!a.value},o=s.computed(()=>{var d,p;return((p=(d=t.node)==null?void 0:d.attrs)==null?void 0:p.selectedText)||""});s.onMounted(async()=>{var d;await s.nextTick(),o.value&&(r.value=o.value,await s.nextTick(),u()),(d=n.value)==null||d.focus(),n.value&&o.value&&(n.value.selectionStart=n.value.selectionEnd=r.value.length)});const u=()=>{n.value&&(n.value.style.height="auto",n.value.style.height=Math.min(n.value.scrollHeight,200)+"px")};s.watch(r,u);const l=()=>{r.value.trim()&&t.editor&&t.editor.commands.submitAIPrompt(r.value.trim(),{withImage:a.value})},c=()=>{t.editor&&t.editor.commands.hideAIPromptInput()},f=d=>{if(d.key==="Enter"){if(d.shiftKey)return;d.preventDefault(),l()}else d.key==="Escape"&&(d.preventDefault(),c())};return(d,p)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"ai-prompt-wrapper",contenteditable:"false"},{default:s.withCtx(()=>[s.createElementVNode("div",EM,[s.createElementVNode("div",yM,[s.createVNode(s.unref(Ii),{size:16})]),s.withDirectives(s.createElementVNode("textarea",{ref_key:"textareaRef",ref:n,"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g),class:"ai-prompt-input",placeholder:"输入你想让 AI 做什么...",rows:"1",onKeydown:f,onInput:u},null,544),[[s.vModelText,r.value]]),s.createElementVNode("div",TM,[s.createElementVNode("button",{class:s.normalizeClass(["ai-btn ai-btn-image",{"is-active":a.value}]),onClick:i,title:"图文并茂模式(AI 将生成配图)"},[s.createVNode(s.unref(ki),{size:14})],2),s.createElementVNode("button",{class:"ai-btn ai-btn-submit",onClick:l,disabled:!r.value.trim(),title:"发送 (Enter)"},[s.createVNode(s.unref(Db),{size:14})],8,kM),s.createElementVNode("button",{class:"ai-btn ai-btn-cancel",onClick:c,title:"取消 (Esc)"},[s.createVNode(s.unref(An),{size:14})])])]),p[1]||(p[1]=s.createElementVNode("div",{class:"ai-prompt-hint"},[s.createElementVNode("kbd",null,"Enter"),s.createTextVNode(" 发送 · "),s.createElementVNode("kbd",null,"Shift+Enter"),s.createTextVNode(" 换行 · "),s.createElementVNode("kbd",null,"Esc"),s.createTextVNode(" 取消 ")],-1))]),_:1}))}}),IM=Qe(NM,[["__scopeId","data-v-17b9f027"]]),wM=ue.Node.create({name:"aiPromptInputNode",group:"block",atom:!0,draggable:!1,selectable:!1,addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{prompt:{default:""},selectedText:{default:""}}},parseHTML(){return[{tag:'div[data-type="ai-prompt-input"]'}]},renderHTML({HTMLAttributes:e}){return["div",ue.mergeAttributes(this.options.HTMLAttributes,e,{"data-type":"ai-prompt-input"})]},addNodeView(){return ne.VueNodeViewRenderer(IM)},addCommands(){return{submitAIPrompt:(e,t)=>({tr:n,state:r,dispatch:a,editor:i})=>{if(!a)return!1;let o=null;if(r.doc.descendants((u,l)=>{u.type.name===this.name&&o===null&&(o=l)}),o!==null){const u=r.doc.nodeAt(o);u&&(n.setMeta("addToHistory",!1),n.delete(o,o+u.nodeSize))}return setTimeout(()=>{i.emit("ai-request",{prompt:e,withImage:(t==null?void 0:t.withImage)??!1})},0),!0}}}}),CM={key:0,class:"loader-content generating-state"},_M={class:"loader-info"},xM={class:"loader-prompt"},MM={key:1,class:"loader-content success-state"},SM=["src","alt"],DM={key:2,class:"loader-content error-state"},vM={class:"error-icon"},OM={class:"error-info"},LM={class:"error-msg"},BM={class:"error-prompt"},RM={class:"error-actions"},PM=Qe(s.defineComponent({__name:"AiImageLoaderComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=e,n=()=>{var f;const c=t.editor.extensionManager.extensions.find(d=>d.name==="aiImageLoader");return(f=c==null?void 0:c.options)==null?void 0:f.onGenerate},r=()=>{var f;const c=t.editor.extensionManager.extensions.find(d=>d.name==="aiImageLoader");return(f=c==null?void 0:c.options)==null?void 0:f.onAutoUpload},a=async(c,f)=>{const d=r();if(d)try{const p=await d(c,f);if("error"in p){console.warn("[AI图片组件] ⚠️ 自动上传失败:",p.error);return}const{state:g,view:m}=t.editor,b=g.tr;let A=!1;g.doc.descendants((E,w)=>{E.type.name==="imageUpload"&&E.attrs.prompt===f&&E.attrs.src===c&&(b.setNodeMarkup(w,void 0,{...E.attrs,src:p.src}),A=!0)}),A&&(b.setMeta("addToHistory",!1),m.dispatch(b))}catch(p){console.warn("[AI图片组件] ⚠️ 自动上传异常:",p.message)}},i=async()=>{const c=n();if(!c){console.error("[AI图片组件] ❌ 没有配置图片生成回调 (onAiImageGenerate)"),t.updateAttributes({status:"error",errorMsg:"未配置图片生成服务"});return}try{const f=t.node.attrs.prompt,d=await c(f);"error"in d?(console.error("[AI图片组件] ❌ 生成失败:",d.error),t.updateAttributes({status:"error",errorMsg:d.error})):(t.updateAttributes({status:"success",src:d.src}),setTimeout(()=>{const p=t.node.attrs.loaderId;t.editor.commands.replaceAiImageWithRealImage(p,d.src,d.alt||f),a(d.src,f)},500))}catch(f){console.error("[AI图片组件] 💥 生成异常:",f),t.updateAttributes({status:"error",errorMsg:f.message||"生成过程中发生错误"})}},o=()=>{t.updateAttributes({status:"generating",errorMsg:null,src:null}),i()},u=()=>{var d;const c=t.editor.extensionManager.extensions.find(p=>p.name==="aiImageLoader"),f=(d=c==null?void 0:c.options)==null?void 0:d.getPendingImage;return f?f(t.node.attrs.prompt):null};s.onMounted(()=>{if(t.node.attrs.status==="generating"){const c=u();c&&c.src?(t.updateAttributes({status:"success",src:c.src}),setTimeout(()=>{const f=t.node.attrs.loaderId;t.editor.commands.replaceAiImageWithRealImage(f,c.src,t.node.attrs.prompt),a(c.src,t.node.attrs.prompt)},300)):c&&c.error?t.updateAttributes({status:"error",errorMsg:c.error}):c&&c.generating?l():i()}});const l=()=>{const c=setInterval(()=>{const f=u();f&&f.src?(clearInterval(c),t.updateAttributes({status:"success",src:f.src}),setTimeout(()=>{t.editor.commands.replaceAiImageWithRealImage(t.node.attrs.loaderId,f.src,t.node.attrs.prompt),a(f.src,t.node.attrs.prompt)},300)):f&&f.error&&(clearInterval(c),t.updateAttributes({status:"error",errorMsg:f.error}))},500);setTimeout(()=>{clearInterval(c)},3e4)};return(c,f)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["ai-image-loader-wrapper",{"is-generating":e.node.attrs.status==="generating","is-success":e.node.attrs.status==="success","is-error":e.node.attrs.status==="error"}])},{default:s.withCtx(()=>[e.node.attrs.status==="generating"?(s.openBlock(),s.createElementBlock("div",CM,[f[2]||(f[2]=s.createElementVNode("div",{class:"loader-icon"},[s.createElementVNode("div",{class:"spinner"})],-1)),s.createElementVNode("div",_M,[f[1]||(f[1]=s.createElementVNode("p",{class:"loader-title"},"AI 正在绘制...",-1)),s.createElementVNode("p",xM,'"'+s.toDisplayString(e.node.attrs.prompt)+'"',1)])])):e.node.attrs.status==="success"?(s.openBlock(),s.createElementBlock("div",MM,[s.createElementVNode("img",{src:e.node.attrs.src,alt:e.node.attrs.prompt,class:"preview-image"},null,8,SM),f[3]||(f[3]=s.createElementVNode("div",{class:"success-overlay"},[s.createElementVNode("div",{class:"success-icon"},"✓"),s.createElementVNode("p",null,"生成完成,正在替换...")],-1))])):e.node.attrs.status==="error"?(s.openBlock(),s.createElementBlock("div",DM,[s.createElementVNode("div",vM,[s.createVNode(s.unref(cb),{size:32})]),s.createElementVNode("div",OM,[f[4]||(f[4]=s.createElementVNode("p",{class:"error-title"},"生成失败",-1)),s.createElementVNode("p",LM,s.toDisplayString(e.node.attrs.errorMsg||"未知错误"),1),s.createElementVNode("p",BM,'"'+s.toDisplayString(e.node.attrs.prompt)+'"',1)]),s.createElementVNode("div",RM,[s.createElementVNode("button",{class:"action-btn retry-btn",onClick:s.withModifiers(o,["stop"]),title:"重试"},[s.createVNode(s.unref(Kf),{size:16}),f[5]||(f[5]=s.createElementVNode("span",null,"重试",-1))]),s.createElementVNode("button",{class:"action-btn delete-btn",onClick:f[0]||(f[0]=s.withModifiers((...d)=>e.deleteNode&&e.deleteNode(...d),["stop"])),title:"删除"},[s.createVNode(s.unref(Jn),{size:16}),f[6]||(f[6]=s.createElementVNode("span",null,"删除",-1))])])])):s.createCommentVNode("",!0)]),_:1},8,["class"]))}}),[["__scopeId","data-v-f8208628"]]);function UM(){return`ai-img-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}const FM=ue.Node.create({name:"aiImageLoader",group:"block",atom:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{},onGenerate:void 0,onAutoUpload:void 0}},addAttributes(){return{loaderId:{default:null,parseHTML:e=>e.getAttribute("data-loader-id"),renderHTML:e=>e.loaderId?{"data-loader-id":e.loaderId}:{}},prompt:{default:"",parseHTML:e=>e.getAttribute("data-prompt"),renderHTML:e=>e.prompt?{"data-prompt":e.prompt}:{}},style:{default:"default",parseHTML:e=>e.getAttribute("data-style"),renderHTML:e=>e.style?{"data-style":e.style}:{}},status:{default:"generating",parseHTML:e=>e.getAttribute("data-status"),renderHTML:e=>({"data-status":e.status})},src:{default:null,parseHTML:e=>e.getAttribute("data-src"),renderHTML:e=>e.src?{"data-src":e.src}:{}},errorMsg:{default:null,parseHTML:e=>e.getAttribute("data-error"),renderHTML:e=>e.errorMsg?{"data-error":e.errorMsg}:{}}}},parseHTML(){return[{tag:'div[data-type="ai-image-loader"]'}]},renderHTML({HTMLAttributes:e}){return["div",ue.mergeAttributes(this.options.HTMLAttributes,e,{"data-type":"ai-image-loader"})]},addCommands(){return{setAiImageLoader:e=>({commands:t})=>{const n=UM();return t.insertContent({type:this.name,attrs:{...e,loaderId:n,status:"generating"}})},updateAiImageLoader:(e,t)=>({tr:n,state:r,dispatch:a})=>{let i=null,o=null;return r.doc.descendants((u,l)=>{if(u.type.name===this.name&&u.attrs.loaderId===e)return i=l,o=u,!1}),i===null||!o?!1:(n.setNodeMarkup(i,void 0,{...o.attrs,...t}),a&&a(n),!0)},replaceAiImageWithRealImage:(e,t,n)=>({tr:r,state:a,dispatch:i,editor:o})=>{let u=null,l=null;if(a.doc.descendants((f,d)=>{if(f.type.name===this.name&&f.attrs.loaderId===e)return u=d,l=f,!1}),u===null||!l)return!1;const c=o.schema.nodes.imageUpload||o.schema.nodes.image;return c?(r.replaceWith(u,u+l.nodeSize,c.create({src:t,alt:n||l.attrs.prompt,title:l.attrs.prompt,prompt:l.attrs.prompt})),i&&i(r),!0):(console.warn("No image node type found in schema"),!1)},removeAiImageLoader:e=>({tr:t,state:n,dispatch:r})=>{let a=null,i=0;return n.doc.descendants((o,u)=>{if(o.type.name===this.name&&o.attrs.loaderId===e)return a=u,i=o.nodeSize,!1}),a===null?!1:(t.delete(a,a+i),r&&r(t),!0)}}},addNodeView(){return ne.VueNodeViewRenderer(PM)}}),HM={class:"ai-image-prompt-container"},zM={class:"ai-image-prompt-icon"},jM={class:"ai-image-prompt-actions"},VM=["disabled"],YM=s.defineComponent({__name:"AiImagePromptComponent",props:ne.nodeViewProps,setup(e){const t=e,n=s.ref(null),r=s.ref("");s.onMounted(async()=>{var l,c,f;await s.nextTick(),(c=(l=t.node)==null?void 0:l.attrs)!=null&&c.prompt&&(r.value=t.node.attrs.prompt,await s.nextTick(),a()),(f=n.value)==null||f.focus(),n.value&&r.value&&(n.value.selectionStart=n.value.selectionEnd=r.value.length)});const a=()=>{n.value&&(n.value.style.height="auto",n.value.style.height=Math.min(n.value.scrollHeight,200)+"px")};s.watch(r,a);const i=()=>{r.value.trim()&&t.editor&&t.editor.commands.submitAiImagePrompt(r.value.trim())},o=()=>{t.editor&&t.editor.commands.hideAiImagePrompt()},u=l=>{if(l.key==="Enter"){if(l.shiftKey)return;l.preventDefault(),i()}else l.key==="Escape"&&(l.preventDefault(),o())};return(l,c)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:"ai-image-prompt-wrapper",contenteditable:"false"},{default:s.withCtx(()=>[s.createElementVNode("div",HM,[s.createElementVNode("div",zM,[s.createVNode(s.unref(ki),{size:16})]),s.withDirectives(s.createElementVNode("textarea",{ref_key:"textareaRef",ref:n,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f),class:"ai-image-prompt-input",placeholder:"描述你想生成的图片...",rows:"1",onKeydown:u,onInput:a},null,544),[[s.vModelText,r.value]]),s.createElementVNode("div",jM,[s.createElementVNode("button",{class:"ai-btn ai-btn-submit",onClick:i,disabled:!r.value.trim(),title:"生成 (Enter)"},[s.createVNode(s.unref(Ii),{size:14})],8,VM),s.createElementVNode("button",{class:"ai-btn ai-btn-cancel",onClick:o,title:"取消 (Esc)"},[s.createVNode(s.unref(An),{size:14})])])]),c[1]||(c[1]=s.createElementVNode("div",{class:"ai-image-prompt-hint"},[s.createElementVNode("kbd",null,"Enter"),s.createTextVNode(" 生成 · "),s.createElementVNode("kbd",null,"Shift+Enter"),s.createTextVNode(" 换行 · "),s.createElementVNode("kbd",null,"Esc"),s.createTextVNode(" 取消 ")],-1))]),_:1}))}}),QM=Qe(YM,[["__scopeId","data-v-db0149ab"]]),KM=ue.Node.create({name:"aiImagePromptNode",group:"block",atom:!0,draggable:!1,selectable:!1,addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{prompt:{default:""}}},parseHTML(){return[{tag:'div[data-type="ai-image-prompt"]'}]},renderHTML({HTMLAttributes:e}){return["div",ue.mergeAttributes(this.options.HTMLAttributes,e,{"data-type":"ai-image-prompt"})]},addNodeView(){return ne.VueNodeViewRenderer(QM)},addCommands(){return{showAiImagePrompt:e=>({tr:t,state:n,dispatch:r,editor:a})=>{if(!r)return!1;let i=null;if(n.doc.descendants((l,c)=>{l.type.name===this.name&&i===null&&(i=c)}),i!==null){const l=n.doc.nodeAt(i);l&&t.delete(i,i+l.nodeSize)}const{from:o}=n.selection,u=n.schema.nodes.aiImagePromptNode.create({prompt:e||""});return t.insert(o,u),r(t),!0},hideAiImagePrompt:()=>({tr:e,state:t,dispatch:n})=>{if(!n)return!1;let r=null;if(t.doc.descendants((a,i)=>{a.type.name===this.name&&r===null&&(r=i)}),r!==null){const a=t.doc.nodeAt(r);a&&(e.setMeta("addToHistory",!1),e.delete(r,r+a.nodeSize))}return n(e),!0},submitAiImagePrompt:e=>({tr:t,state:n,dispatch:r,editor:a})=>{if(!r)return!1;let i=null;if(n.doc.descendants((o,u)=>{o.type.name===this.name&&i===null&&(i=u)}),i!==null){const o=n.doc.nodeAt(i);if(o){const u=`ai-img-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,l=n.schema.nodes.aiImageLoader.create({prompt:e,loaderId:u,status:"generating"});t.setMeta("addToHistory",!1),t.replaceWith(i,i+o.nodeSize,l)}}return r(t),!0}}}}),WM=new Vt("aiAutocompletion"),bp=ue.Extension.create({name:"aiAutocompletion",addOptions(){return{debounceDelay:500,minCharacters:10,contextBeforeCursor:1e3,contextAfterCursor:500,fetchCompletion:null,enabled:!0}},addStorage(){return{currentCompletion:null,completionPos:null,isLoading:!1}},addCommands(){return{acceptCompletion:()=>({tr:e,state:t,dispatch:n})=>{const r=this.storage.currentCompletion,a=this.storage.completionPos;return!r||a===null?!1:(n&&(e.insertText(r,a),this.storage.currentCompletion=null,this.storage.completionPos=null,n(e)),!0)},rejectCompletion:()=>({dispatch:e,tr:t})=>this.storage.currentCompletion?(this.storage.currentCompletion=null,this.storage.completionPos=null,e&&e(t),!0):!1,triggerCompletion:()=>({editor:e})=>{if(!this.options.enabled||!this.options.fetchCompletion)return!1;const{state:t}=e,{from:n}=t.selection,r=t.doc.textBetween(0,n,`
|
|
793
|
+
`);return r.length<this.options.minCharacters?!1:(this.fetchAndShowCompletion(e,n,r),!0)}}},addKeyboardShortcuts(){return{Tab:()=>this.storage.currentCompletion?this.editor.commands.acceptCompletion():!1,Escape:()=>this.storage.currentCompletion?this.editor.commands.rejectCompletion():!1}},addProseMirrorPlugins(){const e=this;let t=null;const n=(r,a,i)=>{if(!e.options.fetchCompletion||e.storage.isLoading)return;const{state:o}=r,{from:u}=o.selection,l=i.slice(-e.options.contextBeforeCursor),f=o.doc.textBetween(u,o.doc.content.size,`
|
|
794
|
+
`).slice(0,e.options.contextAfterCursor),d=l+(f?`
|
|
795
|
+
---CURSOR---
|
|
796
|
+
`+f:"");e.storage.isLoading=!0,e.storage.currentCompletion="",e.storage.completionPos=u,e.options.fetchCompletion(d,p=>{r.state.selection.from===u&&(e.storage.currentCompletion+=p,r.view.dispatch(r.state.tr))}).then(()=>{}).catch(p=>{console.error("[AI Autocompletion] AI 调用错误:",p),e.storage.currentCompletion=null,e.storage.completionPos=null}).finally(()=>{e.storage.isLoading=!1})};return[new Zr({key:WM,state:{init(){return je.empty},apply(r,a){if(r.docChanged){if(t&&clearTimeout(t),e.storage.currentCompletion&&(e.storage.currentCompletion=null,e.storage.completionPos=null),!e.options.enabled||!e.options.fetchCompletion)return je.empty;const{from:i}=r.selection,o=r.doc.textBetween(0,i,`
|
|
797
|
+
`);o.length>=e.options.minCharacters&&(t=setTimeout(()=>{n(e.editor,i,o)},e.options.debounceDelay))}if(e.storage.currentCompletion&&e.storage.completionPos!==null){const{completionPos:i,currentCompletion:o}=e.storage,u=Qt.widget(i,()=>{const l=document.createElement("span");return l.className="ai-ghost-text",l.textContent=o,l.style.color="#999",l.style.opacity="0.6",l.style.pointerEvents="none",l.style.userSelect="none",l});return je.create(r.doc,[u])}return je.empty}},props:{decorations(r){return this.getState(r)}}})]}}),GM=new Vt("aiSmartRefactoring"),Ap=ue.Extension.create({name:"aiSmartRefactoring",addOptions(){return{fetchRefactoring:null,enabled:!0}},addStorage(){return{isRefactoring:!1,refactoringFrom:null,refactoringTo:null,originalText:null,accumulatedText:""}},addCommands(){return{startAIRefactoring:(e="优化这段文字")=>({editor:t,state:n,dispatch:r})=>{if(!this.options.enabled||!this.options.fetchRefactoring)return console.warn("[AI Refactoring] 功能未启用或未配置"),!1;const{from:a,to:i}=n.selection;if(a===i)return console.warn("[AI Refactoring] 请先选中要重写的文本"),!1;const o=n.doc.textBetween(a,i,`
|
|
798
|
+
`);if(!o.trim())return!1;if(this.storage.isRefactoring=!0,this.storage.refactoringFrom=a,this.storage.refactoringTo=i,this.storage.originalText=o,this.storage.accumulatedText="",r){const c=n.tr.deleteRange(a,i);r(c)}const u=this;let l=a;return this.options.fetchRefactoring(o,e,c=>{const f=t.state.tr.insertText(c,l);t.view.dispatch(f),u.storage.accumulatedText+=c,l+=c.length}).then(()=>{u.storage.isRefactoring=!1,u.storage.refactoringFrom=null,u.storage.refactoringTo=null,u.storage.originalText=null,u.storage.accumulatedText=""}).catch(c=>{console.error("[AI Refactoring] 错误:",c),t.commands.cancelAIRefactoring()}),!0},cancelAIRefactoring:()=>({editor:e,dispatch:t,state:n})=>{if(!this.storage.isRefactoring||!this.storage.originalText)return!1;const{refactoringFrom:r,originalText:a}=this.storage;if(r!==null&&t){const i=this.storage.accumulatedText,o=r,u=o+i.length,l=n.tr;i&&l.deleteRange(o,u),l.insertText(a,o),t(l),this.storage.isRefactoring=!1,this.storage.refactoringFrom=null,this.storage.refactoringTo=null,this.storage.originalText=null,this.storage.accumulatedText=""}return!0},finishAIRefactoring:()=>({dispatch:e,tr:t})=>this.storage.isRefactoring?(this.storage.isRefactoring=!1,this.storage.refactoringFrom=null,this.storage.refactoringTo=null,this.storage.originalText=null,this.storage.accumulatedText="",e&&e(t),!0):!1}},addKeyboardShortcuts(){return{"Mod-Shift-r":()=>this.editor.commands.startAIRefactoring("优化这段文字"),Escape:()=>this.storage.isRefactoring?this.editor.commands.cancelAIRefactoring():!1}},addProseMirrorPlugins(){const e=this;return[new Zr({key:GM,state:{init(){return je.empty},apply(t,n){if(e.storage.isRefactoring&&e.storage.refactoringFrom!==null){const r=e.storage.refactoringFrom+e.storage.accumulatedText.length,a=Qt.widget(r,()=>{const i=document.createElement("span");return i.className="ai-refactoring-cursor",i.textContent="▊",i.style.color="#667eea",i.style.animation="ai-cursor-blink 1s infinite",i});return je.create(t.doc,[a])}return je.empty}},props:{decorations(t){return this.getState(t)}}})]}}),$M={class:"emoji-picker-wrapper"},qM=Qe(s.defineComponent({__name:"EmojiPickerList",props:{command:{type:Function}},setup(e,{expose:t}){const n=e,r=i=>{const o=i.i||i.emoji||i;n.command({emoji:o})};return t({onKeyDown:({event:i})=>i.key==="Escape"}),(i,o)=>(s.openBlock(),s.createElementBlock("div",$M,[s.createVNode(s.unref(wd),{native:!0,"display-recent":!0,"disable-skin-tones":!1,onSelect:r})]))}}),[["__scopeId","data-v-2052d464"]]),JM=(e,t,n,r)=>{const a=r?r(n):n;e.chain().focus().deleteRange(t).insertContent(a).run()},ZM=ue.Extension.create({name:"emojiPicker",addOptions(){return{char:":",allowSpaces:!1,transform:void 0}},addProseMirrorPlugins(){return[Us({pluginKey:new Vt("emojiPicker"),editor:this.editor,char:this.options.char,allowSpaces:this.options.allowSpaces,command:({editor:e,range:t,props:n})=>{JM(e,t,n.emoji,this.options.transform)},items:()=>[{}],render:()=>{let e,t;return{onStart:n=>{n.editor.isEditable&&(e=new ne.VueRenderer(qM,{props:{command:r=>{n.command({...n,...r}),t&&t[0]&&t[0].destroy(),e&&e.destroy()}},editor:n.editor}),n.clientRect&&(t=Fs(document.body,{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",theme:"emoji-picker",arrow:!1,animation:!1,offset:[0,8],maxWidth:"none"})))},onUpdate:n=>{n.clientRect&&t&&t[0]&&t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:n=>{var r;return n.event.key==="Escape"?(t&&t[0]&&t[0].hide(),!0):(r=e.ref)==null?void 0:r.onKeyDown(n)},onExit:()=>{t&&t[0]&&t[0].destroy(),e&&e.destroy()}}}})]}}),XM={class:"mention-icon"},eS={class:"mention-label"},tS=s.defineComponent({__name:"MentionNodeComponent",props:ne.nodeViewProps,setup(e){const t=e;let n=null;const r=()=>({type:t.node.attrs.type,id:t.node.attrs.id,label:t.node.attrs.label}),a=()=>{t.editor&&t.editor.emit("mention-click",r())},i=u=>{t.editor&&(n=setTimeout(()=>{const c=u.target.getBoundingClientRect();t.editor.emit("mention-hover",{...r(),rect:{top:c.top,bottom:c.bottom,left:c.left,right:c.right,width:c.width,height:c.height}})},300))},o=()=>{n&&(clearTimeout(n),n=null),t.editor&&t.editor.emit("mention-hover-end")};return(u,l)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{as:"span",class:"mention-node-wrapper"},{default:s.withCtx(()=>[s.createElementVNode("span",{class:s.normalizeClass(["mention-node",`mention-${u.node.attrs.type}`]),onClick:a,onMouseenter:i,onMouseleave:o},[s.createElementVNode("span",XM,[u.node.attrs.type==="document"?(s.openBlock(),s.createBlock(s.unref(ia),{key:0,size:14})):u.node.attrs.type==="flash"?(s.openBlock(),s.createBlock(s.unref(zf),{key:1,size:14})):u.node.attrs.type==="knowledgeBase"?(s.openBlock(),s.createBlock(s.unref(Rf),{key:2,size:14})):(s.openBlock(),s.createBlock(s.unref(ia),{key:3,size:14}))]),s.createElementVNode("span",eS,s.toDisplayString(u.node.attrs.label),1)],34)]),_:1}))}}),nS=ue.Node.create({name:"mention",group:"inline",inline:!0,atom:!0,addAttributes(){return{type:{default:"document",parseHTML:e=>e.getAttribute("data-mention-type")||"document",renderHTML:e=>({"data-mention-type":e.type})},id:{default:"",parseHTML:e=>e.getAttribute("data-mention-id")||"",renderHTML:e=>({"data-mention-id":e.id})},label:{default:"",parseHTML:e=>e.getAttribute("data-mention-label")||"",renderHTML:e=>({"data-mention-label":e.label})}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({HTMLAttributes:e}){return["span",ue.mergeAttributes(e,{"data-type":"mention",class:"mention"})]},renderMarkdown(e){const{type:t,id:n,label:r}=e.attrs;return`<span data-type="mention" data-mention-type="${t}" data-mention-id="${n}" data-mention-label="${r}"></span>`},addCommands(){return{setMention:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addNodeView(){return ne.VueNodeViewRenderer(tS)}}),rS={class:"mention-search"},aS={class:"mention-search-wrapper"},iS={class:"mention-tabs"},sS=["onClick"],oS={class:"tab-label"},uS={key:0,class:"mention-loading"},lS={key:1,class:"mention-empty"},cS=["onClick","onMouseenter"],fS={class:"item-icon"},dS={class:"item-content"},hS={class:"item-label"},pS={key:0,class:"item-description"},gS={key:0,class:"mention-loading-more"},mS=s.defineComponent({__name:"MentionList",props:{command:{type:Function},items:{}},setup(e,{expose:t}){const n=s.inject("editorTheme","light"),r=s.computed(()=>typeof n=="object"&&(n!=null&&n.value)?n.value==="dark":n==="dark"),a={document:ia,flash:zf,knowledgeBase:Rf},i=[{key:"document",label:"文档"},{key:"flash",label:"闪念"},{key:"knowledgeBase",label:"知识库"}],o=e,u=s.ref(),l=s.ref(),c=s.ref(""),f=s.ref("document"),d=s.ref([]),p=s.ref(-1),g=s.ref(!1),m=s.ref(!1),b=s.ref(1),A=s.ref(!1),E=s.computed(()=>i.filter(x=>o.items[x.key]));s.onMounted(()=>{E.value.length>0&&(f.value=E.value[0].key),N(1),s.nextTick(()=>{var x;(x=u.value)==null||x.focus()})});const w=x=>{f.value=x,p.value=0,d.value=[],b.value=1,A.value=!1,N(1)};let C=null;const T=()=>{C&&clearTimeout(C),C=setTimeout(()=>{p.value=0,d.value=[],b.value=1,A.value=!1,N(1)},200)},N=async x=>{const R=o.items[f.value];if(!R){d.value=[];return}x===1?g.value=!0:m.value=!0;try{const O=await R(c.value,x);x===1?d.value=O.items:d.value=[...d.value,...O.items],A.value=O.hasMore,b.value=x}catch(O){console.error("[MentionList] 获取数据失败:",O),x===1&&(d.value=[])}finally{g.value=!1,m.value=!1}},D=()=>{if(!l.value||!A.value||m.value)return;const{scrollTop:x,scrollHeight:R,clientHeight:O}=l.value;x+O>=R-40&&N(b.value+1)},B=x=>{o.command(x)},v=x=>{x&&x.scrollIntoView({block:"nearest"})};return t({onKeyDown:({event:x})=>{if(x.key==="ArrowUp")return x.preventDefault(),p.value<=0?p.value=-1:p.value=p.value-1,!0;if(x.key==="ArrowDown")return x.preventDefault(),p.value===-1?p.value=0:p.value=Math.min(d.value.length-1,p.value+1),p.value>=d.value.length-2&&A.value&&!m.value&&N(b.value+1),!0;if(x.key==="Enter")return x.preventDefault(),p.value!==-1&&d.value[p.value]&&B(d.value[p.value]),!0;if(x.key==="Tab"){x.preventDefault();const O=(E.value.findIndex(M=>M.key===f.value)+1)%E.value.length;return w(E.value[O].key),!0}return!1}}),(x,R)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["mention-list",{"theme-dark":r.value,dark:r.value}])},[s.createElementVNode("div",rS,[s.createElementVNode("div",aS,[s.createVNode(s.unref(Sb),{class:"search-icon",size:15}),s.withDirectives(s.createElementVNode("input",{ref_key:"searchInput",ref:u,"onUpdate:modelValue":R[0]||(R[0]=O=>c.value=O),type:"text",class:"mention-search-input",placeholder:"搜索闪念、文档、知识库...",onInput:T},null,544),[[s.vModelText,c.value]])])]),s.createElementVNode("div",iS,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(E.value,O=>(s.openBlock(),s.createElementBlock("button",{key:O.key,class:s.normalizeClass(["mention-tab",{active:f.value===O.key}]),onClick:M=>w(O.key)},[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(a[O.key]),{size:14,class:"tab-icon"})),s.createElementVNode("span",oS,s.toDisplayString(O.label),1)],10,sS))),128))]),s.createElementVNode("div",{class:"mention-items",ref_key:"listRef",ref:l,onScroll:D},[g.value&&d.value.length===0?(s.openBlock(),s.createElementBlock("div",uS,[...R[1]||(R[1]=[s.createElementVNode("span",null,"加载中...",-1)])])):d.value.length===0?(s.openBlock(),s.createElementBlock("div",lS,[s.createElementVNode("span",null,s.toDisplayString(c.value?"未找到匹配项":"暂无数据"),1)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,(O,M)=>(s.openBlock(),s.createElementBlock("button",{key:O.id,class:s.normalizeClass(["mention-item",{selected:M===p.value}]),onClick:S=>B(O),onMouseenter:S=>p.value=M,ref_for:!0,ref:S=>{M===p.value&&v(S)}},[s.createElementVNode("span",fS,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(a[O.type]),{size:16}))]),s.createElementVNode("div",dS,[s.createElementVNode("span",hS,s.toDisplayString(O.label),1),O.description?(s.openBlock(),s.createElementBlock("span",pS,s.toDisplayString(O.description),1)):s.createCommentVNode("",!0)])],42,cS))),128)),m.value?(s.openBlock(),s.createElementBlock("div",gS,[...R[2]||(R[2]=[s.createElementVNode("span",null,"加载更多...",-1)])])):s.createCommentVNode("",!0)],64))],544)],2))}}),bS=ue.Extension.create({name:"mentionCommands",addOptions(){return{mentionConfig:{items:{}}}},addProseMirrorPlugins(){const e=this.options.mentionConfig;return[Us({pluginKey:new Vt("mentionCommands"),editor:this.editor,char:"@",allowSpaces:!0,command:({editor:t,range:n,props:r})=>{t.chain().focus().deleteRange(n).insertContent({type:"mention",attrs:{type:r.type,id:r.id,label:r.label}}).insertContent(" ").run()},items:()=>[{}],render:()=>{let t,n;return{onStart:r=>{r.editor.isEditable&&(t=new ne.VueRenderer(mS,{props:{command:a=>{r.command({...r,...a}),n&&n[0]&&n[0].destroy(),t&&t.destroy()},items:e.items},editor:r.editor}),r.clientRect&&(n=Fs(document.body,{getReferenceClientRect:r.clientRect,appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",theme:"mention-menu",arrow:!1,animation:!1,offset:[0,4],maxWidth:"none"})))},onUpdate:r=>{r.clientRect&&(n&&n[0]&&n[0].setProps({getReferenceClientRect:r.clientRect}),t&&t.ref)},onKeyDown:r=>{var a;return r.event.key==="Escape"?(n&&n[0]&&n[0].hide(),!0):(a=t.ref)==null?void 0:a.onKeyDown(r)},onExit:()=>{n&&n[0]&&n[0].destroy(),t&&t.destroy()}}}})]}}),AS=["src","alt","title"],ES={key:0,class:"image-toolbar",contenteditable:"false"},yS={key:1,class:"upload-overlay",contenteditable:"false"},TS=["src","alt"],kS=Qe(s.defineComponent({__name:"ImageUploadComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=e,n=s.ref(null),r=s.ref(!1),a=()=>{},i=()=>{r.value=!0,document.body.style.overflow="hidden"},o=()=>{r.value=!1,document.body.style.overflow=""},u=async()=>{try{if(n.value){const f=document.createElement("canvas");f.width=n.value.naturalWidth,f.height=n.value.naturalHeight;const d=f.getContext("2d");d==null||d.drawImage(n.value,0,0),f.toBlob(async p=>{p&&await navigator.clipboard.write([new ClipboardItem({"image/png":p})])},"image/png")}}catch(f){console.error("复制图片失败:",f)}},l=()=>{if(!t.editor)return;const f=t.node.attrs.prompt||"",d=typeof t.getPos=="function"?t.getPos():null;if(d!==null){const p=t.node.nodeSize,g=d+p;t.editor.chain().focus().insertContentAt(g,{type:"aiImagePromptNode",attrs:{prompt:f}}).run()}},c=f=>{f.key==="Escape"&&r.value&&o()};return s.onMounted(()=>{document.addEventListener("keydown",c)}),s.onUnmounted(()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}),(f,d)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["image-upload-wrapper",{"is-uploading":e.node.attrs.uploading}])},{default:s.withCtx(()=>[s.createElementVNode("img",{ref_key:"imageRef",ref:n,src:e.node.attrs.src,alt:e.node.attrs.alt||"",title:e.node.attrs.title||"",class:"editor-image",draggable:"false",onClick:s.withModifiers(a,["stop"]),onDblclick:s.withModifiers(i,["stop"])},null,40,AS),!e.node.attrs.uploading&&e.editor.isEditable?(s.openBlock(),s.createElementBlock("div",ES,[s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(i,["stop"]),title:"放大查看"},[s.createVNode(s.unref(wb),{size:16})]),s.createElementVNode("button",{class:"toolbar-btn",onClick:s.withModifiers(u,["stop"]),title:"复制图片"},[s.createVNode(s.unref(Uf),{size:16})]),s.createElementVNode("button",{class:"toolbar-btn regenerate-btn",onClick:s.withModifiers(l,["stop"]),title:"重新生成"},[s.createVNode(s.unref(Kf),{size:16})]),s.createElementVNode("button",{class:"toolbar-btn delete-btn",onClick:d[0]||(d[0]=s.withModifiers((...p)=>e.deleteNode&&e.deleteNode(...p),["stop"])),title:"删除图片"},[s.createVNode(s.unref(Jn),{size:16})])])):s.createCommentVNode("",!0),e.node.attrs.uploading?(s.openBlock(),s.createElementBlock("div",yS,[...d[2]||(d[2]=[s.createElementVNode("div",{class:"upload-spinner"},null,-1),s.createElementVNode("span",{class:"upload-text"},"正在上传...",-1)])])):s.createCommentVNode("",!0),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"image-preview-overlay",onClick:o},[s.createElementVNode("div",{class:"preview-container",onClick:d[1]||(d[1]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("img",{src:e.node.attrs.src,alt:e.node.attrs.alt||"",class:"preview-image"},null,8,TS)]),s.createElementVNode("button",{class:"close-btn",onClick:o,title:"关闭"},[s.createVNode(s.unref(An),{size:24})])])):s.createCommentVNode("",!0)]),_:1})]))]),_:1},8,["class"]))}}),[["__scopeId","data-v-768543c9"]]),Cl=ue.Node.create({name:"imageUpload",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,atom:!0,addAttributes(){return{src:{default:null,parseHTML:e=>e.getAttribute("src"),renderHTML:e=>({src:e.src})},alt:{default:null,parseHTML:e=>e.getAttribute("alt"),renderHTML:e=>({alt:e.alt})},title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})},prompt:{default:null,parseHTML:e=>e.getAttribute("data-prompt"),renderHTML:e=>e.prompt?{"data-prompt":e.prompt}:{}},uploading:{default:!1,parseHTML:e=>e.getAttribute("data-uploading")==="true",renderHTML:e=>e.uploading?{"data-uploading":"true"}:{}},uploadId:{default:null,parseHTML:e=>e.getAttribute("data-upload-id"),renderHTML:e=>e.uploadId?{"data-upload-id":e.uploadId}:{}}}},parseHTML(){return[{tag:'img[src]:not([src^="data:"]),img[src^="data:"]'}]},renderHTML({HTMLAttributes:e}){return["img",ue.mergeAttributes(this.options.HTMLAttributes,e)]},renderMarkdown:e=>{var i,o,u;const t=((i=e.attrs)==null?void 0:i.src)??"",n=((o=e.attrs)==null?void 0:o.alt)??"",r=((u=e.attrs)==null?void 0:u.title)??"";let a=`<img src="${t}"`;return n&&(a+=` alt="${n}"`),r&&(a+=` title="${r}"`),a+=`>
|
|
799
|
+
|
|
800
|
+
`,a},addCommands(){return{setUploadingImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e}),updateUploadingImage:(e,t)=>({tr:n,state:r,dispatch:a})=>{let i=null,o=null;return r.doc.descendants((u,l)=>{if(u.type.name===this.name&&u.attrs.uploadId===e)return i=l,o=u,!1}),i===null||!o?!1:(n.setNodeMarkup(i,void 0,{...o.attrs,...t,uploading:!1,uploadId:null}),a&&a(n),!0)},removeUploadingImage:e=>({tr:t,state:n,dispatch:r})=>{let a=null,i=0;return n.doc.descendants((o,u)=>{if(o.type.name===this.name&&o.attrs.uploadId===e)return a=u,i=o.nodeSize,!1}),a===null?!1:(t.delete(a,a+i),r&&r(t),!0)}}},addNodeView(){return ne.VueNodeViewRenderer(kS)}}),NS=["src","poster"],IS={key:0,class:"video-toolbar",contenteditable:"false"},wS={key:1,class:"upload-overlay",contenteditable:"false"},CS=Qe(s.defineComponent({__name:"VideoUploadComponent",props:{node:{},updateAttributes:{type:Function},deleteNode:{type:Function},getPos:{type:Function},editor:{}},setup(e){const t=s.ref(null);return(n,r)=>(s.openBlock(),s.createBlock(s.unref(ne.NodeViewWrapper),{class:s.normalizeClass(["video-upload-wrapper",{"is-uploading":e.node.attrs.uploading}])},{default:s.withCtx(()=>[s.createElementVNode("video",{ref_key:"videoRef",ref:t,src:e.node.attrs.src,poster:e.node.attrs.poster||"",class:"editor-video",controls:"",preload:"metadata",draggable:"false",onClick:r[0]||(r[0]=s.withModifiers(()=>{},["stop"]))},null,8,NS),!e.node.attrs.uploading&&e.editor.isEditable?(s.openBlock(),s.createElementBlock("div",IS,[s.createElementVNode("button",{class:"toolbar-btn delete-btn",onClick:r[1]||(r[1]=s.withModifiers((...a)=>e.deleteNode&&e.deleteNode(...a),["stop"])),title:"删除视频"},[s.createVNode(s.unref(Jn),{size:16})])])):s.createCommentVNode("",!0),e.node.attrs.uploading?(s.openBlock(),s.createElementBlock("div",wS,[...r[2]||(r[2]=[s.createElementVNode("div",{class:"upload-spinner"},null,-1),s.createElementVNode("span",{class:"upload-text"},"正在上传...",-1)])])):s.createCommentVNode("",!0)]),_:1},8,["class"]))}}),[["__scopeId","data-v-f146ef6e"]]),_S=ue.Node.create({name:"videoUpload",addOptions(){return{inline:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,atom:!0,addAttributes(){return{src:{default:null,parseHTML:e=>e.getAttribute("src"),renderHTML:e=>({src:e.src})},poster:{default:null,parseHTML:e=>e.getAttribute("poster"),renderHTML:e=>e.poster?{poster:e.poster}:{}},uploading:{default:!1,parseHTML:e=>e.getAttribute("data-uploading")==="true",renderHTML:e=>e.uploading?{"data-uploading":"true"}:{}},uploadId:{default:null,parseHTML:e=>e.getAttribute("data-upload-id"),renderHTML:e=>e.uploadId?{"data-upload-id":e.uploadId}:{}}}},parseHTML(){return[{tag:"video[src]"}]},renderHTML({HTMLAttributes:e}){return["video",ue.mergeAttributes(this.options.HTMLAttributes,e)]},renderMarkdown:e=>{var r,a;const t=((r=e.attrs)==null?void 0:r.src)??"",n=((a=e.attrs)==null?void 0:a.poster)??"";return n?`<video src="${t}" poster="${n}" controls></video>
|
|
801
|
+
|
|
802
|
+
`:`<video src="${t}" controls></video>
|
|
803
|
+
|
|
804
|
+
`},addCommands(){return{setUploadingVideo:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e}),updateUploadingVideo:(e,t)=>({tr:n,state:r,dispatch:a})=>{let i=null,o=null;return r.doc.descendants((u,l)=>{if(u.type.name===this.name&&u.attrs.uploadId===e)return i=l,o=u,!1}),i===null||!o?!1:(n.setNodeMarkup(i,void 0,{...o.attrs,...t,uploading:!1,uploadId:null}),a&&a(n),!0)},removeUploadingVideo:e=>({tr:t,state:n,dispatch:r})=>{let a=null,i=0;return n.doc.descendants((o,u)=>{if(o.type.name===this.name&&o.attrs.uploadId===e)return a=u,i=o.nodeSize,!1}),a===null?!1:(t.delete(a,a+i),r&&r(t),!0)}}},addNodeView(){return ne.VueNodeViewRenderer(CS)}}),xS=Op.extend({addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),color:{default:null,parseHTML:t=>t.style.backgroundColor||null,renderHTML:t=>t.color?{style:`background-color: ${t.color}`}:{}}}},parseHTML(){var e;return[...((e=this.parent)==null?void 0:e.call(this))||[],{tag:'mark[style*="background-color"]',priority:100,getAttrs:t=>{if(typeof t=="string")return!1;const n=t.getAttribute("style");return n&&n.match(/background-color:\s*([^;]+)/)?{}:!1}}]},renderMarkdown(e,t){var a;const n=t.renderChildren(e),r=(a=e.attrs)==null?void 0:a.color;return r?`<mark style="background-color: ${r}">${n}</mark>`:`==${n}==`}}),MS=Lp.Color.extend({renderMarkdown(e,t){var a;const n=t.renderChildren(e),r=(a=e.attrs)==null?void 0:a.color;return r?`<span style="color: ${r}">${n}</span>`:n}});function SS(e){return({node:t,hasAnchor:n,editor:r,pos:a})=>{if(t.type.name==="heading"){if(!n)return"";const o=t.attrs.level;return{1:"一级标题",2:"二级标题",3:"三级标题",4:"四级标题",5:"五级标题"}[o]||""}if(["bulletList","orderedList","taskList","listItem","taskItem","blockquote","codeBlock","colorBlock","table","tableRow","tableCell","tableHeader"].includes(t.type.name))return"";if(t.type.name==="paragraph"){if(e.onAICompletion&&e.aiEnabled){if(r&&typeof a=="number")try{const o=r.state.doc.resolve(a);for(let u=o.depth;u>0;u--){const l=o.node(u).type.name;if(["table","tableRow","tableCell","tableHeader"].includes(l))return""}if(o.parent.type.name==="doc"&&o.index(o.depth)===0)return e.placeholder||""}catch{}return""}if(r&&typeof a=="number")try{const o=r.state.doc.resolve(a);for(let u=o.depth;u>0;u--){const l=o.node(u).type.name;if(["table","tableRow","tableCell","tableHeader"].includes(l))return""}if(o.parent.type.name==="doc"&&o.index(o.depth)===0)return e.placeholder||""}catch{}}if(!n)return"";if(r&&typeof a=="number")try{const u=r.state.doc.resolve(a).parent;if(u.type.name==="colorBlock")return"";if(u.type.name==="listItem")return"列表项";if(u.type.name==="taskItem")return"任务"}catch{}return e.placeholder||""}}function DS(e){return{getExtensions:()=>{const n=[b_,Os.configure({link:!1,document:!1,codeBlock:!1,paragraph:!1,heading:!1,gapcursor:!1,dropcursor:!1,underline:!1,trailingNode:!1}),k_,w_,Dp.TrailingNode.configure({node:"paragraph",notAfter:["paragraph"]}),Hw,p_.configure({resizable:!0,cellMinWidth:100,View:null}),_p.TableRow,f_,c_,Ls.configure({showOnlyCurrent:!1,includeChildren:!0,placeholder:SS(e)}),Cp,AM,MS,xS.configure({multicolor:!0}),Ps.configure({openOnClick:!1,autolink:!1,linkOnPaste:!1,HTMLAttributes:{class:"editor-link"}}),Bs,Rs.configure({nested:!0}),Ex,Ox,jx,tM,iM,gM,bM,wM,KM,FM.configure({onGenerate:e.onAiImageGenerate,onAutoUpload:e.onAiImageAutoUpload,getPendingImage:e.getPendingImage}),ZM];return e.onAICompletion&&n.push(bp.configure({debounceDelay:500,minCharacters:10,contextBeforeCursor:1e3,contextAfterCursor:500,fetchCompletion:e.onAICompletion,enabled:e.aiEnabled})),e.onAIRefactor&&n.push(Ap.configure({fetchRefactoring:e.onAIRefactor,enabled:e.aiEnabled})),e.image&&n.push(Cl.configure({inline:!0,allowBase64:!1,HTMLAttributes:{class:"editor-image"}})),e.video&&n.push(_S.configure({inline:!1,HTMLAttributes:{class:"editor-video"}})),e.mentionConfig&&n.push(nS,bS.configure({mentionConfig:e.mentionConfig})),n.push(vl.Markdown.configure({html:!0,transformPastedText:!1,transformCopiedText:!1,markedOptions:{gfm:!0,breaks:!1}}).extend({onCreate(){this.editor.extensionManager.extensions.forEach(a=>{a.name!=="markdown"&&this.storage.manager.registerExtension(a,!1)})}})),n}}}function vS(e){return{getOutline:()=>{if(!e.value)return[];const r=[],a=e.value.state.tr;return e.value.state.doc.descendants((i,o)=>{if(i.type.name==="heading"){const u=i.attrs.id;if(u)r.push({level:i.attrs.level,text:i.textContent,id:u});else{const l=Math.random().toString(36).substring(2,9);a.setNodeAttribute(o,"id",l),r.push({level:i.attrs.level,text:i.textContent,id:l})}}}),a.steps.length>0&&e.value.view.dispatch(a),r},scrollToHeading:r=>{if(!e.value)return;const a=document.getElementById(r);if(a){a.scrollIntoView({behavior:"smooth",block:"start"});return}console.warn(`Heading with id ${r} not found in DOM, trying editor position...`)}}}function OS(e){return{handleDrop:(r,a,i,o)=>{if(!o&&a.dataTransfer&&a.dataTransfer.files&&a.dataTransfer.files[0]){const u=a.dataTransfer.files[0],l=u.type;if(l.startsWith("image/")&&e.imageEnabled&&e.onImageUpload)return a.preventDefault(),e.onImageUpload(u,r,a),!0;if(l.startsWith("video/")&&e.videoEnabled&&e.onVideoUpload)return a.preventDefault(),e.onVideoUpload(u,r,a),!0}return!1},handlePaste:(r,a,i)=>{var u;const o=(u=a.clipboardData)==null?void 0:u.items;if(!o)return!1;for(let l=0;l<o.length;l++){const c=o[l];if(c.type.startsWith("image/")&&e.imageEnabled&&e.onImageUpload){a.preventDefault();const f=c.getAsFile();return f&&e.onImageUpload(f,r,a),!0}if(c.type.startsWith("video/")&&e.videoEnabled&&e.onVideoUpload){a.preventDefault();const f=c.getAsFile();return f&&e.onVideoUpload(f,r,a),!0}}return!1}}}async function*LS(e){var i;if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=(i=e.body)==null?void 0:i.getReader(),n=new TextDecoder;if(!t)throw new Error("无法获取响应流");let r="",a=!1;for(;!a;){const{done:o,value:u}=await t.read();if(o)break;const l=n.decode(u,{stream:!0});r+=l;const c=r.split(`
|
|
805
|
+
`);r=c.pop()||"";for(const f of c){const d=f.trim();if(d&&d.startsWith("data: ")){const p=d.substring(6);try{const g=JSON.parse(p);if(g.event==="response_chunk"){const m=g.content||"";m&&(yield m)}else g.event==="end"&&(a=!0)}catch(g){console.error("解析 SSE 事件失败:",g)}}}}}function BS(e,t){let n=null,r=null,a=null;s.watch(()=>e.value,(o,u)=>{u&&(n&&u.off("mention-click",n),r&&u.off("mention-hover",r),a&&u.off("mention-hover-end",a)),o&&t.hasMentionConfig&&(n=l=>t.mentionHandlers.onMentionClick(l),r=l=>t.mentionHandlers.onMentionHover(l),a=()=>t.mentionHandlers.onMentionHoverEnd(),o.on("mention-click",n),o.on("mention-hover",r),o.on("mention-hover-end",a))},{immediate:!0});let i=null;s.watch(()=>e.value,(o,u)=>{if(u&&i&&u.off("ai-request",i),o&&t.onAIRequest){const{startAIStream:l,streamContent:c,endAIStream:f,cancelAIStream:d}=t.aiStreamControls;i=async({prompt:p,withImage:g})=>{if(!(!o||!t.onAIRequest))try{l();const m=await t.onAIRequest(p,{withImage:g??!1});if(m instanceof Response)for await(const b of LS(m))c(b);else if(m&&typeof m[Symbol.asyncIterator]=="function")for await(const b of m)c(b);f()}catch(m){console.error("[AI Handler] AI 请求失败:",m),d()}},o.on("ai-request",i)}},{immediate:!0})}function RS(e){const t=(a,i={})=>{const u=new DOMParser().parseFromString(a,"text/html");if(i.removeTitle){const c=u.querySelector(".document-title");c&&c.remove()}return u.querySelectorAll("pre code").forEach(c=>{const f=c,d=f.textContent||"",p=f.className.match(/language-(\w+)/),g=p?p[1]:null;try{let m;g&&de.registered(g)?m=de.highlight(g,d):m=de.highlightAuto(d);const b=Vh(m);f.innerHTML=b}catch(m){console.warn("[Theme Export] Code highlighting failed:",m)}}),u.body.innerHTML};return{getMinimalHTML:()=>{if(!e.value)return"";const a=e.value.getHTML();return`<div class="lianshu-theme-minimal">${t(a,{removeTitle:!0})}</div>`},getArtisticHTML:()=>{if(!e.value)return"";const a=e.value.getHTML();return`<div class="lianshu-theme-artistic">${t(a,{removeTitle:!0})}</div>`},applyCodeHighlight:t}}const PS={class:"editor-footer-slot"},Ep=Qe(s.defineComponent({__name:"LianshuEditor",props:{modelValue:{default:"<p></p>"},title:{default:""},placeholder:{default:"输入 '/' 唤起菜单,或点击左侧 '+' 添加内容..."},editable:{type:Boolean,default:!0},theme:{default:"light"},image:{type:[Object,Boolean],default:!1},video:{type:[Object,Boolean],default:!1},onAIRequest:{},onAiImageGenerate:{},onAiImageAutoUpload:{},onAICompletion:{},onAIRefactor:{},aiEnabled:{type:Boolean,default:!0},mentionConfig:{},templateConfig:{},backlinks:{default:()=>[]}},emits:["update:modelValue","update:title","mention-click","mention-hover","mention-hover-end","backlink-click","backlink-menu-click"],setup(e,{expose:t,emit:n}){const r=e,a=n,i=s.ref(null),o=s.ref(r.title||""),u=W=>{o.value=W,a("update:title",W)},l=()=>{E.value&&E.value.commands.focus("start")};s.watch(()=>r.title,W=>{W!==o.value&&(o.value=W||"")});const c=s.ref(new Map),f=W=>{const se=c.value.get(W);return se?se.status==="success"?{src:se.src,error:null}:se.status==="error"?{src:"",error:se.error}:{src:"",error:null,generating:!0}:null};s.provide("editorTheme",s.toRef(r,"theme")),s.provide("editorBacklinks",s.toRef(r,"backlinks")),s.provide("editorOnBacklinkClick",W=>a("backlink-click",W)),s.provide("editorOnBacklinkMenuClick",()=>a("backlink-menu-click")),s.provide("editorTemplateConfig",s.toRef(r,"templateConfig"));const{getExtensions:d}=DS({placeholder:r.placeholder,image:r.image,video:r.video,onAiImageGenerate:r.onAiImageGenerate,onAiImageAutoUpload:r.onAiImageAutoUpload,onAICompletion:r.onAICompletion,onAIRefactor:r.onAIRefactor,aiEnabled:r.aiEnabled,mentionConfig:r.mentionConfig,getPendingImage:f}),p=async(W,se,Se)=>{if(!r.image||r.image===!1){console.warn("图片上传未启用");return}const le=typeof r.image=="object"?r.image:{};if(le.maxSize){const he=le.maxSize*1024*1024;if(W.size>he){alert(`图片大小不能超过 ${le.maxSize}MB`);return}}if(le.acceptTypes&&le.acceptTypes.length>0){const he=W.type;if(!le.acceptTypes.some(tt=>he.includes(tt))){alert(`只支持以下图片格式: ${le.acceptTypes.join(", ")}`);return}}if(!le.uploader){const he=new FileReader;he.onload=tt=>{var Ge;const re=(Ge=tt.target)==null?void 0:Ge.result;E.value&&re&&E.value.chain().focus().setUploadingImage({src:re,uploading:!1}).run()},he.readAsDataURL(W);return}const be=m(),De=await new Promise(he=>{const tt=new FileReader;tt.onload=re=>{var Ge;return he((Ge=re.target)==null?void 0:Ge.result)},tt.readAsDataURL(W)});E.value&&E.value.chain().focus().setUploadingImage({src:De,alt:W.name,uploading:!0,uploadId:be}).run();try{const he=await le.uploader(W);he.errorCode===0&&he.data.src?E.value&&E.value.commands.updateUploadingImage(be,{src:he.data.src,alt:he.data.alt||W.name,title:he.data.title||""}):(E.value&&E.value.commands.removeUploadingImage(be),alert("图片上传失败"))}catch(he){console.error("图片上传错误:",he),E.value&&E.value.commands.removeUploadingImage(be),alert("图片上传失败,请重试")}},g=async(W,se,Se)=>{if(!r.video||r.video===!1){console.warn("视频上传未启用");return}const le=typeof r.video=="object"?r.video:{};if(le.maxSize){const he=le.maxSize*1024*1024;if(W.size>he){alert(`视频大小不能超过 ${le.maxSize}MB`);return}}if(le.acceptTypes&&le.acceptTypes.length>0){const he=W.type;if(!le.acceptTypes.some(tt=>he.includes(tt))){alert(`只支持以下视频格式: ${le.acceptTypes.join(", ")}`);return}}if(!le.uploader){const he=URL.createObjectURL(W);E.value&&E.value.chain().focus().setUploadingVideo({src:he,uploading:!1}).run();return}const be=m(),De=URL.createObjectURL(W);E.value&&E.value.chain().focus().setUploadingVideo({src:De,uploading:!0,uploadId:be}).run();try{const he=await le.uploader(W);he.errorCode===0&&he.data.src?E.value&&E.value.commands.updateUploadingVideo(be,{src:he.data.src,poster:he.data.poster}):(E.value&&E.value.commands.removeUploadingVideo(be),alert("视频上传失败"))}catch(he){console.error("视频上传错误:",he),E.value&&E.value.commands.removeUploadingVideo(be),alert("视频上传失败,请重试")}},m=()=>`upload-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,{handleDrop:b,handlePaste:A}=OS({onImageUpload:p,onVideoUpload:g,imageEnabled:!!r.image,videoEnabled:!!r.video}),E=ne.useEditor({extensions:d(),content:r.modelValue,editable:r.editable,onUpdate:({editor:W})=>{a("update:modelValue",W.getHTML())},editorProps:{handleDrop:b,handlePaste:A}});s.watch(()=>r.modelValue,W=>{var Se,le;!(((Se=E.value)==null?void 0:Se.getHTML())===W)&&W&&((le=E.value)==null||le.commands.setContent(W,!1))}),s.watch(()=>r.editable,W=>{var se;(se=E.value)==null||se.setEditable(W)});const w=()=>{const W=document.createElement("input");W.type="file",W.accept="image/*",W.onchange=se=>{var le;const Se=(le=se.target.files)==null?void 0:le[0];Se&&p(Se)},W.click()},C=()=>w();window.addEventListener("editor-trigger-image-upload",C),s.onBeforeUnmount(()=>{window.removeEventListener("editor-trigger-image-upload",C)});const T=()=>{const W=document.createElement("input");W.type="file",W.accept="video/*",W.onchange=se=>{var le;const Se=(le=se.target.files)==null?void 0:le[0];Se&&g(Se)},W.click()},N=()=>T();window.addEventListener("editor-trigger-video-upload",N),s.onBeforeUnmount(()=>{window.removeEventListener("editor-trigger-video-upload",N)});const D=({editor:W,from:se,to:Se})=>{if(!W.isEditable||se===Se)return!1;const{state:le}=W,{doc:be}=le,De=["documentTitle","linkCardBlock","linkCardInline","imageUpload","streamingPreview","videoEmbed"];let he=!1;return be.nodesBetween(se,Se,tt=>{if(De.includes(tt.type.name))return he=!0,!1}),!he},{startAIStream:B,streamContent:v,endAIStream:_,cancelAIStream:x,getStreamStatus:R}=s_(E,r.onAiImageGenerate,c);BS(E,{hasMentionConfig:!!r.mentionConfig,onAIRequest:r.onAIRequest,mentionHandlers:{onMentionClick:W=>a("mention-click",W),onMentionHover:W=>a("mention-hover",W),onMentionHoverEnd:()=>a("mention-hover-end")},aiStreamControls:{startAIStream:B,streamContent:v,endAIStream:_,cancelAIStream:x}});const{getHTML:O,getMarkdown:M,getJSON:S,getText:F,setMarkdown:V,setHTML:z,setJSON:H}=$o(E,{getTitle:()=>o.value,setTitle:W=>{o.value=W,a("update:title",W)}}),{getOutline:ie,scrollToHeading:Me}=vS(E),{copyToWechat:ye,getWechatThemes:ve,getWechatSamplePreview:q,getWechatPreviewHtml:J,getWechatThemeCssById:Ie}=qh(E),{getMinimalHTML:Ve,getArtisticHTML:oe}=RS(E);return s.onBeforeUnmount(()=>{var W;(W=E.value)==null||W.destroy()}),t({editor:E,triggerImageUpload:w,triggerVideoUpload:T,getOutline:ie,scrollToHeading:Me,getHTML:O,getMarkdown:M,getJSON:S,getText:F,setMarkdown:V,setHTML:z,setJSON:H,getMinimalHTML:Ve,getArtisticHTML:oe,startAIStream:B,streamContent:v,endAIStream:_,cancelAIStream:x,getStreamStatus:R,copyToWechat:ye,getWechatThemes:ve,getWechatSamplePreview:q,getWechatPreviewHtml:J,getWechatThemeCssById:Ie}),(W,se)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["document-editor",`theme-${r.theme}`]),ref_key:"editorWrapper",ref:i,onMousemove:se[2]||(se[2]=(...Se)=>W.handleMouseMove&&W.handleMouseMove(...Se)),onMouseleave:se[3]||(se[3]=(...Se)=>W.handleMouseLeave&&W.handleMouseLeave(...Se))},[s.createVNode(pE,{title:o.value,editable:r.editable,theme:r.theme,backlinks:r.backlinks,"onUpdate:title":u,onBacklinkClick:se[0]||(se[0]=Se=>a("backlink-click",Se)),onBacklinkMenuClick:se[1]||(se[1]=()=>a("backlink-menu-click")),onFocusEditor:l},null,8,["title","editable","theme","backlinks"]),s.createVNode(RA,{editor:s.unref(E)},null,8,["editor"]),s.unref(E)?(s.openBlock(),s.createBlock(s.unref($m),{key:0,editor:s.unref(E),"tippy-options":{duration:100},"should-show":D},{default:s.withCtx(()=>[s.createVNode(NA,{editor:s.unref(E)},null,8,["editor"])]),_:1},8,["editor"])):s.createCommentVNode("",!0),s.createVNode(s.unref(ne.EditorContent),{editor:s.unref(E),class:"editor-content"},null,8,["editor"]),s.createElementVNode("div",PS,[s.renderSlot(W.$slots,"footer",{},void 0,!0)])],34))}}),[["__scopeId","data-v-fc767ce7"]]);me.use({gfm:!0,breaks:!1});const US=`
|
|
806
|
+
## 输出格式规范
|
|
807
|
+
|
|
808
|
+
请严格按照以下 Markdown 格式输出内容:
|
|
809
|
+
|
|
810
|
+
### 标题
|
|
811
|
+
- 一级标题:# 标题文本
|
|
812
|
+
- 二级标题:## 标题文本
|
|
813
|
+
- 三级标题:### 标题文本
|
|
814
|
+
- 四级标题:#### 标题文本
|
|
815
|
+
- 五级标题:##### 标题文本
|
|
816
|
+
|
|
817
|
+
### 正文
|
|
818
|
+
- 普通段落直接书写,段落之间用空行分隔
|
|
819
|
+
- **粗体**:使用 **文本** 包裹
|
|
820
|
+
- *斜体*:使用 *文本* 包裹
|
|
821
|
+
- ~~删除线~~:使用 ~~文本~~ 包裹
|
|
822
|
+
- \`行内代码\`:使用反引号包裹
|
|
823
|
+
|
|
824
|
+
### 代码块
|
|
825
|
+
\`\`\`语言名称
|
|
826
|
+
代码内容
|
|
827
|
+
\`\`\`
|
|
828
|
+
支持的语言:javascript, typescript, python, java, cpp, csharp, php, ruby, go, rust, swift, kotlin, sql, bash, json, xml, html, css, scss, markdown
|
|
829
|
+
|
|
830
|
+
### 列表
|
|
831
|
+
无序列表:
|
|
832
|
+
- 列表项1
|
|
833
|
+
- 列表项2
|
|
834
|
+
|
|
835
|
+
有序列表:
|
|
836
|
+
1. 列表项1
|
|
837
|
+
2. 列表项2
|
|
838
|
+
|
|
839
|
+
### 任务列表
|
|
840
|
+
- [ ] 未完成任务
|
|
841
|
+
- [x] 已完成任务
|
|
842
|
+
|
|
843
|
+
### 引用
|
|
844
|
+
> 引用文本
|
|
845
|
+
|
|
846
|
+
⚠️ **重要限制**:引用块内只允许使用以下三种格式:
|
|
847
|
+
- **粗体**
|
|
848
|
+
- *斜体*
|
|
849
|
+
- ~~删除线~~
|
|
850
|
+
引用块内禁止使用代码块、列表、任务列表、图片、链接等其他格式。
|
|
851
|
+
|
|
852
|
+
### 链接
|
|
853
|
+
[链接文本](URL)
|
|
854
|
+
|
|
855
|
+
### 表格
|
|
856
|
+
| 列1 | 列2 | 列3 |
|
|
857
|
+
|-----|-----|-----|
|
|
858
|
+
| 内容 | 内容 | 内容 |
|
|
859
|
+
|
|
860
|
+
### 分隔线
|
|
861
|
+
---
|
|
862
|
+
|
|
863
|
+
### 彩色提示块(自定义扩展)
|
|
864
|
+
使用 :::颜色名 开头和 ::: 结尾包裹内容,创建带颜色背景的提示块:
|
|
865
|
+
|
|
866
|
+
:::gray
|
|
867
|
+
这是灰色提示块的内容
|
|
868
|
+
:::
|
|
869
|
+
|
|
870
|
+
:::cyan
|
|
871
|
+
这是天蓝色提示块的内容
|
|
872
|
+
:::
|
|
873
|
+
|
|
874
|
+
支持的颜色:gray(灰色)、blue(蓝色)、cyan(天蓝)、green(绿色)、lime(青柠)、yellow(黄色)、cream(米黄)、orange(橙色)、pink(粉色)、purple(紫色)
|
|
875
|
+
|
|
876
|
+
适用场景:
|
|
877
|
+
- 重要提示、警告信息
|
|
878
|
+
- 补充说明、注意事项
|
|
879
|
+
- 突出显示关键内容
|
|
880
|
+
|
|
881
|
+
### 链接卡片(自定义扩展)
|
|
882
|
+
使用 @[标题](URL) 格式创建链接预览卡片:
|
|
883
|
+
|
|
884
|
+
@[GitHub](https://github.com)
|
|
885
|
+
|
|
886
|
+
适用场景:
|
|
887
|
+
- 推荐阅读链接
|
|
888
|
+
- 参考资料引用
|
|
889
|
+
- 外部资源展示
|
|
890
|
+
|
|
891
|
+
### AI 配图(自定义扩展)如果用户有要求图文并茂 就必须要返回这个类型
|
|
892
|
+
使用 ((img: 图片描述)) 格式让 AI 自动生成配图:
|
|
893
|
+
|
|
894
|
+
((img: 一只可爱的小猫咪在电脑前写代码))
|
|
895
|
+
|
|
896
|
+
适用场景:
|
|
897
|
+
- 为文章添加配图
|
|
898
|
+
- 生成概念图、示意图
|
|
899
|
+
- 增强文章视觉效果
|
|
900
|
+
|
|
901
|
+
注意:描述要清晰具体,可以包含风格描述(如:卡通风格、写实风格、扁平化设计等)
|
|
902
|
+
|
|
903
|
+
### 注意事项
|
|
904
|
+
1. 每个段落之间请用空行分隔
|
|
905
|
+
2. 代码块必须使用三个反引号包裹,并指定语言
|
|
906
|
+
3. 引用块内只能使用粗体、斜体、删除线,不要嵌套其他复杂格式
|
|
907
|
+
4. 不要使用 HTML 标签
|
|
908
|
+
5. 彩色块内可以包含任意块级内容(段落、列表、代码块等)
|
|
909
|
+
6. 彩色块的 ::: 必须单独成行
|
|
910
|
+
7. AI 配图标记 ((img: 描述)) 会触发图片生成,请确保描述清晰
|
|
911
|
+
`.trim(),FS=`
|
|
912
|
+
## 🎨 图文并茂模式(必须遵守)
|
|
913
|
+
|
|
914
|
+
你的回复**必须**使用 ((img: 描述)) 语法生成配图。这是强制要求,不可忽略。
|
|
915
|
+
|
|
916
|
+
### 配图数量与位置
|
|
917
|
+
1. **必须配图**: 根据内容长度生成 1-3 张配图
|
|
918
|
+
2. **位置策略**:
|
|
919
|
+
- 开篇:概览性配图,直观展示主题
|
|
920
|
+
- 中间:在关键概念处插入说明配图
|
|
921
|
+
- 结尾:总结性配图(可选)
|
|
922
|
+
3. **图文呼应**: 配图必须与上下文紧密相关,不要随意插入无关图片
|
|
923
|
+
|
|
924
|
+
### 图片描述规范(核心要求!)
|
|
925
|
+
|
|
926
|
+
你输出的图片描述将**直接发送给 AI 绘图模型**生成图片,因此描述质量决定图片质量。
|
|
927
|
+
|
|
928
|
+
每个图片描述必须包含以下要素:
|
|
929
|
+
|
|
930
|
+
1. **主体描述** (必需)
|
|
931
|
+
- 明确描述画面的核心主体是什么
|
|
932
|
+
- 包含主体的动作、状态、表情
|
|
933
|
+
|
|
934
|
+
2. **场景与背景** (必需)
|
|
935
|
+
- 描述场景环境(室内/室外、什么地方)
|
|
936
|
+
- 背景元素和氛围
|
|
937
|
+
|
|
938
|
+
3. **画风与风格** (必需)
|
|
939
|
+
- 明确指定画风:扁平插画、3D渲染、水彩画、油画、科技感、极简风、赛博朋克、日系动漫、写实摄影等
|
|
940
|
+
- 风格关键词:温馨、专业、活泼、严肃、梦幻等
|
|
941
|
+
|
|
942
|
+
4. **色彩说明** (推荐)
|
|
943
|
+
- 主色调或配色方案
|
|
944
|
+
- 色彩氛围:温暖、冷调、明亮、柔和
|
|
945
|
+
|
|
946
|
+
5. **光影效果** (推荐)
|
|
947
|
+
- 光照类型:自然光、暖光、侧光、逆光、柔光
|
|
948
|
+
- 光影氛围:明亮、戏剧性、神秘
|
|
949
|
+
|
|
950
|
+
6. **细节丰富度**
|
|
951
|
+
- 装饰元素、纹理质感、特殊效果
|
|
952
|
+
|
|
953
|
+
### 示例对比
|
|
954
|
+
|
|
955
|
+
❌ **错误示例**(太简单,效果差):
|
|
956
|
+
((img: 一只猫在工作))
|
|
957
|
+
|
|
958
|
+
✅ **正确示例**(详细具体,效果好):
|
|
959
|
+
((img: 一只毛茸茸的橘色猫咪坐在白色现代简约书桌前,两只前爪搭在银色笔记本电脑键盘上,圆圆的眼睛专注地盯着屏幕。场景是温馨明亮的家庭书房,背景是装满彩色书籍的原木色书架,一盆绿萝点缀其间。窗外午后阳光透过白色纱帘洒入,在桌面形成斑驳光影。画风为温馨治愈的日系插画风格,整体色调温暖柔和,以米白色、原木色和橘色为主色调))
|
|
960
|
+
|
|
961
|
+
### 根据内容类型选择配图风格
|
|
962
|
+
|
|
963
|
+
| 内容类型 | 推荐配图风格 |
|
|
964
|
+
|---------|------------|
|
|
965
|
+
| 技术教程 | 扁平插画、流程图风格、科技感蓝色调 |
|
|
966
|
+
| 故事创作 | 场景氛围图、电影感构图、戏剧性光影 |
|
|
967
|
+
| 生活分享 | 温馨治愈风、日系插画、明亮柔和色调 |
|
|
968
|
+
| 概念解释 | 概念可视化、比喻性插画、简洁风格 |
|
|
969
|
+
| 商业文案 | 专业精致、现代简约、高级配色 |
|
|
970
|
+
|
|
971
|
+
### 重要提醒
|
|
972
|
+
- 每个 ((img: )) 标记的描述至少 80-150 字
|
|
973
|
+
- 不要使用模糊词汇如"好看的"、"漂亮的",要具体描述
|
|
974
|
+
- 描述用中文,可以包含英文风格关键词
|
|
975
|
+
`.trim();function HS(e){const t=/^:::(\w+)[ \t]*\n([\s\S]*?)\n:::[ \t]*(?:\n|$)/gm;return e.replace(t,(n,r,a)=>{const i=jr.find(u=>u.name===r);if(!i)return n;const o=me.parse(a.trim());return`<div data-type="color-block" data-color="${r}" style="background-color: ${i.bg}; border-radius: 8px; padding: 16px 20px; margin: 12px 0;">${o}</div>
|
|
976
|
+
`})}function zS(e){const t=/@\[([^\]]*)\]\(([^)]+)\)/g;return e.replace(t,(n,r,a)=>`<div data-type="link-card-block" data-url="${a}" data-title="${r}"></div>`)}function jS(e){const t=e.match(/^:::(\w+)\s*$/gm)||[],n=e.match(/^:::\s*$/gm)||[];return t.length>n.length}class VS{constructor(t){Oe(this,"buffer","");Oe(this,"editor");this.editor=t}processChunk(t){this.buffer+=t,this.processCompleteBlocks()}flush(){this.buffer.trim()&&(this.insertMarkdownBlock(this.buffer.trim()),this.buffer="")}clear(){this.buffer=""}getBuffer(){return this.buffer}processCompleteBlocks(){const t=this.buffer.match(/```/g);if(t&&t.length%2!==0||jS(this.buffer))return;const n=this.buffer.indexOf(`
|
|
977
|
+
|
|
978
|
+
`);if(n!==-1){const r=this.buffer.substring(0,n).trim();this.buffer=this.buffer.substring(n+2),r&&this.insertMarkdownBlock(r),this.processCompleteBlocks()}}insertMarkdownBlock(t){try{let n=HS(t),r=me.parse(n);r=zS(r),r=r.replace(/<li>\s*\[\s*\]\s*/g,'<li data-type="taskItem" data-checked="false">'),r=r.replace(/<li>\s*\[x\]\s*/gi,'<li data-type="taskItem" data-checked="true">'),r.includes('data-type="taskItem"')&&(r=r.replace(/<ul>/g,'<ul data-type="taskList">')),r=r.replace(/<p>\s*(<div data-type="link-card-block"[^>]*><\/div>)\s*<\/p>/g,"$1");const a=this.editor.state.doc.content.size;this.editor.chain().focus().setTextSelection(a).insertContent(r).run()}catch(n){console.error("Markdown 插入失败:",n)}}}const YS=()=>`stream-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,QS=()=>`upload-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;function _l(e,t){const n=async(a,i,o)=>{const u=typeof t=="function"?t():t;if(!u||u===!1){console.warn("图片上传未启用");return}const l=typeof u=="object"?u:{},c=p=>{l.onError?l.onError(p):alert(p)};if(l.maxSize){const p=l.maxSize*1024*1024;if(a.size>p){c(`图片大小不能超过 ${l.maxSize}MB`);return}}if(l.acceptTypes&&l.acceptTypes.length>0){const p=a.type;if(!l.acceptTypes.some(g=>p.includes(g))){c(`只支持以下图片格式: ${l.acceptTypes.join(", ")}`);return}}if(!l.uploader){const p=new FileReader;p.onload=g=>{var b;const m=(b=g.target)==null?void 0:b.result;e.value&&m&&e.value.chain().focus().setUploadingImage({src:m,uploading:!1}).run()},p.readAsDataURL(a);return}const f=QS(),d=await new Promise(p=>{const g=new FileReader;g.onload=m=>{var b;return p((b=m.target)==null?void 0:b.result)},g.readAsDataURL(a)});e.value&&e.value.chain().focus().setUploadingImage({src:d,alt:a.name,uploading:!0,uploadId:f}).run();try{const p=await l.uploader(a);p.errorCode===0&&p.data.src?e.value&&e.value.commands.updateUploadingImage(f,{src:p.data.src,alt:p.data.alt||a.name,title:p.data.title||""}):e.value&&(e.value.commands.removeUploadingImage(f),c("图片上传失败"))}catch(p){console.error("图片上传错误:",p),e.value&&(e.value.commands.removeUploadingImage(f),c("图片上传失败,请重试"))}};return{handleImageUpload:n,triggerImageUpload:()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=i=>{var u;const o=(u=i.target.files)==null?void 0:u[0];o&&n(o)},a.click()}}}const KS=()=>`upload-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;function WS(e,t){const n=async(a,i,o)=>{const u=typeof t=="function"?t():t;if(!u||u===!1){console.warn("视频上传未启用");return}const l=typeof u=="object"?u:{},c=p=>{l.onError?l.onError(p):alert(p)};if(l.maxSize){const p=l.maxSize*1024*1024;if(a.size>p){c(`视频大小不能超过 ${l.maxSize}MB`);return}}if(l.acceptTypes&&l.acceptTypes.length>0){const p=a.type;if(!l.acceptTypes.some(g=>p.includes(g))){c(`只支持以下视频格式: ${l.acceptTypes.join(", ")}`);return}}if(!l.uploader){const p=URL.createObjectURL(a);e.value&&e.value.chain().focus().setUploadingVideo({src:p,uploading:!1}).run();return}const f=KS(),d=URL.createObjectURL(a);e.value&&e.value.chain().focus().setUploadingVideo({src:d,uploading:!0,uploadId:f}).run();try{const p=await l.uploader(a);p.errorCode===0&&p.data.src?e.value&&e.value.commands.updateUploadingVideo(f,{src:p.data.src,poster:p.data.poster||""}):e.value&&(e.value.commands.removeUploadingVideo(f),c("视频上传失败"))}catch(p){console.error("视频上传错误:",p),e.value&&(e.value.commands.removeUploadingVideo(f),c("视频上传失败,请重试"))}finally{URL.revokeObjectURL(d)}};return{handleVideoUpload:n,triggerVideoUpload:()=>{const a=document.createElement("input");a.type="file",a.accept="video/*",a.onchange=i=>{var u;const o=(u=i.target.files)==null?void 0:u[0];o&&n(o)},a.click()}}}function GS(e){const t={enabled:!0,onCompletion:void 0,onRefactor:void 0,...e},n=s.ref(t),r=s.ref(!1),a=s.ref(null),i=s.ref(!1),o=s.ref(""),u=s.ref([]),l=s.ref({inputCharacters:0,lastInputTime:0,pauseDuration:0,totalCompletions:0,totalRefactorings:0}),c=E=>{n.value={...n.value,...E}},f=async(E,w)=>{if(n.value.enabled){if(!n.value.onCompletion){console.warn("[AI Assistant] onCompletion 函数未提供,请通过 props 传入");return}r.value=!0,a.value=null;try{await n.value.onCompletion(E,C=>{w(C)}),l.value.totalCompletions++}catch(C){throw a.value=C,console.error("[AI Assistant] 补全错误:",C),C}finally{r.value=!1}}},d=async(E,w,C)=>{if(n.value.enabled){if(!n.value.onRefactor){console.warn("[AI Assistant] onRefactor 函数未提供,请通过 props 传入");return}r.value=!0,a.value=null;try{await n.value.onRefactor(E,w,T=>{C(T)}),l.value.totalRefactorings++}catch(T){throw a.value=T,console.error("[AI Assistant] 重写错误:",T),T}finally{r.value=!1}}},p=()=>{},g=(E,w=5e3)=>{o.value=E,i.value=!0;const C={id:Date.now().toString(),message:E,timestamp:Date.now(),duration:w};u.value.push(C),w>0&&setTimeout(()=>{m()},w)},m=()=>{i.value=!1,o.value=""},b=E=>{const w=Date.now(),C=l.value.lastInputTime;if(C>0&&w-C>12e4&&g("卡住了吗?试试用 AI 重写选中的文字!(Cmd+Shift+R)",5e3),E-l.value.inputCharacters>500){const T=["写得不错!继续保持!✨","灵感满满!加油!💪","思路很清晰,继续!🚀","文笔流畅,很棒!📝"],N=T[Math.floor(Math.random()*T.length)];g(N,3e3),l.value.inputCharacters=E}l.value.lastInputTime=w},A=()=>({fetchCompletion:async(E,w)=>{const C="这是模拟的 AI 补全内容。";for(let T=0;T<C.length;T++)await new Promise(N=>setTimeout(N,30)),w(C[T])},fetchRefactoring:async(E,w,C)=>{const T=`【优化后】${E.replace(/。/g,"!")}`;for(let N=0;N<T.length;N++)await new Promise(D=>setTimeout(D,50)),C(T[N])}});return{aiConfig:n,updateConfig:c,isLoading:s.computed(()=>r.value),error:s.computed(()=>a.value),stop:p,fetchCompletion:f,fetchRefactoring:d,companionVisible:i,companionMessage:o,companionHistory:u,showCompanionMessage:g,hideCompanionMessage:m,checkUserState:b,stats:l,useMockAI:A}}const $S={class:"flash-toolbar"},qS={class:"toolbar-left"},JS={class:"flash-content"},ZS=Qe(s.defineComponent({__name:"FlashEditor",props:{modelValue:{default:"<p></p>"},placeholder:{default:"妙笔生花..."},editable:{type:Boolean,default:!0},theme:{default:"light"},image:{type:[Object,Boolean],default:!1},format:{default:"html"}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,a=n,i=ne.useEditor({extensions:[Os.configure({document:void 0,heading:{levels:[1,2,3]},link:!1}),Ls.configure({placeholder:()=>r.placeholder}),Bs,Rs.configure({nested:!0}),Ps.configure({openOnClick:!1,autolink:!1,linkOnPaste:!1}),vl.Markdown,...r.image?[Cl.configure({inline:!0,allowBase64:!1,HTMLAttributes:{class:"editor-image"}})]:[]],content:r.modelValue,editable:r.editable,...r.format==="markdown"?{contentType:"markdown"}:r.format==="json"?{contentType:"json"}:{},onUpdate:({editor:T})=>{r.format==="markdown"?a("update:modelValue",T.getMarkdown()):r.format==="json"?a("update:modelValue",JSON.stringify(T.getJSON())):a("update:modelValue",T.getHTML())},editorProps:{handleDrop:(T,N,D,B)=>{if(!B&&N.dataTransfer&&N.dataTransfer.files&&N.dataTransfer.files[0]){const v=N.dataTransfer.files[0];if(v.type.startsWith("image/"))return N.preventDefault(),d(v,T,N),!0}return!1},handlePaste:(T,N,D)=>{var v;const B=(v=N.clipboardData)==null?void 0:v.items;if(B){for(let _=0;_<B.length;_++)if(B[_].type.startsWith("image/")){N.preventDefault();const x=B[_].getAsFile();return x&&d(x,T,N),!0}}return!1}}});s.watch(()=>r.modelValue,T=>{if(!T||!i.value)return;let N;if(r.format==="markdown"?N=i.value.getMarkdown():r.format==="json"?N=JSON.stringify(i.value.getJSON()):N=i.value.getHTML(),!(N===T))if(r.format==="json")try{const B=JSON.parse(T);i.value.commands.setContent(B,!1)}catch(B){console.error("Failed to load JSON content:",B)}else r.format==="markdown"?i.value.commands.setContent(T,{contentType:"markdown",emitUpdate:!1}):i.value.commands.setContent(T,!1)}),s.watch(()=>r.editable,T=>{var N;(N=i.value)==null||N.setEditable(T)}),s.onBeforeUnmount(()=>{var T;(T=i.value)==null||T.destroy()});const o=()=>{var T;(T=i.value)==null||T.chain().focus().toggleBold().run()},u=()=>{var T;(T=i.value)==null||T.chain().focus().toggleTaskList().run()},l=()=>{var T;(T=i.value)==null||T.chain().focus().toggleBulletList().run()},c=()=>{var T;(T=i.value)==null||T.chain().focus().toggleOrderedList().run()},f=()=>{var T;(T=i.value)==null||T.chain().focus().unsetAllMarks().run()},{handleImageUpload:d,triggerImageUpload:p}=_l(i,()=>r.image),{getHTML:g,getMarkdown:m,getJSON:b,getText:A,setMarkdown:E,setHTML:w,setJSON:C}=$o(i);return t({editor:i,triggerImageUpload:p,getHTML:g,getMarkdown:m,getJSON:b,getText:A,setMarkdown:E,setHTML:w,setJSON:C}),(T,N)=>{var D,B,v,_;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flash-editor",{"theme-dark":e.theme==="dark"}])},[s.createElementVNode("div",$S,[s.createElementVNode("div",qS,[s.createElementVNode("button",{class:"toolbar-btn",onClick:N[0]||(N[0]=(...x)=>s.unref(p)&&s.unref(p)(...x)),title:"插入图片"},[s.createVNode(s.unref(Hf),{size:18})]),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{"is-active":(D=s.unref(i))==null?void 0:D.isActive("taskList")}]),onClick:u,title:"任务列表"},[s.createVNode(s.unref(Ob),{size:18})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{"is-active":(B=s.unref(i))==null?void 0:B.isActive("bold")}]),onClick:o,title:"加粗"},[s.createVNode(s.unref(Bf),{size:18})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{"is-active":(v=s.unref(i))==null?void 0:v.isActive("bulletList")}]),onClick:l,title:"无序列表"},[s.createVNode(s.unref(vo),{size:18})],2),s.createElementVNode("button",{class:s.normalizeClass(["toolbar-btn",{"is-active":(_=s.unref(i))==null?void 0:_.isActive("orderedList")}]),onClick:c,title:"有序列表"},[s.createVNode(s.unref(Do),{size:18})],2),s.createElementVNode("button",{class:"toolbar-btn",onClick:f,title:"清除格式"},[s.createVNode(s.unref(Ff),{size:18})])])]),s.createElementVNode("div",JS,[s.createVNode(s.unref(ne.EditorContent),{editor:s.unref(i)},null,8,["editor"])])],2)}}}),[["__scopeId","data-v-001a4f57"]]),XS={class:"mobile-content"},eD=Qe(s.defineComponent({__name:"MobileEditor",props:{modelValue:{default:"<p></p>"},placeholder:{default:"开始编辑..."},editable:{type:Boolean,default:!0},theme:{default:"light"},image:{type:[Object,Boolean],default:!1}},emits:["update:modelValue","ready"],setup(e,{expose:t,emit:n}){const r={};let a=null;const i=e,o=n,u=ne.useEditor({editorProps:{handleDrop:(b,A,E,w)=>{if(!w&&A.dataTransfer&&A.dataTransfer.files&&A.dataTransfer.files[0]){const C=A.dataTransfer.files[0];if(C.type.startsWith("image/"))return A.preventDefault(),a&&a(C),!0}return!1},handlePaste:(b,A,E)=>{var C;const w=(C=A.clipboardData)==null?void 0:C.items;if(w){for(let T=0;T<w.length;T++)if(w[T].type.startsWith("image/")){A.preventDefault();const N=w[T].getAsFile();return N&&a&&a(N),!0}}return!1}},extensions:[Os.configure({document:void 0,heading:{levels:[1,2,3]},link:!1}),Ls.configure({placeholder:()=>i.placeholder}),Bs,Rs.configure({nested:!0}),Ps.configure({openOnClick:!1,autolink:!1,linkOnPaste:!1}),Cl],content:i.modelValue,editable:i.editable,onUpdate:({editor:b})=>{const A=b.getHTML();o("update:modelValue",A),l("contentChanged",{html:A})},onFocus:()=>{l("editorFocused",{})},onBlur:()=>{l("editorBlurred",{})}}),l=(b,A)=>{var E,w;if(typeof window<"u"&&((w=(E=window.webkit)==null?void 0:E.messageHandlers)!=null&&w.mobileEditor)){const C={event:b,data:A,timestamp:Date.now()};window.webkit.messageHandlers.mobileEditor.postMessage(C)}},c=b=>new Promise((A,E)=>{const w=new FileReader;w.readAsDataURL(b),w.onload=()=>{const C=w.result,T=`upload-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;r[T]=A,l("uploadImage",{base64:C,uploadId:T})},w.onerror=E}),{handleImageUpload:f}=_l(u,{uploader:c});a=f;const d=(b,A)=>{var E,w,C,T,N,D,B,v,_,x,R,O,M,S,F,V;switch(b){case"setEditable":(E=u.value)==null||E.setEditable(A.editable);break;case"insertText":(w=u.value)==null||w.commands.insertContent(A.text);break;case"getContent":return(C=u.value)==null?void 0:C.getHTML();case"setContent":(T=u.value)==null||T.commands.setContent(A.html||A.json);break;case"toggleBold":(N=u.value)==null||N.chain().focus().toggleBold().run();break;case"toggleItalic":(D=u.value)==null||D.chain().focus().toggleItalic().run();break;case"toggleBulletList":(B=u.value)==null||B.chain().focus().toggleBulletList().run();break;case"toggleOrderedList":(v=u.value)==null||v.chain().focus().toggleOrderedList().run();break;case"toggleTaskList":(_=u.value)==null||_.chain().focus().toggleTaskList().run();break;case"insertImage":A.url&&((x=u.value)==null||x.chain().focus().setUploadingImage({src:A.url}).run());break;case"insertLink":A.url&&((R=u.value)==null||R.chain().focus().setLink({href:A.url}).run());break;case"getEditorContent":const z={html:(O=u.value)==null?void 0:O.getHTML(),json:(M=u.value)==null?void 0:M.getJSON(),text:(S=u.value)==null?void 0:S.getText()};l("editorContent",z);break;case"focus":(F=u.value)==null||F.commands.focus();break;case"blur":(V=u.value)==null||V.commands.blur();break;case"uploadFinished":if(r[A.uploadId]){const H=r[A.uploadId];A.success?H({errorCode:0,data:{src:A.url}}):H({errorCode:1,data:{}}),delete r[A.uploadId]}break}};return typeof window<"u"&&(window.mobileEditorBridge={handleCommand:d}),s.watch(()=>i.modelValue,b=>{var E,w;((E=u.value)==null?void 0:E.getHTML())===b||(w=u.value)==null||w.commands.setContent(b,!1)}),s.watch(()=>i.editable,b=>{var A;(A=u.value)==null||A.setEditable(b)}),s.onMounted(()=>{l("editorReady",{}),o("ready")}),s.onBeforeUnmount(()=>{var b;(b=u.value)==null||b.destroy()}),t({editor:u,getHTML:()=>{var b;return((b=u.value)==null?void 0:b.getHTML())||""},getJSON:()=>{var b;return((b=u.value)==null?void 0:b.getJSON())||{}},getText:()=>{var b;return((b=u.value)==null?void 0:b.getText())||""}}),(b,A)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["mobile-editor",{"theme-dark":e.theme==="dark"}])},[s.createElementVNode("div",XS,[s.createVNode(s.unref(ne.EditorContent),{editor:s.unref(u)},null,8,["editor"])])],2))}}),[["__scopeId","data-v-5d0cd69f"]]),tD={class:"tag-content"},nD={class:"tag-name"},rD=["onClick"],aD={class:"tag-input-wrapper"},iD={class:"tag-prefix"},sD=["onKeydown"],oD={key:0,class:"tag-dropdown"},uD={class:"dropdown-list"},lD=["onMousedown"],cD={class:"dropdown-tag-name"},fD={key:0,class:"tag-check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},dD={class:"create-text"},hD={class:"highlight-text"},pD=Qe(s.defineComponent({__name:"TagInput",props:{modelValue:{default:()=>[]},availableTags:{default:()=>[]},theme:{default:"light"}},emits:["update:modelValue","add","remove","create"],setup(e,{emit:t}){const n=e,r=t,a=s.ref(!1),i=s.ref(""),o=s.ref(null),u=s.ref(0),l=s.ref(null),c=()=>{l.value&&clearTimeout(l.value),l.value=window.setTimeout(()=>{var O;!i.value&&a.value&&(a.value=!1,(O=o.value)==null||O.blur())},3e3)},f=()=>{l.value&&(clearTimeout(l.value),l.value=null)},d=s.computed(()=>a.value||n.modelValue.length>0),p=s.computed(()=>{if(!i.value)return n.availableTags;const O=i.value.toLowerCase();return n.availableTags.filter(M=>M.name.toLowerCase().includes(O))}),g=s.computed(()=>{if(!i.value)return!1;const O=i.value.toLowerCase();return p.value.some(M=>M.name.toLowerCase()===O)}),m=s.computed(()=>a.value&&(p.value.length>0||i.value.length>0)),b=O=>n.modelValue.some(M=>M.id===O.id),A=()=>{d.value&&(a.value=!0,s.nextTick(()=>{var O;(O=o.value)==null||O.focus()}))},E=()=>{a.value=!0,i.value="",u.value=0,c(),s.nextTick(()=>{var O;(O=o.value)==null||O.focus()})},w=()=>{var O;f(),n.modelValue.length===0&&!i.value?a.value=!1:(a.value=!1,(O=o.value)==null||O.blur()),i.value="",u.value=0},C=()=>{c()},T=O=>{if(!i.value&&n.modelValue.length>0){const M=n.modelValue[n.modelValue.length-1];B(M)}},N=O=>{b(O)?B(O):D(O),i.value="",a.value=!0,s.nextTick(()=>{var M;(M=o.value)==null||M.focus()})},D=O=>{const M=[...n.modelValue,O];r("update:modelValue",M),r("add",O)},B=O=>{const M=n.modelValue.filter(S=>S.id!==O.id);r("update:modelValue",M),r("remove",O)},v=()=>{if(p.value.length>0&&u.value<p.value.length){const O=p.value[u.value];N(O);return}_()},_=()=>{if(!i.value.trim())return;const O=n.availableTags.find(M=>M.name.toLowerCase()===i.value.toLowerCase());O?b(O)||D(O):r("create",i.value.trim()),i.value="",E()},x=O=>{if(!m.value)return;const M=p.value.length+(i.value&&!g.value?1:0);M!==0&&(u.value=(u.value+O+M)%M)},R=O=>{O.altKey&&O.metaKey&&O.key.toLowerCase()==="k"&&(O.preventDefault(),a.value?w():E())};return s.onMounted(()=>{document.addEventListener("keydown",R)}),s.onUnmounted(()=>{document.removeEventListener("keydown",R)}),s.watch(i,()=>{u.value=0}),(O,M)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tag-input",{"theme-dark":e.theme==="dark"}])},[s.createElementVNode("div",{class:"tag-list",onClick:A},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.modelValue,S=>(s.openBlock(),s.createElementBlock("div",{key:S.id,class:"tag-item"},[s.createElementVNode("span",tD,[s.createElementVNode("span",nD,s.toDisplayString(S.name),1)]),s.createElementVNode("button",{class:"tag-remove-btn",onClick:s.withModifiers(F=>B(S),["stop"]),title:"移除标签"},[...M[3]||(M[3]=[s.createElementVNode("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},[s.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,rD)]))),128)),s.withDirectives(s.createElementVNode("div",aD,[s.withDirectives(s.createElementVNode("span",iD,"#",512),[[s.vShow,i.value]]),s.withDirectives(s.createElementVNode("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":M[0]||(M[0]=S=>i.value=S),type:"text",class:"inline-input",placeholder:"",onInput:c,onKeydown:[s.withKeys(s.withModifiers(v,["prevent"]),["enter"]),s.withKeys(w,["esc"]),s.withKeys(T,["delete"]),M[1]||(M[1]=s.withKeys(s.withModifiers(S=>x(-1),["prevent"]),["up"])),M[2]||(M[2]=s.withKeys(s.withModifiers(S=>x(1),["prevent"]),["down"]))],onBlur:C},null,40,sD),[[s.vModelText,i.value]]),m.value?(s.openBlock(),s.createElementBlock("div",oD,[s.createElementVNode("div",uD,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,(S,F)=>(s.openBlock(),s.createElementBlock("div",{key:S.id,class:s.normalizeClass(["dropdown-item",{"is-active":u.value===F,"is-selected":b(S)}]),onMousedown:s.withModifiers(V=>N(S),["prevent"])},[s.createElementVNode("span",{class:"tag-color-indicator",style:s.normalizeStyle({background:S.color||"#22c55e"})},null,4),s.createElementVNode("span",cD,s.toDisplayString(S.name),1),b(S)?(s.openBlock(),s.createElementBlock("svg",fD,[...M[4]||(M[4]=[s.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):s.createCommentVNode("",!0)],42,lD))),128)),i.value&&!g.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["dropdown-item create-new",{"is-active":u.value===p.value.length}]),onMousedown:s.withModifiers(_,["prevent"])},[M[6]||(M[6]=s.createElementVNode("div",{class:"create-icon-wrapper"},"#",-1)),s.createElementVNode("span",dD,[M[5]||(M[5]=s.createTextVNode("创建 ",-1)),s.createElementVNode("span",hD,s.toDisplayString(i.value),1)]),M[7]||(M[7]=s.createElementVNode("span",{class:"create-hint"},"回车创建",-1))],34)):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0)],512),[[s.vShow,d.value]]),d.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("button",{key:0,ref:"addBtnRef",class:"tag-add-btn",onClick:s.withModifiers(E,["stop"]),title:"添加标签 (⌥⌘K)"},[s.createVNode(s.unref(gb),{size:14})],512))])],2))}}),[["__scopeId","data-v-e3aa1095"]]),gD={class:"companion-message"},mD=Qe(s.defineComponent({__name:"AIFloatingCompanion",props:{editor:{},visible:{type:Boolean,default:!1},message:{default:""},offset:{default:()=>({x:0,y:-40})}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,a=s.ref(null),i=s.ref({top:0,left:0}),o=s.computed(()=>({top:`${i.value.top+n.offset.y}px`,left:`${i.value.left+n.offset.x}px`})),u=()=>{if(!n.editor)return;const{view:f,state:d}=n.editor,{from:p}=d.selection;try{const g=f.coordsAtPos(p),m=f.dom.getBoundingClientRect();i.value={top:g.top-m.top,left:g.left-m.left}}catch(g){console.error("Failed to get cursor position:",g)}};let l=null;s.watch(()=>n.editor,f=>{if(l&&(l(),l=null),f){const d=()=>{u()};f.on("selectionUpdate",d),f.on("update",d),l=()=>{f.off("selectionUpdate",d),f.off("update",d)},u()}},{immediate:!0}),s.watch(()=>n.visible,f=>{f&&u()});const c=()=>{r("close")};return s.onUnmounted(()=>{l&&l()}),(f,d)=>(s.openBlock(),s.createBlock(s.Transition,{name:"ai-companion-fade"},{default:s.withCtx(()=>[e.visible&&e.message?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"companionRef",ref:a,class:"ai-floating-companion",style:s.normalizeStyle(o.value)},[d[1]||(d[1]=s.createElementVNode("div",{class:"companion-avatar"},[s.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M2 17L12 22L22 17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M2 12L12 17L22 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),s.createElementVNode("div",gD,s.toDisplayString(e.message),1),s.createElementVNode("button",{class:"companion-close",onClick:c},[...d[0]||(d[0]=[s.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])])],4)):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-ad39fe1a"]]);Z.AIAutocompletion=bp,Z.AIFloatingCompanion=mD,Z.AISmartRefactoring=Ap,Z.EDITOR_MARKDOWN_PROMPT=US,Z.FlashEditor=ZS,Z.IMAGE_GENERATION_PROMPT=FS,Z.LianshuEditor=Ep,Z.MarkdownStreamParser=VS,Z.MobileEditor=eD,Z.TagInput=pD,Z.copyHtmlToWechat=r_,Z.default=Ep,Z.generateStreamSessionId=YS,Z.generateWechatPreviewHtml=n_,Z.getAvailableWechatThemes=a_,Z.getWechatThemeCssById=i_,Z.juice=Rr,Z.transformHtmlForWechat=ja,Z.useAIAssistant=GS,Z.useContentExport=$o,Z.useImageUpload=_l,Z.useVideoUpload=WS,Z.useWechatExport=qh,Object.defineProperties(Z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
979
|
+
//# sourceMappingURL=lianshu-editor.umd.js.map
|