Assist_Design/apps/portal/public/storybook/assets/DocsRenderer-CFRXHY34-CPSpsf6k.js

576 lines
867 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Color-YHDXOIA2-BJn0-NzM.js","./index-JhL3uwfD.js","./iframe-Ce-ZSiNJ.js","./jsx-runtime-D_zvdyIk.js","./client-B9ae35Ip.js","./index-DgH-xKnr.js","./index-DrFu-skq.js","./index-B2V9nFGU.js"])))=>i.map(i=>d[i]);
var E9=Object.defineProperty;var C9=(e,t,r)=>t in e?E9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>C9(e,typeof t!="symbol"?t+"":t,r);import{D as t3,_ as X1,z as x9}from"./iframe-Ce-ZSiNJ.js";import{r as l,g as S9,R as y,o as r3}from"./index-JhL3uwfD.js";import{j as O}from"./jsx-runtime-D_zvdyIk.js";import{r as F9,c as A9}from"./client-B9ae35Ip.js";import{y as Th,g as xu}from"./index-DgH-xKnr.js";import{d as k9}from"./index-DrFu-skq.js";var _9=Object.create,n3=Object.defineProperty,B9=Object.getOwnPropertyDescriptor,a3=Object.getOwnPropertyNames,R9=Object.getPrototypeOf,I9=Object.prototype.hasOwnProperty,Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),yn=(e,t)=>function(){return t||(0,e[a3(e)[0]])((t={exports:{}}).exports,t),t.exports},z9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of a3(t))!I9.call(e,a)&&a!==r&&n3(e,a,{get:()=>t[a],enumerable:!(n=B9(t,a))||n.enumerable});return e},Q1=(e,t,r)=>(r=e!=null?_9(R9(e)):{},z9(t||!e||!e.__esModule?n3(r,"default",{value:e,enumerable:!0}):r,e));function T9(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),m()},f=null,h=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,d()},t)},p=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{p(),a=void 0,o=null},g=()=>{p(),c()},v=function(...b){if(r!=null&&r.aborted)return;a=this,o=b;let C=f==null;h(),i&&C&&c()};return v.schedule=h,v.cancel=m,v.flush=g,r==null||r.addEventListener("abort",m,{once:!0}),v}function vV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,f=T9(function(...m){c=e.apply(this,m),d=null},t,{signal:n,edges:s}),h=function(...m){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,m),d=Date.now(),f.cancel(),f.schedule(),c}return f.apply(this,m),c},p=()=>(f.flush(),c);return h.cancel=f.cancel,h.flush=p,h}function L9(e){return Array.from(new Set(e))}function M9(e,t){let r={},n=Object.entries(e);for(let a=0;a<n.length;a++){let[o,i]=n[a];t(i,o)&&(r[o]=i)}return r}function O9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function P9(e){return e==null||typeof e!="object"&&typeof e!="function"}function Lh(e){return Gn(e)}function Gn(e,t=new Map){if(P9(e))return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Gn(e[n],t);return Object.prototype.hasOwnProperty.call(e,"index")&&(r.index=e.index),Object.prototype.hasOwnProperty.call(e,"input")&&(r.input=e.input),r}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let r=new RegExp(e.source,e.flags);return r.lastIndex=e.lastIndex,r}if(e instanceof Map){let r=new Map;t.set(e,r);for(let[n,a]of e.entries())r.set(n,Gn(a,t));return r}if(e instanceof Set){let r=new Set;t.set(e,r);for(let n of e.values())r.add(Gn(n,t));return r}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(O9(e)){let r=new(Object.getPrototypeOf(e)).constructor(e.length);t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Gn(e[n],t);return r}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let r=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return t.set(e,r),Xr(r,e,t),r}if(typeof File<"u"&&e instanceof File){let r=new File([e],e.name,{type:e.type});return t.set(e,r),Xr(r,e,t),r}if(e instanceof Blob){let r=new Blob([e],{type:e.type});return t.set(e,r),Xr(r,e,t),r}if(e instanceof Error){let r=new e.constructor;return t.set(e,r),r.message=e.message,r.name=e.name,r.stack=e.stack,r.cause=e.cause,Xr(r,e,t),r}if(typeof e=="object"&&e!==null){let r={};return t.set(e,r),Xr(r,e,t),r}return e}function Xr(e,t,r){let n=Objec
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,9:`Please provide a number of steps to the modularScale helper.
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,16:`You must provide a template to this method.
`,17:`You passed an unsupported selector state to this method.
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,25:`fontFace expects localFonts to be an array.
`,26:`fontFace expects fileFormats to be an array.
`,27:`radialGradient requries at least 2 color-stops to properly render.
`,28:`Please supply a filename to retinaImage() as the first argument.
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,34:`borderRadius expects a radius value as a string or number as the second argument.
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,36:`Property must be a string value.
`,37:`Syntax Error at %s.
`,38:`Formula contains a function that needs parentheses at %s.
`,39:`Formula is missing closing parenthesis at %s.
`,40:`Formula has too many closing parentheses at %s.
`,41:`All values in a formula must have the same unit or be unitless.
`,42:`Please provide a number of steps to the modularScale helper.
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,53:`fontFace expects localFonts to be an array.
`,54:`fontFace expects fileFormats to be an array.
`,55:`fontFace expects a name of a font-family.
`,56:`linearGradient requries at least 2 color-stops to properly render.
`,57:`radialGradient requries at least 2 color-stops to properly render.
`,58:`Please supply a filename to retinaImage() as the first argument.
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
`,62:`borderRadius expects a radius value as a string or number as the second argument.
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,67:`You must provide a template to this method.
`,68:`You passed an unsupported selector state to this method.
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,73:`Please provide a valid CSS variable.
`,74:`CSS variable not found and no default was provided.
`,75:`important requires a valid style object, got a %s instead.
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
`,78:`base must be set in "px" or "%" but you set it in "%s".
`};function P3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=[],o;for(o=1;o<t.length;o+=1)a.push(t[o]);return a.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}B(P3,"format");var Lt=(function(e){L3(t,e);function t(r){for(var n,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return n=e.call(this,P3.apply(void 0,[Tx[r]].concat(o)))||this,T3(n)}return B(t,"PolishedError"),t})(kl(Error));function tl(e){return Math.round(e*255)}B(tl,"colorToInt");function N3(e,t,r){return tl(e)+","+tl(t)+","+tl(r)}B(N3,"convertToInt");function fa(e,t,r,n){if(n===void 0&&(n=N3),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),s=0,c=0,d=0;a>=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var f=r-o/2,h=s+f,p=c+f,m=d+f;return n(h,p,m)}B(fa,"hslToRgb");var Uh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function $3(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Uh[t]?"#"+Uh[t]:e}B($3,"nameToHex");var Lx=/^#[a-fA-F0-9]{6}$/,Mx=/^#[a-fA-F0-9]{8}$/,Ox=/^#[a-fA-F0-9]{3}$/,Px=/^#[a-fA-F0-9]{4}$/,Fu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Nx=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,X3=wt`
0%, 100% { opacity: 1; }
50% { opacity: .4; }
`,fS=wt`
0% { transform: translateY(1px); }
25% { transform: translateY(0px); }
50% { transform: translateY(-3px); }
100% { transform: translateY(1px); }
`,hS=wt`
0%, 100% { transform:translate3d(0,0,0); }
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
37.5%, 87.5% { transform: translate3d(4px,0,0); }
`,mS=Ss`
animation: ${X3} 1.5s ease-in-out infinite;
color: transparent;
cursor: progress;
`,gS=Ss`
transition: all 150ms ease-out;
transform: translate3d(0, 0, 0);
&:hover {
transform: translate3d(0, -2px, 0);
}
&:active {
transform: translate3d(0, 0, 0);
}
`,vS={rotate360:pS,glow:X3,float:fS,jiggle:hS,inlineGlow:mS,hoverable:gS},yS={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},bS={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},wS=B(e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:lS(n)}),{}),"convertColors"),DS=B(({colors:e,mono:t})=>{let r=wS(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},"create"
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(s){return s.replace(o,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,c){var d=i.match(/(?:^|\n)( *)$/),f=d?d[1]:"",h=s;typeof s=="string"&&s.includes(`
`)&&(h=String(s).split(`
`).map(function(p,m){return m===0?p:""+f+p}).join(`
`)),i+=h+n[c+1]}),i}B(ey,"dedent");var BS=B(e=>{if(!e)return Q0(Bl);let t=_S(Bl,e);return Object.keys(t).length&&SS.warn(ey`
Your theme is missing properties, you should update your theme!
theme-data missing:
`,t),Q0(e)},"ensure"),ed="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Fs=F9();const ty=S9(Fs);var RS=Object.create,As=Object.defineProperty,IS=Object.getOwnPropertyDescriptor,zS=Object.getOwnPropertyNames,TS=Object.getPrototypeOf,LS=Object.prototype.hasOwnProperty,u=(e,t)=>As(e,"name",{value:t,configurable:!0}),Ci=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),z=(e,t)=>()=>(e&&(t=e(e=0)),t),U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Aa=(e,t)=>{for(var r in t)As(e,r,{get:t[r],enumerable:!0})},MS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zS(t))!LS.call(e,a)&&a!==r&&As(e,a,{get:()=>t[a],enumerable:!(n=IS(t,a))||n.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?RS(TS(e)):{},MS(t||!e||!e.__esModule?As(r,"default",{value:e,enumerable:!0}):r,e));function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}var ks=z(()=>{u(ze,"_extends")});function ry(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var OS=z(()=>{u(ry,"_assertThisInitialized")});function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ma(e,t)}var gp=z(()=>{u(ma,"_setPrototypeOf")});function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rl(e)}var PS=z(()=>{u(Rl,"_getPrototypeOf")}),_s,vp=z(()=>{_s=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})()}),Bs=U((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return u(function r(n,a,o){function i(d,f){if(!a[d]){if(!n[d]){var h=typeof Ci=="function"&&Ci;if(!f&&h)return h(d,!0);if(s)return s(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(g){var v=n[d][1][g];return i(v||g)},m,m.exports,r,n,a,o)}return a[d].exports}u(i,"s");for(var s=typeof Ci=="function"&&Ci,c=0;c<o.length;c++)i(o[c]);return i},"e")({1:[function(r,n,a){n.exports=function(o){if(typeof Map!="function"||o){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}u(o,"Similar"),o.prototype.get=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(s=this.indexOf(i),s>=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c<this.size;c++)i.call(s||this,this.list[c].val,this.list[c].key,this)},o.prototype.indexOf=function(i){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,i))return s;return-1},o.prototype.isEqual=function(i,s){return i===s||i!==i&&s!==s},n.exports=o},{}],3:[function(r,n,a){var o=r("ma
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var VS=z(()=>{u(sy,"_nonIterableSpread")});function uy(e){return oy(e)||iy(e)||ly(e)||sy()}var US=z(()=>{$S(),HS(),jS(),VS(),u(uy,"_toConsumableArray")});function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}var cy=z(()=>{u(ga,"_typeof")});function dy(e,t){if(ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qS=z(()=>{cy(),u(dy,"toPrimitive")});function py(e){var t=dy(e,"string");return ga(t)=="symbol"?t:t+""}var WS=z(()=>{cy(),qS(),u(py,"toPropertyKey")});function bp(e,t,r){return(t=py(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fy=z(()=>{WS(),u(bp,"_defineProperty")});function td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?td(Object(r),!0).forEach(function(n){bp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hy(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],"
`))})}function Ey(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,a=n===void 0?{float:"left",paddingRight:"10px"}:n,o=e.numberStyle,i=o===void 0?{}:o,s=e.startingLineNumber;return y.createElement("code",{style:Object.assign({},r,a)},Dy({lines:t.replace(/\n$/,"").split(`
`),style:i,startingLineNumber:s}))}function Cy(e){return"".concat(e.toString().length,".25em")}function wp(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Dp(e,t,r){var n={display:"inline-block",minWidth:Cy(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,o=ut(ut({},n),a);return o}function Ao(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=i===void 0?{}:i,c=e.className,d=c===void 0?[]:c,f=e.showLineNumbers,h=e.wrapLongLines,p=typeof s=="function"?s(r):s;if(p.className=d,r&&o){var m=Dp(n,r,a);t.unshift(wp(r,m))}return h&f&&(p.style=ut(ut({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function Ep(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var a=e[n];if(a.type==="text")r.push(Ao({children:[a],className:uy(new Set(t))}));else if(a.children){var o=t.concat(a.properties.className);Ep(a.children,o).forEach(function(i){return r.push(i)})}}return r}function xy(e,t,r,n,a,o,i,s,c){var d,f=Ep(e.value),h=[],p=-1,m=0;function g(x,S){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ao({children:x,lineNumber:S,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:F,showLineNumbers:n,wrapLongLines:c})}u(g,"createWrappedLine");function v(x,S){if(n&&S&&a){var F=Dp(s,S,i);x.unshift(wp(S,F))}return x}u(v,"createUnwrappedLine");function b(x,S){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||F.length>0?g(x,S,F):v(x,S)}u(b,"createLine");for(var C=u(function(){var x=f[m],S=x.children[0].value,F=wy(S);if(F){var A=S.split(`
`);A.forEach(function(_,R){var I=n&&h.length+o,T={type:"text",value:"".concat(_,`
`)};if(R===0){var L=f.slice(p+1,m).concat(Ao({children:[T],className:x.properties.className})),P=b(L,I);h.push(P)}else if(R===A.length-1){var M=f[m+1]&&f[m+1].children&&f[m+1].children[0],N={type:"text",value:"".concat(_)};if(M){var q=Ao({children:[N],className:x.properties.className});f.splice(m+1,0,q)}else{var W=[N],G=b(W,I,x.properties.className);h.push(G)}}else{var Z=[T],te=b(Z,I,x.properties.className);h.push(te)}}),p=m}m++},"_loop");m<f.length;)C();if(p!==f.length-1){var E=f.slice(p+1,f.length);if(E&&E.length){var D=n&&h.length+o,w=b(E,D);h.push(w)}}return t?h:(d=[]).concat.apply(d,h)}function Sy(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(a,o){return Is({node:a,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(o)})})}function Cp(e){return e&&typeof e.highlightAuto<"u"}function Fy(e){var t=e.astGenerator,r=e.language,n=e.code,a=e.defaultCodeValue;if(Cp(t)){var o=by(t,r);return r==="text"?{value:a,language:"text"}:o?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:a}}catch{return{value:a}}}function Ay(e,t){return u(function(r){var n=r.language,a=r.children,o=r.style,i=o===void 0?t:o,s=r.customStyle,c=s===void 0?{}:s,d=r.codeTagProps,f=d===void 0?{className:n?"language-".concat(n):void 0,style:ut(ut({},i['code[class*="language-"]']),i['code[class*="language-'.concat(n,'"]')])}:d,h=r.useInlineStyles,p=h===void 0?!0:h,m=r.showLineNumbers,g=m===void 0?!1:m,v=r.showInlineLineNumbers,b=v===void 0?!0:v,C=r.startingLineNumber,E=C===void 0?1:C,D=r.lineNumberContainerStyle,w=r.lineNumberStyle,x=w===void 0?{}:w,S=r.wrapLines,F=r.wrapLongLines,A=F===void 0?!1:F,_=r.lineProps,R=_===void 0?{}:_,I=r.renderer,T=r.PreTag,L=T===void 0?"pre":T,P=r.CodeTag,M=P===void 0?"code":P,N=r.code,q=N===void 0?(Array.isArray(a)?a[0]:a)||"":N,W=r.astGenerator,G=ny(r,ky);W=W||e;var Z=g?y.createElement(Ey,{containerStyle:D,codeStyle:f.style||{},numberStyle:x,startingLineNumber:E,codeString:q}):null,te=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},ne=Cp(W)?"hljs":"prismjs",X=p?Object.assign({},G,{style:Object.assign({},te,c)}):Object.assign({},G,{className:G.className?"".concat(ne," ").concat(G.className):ne,style:Object.assign({},c)});if(A?f.style=ut(ut({},f.style),{},{whiteSpace:"pre-wrap"}):f.style=ut(ut({},f.style),{},{whiteSpace:"pre"}),!W)return y.createElement(L,X,Z,y.createElement(M,f,q));(S===void 0&&I||A)&&(S=!0),I=I||Sy;var le=[{type:"text",value:q}],H=Fy({astGenerator:W,language:n,code:q,defaultCodeValue:le});H.language===null&&(H.value=le);var J=H.value.length+E,re=xy(H,S,R,g,b,E,J,x,A);return y.createElement(L,X,y.createElement(M,f,!b&&Z,I({rows:re,stylesheet:i,useInlineStyles:p})))},"SyntaxHighlighter")}var ky,_y,KS=z(()=>{NS(),US(),fy(),yy(),GS(),ky=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],u(nd,"ownKeys"),u(ut,"_objectSpread"),_y=/\n/g,u(wy,"getNewLines"),u(Dy,"getAllLineNumbers"),u(Ey,"AllLineNumbers"),u(Cy,"getEmWidthOfNumber"),u(wp,"getInlineLineNumber"),u(Dp,"assembleLineNumberStyles"),u(Ao,"createLineElement"),u(Ep,"flattenCodeTree"),u(xy,"processLines"),u(Sy,"defaultRenderer"),u(Cp,"isHighlightJs"),u(Fy,"getCodeTree"),u(Ay,"default")}),YS=U((e,t)=>{t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var a={},o=0;o<arguments.length;o++){var i=arguments[o];for(var s in i)r.call(i,s)&&(a[s]=i[s])}return a}u(n,"extend")}),By=U((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(a,o,i){this.property=a,this.normal=o,i&&(this.space=i)}u(n,"Schema")}),ZS=U((e,t)=>{var r=YS(),n=By();t.exports=a;function a(o){for(var i=o.length,s=[],c=[],d=-1,f,h;++d<i;)f=o[d],s.push(f.property),c.push(f.normal),h=f.space;return new n(r.apply(null,s),r.apply(null,c),h)}u(a,"merge")}),xp=U((e,t)=>{t.exports=r;function r(n){return n.toLowerCase()}u(r,"normalize")}),Ry=U((e,t)=
[data-radix-scroll-area-viewport] {
scrollbar-width: none;
-ms-overflow-style: none;
-webkit-overflow-scrolling: touch;
}
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
display: none;
}
:where([data-radix-scroll-area-viewport]) {
display: flex;
flex-direction: column;
align-items: stretch;
}
:where([data-radix-scroll-area-content]) {
flex-grow: 1;
}
`},nonce:o}),O.jsx($n.div,{"data-radix-scroll-area-viewport":"",...i,asChild:a,ref:d,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:dm({asChild:a,children:n},f=>O.jsx("div",{"data-radix-scroll-area-content":"",ref:s.onContentChange,style:{minWidth:s.scrollbarXEnabled?"fit-content":void 0},children:f}))})]})}),Lu.displayName=Tu,at="ScrollAreaScrollbar",Mu=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Ve(at,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s=e.orientation==="horizontal";return l.useEffect(()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)}),[s,o,i]),a.type==="hover"?O.jsx(fm,{...n,ref:t,forceMount:r}):a.type==="scroll"?O.jsx(hm,{...n,ref:t,forceMount:r}):a.type==="auto"?O.jsx(Ou,{...n,ref:t,forceMount:r}):a.type==="always"?O.jsx(ki,{...n,ref:t}):null}),Mu.displayName=at,fm=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Ve(at,e.__scopeScrollArea),[o,i]=l.useState(!1);return l.useEffect(()=>{let s=a.scrollArea,c=0;if(s){let d=u(()=>{window.clearTimeout(c),i(!0)},"handlePointerEnter"),f=u(()=>{c=window.setTimeout(()=>i(!1),a.scrollHideDelay)},"handlePointerLeave");return s.addEventListener("pointerenter",d),s.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",d),s.removeEventListener("pointerleave",f)}}},[a.scrollArea,a.scrollHideDelay]),O.jsx(Kn,{present:r||o,children:O.jsx(Ou,{"data-state":o?"visible":"hidden",...n,ref:t})})}),hm=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Ve(at,e.__scopeScrollArea),o=e.orientation==="horizontal",i=qa(()=>c("SCROLL_END"),100),[s,c]=um("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(s==="idle"){let d=window.setTimeout(()=>c("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,a.scrollHideDelay,c]),l.useEffect(()=>{let d=a.viewport,f=o?"scrollLeft":"scrollTop";if(d){let h=d[f],p=u(()=>{let m=d[f];h!==m&&(c("SCROLL"),i()),h=m},"handleScroll");return d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,o,c,i]),O.jsx(Kn,{present:r||s!=="hidden",children:O.jsx(ki,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:mr(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:mr(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Ou=l.forwardRef((e,t)=>{let r=Ve(at,e.__scopeScrollArea),{forceMount:n,...a}=e,[o,i]=l.useState(!1),s=e.orientation==="horizontal",c=qa(()=>{if(r.viewport){let d=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?d:f)}},10);return jr(r.viewport,c),jr(r.content,c),O.jsx(Kn,{present:n||o,children:O.jsx(ki,{"data-state":o?"visible":"hidden",...a,ref:t})})}),ki=l.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,a=Ve(at,e.__scopeScrollArea),o=l.useRef(null),i=l.useRef(0),[s,c]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=od(s.viewport,s.content),f={...n,sizes:s,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:u(p=>o.current=p,"onThumbChange"),onThumbPointerUp:u(()=>i.current=0,"onThumbPointerUp"),onThumbPointerDown:u(p=>i.current=p,"onThumbPointerDown")};function h(p,m){return cm(p,i.current,s,m)}return u(h,"getScrollPosition"),r==="horizontal"?O.jsx(mm,{...f,ref:t,onThumbPositionChange:u(()=>{if(a.viewport&&o.current){let p=a.viewport.scrollLeft,m=Bu(p,s,a.dir);o.current.style.transform=`translate3d(${m}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:u(p=>{a.viewport&&(a.viewport.scrollLeft=p)},"onWheelScroll"),onDragScroll:u(p=>{a.viewport&&(a.viewport.scrollLeft=h(p,a.dir))},"onDragScroll")}):r==="vertical"?O.jsx(gm,{...f,ref:t,onThumbPositionChange:u(()=>{if(a.viewport&&o.current){let p=a.viewport.scrollTop,m=Bu(p,s);o.current.style.transform=`translate3d(0, ${m}px, 0)`}},"onThumbPositionChange"),onWheelScroll:u(p=>{a.viewport&&(a.viewport.scrollTop=p)},"onWhee
Expected it to be 'string' or 'object'.`;if(rf(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=g7([...tf].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}function Dt(e){return Br(e),{type:Nl,contents:e}}function Rp(e,t){return Br(t),{type:$l,contents:t,n:e}}function pe(e,t={}){return Br(e),Hs(t.expandedStates,!0),{type:Hl,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pb(e){return Rp(Number.NEGATIVE_INFINITY,e)}function fb(e){return Rp({type:"root"},e)}function Ip(e){return Hs(e),{type:jl,parts:e}}function Po(e,t="",r={}){return Br(e),t!==""&&Br(t),{type:Vl,breakContents:e,flatContents:t,groupId:r.groupId}}function hb(e,t){return Br(e),{type:Ul,contents:e,groupId:t.groupId,negate:t.negate}}function bn(e,t){Br(e),Hs(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function zp(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let i=a(o);return r.set(o,i),i}function a(o){switch(rf(o)){case ef:return t(o.map(n));case jl:return t({...o,parts:o.parts.map(n)});case Vl:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case Hl:{let{expandedStates:i,contents:s}=o;return i?(i=i.map(n),s=i[0]):s=n(s),t({...o,contents:s,expandedStates:i})}case $l:case Nl:case Ul:case yd:case gd:return t({...o,contents:n(o.contents)});case Qp:case hd:case md:case vd:case Kr:case il:return t(o);default:throw new v7(o)}}}function Ze(e,t=y7){return zp(e,r=>typeof r=="string"?bn(t,r.split(`
`)):r)}function Mm(e,t){let r=t===!0||t===go?go:bd,n=r===go?bd:go,a=0,o=0;for(let i of e)i===r?a++:i===n&&o++;return a>o?n:r}function Om(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Pm(e){return(e==null?void 0:e.type)==="front-matter"}function qu(e,t){var r;if(e.type==="text"||e.type==="comment"||ii(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=e.parameters)!=null&&r.children)for(let n of t.parameters.children)D7.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.type==="angularLetDeclarationInitializer"&&delete t.value}async function Nm(e,t){if(e.language==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return fb([e.startDelimiter,e.explicitLanguage,ae,n,n?ae:"",e.endDelimiter])}}function ti(e,t=!0){return[Dt([Ee,e]),t?Ee:""]}function wn(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function Je(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(i,s)=>{a=n(i,s)});let o=await t(e,r,t);return a?pe(o):ti(o)}function $m(e,t,r,n){let{node:a}=r,o=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/u.test(o)?"":Je(o,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},wn)}function ld(e,t){if(!t)return;let r=x7(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>r.endsWith(a)))}function mb(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function Hm(e,t){let r=e.plugins.flatMap(a=>a.languages??[]),n=mb(r,t.language)??ld(r,t.physicalFile)??ld(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}function jm(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Tp(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||dn(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Ms(e,t)&&!jt(e)&&e.type!=="interpolation")}function ri(e){return e.type==="attribute"||!e.parent||!e.prev?!1:gb(e.prev)}function gb(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function qe(e){return e.type==="text"||e.type==="comment"}function jt(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||ya(e)&&(e.name==="script"||e.name==="style"))}function vb(e){return e.children&&!jt(e)}function yb(e){return jt(e)||e.type==="interpolation"||Lp(e)}function Lp(e){return jp(e).startsWith("pre")}function bb(e,t){var r,n;let a=o();if(a&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return a;function o(){return ii(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:dn(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||dn(e)&&e.parent||jt(e.parent)||ni(e.parent,t)||!kb(e.parent.cssDisplay))||e.prev&&!Rb(e.prev.cssDisplay))}}function wb(e,t){return ii(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:dn(e.p
`)){if(r.length===0)continue;let n=dt.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function Vp(e,t=Lb(e)){return t===0?e:e.split(`
`).map(r=>r.slice(t)).join(`
`)}function Up(e){return Pe(!1,Pe(!1,e,"&apos;","'"),"&quot;",'"')}function sr(e){return Up(e.value)}function ni(e,t){return Dn(e,t)&&!B7.has(e.fullName)}function Dn(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function Ms(e,t){return Dn(e,t)&&(ni(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Mb(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Ob(e,t){let r=e.parent;if(!Dn(r,t))return!1;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"}function qp(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Ze(t):Ze(Vp(nf(t)),ae):bn(ve,dt.split(t))}function Wp(e,t){return Dn(e,t)&&e.name==="script"}async function Pb(e,t){let r=[];for(let[n,a]of e.split(af).entries())if(n%2===0)r.push(Ze(a));else try{r.push(pe(["{{",Dt([ve,await Je(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),ve,"}}"]))}catch{r.push("{{",Ze(a),"}}")}return r}function Bi({parser:e}){return(t,r,n)=>Je(sr(n.node),t,{parser:e},wn)}function Vm(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return R7;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return I7;if(n.startsWith("*"))return z7;let a=sr(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>ti(Ip(qp(r,a.trim())),!a.includes("@@"));if(af.test(a))return o=>Pb(a,o)}function Um(e,t){let{node:r}=e,n=sr(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}function ud(e){return e===" "||e===`
`||e==="\f"||e==="\r"||e===" "}function qm(e){let t=e.length,r,n,a,o,i,s=0,c;function d(m){let g,v=m.exec(e.substring(s));if(v)return[g]=v,s+=g.length,g}u(d,"p");let f=[];for(;;){if(d(O7),s>=t){if(f.length===0)throw new Error("Must contain one or more image candidate strings.");return f}c=s,r=d(P7),n=[],r.slice(-1)===","?(r=r.replace(N7,""),p()):h()}function h(){for(d(M7),a="",o="in descriptor";;){if(i=e.charAt(s),o==="in descriptor")if(ud(i))a&&(n.push(a),a="",o="after descriptor");else if(i===","){s+=1,a&&n.push(a),p();return}else if(i==="(")a+=i,o="in parens";else if(i===""){a&&n.push(a),p();return}else a+=i;else if(o==="in parens")if(i===")")a+=i,o="in descriptor";else if(i===""){n.push(a),p();return}else a+=i;else if(o==="after descriptor"&&!ud(i))if(i===""){p();return}else o="in descriptor",s-=1;s+=1}}u(h,"f");function p(){let m=!1,g,v,b,C,E={},D,w,x,S,F;for(C=0;C<n.length;C++)D=n[C],w=D[D.length-1],x=D.substring(0,D.length-1),S=parseInt(x,10),F=parseFloat(x),wd.test(x)&&w==="w"?((g||v)&&(m=!0),S===0?m=!0:g=S):$7.test(x)&&w==="x"?((g||v||b)&&(m=!0),F<0?m=!0:v=F):wd.test(x)&&w==="h"?((b||v)&&(m=!0),S===0?m=!0:b=S):m=!0;if(!m)E.source={value:r,startOffset:c},g&&(E.width={value:g}),v&&(E.density={value:v}),b&&(E.height={value:b}),f.push(E);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${D}".`)}u(p,"d")}function Wm(e){if(e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return()=>Nb(sr(e.node))}function Nb(e){let t=H7(e),r=j7.filter(f=>t.some(h=>Object.prototype.hasOwnProperty.call(h,f)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,a=Dd[n],o=t.map(f=>f.source.value),i=Math.max(...o.map(f=>f.length)),s=t.map(f=>f[n]?String(f[n].value):""),c=s.map(f=>{let h=f.indexOf(".");return h===-1?f.length:h}),d=Math.max(...c);return ti(bn([",",ve],o.map((f,h)=>{let p=[f],m=s[h];if(m){let g=i-f.length+1,v=d-c[h],b=" ".repeat(g+v);p.push(Po(b," "),m+a)}return p})))}function $b(e,t){let{node:r}=e,n=sr(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async a=>ti(await a(n,{parser:"css",__isHTMLStyleAttribute:!0}))}function Gm(e,t){let{root:r}=e;return ll.has(r)||ll.set(r,r.children.some(n=>Wp(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ll.get(r)}function Hb(e,t,r){let{node:n}=r,a=sr(n);return Je(`type T<${a}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},wn)}function jb(e,t,{parseWithTs:r}){return Je(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function Vb(e,t,r,n){let a=sr(r.node),{left:o,operator:i,right:s}=Ub(a),c=js(r,n);return[pe(await Je(`function _(${o}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",i," ",await Je(s,e,{parser:c?"__ts_expression":"__js_expression"})]}function Ub(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,a=e.match(t);if(!a)return;let o={};if(o.for=a[3].trim(),!o.for)return;let i=Pe(!1,a[1].trim(),n,""),s=i.match(r);s?(o.alias=i.replace(r,""),o.iterator1=s[1].trim(),s[2]&&(o.iterator2=s[2].trim())):o.alias=i;let c=[o.alias,o.iterator1,o.iterator2];if(!c.some((d,f)=>!d&&(f===0||c.slice(f+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:a[2],right:o.for}}function Km(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return Vb;if(n==="generic"&&Wp(r.parent,t))return Hb;let a=sr(r),o=js(e,t);if(Mb(r)||Ob(r,t))return i=>jb(a,i,{parseWithTs:o});if(n.startsWith("@")||n.startsWith("v-on:"))return i=>qb(a,i,{parseWithTs:o});if(n.startsWith(":")||n.startsWith("v-bind:"))return i=>Wb(a,i,{parseWithTs:o});if(n.startsWith("v-"))return i=>Gp(a,i,{parseWithTs:o})}async function qb(e,t,{parseWithTs:r}){var n;try{return await Gp(e,t,{parseWithTs:r})}catch(a){if(((n=a.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw a}return Je(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},wn)}function Wb(e,t,{parseWithTs:r}){return Je(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},wn)}function Gp(e,t,{pars
`+e}function Yp(e){let t=Ba(e);return e.type==="element"&&!e.endSourceSpan&&Vs(e.children)?Math.max(t,Yp($o(!1,e.children,-1))):t}function jn(e,t,r){let n=e.node;if(ri(n)){let a=Yp(n);return[_r(n,t),Ze(dt.trimEnd(t.originalText.slice(_a(n)+(n.prev&&ai(n.prev)?Ps(n).length:0),a-(n.next&&kr(n.next)?Ra(n,t).length:0)))),Ar(n,t)]}return r()}function fo(e,t){return qe(e)&&qe(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?ol(t)?ae:ve:"":ol(t)?ae:Ee:ai(e)&&(ri(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&kr(t)?"":!t.isLeadingSpaceSensitive||ol(t)||kr(t)&&e.lastChild&&va(e.lastChild)&&e.lastChild.lastChild&&va(e.lastChild.lastChild)?ae:t.hasLeadingSpaces?ve:Ee}function $s(e,t,r){let{node:n}=e;if(Mp(n))return[Qn,...e.map(o=>{let i=o.node,s=i.prev?fo(i.prev,i):"";return[s?[s,po(i.prev)?ae:""]:"",jn(o,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map((o,i)=>{let s=o.node;if(qe(s)){if(s.prev&&qe(s.prev)){let g=fo(s.prev,s);if(g)return po(s.prev)?[ae,ae,jn(o,t,r)]:[g,jn(o,t,r)]}return jn(o,t,r)}let c=[],d=[],f=[],h=[],p=s.prev?fo(s.prev,s):"",m=s.next?fo(s,s.next):"";return p&&(po(s.prev)?c.push(ae,ae):p===ae?c.push(ae):qe(s.prev)?d.push(p):d.push(Po("",Ee,{groupId:a[i-1]}))),m&&(po(s)?qe(s.next)&&h.push(ae,ae):m===ae?qe(s.next)&&h.push(ae):f.push(m)),[...c,pe([...d,pe([jn(o,t,r),...f],{id:a[i]})]),...h]},"children")}function t7(e,t,r){let{node:n}=e,a=[];r7(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",pe(r("parameters")),")"),a.push(" {");let o=Zp(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(Dt([ae,$s(e,t,r)])),o&&a.push(ae,"}")):o&&a.push("}"),pe(a,{shouldBreak:!0})}function Zp(e){var t,r;return!(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=G7.get(e.name))!=null&&r.has(e.next.name))}function r7(e){let{previous:t}=e;return(t==null?void 0:t.type)==="angularControlFlowBlock"&&!ri(t)&&!Zp(t)}function n7(e,t,r){return[Dt([Ee,bn([";",ve],e.map(r,"children"))]),Ee]}function a7(e,t,r){let{node:n}=e;return[Jn(n,t),pe([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",Dt([ve,bn(ve,e.map(r,"cases"))])]:"",Ee]),Zn(n,t)]}function o7(e,t,r){let{node:n}=e;return[n.value," {",pe([Dt([Ee,e.map(({node:a})=>a.type==="text"&&!dt.trim(a.value)?"":r(),"expression")]),Ee]),"}"]}function i7(e,t,r){let{node:n}=e;if(Tp(n,t))return[_r(n,t),pe(Ml(e,t,r)),Ze(lf(n,t)),...Ll(n,t),Ar(n,t)];let a=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id"),i=u(f=>pe([pe(Ml(e,t,r),{id:o}),f,Ll(n,t)]),"a"),s=u(f=>a?hb(f,{groupId:o}):(jt(n)||ni(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?f:Dt(f),"o"),c=u(()=>a?Po(Ee,"",{groupId:o}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?ve:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?pb(Ee):Ee,"u"),d=u(()=>(n.next?kr(n.next):Ia(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?Po(Ee,"",{groupId:o}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?ve:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Ee,"p");return n.children.length===0?i(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?ve:""):i([Eb(n)?Qn:"",s([c(),$s(e,t,r)]),d()])}function Bo(e){return e>=9&&e<=32||e==160}function Ol(e){return 48<=e&&e<=57}function Ro(e){return e>=97&&e<=122||e>=65&&e<=90}function l7(e){return e>=97&&e<=102||e>=65&&e<=70||Ol(e)}function Ri(e){return e===10||e===13}function Wu(e){return 48<=e&&e<=55}function Ii(e){return e===39||e===34||e===96}function t5(e){return e.replace(K7,(...t)=>t[1].toUpperCase())}function r5(e,t){for(let r of Y7)r(e,t);return
`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function a5(e){let t=u(r=>{var n,a;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((a=r.firstChild)==null?void 0:a.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset},"e");e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let o=a.prev,i=a.firstChild;r.removeChild(o),n--;let s=new Y(o.sourceSpan.start,i.sourceSpan.end),c=new Y(s.start,a.sourceSpan.end);a.condition=o.condition,a.sourceSpan=c,a.startSourceSpan=s,a.removeChild(i)}})}function s7(e,t,r){e.walk(n=>{if(n.children)for(let a=0;a<n.children.length;a++){let o=n.children[a];if(o.type!=="text"&&!t(o))continue;o.type!=="text"&&(o.type="text",o.value=r(o));let i=o.prev;!i||i.type!=="text"||(i.value+=o.value,i.sourceSpan=new Y(i.sourceSpan.start,o.sourceSpan.end),n.removeChild(o),a--)}})}function o5(e){return s7(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function i5(e){let t=u(r=>{var n,a;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!dt.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((a=r.next)==null?void 0:a.type)==="text"},"e");e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let o=a.prev,i=a.next;o.value+=`<${a.rawName}>`+a.firstChild.value+`</${a.rawName}>`+i.value,o.sourceSpan=new Y(o.sourceSpan.start,i.sourceSpan.end),o.isTrailingSpaceSensitive=i.isTrailingSpaceSensitive,o.hasTrailingSpaces=i.hasTrailingSpaces,r.removeChild(a),n--,r.removeChild(i)}})}function l5(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(vb(n))for(let a of n.children){if(a.type!=="text")continue;let o=a.sourceSpan.start,i=null,s=a.value.split(r);for(let c=0;c<s.length;c++,o=i){let d=s[c];if(c%2===0){i=o.moveBy(d.length),d.length>0&&n.insertChildBefore(a,{type:"text",value:d,sourceSpan:new Y(o,i)});continue}i=o.moveBy(d.length+4),n.insertChildBefore(a,{type:"interpolation",sourceSpan:new Y(o,i),children:d.length===0?[]:[{type:"text",value:d,sourceSpan:new Y(o.moveBy(2),i.moveBy(-2))}]})}n.removeChild(a)}})}function s5(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&dt.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=yb(t),n=Lp(t);if(!r)for(let a=0;a<t.children.length;a++){let o=t.children[a];if(o.type!=="text")continue;let{leadingWhitespace:i,text:s,trailingWhitespace:c}=_7(o.value),d=o.prev,f=o.next;s?(o.value=s,o.sourceSpan=new Y(o.sourceSpan.start.moveBy(i.length),o.sourceSpan.end.moveBy(-c.length)),i&&(d&&(d.hasTrailingSpaces=!0),o.hasLeadingSpaces=!0),c&&(o.hasTrailingSpaces=!0,f&&(f.hasLeadingSpaces=!0))):(t.removeChild(o),a--,(i||c)&&(d&&(d.hasTrailingSpaces=!0),f&&(f.hasLeadingSpaces=!0)))}t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})}function u5(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function c5(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function d5(e,t){e.walk(r=>{r.cssDisplay=Tb(r,t)})}function p5(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Db(r);return}for(let a of n)a.isLeadingSpaceSensitive=bb(a,t),a.isTrailingSpaceSensitive=wb(a,t);for(let a=0;a<n.length;a++){let o=n[a];o.isLeadingSpaceSensitive=(a===0||o.prev.isTrailingSpaceSensitive)&&o.isLeadingSpaceSensitive,o.isTrailingSpaceSensit
`,Un);if(r===-1)return;let n=e.slice(Un,r).trim(),a=e.indexOf(`
${t}`,r),o=n;if(o||(o=t==="+++"?"toml":"yaml"),a===-1&&t==="---"&&o==="yaml"&&(a=e.indexOf(`
...`,r)),a===-1)return;let i=a+1+Un,s=e.charAt(i+1);if(!/\s?/u.test(s))return;let c=e.slice(0,i);return{type:"front-matter",language:o,explicitLanguage:n,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:c.slice(-Un),raw:c}}function x5(e){let t=c7(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:Pe(!1,r,/[^\n]/gu," ")+e.slice(r.length)}}function S5(e,t){let r=e.map(t);return r.some((n,a)=>n!==e[a])?r:e}function d7(e,t){if(e.value)for(let{regex:r,parse:n}of ow){let a=e.value.match(r);if(a)return n(e,t,a)}return null}function F5(e,t,r){let[,n,a,o]=r,i=4+n.length,s=e.sourceSpan.start.moveBy(i),c=s.moveBy(o.length),[d,f]=(()=>{try{return[!0,t(o,s).children]}catch{return[!1,[{type:"text",value:o,sourceSpan:new Y(s,c)}]]}})();return{type:"ieConditionalComment",complete:d,children:f,condition:Pe(!1,a.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new Y(e.sourceSpan.start,s),endSourceSpan:new Y(c,e.sourceSpan.end)}}function A5(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:Pe(!1,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function k5(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function p7(e){if(e.type==="block"){if(e.name=Pe(!1,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!Vs(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new Y(e.parameters[0].sourceSpan.start,$o(!1,e.parameters,-1).sourceSpan.end)}}}function f7(e){e.type==="letDeclaration"&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new Y(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function h7(e){(e.type==="plural"||e.type==="select")&&(e.clause=e.type,e.type="angularIcuExpression"),e.type==="expansionCase"&&(e.type="angularIcuCase")}function Jp(e,t,r){let{name:n,canSelfClose:a=!0,normalizeTagName:o=!1,normalizeAttributeName:i=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:c=!1,shouldParseAsRawText:d}=t,{rootNodes:f,errors:h}=pd(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:c,getTagContentType:d?(...E)=>d(...E)?ct.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0,tokenizeAngularLetDeclaration:n==="angular"?!0:void 0});if(n==="vue"){if(f.some(x=>x.type==="docType"&&x.value==="html"||x.type==="element"&&x.name.toLowerCase()==="html"))return Jp(e,Cd,r);let E,D=u(()=>E??(E=pd(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:c})),"y"),w=u(x=>D().rootNodes.find(({startSourceSpan:S})=>S&&S.start.offset===x.startSourceSpan.start.offset)??x,"M");for(let[x,S]of f.entries()){let{endSourceSpan:F,startSourceSpan:A}=S;if(F===null)h=D().errors,f[x]=w(S);else if(m7(S,r)){let _=D().errors.find(R=>R.span.start.offset>A.start.offset&&R.span.start.offset<F.end.offset);_&&fd(_),f[x]=w(S)}}}h.length>0&&fd(h[0]);let p=u(E=>{let D=E.name.startsWith(":")?E.name.slice(1).split(":")[0]:null,w=E.nameSpan.toString(),x=D!==null&&w.startsWith(`${D}:`),S=x?w.slice(D.length+1):w;E.name=S,E.namespace=D,E.hasExplicitNamespace=x},"d"),m=u(E=>{switch(E.type){case"element":p(E);for(let D of E.attrs)p(D),D.valueSpan?(D.value=D.valueSpan.toString(),/["']/u.test(D.value[0])&&(D.value=D.value.slice(1,-1))):D.value=null;break;case"comment":E.value=E.sourceSpan.toString().slice(4,-3);break;case"text":E.value=E.sourceSpan.toString();break}},"C"),g=u((E,D)=>{let w=E.toLowerCase();return D(w)?w:E},"A"),v=u(E=>{if(E.type==="element"&&(o&&(!E.namespace||E.namespace===E.tagDefinition.implicitNamespacePrefix||ya(E))&&(E.name=g(E.name,D=>iw.has(D))),i))for(let D of E.attrs)D.namespace||(D.name=g(D.name,w=>ul.has(E.name)&&(ul.get("*").has(w)||ul.get(E.name).has(w))))},"D"),b=u(E=>{E.sourceSpan&&E.endSourceSpan&&(E.sourceSpan=new Y(E.sourceSpan.start,E.endSourceSpan.end))},"R"),C=u(E=>{if(E.type==="element"){let D=Pl(c?E.name:E.name.toLowerCase());!E.namespace||E.namespace===D.implicitNamespacePrefix||
`,"\f","\r"," "],$5=new P5(N5),dt=$5,H5=(uc=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);Rn(this,"name","UnexpectedNodeError");this.node=t}},u(uc,"hr"),uc),w7=H5,u(Pm,"mi"),ii=Pm,j5=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),D7=new Set(["if","else if","for","switch","case"]),u(qu,"mn"),qu.ignoredProperties=j5,V5=qu,u(Nm,"gi"),E7=Nm,u(ti,"ce"),u(wn,"Y"),u(Je,"T"),u($m,"Ci"),C7=$m,x7=u(e=>String(e).split(/[/\\]/u).pop(),"Si"),u(ld,"Cn"),u(mb,"_i"),u(Hm,"Ei"),li=Hm,S7="inline",F7={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},A7="normal",k7={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},u(jm,"Ai"),ya=jm,U5=u(e=>Pe(!1,e,/^[\t\f\r ]*\n/gu,""),"Di"),nf=u(e=>U5(dt.trimEnd(e)),"mr"),_7=u(e=>{let t=e,r=dt.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=dt.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}},"Dn"),u(Tp,"Dt"),u(ri,"me"),u(gb,"vi"),u(qe,"O"),u(jt,"U"),u(vb,"vn"),u(yb,"yn"),u(Lp,"fr"),u(bb,"wn"),u(wb,"bn"),u(Db,"Tn"),u(po,"Qe"),u(Eb,"xn"),u(Mp,"dr"),u(ol,"vt"),u(Cb,"yi"),u(Op,"kn"),u(Pp,"Bn"),u(Np,"Ln"),u($p,"Fn"),u(Ls,"yt"),u(xb,"wi"),u(Hp,"Nn"),u(Sb,"bi"),u(Fb,"Ti"),u(Ab,"xi"),u(sd,"gr"),u(ka,"Xe"),u(kb,"ki"),u(_b,"Bi"),u(Bb,"Li"),u(Rb,"Fi"),u(Ib,"Ni"),u(dn,"he"),u(zb,"Pi"),u(Tb,"Pn"),u(jp,"In"),u(Lb,"Ii"),u(Vp,"Cr"),u(Up,"Sr"),u(sr,"P"),B7=new Set(["template","style","script"]),u(ni,"Je"),u(Dn,"fe"),u(Ms,"wt"),u(Mb,"Rn"),u(Ob,"On"),u(qp,"bt"),u(Wp,"Tt"),af=/\{\{(.+?)\}\}/su,u(Pb,"$n"),u(Bi,"Er"),R7=Bi({parser:"__ng_action"}),I7=Bi({parser:"__ng_binding"}),z7=Bi({parser:"__ng_directive"}),u(Vm,"qi"),T7=Vm,u(Um,"Hi"),L7=Um,u(ud,"Hn"),M7=/^[ \t\n\r\u000c]+/,O7=/^[, \t\n\r\u000c]+/,P7=/^[^ \t\n\r\u000c]+/,N7=/[,]+$/,wd=/^\d+$/,$7=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,u(qm,"Yi"),H7=qm,u(Wm,"ji"),Dd={width:"w",height:"h",density:"x"},j7=Object.keys(Dd),u(Nb,"Qi"),V7=Wm,u($b,"Gn"),ll=new WeakMap,u(Gm,"Xi"),js=Gm,u(Hb,"Yn"),u(jb,"jn"),u(Vb,"Kn"),u(Ub,"Ji"),u(Km,"Zi"),u(qb,"ea"),u(Wb,"ta"),u(Gp,"Qn"),U7=Km,u(Ym,"ra"),u(Gb,"na"),q7=Ym,cc=new Proxy(()=>{},{get:u(()=>cc,"get")}),of=cc,u(Zm,"sa"),Vs=Zm,u(_a,"X"),u(Ba,"J"),u(Ll,"Ze"),u(Kb,"ia"),u(Zn,"de"),u(Yb,"aa"),u(Ar,"W"),u(Os,"xt"),u(Ra,"ge"),u(Kp,"ts"),u(kr,"j"),u(Ia,"Ce"),u(va,"Se"),u(ai,"et"),u(Zb,"oa"),u(oi,"tt"),u(Jb,"ua"),u(Xb,"la"),u(Ml,"rt"),u(Jn,"_e"),u(_r,"z"),Ed="<!doctype",u(Ps,"kt"),u(Ns,"Bt"),u(Jm,"ca"),lf=Jm,W7=new Set(["if","else if","for","switch","case"]),u(Xm,"ha"),q5=Xm,Vn=null,u(Xn,"st"),W5=10;for(let e=0;e<=W5;e++)Xn();u(Qb,"vr"),u(Qm,"fa"),G5=Qm,K5={"front-matter":[],root:["childr
`);o=i>0?n-i:n}else o--;for(;n<r&&e>0;){let i=t.charCodeAt(n);n++,e--,i==10?(a++,o=0):o++}return new zi(this.file,n,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(n!=null){n>r.length-1&&(n=r.length-1);let a=n,o=0,i=0;for(;o<e&&n>0&&(n--,o++,!(r[n]==`
`&&++i==t)););for(o=0,i=0;o<e&&a<r.length-1&&(a++,o++,!(r[a]==`
`&&++i==t)););return{before:r.substring(n,this.offset),after:r.substring(this.offset,a+1)}}return null}},u(zi,"t"),zi),sf=(dc=class{constructor(e,t){this.content=e,this.url=t}},u(dc,"Ee"),dc),Y=(pc=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},u(pc,"h"),pc),(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Ti||(Ti={})),hc=(fc=class{constructor(e,t,r=Ti.ERROR){this.span=e,this.msg=t,this.level=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Ti[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},u(fc,"Ie"),fc),Y7=[n5,a5,o5,l5,s5,d5,u5,c5,p5,i5],u(r5,"Ea"),u(n5,"Aa"),u(a5,"Da"),u(s7,"va"),u(o5,"ya"),u(i5,"wa"),u(l5,"ba"),u(s5,"Ta"),u(u5,"xa"),u(c5,"ka"),u(d5,"Ba"),u(p5,"La"),X5=r5,u(f5,"Fa"),Q5={preprocess:X5,print:f5,insertPragma:e5,massageAstNode:V5,embed:q5,getVisitorKeys:J5},eg=Q5,tg=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],mc={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},gc="HTML",rg={bracketSameLine:mc.bracketSameLine,htmlWhitespaceSensitivity:{category:gc,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:mc.singleAttributePerLine,vueIndentScriptAndStyle:{category:gc,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ng=rg,vc={},nc(vc,{angular:u(()=>Ig,"angular"),html:u(()=>Rg,"html"),lwc:u(()=>Tg,"lwc"),vue:u(()=>zg,"vue")}),(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(ag||(ag={})),(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(og||(og={})),(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(ig||(ig={})),yc={name:"custom-elements"},bc={name:"no-errors-schema"},(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>hg.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return t5(e)}normalizeAnimationStyleValue(e,t,r){let n="",a=r.toString().trim(),o=null;if(h5(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let i=r.match(/^[+-]?[\d\.]+([a-z]*)$/);i&&i[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${r}`)}return{error:o,value:a+n}}},u(Ec,"qt"),Ec),u(h5,"Ha"),K=(Cc=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=ct.PARSABLE_DATA,closedByParent:n=!1,isVoid:a=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:i=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=a,this.closedByParent=n||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=i,this.canSelfClose=s??a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},u(Cc,"m"),Cc),u(Pl,"$e"),Ur=(xc=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},u(xc,"ae"),xc),gg=(Sc=class extends Ur{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text"}visit(e,t){return e.visitText(this,t)}},u(Sc,"Ht"),Sc),vg=(Fc=class extends Ur{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}},u(Fc,"Vt"),Fc),yg=(Ac=class extends Ur{constructor(e,t,r,n,a,o){super(n,o),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a}visit(e,t){return e.visitExpansion(this,t)}},u(Ac,"Ut"),Ac),bg=(kc=class{constructor(e,t,r,n,a){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=a,this.type="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},u(kc,"Wt"),kc),wg=(_c=class extends Ur{constructor(e,t,r,n,a,o,i){super(r,i),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=a,this.valueTokens=o,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},u(_c,"zt"),_c),Qt=(Bc=class extends Ur{constructor(e,t,r,n,a,o=null,i=null,s){super(n,s),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=i,this.type="element"}visit(e,t){return e.visitElement(this,t)}},u(Bc,"G"),Bc),Dg=(Rc=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}},u(Rc,"Gt"),Rc),Eg=(Ic=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}},u(Ic,"Yt"),Ic),qr=(zc=class extends Ur{constructor(e,t,r,n,a,o,i=null,s){super(n,s),this.name=e,this.parameters=t,this.children=r,this.nameSpan=a,this.startSourceSpan=o,this.endSourceSpan=i,this.type="block"}visit(e,t){return e.visitBlock(this,t)}},u(zc,"ee"),zc),Lc=(Tc=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},u(Tc,"ct"),Tc),Oc=(Mc=class{constructor(e,t,r,n,a){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=a,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}},u(Mc,"pt"),Mc),u(cd,"jt"),J7=(Pc=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitAttribute
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"",naturals:"",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"",lsquo:"",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"",primes:"",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"",rationals:"",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"",Rfr:"",real:"",realpart:"",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",Ri
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Bo(r)?!e:Xu(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ue),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ue);else{t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Qu);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Ii(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Qu)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),Bo(this._cursor.peek()))this._attemptCharCodeUntilFn(ue);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=33;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ue),!this._attemptCharCode(61)){t.type=33;return}this._attemptCharCodeUntilFn(r=>ue(r)&&!Ri(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(t.type=33,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Ro(r)||r===36||r===95||t&&Ol(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;Ii(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(D5(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Mi("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new Mi("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceS
`){let r=this._getClosestParentElement();r!=null&&r.children.length==0&&this.getTagDefinition(r.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],r=e.sourceSpan,n=e.parts[0];if(n.length>0&&n[0]===`
`){let a=this._getContainer();a!=null&&a.children.length===0&&this.getTagDefinition(a.name).ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?n+=e.parts.join("").replace(/&([^;]+);/g,tc):e.type===9?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){let a=e.sourceSpan;this._addToParent(new gg(n,new Y(r.start,a.end,r.fullStart,r.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof Qt&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,r]=e.parts,n=[];for(;this._peek.type===14;)n.push(this._consumeAttr(this._advance()));let a=this._getElementFullName(t,r,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let p=this.getTagDefinition(a);this.canSelfClose||p.canSelfClose||ho(a)!==null||p.isVoid||this.errors.push(Fe.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let i=this._peek.sourceSpan.fullStart,s=new Y(e.sourceSpan.start,i,e.sourceSpan.fullStart),c=new Y(e.sourceSpan.start,i,e.sourceSpan.fullStart),d=new Y(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new Qt(a,n,[],s,c,void 0,d),h=this._getContainer();this._pushContainer(f,h instanceof Qt&&this.getTagDefinition(h.name).isClosedByChild(f.name)),o?this._popContainer(a,Qt,s):e.type===4&&(this._popContainer(a,Qt,null),this.errors.push(Fe.create(a,s,`Opening tag "${a}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(t&&this.getTagDefinition(t).isVoid)this.errors.push(Fe.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,Qt,e.sourceSpan)){let r=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Fe.create(t,e.sourceSpan,r))}}_popContainer(e,t,r){let n=!1;for(let a=this._containerStack.length-1;a>=0;a--){let o=this._containerStack[a];if(ho(o.name)?o.name===e:(e==null||o.name.toLowerCase()===e.toLowerCase())&&o instanceof t)return o.endSourceSpan=r,o.sourceSpan.end=r!==null?r.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!n;(o instanceof qr||o instanceof Qt&&!this.getTagDefinition(o.name).closedByParent)&&(n=!0)}return!1}_consumeAttr(e){let t=Ga(e.parts[0],e.parts[1]),r=e.sourceSpan.end,n;this._peek.type===15&&(n=this._advance());let a="",o=[],i,s;if(this._peek.type===16)for(i=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let d=this._advance();o.push(d),d.type===17?a+=d.parts.join("").replace(/&([^;]+);/g,tc):d.type===9?a+=d.parts[0]:a+=d.parts.join(""),s=r=d.sourceSpan.end}this._peek.type===15&&(s=r=this._advance().sourceSpan.end);let c=i&&s&&new Y((n==null?void 0:n.sourceSpan.start)??i.start,s,(n==null?void 0:n.sourceSpan.fullStart)??i.fullStart);return new wg(t,a,new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,c,o.length>0?o:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===28;){let i=this._advance();t.push(new Lc(i.parts[0],i.sourceSpan))}this._peek.type===26&&this._advance();let r=this._peek.sourceSpan.fullStart,n=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),a=new Y(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new qr(e.parts[0],t,[],n,e.sourceSpan,a);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,qr,e.sourceSpan)||this.errors.push(Fe.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consu
`?"crlf":"cr":"lf"}function Us(e){switch(e){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function uf(e,t){let r;switch(t){case`
`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function dw(e){return ci(!1,e,/\r\n?/gu,`
`)}function Mg(e){if(typeof e=="string")return zr;if(Array.isArray(e))return Vt;if(!e)return;let{type:t}=e;if(bf.has(t))return t}function Og(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(Tr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Qw([...bf].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}function Pg(e,t,r,n){let a=[e];for(;a.length>0;){let o=a.pop();if(o===Gd){r(a.pop());continue}r&&a.push(o,Gd);let i=Tr(o);if(!i)throw new fn(o);if((t==null?void 0:t(o))!==!1)switch(i){case Vt:case mt:{let s=i===Vt?o:o.parts;for(let c=s.length,d=c-1;d>=0;--d)a.push(s[d]);break}case Ne:a.push(o.flatContents,o.breakContents);break;case Me:if(n&&o.expandedStates)for(let s=o.expandedStates.length,c=s-1;c>=0;--c)a.push(o.expandedStates[c]);else a.push(o.contents);break;case qt:case Ut:case Wt:case gt:case Gt:a.push(o.contents);break;case zr:case Cr:case Nt:case $t:case De:case We:break;default:throw new fn(o)}}}function Ho(e){return vt(e),{type:Ut,contents:e}}function pn(e,t){return vt(t),{type:qt,contents:t,n:e}}function Ad(e,t={}){return vt(e),Gs(t.expandedStates,!0),{type:Me,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ng(e){return pn(Number.NEGATIVE_INFINITY,e)}function $g(e){return pn({type:"root"},e)}function Hg(e){return pn(-1,e)}function jg(e,t){return Ad(e[0],{...t,expandedStates:e})}function Vg(e){return Gs(e),{type:mt,parts:e}}function Ug(e,t="",r={}){return vt(e),t!==""&&vt(t),{type:Ne,breakContents:e,flatContents:t,groupId:r.groupId}}function qg(e,t){return vt(e),{type:Wt,contents:e,groupId:t.groupId,negate:t.negate}}function Zl(e){return vt(e),{type:Gt,contents:e}}function kd(e,t){vt(e),Gs(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function _d(e,t,r){vt(e);let n=e;if(t>0){for(let a=0;a<Math.floor(t/r);++a)n=Ho(n);n=pn(t%r,n),n=pn(Number.NEGATIVE_INFINITY,n)}return n}function Wg(e,t){return vt(t),e?{type:gt,label:e,contents:t}:t}function Rt(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...Rt(n));else{let a=Rt(n);a!==""&&r.push(a)}return r}return e.type===Ne?{...e,breakContents:Rt(e.breakContents),flatContents:Rt(e.flatContents)}:e.type===Me?{...e,contents:Rt(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(Rt)}:e.type===mt?{type:"fill",parts:e.parts.map(Rt)}:e.contents?{...e,contents:Rt(e.contents)}:e}function pw(e){let t=Object.create(null),r=new Set;return n(Rt(e));function n(o,i,s){var c,d;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let f=o.map(n).filter(Boolean);return f.length===1?f[0]:`[${f.join(", ")}]`}if(o.type===De){let f=((c=s==null?void 0:s[i+1])==null?void 0:c.type)===We;return o.literal?f?"literalline":"literallineWithoutBreakParent":o.hard?f?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===We)return((d=s==null?void 0:s[i-1])==null?void 0:d.type)===De&&s[i-1].hard?void 0:"breakParent";if(o.type===Nt)return"trim";if(o.type===Ut)return"indent("+n(o.contents)+")";if(o.type===qt)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(o.contents)+")":o.n<0?"dedent("+n(o.contents)+")":o.n.type==="root"?"markAsRoot("+n(o.contents)+")":"align("+JSON.stringify(o.n)+", "+n(o.contents)+")";if(o.type===Ne)return"ifBreak("+n(o.breakContents)+(o.flatContents?", "+n(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${a(o.groupId)} }`:"")+")";if(o.type===Wt){let f=[];o.negate&&f.push("negate: true"),o.groupId&&f.push(`groupId: ${a(o.groupId)}`);let h=f.length>0?`, { ${f.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${h})`}if(o.type===Me){let f=[];o.break&&o.break!=="propagated"&&f.push("shouldBreak: true"),o.id&&f.push(`id: ${a(o.id)}`);let h=f.length>0?`, { ${f.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(p=>n(p)).join(",")}]${h})`:`group(${n(o.contents)}${h})`}if(o.type===mt)return`fill([${o.parts.map(f=>n(f)).join(", ")}])`;if(o.type===Gt)return"lineSuffix("+n(o.contents)+")";if(o.type===$t)return"lineSuffixBoundary";if(o.type===gt)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function a(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let i=o.description||"symbol";for(let s=0;;s++){let c=i+(s>0?` #${s}`:"");if(!r.has(c))return r.add(c),t[o]=
`)):r)}function yw(e){if(e.type===De)return!0}function Qg(e){return Jl(e,yw,!1)}function zo(e,t){return e.type===gt?{...e,contents:t(e.contents)}:t(e)}function cf(){return{value:"",length:0,queue:[]}}function bw(e,t){return Xl(e,{type:"indent"},t)}function ww(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||cf():t<0?Xl(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Xl(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Xl(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",o=0,i=0,s=0;for(let g of n)switch(g.type){case"indent":f(),r.useTabs?c(1):d(r.tabWidth);break;case"stringAlign":f(),a+=g.n,o+=g.n.length;break;case"numberAlign":i+=1,s+=g.n;break;default:throw new Error(`Unexpected type '${g.type}'`)}return p(),{...e,value:a,length:o,queue:n};function c(g){a+=" ".repeat(g),o+=r.tabWidth*g}function d(g){a+=" ".repeat(g),o+=g}function f(){r.useTabs?h():p()}function h(){i>0&&c(i),m()}function p(){s>0&&d(s),m()}function m(){i=0,s=0}}function Ql(e){let t=0,r=0,n=e.length;e:for(;n--;){let a=e[n];if(a===an){r++;continue}for(let o=a.length-1;o>=0;o--){let i=a[o];if(i===" "||i===" ")t++;else{e[n]=a.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(an);return t}function yo(e,t,r,n,a,o){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,s=[e],c=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:d,doc:f}=s.pop(),h=Tr(f);switch(h){case zr:c.push(f),r-=rs(f);break;case Vt:case mt:{let p=h===Vt?f:f.parts,m=f[ns]??0;for(let g=p.length-1;g>=m;g--)s.push({mode:d,doc:p[g]});break}case Ut:case qt:case Wt:case gt:s.push({mode:d,doc:f.contents});break;case Nt:r+=Ql(c);break;case Me:{if(o&&f.break)return!1;let p=f.break?Ie:d,m=f.expandedStates&&p===Ie?ge(!1,f.expandedStates,-1):f.contents;s.push({mode:p,doc:m});break}case Ne:{let p=(f.groupId?a[f.groupId]||lt:d)===Ie?f.breakContents:f.flatContents;p&&s.push({mode:d,doc:p});break}case De:if(d===Ie||f.hard)return!0;f.soft||(c.push(" "),r--);break;case Gt:n=!0;break;case $t:if(n)return!1;break}}return!1}function Vo(e,t){let r={},n=t.printWidth,a=Us(t.endOfLine),o=0,i=[{ind:cf(),mode:Ie,doc:e}],s=[],c=!1,d=[],f=0;for(hw(e);i.length>0;){let{ind:p,mode:m,doc:g}=i.pop();switch(Tr(g)){case zr:{let v=a!==`
`?ci(!1,g,`
`,a):g;s.push(v),i.length>0&&(o+=rs(v));break}case Vt:for(let v=g.length-1;v>=0;v--)i.push({ind:p,mode:m,doc:g[v]});break;case Cr:if(f>=2)throw new Error("There are too many 'cursor' in doc.");s.push(an),f++;break;case Ut:i.push({ind:bw(p,t),mode:m,doc:g.contents});break;case qt:i.push({ind:ww(p,g.n,t),mode:m,doc:g.contents});break;case Nt:o-=Ql(s);break;case Me:switch(m){case lt:if(!c){i.push({ind:p,mode:g.break?Ie:lt,doc:g.contents});break}case Ie:{c=!1;let v={ind:p,mode:lt,doc:g.contents},b=n-o,C=d.length>0;if(!g.break&&yo(v,i,b,C,r))i.push(v);else if(g.expandedStates){let E=ge(!1,g.expandedStates,-1);if(g.break){i.push({ind:p,mode:Ie,doc:E});break}else for(let D=1;D<g.expandedStates.length+1;D++)if(D>=g.expandedStates.length){i.push({ind:p,mode:Ie,doc:E});break}else{let w=g.expandedStates[D],x={ind:p,mode:lt,doc:w};if(yo(x,i,b,C,r)){i.push(x);break}}}else i.push({ind:p,mode:Ie,doc:g.contents});break}}g.id&&(r[g.id]=ge(!1,i,-1).mode);break;case mt:{let v=n-o,b=g[ns]??0,{parts:C}=g,E=C.length-b;if(E===0)break;let D=C[b+0],w=C[b+1],x={ind:p,mode:lt,doc:D},S={ind:p,mode:Ie,doc:D},F=yo(x,[],v,d.length>0,r,!0);if(E===1){F?i.push(x):i.push(S);break}let A={ind:p,mode:lt,doc:w},_={ind:p,mode:Ie,doc:w};if(E===2){F?i.push(A,x):i.push(_,S);break}let R=C[b+2],I={ind:p,mode:m,doc:{...g,[ns]:b+2}};yo({ind:p,mode:lt,doc:[D,w,R]},[],v,d.length>0,r,!0)?i.push(I,A,x):F?i.push(I,_,x):i.push(I,_,S);break}case Ne:case Wt:{let v=g.groupId?r[g.groupId]:m;if(v===Ie){let b=g.type===Ne?g.breakContents:g.negate?g.contents:Ho(g.contents);b&&i.push({ind:p,mode:m,doc:b})}if(v===lt){let b=g.type===Ne?g.flatContents:g.negate?Ho(g.contents):g.contents;b&&i.push({ind:p,mode:m,doc:b})}break}case Gt:d.push({ind:p,mode:m,doc:g.contents});break;case $t:d.length>0&&i.push({ind:p,mode:m,doc:fl});break;case De:switch(m){case lt:if(g.hard)c=!0;else{g.soft||(s.push(" "),o+=1);break}case Ie:if(d.length>0){i.push({ind:p,mode:m,doc:g},...d.reverse()),d.length=0;break}g.literal?p.root?(s.push(a,p.root.value),o=p.root.length):(s.push(a),o=0):(o-=Ql(s),s.push(a+p.value),o=p.length);break}break;case gt:i.push({ind:p,mode:m,doc:g.contents});break;case We:break;default:throw new fn(g)}i.length===0&&d.length>0&&(i.push(...d.reverse()),d.length=0)}let h=s.indexOf(an);if(h!==-1){let p=s.indexOf(an,h+1);if(p===-1)return{formatted:s.filter(b=>b!==an).join("")};let m=s.slice(0,h).join(""),g=s.slice(h+1,p).join(""),v=s.slice(p+1).join("");return{formatted:m+g+v,cursorNodeStart:m.length,cursorNodeText:g}}return{formatted:s.join("")}}function e2(e,t,r=0){let n=0;for(let a=r;a<e.length;++a)e[a]===" "?n=n+t-n%t:n++;return n}function t2(e){return e!==null&&typeof e=="object"}function*si(e,t){let{getVisitorKeys:r,filter:n=u(()=>!0,"n")}=t,a=u(o=>aD(o)&&n(o),"u");for(let o of r(e)){let i=e[o];if(Array.isArray(i))for(let s of i)a(s)&&(yield s);else a(i)&&(yield i)}}function*Dw(e,t){let r=[e];for(let n=0;n<r.length;n++){let a=r[n];for(let o of si(a,t))yield o,r.push(o)}}function Ew(e,t){return si(e,t).next().done}function In(e){return(t,r,n)=>{let a=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:o}=t,i=r;for(;i>=0&&i<o;){let s=t.charAt(i);if(e instanceof RegExp){if(!e.test(s))return i}else if(!e.includes(s))return i;a?i--:i++}return i===-1||i===o?i:!1}}function r2(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let a=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&a===`
`)return t-2;if(a===`
`||a==="\r"||a==="\u2028"||a==="\u2029")return t-1}else{if(a==="\r"&&e.charAt(t+1)===`
`)return t+2;if(a===`
`||a==="\r"||a==="\u2028"||a==="\u2029")return t+1}return t}function n2(e,t,r={}){let n=lr(e,r.backwards?t-1:t,r),a=Rr(e,n,r);return n!==a}function a2(e){return Array.isArray(e)&&e.length>0}function o2(e){return e?t=>e(t,Xd):iD}function Cw(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function qs(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Cw(e)}function rn(e,t){t.leading=!0,t.trailing=!1,qs(e,t)}function To(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),qs(e,t)}function nn(e,t){t.leading=!1,t.trailing=!0,qs(e,t)}function Ws(e,t){if(hl.has(e))return hl.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:a},locStart:o,locEnd:i}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...si(e,{getVisitorKeys:di(a)})]).flatMap(c=>n(c)?[c]:Ws(c,t));return s.sort((c,d)=>o(c)-o(d)||i(c)-i(d)),hl.set(e,s),s}function df(e,t,r,n){let{locStart:a,locEnd:o}=r,i=a(t),s=o(t),c=Ws(e,r),d,f,h=0,p=c.length;for(;h<p;){let m=h+p>>1,g=c[m],v=a(g),b=o(g);if(v<=i&&s<=b)return df(g,t,r,g);if(b<=i){d=g,h=m+1;continue}if(s<=v){f=g,p=m;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:m}=n,g=cl(m,t,r);d&&cl(m,d,r)!==g&&(d=null),f&&cl(m,f,r)!==g&&(f=null)}return{enclosingNode:n,precedingNode:d,followingNode:f}}function xw(e,t){let{comments:r}=e;if(delete e.comments,!oD(r)||!t.printer.canAttachComment)return;let n=[],{locStart:a,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:c}=t,{ownLine:d=ml,endOfLine:f=ml,remaining:h=ml}=s,p=r.map((m,g)=>({...df(e,m,t),comment:m,text:c,options:t,ast:e,isLastComment:r.length-1===g}));for(let[m,g]of p.entries()){let{comment:v,precedingNode:b,enclosingNode:C,followingNode:E,text:D,options:w,ast:x,isLastComment:S}=g;if(w.parser==="json"||w.parser==="json5"||w.parser==="jsonc"||w.parser==="__js_expression"||w.parser==="__ts_expression"||w.parser==="__vue_expression"||w.parser==="__vue_ts_expression"){if(a(v)-a(x)<=0){rn(x,v);continue}if(o(v)-o(x)>=0){nn(x,v);continue}}let F;if(i?F=[g]:(v.enclosingNode=C,v.precedingNode=b,v.followingNode=E,F=[v,D,w,x,S]),Sw(D,w,p,m))v.placement="ownLine",d(...F)||(E?rn(E,v):b?nn(b,v):To(C||x,v));else if(Fw(D,w,p,m))v.placement="endOfLine",f(...F)||(b?nn(b,v):E?rn(E,v):To(C||x,v));else if(v.placement="remaining",!h(...F))if(b&&E){let A=n.length;A>0&&n[A-1].followingNode!==E&&zd(n,w),n.push(g)}else b?nn(b,v):E?rn(E,v):To(C||x,v)}if(zd(n,t),!i)for(let m of r)delete m.precedingNode,delete m.enclosingNode,delete m.followingNode}function Sw(e,t,r,n){let{comment:a,precedingNode:o}=r[n],{locStart:i,locEnd:s}=t,c=i(a);if(o)for(let d=n-1;d>=0;d--){let{comment:f,precedingNode:h}=r[d];if(h!==o||!wf(e.slice(s(f),c)))break;c=i(f)}return or(e,c,{backwards:!0})}function Fw(e,t,r,n){let{comment:a,followingNode:o}=r[n],{locStart:i,locEnd:s}=t,c=s(a);if(o)for(let d=n+1;d<r.length;d++){let{comment:f,followingNode:h}=r[d];if(h!==o||!wf(e.slice(c,i(f))))break;c=s(f)}return or(e,c)}function zd(e,t){var r,n;let a=e.length;if(a===0)return;let{precedingNode:o,followingNode:i}=e[0],s=t.locStart(i),c;for(c=a;c>0;--c){let{comment:d,precedingNode:f,followingNode:h}=e[c-1];os.strictEqual(f,o),os.strictEqual(h,i);let p=t.originalText.slice(t.locEnd(d),s);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,p,t))??/^[\s(]*$/u.test(p))s=t.locStart(d);else break}for(let[d,{comment:f}]of e.entries())d<c?nn(o,f):rn(i,f);for(let d of[o,i])d.comments&&d.comments.length>1&&d.comments.sort((f,h)=>t.locStart(f)-t.locStart(h));e.length=0}function cl(e,t,r){let n=r.locStart(t)-1;for(let a=1;a<e.length;++a)if(n<r.locStart(e[a]))return a-1;return 0}function i2(e,t){let r=t-1;r=lr(e,r,{backwards:!0}),r=Rr(e,r,{backwards:!0}),r=lr(e,r,{backwards:!0});let n=Rr(e,r,{backwards:!0});return r!==n}function pf(e,t){let r=e
`)),Od(n,r)}function Od(e,t){if(e.length===1)return e[0];let[r,n]=e,[a,o]=e.map(i=>i.split(`
`,1)[0].length);return a>t&&a>o?n:r}function u2(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let o=0;for(;o<n&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(n-=o,a-=o,n===0)return a;let i,s,c,d,f=0,h=0;for(;f<n;)r1[f]=e.charCodeAt(o+f),gl[f]=++f;for(;h<a;)for(i=t.charCodeAt(o+h),c=h++,s=h,f=0;f<n;f++)d=i===r1[f]?c:c+1,c=gl[f],s=gl[f]=c>s?d>s?s+1:d:d>c?c+1:d;return s}function c2(e,t){let r=new e(t),n=Object.create(r);for(let a of dD)a in t&&(n[a]=Lw(t[a],r,rr.prototype[a].length));return n}function Lw(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}function Qc({from:e,to:t}){return{from:[e],to:t}}function d2(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r[a]=n}return r}function p2(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r.set(a,n)}return r}function f2(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function h2(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]}function m2(e){return e===Math.floor(e)}function g2(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function v2(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function e0(e){return e===void 0?{}:e}function Pd(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Mw((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Pd)}}:{text:t}}function t0(e,t){return e===!0?!0:e===!1?{value:t}:e}function r0(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Nd(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function dl(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Nd(r,t)):[Nd(e,t)]}function n0(e,t){let r=dl(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Mw(e,t){if(!e)throw new Error(t)}function y2(e,t,{logger:r=!1,isCLI:n=!1,passThrough:a=!1,FlagSchema:o,descriptor:i}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=Yr;let s=a?Array.isArray(a)?(p,m)=>a.includes(p)?{[p]:m}:void 0:(p,m)=>({[p]:m}):(p,m,g)=>{let{_:v,...b}=g.schemas;return n1(p,m,{...g,schemas:b})},c=Ow(t,{isCLI:n,FlagSchema:o}),d=new yD(c,{logger:r,unknown:s,descriptor:i}),f=r!==!1;f&&A0&&(d._hasDeprecationWarned=A0);let h=d.normalize(e);return f&&(A0=d._hasDeprecationWarned),h}function Ow(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(fD.create({name:"_"}));for(let a of e)n.push(Pw(a,{isCLI:t,optionInfos:e,FlagSchema:r})),a.alias&&t&&n.push(pD.create({name:a.alias,sourceName:a.name}));return n}function Pw(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:a}=e,o={name:a},i,s={};switch(e.type){case"int":i=vD,t&&(o.preprocess=Number);break;case"string":i=a1;break;case"choice":i=gD,o.choices=e.choices.map(c=>c!=null&&c.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c);break;case"boolean":i=mD;break;case"flag":i=n,o.flags=r.flatMap(c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean));break;case"path":i=a1;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(c,d,f)=>e.exception(c)||d.validate(c,f):o.validate=(c,d,f)=>c===void 0||d.validate(c,f),e.redirect&&(s.redirect=c=>c?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let c=o.preprocess||(d=>d);o.preprocess=(d,f,h)=>f.preprocess(c(Array.isArray(d)?ge(!1,d,-1):d),h)}return e.a
`+n,e.codeFrame=n,e}throw e}async function jw(e,t,r,n,a){let{embeddedLanguageFormatting:o,printer:{embed:i,hasPrettierIgnore:s=u(()=>!1,"s"),getVisitorKeys:c}}=r;if(!i||o!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let d=di(i.getVisitorKeys??c),f=[];m();let h=e.stack;for(let{print:g,node:v,pathStack:b}of f)try{e.stack=b;let C=await g(p,t,e,r);C&&a.set(v,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=h;function p(g,v){return Vw(g,v,r,n)}u(p,"f");function m(){let{node:g}=e;if(g===null||typeof g!="object"||s(e))return;for(let b of d(g))Array.isArray(g[b])?e.each(m,b):e.call(m,b);let v=i(e,r);if(v){if(typeof v=="function"){f.push({print:v,node:g,pathStack:[...e.stack]});return}a.set(g,v)}}u(m,"d")}async function Vw(e,t,r,n){let a=await En({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:o}=await za(e,a),i=await n(o,a);return Id(i)}function D2(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:a,locEnd:o,[Symbol.for("printedComments")]:i}=t,{node:s}=e,c=a(s),d=o(s);for(let f of n)a(f)>=c&&o(f)<=d&&i.add(f);return r.slice(c,d)}async function ui(e,t){({ast:e}=await gf(e,t));let r=new Map,n=new nD(e),a=lD(t),o=new Map;await jw(n,s,t,ui,o);let i=await $d(n,t,s,void 0,o);if(Rw(t),t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Er,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,Er];return i;function s(d,f){return d===void 0||d===n?c(f):Array.isArray(d)?n.call(()=>c(f),...d):n.call(()=>c(f),d)}function c(d){a(n);let f=n.node;if(f==null)return"";let h=f&&typeof f=="object"&&d===void 0;if(h&&r.has(f))return r.get(f);let p=$d(n,t,s,d,o);return h&&r.set(f,p),p}}function $d(e,t,r,n,a){var o;let{node:i}=e,{printer:s}=t,c;switch((o=s.hasPrettierIgnore)!=null&&o.call(s,e)?c=DD(e,t):a.has(i)?c=a.get(i):c=s.print(e,t,r,n),i){case t.cursorNode:c=zo(c,d=>[Er,d,Er]);break;case t.nodeBeforeCursor:c=zo(c,d=>[d,Er]);break;case t.nodeAfterCursor:c=zo(c,d=>[Er,d]);break}return s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(c=Bw(e,c,t)),c}async function gf(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,xw(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function E2(e,t){let{cursorOffset:r,locStart:n,locEnd:a}=t,o=di(t.printer.getVisitorKeys),i=u(m=>n(m)<=r&&a(m)>=r,"o"),s=e,c=[e];for(let m of Dw(e,{getVisitorKeys:o,filter:i}))c.push(m),s=m;if(Ew(s,{getVisitorKeys:o}))return{cursorNode:s};let d,f,h=-1,p=Number.POSITIVE_INFINITY;for(;c.length>0&&(d===void 0||f===void 0);){s=c.pop();let m=d!==void 0,g=f!==void 0;for(let v of si(s,{getVisitorKeys:o})){if(!m){let b=a(v);b<=r&&b>h&&(d=v,h=b)}if(!g){let b=n(v);b>=r&&b<p&&(f=v,p=b)}}}return{nodeBeforeCursor:d,nodeAfterCursor:f}}function C2(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let a=di(n),o=r.ignoredProperties??new Set;return i(e);function i(s,c){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(p=>i(p,c)).filter(Boolean);let d={},f=new Set(a(s));for(let p in s)!Object.prototype.hasOwnProperty.call(s,p)||o.has(p)||(f.has(p)?d[p]=i(s[p],s):d[p]=s[p]);let h=r(s,d,c);if(h!==null)return h??d}}function Uw(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(a=>Cf.has(a.type)&&n.has(a))}function Hd(e){let t=xD(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function qw(e,t,{locStart:r,locEnd:n}){let a=e.node,o=t.node;if(a===o)return{startNode:a,endNode:o};let i=r(e.node);for(let c of Hd(t.parentNodes))if(r(c)>=i)o=c;else break;let s=n(t.node);for(let c of Hd(e.parentNodes)){if(n(c)<=s)a=c;else break;if(a===o)break}return{startNode:a,endNode:o}}function es(e,t,r,n,a=[],o){let{locStart:i,locEnd:s}=r,c=i(e),d=s(e);if(!(t>d||t<c||o==="rangeEnd"&&t===c||o==="rangeStart"&&t===d)){for(let f of Ws(e,r)){let h=es(f,t,r,n,[e,...a],o);if(h)return h}if(!n||n(e
`,a)+1),c=n.slice(s,a).match(/^\s*/u)[0],d=as(c,t.tabWidth),f=await vf(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=o?t.cursorOffset-a:-1,endOfLine:"lf"},d),h=f.formatted.trimEnd(),{cursorOffset:p}=t;p>o?p+=h.length-i.length:f.cursorOffset>=0&&(p=f.cursorOffset+a);let m=n.slice(0,a)+h+n.slice(o);if(t.endOfLine!=="lf"){let g=Us(t.endOfLine);p>=0&&g===`\r
`&&(p+=uf(m.slice(0,p),`
`)),m=ci(!1,m,`
`,g)}return{formatted:m,cursorOffset:p,comments:f.comments}}function pl(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Vd(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a}=t;return r=pl(e,r,-1),n=pl(e,n,0),a=pl(e,a,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:a}}function yf(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o}=Vd(e,t),i=e.charAt(0)===xf;if(i&&(e=e.slice(1),r--,n--,a--),o==="auto"&&(o=cw(e)),e.includes("\r")){let s=u(c=>uf(e.slice(0,Math.max(c,0)),`\r
`),"s");r-=s(r),n-=s(n),a-=s(a),e=dw(e)}return{hasBOM:i,text:e,options:Vd(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o})}}async function Ud(e,t){let r=await hf(t);return!r.hasPragma||r.hasPragma(e)}async function qd(e,t){let{hasBOM:r,text:n,options:a}=yf(e,await En(t));if(a.rangeStart>=a.rangeEnd&&n!==""||a.requirePragma&&!await Ud(n,a))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return a.rangeStart>0||a.rangeEnd<n.length?o=await Kw(n,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!await Ud(n,a)&&(n=a.printer.insertPragma(n)),o=await vf(n,a)),r&&(o.formatted=xf+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function x2(e,t,r){let{text:n,options:a}=yf(e,await En(t)),o=await za(n,a);return r&&(r.preprocessForPrint&&(o.ast=await gf(o.ast,a)),r.massage&&(o.ast=CD(o.ast,a))),o}async function S2(e,t){t=await En(t);let r=await ui(e,t);return Vo(r,t)}async function F2(e,t){let r=pw(e),{formatted:n}=await qd(r,{...t,parser:"__js_expression"});return n}async function A2(e,t){t=await En(t);let{ast:r}=await za(e,t);return ui(r,t)}async function k2(e,t){return Vo(e,await En(t))}function _2(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}function B2(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Jd(e,t):t}function R2(e,t){let r=null,n=t;for(;n!==r;)r=n,n=lr(e,n),n=is(e,n),n=ls(e,n),n=Rr(e,n);return n}function I2(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Zd(e,n),n=is(e,n),n=lr(e,n);return n=ls(e,n),n=Rr(e,n),n!==!1&&or(e,n)}function z2(e,t){let r=e.lastIndexOf(`
`);return r===-1?0:as(e.slice(r+1).match(/^[\t ]*/u)[0],t)}function Yw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function T2(e,t){let r=e.match(new RegExp(`(${Yw(t)})+`,"gu"));return r===null?0:r.reduce((n,a)=>Math.max(n,a.length/t.length),0)}function L2(e,t){let r=Ys(e,t);return r===!1?"":e.charAt(r)}function M2(e,t){let r=t===!0||t===Do?Do:l1,n=r===Do?l1:Do,a=0,o=0;for(let i of e)i===r?a++:i===n&&o++;return a>o?n:r}function O2(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
`)return!0;return!1}function P2(e,t,r={}){return lr(e,r.backwards?t-1:t,r)!==t}function N2(e,t,r){let n=t==='"'?"'":'"',a=ci(!1,e,/\\(.)|(["'])/gsu,(o,i,s)=>i===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i));return t+a+t}function Zw(e,t,r){return Ys(e,r(t))}function $2(e,t){return arguments.length===2||typeof t=="number"?Ys(e,t):Zw(...arguments)}function Jw(e,t,r){return Ks(e,r(t))}function H2(e,t){return arguments.length===2||typeof t=="number"?Ks(e,t):Jw(...arguments)}function Xw(e,t,r){return ss(e,r(t))}function j2(e,t){return arguments.length===2||typeof t=="number"?ss(e,t):Xw(...arguments)}function pr(e,t=1){return async(...r)=>{let n=r[t]??{},a=n.plugins??[];return r[t]={...n,plugins:Array.isArray(a)?a:Object.values(a)},e(...r)}}async function Wd(e,t){let{formatted:r}=await s1(e,{...t,cursorOffset:-1});return r}async function V2(e,t){return await Wd(e,t)===e}var U2,Vi,q2,W2,G2,K2,a0,o0,Ui,Y2,Qa,Z2,J2,zn,qi,X2,i0,Q2,ci,eo,ev,to,tv,Wi,rv,nv,Tn,bo,zr,Vt,Cr,Ut,qt,Nt,Me,mt,Ne,Wt,Gt,$t,De,gt,We,bf,Tr,Qw,l0,av,fn,Gd,ts,s0,vt,Gs,ov,wo,iv,fl,u0,Kd,lv,xr,Yd,Er,sv,ge,eD,tD,rD,rs,Ie,lt,an,ns,as,Gr,c0,Gi,d0,uv,nD,p0,os,aD,cv,lr,Zd,Jd,Rr,or,oD,Xd,iD,di,hl,ml,wf,Ks,lD,f0,Df,h0,Qd,sD,uD,cD,Yr,m0,dv,on,e1,ro,t1,pv,g0,gl,r1,n1,dD,v0,rr,y0,pD,b0,fD,w0,hD,D0,mD,E0,gD,C0,fv,x0,vD,S0,a1,hv,mv,gv,vv,F0,yD,A0,bD,yv,Ef,o1,En,wD,za,DD,ED,CD,bv,xD,SD,Cf,FD,xf,i1,k0,wv,Dv,Ev,Cv,_0,is,ls,Ys,ss,xv,Sv,Fv,Do,l1,Av,kv,_v,Bv,s1,Rv,Iv,AD,eA=z(()=>{U2=Object.create,Vi=Object.defineProperty,q2=Object.getOwnPropertyDescriptor,W2=Object.getOwnPropertyNames,G2=Object.getPrototypeOf,K2=Object.prototype.hasOwnProperty,a0=u(e=>{throw TypeError(e)},"fr"),o0=u((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),"dr"),Ui=u((e,t)=>{for(var r in t)Vi(e,r,{get:t[r],enumerable:!0})},"Bt"),Y2=u((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of W2(t))!K2.call(e,a)&&a!==r&&Vi(e,a,{get:u(()=>t[a],"get"),enumerable:!(n=q2(t,a))||n.enumerable});return e},"_u"),Qa=u((e,t,r)=>(r=e!=null?U2(G2(e)):{},Y2(t||!e||!e.__esModule?Vi(r,"default",{value:e,enumerable:!0}):r,e)),"Me"),Z2=u((e,t,r)=>t.has(e)||a0("Cannot "+r),"xu"),J2=u((e,t,r)=>t.has(e)?a0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),"pr"),zn=u((e,t,r)=>(Z2(e,t,"access private method"),r),"pe"),qi=o0((e,t)=>{var r=new Proxy(String,{get:u(()=>r,"get")});t.exports=r}),X2=o0(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:u(()=>o=>o,"get")})}u(t,"Bi");var r=/\r\n|[\n\r\u2028\u2029]/;function n(o,i,s){let c=Object.assign({column:0,line:-1},o.start),d=Object.assign({},c,o.end),{linesAbove:f=2,linesBelow:h=3}=s||{},p=c.line,m=c.column,g=d.line,v=d.column,b=Math.max(p-(f+1),0),C=Math.min(i.length,g+h);p===-1&&(b=0),g===-1&&(C=i.length);let E=g-p,D={};if(E)for(let w=0;w<=E;w++){let x=w+p;if(!m)D[x]=!0;else if(w===0){let S=i[x-1].length;D[x]=[m,S-m+1]}else if(w===E)D[x]=[0,v];else{let S=i[x-w].length;D[x]=[0,S]}}else m===v?m?D[p]=[m,0]:D[p]=!0:D[p]=[m,v-m];return{start:b,end:C,markerLines:D}}u(n,"wi");function a(o,i,s={}){let c=t(),d=o.split(r),{start:f,end:h,markerLines:p}=n(i,d,s),m=i.start&&typeof i.start.column=="number",g=String(h).length,v=o.split(r,h).slice(f,h).map((b,C)=>{let E=f+1+C,D=` ${` ${E}`.slice(-g)} |`,w=p[E],x=!p[E+1];if(w){let S="";if(Array.isArray(w)){let F=b.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),A=w[1]||1;S=[`
`,c.gutter(D.replace(/\d/g," "))," ",F,c.marker("^").repeat(A)].join(""),x&&s.message&&(S+=" "+c.message(s.message))}return[c.marker(">"),c.gutter(D),b.length>0?` ${b}`:"",S].join("")}else return` ${c.gutter(D)}${b.length>0?` ${b}`:""}`}).join(`
`);return s.message&&!m&&(v=`${" ".repeat(g+1)}${s.message}
${v}`),v}u(a,"_i"),e.codeFrameColumns=a}),i0={},Ui(i0,{__debug:u(()=>Iv,"__debug"),check:u(()=>V2,"check"),doc:u(()=>k0,"doc"),format:u(()=>Wd,"format"),formatWithCursor:u(()=>s1,"formatWithCursor"),getSupportInfo:u(()=>Rv,"getSupportInfo"),util:u(()=>_0,"util"),version:u(()=>Cv,"version")}),Q2=u((e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},"bu"),ci=Q2,u(it,"M"),it.prototype={diff:u(function(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.callback;typeof n=="function"&&(a=n,n={});var o=this;function i(D){return D=o.postProcess(D,n),a?(setTimeout(function(){a(D)},0),!0):D}u(i,"s"),e=this.castInput(e,n),t=this.castInput(t,n),e=this.removeEmpty(this.tokenize(e,n)),t=this.removeEmpty(this.tokenize(t,n));var s=t.length,c=e.length,d=1,f=s+c;n.maxEditLength!=null&&(f=Math.min(f,n.maxEditLength));var h=(r=n.timeout)!==null&&r!==void 0?r:1/0,p=Date.now()+h,m=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(m[0],t,e,0,n);if(m[0].oldPos+1>=c&&g+1>=s)return i(Zc(o,m[0].lastComponent,t,e,o.useLongestToken));var v=-1/0,b=1/0;function C(){for(var D=Math.max(v,-d);D<=Math.min(b,d);D+=2){var w=void 0,x=m[D-1],S=m[D+1];x&&(m[D-1]=void 0);var F=!1;if(S){var A=S.oldPos-D;F=S&&0<=A&&A<s}var _=x&&x.oldPos+1<c;if(!F&&!_){m[D]=void 0;continue}if(!_||F&&x.oldPos<S.oldPos?w=o.addToPath(S,!0,!1,0,n):w=o.addToPath(x,!1,!0,1,n),g=o.extractCommon(w,t,e,D,n),w.oldPos+1>=c&&g+1>=s)return i(Zc(o,w.lastComponent,t,e,o.useLongestToken));m[D]=w,w.oldPos+1>=c&&(b=Math.min(b,D-1)),g+1>=s&&(v=Math.max(v,D+1))}d++}if(u(C,"C"),a)u(function D(){setTimeout(function(){if(d>f||Date.now()>p)return a();C()||D()},0)},"E")();else for(;d<=f&&Date.now()<=p;){var E=C();if(E)return E}},"diff"),addToPath:u(function(e,t,r,n,a){var o=e.lastComponent;return o&&!a.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}},"addToPath"),extractCommon:u(function(e,t,r,n,a){for(var o=t.length,i=r.length,s=e.oldPos,c=s-n,d=0;c+1<o&&s+1<i&&this.equals(r[s+1],t[c+1],a);)c++,s++,d++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return d&&!a.oneChangePerToken&&(e.lastComponent={count:d,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c},"extractCommon"),equals:u(function(e,t,r){return r.comparator?r.comparator(e,t):e===t||r.ignoreCase&&e.toLowerCase()===t.toLowerCase()},"equals"),removeEmpty:u(function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},"removeEmpty"),castInput:u(function(e){return e},"castInput"),tokenize:u(function(e){return Array.from(e)},"tokenize"),join:u(function(e){return e.join("")},"join"),postProcess:u(function(e){return e},"postProcess")},u(Zc,"Fr"),u(xd,"mr"),u(Sd,"hr"),u(Wl,"wt"),u(Gl,"_t"),u(qn,"we"),u(vo,"Ue"),u(Fd,"Er"),u(sw,"Nu"),eo="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",ev=new RegExp("[".concat(eo,"]+|\\s+|[^").concat(eo,"]"),"ug"),to=new it,to.equals=function(e,t,r){return r.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()},to.tokenize=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(t.intlSegmenter){if(t.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(t.intlSegmenter.segment(e),function(o){return o.segment})}else r=e.match(ev)||[];var n=[],a=null;return r.forEach(function(o){/\s/.test(o)?a==null?n.push(o):n.push(n.pop()+o):/\s/.test(a)?n[n.length-1]==a?n.push(n.pop()+o):n.push(a+o):n.push(o),a=o}),n},to.join=function(e){return e.map(function(t,r){return r==0?t:t.replace(/^\s+/,"")}).join("")},to.postProcess=function(e,t){if(!e||t.oneChangePerToken)return e;var r=null,n=null,a=null;return e.forEach(function(o){o.added?n=o:o.removed?a=o:((n||a)&&Jc(r,a,n,o),r=o,n=null,a=null)}),(n
`));var r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var a=0;a<n.length;a++){var o=n[a];a%2&&!t.newlineIsToken?r[r.length-1]+=o:r.push(o)}return r},Wi.equals=function(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
`))&&(e=e.trim()),(!r.newlineIsToken||!t.includes(`
`))&&(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(`
`)&&(e=e.slice(0,-1)),t.endsWith(`
`)&&(t=t.slice(0,-1))),it.prototype.equals.call(this,e,t,r)},rv=new it,rv.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},nv=new it,nv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)},u(Kl,"xt"),Tn=new it,Tn.useLongestToken=!0,Tn.tokenize=Wi.tokenize,Tn.castInput=function(e,t){var r=t.undefinedReplacement,n=t.stringifyReplacer,a=n===void 0?function(o,i){return typeof i>"u"?r:i}:n;return typeof e=="string"?e:JSON.stringify(Yl(e,null,null,a),a," ")},Tn.equals=function(e,t,r){return it.prototype.equals.call(Tn,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"),r)},u(Yl,"bt"),bo=new it,bo.tokenize=function(e){return e.slice()},bo.join=bo.removeEmpty=function(e){return e},u(uw,"gr"),u(cw,"yr"),u(Us,"xe"),u(uf,"Ot"),u(dw,"Ar"),zr="string",Vt="array",Cr="cursor",Ut="indent",qt="align",Nt="trim",Me="group",mt="fill",Ne="if-break",Wt="indent-if-break",Gt="line-suffix",$t="line-suffix-boundary",De="line",gt="label",We="break-parent",bf=new Set([Cr,Ut,qt,Nt,Me,mt,Ne,Wt,Gt,$t,De,gt,We]),u(Mg,"Lu"),Tr=Mg,Qw=u(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),"Pu"),u(Og,"Iu"),av=(l0=class extends Error{constructor(t){super(Og(t));Rn(this,"name","InvalidDocError");this.doc=t}},u(l0,"St"),l0),fn=av,Gd={},u(Pg,"Ru"),ts=Pg,s0=u(()=>{},"Br"),vt=s0,Gs=s0,u(Ho,"le"),u(pn,"De"),u(Ad,"Tt"),u(Ng,"wr"),u($g,"_r"),u(Hg,"xr"),u(jg,"br"),u(Vg,"Nr"),u(Ug,"Or"),u(qg,"Sr"),u(Zl,"Ne"),ov={type:$t},wo={type:We},iv={type:Nt},fl={type:De,hard:!0},u0={type:De,hard:!0,literal:!0},Kd={type:De},lv={type:De,soft:!0},xr=[fl,wo],Yd=[u0,wo],Er={type:Cr},u(kd,"Se"),u(_d,"Qe"),u(Wg,"Pr"),u(Rt,"ee"),u(pw,"Ir"),sv=u((e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},"Yu"),ge=sv,eD=u(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:u(e=>typeof e=="string"||typeof e=="function","exception"),choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:u(e=>typeof e=="string"||typeof e=="object","exception"),cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},u(Td,"ot"),u(Iw,"Di"),u(zw,"li"),uD=u(e=>String(e).split(/[/\\]/u).pop(),"ci"),u(Ld,"fn"),u(Tw,"fi"),u(s2,"di"),cD=s2,Yr={key:u(e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),"key"),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Yr.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Yr.key(r)}: ${Yr.value(e[r])}`).join(", ")} }`},pair:u(({key:e,value:t})=>Yr.value({[e]:t}),"pair")},m0=Qa(qi(),1),dv=u((e,t,{descriptor:r})=>{let n=[`${m0.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${m0.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},"mn"),on=Qa(qi(),1),e1=Symbol.for("vnopts.VALUE_NOT_EXIST"),ro=Symbol.for("vnopts.VALUE_UNCHANGED"),t1=" ".repeat(2),pv=u((e,t,r)=>{let{text:n,list:a}=r.normalizeExpectedResult(r.schemas[e].expected(r)),o=[];return n&&o.push(Xc(e,t,n,r.descriptor)),a&&o.push([Xc(e,t,a.title,r.descriptor)].concat(a.values.map(i=>Md(i,r.loggerPrintWidth))).join(`
`)),Od(o,r.loggerPrintWidth)},"Cn"),u(Xc,"En"),u(Md,"gn"),u(Od,"yn"),g0=Qa(qi(),1),gl=[],r1=[],u(u2,"zt"),n1=u((e,t,{descriptor:r,logger:n,schemas:a})=>{let o=[`Ignored unknown option ${g0.default.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(a).sort().find(s=>u2(e,s)<3);i&&o.push(`Did you mean ${g0.default.blue(r.key(i))}?`),n.warn(o.join(" "))},"Dt"),dD=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],u(c2,"Fi"),rr=(v0=class{static create(e){return c2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return ro}},u(v0,"x"),v0),u(Lw,"mi"),pD=(y0=class extends rr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},u(y0,"lt"),y0),fD=(b0=class extends rr{expected(){return"anything"}validate(){return!0}},u(b0,"ct"),b0),hD=(w0=class extends rr{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let a=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);a!==!0&&r.push(a.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);a!==!1&&r.push(...a.map(({value:o})=>({value:[o]})))}return r}forward(e,t){let r=[];for(let n of e){let a=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...a.map(Qc))}return r}redirect(e,t){let r=[],n=[];for(let a of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in o&&r.push(o.remain),n.push(...o.redirect.map(Qc))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}},u(w0,"ft"),w0),u(Qc,"vn"),mD=(D0=class extends rr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}},u(D0,"dt"),D0),u(d2,"wn"),u(p2,"_n"),u(f2,"xn"),u(h2,"bn"),u(m2,"Nn"),u(g2,"On"),u(v2,"Sn"),u(e0,"Kt"),u(Pd,"Jt"),u(t0,"qt"),u(r0,"Xt"),u(Nd,"Bn"),u(dl,"pt"),u(n0,"Qt"),u(Mw,"hi"),gD=(E0=class extends rr{constructor(e){super(e),this._choices=p2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(g2).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},u(E0,"Ft"),E0),fv=(C0=class extends rr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},u(C0,"mt"),C0),vD=(x0=class extends fv{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&m2(e)}},u(x0,"ht"),x0),a1=(S0=class extends rr{expected(){return"a string"}validate(e){return typeof e=="string"}},u(S0,"je"),S0),hv=Yr,mv=n1,gv=pv,vv=dv,yD=(F0=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:a=hv,unknown:o=mv,invalid:i=gv,deprecated:s=vv,missing:c=u(()=>!1,"D"),required:d=u(()=>!1,"l"),preprocess:f=u(p=>p,"p"),postprocess:h=u(()=>ro,"f")}=t||{};this._utils={descriptor:a,logger:r||{warn:u(()=>{},"warn")},loggerPrintWidth:n,schemas:d2(e,"name"),normalizeDefaultResult:e0,normalizeExpectedResult:Pd,normalizeDeprecatedResult:r0,normalizeForwardResult:dl,normalizeRedirectResult:n0,normalizeValidateResult:t0},this._unknownHandler=o,this._i
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(s){return s.replace(o,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,c){var d=i.match(/(?:^|\n)( *)$/),f=d?d[1]:"",h=s;typeof s=="string"&&s.includes(`
`)&&(h=String(s).split(`
`).map(function(p,m){return m===0?p:""+f+p}).join(`
`)),i+=h+n[c+1]}),i}var tA=z(()=>{u(kD,"dedent")}),_D={};Aa(_D,{formatter:()=>BD});var zv,BD,rA=z(()=>{zv=Ce(Bs(),1),QF(),eA(),tA(),BD=(0,zv.default)(2)(async(e,t)=>e===!1?t:e==="dedent"||e===!0?kD(t):(await AD.format(t,{parser:e,plugins:[lw],htmlWhitespaceSensitivity:"ignore"})).trim())}),u1,c1,nA=z(()=>{u1=u(function(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t},{})},"fromEntries"),c1=typeof window<"u"&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect}),Te,Ke,Ye,Le,us,ta,un,ra,RD,Sf,Wn,ID,d1,Ff,Tv,Lv,Mv,Ov,Pv,Nv,$v,Hv,jv,zD,Xe=z(()=>{Te="top",Ke="bottom",Ye="right",Le="left",us="auto",ta=[Te,Ke,Ye,Le],un="start",ra="end",RD="clippingParents",Sf="viewport",Wn="popper",ID="reference",d1=ta.reduce(function(e,t){return e.concat([t+"-"+un,t+"-"+ra])},[]),Ff=[].concat(ta,[us]).reduce(function(e,t){return e.concat([t,t+"-"+un,t+"-"+ra])},[]),Tv="beforeRead",Lv="read",Mv="afterRead",Ov="beforeMain",Pv="main",Nv="afterMain",$v="beforeWrite",Hv="write",jv="afterWrite",zD=[Tv,Lv,Mv,Ov,Pv,Nv,$v,Hv,jv]});function yt(e){return e?(e.nodeName||"").toLowerCase():null}var Cn=z(()=>{u(yt,"getNodeName")});function He(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Yt=z(()=>{u(He,"getWindow")});function Ir(e){var t=He(e).Element;return e instanceof t||e instanceof Element}function Ge(e){var t=He(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zs(e){if(typeof ShadowRoot>"u")return!1;var t=He(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Qe=z(()=>{Yt(),u(Ir,"isElement"),u(Ge,"isHTMLElement"),u(Zs,"isShadowRoot")});function Vv(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ge(o)||!yt(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function Uv(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(c,d){return c[d]="",c},{});!Ge(a)||!yt(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}var TD,aA=z(()=>{Cn(),Qe(),u(Vv,"applyStyles"),u(Uv,"effect"),TD={name:"applyStyles",enabled:!0,phase:"write",fn:Vv,effect:Uv,requires:["computeStyles"]}});function ht(e){return e.split("-")[0]}var xn=z(()=>{u(ht,"getBasePlacement")}),Sr,Uo,hn,Sn=z(()=>{Sr=Math.max,Uo=Math.min,hn=Math.round});function cs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}var LD=z(()=>{u(cs,"getUAString")});function Af(){return!/^((?!chrome|android).)*safari/i.test(cs())}var MD=z(()=>{LD(),u(Af,"isLayoutViewport")});function mn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ge(e)&&(a=e.offsetWidth>0&&hn(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&hn(n.height)/e.offsetHeight||1);var i=Ir(e)?He(e):window,s=i.visualViewport,c=!Af()&&r,d=(n.left+(c&&s?s.offsetLeft:0))/a,f=(n.top+(c&&s?s.offsetTop:0))/o,h=n.width/a,p=n.height/o;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}var pi=z(()=>{Qe(),Sn(),Yt(),MD(),u(mn,"getBoundingClientRect")});function Js(e){var t=mn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var kf=z(()=>{pi(),u(Js,"getLayoutRect")});function _f(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Zs(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var OD=z(()=>{Qe(),u(
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),C1=y.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:a,color:o,withArrows:i,...s},c)=>y.createElement(o4,{"data-testid":"tooltip",hasChrome:t,ref:c,...s,color:o},t&&i&&y.createElement(a4,{placement:e,...n,color:o}),r)),C1.displayName="Tooltip"}),$f={};Aa($f,{WithToolTipState:()=>ps,WithTooltip:()=>ps,WithTooltipPure:()=>x1});var no,i4,l4,x1,ps,Hf=z(()=>{vp(),TA(),LA(),{document:no}=_s,i4=k.div`
display: inline-block;
cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"};
`,l4=k.g`
cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"};
`,x1=u(({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:a=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:o=!0,defaultVisible:i=!1,withArrows:s,offset:c,tooltip:d,children:f,closeOnTriggerHidden:h,mutationObserverOptions:p,delayHide:m,visible:g,interactive:v,delayShow:b,strategy:C,followCursor:E,onVisibleChange:D,...w})=>{let x=e?l4:i4,{getArrowProps:S,getTooltipProps:F,setTooltipRef:A,setTriggerRef:_,visible:R,state:I}=_6({trigger:t,placement:n,defaultVisible:i,delayHide:m,interactive:v,closeOnOutsideClick:r,closeOnTriggerHidden:h,onVisibleChange:D,delayShow:b,followCursor:E,mutationObserverOptions:p,visible:g,offset:c},{modifiers:a,strategy:C}),T=R?y.createElement(C1,{placement:I==null?void 0:I.placement,ref:A,hasChrome:o,arrowProps:S(),withArrows:s,...F()},typeof d=="function"?d({onHide:u(()=>D(!1),"onHide")}):d):null;return y.createElement(y.Fragment,null,y.createElement(x,{trigger:t,ref:_,...w},f),R&&ty.createPortal(T,no.body))},"WithTooltipPure"),ps=u(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=l.useState(e),o=l.useCallback(i=>{t&&t(i)===!1||a(i)},[t]);return l.useEffect(()=>{let i=u(()=>o(!1),"hide");no.addEventListener("keydown",i,!1);let s=Array.from(no.getElementsByTagName("iframe")),c=[];return s.forEach(d=>{let f=u(()=>{try{d.contentWindow.document&&(d.contentWindow.document.addEventListener("click",i),c.push(()=>{try{d.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}},"bind");f(),d.addEventListener("load",f),c.push(()=>{d.removeEventListener("load",f)})}),()=>{no.removeEventListener("keydown",i),c.forEach(d=>{d()})}}),y.createElement(x1,{...r,visible:n,onVisibleChange:o})},"WithToolTipState")}),ie=u(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames");ks();OS();gp();function I6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ma(e,t)}u(I6,"_inheritsLoose");PS();gp();function z6(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}u(z6,"_isNativeFunction");function jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jf=u(function(){return!!e},"_isNativeReflectConstruct"))()}u(jf,"_isNativeReflectConstruct");gp();function T6(e,t,r){if(jf())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ma(a,r.prototype),a}u(T6,"_construct");function fs(e){var t=typeof Map=="function"?new Map:void 0;return fs=u(function(r){if(r===null||!z6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return T6(r,arguments,Rl(this).constructor)}return u(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ma(n,r)},"_wrapNativeSuper"),fs(e)}u(fs,"_wrapNativeSuper");var MA={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,9:`Please provide a number of steps to the modularScale helper.
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,16:`You must provide a template to this method.
`,17:`You passed an unsupported selector state to this method.
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,25:`fontFace expects localFonts to be an array.
`,26:`fontFace expects fileFormats to be an array.
`,27:`radialGradient requries at least 2 color-stops to properly render.
`,28:`Please supply a filename to retinaImage() as the first argument.
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,34:`borderRadius expects a radius value as a string or number as the second argument.
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,36:`Property must be a string value.
`,37:`Syntax Error at %s.
`,38:`Formula contains a function that needs parentheses at %s.
`,39:`Formula is missing closing parenthesis at %s.
`,40:`Formula has too many closing parentheses at %s.
`,41:`All values in a formula must have the same unit or be unitless.
`,42:`Please provide a number of steps to the modularScale helper.
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,53:`fontFace expects localFonts to be an array.
`,54:`fontFace expects fileFormats to be an array.
`,55:`fontFace expects a name of a font-family.
`,56:`linearGradient requries at least 2 color-stops to properly render.
`,57:`radialGradient requries at least 2 color-stops to properly render.
`,58:`Please supply a filename to retinaImage() as the first argument.
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
`,62:`borderRadius expects a radius value as a string or number as the second argument.
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,67:`You must provide a template to this method.
`,68:`You passed an unsupported selector state to this method.
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,73:`Please provide a valid CSS variable.
`,74:`CSS variable not found and no default was provided.
`,75:`important requires a valid style object, got a %s instead.
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
`,78:`base must be set in "px" or "%" but you set it in "%s".
`};function L6(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=[],o;for(o=1;o<t.length;o+=1)a.push(t[o]);return a.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}u(L6,"format");var Ot=(function(e){I6(t,e);function t(r){for(var n,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return n=e.call(this,L6.apply(void 0,[MA[r]].concat(o)))||this,ry(n)}return u(t,"PolishedError"),t})(fs(Error));function vl(e){return Math.round(e*255)}u(vl,"colorToInt");function M6(e,t,r){return vl(e)+","+vl(t)+","+vl(r)}u(M6,"convertToInt");function wa(e,t,r,n){if(n===void 0&&(n=M6),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),s=0,c=0,d=0;a>=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var f=r-o/2,h=s+f,p=c+f,m=d+f;return n(h,p,m)}u(wa,"hslToRgb");var s4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function O6(e){if(typeof e!="string")return e;var t=e.toLowerCase();return s4[t]?"#"+s4[t]:e}u(O6,"nameToHex");var OA=/^#[a-fA-F0-9]{6}$/,PA=/^#[a-fA-F0-9]{8}$/,NA=/^#[a-fA-F0-9]{3}$/,$A=/^#[a-fA-F0-9]{4}$/,B0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,HA=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$
.`.concat(XI,` {
overflow: hidden `).concat(n,`;
padding-right: `).concat(s,"px ").concat(n,`;
}
body[`).concat(ia,`] {
overflow: hidden `).concat(n,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(n,`;
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
}
.`).concat(wl,` {
right: `).concat(s,"px ").concat(n,`;
}
.`).concat(Dl,` {
margin-right: `).concat(s,"px ").concat(n,`;
}
.`).concat(wl," .").concat(wl,` {
right: 0 `).concat(n,`;
}
.`).concat(Dl," .").concat(Dl,` {
margin-right: 0 `).concat(n,`;
}
body[`).concat(ia,`] {
`).concat(QI,": ").concat(s,`px;
}
`)},"getStyles"),h4=u(function(){var e=parseInt(document.body.getAttribute(ia)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),uz=u(function(){l.useEffect(function(){return document.body.setAttribute(ia,(h4()+1).toString()),function(){var e=h4()-1;e<=0?document.body.removeAttribute(ia):document.body.setAttribute(ia,e.toString())}},[])},"useLockAttribute"),cz=u(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;uz();var o=l.useMemo(function(){return iz(a)},[a]);return l.createElement(lz,{styles:sz(o,!t,a,r?"":"!important")})},"RemoveScrollBar"),I1=!1;if(typeof window<"u")try{ao=Object.defineProperty({},"passive",{get:u(function(){return I1=!0,!0},"get")}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{I1=!1}var ao,Ln=I1?{passive:!1}:!1,dz=u(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),r8=u(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dz(e)&&r[t]==="visible")},"elementCanBeScrolled"),pz=u(function(e){return r8(e,"overflowY")},"elementCouldBeVScrolled"),fz=u(function(e){return r8(e,"overflowX")},"elementCouldBeHScrolled"),m4=u(function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=n8(e,n);if(a){var o=a8(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},"locationCouldBeScrolled"),hz=u(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),mz=u(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),n8=u(function(e,t){return e==="v"?pz(t):fz(t)},"elementCouldBeScrolled"),a8=u(function(e,t){return e==="v"?hz(t):mz(t)},"getScrollVariables"),gz=u(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),vz=u(function(e,t,r,n,a){var o=gz(e,window.getComputedStyle(t).direction),i=o*n,s=r.target,c=t.contains(s),d=!1,f=i>0,h=0,p=0;do{var m=a8(e,s),g=m[0],v=m[1],b=m[2],C=v-b-o*g;(g||C)&&n8(e,s)&&(h+=C,p+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&(a&&Math.abs(h)<1||!a&&i>h)||!f&&(a&&Math.abs(p)<1||!a&&-i>p))&&(d=!0),d},"handleScroll"),Ki=u(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),g4=u(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),v4=u(function(e){return e&&"current"in e?e.current:e},"extractRef"),yz=u(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),bz=u(function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},"generateStyle"),wz=0,Mn=[];function o8(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),a=l.useState(wz++)[0],o=l.useState(t8)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=VE([e.lockRef.current],(e.shards||[]).map(v4),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var C=Ki(v),E=r.current,D="deltaX"in v?v.deltaX:E[0]-C[0],w="deltaY"in v?v.deltaY:E[1]-C[1],x,S=v.target,F=Math.abs(D)>Math.abs(w)?"h":"v";if("touches"in v&&F==="h"&&S.type==="range")return!1;var A=m4(F,S);if(!A)return!0;if(A?x=F:(x=F==="v"?"h":"v",A=m4(F,S)),!A)return!1;if(!n.current&&"changedTouches"in v&&(D||w)&&(n.current=x),!x)return!0;var _=n.current||x;return vz(_,b,v,_==="h"?D:w,!0)},[]),c=l.useCallback(function(v){var b=v;if(!(!Mn.length||Mn[Mn.length-1]!==o)){var C="deltaY"in b?g4(b):Ki(b),E=t.current.filter(function(x){return x.name===b.type&&(x.target===b.target||b.target===x.shadowParent)&&yz(x.delta,C)})[0];if(E&&E.should){b.cancelable&&b.preventDefault();return}if(!E){var D=(i.current.shards||[]).map(v4).filter(Boolean).filter(function(x){return x.contains(b.target)}),w=D.length>0?s(b,D[0]):!i.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(v,b,C,E){var D={name:v,delta:b,target:C,should:E,shadowParent:i8(C)};t.current.push(D),setTimeout(function(){t.current=t.current.filter(function(w){return w!==D})},1)},[]),f=l.useCallback(function(v){r.current=Ki(v),n.current=void 0},[]),h=l.useCallback(function(v){d(v.type,g4(v),v.target,s(v,e.lockRef.current))},[]),p=l.useCallback(function(v){d(v.type,Ki(v),v.target,s(v,e.lockRef.current))},[]);l.useEffect(function(){return Mn.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ln),document.addEventListener("touchmove",c,Ln),document.addEventListener("touchstart",f,Ln),function(){Mn=Mn.filter(function(v){return v!==o}),document.removeEventListener("wheel",c,Ln),document.removeEventListener("touchmove",c,Ln),document.removeEventListener("touchstart",f,Ln)}},[]);var m=e.removeScrollBar,g=e.inert;return l.createElement(l.Fragment,null,g?l.createElement(o,{styles:bz(a)}):null,m?l.createElement(cz,{gapMode:e.gapMode}):null)}u(o8,"RemoveScrollSideCar");function i8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}u(i8,"getOutermostShadowParent");var Dz=ZE(JE,o8),l8=l.forwardRef(function(e,t){return l.createElement(cu,Tt({},e,{ref:t,sideCar:Dz}))});l8.classNames=cu.classNames;var Ez=l8,Cz=u(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),On=new WeakMap,Yi=new WeakMap,Zi={},M0=0,s8=u(function(e){return e&&(e.host||s8(e.parentNode))},"unwrapHost"),xz=u(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=s8(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),Sz=u(function(e,t,r,n){var a=xz(t,Array.isArray(e)?e:[e]);Zi[r]||(Zi[r]=new WeakMap);var o=Zi[r],i=[],s=new Set,c=new Set(a),d=u(function(h){!h||s.has(h)||(s.add(h),d(h.parentNode))},"keep");a.forEach(d);var f=u(function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(s.has(p))f(p);else try{var m=p.getAttribute(n),g=m!==null&&m!=="false",v=(On.get(p)||0)+1,b=(o.get(p)||0)+1;On.set(p,v),o.set(p,b),i.push(p),v===1&&g&&Yi.set(p,!0),b===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(C){console.error("aria-hidden: cannot operate on ",p,C)}})},"deep");return f(t),
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},"TitleWarning"),Oz="DialogDescriptionWarning",Pz=u(({contentRef:e,descriptionId:t})=>{let r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D8(Oz).contentName}}.`;return l.useEffect(()=>{var a;let n=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},"DescriptionWarning"),E8=Qf,Nz=eh,C8=rh,x8=nh,S8=ah,F8=ih,A8=lh,k8=sh,_8={};Aa(_8,{Actions:()=>Yz,CloseButton:()=>P8,Col:()=>$8,Container:()=>O8,Content:()=>qz,Description:()=>Kz,Error:()=>Zz,ErrorWrapper:()=>H8,Header:()=>Wz,Overlay:()=>M8,Row:()=>N8,Title:()=>Gz});const{deprecate:$z}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function z1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}u(z1,"setRef");function B8(...e){return t=>{let r=!1,n=e.map(a=>{let o=z1(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a<n.length;a++){let o=n[a];typeof o=="function"?o():z1(e[a],null)}}}}u(B8,"composeRefs");var R8=l.forwardRef((e,t)=>{let{children:r,...n}=e,a=l.Children.toArray(r),o=a.find(I8);if(o){let i=o.props.children,s=a.map(c=>c===o?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return O.jsx(T1,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return O.jsx(T1,{...n,ref:t,children:r})});R8.displayName="Slot";var T1=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(l.isValidElement(r)){let a=T8(r),o=z8(n,r.props);return r.type!==l.Fragment&&(o.ref=t?B8(t,a):a),l.cloneElement(r,o)}return l.Children.count(r)>1?l.Children.only(null):null});T1.displayName="SlotClone";var Hz=u(({children:e})=>O.jsx(O.Fragment,{children:e}),"Slottable");function I8(e){return l.isValidElement(e)&&e.type===Hz}u(I8,"isSlottable");function z8(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...i)=>{o(...i),a(...i)}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}u(z8,"mergeProps");function T8(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}u(T8,"getElementRef");var Or=l.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:o=!1,active:i=!1,onClick:s,...c},d)=>{let f="button";c.isLink&&(f="a"),e&&(f=R8);let h=n,p=r,[m,g]=l.useState(!1),v=u(b=>{s&&s(b),t!=="none"&&g(!0)},"handleClick");if(l.useEffect(()=>{let b=setTimeout(()=>{m&&g(!1)},1e3);return()=>clearTimeout(b)},[m]),c.primary&&(h="solid",p="medium"),(c.secondary||c.tertiary||c.gray||c.outline||c.inForm)&&(h="outline",p="medium"),c.small||c.isLink||c.primary||c.secondary||c.tertiary||c.gray||c.outline||c.inForm||c.containsIcon){let b=y.Children.toArray(c.children).filter(C=>typeof C=="string"&&C!=="");$z(`Use of deprecated props in the button ${b.length>0?`"${b.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return y.createElement(jz,{as:f,ref:d,variant:h,size:p,padding:a,disabled:o,active:i,animating:m,animation:t,onClick:v,...c})});Or.displayName="Button";var jz=k("button",{shouldForwardProp:u(e=>dp(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:o,animation:i="none",padding:s})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textD
${t}`);let r=t.match(rT);if(!r)return y.createElement(l.Fragment,null,t);let[,n,a]=r,o=t.split(/\n/).slice(1),[,...i]=o.map(s=>{let c=s.match(nT)||s.match(aT)||s.match(oT);return c?{name:(c[1]||"").replace("/<",""),location:c[2].replace(Qz.location.origin,"")}:null}).filter(Boolean);return y.createElement(l.Fragment,null,y.createElement("span",null,n),": ",y.createElement(eT,null,a),y.createElement("br",null),i.map((s,c)=>s!=null&&s.name?y.createElement(l.Fragment,{key:c}," ","at ",y.createElement(tT,null,s.name)," (",y.createElement(y4,null,s.location),")",y.createElement("br",null)):y.createElement(l.Fragment,{key:c}," ","at ",y.createElement(y4,null,s==null?void 0:s.location),y.createElement("br",null))))},"ErrorFormatter"),iT=k.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),lT=k.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),sT=u(({label:e,children:t,...r})=>y.createElement(iT,{...r},e?y.createElement(lT,null,y.createElement("span",null,e)):null,t),"Field");ks();yp();var uT=l.useLayoutEffect,cT=uT,dT=u(function(e){var t=l.useRef(e);return cT(function(){t.current=e}),t},"useLatest"),b4=u(function(e,t){if(typeof e=="function"){e(t);return}e.current=t},"updateRef"),pT=u(function(e,t){var r=l.useRef();return l.useCallback(function(n){e.current=n,r.current&&b4(r.current,null),r.current=t,t&&b4(t,n)},[t])},"useComposedRef"),fT=pT,w4={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},hT=u(function(e){Object.keys(w4).forEach(function(t){e.style.setProperty(t,w4[t],"important")})},"forceHiddenStyles"),D4=hT,Re=null,E4=u(function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize},"getHeight");function G8(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Re||(Re=document.createElement("textarea"),Re.setAttribute("tabindex","-1"),Re.setAttribute("aria-hidden","true"),D4(Re)),Re.parentNode===null&&document.body.appendChild(Re);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach(function(p){var m=p;Re.style[m]=i[m]}),D4(Re),Re.value=t;var c=E4(Re,e);Re.value=t,c=E4(Re,e),Re.value="x";var d=Re.scrollHeight-a,f=d*r;s==="border-box"&&(f=f+a+o),c=Math.max(f,c);var h=d*n;return s==="border-box"&&(h=h+a+o),c=Math.min(h,c),[c,d]}u(G8,"calculateNodeHeight");var C4=u(function(){},"noop"),mT=u(function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},"pick"),gT=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],vT=!!document.documentElement.currentStyle,yT=u(function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=mT(gT,t),n=r.boxSizing;if(n==="")return null;vT&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:o}},"getSizingData"),bT=yT;function ch(e,t,r){var n=dT(r);l.useLayoutEffect(function(){var a=u(function(o){return n.current(o)},"handler");if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}u(ch,"useListener");var wT=u(function(e){ch(window,"resize",e)},"useWindowResizeListener"),DT=u(function(e){ch(document.fonts,"loadingdone",e)},"useFontsLoadedListener"),ET=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],CT=u(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,o=e.onChange,i=o===void 0?C4:o,s=e.onHeightChange,
color: ${r||e?t.barSelectedColor:t.barTextColor};
.addon-collapsible-icon {
color: ${r||e?t.barSelectedColor:t.barTextColor};
}
&:hover {
color: ${t.barHoverColor};
.addon-collapsible-icon {
color: ${t.barHoverColor};
}
}
`);function eC(e){let t=l.useRef(),r=l.useRef(),n=l.useRef(new Map),{width:a=1}=uh({ref:t}),[o,i]=l.useState(e),[s,c]=l.useState([]),d=l.useRef(e),f=l.useCallback(({menuName:p,actions:m})=>{let g=s.some(({active:C})=>C),[v,b]=l.useState(!1);return y.createElement(y.Fragment,null,y.createElement(ps,{interactive:!0,visible:v,onVisibleChange:b,placement:"bottom",delayHide:100,tooltip:y.createElement(J8,{links:s.map(({title:C,id:E,color:D,active:w})=>({id:E,title:C,color:D,active:w,onClick:u(x=>{x.preventDefault(),m.onSelect(E)},"onClick")}))})},y.createElement(nL,{ref:r,active:g,preActive:v,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},p,y.createElement(rL,{className:"addon-collapsible-icon",isActive:g||v}))),s.map(({title:C,id:E,color:D},w)=>{let x=`index-${w}`;return y.createElement(vi,{id:`tabbutton-${t3(E)??x}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:S=>{n.current.set(E,S)},className:"tabbutton",type:"button",key:E,textColor:D,role:"tab"},C)}))},[s]),h=l.useCallback(()=>{if(!t.current||!r.current)return;let{x:p,width:m}=t.current.getBoundingClientRect(),{width:g}=r.current.getBoundingClientRect(),v=s.length?p+m-g:p+m,b=[],C=0,E=e.filter(D=>{let{id:w}=D,x=n.current.get(w),{width:S=0}=(x==null?void 0:x.getBoundingClientRect())||{},F=p+C+S>v;return(!F||!x)&&b.push(D),C+=S,F});(b.length!==o.length||d.current!==e)&&(i(b),c(E),d.current=e)},[s.length,e,o]);return l.useLayoutEffect(h,[h,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:o,invisibleList:s,AddonTab:f}}u(eC,"useList");var aL="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",oL=k.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),gh=k.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});gh.displayName="TabBar";var iL=k.div({display:"block",position:"relative"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${aL}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),vh=l.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:o=null,backgroundColor:i,id:s=null,menuName:c="Tabs",emptyState:d,showToolsWhenEmpty:f})=>{let h=l.useMemo(()=>tL(e).map((C,E)=>({...C,active:t?C.id===t:E===0})),[e,t]),{visibleList:p,tabBarRef:m,tabRefs:g,AddonTab:v}=eC(h),b=d??y.createElement(mh,{title:"Nothing found"});return!f&&h.length===0?b:y.createElement(oL,{absolute:n,bordered:a,id:s},y.createElement(fu,{scrollable:!1,border:!0,backgroundColor:i},y.createElement(gh,{style:{whiteSpace:"normal"},ref:m,role:"tablist"},p.map(({title:C,id:E,active:D,color:w},x)=>{let S=`index-${x}`;return y.createElement(vi,{id:`tabbutton-${t3(E)??S}`,ref:F=>{g.current.set(E,F)},className:`tabbutton ${D?"tabbutton-active":""}`,type:"button",key:E,active:D,textColor:w,onClick:F=>{F.preventDefault(),r.onSelect(E)},role:"tab"},typeof C=="function"?y.createElement("title",null):C)}),y.createElement(v,{menuName:c,actions:r})),o),y.createElement(iL,{id:"panel-tab-content",bordered:a,absolute:n},h.length?h.map(({id:C,active:E,render:D})=>y.createElement(D,{key:C,active:E},null)):b))});vh.displayName="Tabs";var O1=class extends l.Component{constructor(t){super(t),this.handlers={onSelect:u(r=>this.setState({selected:r}),"onSelect")},this.state={selected:t.initial}}render(){let{bordered:t=!1,absolute:r=!1,children:n,backgroundColor:a,menuName:o}=this.pr
display: inline-block;
shape-rendering: inherit;
vertical-align: middle;
fill: currentColor;
path {
fill: currentColor;
}
`;l.memo(u(function({icons:e=Object.keys(P1)}){return y.createElement(lL,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>y.createElement("symbol",{id:`icon--${t}`,key:t},P1[t])))},"Symbols"));var P1={user:"UserIcon",useralt:"UserAltIcon",useradd:"UserAddIcon",users:"UsersIcon",profile:"ProfileIcon",facehappy:"FaceHappyIcon",faceneutral:"FaceNeutralIcon",facesad:"FaceSadIcon",accessibility:"AccessibilityIcon",accessibilityalt:"AccessibilityAltIcon",arrowup:"ChevronUpIcon",arrowdown:"ChevronDownIcon",arrowleft:"ChevronLeftIcon",arrowright:"ChevronRightIcon",arrowupalt:"ArrowUpIcon",arrowdownalt:"ArrowDownIcon",arrowleftalt:"ArrowLeftIcon",arrowrightalt:"ArrowRightIcon",expandalt:"ExpandAltIcon",collapse:"CollapseIcon",expand:"ExpandIcon",unfold:"UnfoldIcon",transfer:"TransferIcon",redirect:"RedirectIcon",undo:"UndoIcon",reply:"ReplyIcon",sync:"SyncIcon",upload:"UploadIcon",download:"DownloadIcon",back:"BackIcon",proceed:"ProceedIcon",refresh:"RefreshIcon",globe:"GlobeIcon",compass:"CompassIcon",location:"LocationIcon",pin:"PinIcon",time:"TimeIcon",dashboard:"DashboardIcon",timer:"TimerIcon",home:"HomeIcon",admin:"AdminIcon",info:"InfoIcon",question:"QuestionIcon",support:"SupportIcon",alert:"AlertIcon",email:"EmailIcon",phone:"PhoneIcon",link:"LinkIcon",unlink:"LinkBrokenIcon",bell:"BellIcon",rss:"RSSIcon",sharealt:"ShareAltIcon",share:"ShareIcon",circle:"CircleIcon",circlehollow:"CircleHollowIcon",bookmarkhollow:"BookmarkHollowIcon",bookmark:"BookmarkIcon",hearthollow:"HeartHollowIcon",heart:"HeartIcon",starhollow:"StarHollowIcon",star:"StarIcon",certificate:"CertificateIcon",verified:"VerifiedIcon",thumbsup:"ThumbsUpIcon",shield:"ShieldIcon",basket:"BasketIcon",beaker:"BeakerIcon",hourglass:"HourglassIcon",flag:"FlagIcon",cloudhollow:"CloudHollowIcon",edit:"EditIcon",cog:"CogIcon",nut:"NutIcon",wrench:"WrenchIcon",ellipsis:"EllipsisIcon",check:"CheckIcon",form:"FormIcon",batchdeny:"BatchDenyIcon",batchaccept:"BatchAcceptIcon",controls:"ControlsIcon",plus:"PlusIcon",closeAlt:"CloseAltIcon",cross:"CrossIcon",trash:"TrashIcon",pinalt:"PinAltIcon",unpin:"UnpinIcon",add:"AddIcon",subtract:"SubtractIcon",close:"CloseIcon",delete:"DeleteIcon",passed:"PassedIcon",changed:"ChangedIcon",failed:"FailedIcon",clear:"ClearIcon",comment:"CommentIcon",commentadd:"CommentAddIcon",requestchange:"RequestChangeIcon",comments:"CommentsIcon",lock:"LockIcon",unlock:"UnlockIcon",key:"KeyIcon",outbox:"OutboxIcon",credit:"CreditIcon",button:"ButtonIcon",type:"TypeIcon",pointerdefault:"PointerDefaultIcon",pointerhand:"PointerHandIcon",browser:"BrowserIcon",tablet:"TabletIcon",mobile:"MobileIcon",watch:"WatchIcon",sidebar:"SidebarIcon",sidebaralt:"SidebarAltIcon",sidebaralttoggle:"SidebarAltToggleIcon",sidebartoggle:"SidebarToggleIcon",bottombar:"BottomBarIcon",bottombartoggle:"BottomBarToggleIcon",cpu:"CPUIcon",database:"DatabaseIcon",memory:"MemoryIcon",structure:"StructureIcon",box:"BoxIcon",power:"PowerIcon",photo:"PhotoIcon",component:"ComponentIcon",grid:"GridIcon",outline:"OutlineIcon",photodrag:"PhotoDragIcon",search:"SearchIcon",zoom:"ZoomIcon",zoomout:"ZoomOutIcon",zoomreset:"ZoomResetIcon",eye:"EyeIcon",eyeclose:"EyeCloseIcon",lightning:"LightningIcon",lightningoff:"LightningOffIcon",contrast:"ContrastIcon",switchalt:"SwitchAltIcon",mirror:"MirrorIcon",grow:"GrowIcon",paintbrush:"PaintBrushIcon",ruler:"RulerIcon",stop:"StopIcon",camera:"CameraIcon",video:"VideoIcon",speaker:"SpeakerIcon",play:"PlayIcon",playback:"PlayBackIcon",playnext:"PlayNextIcon",rewind:"RewindIcon",fastforward:"FastForwardIcon",stopalt:"StopAltIcon",sidebyside:"SideBySideIcon",stacked:"StackedIcon",sun:"SunIcon",moon:"MoonIcon",book:"BookIcon",document:"DocumentIcon",copy:"CopyIcon",category:"CategoryIcon",folder:"FolderIcon",print:"PrintIcon",graphline:"GraphLineIcon",calendar:"CalendarIcon",graphbar:"GraphBarIcon",menu:"MenuIcon",menualt:"MenuIcon",filter:"FilterIcon",docchart:"DocChartIcon",doclist:"DocListIcon",markup:"MarkupIcon",bold:"BoldIcon",paperclip:"PaperClipIcon",listordered:"ListOrderedIcon",listun
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,uL=k.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${sL} 0.7s linear infinite`,mixBlendMode:"difference"})),x4=k.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),cL=k.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:pt(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),dL=k.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),S4=k.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),pL=k(cE)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),fL=wt`
from { content: "..." }
33% { content: "." }
66% { content: ".." }
to { content: "..." }
`,hL=k.span({"&::after":{content:"'...'",animation:`${fL} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),nC=u(({progress:e,error:t,size:r,...n})=>{if(t)return y.createElement(x4,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},y.createElement(pL,null),y.createElement(S4,null,t.message));if(e){let{value:a,modules:o}=e,{message:i}=e;return o&&(i+=` ${o.complete} / ${o.total} modules`),y.createElement(x4,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},y.createElement(cL,null,y.createElement(dL,{style:{width:`${a*100}%`}})),y.createElement(S4,null,i,a<1&&y.createElement(hL,{key:i})))}return y.createElement(uL,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader"),mL=wt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});k.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));k.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${mL} 1s linear infinite`,circle:{opacity:.25}});function aC(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]||"")}return t}u(aC,"parseQuery");var oC=u((e,t,r={})=>{let[n,a]=e.split("?"),o=a?{...aC(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(o).map(i=>`${i[0]}=${i[1]}`).join("&")}`},"getStoryHref");k.pre`
line-height: 18px;
padding: 11px 1rem;
white-space: pre-wrap;
background: rgba(0, 0, 0, 0.05);
color: ${V.darkest};
border-radius: 3px;
margin: 1rem 0;
width: 100%;
display: block;
overflow: hidden;
font-family: ${Mt.fonts.mono};
font-size: ${Mt.size.s2-1}px;
`;var iC=uE;Object.keys(uE).forEach(e=>{l.forwardRef((t,r)=>l.createElement(e,{...t,ref:r}))});const gL=Object.freeze(Object.defineProperty({__proto__:null,A:q6,get ActionBar(){return zs},Bar:hh,Blockquote:W6,Button:Or,Code:Gf,DL:G6,Div:K6,EmptyTabContent:mh,ErrorFormatter:W8,FlexBar:fu,Form:Ma,H1:Y6,H2:Kf,H3:Yf,H4:Z6,H5:J6,H6:X6,HR:Q6,IconButton:Fr,Img:eE,LI:tE,Link:oa,ListItem:Z8,Loader:nC,OL:rE,P:nE,Pre:aE,ResetWrapper:Wf,get ScrollArea(){return Oo},Separator:rC,Span:oE,SyntaxHighlighter:lu,TT:iE,TabBar:gh,TabButton:vi,Table:lE,Tabs:vh,TabsState:tC,TooltipLinkList:J8,TooltipNote:zT,UL:sE,WithTooltip:BT,WithTooltipPure:Y8,Zoom:q8,codeCommon:cr,components:iC,createCopyToClipboardFunction:Tl,getStoryHref:oC,icons:P1,nameSpaceClassNames:ie,withReset:se},Symbol.toStringTag,{value:"Module"}));var vL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),yL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),bL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),wL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),DL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),l.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),EL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"h
`).match(a),h=!1;return{items:f.map(function(p,m){let g=o.exec(p)[0].length,v=new RegExp("^ {1,"+g+"}","gm"),b=p.replace(v,"").replace(o,""),C=m===f.length-1,E=b.indexOf(`
`)!==-1||C&&h;h=E;let D=c.inline,w=c.list,x;c.list=!0,E?(c.inline=!1,x=b.replace(T4,`
`)):(c.inline=!0,x=b.replace(T4,""));let S=s(x,c);return c.inline=D,c.list=w,S}),ordered:r,start:d}},render:(i,s,c)=>e(i.ordered?"ol":"ul",{key:c.key,start:i.type===j.orderedList?i.start:void 0},i.items.map(function(d,f){return e("li",{key:f},s(d,c))}))}}var TO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,NC=[DC,EC,CC,xC,FC,SC,AC,kC,TC,OC,LC,PC],MO=[...NC,/^[^\n]+(?: \n|\n{2,})/,U1,q1];function oo(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function OO(e){return DO.test(e)?"right":bO.test(e)?"center":wO.test(e)?"left":null}function M4(e,t,r,n){let a=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce((s,c)=>(c.trim()==="|"?s.push(n?{type:j.tableSeparator}:{type:j.text,text:c}):c!==""&&s.push.apply(s,t(c,r)),s),[]);r.inTable=a;let i=[[]];return o.forEach(function(s,c){s.type===j.tableSeparator?c!==0&&c!==o.length-1&&i.push([]):(s.type!==j.text||o[c+1]!=null&&o[c+1].type!==j.tableSeparator||(s.text=s.text.trimEnd()),i[i.length-1].push(s))}),i}function PO(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(yO,"").split("|").map(OO):[],a=e[3]?(function(i,s,c){return i.trim().split(`
`).map(function(d){return M4(d,s,c,!0)})})(e[3],t,r):[],o=M4(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:n,cells:a,header:o,type:j.table}:{children:o,type:j.paragraph}}function O4(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function fr(e){return function(t,r){return r.inline?e.exec(t):null}}function hr(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function tr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function io(e){return function(t){return e.exec(t)}}function NO(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
`).every(a=>!NC.some(o=>o.test(a))&&(r+=a+`
`,a.trim()));let n=r.trimEnd();return n==""?null:[r,n]}function $O(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function P4(e){return e.replace(BO,"$1")}function Cl(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function HO(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function jO(e,t,r){let n=r.inline||!1;r.inline=!1;let a=e(t,r);return r.inline=n,a}var $0=(e,t,r)=>({children:Cl(t,e[1],r)});function H0(){return{}}function j0(){return null}function VO(...e){return e.filter(Boolean).join(" ")}function V0(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}function UO(e="",t={}){function r(p,m,...g){let v=V0(t.overrides,`${p}.props`,{});return t.createElement((function(b,C){let E=V0(C,b);return E?typeof E=="function"||typeof E=="object"&&"render"in E?E:V0(C,`${b}.component`,b):b})(p,t.overrides),Qr({},m,v,{className:VO(m==null?void 0:m.className,v.className)||void 0}),...g)}function n(p){p=p.replace(aO,"");let m=!1;t.forceInline?m=!0:t.forceBlock||(m=gO.test(p)===!1);let g=d(c(m?p:`${p.trimEnd().replace(kO,"")}
`,{inline:m}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let v=t.wrapper||(m?"span":"div"),b;if(g.length>1||t.forceWrapper)b=g;else{if(g.length===1)return b=g[0],typeof b=="string"?r("span",{key:"outer"},b):b;b=null}return t.createElement(v,{key:"outer"},b)}function a(p,m){let g=m.match(qM);return g?g.reduce(function(v,b){let C=b.indexOf("=");if(C!==-1){let E=(function(S){return S.indexOf("-")!==-1&&S.match(lO)===null&&(S=S.replace(pO,function(F,A){return A.toUpperCase()})),S})(b.slice(0,C)).trim(),D=(function(S){let F=S[0];return(F==='"'||F==="'")&&S.length>=2&&S[S.length-1]===F?S.slice(1,-1):S})(b.slice(C+1).trim()),w=I4[E]||E;if(w==="ref")return v;let x=v[w]=(function(S,F,A,_){return F==="style"?A.split(/;\s?/).reduce(function(R,I){let T=I.slice(0,I.indexOf(":"));return R[T.trim().replace(/(-[a-z])/g,L=>L[1].toUpperCase())]=I.slice(T.length+1).trim(),R},{}):F==="href"||F==="src"?_(A,S,F):(A.match(sO)&&(A=A.slice(1,A.length-1)),A==="true"||A!=="false"&&A)})(p,E,D,t.sanitizer);typeof x=="string"&&(U1.test(x)||q1.test(x))&&(v[w]=n(x.trim()))}else b!=="style"&&(v[I4[b]||b]=!0);return v},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||$O,t.slugify=t.slugify||oo,t.namedCodesToUnicode=t.namedCodesToUnicode?Qr({},z4,t.namedCodesToUnicode):z4,t.createElement=t.createElement||l.createElement;let o=[],i={},s={[j.blockQuote]:{match:tr(DC),order:1,parse(p,m,g){let[,v,b]=p[0].replace(KM,"").match(YM);return{alert:v,children:m(b,g)}},render(p,m,g){let v={key:g.key};return p.alert&&(v.className="markdown-alert-"+t.slugify(p.alert.toLowerCase(),oo),p.children.unshift({attrs:{},children:[{type:j.text,text:p.alert}],noInnerParse:!0,type:j.htmlBlock,tag:"header"})),r("blockquote",v,m(p.children,g))}},[j.breakLine]:{match:io(ZM),order:1,parse:H0,render:(p,m,g)=>r("br",{key:g.key})},[j.breakThematic]:{match:tr(JM),order:1,parse:H0,render:(p,m,g)=>r("hr",{key:g.key})},[j.codeBlock]:{match:tr(CC),order:0,parse:p=>({lang:void 0,text:p[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(p,m,g)=>r("pre",{key:g.key},r("code",Qr({},p.attrs,{className:p.lang?`lang-${p.lang}`:""}),p.text))},[j.codeFenced]:{match:tr(EC),order:0,parse:p=>({attrs:a("code",p[3]||""),lang:p[2]||void 0,text:p[4],type:j.codeBlock})},[j.codeInline]:{match:hr(XM),order:3,parse:p=>({text:p[2]}),render:(p,m,g)=>r("code",{key:g.key},p.text)},[j.footnote]:{match:tr(tO),order:0,parse:p=>(o.push({footnote:p[2],identifier:p[1]}),{}),render:j0},[j.footnoteReference]:{match:fr(rO),order:1,parse:p=>({target:`#${t.slugify(p[1],oo)}`,text:p[1]}),render:(p,m,g)=>r("a",{key:g.key,href:t.sanitizer(p.target,"a","href")},r("sup",{key:g.key},p.text))},[j.gfmTask]:{match:fr(oO),order:1,parse:p=>({completed:p[1].toLowerCase()==="x"}),render:(p,m,g)=>r("input",{checked:p.completed,key:g.key,readOnly:!0,type:"checkbox"})},[j.heading]:{match:tr(t.enforceAtxHeadings?SC:xC),order:1,parse:(p,m,g)=>({children:Cl(m,p[2],g),id:t.slugify(p[2],oo),level:p[1].length}),render:(p,m,g)=>r(`h${p.level}`,{id:p.id,key:g.key},m(p.children,g))},[j.headingSetext]:{match:tr(FC),order:0,parse:(p,m,g)=>({children:Cl(m,p[1],g),level:p[2]==="="?1:2,type:j.heading})},[j.htmlBlock]:{match:io(U1),order:1,parse(p,m,g){let[,v]=p[3].match(_O),b=new RegExp(`^${v}`,"gm"),C=p[3].replace(b,""),E=(D=C,MO.some(A=>A.test(D))?jO:Cl);var D;let w=p[1].toLowerCase(),x=UM.indexOf(w)!==-1,S=(x?w:p[1]).trim(),F={attrs:a(S,p[2]),noInnerParse:x,tag:S};return g.inAnchor=g.inAnchor||w==="a",x?F.text=p[3]:F.children=E(m,C,g),g.inAnchor=!1,F},render:(p,m,g)=>r(p.tag,Qr({key:g.key},p.attrs),p.text||(p.children?m(p.children,g):""))},[j.htmlSelfClosing]:{match:io(q1),order:1,parse(p){let m=p[1].trim();return{attrs:a(m,p[2]||""),tag:m}},render:(p,m,g)=>r(p.tag,Qr({},p.attrs,{key:g.key}))},[j.htmlComment]:{match:io(AC),order:1,parse:()=>({}),render:j0},[j.image]:{match:hr(LO),order:1,parse:p=>({alt:p[1],target:P4(p[2]),title:p[3]}),render:(p,m,g)=>r("img",{key:g.key,alt:p.alt||void 0,title:p.title||void 0,src:t.sanitizer(p.target,"img","src")})},[j.link]:{match:fr(TO),order:3,pa
`},[j.paragraph]:{match:NO,order:3,parse:$0,render:(p,m,g)=>r("p",{key:g.key},m(p.children,g))},[j.ref]:{match:fr(fO),order:0,parse:p=>(i[p[1]]={target:p[2],title:p[4]},{}),render:j0},[j.refImage]:{match:hr(hO),order:0,parse:p=>({alt:p[1]||void 0,ref:p[2]}),render:(p,m,g)=>i[p.ref]?r("img",{key:g.key,alt:p.alt,src:t.sanitizer(i[p.ref].target,"img","src"),title:i[p.ref].title}):null},[j.refLink]:{match:fr(mO),order:0,parse:(p,m,g)=>({children:m(p[1],g),fallbackChildren:p[0],ref:p[2]}),render:(p,m,g)=>i[p.ref]?r("a",{key:g.key,href:t.sanitizer(i[p.ref].target,"a","href"),title:i[p.ref].title},m(p.children,g)):r("span",{key:g.key},p.fallbackChildren)},[j.table]:{match:tr(kC),order:1,parse:PO,render(p,m,g){let v=p;return r("table",{key:g.key},r("thead",null,r("tr",null,v.header.map(function(b,C){return r("th",{key:C,style:O4(v,C)},m(b,g))}))),r("tbody",null,v.cells.map(function(b,C){return r("tr",{key:C},b.map(function(E,D){return r("td",{key:D,style:O4(v,D)},m(E,g))}))})))}},[j.text]:{match:io(AO),order:4,parse:p=>({text:p[0].replace(iO,(m,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:m)}),render:p=>p.text},[j.textBolded]:{match:hr(EO),order:2,parse:(p,m,g)=>({children:m(p[2],g)}),render:(p,m,g)=>r("strong",{key:g.key},m(p.children,g))},[j.textEmphasized]:{match:hr(CO),order:3,parse:(p,m,g)=>({children:m(p[2],g)}),render:(p,m,g)=>r("em",{key:g.key},m(p.children,g))},[j.textEscaped]:{match:hr(FO),order:1,parse:p=>({text:p[1],type:j.text})},[j.textMarked]:{match:hr(xO),order:3,parse:$0,render:(p,m,g)=>r("mark",{key:g.key},m(p.children,g))},[j.textStrikethroughed]:{match:hr(SO),order:3,parse:$0,render:(p,m,g)=>r("del",{key:g.key},m(p.children,g))}};t.disableParsingRawHTML===!0&&(delete s[j.htmlBlock],delete s[j.htmlSelfClosing]);let c=(function(p){let m=Object.keys(p);function g(v,b){let C=[];for(b.prevCapture=b.prevCapture||"";v;){let E=0;for(;E<m.length;){let D=m[E],w=p[D],x=w.match(v,b);if(x){let S=x[0];b.prevCapture+=S,v=v.substring(S.length);let F=w.parse(x,g,b);F.type==null&&(F.type=D),C.push(F);break}E++}}return b.prevCapture="",C}return m.sort(function(v,b){let C=p[v].order,E=p[b].order;return C!==E?C-E:v<b?-1:1}),function(v,b){return g((function(C){return C.replace(eO,`
`).replace(nO,"").replace(vO," ")})(v),b)}})(s),d=(f=(function(p,m){return function(g,v,b){let C=p[g.type].render;return m?m(()=>C(g,v,b),g,v,b):C(g,v,b)}})(s,t.renderRule),function p(m,g={}){if(Array.isArray(m)){let v=g.key,b=[],C=!1;for(let E=0;E<m.length;E++){g.key=E;let D=p(m[E],g),w=typeof D=="string";w&&C?b[b.length-1]+=D:D!==null&&b.push(D),C=w}return g.key=v,b}return f(m,p,g)});var f;let h=n(e);return o.length?r("div",null,h,r("footer",{key:"footer"},o.map(function(p){return r("div",{id:t.slugify(p.identifier,oo),key:p.identifier},p.identifier,d(c(p.footnote,{inline:!0})))}))):h}var $C=e=>{let{children:t="",options:r}=e,n=(function(a,o){if(a==null)return{};var i,s,c={},d=Object.keys(a);for(s=0;s<d.length;s++)o.indexOf(i=d[s])>=0||(c[i]=a[i]);return c})(e,VM);return l.cloneElement(UO(t,r),n)},qO=k.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:oe(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Ji(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Ji(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Ji(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Ji(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),WO=e=>e==="true",GO=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var f;let i=l.useCallback(()=>r(!1),[r]),s=!!((f=o==null?void 0:o.table)!=null&&f.readonly);if(t===void 0)return y.createElement(Or,{variant:"outline",size:"medium",id:ys(e),onClick:i,disabled:s},"Set boolean");let c=bt(e),d=typeof t=="string"?WO(t):t;return y.createElement(qO,{"aria-disabled":s,htmlFor:c,"aria-label":e},y.createElement("input",{id:c,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},KO=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},YO=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},ZO=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},JO=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},N4=k(Ma.Input)(({readOnly:e})=>({opacity:e?.5:1})),XO=k.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),QO=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),c=l.useRef(),d=l.useRef(),f=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(c&&c.current&&(c.current.value=t?ZO(t):""),d&&d.current&&(d.current.value=t?JO(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let b=KO(v.target.value),C=new Date(t);C.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let E=C.getTime();E&&r(E),s(!!E)},p=v=>{if(!v.target.value)return r();
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${ar(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${ar(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${It(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:a?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:ar(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${ar(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${ar(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${It(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${It(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Jr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${ar(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),XC=k.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),jP=k(XC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),VP=k.div({display:"flex",alignItems:"center",width:"100%"});function UP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var qP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var m;let d=g=>{r(tP(g.target.value))},f=t!==void 0,h=l.useMemo(()=>UP(o),[o]),p=!!((m=c==null?void 0:c.table)!=null&&m.readonly);return y.createElement(VP,{"aria-readonly":p},y.createElement(XC,null,n),y.createElement(HP,{id:bt(e),type:"range",disabled:p,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(jP,{numberOFDecimalsPlaces:h,max:a},f?t.toFixed(h):"--"," / ",a))},WP=k.label({display:"flex"}),GP=k.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),KP=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var m;let s=g=>{r(g.target.value)},c=!!((m=i==null?void 0:i.table)!=null&&m.readonly),[d,f]=l.useState(!1),h=l.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return y.createElement(Or,{variant:"outline",size:"medium",disabled:c,id:ys(e),onClick:h},"Set string");let p=typeof t=="string";return y.createElement(WP,null,y.createElement(Ma.Textarea,{id:bt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:p?null:"error",name:e,value:p?t:"",onFocus:n,onBlur:a}),o&&y.createElement(GP,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},YP=k(Ma.Input)({padding:10});function ZP(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var JP=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(f),ZP(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(YP,{ref:o,id:bt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},XP=l.lazy(()=>X1(()=>import("./Color-YHDXOIA2-BJn0-NzM.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),QP=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(XP,{...e})),eN={array:q4,object:q4,boolean:GO,color:QP,date:QO,number:nP,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:qP,text:KP,file:JP},W4=()=>y.createElement(y.Fragment,null,"-"),tN=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let f=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),p=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&b?y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(W4,null)}let m={name:a,argType:e,value:c.value,onChange:f,onBlur:h,onFocus:p},g=eN[o.type]||W4;return y.createElement(g,{...m,...o,controlType:o.type})},rN=k.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{p
`&&t!=="`")&&(t=null),a&&(e[i]==="/"&&e[i-1]!=="\\"||e[i]===`
`)&&(a=!1),r&&e[i-1]==="/"&&e[i-2]==="*"&&(r=!1),n&&e[i]===`
`&&(n=!1)),!r&&!n&&(o+=e[i]);else o=e;return o},oj=(0,e$.default)(1e4)(e=>aj(e).replace(/\n\s*/g,"").trim()),ij=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},lj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function u9(e){if(!nj(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=QN(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var sj=function(e){let t,r,n,a;return function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return lj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,u$.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,c$.default)(i)){if(!e.allowFunction)return;let{name:d}=i,f=i.toString();return f.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${oj(ij(o,f))}`}if((0,d$.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let c=t.get(i);if(!c){let d=Array.isArray(i)?i:u9(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":i.constructor.name})}catch{}return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}catch{return}}},uj={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},cj=(e,t={})=>{let r={...uj,...t};return JSON.stringify(u9(e),sj(r),t.space)};function c9(e){return cj(e,{allowFunction:!1})}var d9=l.createContext({sources:{}}),p9="--unknown--",dj=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:c,args:d=void 0,source:f,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,p=d?c9(d):p9;n(m=>({...m,[c]:{...m[c],[p]:{code:f,format:h}}}))};return t.on(Th,a),()=>t.off(Th,a)},[]),y.createElement(d9.Provider,{value:{sources:r}},e)},pj=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[c9(t)])||(a==null?void 0:a[p9])||{code:""}},fj=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var c,d;let{__isArgsStory:a}=t.parameters,o=((c=t.parameters.docs)==null?void 0:c.source)||{},i=r||o.type||xu.AUTO;if(o.code!==void 0)return o.code;let s=i===xu.DYNAMIC||i===xu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},hj=(e,t,r)=>{var m,g,v,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(m=n==null?void 0:n.parameters)==null?void 0:m.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,c=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:c,dark:d};let f=t.getStoryContext(n),h=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,p=pj(n.id,h,r);return s=p.format??((b=(v=n.parameters.docs)
This is often caused by not wrapping the child in a template string.
This is invalid:
<Markdown>
# Some heading
A paragraph
</Markdown>
Instead do:
<Markdown>
{\`
# Some heading
A paragraph
\`}
</Markdown>
`);return y.createElement($C,{...e,options:{forceBlock:!0,overrides:{code:h9,a:m9,...v9,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},Rj=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(Rj||{}),Ij=e=>{var t,r,n,a,o,i,s,c;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:f}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=d.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,f,{component:f,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:f}}=e;return((c=(s=f.docs)==null?void 0:s.extractComponentDescription)==null?void 0:c.call(s,d,{component:d,parameters:f}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},J1=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=An(t||"meta"),n=Ij(r);return n?y.createElement(Bj,null,n):null},e3=Q1(NL()),zj=k.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Tj=k.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),Lj=k.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),Mj=({title:e})=>e===null?null:typeof e=="string"?y.createElement(Lj,null,e):e,Oj=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o,channel:i})=>(l.useEffect(()=>{if(t)return()=>{};let s={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(sC,`#${f}`)}},...o},c=setTimeout(()=>e3.init(s),100);return()=>{clearTimeout(c),e3.destroy()}},[i,t,a,n,r,o]),y.createElement(y.Fragment,null,y.createElement(zj,null,t?null:y.createElement(Tj,null,y.createElement(Mj,{title:e||null}),y.createElement("div",{className:"toc-wrapper"}))))),{document:Pj,window:Nj}=globalThis,$j=({context:e,theme:t,children:r})=>{var a,o,i,s,c;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(c=(s=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:s.docs)==null?void 0:c.toc}return l.useEffect(()=>{let d;try{if(d=new URL(Nj.parent.location.toString()),d.hash){let f=Pj.getElementById(decodeURIComponent(d.hash.substring(1)));f&&setTimeout(()=>{qN(f)},200)}}catch{}}),y.createElement(Zt.Provider,{value:e},y.createElement(dj,{channel:e.channel},y.createElement(z3,{theme:BS(t)},y.createElement(xM,{toc:n?y.createElement(Oj,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r)))