1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.js 2 3/** 4 * @typedef {import('./info.js').Info} Info 5 * @typedef {Record<string, Info>} Properties 6 * @typedef {Record<string, string>} Normal 7 */ 8class Schema{ 9/** 10 * @constructor 11 * @param {Properties} property 12 * @param {Normal} normal 13 * @param {string} [space] 14 */ 15constructor(n,l,e){this.property=n;this.normal=l;e&&(this.space=e)}} 16/** @type {Properties} */Schema.prototype.property={}; 17/** @type {Normal} */Schema.prototype.normal={}; 18/** @type {string|null} */Schema.prototype.space=null; 19/** 20 * @typedef {import('./schema.js').Properties} Properties 21 * @typedef {import('./schema.js').Normal} Normal 22 */ 23/** 24 * @param {Schema[]} definitions 25 * @param {string} [space] 26 * @returns {Schema} 27 */function merge(n,l){ 28/** @type {Properties} */ 29const e={}; 30/** @type {Normal} */const o={};let t=-1;while(++t<n.length){Object.assign(e,n[t].property);Object.assign(o,n[t].normal)}return new Schema(e,o,l)} 31/** 32 * @param {string} value 33 * @returns {string} 34 */function normalize(n){return n.toLowerCase()}class Info{ 35/** 36 * @constructor 37 * @param {string} property 38 * @param {string} attribute 39 */ 40constructor(n,l){ 41/** @type {string} */ 42this.property=n; 43/** @type {string} */this.attribute=l}} 44/** @type {string|null} */Info.prototype.space=null;Info.prototype.boolean=false;Info.prototype.booleanish=false;Info.prototype.overloadedBoolean=false;Info.prototype.number=false;Info.prototype.commaSeparated=false;Info.prototype.spaceSeparated=false;Info.prototype.commaOrSpaceSeparated=false;Info.prototype.mustUseProperty=false;Info.prototype.defined=false;let n=0;const l=increment();const e=increment();const o=increment();const t=increment();const a=increment();const r=increment();const i=increment();function increment(){return 2**++n}var u=Object.freeze(Object.defineProperty({__proto__:null,boolean:l,booleanish:e,commaOrSpaceSeparated:i,commaSeparated:r,number:t,overloadedBoolean:o,spaceSeparated:a},Symbol.toStringTag,{value:"Module"})); 45/** @type {Array<keyof types>} */const s=Object.keys(u);class DefinedInfo extends Info{ 46/** 47 * @constructor 48 * @param {string} property 49 * @param {string} attribute 50 * @param {number|null} [mask] 51 * @param {string} [space] 52 */ 53constructor(n,l,e,o){let t=-1;super(n,l);mark(this,"space",o);if(typeof e==="number")while(++t<s.length){const n=s[t];mark(this,s[t],(e&u[n])===u[n])}}}DefinedInfo.prototype.defined=true; 54/** 55 * @param {DefinedInfo} values 56 * @param {string} key 57 * @param {unknown} value 58 */function mark(n,l,e){e&&(n[l]=e)} 59/** 60 * @typedef {import('./schema.js').Properties} Properties 61 * @typedef {import('./schema.js').Normal} Normal 62 * 63 * @typedef {Record<string, string>} Attributes 64 * 65 * @typedef {Object} Definition 66 * @property {Record<string, number|null>} properties 67 * @property {(attributes: Attributes, property: string) => string} transform 68 * @property {string} [space] 69 * @property {Attributes} [attributes] 70 * @property {Array<string>} [mustUseProperty] 71 */const c={}.hasOwnProperty; 72/** 73 * @param {Definition} definition 74 * @returns {Schema} 75 */function create(n){ 76/** @type {Properties} */ 77const l={}; 78/** @type {Normal} */const e={}; 79/** @type {string} */let o;for(o in n.properties)if(c.call(n.properties,o)){const t=n.properties[o];const a=new DefinedInfo(o,n.transform(n.attributes||{},o),t,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(a.mustUseProperty=true);l[o]=a;e[normalize(o)]=o;e[normalize(a.attribute)]=o}return new Schema(l,e,n.space)}const p=create({space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const d=create({space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}}); 80/** 81 * @param {Record<string, string>} attributes 82 * @param {string} attribute 83 * @returns {string} 84 */function caseSensitiveTransform(n,l){return l in n?n[l]:l} 85/** 86 * @param {Record<string, string>} attributes 87 * @param {string} property 88 * @returns {string} 89 */function caseInsensitiveTransform(n,l){return caseSensitiveTransform(n,l.toLowerCase())}
vendor: 4,195 bytes, line 89
89const g=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}});const h=create({transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:e,ariaAutoComplete:null,ariaBusy:e,ariaChecked:e,ariaColCount:t,ariaColIndex:t,ariaColSpan:t,ariaControls:a,ariaCurrent:null,ariaDescribedBy:a,ariaDetails:null,ariaDisabled:e,ariaDropEffect:a,ariaErrorMessage:null,ariaExpanded:e,ariaFlowTo:a,ariaGrabbed:e,ariaHasPopup:null,ariaHidden:e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a,ariaLevel:t,ariaLive:null,ariaModal:e,ariaMultiLine:e,ariaMultiSelectable:e,ariaOrientation:null,ariaOwns:a,ariaPlaceholder:null,ariaPosInSet:t,ariaPressed:e,ariaReadOnly:e,ariaRelevant:null,ariaRequired:e,ariaRoleDescription:a,ariaRowCount:t,ariaRowIndex:t,ariaRowSpan:t,ariaSelected:e,ariaSetSize:t,ariaSort:null,ariaValueMax:t,ariaValueMin:t,ariaValueNow:t,ariaValueText:null,role:null}});const m=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:r,acceptCharset:a,accessKey:a,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:a,autoFocus:l,autoPlay:l,blocking:a,capture:null,charSet:null,checked:l,cite:null,className:a,cols:t,colSpan:null,content:null,contentEditable:e,controls:l,controlsList:a,coords:t|r,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:o,draggable:e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:a,height:t,hidden:l,high:t,href:null,hrefLang:null,htmlFor:a,httpEquiv:a,id:null,imageSizes:null,imageSrcSet:null,inert:l,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:a,itemRef:a,itemScope:l,itemType:a,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:t,manifest:null,max:null,maxLength:t,media:null,method:null,min:null,minLength:t,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,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:l,optimum:t,pattern:null,ping:a,placeholder:null,playsInline:l,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:a,required:l,reversed:l,rows:t,rowSpan:t,sandbox:a,scope:null,scoped:l,seamless:l,selected:l,shadowRootClonable:l,shadowRootDelegatesFocus:l,shadowRootMode:null,shape:null,size:t,sizes:null,slot:null,span:t,spellCheck:e,src:null,
89srcDoc:null,srcLang:null,srcSet:null,start:t,step:null,style:null,tabIndex:t,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:e,width:t,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:a,axis:null,background:null,bgColor:null,border:t,borderColor:null,bottomMargin:t,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:t,leftMargin:t,link:null,longDesc:null,lowSrc:null,marginHeight:t,marginWidth:t,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:t,rules:null,scheme:null,scrolling:e,standby:null,summary:null,text:null,topMargin:t,valueType:null,version:null,vAlign:null,vLink:null,vSpace:t,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:t,security:null,unselectable:null}});const f=create({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
89-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"},transform:caseSensitiveTransform,properties:{about:i,accentHeight:t,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:t,amplitude:t,arabicForm:null,ascent:t,attributeName:null,attributeType:null,azimuth:t,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:t,by:null,calcMode:null,capHeight:t,className:a,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:t,diffuseConstant:t,direction:null,display:null,dur:null,divisor:t,dominantBaseline:null,download:l,dx:null,dy:null,edgeMode:null,editable:null,elevation:t,enableBackground:null,end:null,event:null,exponent:t,externalResourcesRequired:null,fill:null,fillOpacity:t,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:r,g2:r,glyphName:r,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:t,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:t,horizOriginX:t,horizOriginY:t,id:null,ideographic:t,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:t,k:t,k1:t,k2:t,k3:t,k4:t,kernelMatrix:i,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:t,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:t,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,on
89Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:t,overlineThickness:t,paintOrder:null,panose1:null,path:null,pathLength:t,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:a,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:t,pointsAtY:t,pointsAtZ:t,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:i,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:i,rev:i,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:i,requiredFeatures:i,requiredFonts:i,requiredFormats:i,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:t,specularExponent:t,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:t,strikethroughThickness:t,string:null,stroke:null,strokeDashArray:i,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:t,strokeOpacity:t,strokeWidth:null,style:null,surfaceScale:t,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:i,tabIndex:t,tableValues:null,target:null,targetX:t,targetY:t,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:i,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:t,underlineThickness:t,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:t,values:null,vAlphabetic:t,vMathematical:t,vectorEffect:null,vHanging:t,vIdeographic:t,version:null,vertAdvY:t,vertOriginX:t,vertOriginY:t,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:t,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}); 90/** 91 * @typedef {import('./util/schema.js').Schema} Schema 92 */const y=/^data[-\w.:]+$/i;const v=/-[a-z]/g;
92const k=/[A-Z]/g; 93/** 94 * @param {Schema} schema 95 * @param {string} value 96 * @returns {Info} 97 */function find(n,l){const e=normalize(l);let o=l;let t=Info;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&y.test(l)){if(l.charAt(4)==="-"){const n=l.slice(5).replace(v,camelcase);o="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=l.slice(4);if(!v.test(n)){let e=n.replace(k,kebab);e.charAt(0)!=="-"&&(e="-"+e);l="data"+e}}t=DefinedInfo}return new t(o,l)} 98/** 99 * @param {string} $0 100 * @returns {string} 101 */function kebab(n){return"-"+n.toLowerCase()} 102/** 103 * @param {string} $0 104 * @returns {string} 105 */function camelcase(n){return n.charAt(1).toUpperCase()} 106/** 107 * `hast` is close to `React`, but differs in a couple of cases. 108 * 109 * To get a React property from a hast property, check if it is in 110 * `hastToReact`, if it is, then use the corresponding value, 111 * otherwise, use the hast property. 112 * 113 * @type {Record<string, string>} 114 */const S={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}; 115/** 116 * @typedef {import('./lib/util/info.js').Info} Info 117 * @typedef {import('./lib/util/schema.js').Schema} Schema 118 */const b=merge([d,p,g,h,m],"html");const x=merge([d,p,g,h,f],"svg");export{find,S as hastToReact,b as html,normalize,x as svg}; 119
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.