You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
55 KiB

8 months ago
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e,t=0,n=e.length){let o=e.split(/(\r?\n)/);const r=o.filter(((e,t)=>t%2==1));o=o.filter(((e,t)=>t%2==0));let s=0;const i=[];for(let c=0;c<o.length;c++)if(s+=o[c].length+(r[c]&&r[c].length||0),s>=t){for(let e=c-2;e<=c+2||n>s;e++){if(e<0||e>=o.length)continue;const l=e+1;i.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${o[e]}`);const a=o[e].length,p=r[e]&&r[e].length||0;if(e===c){const e=t-(s-(a+p)),o=Math.max(1,n>s?a-e:n-t);i.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>s){const e=Math.max(Math.min(n-s,a),1);i.push(" | "+"^".repeat(e))}s+=a+p}}break}return i.join("\n")}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),i=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),c={},l=()=>{},a=()=>!1,p=/^on[^a-z]/,u=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,b=y((e=>e.replace(v,((e,t)=>t?t.toUpperCase():"")))),S=/\B([A-Z])/g,x=y((e=>e.replace(S,"-$1").toLowerCase())),k=y((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=y((e=>e?`on${k(e)}`:""));function _(e){throw e}function T(e){}function E(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const O=Symbol(""),C=Symbol(""),w=Symbol(""),$=Symbol(""),I=Symbol(""),M=Symbol(""),P=Symbol(""),R=Symbol(""),V=Symbol(""),L=Symbol(""),j=Symbol(""),A=Symbol(""),B=Symbol(""),F=Symbol(""),D=Symbol(""),H=Symbol(""),W=Symbol(""),J=Symbol(""),U=Symbol(""),z=Symbol(""),G=Symbol(""),K=Symbol(""),q=Symbol(""),Y=Symbol(""),Z=Symbol(""),Q=Symbol(""),X=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe=Symbol(""),re=Symbol(""),se=Symbol(""),ie=Symbol(""),ce=Symbol(""),le=Symbol(""),ae=Symbol(""),pe=Symbol(""),ue=Symbol(""),fe={[O]:"Fragment",[C]:"Teleport",[w]:"Suspense",[$]:"KeepAlive",[I]:"BaseTransition",[M]:"openBlock",[P]:"createBlock",[R]:"createElementBlock",[V]:"createVNode",[L]:"createElementVNode",[j]:"createCommentVNode",[A]:"createTextVNode",[B]:"createStaticVNode",[F]:"resolveComponent",[D]:"resolveDynamicComponent",[H]:"resolveDirective",[W]:"resolveFilter",[J]:"withDirectives",[U]:"renderList",[z]:"renderSlot",[G]:"createSlots",[K]:"toDisplayString",[q]:"mergeProps",[Y]:"normalizeClass",[Z]:"normalizeStyle",[Q]:"normalizeProps",[X]:"guardReactiveProps",[ee]:"toHandlers",[te]:"camelize",[ne]:"capitalize",[oe]:"toHandlerKey",[re]:"setBlockTracking",[se]:"pushScopeId",[ie]:"popScopeId",[ce]:"withCtx",[le]:"unref",[ae]:"isRef",[pe]:"withMemo",[ue]:"isMemoSame"};function de(e){Object.get