rehype-all-the-thumbs-curate
Version:
Supporting rehype-all-the-thumbs by finding elements to be processed
5 lines (4 loc) • 47.9 kB
JavaScript
var Mt=Object.create,ne=Object.defineProperty,It=Object.getPrototypeOf,Tt=Object.prototype.hasOwnProperty,Dt=Object.getOwnPropertyNames,Ft=Object.getOwnPropertyDescriptor;var fn=e=>ne(e,"__esModule",{value:!0});var s=(e,n)=>()=>(n||(n={exports:{}},e(n.exports,n)),n.exports),At=(e,n)=>{for(var r in n)ne(e,r,{get:n[r],enumerable:!0})},qt=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Dt(n))!Tt.call(e,l)&&l!=="default"&&ne(e,l,{get:()=>n[l],enumerable:!(r=Ft(n,l))||r.enumerable});return e},we=e=>e&&e.__esModule?e:qt(fn(ne(e!=null?Mt(It(e)):{},"default",{value:e,enumerable:!0})),e);var K=s((ho,dn)=>{"use strict";dn.exports=Lt;var Nt=Function.prototype,hn={}.hasOwnProperty;function Lt(e,n){var r=n||{};function l(t){var i=l.invalid,o=l.handlers;return t&&hn.call(t,e)&&(i=hn.call(o,t[e])?o[t[e]]:l.unknown),(i||Nt).apply(this,arguments)}return l.handlers=r.handlers||{},l.invalid=r.invalid,l.unknown=r.unknown,l}});var vn=s((go,gn)=>{gn.exports=Rt;var Bt=Object.prototype.hasOwnProperty;function Rt(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var l in r)Bt.call(r,l)&&(e[l]=r[l])}return e}});var Ce=s((vo,mn)=>{"use strict";mn.exports=yn;var Se=yn.prototype;Se.space=null;Se.normal={};Se.property={};function yn(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}});var ke=s((mo,xn)=>{"use strict";var bn=vn(),jt=Ce();xn.exports=zt;function zt(e){for(var n=e.length,r=[],l=[],t=-1,i,o;++t<n;)i=e[t],r.push(i.property),l.push(i.normal),o=i.space;return new jt(bn.apply(null,r),bn.apply(null,l),o)}});var Oe=s((yo,wn)=>{"use strict";wn.exports=Ut;function Ut(e){return e.toLowerCase()}});var Ee=s((xo,Sn)=>{"use strict";Sn.exports=Cn;var I=Cn.prototype;I.space=null;I.attribute=null;I.property=null;I.boolean=!1;I.booleanish=!1;I.overloadedBoolean=!1;I.number=!1;I.commaSeparated=!1;I.spaceSeparated=!1;I.commaOrSpaceSeparated=!1;I.mustUseProperty=!1;I.defined=!1;function Cn(e,n){this.property=e,this.attribute=n}});var J=s(R=>{"use strict";var Ht=0;R.boolean=j();R.booleanish=j();R.overloadedBoolean=j();R.number=j();R.spaceSeparated=j();R.commaSeparated=j();R.commaOrSpaceSeparated=j();function j(){return Math.pow(2,++Ht)}});var Me=s((wo,kn)=>{"use strict";var On=Ee(),En=J();kn.exports=Pe;Pe.prototype=new On;Pe.prototype.defined=!0;var Pn=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Vt=Pn.length;function Pe(e,n,r,l){var t=-1,i;for(Mn(this,"space",l),On.call(this,e,n);++t<Vt;)i=Pn[t],Mn(this,i,(r&En[i])===En[i])}function Mn(e,n,r){r&&(e[n]=r)}});var z=s((So,In)=>{"use strict";var Tn=Oe(),Wt=Ce(),Kt=Me();In.exports=Xt;function Xt(e){var n=e.space,r=e.mustUseProperty||[],l=e.attributes||{},t=e.properties,i=e.transform,o={},a={},f,p;for(f in t)p=new Kt(f,i(l,f),t[f],n),r.indexOf(f)!==-1&&(p.mustUseProperty=!0),o[f]=p,a[Tn(f)]=f,a[Tn(p.attribute)]=f;return new Wt(o,a,n)}});var Ie=s((Co,Dn)=>{"use strict";var $t=z();Dn.exports=$t({space:"xlink",transform:Yt,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Yt(e,n){return"xlink:"+n.slice(5).toLowerCase()}});var Te=s((ko,Fn)=>{"use strict";var Zt=z();Fn.exports=Zt({space:"xml",transform:Jt,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Jt(e,n){return"xml:"+n.slice(3).toLowerCase()}});var De=s((Oo,An)=>{"use strict";An.exports=Qt;function Qt(e,n){return n in e?e[n]:n}});var Fe=s((Eo,qn)=>{"use strict";var Gt=De();qn.exports=_t;function _t(e,n){return Gt(e,n.toLowerCase())}});var Ae=s((Po,Ln)=>{"use strict";var el=z(),nl=Fe();Ln.exports=el({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nl,properties:{xmlns:null,xmlnsXLink:null}})});var Le=s((Mo,Nn)=>{"use strict";var qe=J(),rl=z(),E=qe.booleanish,T=qe.number,U=qe.spaceSeparated;Nn.exports=rl({transform:tl,properties:{ariaActiveDescendant:null,ariaAtomic:E,ariaAutoComplete:null,ariaBusy:E,ariaChecked:E,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:E,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:E,ariaFlowTo:U,ariaGrabbed:E,ariaHasPopup:null,ariaHidden:E,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:T,ariaLive:null,ariaModal:E,ariaMultiLine:E,ariaMultiSelectable:E,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:E,ariaReadOnly:E,ariaRelevant:null,ariaRequired:E,ariaRoleDescription:U,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:E,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null}});function tl(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});var Bn=s((Io,Rn)=>{"use strict";var X=J(),ll=z(),al=Fe(),g=X.boolean,il=X.overloadedBoolean,Q=X.booleanish,b=X.number,O=X.spaceSeparated,re=X.commaSeparated;Rn.exports=ll({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:al,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:re,acceptCharset:O,accessKey:O,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:O,autoFocus:g,autoPlay:g,capture:g,charSet:null,checked:g,cite:null,className:O,cols:b,colSpan:null,content:null,contentEditable:Q,controls:g,controlsList:O,coords:b|re,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:il,draggable:Q,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:O,height:b,hidden:g,high:b,href:null,hrefLang:null,htmlFor:O,httpEquiv:O,id:null,imageSizes:null,imageSrcSet:re,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:O,itemRef:O,itemScope:g,itemType:O,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:g,optimum:b,pattern:null,ping:O,placeholder:null,playsInline:g,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:O,required:g,reversed:g,rows:b,rowSpan:b,sandbox:O,scope:null,scoped:g,seamless:g,selected:g,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:re,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:Q,width:b,wrap:null,align:null,aLink:null,archive:O,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:b,security:null,unselectable:null}})});var zn=s((To,jn)=>{"use strict";var ol=ke(),ul=Ie(),sl=Te(),cl=Ae(),pl=Le(),fl=Bn();jn.exports=ol([sl,ul,cl,pl,fl])});var Vn=s((Do,Un)=>{"use strict";var G=J(),dl=z(),hl=De(),gl=G.boolean,c=G.number,Hn=G.spaceSeparated,Ne=G.commaSeparated,D=G.commaOrSpaceSeparated;Un.exports=dl({space:"svg",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",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"},transform:hl,properties:{about:D,accentHeight:c,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:c,amplitude:c,arabicForm:null,ascent:c,attributeName:null,attributeType:null,azimuth:c,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:c,by:null,calcMode:null,capHeight:c,className:Hn,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:c,diffuseConstant:c,direction:null,display:null,dur:null,divisor:c,dominantBaseline:null,download:gl,dx:null,dy:null,edgeMode:null,editable:null,elevation:c,enableBackground:null,end:null,event:null,exponent:c,externalResourcesRequired:null,fill:null,fillOpacity:c,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:c,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:c,horizOriginX:c,horizOriginY:c,id:null,ideographic:c,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:c,k:c,k1:c,k2:c,k3:c,k4:c,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:c,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:c,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:c,overlineThickness:c,paintOrder:null,panose1:null,path:null,pathLength:c,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Hn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:c,pointsAtY:c,pointsAtZ:c,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,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:c,specularExponent:c,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:c,strikethroughThickness:c,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:c,strokeOpacity:c,strokeWidth:null,style:null,surfaceScale:c,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:c,tableValues:null,target:null,targetX:c,targetY:c,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,u1:null,u2:null,underlinePosition:c,underlineThickness:c,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:c,values:null,vAlphabetic:c,vMathematical:c,vectorEffect:null,vHanging:c,vIdeographic:c,version:null,vertAdvY:c,vertOriginX:c,vertOriginY:c,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:c,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})});var Re=s((Fo,Wn)=>{"use strict";var vl=ke(),ml=Ie(),yl=Te(),xl=Ae(),bl=Le(),wl=Vn();Wn.exports=vl([yl,ml,xl,bl,wl])});var ze=s(Be=>{"use strict";Be.parse=Sl;Be.stringify=Cl;var je=",",Kn=" ",_="";function Sl(e){for(var n=[],r=String(e||_),l=r.indexOf(je),t=0,i=!1,o;!i;)l===-1&&(l=r.length,i=!0),o=r.slice(t,l).trim(),(o||!i)&&n.push(o),t=l+1,l=r.indexOf(je,t);return n}function Cl(e,n){var r=n||{},l=r.padLeft===!1?_:Kn,t=r.padRight?Kn:_;return e[e.length-1]===_&&(e=e.concat(_)),e.join(t+je+l).trim()}});var $n=s(te=>{"use strict";te.basicFilter=Ue(kl,!0);te.extendedFilter=Ue(Ol,!0);te.lookup=Ue(El);function kl(e,n){return n==="*"||e===n||e.indexOf(n+"-")>-1}function Ol(e,n){var r=e.split("-"),l=n.split("-"),t=0,i=0;if(l[i]!=="*"&&r[t]!==l[i])return!1;for(t++,i++;i<l.length;){if(l[i]==="*"){i++;continue}if(!r[t])return!1;if(r[t]===l[i]){t++,i++;continue}if(r[t].length===1)return!1;t++}return!0}function El(e,n){for(var r=n,l;;){if(r==="*"||e===r)return!0;if(l=r.lastIndexOf("-"),l<0)return!1;r.charAt(l-2)==="-"&&(l-=2),r=r.slice(0,l)}}function Ue(e,n){return r;function r(l,t){for(var i=Xn(l,"tag"),o=Xn(t==null?"*":t,"range"),a=[],f=-1,p,d,v;++f<o.length;)if(p=o[f].toLowerCase(),!(!n&&p==="*")){for(d=-1,v=[];++d<i.length;)if(e(i[d].toLowerCase(),p)){if(!n)return i[d];a.push(i[d])}else v.push(i[d]);i=v}return n?a:void 0}}function Xn(e,n){var r=e&&typeof e=="string"?[e]:e;if(!r||typeof r!="object"||!("length"in r))throw new Error("Invalid "+n+" `"+r+"`, expected non-empty string");return r}});var Zn=s((Lo,Yn)=>{Yn.exports=Pl;function Pl(e){return n;function n(){return!e.apply(this,arguments)}}});var Gn=s((No,Jn)=>{"use strict";Jn.exports=Qn;function Qn(e){if(typeof e=="string")return Il(e);if(e==null)return He;if(typeof e=="object")return Ml(e);if(typeof e=="function")return Tl(e);throw new Error("Expected function, string, or array as test")}function Dl(e){for(var n=e.length,r=-1,l=[];++r<n;)l[r]=Qn(e[r]);return l}function Ml(e){var n=Dl(e),r=n.length;return l;function l(){for(var t=-1;++t<r;)if(n[t].apply(this,arguments))return!0;return!1}}function Il(e){return n;function n(r){return He(r)&&r.tagName===e}}function Tl(e){return n;function n(r){return He(r)&&Boolean(e.apply(this,arguments))}}function He(e){return e&&typeof e=="object"&&e.type==="element"&&typeof e.tagName=="string"}});var Ve=s((Ro,_n)=>{"use strict";var er=Gn();_n.exports=nr;nr.convert=er;function nr(e,n,r,l,t){var i=l!=null,o=r!=null,a=er(n);if(o&&(typeof r!="number"||r<0||r===Infinity))throw new Error("Expected positive finite index for child node");if(i&&(!l.type||!l.children))throw new Error("Expected parent node");if(!e||!e.type||typeof e.type!="string")return!1;if(i!==o)throw new Error("Expected both parent and index");return a.call(t,e,r,l)}});var We=s((Bo,rr)=>{"use strict";var Fl={}.hasOwnProperty;rr.exports=Al;function Al(e,n){var r,l;return!e||!n||typeof e!="object"||e.type!=="element"?!1:(r=e.properties,l=r&&Fl.call(r,n)&&r[n],l!=null&&l!==!1)}});var lr=s((jo,tr)=>{"use strict";tr.exports=ql;var Ll=/[ \t\n\f\r]/g;function ql(e){var n;if(e&&typeof e=="object"&&e.type==="text")n=e.value||"";else if(typeof e=="string")n=e;else return!1;return n.replace(Ll,"")===""}});var $e=s((zo,ar)=>{"use strict";ar.exports=ir;var Nl=ze().parse,Rl=$n().extendedFilter,Bl=K(),le=Zn(),B=Ve(),H=We(),jl=lr();ir.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];var or=Ke(),ae=Bl("name"),y=ae.handlers,ur={html:"html",svg:"svg"},zl=["button","input","select","textarea","optgroup","option","menuitem","fieldset"],Ul=["a","area","link"],Hl=["input","textarea","select"];ae.unknown=Vl;ae.invalid=Wl;y.any=Xe;y["any-link"]=Kl;y.blank=Xl;y.checked=$l;y.dir=Yl;y.disabled=sr;y.empty=Zl;y.enabled=le(sr);y["first-child"]=Jl;y["first-of-type"]=Ql;y.has=Gl;y.lang=_l;y["last-child"]=ea;y["last-of-type"]=na;y.matches=Xe;y.not=le(Xe);y["nth-child"]=ra;y["nth-last-child"]=ta;y["nth-of-type"]=la;y["nth-last-of-type"]=aa;y["only-child"]=ia;y["only-of-type"]=oa;y.optional=le(cr);y["read-only"]=le(pr);y["read-write"]=pr;y.required=cr;y.root=ua;y.scope=sa;function ir(e,n,r,l,t){for(var i=e.pseudos,o=i.length,a=-1;++a<o;)if(!ae(i[a],n,r,l,t))return!1;return!0}function Xe(e,n,r,l,t){var i=t.shallow,o=t.one,a;return t.shallow=!0,t.one=!0,a=or(e.value,n,t)[0]===n,t.shallow=i,t.one=o,a}function Kl(e,n){return B(n,Ul)&&H(n,"href")}function $l(e,n){var r=n.properties.type;return B(n,["input","menuitem"])&&(r==="checkbox"||r==="radio")?H(n,"checked"):B(n,"option")?H(n,"selected"):!1}function Yl(e,n,r,l,t){return t.direction===e.value}function sr(e,n){return B(n,zl)&&H(n,"disabled")}function cr(e,n){return B(n,Hl)&&H(n,"required")}function pr(e,n,r,l,t){var i=B(n,["input","textarea"]);return i&&!H(n,"readOnly")&&!H(n,"disabled")||!i&&t.editableOrEditingHost}function ua(e,n,r,l,t){var i=t.schema.space;return(!l||l.type==="root")&&i in ur&&B(n,ur[i])}function sa(e,n,r,l,t){return B(n)&&t.scopeElements.indexOf(n)!==-1}function Zl(e,n){return!fr(n,r);function r(l){return l.type==="element"||l.type==="text"}}function Xl(e,n){return!fr(n,r);function r(l){return l.type==="element"||l.type==="text"&&!jl(l)}}function Jl(e,n,r,l,t){return L(t,e),t.elementIndex===0}function _l(e,n,r,l,t){return t.language!==""&&t.language!==void 0&&Rl(t.language,Nl(e.value)).length!==0}function ea(e,n,r,l,t){return L(t,e),t.elementIndex===t.elementCount-1}function ia(e,n,r,l,t){return L(t,e),t.elementCount===1}function ra(e,n,r,l,t){return L(t,e),e.value(t.elementIndex)}function ta(e,n,r,l,t){return L(t,e),e.value(t.elementCount-t.elementIndex-1)}function la(e,n,r,l,t){return L(t,e),e.value(t.typeIndex)}function aa(e,n,r,l,t){return L(t,e),e.value(t.typeCount-1-t.typeIndex)}function Ql(e,n,r,l,t){return L(t,e),t.typeIndex===0}function na(e,n,r,l,t){return L(t,e),t.typeIndex===t.typeCount-1}function oa(e,n,r,l,t){return L(t,e),t.typeCount===1}function fr(e,n){for(var r=e&&e.children,l=r&&r.length,t=-1;++t<l;)if(n(r[t]))return!0;return!1}function Wl(){throw new Error("Invalid pseudo-selector")}function Vl(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function L(e,n){if(e.shallow)throw new Error("Cannot use `:"+n.name+"` without parent")}function Gl(e,n,r,l,t){var i=t.shallow,o=t.one,a=t.scopeElements,f=ca(e.value),p;return t.shallow=!1,t.one=!0,t.scopeElements=[n],p=or(f,n,t)[0],t.shallow=i,t.one=o,t.scopeElements=a,p}function ca(e){var n,r,l,t;for(e.type==="ruleSet"&&(e={type:"selectors",selectors:[e]}),n=e.selectors,r=n.length,l=-1;++l<r;)t=n[l].rule,t.nestingOperator=null,(!t.pseudos||t.pseudos.length!==1||t.pseudos[0].name!=="scope")&&(t={type:"rule",rule:t,pseudos:[{name:"scope"}]}),n[l]=t;return e}});var hr=s((Uo,dr)=>{"use strict";dr.exports=pa;function pa(e,n){return e.tagName==="*"||e.tagName===n.tagName}});var mr=s((Ho,gr)=>{"use strict";var fa=Oe(),da=Me(),ha=Ee(),Ye="data";gr.exports=ga;var va=/^data[-\w.:]+$/i,vr=/-[a-z]/g,ma=/[A-Z]/g;function ga(e,n){var r=fa(n),l=n,t=ha;return r in e.normal?e.property[e.normal[r]]:(r.length>4&&r.slice(0,4)===Ye&&va.test(n)&&(n.charAt(4)==="-"?l=ya(n):n=xa(n),t=da),new t(l,n))}function ya(e){var n=e.slice(5).replace(vr,ba);return Ye+n.charAt(0).toUpperCase()+n.slice(1)}function xa(e){var n=e.slice(4);return vr.test(n)?e:(n=n.replace(ma,wa),n.charAt(0)!=="-"&&(n="-"+n),Ye+n)}function wa(e){return"-"+e.toLowerCase()}function ba(e){return e.charAt(1).toUpperCase()}});var xr=s(Ze=>{"use strict";Ze.parse=Sa;Ze.stringify=Ca;var yr="",ka=" ",Oa=/[ \t\n\r\f]+/g;function Sa(e){var n=String(e||yr).trim();return n===yr?[]:n.split(Oa)}function Ca(e){return e.join(ka).trim()}});var wr=s((Wo,br)=>{"use strict";br.exports=Ea;var Pa=K(),V=We(),Ma=mr(),Ia=xr().stringify,Ta=ze().stringify,ie=Pa("operator"),$=ie.handlers;ie.unknown=Da;ie.invalid=Fa;$["="]=Aa;$["~="]=qa;$["|="]=La;$["^="]=Na;$["$="]=Ra;$["*="]=Ba;function Ea(e,n,r){for(var l=e.attrs,t=l.length,i=-1,o,a;++i<t;)if(a=l[i],o=Ma(r,a.name),!ie(a,n,o))return!1;return!0}function Fa(e,n,r){return V(n,r.property)}function Aa(e,n,r){return V(n,r.property)?Y(n.properties[r.property],r)===e.value:!1}function qa(e,n,r){var l;return V(n,r.property)?(l=n.properties[r.property],typeof l=="object"&&!r.commaSeparated&&l.indexOf(e.value)!==-1?!0:Y(l,r)===e.value):!1}function La(e,n,r){var l;return V(n,r.property)?(l=Y(n.properties[r.property],r),Boolean(l===e.value||l.slice(0,e.value.length)===e.value&&l.charAt(e.value.length)==="-")):!1}function Na(e,n,r){var l;return V(n,r.property)?(l=Y(n.properties[r.property],r),l.slice(0,e.value.length)===e.value):!1}function Ra(e,n,r){return V(n,r.property)?Y(n.properties[r.property],r).slice(-e.value.length)===e.value:!1}function Ba(e,n,r){return V(n,r.property)?Y(n.properties[r.property],r).indexOf(e.value)!==-1:!1}function Da(e){throw new Error("Unknown operator `"+e.operator+"`")}function Y(e,n){return typeof e=="number"?e=String(e):typeof e=="boolean"?e=n.attribute:typeof e=="object"&&"length"in e&&(e=(n.commaSeparated?Ta:Ia)(e)),e}});var Cr=s((Ko,Sr)=>{"use strict";Sr.exports=ja;function ja(e,n){for(var r=n.properties.className||[],l=e.classNames,t=l.length,i=-1;++i<t;)if(r.indexOf(l[i])===-1)return!1;return!0}});var Or=s((Xo,kr)=>{"use strict";kr.exports=za;function za(e,n){return n.properties.id===e.id}});var Pr=s(($o,Er)=>{"use strict";Er.exports=Ua;var Ha=hr(),Va=wr(),Wa=$e(),Ka=Cr(),Xa=Or();function Ua(e,n,r,l,t){return Boolean(n&&n.type==="element"&&(!e.tagName||Ha(e,n))&&(!e.classNames||Ka(e,n))&&(!e.id||Xa(e,n))&&(!e.attrs||Va(e,n,t.schema))&&(!e.pseudos||Wa(e,n,r,l,t)))}});var Dr=s((Yo,Mr)=>{"use strict";Mr.exports=$a;var Ir="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Tr="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",Ya=new RegExp("^[^"+Tr+"]*["+Ir+"]"),Za=new RegExp("^[^"+Ir+"]*["+Tr+"]");function $a(e){return e=String(e||""),Ya.test(e)?"rtl":Za.test(e)?"ltr":"neutral"}});var qr=s((Zo,Fr)=>{"use strict";Fr.exports=Ar;function Ar(e){if(typeof e=="string")return Ga(e);if(e==null)return _a;if(typeof e=="object")return("length"in e?Qa:Ja)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function ei(e){for(var n=[],r=e.length,l=-1;++l<r;)n[l]=Ar(e[l]);return n}function Ja(e){return n;function n(r){var l;for(l in e)if(r[l]!==e[l])return!1;return!0}}function Qa(e){var n=ei(e),r=n.length;return l;function l(){for(var t=-1;++t<r;)if(n[t].apply(this,arguments))return!0;return!1}}function Ga(e){return n;function n(r){return Boolean(r&&r.type===e)}}function _a(){return!0}});var Nr=s((Jo,Lr)=>{Lr.exports=ni;function ni(e){return"[33m"+e+"[39m"}});var zr=s((Qo,Rr)=>{"use strict";Rr.exports=oe;var ri=qr(),ti=Nr(),Br=!0,jr="skip",Je=!1;oe.CONTINUE=Br;oe.SKIP=jr;oe.EXIT=Je;function oe(e,n,r,l){var t,i;typeof n=="function"&&typeof r!="function"&&(l=r,r=n,n=null),i=ri(n),t=l?-1:1,o(e,null,[])();function o(a,f,p){var d=typeof a=="object"&&a!==null?a:{},v;return typeof d.type=="string"&&(v=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0,S.displayName="node ("+ti(d.type+(v?"<"+v+">":""))+")"),S;function S(){var m=p.concat(a),k=[],u,h;if((!n||i(a,f,p[p.length-1]||null))&&(k=li(r(a,p)),k[0]===Je))return k;if(a.children&&k[0]!==jr)for(h=(l?a.children.length:-1)+t;h>-1&&h<a.children.length;){if(u=o(a.children[h],h,m)(),u[0]===Je)return u;h=typeof u[1]=="number"?u[1]:h+t}return k}}}function li(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Br,e]:[e]}});var Hr=s((Go,Ur)=>{"use strict";Ur.exports=ue;var se=zr(),ai=se.CONTINUE,ii=se.SKIP,oi=se.EXIT;ue.CONTINUE=ai;ue.SKIP=ii;ue.EXIT=oi;function ue(e,n,r,l){typeof n=="function"&&typeof r!="function"&&(l=r,r=n,n=null),se(e,n,t,l);function t(i,o){var a=o[o.length-1],f=a?a.children.indexOf(i):null;return r(i,f,a)}}});var Kr=s((_o,Vr)=>{"use strict";Vr.exports=ui;function ui(e){return"children"in e?Wr(e):"value"in e?e.value:""}function si(e){return e.type==="text"?e.value:e.children?Wr(e):""}function Wr(e){for(var n=e.children,r=n.length,l=-1,t=[];++l<r;)t[l]=si(n[l]);return t.join("")}});var _e=s((eu,Xr)=>{"use strict";Xr.exports=ci;var pi=Re(),fi=Dr(),Qe=Hr(),di=Kr(),W=Ve(),ce="ltr",$r="rtl",pe="auto",hi=["text","search","tel","url","email"],gi=[ce,$r,pe],vi=["bdi","script","style","textare"];function ci(e,n){var r=e.schema,l=r.space,t=e.language,i=e.direction,o=e.editableOrEditingHost,a=n.properties,f,p,d,v,S;return n.type==="element"&&(v=a.xmlLang||a.lang,p=a.type||"text",S=Yr(n),v!=null&&(e.language=v,d=!0),l!=="html"&&e.editableOrEditingHost&&(e.editableOrEditingHost=!1,d=!0),l==="html"&&(a.contentEditable==="true"&&(e.editableOrEditingHost=!0,d=!0),W(n,"svg")&&(e.schema=pi,l="svg",d=!0),S===$r?f=S:S===ce||S!==pe&&W(n,"html")||S!==pe&&W(n,"input")&&a.type==="tel"?f=ce:(S===pe||W(n,"bdi"))&&(W(n,"textarea")?f=Ge(di(n)):W(n,"input")&&hi.indexOf(p)!==-1?f=a.value?Ge(a.value):ce:Qe(n,k)),f&&(e.direction=f,d=!0))),d?m:mi;function m(){e.schema=r,e.language=t,e.direction=i,e.editableOrEditingHost=o}function k(u){if(u.type==="text")return f=Ge(u.value),f?Qe.EXIT:null;if(u!==n&&(W(u,vi)||Yr(u)))return Qe.SKIP}}function Ge(e){var n=fi(e);return n==="neutral"?null:n}function Yr(e){var n=e.properties.dir;return n=typeof n=="string"?n.toLowerCase():null,gi.indexOf(n)===-1?null:n}function mi(){}});var Gr=s((nu,Zr)=>{"use strict";Zr.exports=yi;var xi=K(),bi=_e(),Jr={}.hasOwnProperty,wi=[].slice,fe=xi("nestingOperator"),de=fe.handlers;fe.unknown=Si;fe.invalid=Ci;de.null=Qr;de[">"]=en;de["+"]=ki;de["~"]=Oi;function yi(e,n,r,l,t){return fe(e,n,r,l,t)}function Si(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")}function Ci(e,n,r,l,t){if(l)throw new Error("topScan is supposed to be called from the root node");t.iterator.apply(null,arguments),t.shallow||Qr.apply(this,arguments)}function Qr(e,n,r,l,t){var i=t.iterator;t.iterator=o,en.apply(this,arguments);function o(){t.iterator=i,i.apply(this,arguments),t.iterator=o,!(t.one&&t.found)&&en.apply(this,[e].concat(wi.call(arguments,1)))}}function en(e,n,r,l,t){!n.children||n.children.length===0||nn(e,n,t)}function ki(e,n,r,l,t){!l||nn(e,l,t,r+1,!0)}function Oi(e,n,r,l,t){!l||nn(e,l,t,r+1)}function nn(e,n,r,l,t){var i=r.index,o=n.children,a=o.length,f=[],p=0,d={},v=0,S=i?k:u,m;if(l===void 0&&(l=0),l>=a)return;if(i)for(;p<l;)m=o[p],m.type==="element"&&h(m.tagName),p++;for(p=l;p<a;){if(m=o[p],m.type==="element"){if(S(m,p),r.one&&r.found)return;if(t)break}p++}if(i){for(p=-1,a=f.length;++p<a;)if(f[p](),r.one&&r.found)return}function k(x,w){var C=x.tagName,A=v,q=Jr.call(d,C)?d[C]:0;h(C),f.push(Pt);function Pt(){r.elementIndex=A,r.typeIndex=q,r.elementCount=v,r.typeCount=d[C],u(x,w)}}function u(x,w){var C=bi(r,x);r.iterator(e,x,w,n,r),C()}function h(x){Jr.call(d,x)||(d[x]=0),v++,d[x]++}}});var Ke=s((ru,_r)=>{"use strict";_r.exports=Ei;var Pi=K(),Mi=zn(),Ii=Re(),Ti=$e().needsIndex,Di=Pr(),et=Gr(),Fi=_e(),he=Pi("type"),rn=he.handlers;he.unknown=Ai;he.invalid=qi;rn.selectors=Li;rn.ruleSet=nt;rn.rule=rt;function Ei(e,n,r){return e&&n?he(e,n,r):[]}function Li(e,n,r){for(var l=tt(r.one),t=e.selectors,i=t.length,o=-1;++o<i;)l(nt(t[o],n,r));return l.result}function nt(e,n,r){return rt(e.rule,n,r)}function rt(e,n,r){var l=tt(r.one),t={schema:r.space==="svg"?Ii:Mi,language:void 0,direction:"ltr",editableOrEditingHost:!1,scopeElements:n.type==="root"?n.children:[n],iterator:i,one:r.one,shallow:r.shallow};if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");return et(e,n,0,null,o(e,t)),l.result;function i(a,f,p,d,v){var S=Fi(v,f);Di(a,f,p,d,v)&&(a.rule?et(a.rule,f,p,d,o(a.rule,v)):(l(f),v.found=!0)),S()}function o(a,f){for(var p=a.pseudos,d=p&&p.length,v=-1;++v<d;)if(Ti.indexOf(p[v].name)!==-1){f.index=!0;break}return f}}function Ai(e){throw new Error("Unknown type `"+e.type+"`")}function qi(){throw new Error("Invalid type")}function tt(e){var n=[],r;return l.result=n,l;function l(t){"length"in t?i():o(t);function i(){for(var a=t.length,f=-1;++f<a;)o(t[f])}function o(a){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}n.indexOf(a)===-1&&n.push(a)}}}});var tn=s(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});function Ni(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"}P.isIdentStart=Ni;function Ri(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"}P.isIdent=Ri;function Bi(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}P.isHex=Bi;function ji(e){for(var n=e.length,r="",l=0;l<n;){var t=e.charAt(l);if(P.identSpecialChars[t])r+="\\"+t;else if(t==="_"||t==="-"||t>="A"&&t<="Z"||t>="a"&&t<="z"||l!==0&&t>="0"&&t<="9")r+=t;else{var i=t.charCodeAt(0);if((i&63488)==55296){var o=e.charCodeAt(l++);if((i&64512)!=55296||(o&64512)!=56320)throw Error("UCS-2(decode): illegal sequence");i=((i&1023)<<10)+(o&1023)+65536}r+="\\"+i.toString(16)+" "}l++}return r}P.escapeIdentifier=ji;function zi(e){for(var n=e.length,r="",l=0,t;l<n;){var i=e.charAt(l);i==='"'?i='\\"':i==="\\"?i="\\\\":(t=P.strReplacementsRev[i])!==void 0&&(i=t),r+=i,l++}return'"'+r+'"'}P.escapeStr=zi;P.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0};P.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"};P.singleQuoteEscapeChars={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"};P.doubleQuotesEscapeChars={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}});var lt=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});var F=tn();function Ui(e,n,r,l,t,i){var o=e.length,a="";function f(u,h){var x="";for(n++,a=e.charAt(n);n<o;){if(a===u)return n++,x;if(a==="\\"){n++,a=e.charAt(n);var w=void 0;if(a===u)x+=u;else if((w=h[a])!==void 0)x+=w;else if(F.isHex(a)){var C=a;for(n++,a=e.charAt(n);F.isHex(a);)C+=a,n++,a=e.charAt(n);a===" "&&(n++,a=e.charAt(n)),x+=String.fromCharCode(parseInt(C,16));continue}else x+=a}else x+=a;n++,a=e.charAt(n)}return x}function p(){var u="";for(a=e.charAt(n);n<o;){if(F.isIdent(a))u+=a;else if(a==="\\"){if(n++,n>=o)throw Error("Expected symbol but end of file reached.");if(a=e.charAt(n),F.identSpecialChars[a])u+=a;else if(F.isHex(a)){var h=a;for(n++,a=e.charAt(n);F.isHex(a);)h+=a,n++,a=e.charAt(n);a===" "&&(n++,a=e.charAt(n)),u+=String.fromCharCode(parseInt(h,16));continue}else u+=a}else return u;n++,a=e.charAt(n)}return u}function d(){a=e.charAt(n);for(var u=!1;a===" "||a===" "||a===`
`||a==="\r"||a==="\f";)u=!0,n++,a=e.charAt(n);return u}function v(){var u=S();if(n<o)throw Error('Rule expected but "'+e.charAt(n)+'" found.');return u}function S(){var u=m();if(!u)return null;var h=u;for(a=e.charAt(n);a===",";){if(n++,d(),h.type!=="selectors"&&(h={type:"selectors",selectors:[u]}),u=m(),!u)throw Error('Rule expected after ",".');h.selectors.push(u)}return h}function m(){d();var u={type:"ruleSet"},h=k();if(!h)return null;for(var x=u;h&&(h.type="rule",x.rule=h,x=h,d(),a=e.charAt(n),!(n>=o||a===","||a===")"));)if(t[a]){var w=a;if(n++,d(),h=k(),!h)throw Error('Rule expected after "'+w+'".');h.nestingOperator=w}else h=k(),h&&(h.nestingOperator=null);return u}function k(){for(var u=null;n<o;)if(a=e.charAt(n),a==="*")n++,(u=u||{}).tagName="*";else if(F.isIdentStart(a)||a==="\\")(u=u||{}).tagName=p();else if(a===".")n++,u=u||{},(u.classNames=u.classNames||[]).push(p());else if(a==="#")n++,(u=u||{}).id=p();else if(a==="["){n++,d();var h={name:p()};if(d(),a==="]")n++;else{var x="";if(l[a]&&(x=a,n++,a=e.charAt(n)),n>=o)throw Error('Expected "=" but end of file reached.');if(a!=="=")throw Error('Expected "=" but "'+a+'" found.');h.operator=x+"=",n++,d();var w="";if(h.valueType="string",a==='"')w=f('"',F.doubleQuotesEscapeChars);else if(a==="'")w=f("'",F.singleQuoteEscapeChars);else if(i&&a==="$")n++,w=p(),h.valueType="substitute";else{for(;n<o&&a!=="]";)w+=a,n++,a=e.charAt(n);w=w.trim()}if(d(),n>=o)throw Error('Expected "]" but end of file reached.');if(a!=="]")throw Error('Expected "]" but "'+a+'" found.');n++,h.value=w}u=u||{},(u.attrs=u.attrs||[]).push(h)}else if(a===":"){n++;var C=p(),A={name:C};if(a==="("){n++;var q="";if(d(),r[C]==="selector")A.valueType="selector",q=S();else{if(A.valueType=r[C]||"string",a==='"')q=f('"',F.doubleQuotesEscapeChars);else if(a==="'")q=f("'",F.singleQuoteEscapeChars);else if(i&&a==="$")n++,q=p(),A.valueType="substitute";else{for(;n<o&&a!==")";)q+=a,n++,a=e.charAt(n);q=q.trim()}d()}if(n>=o)throw Error('Expected ")" but end of file reached.');if(a!==")")throw Error('Expected ")" but "'+a+'" found.');n++,A.value=q}u=u||{},(u.pseudos=u.pseudos||[]).push(A)}else break;return u}return v()}ln.parseCssSelector=Ui});var at=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});var M=tn();function ge(e){var n="";switch(e.type){case"ruleSet":for(var r=e.rule,l=[];r;)r.nestingOperator&&l.push(r.nestingOperator),l.push(ge(r)),r=r.rule;n=l.join(" ");break;case"selectors":n=e.selectors.map(ge).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?n="*":n=M.escapeIdentifier(e.tagName)),e.id&&(n+="#"+M.escapeIdentifier(e.id)),e.classNames&&(n+=e.classNames.map(function(t){return"."+M.escapeIdentifier(t)}).join("")),e.attrs&&(n+=e.attrs.map(function(t){return"operator"in t?t.valueType==="substitute"?"["+M.escapeIdentifier(t.name)+t.operator+"$"+t.value+"]":"["+M.escapeIdentifier(t.name)+t.operator+M.escapeStr(t.value)+"]":"["+M.escapeIdentifier(t.name)+"]"}).join("")),e.pseudos&&(n+=e.pseudos.map(function(t){return t.valueType?t.valueType==="selector"?":"+M.escapeIdentifier(t.name)+"("+ge(t.value)+")":t.valueType==="substitute"?":"+M.escapeIdentifier(t.name)+"($"+t.value+")":t.valueType==="numeric"?":"+M.escapeIdentifier(t.name)+"("+t.value+")":":"+M.escapeIdentifier(t.name)+"("+M.escapeIdentifier(t.value)+")":":"+M.escapeIdentifier(t.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return n}an.renderEntity=ge});var it=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var Hi=lt(),Vi=at(),Wi=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];this.pseudos[i]="selector"}return this},e.prototype.unregisterSelectorPseudos=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];delete this.pseudos[i]}return this},e.prototype.registerNumericPseudos=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];this.pseudos[i]="numeric"}return this},e.prototype.unregisterNumericPseudos=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];delete this.pseudos[i]}return this},e.prototype.registerNestingOperators=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];this.ruleNestingOperators[i]=!0}return this},e.prototype.unregisterNestingOperators=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];delete this.ruleNestingOperators[i]}return this},e.prototype.registerAttrEqualityMods=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];this.attrEqualityMods[i]=!0}return this},e.prototype.unregisterAttrEqualityMods=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var l=0,t=n;l<t.length;l++){var i=t[l];delete this.attrEqualityMods[i]}return this},e.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},e.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this},e.prototype.parse=function(n){return Hi.parseCssSelector(n,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},e.prototype.render=function(n){return Vi.renderEntity(n).trim()},e}();on.CssSelectorParser=Wi});var ut=s((ou,ot)=>{ot.exports=Ki;var Xi=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/;function Ki(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];var n=e.match(Xi);if(!n)throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')");var r;return n[1]?(r=parseInt(n[1],10),isNaN(r)&&(n[1].charAt(0)==="-"?r=-1:r=1)):r=0,[r,n[3]?parseInt((n[2]||"")+n[3],10):0]}});var ct=s((uu,st)=>{st.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var dt=s((su,pt)=>{pt.exports=$i;var ft=ct(),Yi=ft.trueFunc,Zi=ft.falseFunc;function $i(e){var n=e[0],r=e[1]-1;if(r<0&&n<=0)return Zi;if(n===-1)return function(t){return t<=r};if(n===0)return function(t){return t===r};if(n===1)return r<0?Yi:function(t){return t>=r};var l=r%n;return l<0&&(l+=n),n>1?function(t){return t>=r&&t%n===l}:(n*=-1,function(t){return t<=r&&t%n===l})}});var vt=s((cu,ve)=>{var ht=ut(),gt=dt();ve.exports=function(n){return gt(ht(n))};ve.exports.parse=ht;ve.exports.compile=gt});var xt=s((pu,mt)=>{"use strict";mt.exports=Ji;var Qi=it().CssSelectorParser,Gi=K(),_i=vt(),eo=["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],me=new Qi,ye=Gi("type"),un=ye.handlers;me.registerAttrEqualityMods("~","|","^","$","*");me.registerSelectorPseudos("any","matches","not","has");me.registerNestingOperators(">","+","~");un.selectors=no;un.ruleSet=ro;un.rule=yt;function Ji(e){if(typeof e!="string")throw new Error("Expected `string` as selector, not `"+e+"`");return ye(me.parse(e))}function no(e){for(var n=e.selectors,r=n.length,l=-1;++l<r;)ye(n[l]);return e}function ro(e){return yt(e.rule)}function yt(e){for(var n=e.pseudos,r=n&&n.length,l=-1,t;++l<r;)t=n[l],eo.indexOf(t.name)!==-1&&(t.value=_i(t.value),t.valueType="function");return ye(e.rule),e}});var bt=s(xe=>{"use strict";xe.matches=to;xe.selectAll=lo;xe.select=ao;var sn=Ke(),cn=xt();function to(e,n,r){return Boolean(sn(cn(e),n,{space:r,one:!0,shallow:!0})[0])}function ao(e,n,r){return sn(cn(e),n,{space:r,one:!0})[0]||null}function lo(e,n,r){return sn(cn(e),n,{space:r})}});fn(exports);At(exports,{attacher:()=>Et,default:()=>po,pathJoin:()=>Ct});var Z=we(require("path")),wt=we(require("crypto")),St=we(bt()),{isArray:io}=Array,Ct=(...e)=>e.map((r,l,t)=>(r=r.startsWith("./")?r.slice(2):r,r=r.startsWith("/")?r.slice(1):r,r=r.endsWith("/")?r.slice(0,-1):r,r)).reduce((r,l)=>l===""||l===" "?r:l.startsWith("..")?Ct(...r.slice(0,-1),l.slice(2)).split("/"):[...r,l],[]).join("/"),oo=e=>n=>wt.createHash("sha256").update(n).digest("hex").slice(0,e),kt=(e,n,r)=>Object.entries(e).reduce((l,[t,i])=>t in r?i(l,r[t]):t in n?{...l,[t]:n[t]}:l,{}),ee=(e,n)=>({[e]:(r,l)=>({...r,[n]:JSON.parse(l)})}),pn=(e,n)=>({[e]:(r,l)=>({...r,[n]:l})}),N=e=>({[e]:(n,r)=>({...n,[e]:r})}),be=e=>({[e]:(n,r)=>({...n,[e]:r})}),uo={...N("selectedBy"),...pn("dataSourceprefix","sourcePrefix"),...pn("dataDestbasepath","destBasePath"),...pn("dataPathTmpl","pathTmpl"),...ee("dataHashlen","hashlen"),...ee("dataClean","clean"),...ee("dataWidths","widths"),...ee("dataWidthratio","widthratio"),...ee("dataBreaks","breaks"),dataAddclassnames:(e,n)=>({...e,addclassnames:n.split(" ")}),dataTypes:(e,n)=>({...e,types:n.split(",").reduce((r,l)=>({...r,[l]:{}}),{})})},so={...N("selectedBy"),...N("sourcePrefix"),...N("destBasePath"),...N("filepathPrefix"),...N("pathTmpl"),...N("hashlen"),...N("clean"),...N("addclassnames"),...be("widths"),...be("widthatio"),...be("breaks"),...be("types")},co=(e,n)=>kt(uo,e,n.properties),Ot=(e,n={})=>kt(so,e,n),Et=e=>{let n=!e||!e.select?'picture[thumbnails="true"]>img':typeof e.select=="function"?e.select():e.select,r={selectedBy:n,sourcePrefix:"/",destBasePath:"/",hashlen:8,clean:!0,types:{webp:{},jpg:{}},breaks:[640,980,1020],widths:[100,250,450,600],addclassnames:["all-thumbed"],widthratio:1.7778,pathTmpl:"/optim/{{filename}}-{{width}}w-{{hash}}.{{ext}}"},l=Ot(r,e);return(t,i,o)=>{let p=St.selectAll(n,t).map(v=>({node:v,src:v.properties.src})).map(({src:v,node:S})=>({src:v,...Ot(l,co(l,S))})).reduce((v,S)=>{let m=S,k={breaks:m.breaks,types:m.types,widths:m.widths};return Object.entries(m.types).forEach(([u,h])=>{m.widths.forEach(x=>{var C,A;let w=Z.extname(m.src).slice(1);w=w===""?"Buffer":w,m.data={...m.data,_id:m.src},v.push({selectedBy:m.selectedBy,addclassnames:m.addclassnames,input:{ext:w,fileName:Z.basename(m.src,`.${w}`),filepathPrefix:Z.dirname(m.src),rawFilePath:m.src},output:{width:x,format:{[u]:h},pathTmpl:(A=(C=m.pathTmpl)!=null?C:l.pathTmpl)!=null?A:r.pathTmpl,hash:oo(m.hashlen),...(m==null?void 0:m.widthRatio)?{widthRatio:m.widthRatio}:{}},partOfSet:k})})}),v},[]),d=io(i.srcs)?[...i.srcs,...p]:p;i.srcs=d,o(null,t,i)}},po=Et;