mastra 0.10.8 → 0.10.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DKHFKQWY.js → chunk-XOZCPWFM.js} +53 -61
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +10 -9
- package/package.json +7 -7
- package/src/playground/dist/assets/{index-Cg_1Lbq1.js → index-C4lv9KfJ.js} +1 -1
- package/src/playground/dist/assets/{index-CHSZcj-S.js → index-Cs8ajkc1.js} +1 -1
- package/src/playground/dist/assets/index-D3LTwm4S.js +758 -0
- package/src/playground/dist/assets/style-aRy29Ykg.css +1 -0
- package/src/playground/dist/index.html +2 -2
- package/src/playground/dist/assets/index-Cs4LVytb.js +0 -747
- package/src/playground/dist/assets/style-WBBM431T.css +0 -1
|
@@ -407,7 +407,7 @@ var getProviderImportAndModelItem = (llmProvider) => {
|
|
|
407
407
|
modelItem = `groq('llama-3.3-70b-versatile')`;
|
|
408
408
|
} else if (llmProvider === "google") {
|
|
409
409
|
providerImport = `import { google } from '${getAISDKPackage(llmProvider)}';`;
|
|
410
|
-
modelItem = `google('gemini-
|
|
410
|
+
modelItem = `google('gemini-2.5-pro-exp-03-25')`;
|
|
411
411
|
} else if (llmProvider === "cerebras") {
|
|
412
412
|
providerImport = `import { cerebras } from '${getAISDKPackage(llmProvider)}';`;
|
|
413
413
|
modelItem = `cerebras('llama-3.3-70b')`;
|
|
@@ -417,14 +417,16 @@ var getProviderImportAndModelItem = (llmProvider) => {
|
|
|
417
417
|
async function writeAgentSample(llmProvider, destPath, addExampleTool) {
|
|
418
418
|
const { providerImport, modelItem } = getProviderImportAndModelItem(llmProvider);
|
|
419
419
|
const instructions = `
|
|
420
|
-
You are a helpful weather assistant that provides accurate weather information.
|
|
420
|
+
You are a helpful weather assistant that provides accurate weather information and can help planning activities based on the weather.
|
|
421
421
|
|
|
422
422
|
Your primary function is to help users get weather details for specific locations. When responding:
|
|
423
423
|
- Always ask for a location if none is provided
|
|
424
|
-
- If the location name isn
|
|
424
|
+
- If the location name isn't in English, please translate it
|
|
425
425
|
- If giving a location with multiple parts (e.g. "New York, NY"), use the most relevant part (e.g. "New York")
|
|
426
426
|
- Include relevant details like humidity, wind conditions, and precipitation
|
|
427
427
|
- Keep responses concise but informative
|
|
428
|
+
- If the user asks for activities and provides the weather forecast, suggest activities based on the weather forecast.
|
|
429
|
+
- If the user asks for activities, respond in the format they request.
|
|
428
430
|
|
|
429
431
|
${addExampleTool ? "Use the weatherTool to fetch current weather data." : ""}
|
|
430
432
|
`;
|
|
@@ -454,63 +456,10 @@ export const weatherAgent = new Agent({
|
|
|
454
456
|
await fs4.writeFile(destPath, "");
|
|
455
457
|
await fs4.writeFile(destPath, formattedContent);
|
|
456
458
|
}
|
|
457
|
-
async function writeWorkflowSample(destPath
|
|
458
|
-
const {
|
|
459
|
-
const content = `${providerImport}
|
|
460
|
-
import { Agent } from '@mastra/core/agent';
|
|
461
|
-
import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
459
|
+
async function writeWorkflowSample(destPath) {
|
|
460
|
+
const content = `import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
462
461
|
import { z } from 'zod';
|
|
463
462
|
|
|
464
|
-
const llm = ${modelItem};
|
|
465
|
-
|
|
466
|
-
const agent = new Agent({
|
|
467
|
-
name: 'Weather Agent',
|
|
468
|
-
model: llm,
|
|
469
|
-
instructions: \`
|
|
470
|
-
You are a local activities and travel expert who excels at weather-based planning. Analyze the weather data and provide practical activity recommendations.
|
|
471
|
-
|
|
472
|
-
For each day in the forecast, structure your response exactly as follows:
|
|
473
|
-
|
|
474
|
-
\u{1F4C5} [Day, Month Date, Year]
|
|
475
|
-
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
476
|
-
|
|
477
|
-
\u{1F321}\uFE0F WEATHER SUMMARY
|
|
478
|
-
\u2022 Conditions: [brief description]
|
|
479
|
-
\u2022 Temperature: [X\xB0C/Y\xB0F to A\xB0C/B\xB0F]
|
|
480
|
-
\u2022 Precipitation: [X% chance]
|
|
481
|
-
|
|
482
|
-
\u{1F305} MORNING ACTIVITIES
|
|
483
|
-
Outdoor:
|
|
484
|
-
\u2022 [Activity Name] - [Brief description including specific location/route]
|
|
485
|
-
Best timing: [specific time range]
|
|
486
|
-
Note: [relevant weather consideration]
|
|
487
|
-
|
|
488
|
-
\u{1F31E} AFTERNOON ACTIVITIES
|
|
489
|
-
Outdoor:
|
|
490
|
-
\u2022 [Activity Name] - [Brief description including specific location/route]
|
|
491
|
-
Best timing: [specific time range]
|
|
492
|
-
Note: [relevant weather consideration]
|
|
493
|
-
|
|
494
|
-
\u{1F3E0} INDOOR ALTERNATIVES
|
|
495
|
-
\u2022 [Activity Name] - [Brief description including specific venue]
|
|
496
|
-
Ideal for: [weather condition that would trigger this alternative]
|
|
497
|
-
|
|
498
|
-
\u26A0\uFE0F SPECIAL CONSIDERATIONS
|
|
499
|
-
\u2022 [Any relevant weather warnings, UV index, wind conditions, etc.]
|
|
500
|
-
|
|
501
|
-
Guidelines:
|
|
502
|
-
- Suggest 2-3 time-specific outdoor activities per day
|
|
503
|
-
- Include 1-2 indoor backup options
|
|
504
|
-
- For precipitation >50%, lead with indoor activities
|
|
505
|
-
- All activities must be specific to the location
|
|
506
|
-
- Include specific venues, trails, or locations
|
|
507
|
-
- Consider activity intensity based on temperature
|
|
508
|
-
- Keep descriptions concise but informative
|
|
509
|
-
|
|
510
|
-
Maintain this exact formatting for consistency, using the emoji and section headers as shown.
|
|
511
|
-
\`,
|
|
512
|
-
});
|
|
513
|
-
|
|
514
463
|
const forecastSchema = z.object({
|
|
515
464
|
date: z.string(),
|
|
516
465
|
maxTemp: z.number(),
|
|
@@ -604,16 +553,59 @@ const planActivities = createStep({
|
|
|
604
553
|
outputSchema: z.object({
|
|
605
554
|
activities: z.string(),
|
|
606
555
|
}),
|
|
607
|
-
execute: async ({ inputData }) => {
|
|
556
|
+
execute: async ({ inputData, mastra }) => {
|
|
608
557
|
const forecast = inputData
|
|
609
558
|
|
|
610
559
|
if (!forecast) {
|
|
611
560
|
throw new Error('Forecast data not found')
|
|
612
561
|
}
|
|
613
562
|
|
|
563
|
+
const agent = mastra?.getAgent('weatherAgent');
|
|
564
|
+
if (!agent) {
|
|
565
|
+
throw new Error('Weather agent not found');
|
|
566
|
+
}
|
|
567
|
+
|
|
614
568
|
const prompt = \`Based on the following weather forecast for \${forecast.location}, suggest appropriate activities:
|
|
615
569
|
\${JSON.stringify(forecast, null, 2)}
|
|
616
|
-
|
|
570
|
+
For each day in the forecast, structure your response exactly as follows:
|
|
571
|
+
|
|
572
|
+
\u{1F4C5} [Day, Month Date, Year]
|
|
573
|
+
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
574
|
+
|
|
575
|
+
\u{1F321}\uFE0F WEATHER SUMMARY
|
|
576
|
+
\u2022 Conditions: [brief description]
|
|
577
|
+
\u2022 Temperature: [X\xB0C/Y\xB0F to A\xB0C/B\xB0F]
|
|
578
|
+
\u2022 Precipitation: [X% chance]
|
|
579
|
+
|
|
580
|
+
\u{1F305} MORNING ACTIVITIES
|
|
581
|
+
Outdoor:
|
|
582
|
+
\u2022 [Activity Name] - [Brief description including specific location/route]
|
|
583
|
+
Best timing: [specific time range]
|
|
584
|
+
Note: [relevant weather consideration]
|
|
585
|
+
|
|
586
|
+
\u{1F31E} AFTERNOON ACTIVITIES
|
|
587
|
+
Outdoor:
|
|
588
|
+
\u2022 [Activity Name] - [Brief description including specific location/route]
|
|
589
|
+
Best timing: [specific time range]
|
|
590
|
+
Note: [relevant weather consideration]
|
|
591
|
+
|
|
592
|
+
\u{1F3E0} INDOOR ALTERNATIVES
|
|
593
|
+
\u2022 [Activity Name] - [Brief description including specific venue]
|
|
594
|
+
Ideal for: [weather condition that would trigger this alternative]
|
|
595
|
+
|
|
596
|
+
\u26A0\uFE0F SPECIAL CONSIDERATIONS
|
|
597
|
+
\u2022 [Any relevant weather warnings, UV index, wind conditions, etc.]
|
|
598
|
+
|
|
599
|
+
Guidelines:
|
|
600
|
+
- Suggest 2-3 time-specific outdoor activities per day
|
|
601
|
+
- Include 1-2 indoor backup options
|
|
602
|
+
- For precipitation >50%, lead with indoor activities
|
|
603
|
+
- All activities must be specific to the location
|
|
604
|
+
- Include specific venues, trails, or locations
|
|
605
|
+
- Consider activity intensity based on temperature
|
|
606
|
+
- Keep descriptions concise but informative
|
|
607
|
+
|
|
608
|
+
Maintain this exact formatting for consistency, using the emoji and section headers as shown.\`;
|
|
617
609
|
|
|
618
610
|
const response = await agent.stream([
|
|
619
611
|
{
|
|
@@ -668,7 +660,7 @@ async function writeCodeSampleForComponents(llmprovider, component, destPath, im
|
|
|
668
660
|
case "tools":
|
|
669
661
|
return writeToolSample(destPath);
|
|
670
662
|
case "workflows":
|
|
671
|
-
return writeWorkflowSample(destPath
|
|
663
|
+
return writeWorkflowSample(destPath);
|
|
672
664
|
default:
|
|
673
665
|
return "";
|
|
674
666
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-XOZCPWFM.js';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-XOZCPWFM.js';
|
|
5
|
+
export { create } from './chunk-XOZCPWFM.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
import { getServerOptions, FileService as FileService$2, getWatcherInputOptions, writeTelemetryConfig, createWatcher } from '@mastra/deployer/build';
|
|
10
10
|
import { Bundler } from '@mastra/deployer/bundler';
|
|
11
11
|
import { getDeployer, FileService as FileService$1 } from '@mastra/deployer';
|
|
12
|
+
import process2 from 'process';
|
|
12
13
|
import { isWebContainer } from '@webcontainer/env';
|
|
13
14
|
import { execa } from 'execa';
|
|
14
15
|
import getPort from 'get-port';
|
|
@@ -306,7 +307,7 @@ var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
|
|
|
306
307
|
);
|
|
307
308
|
}
|
|
308
309
|
commands.push("index.mjs");
|
|
309
|
-
currentServerProcess = execa(
|
|
310
|
+
currentServerProcess = execa(process2.execPath, commands, {
|
|
310
311
|
cwd: dotMastraPath,
|
|
311
312
|
env: {
|
|
312
313
|
NODE_ENV: "production",
|
|
@@ -362,7 +363,7 @@ var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
|
|
|
362
363
|
errorRestartCount++;
|
|
363
364
|
if (errorRestartCount > ON_ERROR_MAX_RESTARTS) {
|
|
364
365
|
logger.error(`Server failed to start after ${ON_ERROR_MAX_RESTARTS} error attempts. Giving up.`);
|
|
365
|
-
|
|
366
|
+
process2.exit(1);
|
|
366
367
|
}
|
|
367
368
|
logger.error(
|
|
368
369
|
`Attempting to restart server after error... (Attempt ${errorRestartCount}/${ON_ERROR_MAX_RESTARTS})`
|
|
@@ -395,8 +396,8 @@ async function dev({
|
|
|
395
396
|
tools,
|
|
396
397
|
env
|
|
397
398
|
}) {
|
|
398
|
-
const rootDir = root ||
|
|
399
|
-
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(
|
|
399
|
+
const rootDir = root || process2.cwd();
|
|
400
|
+
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(process2.cwd(), dir2) : join(process2.cwd(), "src", "mastra");
|
|
400
401
|
const dotMastraPath = join(rootDir, ".mastra");
|
|
401
402
|
const defaultToolsPath = join(mastraDir, "tools/**/*.{js,ts}");
|
|
402
403
|
const discoveredTools = [defaultToolsPath, ...tools || []];
|
|
@@ -408,7 +409,7 @@ async function dev({
|
|
|
408
409
|
const watcher = await bundler.watch(entryFile, dotMastraPath, discoveredTools);
|
|
409
410
|
const loadedEnv = await bundler.loadEnvVars();
|
|
410
411
|
const serverOptions = await getServerOptions(entryFile, join(dotMastraPath, "output"));
|
|
411
|
-
let portToUse = port ?? serverOptions?.port ??
|
|
412
|
+
let portToUse = port ?? serverOptions?.port ?? process2.env.PORT;
|
|
412
413
|
if (!portToUse || isNaN(Number(portToUse))) {
|
|
413
414
|
const portList = Array.from({ length: 21 }, (_, i) => 4111 + i);
|
|
414
415
|
portToUse = String(
|
|
@@ -424,14 +425,14 @@ async function dev({
|
|
|
424
425
|
rebundleAndRestart(dotMastraPath, Number(portToUse), bundler);
|
|
425
426
|
}
|
|
426
427
|
});
|
|
427
|
-
|
|
428
|
+
process2.on("SIGINT", () => {
|
|
428
429
|
logger.info("[Mastra Dev] - Stopping server...");
|
|
429
430
|
if (currentServerProcess) {
|
|
430
431
|
currentServerProcess.kill();
|
|
431
432
|
}
|
|
432
433
|
watcher.close().catch(() => {
|
|
433
434
|
}).finally(() => {
|
|
434
|
-
|
|
435
|
+
process2.exit(0);
|
|
435
436
|
});
|
|
436
437
|
});
|
|
437
438
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9-alpha.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"yocto-spinner": "^0.2.3",
|
|
76
76
|
"zod": "^3.25.67",
|
|
77
77
|
"zod-to-json-schema": "^3.24.5",
|
|
78
|
-
"@mastra/deployer": "^0.10.
|
|
78
|
+
"@mastra/deployer": "^0.10.9-alpha.0",
|
|
79
79
|
"@mastra/loggers": "^0.10.2",
|
|
80
80
|
"@mastra/mcp": "^0.10.5"
|
|
81
81
|
},
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"tsup": "^8.5.0",
|
|
95
95
|
"type-fest": "^4.41.0",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
|
-
"vitest": "^3.2.
|
|
98
|
-
"@
|
|
99
|
-
"@mastra/
|
|
100
|
-
"@mastra/core": "0.10.
|
|
101
|
-
"@
|
|
97
|
+
"vitest": "^3.2.4",
|
|
98
|
+
"@mastra/client-js": "0.10.8-alpha.0",
|
|
99
|
+
"@mastra/playground-ui": "5.1.9-alpha.0",
|
|
100
|
+
"@mastra/core": "0.10.9-alpha.0",
|
|
101
|
+
"@internal/lint": "0.0.15"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"@mastra/core": "^0.10.2-alpha.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ve,g as Lp}from"./index-Cs4LVytb.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1
|
+
import{d as ve,g as Lp}from"./index-D3LTwm4S.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|