@storybook/addon-docs 9.0.0-alpha.17 → 9.0.0-alpha.19
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/README.md +1 -1
- package/dist/Color-SIUCOEKT.mjs +10 -0
- package/dist/DocsRenderer-3PZUHFFL.mjs +2 -0
- package/dist/blocks.d.ts +1031 -2
- package/dist/blocks.js +198 -1
- package/dist/blocks.mjs +214 -3
- package/dist/{chunk-PRSJUHPQ.mjs → chunk-GFTNOJSG.mjs} +2 -2
- package/dist/{chunk-NUUEMKO5.mjs → chunk-GWJYCGSQ.mjs} +1 -1
- package/dist/chunk-QUZPS4B6.mjs +3 -0
- package/dist/chunk-W6FI2KYE.mjs +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +4 -4
- package/dist/mdx-loader.mjs +1 -1
- package/dist/preset.js +1 -1
- package/dist/preview.js +1 -1
- package/dist/preview.mjs +2 -2
- package/package.json +16 -7
- package/dist/DocsRenderer-CFRXHY34.mjs +0 -2
- package/dist/chunk-H6MOWX77.mjs +0 -3
- package/dist/manager.d.ts +0 -2
- package/dist/manager.js +0 -149
- package/dist/manager.mjs +0 -155
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __export } from './chunk-
|
|
1
|
+
import { __export } from './chunk-QUZPS4B6.mjs';
|
|
2
2
|
|
|
3
|
-
var preview_exports={};__export(preview_exports,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await import('./DocsRenderer-
|
|
3
|
+
var preview_exports={};__export(preview_exports,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await import('./DocsRenderer-3PZUHFFL.mjs');return new DocsRenderer},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};
|
|
4
4
|
|
|
5
5
|
export { parameters, preview_exports };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';
|
|
3
2
|
import { renderElement, unmountElement } from '@storybook/react-dom-shim';
|
|
3
|
+
import { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/addon-docs/blocks';
|
|
4
4
|
|
|
5
5
|
var defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};
|
|
6
6
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));
|
|
2
|
+
|
|
3
|
+
export { __commonJS, __export, __require, __toESM };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function debounce(func,debounceMs,{signal,edges}={}){let pendingThis,pendingArgs=null,leading=edges!=null&&edges.includes("leading"),trailing=edges==null||edges.includes("trailing"),invoke=()=>{pendingArgs!==null&&(func.apply(pendingThis,pendingArgs),pendingThis=void 0,pendingArgs=null);},onTimerEnd=()=>{trailing&&invoke(),cancel();},timeoutId=null,schedule=()=>{timeoutId!=null&&clearTimeout(timeoutId),timeoutId=setTimeout(()=>{timeoutId=null,onTimerEnd();},debounceMs);},cancelTimer=()=>{timeoutId!==null&&(clearTimeout(timeoutId),timeoutId=null);},cancel=()=>{cancelTimer(),pendingThis=void 0,pendingArgs=null;},flush=()=>{cancelTimer(),invoke();},debounced=function(...args){if(signal?.aborted)return;pendingThis=this,pendingArgs=args;let isFirstCall=timeoutId==null;schedule(),leading&&isFirstCall&&invoke();};return debounced.schedule=schedule,debounced.cancel=cancel,debounced.flush=flush,signal?.addEventListener("abort",cancel,{once:!0}),debounced}function debounce2(func,debounceMs=0,options={}){typeof options!="object"&&(options={});let{signal,leading=!1,trailing=!0,maxWait}=options,edges=Array(2);leading&&(edges[0]="leading"),trailing&&(edges[1]="trailing");let result,pendingAt=null,_debounced=debounce(function(...args){result=func.apply(this,args),pendingAt=null;},debounceMs,{signal,edges}),debounced=function(...args){if(maxWait!=null){if(pendingAt===null)pendingAt=Date.now();else if(Date.now()-pendingAt>=maxWait)return result=func.apply(this,args),pendingAt=Date.now(),_debounced.cancel(),_debounced.schedule(),result}return _debounced.apply(this,args),result},flush=()=>(_debounced.flush(),result);return debounced.cancel=_debounced.cancel,debounced.flush=flush,debounced}function uniq(arr){return Array.from(new Set(arr))}function pickBy(obj,shouldPick){let result={},objEntries=Object.entries(obj);for(let i=0;i<objEntries.length;i++){let[key,value]=objEntries[i];shouldPick(value,key)&&(result[key]=value);}return result}function isTypedArray(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView)}function isPrimitive(value){return value==null||typeof value!="object"&&typeof value!="function"}function cloneDeep(obj){return cloneDeepImpl(obj)}function cloneDeepImpl(obj,stack=new Map){if(isPrimitive(obj))return obj;if(stack.has(obj))return stack.get(obj);if(Array.isArray(obj)){let result=new Array(obj.length);stack.set(obj,result);for(let i=0;i<obj.length;i++)result[i]=cloneDeepImpl(obj[i],stack);return Object.prototype.hasOwnProperty.call(obj,"index")&&(result.index=obj.index),Object.prototype.hasOwnProperty.call(obj,"input")&&(result.input=obj.input),result}if(obj instanceof Date)return new Date(obj.getTime());if(obj instanceof RegExp){let result=new RegExp(obj.source,obj.flags);return result.lastIndex=obj.lastIndex,result}if(obj instanceof Map){let result=new Map;stack.set(obj,result);for(let[key,value]of obj.entries())result.set(key,cloneDeepImpl(value,stack));return result}if(obj instanceof Set){let result=new Set;stack.set(obj,result);for(let value of obj.values())result.add(cloneDeepImpl(value,stack));return result}if(typeof Buffer<"u"&&Buffer.isBuffer(obj))return obj.subarray();if(isTypedArray(obj)){let result=new(Object.getPrototypeOf(obj)).constructor(obj.length);stack.set(obj,result);for(let i=0;i<obj.length;i++)result[i]=cloneDeepImpl(obj[i],stack);return result}if(obj instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&obj instanceof SharedArrayBuffer)return obj.slice(0);if(obj instanceof DataView){let result=new DataView(obj.buffer.slice(0),obj.byteOffset,obj.byteLength);return stack.set(obj,result),copyProperties(result,obj,stack),result}if(typeof File<"u"&&obj instanceof File){let result=new File([obj],obj.name,{type:obj.type});return stack.set(obj,result),copyProperties(result,obj,stack),result}if(obj instanceof Blob){let result=new Blob([obj],{type:obj.type});return stack.set(obj,result),copyProperties(result,obj,stack),result}if(obj instanceof Error){let result=new obj.constructor;return stack.set(obj,result),result.message=obj.message,result.name=obj.name,result.stack=obj.stack,result.cause=obj.cause,copyProperties(result,obj,stack),result}if(typeof obj=="object"&&obj!==null){let result={};return stack.set(obj,result),copyProperties(result,obj,stack),result}return obj}function copyProperties(target,source,stack){let keys=Object.keys(source);for(let i=0;i<keys.length;i++){let key=keys[i],descriptor=Object.getOwnPropertyDescriptor(source,key);(descriptor?.writable||descriptor?.set)&&(target[key]=cloneDeepImpl(source[key],stack));}}var stringTag="[object String]",numberTag="[object Number]",booleanTag="[object Boolean]",argumentsTag="[object Arguments]";function cloneDeep2(obj){if(typeof obj!="object")return cloneDeep(obj);switch(Object.prototype.toString.call(obj)){case numberTag:case stringTag:case booleanTag:{let result=new obj.constructor(obj?.valueOf());return copyProperties(result,obj),result}case argumentsTag:{let result={};return copyProperties(result,obj),result.length=obj.length,result[Symbol.iterator]=obj[Symbol.iterator],result}default:return cloneDeep(obj)}}var getControlId=value=>`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`;
|
|
2
|
+
|
|
3
|
+
export { cloneDeep2 as cloneDeep, debounce2 as debounce, getControlId, getControlSetterButtonId, pickBy, uniq };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as core_dist_types from 'storybook/internal/types';
|
|
2
|
-
export * from '@storybook/blocks';
|
|
2
|
+
export * from '@storybook/addon-docs/blocks';
|
|
3
3
|
import { Renderer, DocsRenderFunction, ModuleExports, ModuleExport } from 'storybook/internal/types';
|
|
4
4
|
|
|
5
5
|
declare class DocsRenderer<TRenderer extends Renderer> {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default")),__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_blocks,
|
|
1
|
+
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default")),__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_react_dom_shim,import_blocks,defaultComponents,ErrorBoundary,DocsRenderer,init_DocsRenderer=__esm({"src/DocsRenderer.tsx"(){"use strict";import_react=__toESM(require("react")),import_react_dom_shim=require("@storybook/react-dom-shim"),import_blocks=require("@storybook/addon-docs/blocks"),defaultComponents={code:import_blocks.CodeOrSourceMdx,a:import_blocks.AnchorMdx,...import_blocks.HeadersMdx},ErrorBoundary=class extends import_react.Component{constructor(){super(...arguments);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:import_react.default.createElement(import_react.default.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=import_blocks.Docs;return new Promise((resolve,reject)=>{import("@mdx-js/react").then(({MDXProvider})=>(0,import_react_dom_shim.renderElement)(import_react.default.createElement(ErrorBoundary,{showException:reject,key:Math.random()},import_react.default.createElement(MDXProvider,{components},import_react.default.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve())})},this.unmount=element=>{(0,import_react_dom_shim.unmountElement)(element)}}}}});var index_exports={};__export(index_exports,{DocsRenderer:()=>DocsRenderer,default:()=>index_default});module.exports=__toCommonJS(index_exports);var import_preview_api=require("storybook/preview-api");var preview_exports={};__export(preview_exports,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer2}=await Promise.resolve().then(()=>(init_DocsRenderer(),DocsRenderer_exports));return new DocsRenderer2},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};__reExport(index_exports,require("@storybook/addon-docs/blocks"),module.exports);init_DocsRenderer();var index_default=()=>(0,import_preview_api.definePreview)(preview_exports);0&&(module.exports={DocsRenderer,...require("@storybook/addon-docs/blocks")});
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { preview_exports } from './chunk-
|
|
2
|
-
export { DocsRenderer } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { preview_exports } from './chunk-GFTNOJSG.mjs';
|
|
2
|
+
export { DocsRenderer } from './chunk-GWJYCGSQ.mjs';
|
|
3
|
+
import './chunk-QUZPS4B6.mjs';
|
|
4
4
|
import { definePreview } from 'storybook/preview-api';
|
|
5
|
-
export * from '@storybook/blocks';
|
|
5
|
+
export * from '@storybook/addon-docs/blocks';
|
|
6
6
|
|
|
7
7
|
var index_default=()=>definePreview(preview_exports);
|
|
8
8
|
|
package/dist/mdx-loader.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, __toESM, __export } from './chunk-
|
|
1
|
+
import { __commonJS, __toESM, __export } from './chunk-QUZPS4B6.mjs';
|
|
2
2
|
|
|
3
3
|
var require_xhtml=__commonJS({"../../node_modules/micromark-extension-mdxjs/node_modules/acorn-jsx/xhtml.js"(exports,module){module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"};}});var require_acorn=__commonJS({"../../node_modules/micromark-extension-mdxjs/node_modules/acorn/dist/acorn.js"(exports,module){(function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports):typeof define=="function"&&define.amd?define(["exports"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global.acorn={}));})(exports,function(exports2){var astralIdentifierCodes2=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes2=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars2="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",nonASCIIidentifierStartChars2="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",reservedWords2={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords2="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$12={5:ecma5AndLessKeywords2,"5module":ecma5AndLessKeywords2+" export import",6:ecma5AndLessKeywords2+" const class extends export import super"},keywordRelationalOperator2=/^in(stanceof)?$/,nonASCIIidentifierStart2=new RegExp("["+nonASCIIidentifierStartChars2+"]"),nonASCIIidentifier2=new RegExp("["+nonASCIIidentifierStartChars2+nonASCIIidentifierChars2+"]");function isInAstralSet2(code2,set){for(var pos=65536,i2=0;i2<set.length;i2+=2){if(pos+=set[i2],pos>code2)return !1;if(pos+=set[i2+1],pos>=code2)return !0}return !1}function isIdentifierStart2(code2,astral){return code2<65?code2===36:code2<91?!0:code2<97?code2===95:code2<123?!0:code2<=65535?code2>=170&&nonASCIIidentifierStart2.test(String.fromCharCode(code2)):astral===!1?!1:isInAstralSet2(code2,astralIdentifierStartCodes2)}function isIdentifierChar2(code2,astral){return code2<48?code2===36:code2<58?!0:code2<65?!1:code2<91?!0:code2<97?code2===95:code2<123?!0:code2<=65535?code2>=170&&nonASCIIidentifier2.test(String.fromCharCode(code2)):astral===!1?!1:isInAstralSet2(code2,astralIdentifierStartCodes2)||isInAstralSet2(code2,astralIdentifierCodes2)}var TokenType3=function(label,conf){conf===void 0&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null;};function binop2(name2,prec){return new TokenType3(name2,{beforeExpr:!0,binop:prec})}var beforeExpr2={beforeExpr:!0},startsExpr2={startsExpr:!0},keywords2={};function kw2(name2,options){return options===void 0&&(options={}),options.keyword=name2,keywords2[name2]=new TokenType3(name2,options)}var types$12={num:new TokenType3("num",startsExpr2),regexp:new TokenType3("regexp",startsExpr2),string:new TokenType3("string",startsExpr2),name:new TokenType3("name",startsExpr2),privateId:new TokenType3("privateId",startsExpr2),eof:new TokenType3("eof"),bracketL:new TokenType3("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType3("]"),braceL:new TokenType3("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType3("}"),parenL:new TokenType3("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType3(")"),comma:new TokenType3(",",beforeExpr2),semi:new TokenType3(";",beforeExpr2),colon:new TokenType3(":",beforeExpr2),dot:new TokenType3("."),question:new TokenType3("?",beforeExpr2),questionDot:new TokenType3("?."),arrow:new TokenType3("=>",beforeExpr2),template:new TokenType3("template"),invalidTemplate:new TokenType3("invalidTemplate"),ellipsis:new TokenType3("...",beforeExpr2),backQuote:new TokenType3("`",startsExpr2),dollarBraceL:new TokenType3("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType3("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType3("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType3("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType3("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop2("||",1),logicalAND:binop2("&&",2),bitwiseOR:binop2("|",3),bitwiseXOR:binop2("^",4),bitwiseAND:binop2("&",5),equality:binop2("==/!=/===/!==",6),relational:binop2("</>/<=/>=",7),bitShift:binop2("<</>>/>>>",8),plusMin:new TokenType3("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop2("%",10),star:binop2("*",10),slash:binop2("/",10),starstar:new TokenType3("**",{beforeExpr:!0}),coalesce:binop2("??",1),_break:kw2("break"),_case:kw2("case",beforeExpr2),_catch:kw2("catch"),_continue:kw2("continue"),_debugger:kw2("debugger"),_default:kw2("default",beforeExpr2),_do:kw2("do",{isLoop:!0,beforeExpr:!0}),_else:kw2("else",beforeExpr2),_finally:kw2("finally"),_for:kw2("for",{isLoop:!0}),_function:kw2("function",startsExpr2),_if:kw2("if"),_return:kw2("return",beforeExpr2),_switch:kw2("switch"),_throw:kw2("throw",beforeExpr2),_try:kw2("try"),_var:kw2("var"),_const:kw2("const"),_while:kw2("while",{isLoop:!0}),_with:kw2("with"),_new:kw2("new",{beforeExpr:!0,startsExpr:!0}),_this:kw2("this",startsExpr2),_super:kw2("super",startsExpr2),_class:kw2("class",startsExpr2),_extends:kw2("extends",beforeExpr2),_export:kw2("export"),_import:kw2("import",startsExpr2),_null:kw2("null",startsExpr2),_true:kw2("true",startsExpr2),_false:kw2("false",startsExpr2),_in:kw2("in",{beforeExpr:!0,binop:7}),_instanceof:kw2("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw2("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw2("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw2("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak2=/\r\n?|\n|\u2028|\u2029/,lineBreakG2=new RegExp(lineBreak2.source,"g");function isNewLine2(code2){return code2===10||code2===13||code2===8232||code2===8233}function nextLineBreak2(code2,from,end){end===void 0&&(end=code2.length);for(var i2=from;i2<end;i2++){var next=code2.charCodeAt(i2);if(isNewLine2(next))return i2<end-1&&next===13&&code2.charCodeAt(i2+1)===10?i2+2:i2+1}return -1}var nonASCIIwhitespace2=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace2=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref2=Object.prototype,hasOwnProperty3=ref2.hasOwnProperty,toString4=ref2.toString,hasOwn2=Object.hasOwn||function(obj,propName){return hasOwnProperty3.call(obj,propName)},isArray2=Array.isArray||function(obj){return toString4.call(obj)==="[object Array]"},regexpCache2=Object.create(null);function wordsRegexp2(words){return regexpCache2[words]||(regexpCache2[words]=new RegExp("^(?:"+words.replace(/ /g,"|")+")$"))}function codePointToString2(code2){return code2<=65535?String.fromCharCode(code2):(code2-=65536,String.fromCharCode((code2>>10)+55296,(code2&1023)+56320))}var loneSurrogate2=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position3=function(line,col){this.line=line,this.column=col;};Position3.prototype.offset=function(n){return new Position3(this.line,this.column+n)};var SourceLocation3=function(p,start2,end){this.start=start2,this.end=end,p.sourceFile!==null&&(this.source=p.sourceFile);};function getLineInfo2(input,offset2){for(var line=1,cur=0;;){var nextBreak=nextLineBreak2(input,cur,offset2);if(nextBreak<0)return new Position3(line,offset2-cur);++line,cur=nextBreak;}}var defaultOptions2={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion2=!1;function getOptions2(opts){var options={};for(var opt in defaultOptions2)options[opt]=opts&&hasOwn2(opts,opt)?opts[opt]:defaultOptions2[opt];if(options.ecmaVersion==="latest"?options.ecmaVersion=1e8:options.ecmaVersion==null?(!warnedAboutEcmaVersion2&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
4
4
|
Defaulting to 2020, but this will stop working in the future.`)),options.ecmaVersion=11):options.ecmaVersion>=2015&&(options.ecmaVersion-=2009),options.allowReserved==null&&(options.allowReserved=options.ecmaVersion<5),(!opts||opts.allowHashBang==null)&&(options.allowHashBang=options.ecmaVersion>=14),isArray2(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)};}return isArray2(options.onComment)&&(options.onComment=pushComment2(options,options.onComment)),options}function pushComment2(options,array){return function(block,text5,start2,end,startLoc,endLoc){var comment2={type:block?"Block":"Line",value:text5,start:start2,end};options.locations&&(comment2.loc=new SourceLocation3(this,startLoc,endLoc)),options.ranges&&(comment2.range=[start2,end]),array.push(comment2);}}var SCOPE_TOP2=1,SCOPE_FUNCTION2=2,SCOPE_ASYNC2=4,SCOPE_GENERATOR2=8,SCOPE_ARROW2=16,SCOPE_SIMPLE_CATCH2=32,SCOPE_SUPER2=64,SCOPE_DIRECT_SUPER2=128,SCOPE_CLASS_STATIC_BLOCK2=256,SCOPE_VAR2=SCOPE_TOP2|SCOPE_FUNCTION2|SCOPE_CLASS_STATIC_BLOCK2;function functionFlags2(async,generator){return SCOPE_FUNCTION2|(async?SCOPE_ASYNC2:0)|(generator?SCOPE_GENERATOR2:0)}var BIND_NONE2=0,BIND_VAR2=1,BIND_LEXICAL2=2,BIND_FUNCTION2=3,BIND_SIMPLE_CATCH2=4,BIND_OUTSIDE2=5,Parser3=function(options,input,startPos){this.options=options=getOptions2(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp2(keywords$12[options.ecmaVersion>=6?6:options.sourceType==="module"?"5module":5]);var reserved="";options.allowReserved!==!0&&(reserved=reservedWords2[options.ecmaVersion>=6?6:options.ecmaVersion===5?5:3],options.sourceType==="module"&&(reserved+=" await")),this.reservedWords=wordsRegexp2(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords2.strict;this.reservedWordsStrict=wordsRegexp2(reservedStrict),this.reservedWordsStrictBind=wordsRegexp2(reservedStrict+" "+reservedWords2.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf(`
|
package/dist/preset.js
CHANGED
|
@@ -50,4 +50,4 @@ Defaulting to 2020, but this will stop working in the future.`)),options.ecmaVer
|
|
|
50
50
|
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:setup.sourceMap.file||setup.sourceMap._file})}write(code2){this.output+=code2}writeToStream(code2){this.output.write(code2)}writeAndMap(code2,node2){this.output+=code2,this.map(code2,node2)}writeToStreamAndMap(code2,node2){this.output.write(code2),this.map(code2,node2)}map(code2,node2){if(node2!=null){let{type}=node2;if(type[0]==="L"&&type[2]==="n"){this.column=0,this.line++;return}if(node2.loc!=null){let{mapping}=this;mapping.original=node2.loc.start,mapping.name=node2.name,this.sourceMap.addMapping(mapping)}if(type[0]==="T"&&type[8]==="E"||type[0]==="L"&&type[1]==="i"&&typeof node2.value=="string"){let{length:length2}=code2,{column,line}=this;for(let i=0;i<length2;i++)code2[i]===`
|
|
51
51
|
`?(column=0,line++):column++;this.column=column,this.line=line;return}}let{length}=code2,{lineEnd}=this;length>0&&(this.lineEndSize>0&&(lineEnd.length===1?code2[length-1]===lineEnd:code2.endsWith(lineEnd))?(this.line+=this.lineEndSize,this.column=0):this.column+=length)}toString(){return this.output}}}});function toJs(tree,options){let{SourceMapGenerator,filePath,handlers:handlers3}=options||emptyOptions7,sourceMap=SourceMapGenerator?new SourceMapGenerator({file:filePath||"<unknown>.js"}):void 0,value=generate(tree,{comments:!0,generator:{...GENERATOR,...handlers3},sourceMap:sourceMap||void 0}),map=sourceMap?sourceMap.toJSON():void 0;return{value,map}}var emptyOptions7,init_lib30=__esm({"../../node_modules/estree-util-to-js/lib/index.js"(){"use strict";init_astring();emptyOptions7={}}});function jsxAttribute(node2,state){this[node2.name.type](node2.name,state),node2.value!==null&&node2.value!==void 0&&(state.write("="),node2.value.type==="Literal"?state.write('"'+encodeJsx(String(node2.value.value)).replace(/"/g,""")+'"',node2):this[node2.value.type](node2.value,state))}function jsxClosingElement(node2,state){state.write("</"),this[node2.name.type](node2.name,state),state.write(">")}function jsxClosingFragment(node2,state){state.write("</>",node2)}function jsxElement(node2,state){let index2=-1;if(this[node2.openingElement.type](node2.openingElement,state),node2.children)for(;++index2<node2.children.length;){let child=node2.children[index2];if(child.type==="JSXSpreadChild")throw new Error("JSX spread children are not supported");this[child.type](child,state)}node2.closingElement&&this[node2.closingElement.type](node2.closingElement,state)}function jsxEmptyExpression(){}function jsxExpressionContainer(node2,state){state.write("{"),this[node2.expression.type](node2.expression,state),state.write("}")}function jsxFragment(node2,state){let index2=-1;if(this[node2.openingFragment.type](node2.openingFragment,state),node2.children)for(;++index2<node2.children.length;){let child=node2.children[index2];if(child.type==="JSXSpreadChild")throw new Error("JSX spread children are not supported");this[child.type](child,state)}this[node2.closingFragment.type](node2.closingFragment,state)}function jsxIdentifier(node2,state){state.write(node2.name,node2)}function jsxMemberExpression(node2,state){this[node2.object.type](node2.object,state),state.write("."),this[node2.property.type](node2.property,state)}function jsxNamespacedName(node2,state){this[node2.namespace.type](node2.namespace,state),state.write(":"),this[node2.name.type](node2.name,state)}function jsxOpeningElement(node2,state){let index2=-1;if(state.write("<"),this[node2.name.type](node2.name,state),node2.attributes)for(;++index2<node2.attributes.length;)state.write(" "),this[node2.attributes[index2].type](node2.attributes[index2],state);state.write(node2.selfClosing?" />":">")}function jsxOpeningFragment(node2,state){state.write("<>",node2)}function jsxSpreadAttribute(node2,state){state.write("{"),this.SpreadElement(node2,state),state.write("}")}function jsxText2(node2,state){state.write(encodeJsx(node2.value).replace(/[<>{}]/g,replaceJsxChar),node2)}function encodeJsx(value){return value.replace(/&(?=[#a-z])/gi,"&")}function replaceJsxChar($0){return $0==="<"?"<":$0===">"?">":$0==="{"?"{":"}"}var jsx,init_jsx=__esm({"../../node_modules/estree-util-to-js/lib/jsx.js"(){"use strict";jsx={JSXAttribute:jsxAttribute,JSXClosingElement:jsxClosingElement,JSXClosingFragment:jsxClosingFragment,JSXElement:jsxElement,JSXEmptyExpression:jsxEmptyExpression,JSXExpressionContainer:jsxExpressionContainer,JSXFragment:jsxFragment,JSXIdentifier:jsxIdentifier,JSXMemberExpression:jsxMemberExpression,JSXNamespacedName:jsxNamespacedName,JSXOpeningElement:jsxOpeningElement,JSXOpeningFragment:jsxOpeningFragment,JSXSpreadAttribute:jsxSpreadAttribute,JSXText:jsxText2}}});var init_estree_util_to_js=__esm({"../../node_modules/estree-util-to-js/index.js"(){"use strict";init_lib30();init_jsx()}});function recmaStringify(options){let self2=this,{SourceMapGenerator}=options;self2.compiler=compiler2;function compiler2(tree,file){let result=SourceMapGenerator?toJs(tree,{SourceMapGenerator,filePath:file.path||"unknown.mdx",handlers:jsx}):toJs(tree,{handlers:jsx});return file.map=result.map,result.value}}var init_recma_stringify=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/recma-stringify.js"(){"use strict";init_estree_util_to_js()}});function comment(node2,state){let result={type:"Block",value:node2.value};state.inherit(node2,result),state.comments.push(result);let expression={type:"JSXEmptyExpression",comments:[Object.assign({},result,{leading:!1,trailing:!0})]};state.patch(node2,expression);let container={type:"JSXExpressionContainer",expression};return state.patch(node2,container),container}var init_comment=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/comment.js"(){"use strict";""}});function stringify3(values,options){let settings=options||{};return(values[values.length-1]===""?[...values,""]:values).join((settings.padRight?" ":"")+","+(settings.padLeft===!1?"":" ")).trim()}var init_comma_separated_tokens=__esm({"../../node_modules/comma-separated-tokens/index.js"(){"use strict"}});var Schema,init_schema=__esm({"../../node_modules/property-information/lib/util/schema.js"(){"use strict";Schema=class{constructor(property,normal,space){this.property=property,this.normal=normal,space&&(this.space=space)}};Schema.prototype.property={};Schema.prototype.normal={};Schema.prototype.space=null}});function merge(definitions,space){let property={},normal={},index2=-1;for(;++index2<definitions.length;)Object.assign(property,definitions[index2].property),Object.assign(normal,definitions[index2].normal);return new Schema(property,normal,space)}var init_merge=__esm({"../../node_modules/property-information/lib/util/merge.js"(){"use strict";init_schema()}});function normalize(value){return value.toLowerCase()}var init_normalize=__esm({"../../node_modules/property-information/lib/normalize.js"(){"use strict"}});var Info,init_info=__esm({"../../node_modules/property-information/lib/util/info.js"(){"use strict";Info=class{constructor(property,attribute){this.property=property,this.attribute=attribute}};Info.prototype.space=null;Info.prototype.boolean=!1;Info.prototype.booleanish=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.number=!1;Info.prototype.commaSeparated=!1;Info.prototype.spaceSeparated=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.mustUseProperty=!1;Info.prototype.defined=!1}});var types_exports={};__export(types_exports,{boolean:()=>boolean,booleanish:()=>booleanish,commaOrSpaceSeparated:()=>commaOrSpaceSeparated,commaSeparated:()=>commaSeparated,number:()=>number,overloadedBoolean:()=>overloadedBoolean,spaceSeparated:()=>spaceSeparated});function increment(){return 2**++powers}var powers,boolean,booleanish,overloadedBoolean,number,spaceSeparated,commaSeparated,commaOrSpaceSeparated,init_types2=__esm({"../../node_modules/property-information/lib/util/types.js"(){"use strict";powers=0,boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment()}});function mark(values,key,value){value&&(values[key]=value)}var checks,DefinedInfo,init_defined_info=__esm({"../../node_modules/property-information/lib/util/defined-info.js"(){"use strict";init_info();init_types2();checks=Object.keys(types_exports),DefinedInfo=class extends Info{constructor(property,attribute,mask,space){let index2=-1;if(super(property,attribute),mark(this,"space",space),typeof mask=="number")for(;++index2<checks.length;){let check=checks[index2];mark(this,checks[index2],(mask&types_exports[check])===types_exports[check])}}};DefinedInfo.prototype.defined=!0}});function create3(definition2){let property={},normal={},prop;for(prop in definition2.properties)if(own7.call(definition2.properties,prop)){let value=definition2.properties[prop],info=new DefinedInfo(prop,definition2.transform(definition2.attributes||{},prop),value,definition2.space);definition2.mustUseProperty&&definition2.mustUseProperty.includes(prop)&&(info.mustUseProperty=!0),property[prop]=info,normal[normalize(prop)]=prop,normal[normalize(info.attribute)]=prop}return new Schema(property,normal,definition2.space)}var own7,init_create=__esm({"../../node_modules/property-information/lib/util/create.js"(){"use strict";init_normalize();init_schema();init_defined_info();own7={}.hasOwnProperty}});var xlink,init_xlink=__esm({"../../node_modules/property-information/lib/xlink.js"(){"use strict";init_create();xlink=create3({space:"xlink",transform(_,prop){return"xlink:"+prop.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})}});var xml,init_xml=__esm({"../../node_modules/property-information/lib/xml.js"(){"use strict";init_create();xml=create3({space:"xml",transform(_,prop){return"xml:"+prop.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})}});function caseSensitiveTransform(attributes,attribute){return attribute in attributes?attributes[attribute]:attribute}var init_case_sensitive_transform=__esm({"../../node_modules/property-information/lib/util/case-sensitive-transform.js"(){"use strict"}});function caseInsensitiveTransform(attributes,property){return caseSensitiveTransform(attributes,property.toLowerCase())}var init_case_insensitive_transform=__esm({"../../node_modules/property-information/lib/util/case-insensitive-transform.js"(){"use strict";init_case_sensitive_transform()}});var xmlns,init_xmlns=__esm({"../../node_modules/property-information/lib/xmlns.js"(){"use strict";init_create();init_case_insensitive_transform();xmlns=create3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}})}});var aria,init_aria=__esm({"../../node_modules/property-information/lib/aria.js"(){"use strict";init_types2();init_create();aria=create3({transform(_,prop){return prop==="role"?prop:"aria-"+prop.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null}})}});var html2,init_html2=__esm({"../../node_modules/property-information/lib/html.js"(){"use strict";init_types2();init_create();init_case_insensitive_transform();html2=create3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:boolean,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:boolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,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:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null}})}});var svg,init_svg=__esm({"../../node_modules/property-information/lib/svg.js"(){"use strict";init_types2();init_create();init_case_sensitive_transform();svg=create3({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",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:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,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:number,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:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})}});function find(schema,value){let normal=normalize(value),prop=value,Type=Info;if(normal in schema.normal)return schema.property[schema.normal[normal]];if(normal.length>4&&normal.slice(0,4)==="data"&&valid.test(value)){if(value.charAt(4)==="-"){let rest=value.slice(5).replace(dash,camelcase);prop="data"+rest.charAt(0).toUpperCase()+rest.slice(1)}else{let rest=value.slice(4);if(!dash.test(rest)){let dashes=rest.replace(cap,kebab);dashes.charAt(0)!=="-"&&(dashes="-"+dashes),value="data"+dashes}}Type=DefinedInfo}return new Type(prop,value)}function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}var valid,dash,cap,init_find=__esm({"../../node_modules/property-information/lib/find.js"(){"use strict";init_normalize();init_defined_info();init_info();valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g}});var hastToReact,init_hast_to_react=__esm({"../../node_modules/property-information/lib/hast-to-react.js"(){"use strict";hastToReact={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"}}});var html3,svg2,init_property_information=__esm({"../../node_modules/property-information/index.js"(){"use strict";init_merge();init_xlink();init_xml();init_xmlns();init_aria();init_html2();init_svg();init_find();init_hast_to_react();html3=merge([xml,xlink,xmlns,aria,html2],"html"),svg2=merge([xml,xlink,xmlns,aria,svg],"svg")}});var require_inline_style_parser=__commonJS({"../../node_modules/inline-style-parser/index.js"(exports2,module2){"use strict";var COMMENT_REGEX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NEWLINE_REGEX=/\n/g,WHITESPACE_REGEX=/^\s*/,PROPERTY_REGEX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,COLON_REGEX=/^:\s*/,VALUE_REGEX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SEMICOLON_REGEX=/^[;\s]*/,TRIM_REGEX=/^\s+|\s+$/g,NEWLINE=`
|
|
52
52
|
`,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration";module2.exports=function(style,options){if(typeof style!="string")throw new TypeError("First argument must be a string");if(!style)return[];options=options||{};var lineno=1,column=1;function updatePosition(str){var lines=str.match(NEWLINE_REGEX);lines&&(lineno+=lines.length);var i=str.lastIndexOf(NEWLINE);column=~i?str.length-i:column+str.length}function position4(){var start2={line:lineno,column};return function(node2){return node2.position=new Position3(start2),whitespace2(),node2}}function Position3(start2){this.start=start2,this.end={line:lineno,column},this.source=options.source}Position3.prototype.content=style;var errorsList=[];function error(msg){var err=new Error(options.source+":"+lineno+":"+column+": "+msg);if(err.reason=msg,err.filename=options.source,err.line=lineno,err.column=column,err.source=style,options.silent)errorsList.push(err);else throw err}function match(re2){var m=re2.exec(style);if(m){var str=m[0];return updatePosition(str),style=style.slice(str.length),m}}function whitespace2(){match(WHITESPACE_REGEX)}function comments(rules){var c;for(rules=rules||[];c=comment2();)c!==!1&&rules.push(c);return rules}function comment2(){var pos=position4();if(!(FORWARD_SLASH!=style.charAt(0)||ASTERISK!=style.charAt(1))){for(var i=2;EMPTY_STRING!=style.charAt(i)&&(ASTERISK!=style.charAt(i)||FORWARD_SLASH!=style.charAt(i+1));)++i;if(i+=2,EMPTY_STRING===style.charAt(i-1))return error("End of comment missing");var str=style.slice(2,i-2);return column+=2,updatePosition(str),style=style.slice(i),column+=2,pos({type:TYPE_COMMENT,comment:str})}}function declaration(){var pos=position4(),prop=match(PROPERTY_REGEX);if(prop){if(comment2(),!match(COLON_REGEX))return error("property missing ':'");var val=match(VALUE_REGEX),ret=pos({type:TYPE_DECLARATION,property:trim(prop[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:val?trim(val[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return match(SEMICOLON_REGEX),ret}}function declarations(){var decls=[];comments(decls);for(var decl;decl=declaration();)decl!==!1&&(decls.push(decl),comments(decls));return decls}return whitespace2(),declarations()};function trim(str){return str?str.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}}});var require_style_to_object=__commonJS({"../../node_modules/style-to-object/index.js"(exports2,module2){"use strict";var parse5=require_inline_style_parser();function StyleToObject2(style,iterator){var output=null;if(!style||typeof style!="string")return output;for(var declaration,declarations=parse5(style),hasIterator=typeof iterator=="function",property,value,i=0,len=declarations.length;i<len;i++)declaration=declarations[i],property=declaration.property,value=declaration.value,hasIterator?iterator(property,value,declaration):value&&(output||(output={}),output[property]=value);return output}module2.exports=StyleToObject2;module2.exports.default=StyleToObject2}});var import_index,style_to_object_default,init_style_to_object=__esm({"../../node_modules/style-to-object/index.mjs"(){"use strict";import_index=__toESM(require_style_to_object(),1),style_to_object_default=import_index.default}});function element2(node2,state){let parentSchema=state.schema,schema=parentSchema,props=node2.properties||{};parentSchema.space==="html"&&node2.tagName.toLowerCase()==="svg"&&(schema=svg2,state.schema=schema);let children=state.all(node2),attributes=[],prop,alignValue,styleProperties;for(prop in props)if(own8.call(props,prop)){let value=props[prop],info=find(schema,prop),attributeValue;if(value==null||value===!1||typeof value=="number"&&Number.isNaN(value)||!value&&info.boolean)continue;if(prop=state.elementAttributeNameCase==="react"&&info.space?hastToReact[info.property]||info.property:info.attribute,Array.isArray(value)&&(value=info.commaSeparated?stringify3(value):stringify(value)),prop==="style"){let styleObject=typeof value=="object"?value:parseStyle(String(value),node2.tagName);state.stylePropertyNameCase==="css"&&(styleObject=transformStylesToCssCasing(styleObject));let cssProperties=[],cssProp;for(cssProp in styleObject)own8.call(styleObject,cssProp)&&cssProperties.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:name(cssProp)?{type:"Identifier",name:cssProp}:{type:"Literal",value:cssProp},value:{type:"Literal",value:String(styleObject[cssProp])},kind:"init"});styleProperties=cssProperties,attributeValue={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:cssProperties}}}else if(value===!0)attributeValue=null;else if(state.tableCellAlignToStyle&&tableCellElement.has(node2.tagName)&&prop==="align"){alignValue=String(value);continue}else attributeValue={type:"Literal",value:String(value)};name(prop,{jsx:!0})?attributes.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:prop},value:attributeValue}):attributes.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(prop)},value:attributeValue||{type:"Literal",value:!0},kind:"init"}]}})}if(alignValue!==void 0){styleProperties||(styleProperties=[],attributes.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:styleProperties}}}));let cssProp=state.stylePropertyNameCase==="css"?transformStyleToCssCasing("textAlign"):"textAlign";styleProperties.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:name(cssProp)?{type:"Identifier",name:cssProp}:{type:"Literal",value:cssProp},value:{type:"Literal",value:alignValue},kind:"init"})}state.schema=parentSchema;let result={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes,name:state.createJsxElementName(node2.tagName),selfClosing:children.length===0},closingElement:children.length>0?{type:"JSXClosingElement",name:state.createJsxElementName(node2.tagName)}:null,children};return state.inherit(node2,result),result}function parseStyle(value,tagName){let result={};try{style_to_object_default(value,iterator)}catch(error){let cause=error;throw new Error("Could not parse `style` attribute on `"+tagName+"`",{cause})}return result;function iterator(name2,value2){let key=name2;key.slice(0,2)!=="--"&&(key.slice(0,4)==="-ms-"&&(key="ms-"+key.slice(4)),key=key.replace(dashSomething,toCamel)),result[key]=value2}}function transformStylesToCssCasing(domCasing){let cssCasing={},from;for(from in domCasing)own8.call(domCasing,from)&&(cssCasing[transformStyleToCssCasing(from)]=domCasing[from]);return cssCasing}function transformStyleToCssCasing(from){let to=from.replace(cap2,toDash);return to.slice(0,3)==="ms-"&&(to="-"+to),to}function toCamel(_,$1){return $1.toUpperCase()}function toDash($0){return"-"+$0.toLowerCase()}var own8,cap2,dashSomething,tableCellElement,init_element=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/element.js"(){"use strict";init_comma_separated_tokens();init_estree_util_is_identifier_name();init_property_information();init_space_separated_tokens();init_style_to_object();own8={}.hasOwnProperty,cap2=/[A-Z]/g,dashSomething=/-([a-z])/g,tableCellElement=new Set(["td","th"])}});function attachComments(tree,comments){let list3=comments?[...comments].sort(compare):emptyComments;list3.length>0&&walk5(tree,{comments:list3,index:0})}function walk5(node2,state){if(state.index===state.comments.length)return;let children=[],comments=[],key;for(key in node2)if(own9.call(node2,key)){let value=node2[key];if(value&&typeof value=="object"&&key!=="comments")if(Array.isArray(value)){let index3=-1;for(;++index3<value.length;)value[index3]&&typeof value[index3].type=="string"&&children.push(value[index3])}else typeof value.type=="string"&&children.push(value)}children.sort(compare),comments.push(...slice(state,node2,!1,{leading:!0,trailing:!1}));let index2=-1;for(;++index2<children.length;)walk5(children[index2],state);comments.push(...slice(state,node2,!0,{leading:!1,trailing:children.length>0})),comments.length>0&&(node2.comments=comments)}function slice(state,node2,compareEnd,fields){let result=[];for(;state.comments[state.index]&&compare(state.comments[state.index],node2,compareEnd)<1;)result.push(Object.assign({},state.comments[state.index++],fields));return result}function compare(left,right,compareEnd){let field=compareEnd?"end":"start";return left.range&&right.range?left.range[0]-right.range[compareEnd?1:0]:left.loc&&left.loc.start&&right.loc&&right.loc[field]?left.loc.start.line-right.loc[field].line||left.loc.start.column-right.loc[field].column:"start"in left&&field in right?left.start-right[field]:Number.NaN}var own9,emptyComments,init_lib31=__esm({"../../node_modules/estree-util-attach-comments/lib/index.js"(){"use strict";own9={}.hasOwnProperty,emptyComments=[]}});var init_estree_util_attach_comments=__esm({"../../node_modules/estree-util-attach-comments/index.js"(){"use strict";init_lib31()}});function mdxExpression2(node2,state){let estree=node2.data&&node2.data.estree,comments=estree&&estree.comments||[],expression;estree&&(state.comments.push(...comments),attachComments(estree,estree.comments),expression=estree.body[0]&&estree.body[0].type==="ExpressionStatement"&&estree.body[0].expression||void 0),expression||(expression={type:"JSXEmptyExpression"},state.patch(node2,expression));let result={type:"JSXExpressionContainer",expression};return state.inherit(node2,result),result}var init_mdx_expression=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/mdx-expression.js"(){"use strict";init_estree_util_attach_comments()}});function mdxJsxElement(node2,state){let parentSchema=state.schema,schema=parentSchema,attrs=node2.attributes||[],index2=-1;node2.name&&parentSchema.space==="html"&&node2.name.toLowerCase()==="svg"&&(schema=svg2,state.schema=schema);let children=state.all(node2),attributes=[];for(;++index2<attrs.length;){let attr=attrs[index2],value=attr.value,attributeValue;if(attr.type==="mdxJsxAttribute"){if(value==null)attributeValue=null;else if(typeof value=="object"){let estree=value.data&&value.data.estree,comments=estree&&estree.comments||[],expression;estree&&(state.comments.push(...comments),attachComments(estree,estree.comments),expression=estree.body[0]&&estree.body[0].type==="ExpressionStatement"&&estree.body[0].expression||void 0),attributeValue={type:"JSXExpressionContainer",expression:expression||{type:"JSXEmptyExpression"}},state.inherit(value,attributeValue)}else attributeValue={type:"Literal",value:String(value)};let attribute={type:"JSXAttribute",name:state.createJsxAttributeName(attr.name),value:attributeValue};state.inherit(attr,attribute),attributes.push(attribute)}else{let estree=attr.data&&attr.data.estree,comments=estree&&estree.comments||[],argumentValue;estree&&(state.comments.push(...comments),attachComments(estree,estree.comments),argumentValue=estree.body[0]&&estree.body[0].type==="ExpressionStatement"&&estree.body[0].expression&&estree.body[0].expression.type==="ObjectExpression"&&estree.body[0].expression.properties&&estree.body[0].expression.properties[0]&&estree.body[0].expression.properties[0].type==="SpreadElement"&&estree.body[0].expression.properties[0].argument||void 0);let attribute={type:"JSXSpreadAttribute",argument:argumentValue||{type:"ObjectExpression",properties:[]}};state.inherit(attr,attribute),attributes.push(attribute)}}state.schema=parentSchema;let result=node2.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes,name:state.createJsxElementName(node2.name),selfClosing:children.length===0},closingElement:children.length>0?{type:"JSXClosingElement",name:state.createJsxElementName(node2.name)}:null,children}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children};return state.inherit(node2,result),result}var init_mdx_jsx_element=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/mdx-jsx-element.js"(){"use strict";init_estree_util_attach_comments();init_property_information()}});function mdxjsEsm2(node2,state){let estree=node2.data&&node2.data.estree,comments=estree&&estree.comments||[];estree&&(state.comments.push(...comments),attachComments(estree,comments),state.esm.push(...estree.body))}var init_mdxjs_esm=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/mdxjs-esm.js"(){"use strict";init_estree_util_attach_comments()}});function whitespace(thing){return typeof thing=="object"?thing.type==="text"?empty4(thing.value):!1:empty4(thing)}function empty4(value){return value.replace(re,"")===""}var re,init_lib32=__esm({"../../node_modules/hast-util-whitespace/lib/index.js"(){"use strict";re=/[ \t\n\f\r]/g}});var init_hast_util_whitespace=__esm({"../../node_modules/hast-util-whitespace/index.js"(){"use strict";init_lib32()}});function root2(node2,state){let children=state.all(node2),cleanChildren=[],index2=-1,queue;for(;++index2<children.length;){let child=children[index2];child.type==="JSXExpressionContainer"&&child.expression.type==="Literal"&&whitespace(String(child.expression.value))?queue&&queue.push(child):(queue&&cleanChildren.push(...queue),cleanChildren.push(child),queue=[])}let result={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:cleanChildren};return state.inherit(node2,result),result}var init_root2=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/root.js"(){"use strict";init_hast_util_whitespace()}});function text4(node2,state){let value=String(node2.value||"");if(value){let result={type:"Literal",value};state.inherit(node2,result);let container={type:"JSXExpressionContainer",expression:result};return state.patch(node2,container),container}}var init_text3=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/text.js"(){"use strict";""}});function ignore2(){}var handlers2,init_handlers2=__esm({"../../node_modules/hast-util-to-estree/lib/handlers/index.js"(){"use strict";init_comment();init_element();init_mdx_expression();init_mdx_jsx_element();init_mdxjs_esm();init_root2();init_text3();handlers2={comment,doctype:ignore2,element:element2,mdxFlowExpression:mdxExpression2,mdxJsxFlowElement:mdxJsxElement,mdxJsxTextElement:mdxJsxElement,mdxTextExpression:mdxExpression2,mdxjsEsm:mdxjsEsm2,root:root2,text:text4}}});function point4(type){return point5;function point5(node2){let point6=node2&&node2.position&&node2.position[type]||{};if(typeof point6.line=="number"&&point6.line>0&&typeof point6.column=="number"&&point6.column>0)return{line:point6.line,column:point6.column,offset:typeof point6.offset=="number"&&point6.offset>-1?point6.offset:void 0}}}function position3(node2){let start2=pointStart2(node2),end=pointEnd2(node2);if(start2&&end)return{start:start2,end}}var pointEnd2,pointStart2,init_lib33=__esm({"../../node_modules/hast-util-to-estree/node_modules/unist-util-position/lib/index.js"(){"use strict";pointEnd2=point4("end"),pointStart2=point4("start")}});var init_unist_util_position2=__esm({"../../node_modules/hast-util-to-estree/node_modules/unist-util-position/index.js"(){"use strict";init_lib33()}});function zwitch(key,options){let settings=options||{};function one3(value,...parameters){let fn=one3.invalid,handlers3=one3.handlers;if(value&&own10.call(value,key)){let id=String(value[key]);fn=own10.call(handlers3,id)?handlers3[id]:one3.unknown}if(fn)return fn.call(this,value,...parameters)}return one3.handlers=settings.handlers||{},one3.invalid=settings.invalid,one3.unknown=settings.unknown,one3}var own10,init_zwitch=__esm({"../../node_modules/zwitch/index.js"(){"use strict";own10={}.hasOwnProperty}});function createState2(options){let one3=zwitch("type",{invalid,unknown,handlers:{...handlers2,...options.handlers}});return{elementAttributeNameCase:options.elementAttributeNameCase||"react",schema:options.space==="svg"?svg2:html3,stylePropertyNameCase:options.stylePropertyNameCase||"dom",tableCellAlignToStyle:options.tableCellAlignToStyle!==!1,comments:[],esm:[],all:all3,createJsxAttributeName,createJsxElementName,handle,inherit,patch:patch2};function handle(node2){return one3(node2,this)}}function invalid(value){throw new Error("Cannot handle value `"+value+"`, expected node")}function unknown(node2){throw"type"in node2,new Error("Cannot handle unknown node `"+node2.type+"`")}function all3(parent){let children=parent.children||[],index2=-1,results=[],ignoreLineBreak=this.schema.space==="html"&&parent.type==="element"&&tableElements.has(parent.tagName.toLowerCase());for(;++index2<children.length;){let child=children[index2];if(ignoreLineBreak&&child.type==="text"&&child.value===`
|
|
53
|
-
`)continue;let result=this.handle(child);Array.isArray(result)?results.push(...result):result&&results.push(result)}return results}function inherit(from,to){let left=from.data,right,key;if(patch2(from,to),left){for(key in left)own11.call(left,key)&&key!=="estree"&&(right||(right={}),right[key]=left[key]);right&&(to.data=right)}}function patch2(from,to){let p=position3(from);p&&p.start.offset!==void 0&&p.end.offset!==void 0&&(to.start=p.start.offset,to.end=p.end.offset,to.loc={start:{line:p.start.line,column:p.start.column-1},end:{line:p.end.line,column:p.end.column-1}},to.range=[p.start.offset,p.end.offset])}function createJsxAttributeName(name2){let node2=createJsxNameFromString(name2);if(node2.type==="JSXMemberExpression")throw new Error("Member expressions in attribute names are not supported");return node2}function createJsxElementName(name2){return createJsxNameFromString(name2)}function createJsxNameFromString(name2){if(name2.includes(".")){let names=name2.split("."),part=names.shift();let node2={type:"JSXIdentifier",name:part};for(;part=names.shift();)node2={type:"JSXMemberExpression",object:node2,property:{type:"JSXIdentifier",name:part}};return node2}if(name2.includes(":")){let parts=name2.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:parts[0]},name:{type:"JSXIdentifier",name:parts[1]}}}return{type:"JSXIdentifier",name:name2}}var own11,tableElements,init_state2=__esm({"../../node_modules/hast-util-to-estree/lib/state.js"(){"use strict";init_property_information();init_unist_util_position2();init_zwitch();init_handlers2();own11={}.hasOwnProperty,tableElements=new Set(["table","tbody","thead","tfoot","tr"])}});function toEstree(tree,options){let state=createState2(options||{}),result=state.handle(tree),body=state.esm;if(result){result.type!=="JSXFragment"&&result.type!=="JSXElement"&&(result={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[result]},state.patch(tree,result));let statement={type:"ExpressionStatement",expression:result};state.patch(tree,statement),body.push(statement)}let program={type:"Program",body,sourceType:"module",comments:state.comments};return state.patch(tree,program),program}var init_lib34=__esm({"../../node_modules/hast-util-to-estree/lib/index.js"(){"use strict";init_state2()}});var init_hast_util_to_estree=__esm({"../../node_modules/hast-util-to-estree/index.js"(){"use strict";init_lib34()}});function rehypeRecma(options){return function(tree){return toEstree(tree,options)}}var init_rehype_recma=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-recma.js"(){"use strict";init_hast_util_to_estree()}});function rehypeRemoveRaw(){return function(tree){visit(tree,"raw",function(_,index2,parent){if(parent&&typeof index2=="number")return parent.children.splice(index2,1),index2})}}var init_rehype_remove_raw=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-remove-raw.js"(){"use strict";init_unist_util_visit()}});function collapseWhiteSpace(value,options){options?typeof options=="string"&&(options={style:options}):options={};let replace=options.preserveLineEndings?replaceLineEnding:replaceSpace;return String(value).replace(options.style==="html"?html4:js,options.trim?trimFactory(replace):replace)}function replaceLineEnding(value){let match=/\r?\n|\r/.exec(value);return match?match[0]:" "}function replaceSpace(){return" "}function trimFactory(replace){return dropOrReplace;function dropOrReplace(value,index2,all4){return index2===0||index2+value.length===all4.length?"":replace(value)}}var js,html4,init_collapse_white_space=__esm({"../../node_modules/collapse-white-space/index.js"(){"use strict";js=/\s+/g,html4=/[\t\n\v\f\r ]+/g}});function remarkMarkAndUnravel(){return function(tree){visit(tree,function(node2,index2,parent){let offset2=-1,all4=!0,oneOrMore=!1;if(parent&&typeof index2=="number"&&node2.type==="paragraph"){let children=node2.children;for(;++offset2<children.length;){let child=children[offset2];if(child.type==="mdxJsxTextElement"||child.type==="mdxTextExpression")oneOrMore=!0;else if(!(child.type==="text"&&collapseWhiteSpace(child.value,{style:"html",trim:!0})==="")){all4=!1;break}}if(all4&&oneOrMore){offset2=-1;let newChildren=[];for(;++offset2<children.length;){let child=children[offset2];child.type==="mdxJsxTextElement"&&(child.type="mdxJsxFlowElement"),child.type==="mdxTextExpression"&&(child.type="mdxFlowExpression"),child.type==="text"&&/^[\t\r\n ]+$/.test(String(child.value))||newChildren.push(child)}return parent.children.splice(index2,1,...newChildren),index2}}if(node2.type==="mdxJsxFlowElement"||node2.type==="mdxJsxTextElement"){let data2=node2.data||(node2.data={});data2._mdxExplicitJsx=!0}})}}var init_remark_mark_and_unravel=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/remark-mark-and-unravel.js"(){"use strict";init_collapse_white_space();init_unist_util_visit()}});var nodeTypes,init_node_types=__esm({"../../node_modules/@mdx-js/mdx/lib/node-types.js"(){"use strict";nodeTypes=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]}});function createProcessor(options){let settings=options||{},index2=-1;for(;++index2<removedOptions.length;){let key=removedOptions[index2];key in settings&&(""+key,void 0)}settings.format==="detect"&&void 0,(settings.jsxRuntime==="classic"||settings.pragma||settings.pragmaFrag||settings.pragmaImportSource)&&!warned&&(warned=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));let pipeline=unified().use(remarkParse);settings.format!=="md"&&pipeline.use(remarkMdx);let remarkRehypeOptions=settings.remarkRehypeOptions||{};return pipeline.use(remarkMarkAndUnravel).use(settings.remarkPlugins||[]).use(remarkRehype,{...remarkRehypeOptions,allowDangerousHtml:!0,passThrough:[...remarkRehypeOptions.passThrough||[],...nodeTypes]}).use(settings.rehypePlugins||[]),settings.format==="md"&&pipeline.use(rehypeRemoveRaw),pipeline.use(rehypeRecma,settings).use(recmaDocument,settings).use(recmaJsxRewrite,settings),settings.jsx||pipeline.use(recmaJsxBuild,settings),pipeline.use(recmaStringify,settings).use(settings.recmaPlugins||[]),pipeline}var removedOptions,warned,init_core2=__esm({"../../node_modules/@mdx-js/mdx/lib/core.js"(){"use strict";init_remark_mdx();init_remark_parse();init_remark_rehype();init_unified();init_recma_document();init_recma_jsx_build();init_recma_jsx_rewrite();init_recma_stringify();init_rehype_recma();init_rehype_remove_raw();init_remark_mark_and_unravel();init_node_types();removedOptions=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],warned=!1}});function compile(vfileCompatible,compileOptions){let{file,options}=resolveFileAndOptions(vfileCompatible,compileOptions);return createProcessor(options).process(file)}var init_compile=__esm({"../../node_modules/@mdx-js/mdx/lib/compile.js"(){"use strict";init_resolve_file_and_options();init_core2()}});var init_mdx=__esm({"../../node_modules/@mdx-js/mdx/index.js"(){"use strict";init_compile()}});function getCompilerOptions(mdxCompileOptions){return{providerImportSource:"@mdx-js/react",rehypePlugins:[],...mdxCompileOptions}}var compile2,init_compiler=__esm({"src/compiler/index.ts"(){"use strict";init_mdx();compile2=async(input,{mdxCompileOptions={}}={})=>{let options=getCompilerOptions(mdxCompileOptions);return(await compile(input,options)).toString()}}});var mdx_plugin_exports={};__export(mdx_plugin_exports,{mdxPlugin:()=>mdxPlugin});async function mdxPlugin(options){let filter=createFilter(/\.mdx$/),{presets}=options,mdxPluginOptions=(await presets.apply("options",{}))?.mdxPluginOptions,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default;return{name:"storybook:mdx-plugin",enforce:"pre",async transform(src,id){if(!filter(id))return;let mdxLoaderOptions=await presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:(0,import_node_path2.join)((0,import_node_path2.dirname)(require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions?.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});return{code:String(await compile2(src,mdxLoaderOptions)),map:null}}}}var import_node_path2,init_mdx_plugin=__esm({"src/plugins/mdx-plugin.ts"(){"use strict";import_node_path2=require("path");init_es();init_compiler()}});var preset_exports={};__export(preset_exports,{addons:()=>addons,docs:()=>docsX,optimizeViteDeps:()=>optimizeViteDeps,resolvedReact:()=>resolvedReact,viteFinal:()=>viteFinal,webpack:()=>webpackX});module.exports=__toCommonJS(preset_exports);var import_node_path3=require("path"),import_node_logger=require("storybook/internal/node-logger"),getResolvedReact=async options=>{let resolvedReact2=await options.presets.apply("resolvedReact",{});return{react:resolvedReact2.react??(0,import_node_path3.dirname)(require.resolve("react/package.json")),reactDom:resolvedReact2.reactDom??(0,import_node_path3.dirname)(require.resolve("react-dom/package.json")),mdx:resolvedReact2.mdx??(0,import_node_path3.dirname)(require.resolve("@mdx-js/react"))}};async function webpack(webpackConfig={},options){let{module:module2={}}=webpackConfig,{csfPluginOptions={},mdxPluginOptions={}}=options,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default,mdxLoaderOptions=await options.presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:(0,import_node_path3.join)((0,import_node_path3.dirname)(require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});import_node_logger.logger.info("Addon-docs: using MDX3");let{react,reactDom,mdx}=await getResolvedReact(options),alias,blocksPath=(0,import_node_path3.dirname)(require.resolve("@storybook/blocks/package.json"));return Array.isArray(webpackConfig.resolve?.alias)?(alias=[...webpackConfig.resolve?.alias],alias.push({name:"react",alias:react},{name:"react-dom",alias:reactDom},{name:"@mdx-js/react",alias:mdx},{name:"@storybook/blocks",alias:blocksPath})):alias={...webpackConfig.resolve?.alias,react,"@storybook/blocks":blocksPath,"react-dom":reactDom,"@mdx-js/react":mdx},{...webpackConfig,plugins:[...webpackConfig.plugins||[],...csfPluginOptions?[(await import("@storybook/csf-plugin")).webpack(csfPluginOptions)]:[]],resolve:{...webpackConfig.resolve,alias},module:{...module2,rules:[...module2.rules||[],{test:/\.mdx$/,exclude:/(stories|story)\.mdx$/,use:[{loader:require.resolve("./mdx-loader"),options:mdxLoaderOptions}]}]}}}var docs=docsOptions=>({...docsOptions,defaultName:"Docs",autodocs:"tag"}),addons=[require.resolve("@storybook/react-dom-shim/dist/preset")],viteFinal=async(config,options)=>{let{plugins=[]}=config,{mdxPlugin:mdxPlugin2}=await Promise.resolve().then(()=>(init_mdx_plugin(),mdx_plugin_exports)),{react,reactDom,mdx}=await getResolvedReact(options),blocksPath=(0,import_node_path3.dirname)(require.resolve("@storybook/blocks/package.json")),themingPath=(0,import_node_path3.dirname)(require.resolve("storybook/theming")),packageDeduplicationPlugin={name:"storybook:package-deduplication",enforce:"pre",config:()=>({resolve:{alias:{react,...(0,import_node_path3.isAbsolute)(reactDom)&&{"react-dom/server":`${reactDom}/server.browser.js`},"react-dom":reactDom,"@mdx-js/react":mdx,"@storybook/blocks":blocksPath,"storybook/theming":themingPath}}})};return plugins.unshift(packageDeduplicationPlugin),plugins.unshift(mdxPlugin2(options)),config},webpackX=webpack,docsX=docs,resolvedReact=async existing=>({react:existing?.react??(0,import_node_path3.dirname)(require.resolve("react/package.json")),reactDom:existing?.reactDom??(0,import_node_path3.dirname)(require.resolve("react-dom/package.json")),mdx:existing?.mdx??(0,import_node_path3.dirname)(require.resolve("@mdx-js/react"))}),optimizeViteDeps=["@mdx-js/react","@storybook/addon-docs > acorn-jsx","@storybook/addon-docs","markdown-to-jsx"];0&&(module.exports={addons,docs,optimizeViteDeps,resolvedReact,viteFinal,webpack});
|
|
53
|
+
`)continue;let result=this.handle(child);Array.isArray(result)?results.push(...result):result&&results.push(result)}return results}function inherit(from,to){let left=from.data,right,key;if(patch2(from,to),left){for(key in left)own11.call(left,key)&&key!=="estree"&&(right||(right={}),right[key]=left[key]);right&&(to.data=right)}}function patch2(from,to){let p=position3(from);p&&p.start.offset!==void 0&&p.end.offset!==void 0&&(to.start=p.start.offset,to.end=p.end.offset,to.loc={start:{line:p.start.line,column:p.start.column-1},end:{line:p.end.line,column:p.end.column-1}},to.range=[p.start.offset,p.end.offset])}function createJsxAttributeName(name2){let node2=createJsxNameFromString(name2);if(node2.type==="JSXMemberExpression")throw new Error("Member expressions in attribute names are not supported");return node2}function createJsxElementName(name2){return createJsxNameFromString(name2)}function createJsxNameFromString(name2){if(name2.includes(".")){let names=name2.split("."),part=names.shift();let node2={type:"JSXIdentifier",name:part};for(;part=names.shift();)node2={type:"JSXMemberExpression",object:node2,property:{type:"JSXIdentifier",name:part}};return node2}if(name2.includes(":")){let parts=name2.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:parts[0]},name:{type:"JSXIdentifier",name:parts[1]}}}return{type:"JSXIdentifier",name:name2}}var own11,tableElements,init_state2=__esm({"../../node_modules/hast-util-to-estree/lib/state.js"(){"use strict";init_property_information();init_unist_util_position2();init_zwitch();init_handlers2();own11={}.hasOwnProperty,tableElements=new Set(["table","tbody","thead","tfoot","tr"])}});function toEstree(tree,options){let state=createState2(options||{}),result=state.handle(tree),body=state.esm;if(result){result.type!=="JSXFragment"&&result.type!=="JSXElement"&&(result={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[result]},state.patch(tree,result));let statement={type:"ExpressionStatement",expression:result};state.patch(tree,statement),body.push(statement)}let program={type:"Program",body,sourceType:"module",comments:state.comments};return state.patch(tree,program),program}var init_lib34=__esm({"../../node_modules/hast-util-to-estree/lib/index.js"(){"use strict";init_state2()}});var init_hast_util_to_estree=__esm({"../../node_modules/hast-util-to-estree/index.js"(){"use strict";init_lib34()}});function rehypeRecma(options){return function(tree){return toEstree(tree,options)}}var init_rehype_recma=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-recma.js"(){"use strict";init_hast_util_to_estree()}});function rehypeRemoveRaw(){return function(tree){visit(tree,"raw",function(_,index2,parent){if(parent&&typeof index2=="number")return parent.children.splice(index2,1),index2})}}var init_rehype_remove_raw=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/rehype-remove-raw.js"(){"use strict";init_unist_util_visit()}});function collapseWhiteSpace(value,options){options?typeof options=="string"&&(options={style:options}):options={};let replace=options.preserveLineEndings?replaceLineEnding:replaceSpace;return String(value).replace(options.style==="html"?html4:js,options.trim?trimFactory(replace):replace)}function replaceLineEnding(value){let match=/\r?\n|\r/.exec(value);return match?match[0]:" "}function replaceSpace(){return" "}function trimFactory(replace){return dropOrReplace;function dropOrReplace(value,index2,all4){return index2===0||index2+value.length===all4.length?"":replace(value)}}var js,html4,init_collapse_white_space=__esm({"../../node_modules/collapse-white-space/index.js"(){"use strict";js=/\s+/g,html4=/[\t\n\v\f\r ]+/g}});function remarkMarkAndUnravel(){return function(tree){visit(tree,function(node2,index2,parent){let offset2=-1,all4=!0,oneOrMore=!1;if(parent&&typeof index2=="number"&&node2.type==="paragraph"){let children=node2.children;for(;++offset2<children.length;){let child=children[offset2];if(child.type==="mdxJsxTextElement"||child.type==="mdxTextExpression")oneOrMore=!0;else if(!(child.type==="text"&&collapseWhiteSpace(child.value,{style:"html",trim:!0})==="")){all4=!1;break}}if(all4&&oneOrMore){offset2=-1;let newChildren=[];for(;++offset2<children.length;){let child=children[offset2];child.type==="mdxJsxTextElement"&&(child.type="mdxJsxFlowElement"),child.type==="mdxTextExpression"&&(child.type="mdxFlowExpression"),child.type==="text"&&/^[\t\r\n ]+$/.test(String(child.value))||newChildren.push(child)}return parent.children.splice(index2,1,...newChildren),index2}}if(node2.type==="mdxJsxFlowElement"||node2.type==="mdxJsxTextElement"){let data2=node2.data||(node2.data={});data2._mdxExplicitJsx=!0}})}}var init_remark_mark_and_unravel=__esm({"../../node_modules/@mdx-js/mdx/lib/plugin/remark-mark-and-unravel.js"(){"use strict";init_collapse_white_space();init_unist_util_visit()}});var nodeTypes,init_node_types=__esm({"../../node_modules/@mdx-js/mdx/lib/node-types.js"(){"use strict";nodeTypes=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]}});function createProcessor(options){let settings=options||{},index2=-1;for(;++index2<removedOptions.length;){let key=removedOptions[index2];key in settings&&(""+key,void 0)}settings.format==="detect"&&void 0,(settings.jsxRuntime==="classic"||settings.pragma||settings.pragmaFrag||settings.pragmaImportSource)&&!warned&&(warned=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));let pipeline=unified().use(remarkParse);settings.format!=="md"&&pipeline.use(remarkMdx);let remarkRehypeOptions=settings.remarkRehypeOptions||{};return pipeline.use(remarkMarkAndUnravel).use(settings.remarkPlugins||[]).use(remarkRehype,{...remarkRehypeOptions,allowDangerousHtml:!0,passThrough:[...remarkRehypeOptions.passThrough||[],...nodeTypes]}).use(settings.rehypePlugins||[]),settings.format==="md"&&pipeline.use(rehypeRemoveRaw),pipeline.use(rehypeRecma,settings).use(recmaDocument,settings).use(recmaJsxRewrite,settings),settings.jsx||pipeline.use(recmaJsxBuild,settings),pipeline.use(recmaStringify,settings).use(settings.recmaPlugins||[]),pipeline}var removedOptions,warned,init_core2=__esm({"../../node_modules/@mdx-js/mdx/lib/core.js"(){"use strict";init_remark_mdx();init_remark_parse();init_remark_rehype();init_unified();init_recma_document();init_recma_jsx_build();init_recma_jsx_rewrite();init_recma_stringify();init_rehype_recma();init_rehype_remove_raw();init_remark_mark_and_unravel();init_node_types();removedOptions=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],warned=!1}});function compile(vfileCompatible,compileOptions){let{file,options}=resolveFileAndOptions(vfileCompatible,compileOptions);return createProcessor(options).process(file)}var init_compile=__esm({"../../node_modules/@mdx-js/mdx/lib/compile.js"(){"use strict";init_resolve_file_and_options();init_core2()}});var init_mdx=__esm({"../../node_modules/@mdx-js/mdx/index.js"(){"use strict";init_compile()}});function getCompilerOptions(mdxCompileOptions){return{providerImportSource:"@mdx-js/react",rehypePlugins:[],...mdxCompileOptions}}var compile2,init_compiler=__esm({"src/compiler/index.ts"(){"use strict";init_mdx();compile2=async(input,{mdxCompileOptions={}}={})=>{let options=getCompilerOptions(mdxCompileOptions);return(await compile(input,options)).toString()}}});var mdx_plugin_exports={};__export(mdx_plugin_exports,{mdxPlugin:()=>mdxPlugin});async function mdxPlugin(options){let filter=createFilter(/\.mdx$/),{presets}=options,mdxPluginOptions=(await presets.apply("options",{}))?.mdxPluginOptions,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default;return{name:"storybook:mdx-plugin",enforce:"pre",async transform(src,id){if(!filter(id))return;let mdxLoaderOptions=await presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:(0,import_node_path2.join)((0,import_node_path2.dirname)(require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions?.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});return{code:String(await compile2(src,mdxLoaderOptions)),map:null}}}}var import_node_path2,init_mdx_plugin=__esm({"src/plugins/mdx-plugin.ts"(){"use strict";import_node_path2=require("path");init_es();init_compiler()}});var preset_exports={};__export(preset_exports,{addons:()=>addons,docs:()=>docsX,optimizeViteDeps:()=>optimizeViteDeps,resolvedReact:()=>resolvedReact,viteFinal:()=>viteFinal,webpack:()=>webpackX});module.exports=__toCommonJS(preset_exports);var import_node_path3=require("path"),import_node_logger=require("storybook/internal/node-logger"),getResolvedReact=async options=>{let resolvedReact2=await options.presets.apply("resolvedReact",{});return{react:resolvedReact2.react??(0,import_node_path3.dirname)(require.resolve("react/package.json")),reactDom:resolvedReact2.reactDom??(0,import_node_path3.dirname)(require.resolve("react-dom/package.json")),mdx:resolvedReact2.mdx??(0,import_node_path3.dirname)(require.resolve("@mdx-js/react"))}};async function webpack(webpackConfig={},options){let{module:module2={}}=webpackConfig,{csfPluginOptions={},mdxPluginOptions={}}=options,rehypeSlug2=(await Promise.resolve().then(()=>(init_rehype_slug(),rehype_slug_exports))).default,rehypeExternalLinks2=(await Promise.resolve().then(()=>(init_rehype_external_links(),rehype_external_links_exports))).default,mdxLoaderOptions=await options.presets.apply("mdxLoaderOptions",{...mdxPluginOptions,mdxCompileOptions:{providerImportSource:(0,import_node_path3.join)((0,import_node_path3.dirname)(require.resolve("@storybook/addon-docs/package.json")),"/dist/shims/mdx-react-shim.mjs"),...mdxPluginOptions.mdxCompileOptions,rehypePlugins:[...mdxPluginOptions?.mdxCompileOptions?.rehypePlugins??[],rehypeSlug2,rehypeExternalLinks2]}});import_node_logger.logger.info("Addon-docs: using MDX3");let{react,reactDom,mdx}=await getResolvedReact(options),alias;return Array.isArray(webpackConfig.resolve?.alias)?(alias=[...webpackConfig.resolve?.alias],alias.push({name:"react",alias:react},{name:"react-dom",alias:reactDom},{name:"@mdx-js/react",alias:mdx})):alias={...webpackConfig.resolve?.alias,react,"react-dom":reactDom,"@mdx-js/react":mdx},{...webpackConfig,plugins:[...webpackConfig.plugins||[],...csfPluginOptions?[(await import("@storybook/csf-plugin")).webpack(csfPluginOptions)]:[]],resolve:{...webpackConfig.resolve,alias},module:{...module2,rules:[...module2.rules||[],{test:/\.mdx$/,exclude:/(stories|story)\.mdx$/,use:[{loader:require.resolve("./mdx-loader"),options:mdxLoaderOptions}]}]}}}var docs=docsOptions=>({...docsOptions,defaultName:"Docs",autodocs:"tag"}),addons=[require.resolve("@storybook/react-dom-shim/dist/preset")],viteFinal=async(config,options)=>{let{plugins=[]}=config,{mdxPlugin:mdxPlugin2}=await Promise.resolve().then(()=>(init_mdx_plugin(),mdx_plugin_exports)),{react,reactDom,mdx}=await getResolvedReact(options),themingPath=(0,import_node_path3.dirname)(require.resolve("storybook/theming")),packageDeduplicationPlugin={name:"storybook:package-deduplication",enforce:"pre",config:()=>({resolve:{alias:{react,...(0,import_node_path3.isAbsolute)(reactDom)&&{"react-dom/server":`${reactDom}/server.browser.js`},"react-dom":reactDom,"@mdx-js/react":mdx,"storybook/theming":themingPath}}})};return plugins.unshift(packageDeduplicationPlugin),plugins.unshift(mdxPlugin2(options)),config},webpackX=webpack,docsX=docs,resolvedReact=async existing=>({react:existing?.react??(0,import_node_path3.dirname)(require.resolve("react/package.json")),reactDom:existing?.reactDom??(0,import_node_path3.dirname)(require.resolve("react-dom/package.json")),mdx:existing?.mdx??(0,import_node_path3.dirname)(require.resolve("@mdx-js/react"))}),optimizeViteDeps=["@mdx-js/react","@storybook/addon-docs > acorn-jsx","@storybook/addon-docs","markdown-to-jsx"];0&&(module.exports={addons,docs,optimizeViteDeps,resolvedReact,viteFinal,webpack});
|
package/dist/preview.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_blocks,
|
|
1
|
+
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_react_dom_shim,import_blocks,defaultComponents,ErrorBoundary,DocsRenderer,init_DocsRenderer=__esm({"src/DocsRenderer.tsx"(){"use strict";import_react=__toESM(require("react")),import_react_dom_shim=require("@storybook/react-dom-shim"),import_blocks=require("@storybook/addon-docs/blocks"),defaultComponents={code:import_blocks.CodeOrSourceMdx,a:import_blocks.AnchorMdx,...import_blocks.HeadersMdx},ErrorBoundary=class extends import_react.Component{constructor(){super(...arguments);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:import_react.default.createElement(import_react.default.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=import_blocks.Docs;return new Promise((resolve,reject)=>{import("@mdx-js/react").then(({MDXProvider})=>(0,import_react_dom_shim.renderElement)(import_react.default.createElement(ErrorBoundary,{showException:reject,key:Math.random()},import_react.default.createElement(MDXProvider,{components},import_react.default.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve())})},this.unmount=element=>{(0,import_react_dom_shim.unmountElement)(element)}}}}});var preview_exports={};__export(preview_exports,{parameters:()=>parameters});module.exports=__toCommonJS(preview_exports);var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer2}=await Promise.resolve().then(()=>(init_DocsRenderer(),DocsRenderer_exports));return new DocsRenderer2},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};0&&(module.exports={parameters});
|
package/dist/preview.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { parameters } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { parameters } from './chunk-GFTNOJSG.mjs';
|
|
2
|
+
import './chunk-QUZPS4B6.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.19",
|
|
4
4
|
"description": "Document component usage and properties in Markdown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
124
|
"@mdx-js/react": "^3.0.0",
|
|
125
|
-
"@storybook/
|
|
126
|
-
"@storybook/
|
|
127
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
125
|
+
"@storybook/csf-plugin": "9.0.0-alpha.19",
|
|
126
|
+
"@storybook/icons": "^1.2.12",
|
|
127
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.19",
|
|
128
128
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
129
129
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
130
130
|
"ts-dedent": "^2.0.0"
|
|
@@ -132,16 +132,26 @@
|
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@mdx-js/mdx": "^3.0.0",
|
|
134
134
|
"@rollup/pluginutils": "^5.0.2",
|
|
135
|
+
"@types/color-convert": "^2.0.0",
|
|
135
136
|
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
137
|
+
"color-convert": "^2.0.1",
|
|
138
|
+
"es-toolkit": "^1.22.0",
|
|
139
|
+
"github-slugger": "^2.0.0",
|
|
140
|
+
"markdown-to-jsx": "^7.7.2",
|
|
141
|
+
"memoizerific": "^1.11.3",
|
|
142
|
+
"polished": "^4.2.2",
|
|
136
143
|
"react": "^18.2.0",
|
|
144
|
+
"react-colorful": "^5.1.2",
|
|
137
145
|
"react-dom": "^18.2.0",
|
|
138
146
|
"rehype-external-links": "^3.0.0",
|
|
139
147
|
"rehype-slug": "^6.0.0",
|
|
148
|
+
"telejson": "^7.2.0",
|
|
149
|
+
"tocbot": "^4.20.1",
|
|
140
150
|
"typescript": "^5.7.3",
|
|
141
151
|
"vite": "^6.2.5"
|
|
142
152
|
},
|
|
143
153
|
"peerDependencies": {
|
|
144
|
-
"storybook": "^9.0.0-alpha.
|
|
154
|
+
"storybook": "^9.0.0-alpha.19"
|
|
145
155
|
},
|
|
146
156
|
"publishConfig": {
|
|
147
157
|
"access": "public"
|
|
@@ -153,8 +163,7 @@
|
|
|
153
163
|
"./src/preview.ts",
|
|
154
164
|
"./src/blocks.ts",
|
|
155
165
|
"./src/shims/mdx-react-shim.ts",
|
|
156
|
-
"./src/mdx-loader.ts"
|
|
157
|
-
"./src/manager.tsx"
|
|
166
|
+
"./src/mdx-loader.ts"
|
|
158
167
|
],
|
|
159
168
|
"managerEntries": [
|
|
160
169
|
"./src/manager.tsx"
|
package/dist/chunk-H6MOWX77.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));
|
|
2
|
-
|
|
3
|
-
export { __commonJS, __export, __toESM };
|
package/dist/manager.d.ts
DELETED