@vue/compiler-dom 3.0.7 → 3.0.11
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/compiler-dom.cjs.js +11 -10
- package/dist/compiler-dom.cjs.prod.js +11 -10
- package/dist/compiler-dom.esm-browser.js +109 -33
- package/dist/compiler-dom.esm-browser.prod.js +1 -1
- package/dist/compiler-dom.global.js +109 -33
- package/dist/compiler-dom.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/compiler-dom.cjs.js
CHANGED
|
@@ -2785,9 +2785,8 @@ function hasMultipleChildren(node) {
|
|
|
2785
2785
|
* This optimization is only performed in Node.js.
|
|
2786
2786
|
*/
|
|
2787
2787
|
const stringifyStatic = (children, context, parent) => {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
parent.tagType === 3 /* TEMPLATE */)) {
|
|
2788
|
+
// bail stringification for slot content
|
|
2789
|
+
if (context.scopes.vSlot > 0) {
|
|
2791
2790
|
return;
|
|
2792
2791
|
}
|
|
2793
2792
|
let nc = 0; // current node count
|
|
@@ -2956,14 +2955,16 @@ function stringifyElement(node, context) {
|
|
|
2956
2955
|
else if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind') {
|
|
2957
2956
|
// constant v-bind, e.g. :foo="1"
|
|
2958
2957
|
let evaluated = evaluateConstant(p.exp);
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2958
|
+
if (evaluated != null) {
|
|
2959
|
+
const arg = p.arg && p.arg.content;
|
|
2960
|
+
if (arg === 'class') {
|
|
2961
|
+
evaluated = shared.normalizeClass(evaluated);
|
|
2962
|
+
}
|
|
2963
|
+
else if (arg === 'style') {
|
|
2964
|
+
evaluated = shared.stringifyStyle(shared.normalizeStyle(evaluated));
|
|
2965
|
+
}
|
|
2966
|
+
res += ` ${p.arg.content}="${shared.escapeHtml(evaluated)}"`;
|
|
2965
2967
|
}
|
|
2966
|
-
res += ` ${p.arg.content}="${shared.escapeHtml(evaluated)}"`;
|
|
2967
2968
|
}
|
|
2968
2969
|
}
|
|
2969
2970
|
if (context.scopeId) {
|
|
@@ -2743,9 +2743,8 @@ const transformShow = (dir, node, context) => {
|
|
|
2743
2743
|
* This optimization is only performed in Node.js.
|
|
2744
2744
|
*/
|
|
2745
2745
|
const stringifyStatic = (children, context, parent) => {
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
parent.tagType === 3 /* TEMPLATE */)) {
|
|
2746
|
+
// bail stringification for slot content
|
|
2747
|
+
if (context.scopes.vSlot > 0) {
|
|
2749
2748
|
return;
|
|
2750
2749
|
}
|
|
2751
2750
|
let nc = 0; // current node count
|
|
@@ -2914,14 +2913,16 @@ function stringifyElement(node, context) {
|
|
|
2914
2913
|
else if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind') {
|
|
2915
2914
|
// constant v-bind, e.g. :foo="1"
|
|
2916
2915
|
let evaluated = evaluateConstant(p.exp);
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2916
|
+
if (evaluated != null) {
|
|
2917
|
+
const arg = p.arg && p.arg.content;
|
|
2918
|
+
if (arg === 'class') {
|
|
2919
|
+
evaluated = shared.normalizeClass(evaluated);
|
|
2920
|
+
}
|
|
2921
|
+
else if (arg === 'style') {
|
|
2922
|
+
evaluated = shared.stringifyStyle(shared.normalizeStyle(evaluated));
|
|
2923
|
+
}
|
|
2924
|
+
res += ` ${p.arg.content}="${shared.escapeHtml(evaluated)}"`;
|
|
2923
2925
|
}
|
|
2924
|
-
res += ` ${p.arg.content}="${shared.escapeHtml(evaluated)}"`;
|
|
2925
2926
|
}
|
|
2926
2927
|
}
|
|
2927
2928
|
if (context.scopeId) {
|
|
@@ -507,7 +507,7 @@ function isCoreComponent(tag) {
|
|
|
507
507
|
}
|
|
508
508
|
const nonIdentifierRE = /^\d|[^\$\w]/;
|
|
509
509
|
const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
510
|
-
const memberExpRE = /^[A-Za-z_
|
|
510
|
+
const memberExpRE = /^[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*(?:\s*\.\s*[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*|\[[^\]]+\])*$/;
|
|
511
511
|
const isMemberExpression = (path) => {
|
|
512
512
|
if (!path)
|
|
513
513
|
return false;
|
|
@@ -836,7 +836,7 @@ function parseChildren(context, mode, ancestors) {
|
|
|
836
836
|
// Whitespace management for more efficient output
|
|
837
837
|
// (same as v2 whitespace: 'condense')
|
|
838
838
|
let removedWhitespace = false;
|
|
839
|
-
if (mode !== 2 /* RAWTEXT */) {
|
|
839
|
+
if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {
|
|
840
840
|
for (let i = 0; i < nodes.length; i++) {
|
|
841
841
|
const node = nodes[i];
|
|
842
842
|
if (!context.inPre && node.type === 2 /* TEXT */) {
|
|
@@ -1146,7 +1146,7 @@ function parseAttribute(context, nameSet) {
|
|
|
1146
1146
|
let arg;
|
|
1147
1147
|
if (match[2]) {
|
|
1148
1148
|
const isSlot = dirName === 'slot';
|
|
1149
|
-
const startOffset = name.
|
|
1149
|
+
const startOffset = name.lastIndexOf(match[2]);
|
|
1150
1150
|
const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));
|
|
1151
1151
|
let content = match[2];
|
|
1152
1152
|
let isStatic = true;
|
|
@@ -1467,7 +1467,14 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
// walk further
|
|
1469
1469
|
if (child.type === 1 /* ELEMENT */) {
|
|
1470
|
+
const isComponent = child.tagType === 1 /* COMPONENT */;
|
|
1471
|
+
if (isComponent) {
|
|
1472
|
+
context.scopes.vSlot++;
|
|
1473
|
+
}
|
|
1470
1474
|
walk(child, context);
|
|
1475
|
+
if (isComponent) {
|
|
1476
|
+
context.scopes.vSlot--;
|
|
1477
|
+
}
|
|
1471
1478
|
}
|
|
1472
1479
|
else if (child.type === 11 /* FOR */) {
|
|
1473
1480
|
// Do not hoist v-for single child because it has to be a block
|
|
@@ -1549,6 +1556,8 @@ function getConstantType(node, context) {
|
|
|
1549
1556
|
// static then they don't need to be blocks since there will be no
|
|
1550
1557
|
// nested updates.
|
|
1551
1558
|
if (codegenNode.isBlock) {
|
|
1559
|
+
context.removeHelper(OPEN_BLOCK);
|
|
1560
|
+
context.removeHelper(CREATE_BLOCK);
|
|
1552
1561
|
codegenNode.isBlock = false;
|
|
1553
1562
|
context.helper(CREATE_VNODE);
|
|
1554
1563
|
}
|
|
@@ -1630,7 +1639,7 @@ function getPatchFlag(node) {
|
|
|
1630
1639
|
return flag ? parseInt(flag, 10) : undefined;
|
|
1631
1640
|
}
|
|
1632
1641
|
|
|
1633
|
-
function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, ssr = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError }) {
|
|
1642
|
+
function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError }) {
|
|
1634
1643
|
const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
|
|
1635
1644
|
const context = {
|
|
1636
1645
|
// options
|
|
@@ -1645,6 +1654,7 @@ function createTransformContext(root, { filename = '', prefixIdentifiers = false
|
|
|
1645
1654
|
isCustomElement,
|
|
1646
1655
|
expressionPlugins,
|
|
1647
1656
|
scopeId,
|
|
1657
|
+
slotted,
|
|
1648
1658
|
ssr,
|
|
1649
1659
|
ssrCssVars,
|
|
1650
1660
|
bindingMetadata,
|
|
@@ -1653,7 +1663,7 @@ function createTransformContext(root, { filename = '', prefixIdentifiers = false
|
|
|
1653
1663
|
onError,
|
|
1654
1664
|
// state
|
|
1655
1665
|
root,
|
|
1656
|
-
helpers: new
|
|
1666
|
+
helpers: new Map(),
|
|
1657
1667
|
components: new Set(),
|
|
1658
1668
|
directives: new Set(),
|
|
1659
1669
|
hoists: [],
|
|
@@ -1673,9 +1683,22 @@ function createTransformContext(root, { filename = '', prefixIdentifiers = false
|
|
|
1673
1683
|
childIndex: 0,
|
|
1674
1684
|
// methods
|
|
1675
1685
|
helper(name) {
|
|
1676
|
-
context.helpers.
|
|
1686
|
+
const count = context.helpers.get(name) || 0;
|
|
1687
|
+
context.helpers.set(name, count + 1);
|
|
1677
1688
|
return name;
|
|
1678
1689
|
},
|
|
1690
|
+
removeHelper(name) {
|
|
1691
|
+
const count = context.helpers.get(name);
|
|
1692
|
+
if (count) {
|
|
1693
|
+
const currentCount = count - 1;
|
|
1694
|
+
if (!currentCount) {
|
|
1695
|
+
context.helpers.delete(name);
|
|
1696
|
+
}
|
|
1697
|
+
else {
|
|
1698
|
+
context.helpers.set(name, currentCount);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1679
1702
|
helperString(name) {
|
|
1680
1703
|
return `_${helperNameMap[context.helper(name)]}`;
|
|
1681
1704
|
},
|
|
@@ -1746,7 +1769,7 @@ function transform(root, options) {
|
|
|
1746
1769
|
createRootCodegen(root, context);
|
|
1747
1770
|
}
|
|
1748
1771
|
// finalize meta information
|
|
1749
|
-
root.helpers = [...context.helpers];
|
|
1772
|
+
root.helpers = [...context.helpers.keys()];
|
|
1750
1773
|
root.components = [...context.components];
|
|
1751
1774
|
root.directives = [...context.directives];
|
|
1752
1775
|
root.imports = context.imports;
|
|
@@ -1755,7 +1778,7 @@ function transform(root, options) {
|
|
|
1755
1778
|
root.cached = context.cached;
|
|
1756
1779
|
}
|
|
1757
1780
|
function createRootCodegen(root, context) {
|
|
1758
|
-
const { helper } = context;
|
|
1781
|
+
const { helper, removeHelper } = context;
|
|
1759
1782
|
const { children } = root;
|
|
1760
1783
|
if (children.length === 1) {
|
|
1761
1784
|
const child = children[0];
|
|
@@ -1765,9 +1788,12 @@ function createRootCodegen(root, context) {
|
|
|
1765
1788
|
// SimpleExpressionNode
|
|
1766
1789
|
const codegenNode = child.codegenNode;
|
|
1767
1790
|
if (codegenNode.type === 13 /* VNODE_CALL */) {
|
|
1768
|
-
codegenNode.isBlock
|
|
1769
|
-
|
|
1770
|
-
|
|
1791
|
+
if (!codegenNode.isBlock) {
|
|
1792
|
+
removeHelper(CREATE_VNODE);
|
|
1793
|
+
codegenNode.isBlock = true;
|
|
1794
|
+
helper(OPEN_BLOCK);
|
|
1795
|
+
helper(CREATE_BLOCK);
|
|
1796
|
+
}
|
|
1771
1797
|
}
|
|
1772
1798
|
root.codegenNode = codegenNode;
|
|
1773
1799
|
}
|
|
@@ -2061,8 +2087,13 @@ function genFunctionPreamble(ast, context) {
|
|
|
2061
2087
|
function genAssets(assets, type, { helper, push, newline }) {
|
|
2062
2088
|
const resolver = helper(type === 'component' ? RESOLVE_COMPONENT : RESOLVE_DIRECTIVE);
|
|
2063
2089
|
for (let i = 0; i < assets.length; i++) {
|
|
2064
|
-
|
|
2065
|
-
|
|
2090
|
+
let id = assets[i];
|
|
2091
|
+
// potential component implicit self-reference inferred from SFC filename
|
|
2092
|
+
const maybeSelfReference = id.endsWith('__self');
|
|
2093
|
+
if (maybeSelfReference) {
|
|
2094
|
+
id = id.slice(0, -6);
|
|
2095
|
+
}
|
|
2096
|
+
push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})`);
|
|
2066
2097
|
if (i < assets.length - 1) {
|
|
2067
2098
|
newline();
|
|
2068
2099
|
}
|
|
@@ -2336,6 +2367,7 @@ function genFunctionExpression(node, context) {
|
|
|
2336
2367
|
const { push, indent, deindent, scopeId, mode } = context;
|
|
2337
2368
|
const { params, returns, body, newline, isSlot } = node;
|
|
2338
2369
|
if (isSlot) {
|
|
2370
|
+
// wrap slot functions with owner context
|
|
2339
2371
|
push(`_${helperNameMap[WITH_CTX]}(`);
|
|
2340
2372
|
}
|
|
2341
2373
|
push(`(`, node);
|
|
@@ -2644,7 +2676,7 @@ function createCodegenNodeForBranch(branch, keyIndex, context) {
|
|
|
2644
2676
|
}
|
|
2645
2677
|
}
|
|
2646
2678
|
function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
2647
|
-
const { helper } = context;
|
|
2679
|
+
const { helper, removeHelper } = context;
|
|
2648
2680
|
const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
|
|
2649
2681
|
const { children } = branch;
|
|
2650
2682
|
const firstChild = children[0];
|
|
@@ -2657,16 +2689,23 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
2657
2689
|
return vnodeCall;
|
|
2658
2690
|
}
|
|
2659
2691
|
else {
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2692
|
+
let patchFlag = 64 /* STABLE_FRAGMENT */;
|
|
2693
|
+
let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];
|
|
2694
|
+
// check if the fragment actually contains a single valid child with
|
|
2695
|
+
// the rest being comments
|
|
2696
|
+
if (children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
|
|
2697
|
+
patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
|
|
2698
|
+
patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;
|
|
2699
|
+
}
|
|
2700
|
+
return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (` /* ${patchFlagText} */` ), undefined, undefined, true, false, branch.loc);
|
|
2663
2701
|
}
|
|
2664
2702
|
}
|
|
2665
2703
|
else {
|
|
2666
2704
|
const vnodeCall = firstChild
|
|
2667
2705
|
.codegenNode;
|
|
2668
2706
|
// Change createVNode to createBlock.
|
|
2669
|
-
if (vnodeCall.type === 13 /* VNODE_CALL */) {
|
|
2707
|
+
if (vnodeCall.type === 13 /* VNODE_CALL */ && !vnodeCall.isBlock) {
|
|
2708
|
+
removeHelper(CREATE_VNODE);
|
|
2670
2709
|
vnodeCall.isBlock = true;
|
|
2671
2710
|
helper(OPEN_BLOCK);
|
|
2672
2711
|
helper(CREATE_BLOCK);
|
|
@@ -2717,7 +2756,7 @@ function getParentCondition(node) {
|
|
|
2717
2756
|
}
|
|
2718
2757
|
|
|
2719
2758
|
const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {
|
|
2720
|
-
const { helper } = context;
|
|
2759
|
+
const { helper, removeHelper } = context;
|
|
2721
2760
|
return processFor(node, dir, context, forNode => {
|
|
2722
2761
|
// create the loop render function expression now, and add the
|
|
2723
2762
|
// iterator on exit after all children have been traversed
|
|
@@ -2789,6 +2828,17 @@ const transformFor = createStructuralDirectiveTransform('for', (node, dir, conte
|
|
|
2789
2828
|
if (isTemplate && keyProperty) {
|
|
2790
2829
|
injectProp(childBlock, keyProperty, context);
|
|
2791
2830
|
}
|
|
2831
|
+
if (childBlock.isBlock !== !isStableFragment) {
|
|
2832
|
+
if (childBlock.isBlock) {
|
|
2833
|
+
// switch from block to vnode
|
|
2834
|
+
removeHelper(OPEN_BLOCK);
|
|
2835
|
+
removeHelper(CREATE_BLOCK);
|
|
2836
|
+
}
|
|
2837
|
+
else {
|
|
2838
|
+
// switch from vnode to block
|
|
2839
|
+
removeHelper(CREATE_VNODE);
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2792
2842
|
childBlock.isBlock = !isStableFragment;
|
|
2793
2843
|
if (childBlock.isBlock) {
|
|
2794
2844
|
helper(OPEN_BLOCK);
|
|
@@ -3133,12 +3183,23 @@ function buildDynamicSlot(name, fn) {
|
|
|
3133
3183
|
function hasForwardedSlots(children) {
|
|
3134
3184
|
for (let i = 0; i < children.length; i++) {
|
|
3135
3185
|
const child = children[i];
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
(child.tagType ===
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3186
|
+
switch (child.type) {
|
|
3187
|
+
case 1 /* ELEMENT */:
|
|
3188
|
+
if (child.tagType === 2 /* SLOT */ ||
|
|
3189
|
+
(child.tagType === 0 /* ELEMENT */ &&
|
|
3190
|
+
hasForwardedSlots(child.children))) {
|
|
3191
|
+
return true;
|
|
3192
|
+
}
|
|
3193
|
+
break;
|
|
3194
|
+
case 9 /* IF */:
|
|
3195
|
+
if (hasForwardedSlots(child.branches))
|
|
3196
|
+
return true;
|
|
3197
|
+
break;
|
|
3198
|
+
case 10 /* IF_BRANCH */:
|
|
3199
|
+
case 11 /* FOR */:
|
|
3200
|
+
if (hasForwardedSlots(child.children))
|
|
3201
|
+
return true;
|
|
3202
|
+
break;
|
|
3142
3203
|
}
|
|
3143
3204
|
}
|
|
3144
3205
|
return false;
|
|
@@ -3149,14 +3210,15 @@ function hasForwardedSlots(children) {
|
|
|
3149
3210
|
const directiveImportMap = new WeakMap();
|
|
3150
3211
|
// generate a JavaScript AST for this element's codegen
|
|
3151
3212
|
const transformElement = (node, context) => {
|
|
3152
|
-
if (!(node.type === 1 /* ELEMENT */ &&
|
|
3153
|
-
(node.tagType === 0 /* ELEMENT */ ||
|
|
3154
|
-
node.tagType === 1 /* COMPONENT */))) {
|
|
3155
|
-
return;
|
|
3156
|
-
}
|
|
3157
3213
|
// perform the work on exit, after all child expressions have been
|
|
3158
3214
|
// processed and merged.
|
|
3159
3215
|
return function postTransformElement() {
|
|
3216
|
+
node = context.currentNode;
|
|
3217
|
+
if (!(node.type === 1 /* ELEMENT */ &&
|
|
3218
|
+
(node.tagType === 0 /* ELEMENT */ ||
|
|
3219
|
+
node.tagType === 1 /* COMPONENT */))) {
|
|
3220
|
+
return;
|
|
3221
|
+
}
|
|
3160
3222
|
const { tag, props } = node;
|
|
3161
3223
|
const isComponent = node.tagType === 1 /* COMPONENT */;
|
|
3162
3224
|
// The goal of the transform is to create a codegenNode implementing the
|
|
@@ -3280,7 +3342,9 @@ const transformElement = (node, context) => {
|
|
|
3280
3342
|
function resolveComponentType(node, context, ssr = false) {
|
|
3281
3343
|
const { tag } = node;
|
|
3282
3344
|
// 1. dynamic component
|
|
3283
|
-
const isProp =
|
|
3345
|
+
const isProp = isComponentTag(tag)
|
|
3346
|
+
? findProp(node, 'is')
|
|
3347
|
+
: findDir(node, 'is');
|
|
3284
3348
|
if (isProp) {
|
|
3285
3349
|
const exp = isProp.type === 6 /* ATTRIBUTE */
|
|
3286
3350
|
? isProp.value && createSimpleExpression(isProp.value.content, true)
|
|
@@ -3372,7 +3436,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3372
3436
|
hasRef = true;
|
|
3373
3437
|
}
|
|
3374
3438
|
// skip :is on <component>
|
|
3375
|
-
if (name === 'is' && tag
|
|
3439
|
+
if (name === 'is' && isComponentTag(tag)) {
|
|
3376
3440
|
continue;
|
|
3377
3441
|
}
|
|
3378
3442
|
properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
|
|
@@ -3395,7 +3459,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3395
3459
|
}
|
|
3396
3460
|
// skip v-is and :is on <component>
|
|
3397
3461
|
if (name === 'is' ||
|
|
3398
|
-
(isBind && tag
|
|
3462
|
+
(isBind && isComponentTag(tag) && isBindKey(arg, 'is'))) {
|
|
3399
3463
|
continue;
|
|
3400
3464
|
}
|
|
3401
3465
|
// skip v-on in SSR compilation
|
|
@@ -3578,6 +3642,9 @@ function stringifyDynamicPropNames(props) {
|
|
|
3578
3642
|
propsNamesString += ', ';
|
|
3579
3643
|
}
|
|
3580
3644
|
return propsNamesString + `]`;
|
|
3645
|
+
}
|
|
3646
|
+
function isComponentTag(tag) {
|
|
3647
|
+
return tag[0].toLowerCase() + tag.slice(1) === 'component';
|
|
3581
3648
|
}
|
|
3582
3649
|
|
|
3583
3650
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -3597,6 +3664,15 @@ const transformSlotOutlet = (node, context) => {
|
|
|
3597
3664
|
}
|
|
3598
3665
|
slotArgs.push(createFunctionExpression([], children, false, false, loc));
|
|
3599
3666
|
}
|
|
3667
|
+
if (context.scopeId && !context.slotted) {
|
|
3668
|
+
if (!slotProps) {
|
|
3669
|
+
slotArgs.push(`{}`);
|
|
3670
|
+
}
|
|
3671
|
+
if (!children.length) {
|
|
3672
|
+
slotArgs.push(`undefined`);
|
|
3673
|
+
}
|
|
3674
|
+
slotArgs.push(`true`);
|
|
3675
|
+
}
|
|
3600
3676
|
node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
|
|
3601
3677
|
}
|
|
3602
3678
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e,t=0,n=e.length){const o=e.split(/\r?\n/);let r=0;const s=[];for(let c=0;c<o.length;c++)if(r+=o[c].length+1,r>=t){for(let e=c-2;e<=c+2||n>r;e++){if(e<0||e>=o.length)continue;const i=e+1;s.push(`${i}${" ".repeat(Math.max(3-String(i).length,0))}| ${o[e]}`);const l=o[e].length;if(e===c){const e=t-(r-l)+1,o=Math.max(1,n>r?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>r){const e=Math.max(Math.min(n-r,l),1);s.push(" | "+"^".repeat(e))}r+=l+1}}break}return s.join("\n")}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),i={},l=()=>{},p=()=>!1,u=/^on[^a-z]/,a=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,b=y(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),x=/\B([A-Z])/g,S=y(e=>e.replace(x,"-$1").toLowerCase()),k=y(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=y(e=>e?"on"+k(e):"");function T(e){throw e}function w(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const $=Symbol(""),_=Symbol(""),C=Symbol(""),M=Symbol(""),O=Symbol(""),I=Symbol(""),P=Symbol(""),V=Symbol(""),B=Symbol(""),E=Symbol(""),L=Symbol(""),j=Symbol(""),R=Symbol(""),A=Symbol(""),F=Symbol(""),D=Symbol(""),H=Symbol(""),U=Symbol(""),z=Symbol(""),J=Symbol(""),G=Symbol(""),q=Symbol(""),K=Symbol(""),W=Symbol(""),Z=Symbol(""),Q=Symbol(""),Y=Symbol(""),X=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe={[$]:"Fragment",[_]:"Teleport",[C]:"Suspense",[M]:"KeepAlive",[O]:"BaseTransition",[I]:"openBlock",[P]:"createBlock",[V]:"createVNode",[B]:"createCommentVNode",[E]:"createTextVNode",[L]:"createStaticVNode",[j]:"resolveComponent",[R]:"resolveDynamicComponent",[A]:"resolveDirective",[F]:"withDirectives",[D]:"renderList",[H]:"renderSlot",[U]:"createSlots",[z]:"toDisplayString",[J]:"mergeProps",[G]:"toHandlers",[q]:"camelize",[K]:"capitalize",[W]:"toHandlerKey",[Z]:"setBlockTracking",[Q]:"pushScopeId",[Y]:"popScopeId",[X]:"withScopeId",[ee]:"withCtx",[te]:"unref",[ne]:"isRef"};function re(e){Object.getOwnPropertySymbols(e).forEach(t=>{oe[t]=e[t]})}const se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ce(e,t=se){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ie(e,t,n,o,r,s,c,i=!1,l=!1,p=se){return e&&(i?(e.helper(I),e.helper(P)):e.helper(V),c&&e.helper(F)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:c,isBlock:i,disableTracking:l,loc:p}}function le(e,t=se){return{type:17,loc:t,elements:e}}function pe(e,t=se){return{type:15,loc:t,properties:e}}function ue(e,t){return{type:16,loc:se,key:d(e)?ae(e,!0):e,value:t}}function ae(e,t,n=se,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function fe(e,t){return{type:5,loc:t,content:d(e)?ae(e,!1,t):e}}function de(e,t=se){return{type:8,loc:t,children:e}}function he(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function me(e,t,n=!1,o=!1,r=se){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function ge(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:se}}function ye(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:se}}function ve(e){return{type:21,body:e,loc:se}}function be(e){return{type:22,elements:e,loc:se}}function xe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:se}}function Se(e,t){return{type:24,left:e,right:t,loc:se}}function ke(e){return{type:25,expressions:e,loc:se}}function Ne(e){return{type:26,returns:e,loc:se}}const Te=e=>4===e.type&&e.isStatic,we=(e,t)=>e===t||e===S(t);function $e(e){return we(e,"Teleport")?_:we(e,"Suspense")?C:we(e,"KeepAlive")?M:we(e,"BaseTransition")?O:void 0}const _e=/^\d|[^\$\w]/,Ce=e=>!_e.test(e),Me=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,Oe=e=>!!e&&Me.test(e.trim());function Ie(e,t,n){const o={source:e.source.substr(t,n),start:Pe(e.start,e.source,t),end:e.end};return null!=n&&(o.end=Pe(e.start,e.source,t+n)),o}function Pe(e,t,n=t.length){return Ve(a({},e),t,n)}function Ve(e,t,n=t.length){let o=0,r=-1;for(let s=0;s<n;s++)10===t.charCodeAt(s)&&(o++,r=s);return e.offset+=n,e.line+=o,e.column=-1===r?e.column+n:n-r,e}function Be(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Ee(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(n||r.exp)&&(d(t)?r.name===t:t.test(r.name)))return r}}function Le(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||o))return s}else if("bind"===s.name&&(s.exp||o)&&je(s.arg,t))return s}}function je(e,t){return!(!e||!Te(e)||e.content!==t)}function Re(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function Ae(e){return 5===e.type||2===e.type}function Fe(e){return 7===e.type&&"slot"===e.name}function De(e){return 1===e.type&&3===e.tagType}function He(e){return 1===e.type&&2===e.tagType}function Ue(e,t,n){let o;const r=13===e.type?e.props:e.arguments[2];if(null==r||d(r))o=pe([t]);else if(14===r.type){const e=r.arguments[0];d(e)||15!==e.type?r.callee===G?o=he(n.helper(J),[pe([t]),r]):r.arguments.unshift(pe([t])):e.properties.unshift(t),!o&&(o=r)}else if(15===r.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=r.properties.some(e=>4===e.key.type&&e.key.content===n)}e||r.properties.unshift(t),o=r}else o=he(n.helper(J),[pe([t]),r]);13===e.type?e.props=o:e.arguments[2]=o}function ze(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}function Je(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&(Je(o.arg,t)||Je(o.exp,t)))return!0}return e.children.some(e=>Je(e,t));case 11:return!!Je(e.source,t)||e.children.some(e=>Je(e,t));case 9:return e.branches.some(e=>Je(e,t));case 10:return!!Je(e.condition,t)||e.children.some(e=>Je(e,t));case 4:return!e.isStatic&&Ce(e.content)&&!!t[e.content];case 8:return e.children.some(e=>m(e)&&Je(e,t));case 5:case 12:return Je(e.content,t);case 2:case 3:default:return!1}}const Ge=/&(gt|lt|amp|apos|quot);/g,qe={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ke={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:p,isPreTag:p,isCustomElement:p,decodeEntities:e=>e.replace(Ge,(e,t)=>qe[t]),onError:T,comments:!1};function We(e,t={}){const n=function(e,t){const n=a({},Ke);for(const o in t)n[o]=t[o]||Ke[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),o=pt(n);return ce(Ze(n,0,[]),ut(n,o))}function Ze(e,t,n){const o=at(n),r=o?o.ns:0,s=[];for(;!gt(e,t,n);){const c=e.source;let i=void 0;if(0===t||1===t)if(!e.inVPre&&ft(c,e.options.delimiters[0]))i=ct(e,t);else if(0===t&&"<"===c[0])if(1===c.length);else if("!"===c[1])i=ft(c,"\x3c!--")?Xe(e):ft(c,"<!DOCTYPE")?et(e):ft(c,"<![CDATA[")&&0!==r?Ye(e,n):et(e);else if("/"===c[1])if(2===c.length);else{if(">"===c[2]){dt(e,3);continue}if(/[a-z]/i.test(c[2])){ot(e,1,o);continue}i=et(e)}else/[a-z]/i.test(c[1])?i=tt(e,n):"?"===c[1]&&(i=et(e));if(i||(i=it(e,t)),f(i))for(let e=0;e<i.length;e++)Qe(s,i[e]);else Qe(s,i)}let c=!1;if(2!==t){for(let t=0;t<s.length;t++){const n=s[t];if(!e.inPre&&2===n.type)if(/[^\t\r\n\f ]/.test(n.content))n.content=n.content.replace(/[\t\r\n\f ]+/g," ");else{const e=s[t-1],o=s[t+1];!e||!o||3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(n.content)?(c=!0,s[t]=null):n.content=" "}3!==n.type||e.options.comments||(c=!0,s[t]=null)}if(e.inPre&&o&&e.options.isPreTag(o.tag)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return c?s.filter(Boolean):s}function Qe(e,t){if(2===t.type){const n=at(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Ye(e,t){dt(e,9);const n=Ze(e,3,t);return 0===e.source.length||dt(e,3),n}function Xe(e){const t=pt(e);let n;const o=/--(\!)?>/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)dt(e,s-r+1),r=s+1;dt(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),dt(e,e.source.length);return{type:3,content:n,loc:ut(e,t)}}function et(e){const t=pt(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),dt(e,e.source.length)):(o=e.source.slice(n,r),dt(e,r+1)),{type:3,content:o,loc:ut(e,t)}}function tt(e,t){const n=e.inPre,o=e.inVPre,r=at(t),s=ot(e,0,r),c=e.inPre&&!n,i=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return s;t.push(s);const l=e.options.getTextMode(s,r),p=Ze(e,l,t);if(t.pop(),s.children=p,yt(e.source,s.tag))ot(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=p[0];e&&ft(e.loc.source,"\x3c!--")}return s.loc=ut(e,s.loc.start),c&&(e.inPre=!1),i&&(e.inVPre=!1),s}const nt=e("if,else,else-if,for,slot");function ot(e,t,n){const o=pt(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],c=e.options.getNamespace(s,n);dt(e,r[0].length),ht(e);const i=pt(e),l=e.source;let p=rt(e,t);e.options.isPreTag(s)&&(e.inPre=!0),!e.inVPre&&p.some(e=>7===e.type&&"pre"===e.name)&&(e.inVPre=!0,a(e,i),e.source=l,p=rt(e,t).filter(e=>"v-pre"!==e.name));let u=!1;0===e.source.length||(u=ft(e.source,"/>"),dt(e,u?2:1));let f=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(s)){const e=p.some(e=>7===e.type&&"is"===e.name);d.isNativeTag&&!e?d.isNativeTag(s)||(f=1):(e||$e(s)||d.isBuiltInComponent&&d.isBuiltInComponent(s)||/^[A-Z]/.test(s)||"component"===s)&&(f=1),"slot"===s?f=2:"template"===s&&p.some(e=>7===e.type&&nt(e.name))&&(f=3)}return{type:1,ns:c,tag:s,tagType:f,props:p,isSelfClosing:u,children:[],loc:ut(e,o),codegenNode:void 0}}function rt(e,t){const n=[],o=new Set;for(;e.source.length>0&&!ft(e.source,">")&&!ft(e.source,"/>");){if(ft(e.source,"/")){dt(e,1),ht(e);continue}const r=st(e,o);0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),ht(e)}return n}function st(e,t){const n=pt(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}dt(e,o.length);let r=void 0;/^[\t\r\n\f ]*=/.test(e.source)&&(ht(e),dt(e,1),ht(e),r=function(e){const t=pt(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){dt(e,1);const t=e.source.indexOf(o);-1===t?n=lt(e,e.source.length,4):(n=lt(e,t,4),dt(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=lt(e,t[0].length,4)}return{content:n,isQuoted:r,loc:ut(e,t)}}(e));const s=ut(e,n);if(!e.inVPre&&/^(v-|:|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o),c=t[1]||(ft(o,":")?"bind":ft(o,"@")?"on":"slot");let i;if(t[2]){const r="slot"===c,s=o.indexOf(t[2]),l=ut(e,mt(e,n,s),mt(e,n,s+t[2].length+(r&&t[3]||"").length));let p=t[2],u=!0;p.startsWith("[")?(u=!1,p.endsWith("]"),p=p.substr(1,p.length-2)):r&&(p+=t[3]||""),i={type:4,content:p,isStatic:u,constType:u?3:0,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=Pe(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:c,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:t[3]?t[3].substr(1).split("."):[],loc:s}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function ct(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=pt(e);dt(e,n.length);const c=pt(e),i=pt(e),l=r-n.length,p=e.source.slice(0,l),u=lt(e,l,t),a=u.trim(),f=u.indexOf(a);f>0&&Ve(c,p,f);return Ve(i,p,l-(u.length-a.length-f)),dt(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:a,loc:ut(e,c,i)},loc:ut(e,s)}}function it(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let o=e.source.length;for(let s=0;s<n.length;s++){const t=e.source.indexOf(n[s],1);-1!==t&&o>t&&(o=t)}const r=pt(e);return{type:2,content:lt(e,o,t),loc:ut(e,r)}}function lt(e,t,n){const o=e.source.slice(0,t);return dt(e,t),2===n||3===n||-1===o.indexOf("&")?o:e.options.decodeEntities(o,4===n)}function pt(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function ut(e,t,n){return{start:t,end:n=n||pt(e),source:e.originalSource.slice(t.offset,n.offset)}}function at(e){return e[e.length-1]}function ft(e,t){return e.startsWith(t)}function dt(e,t){const{source:n}=e;Ve(e,n,t),e.source=n.slice(t)}function ht(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&dt(e,t[0].length)}function mt(e,t,n){return Pe(t,e.originalSource.slice(t.offset,n),n)}function gt(e,t,n){const o=e.source;switch(t){case 0:if(ft(o,"</"))for(let e=n.length-1;e>=0;--e)if(yt(o,n[e].tag))return!0;break;case 1:case 2:{const e=at(n);if(e&&yt(o,e.tag))return!0;break}case 3:if(ft(o,"]]>"))return!0}return!o}function yt(e,t){return ft(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function vt(e,t){xt(e,t,bt(e,e.children[0]))}function bt(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!He(t)}function xt(e,t,n=!1){let o=!1,r=!0;const{children:s}=e;for(let c=0;c<s.length;c++){const e=s[c];if(1===e.type&&0===e.tagType){const s=n?0:St(e,t);if(s>0){if(s<3&&(r=!1),s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o=!0;continue}}else{const n=e.codegenNode;if(13===n.type){const o=Tt(n);if((!o||512===o||1===o)&&kt(e,t)>=2){const o=Nt(e);o&&(n.props=t.hoist(o))}}}}else if(12===e.type){const n=St(e.content,t);n>0&&(n<3&&(r=!1),n>=2&&(e.codegenNode=t.hoist(e.codegenNode),o=!0))}if(1===e.type)xt(e,t);else if(11===e.type)xt(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)xt(e.branches[n],t,1===e.branches[n].children.length)}r&&o&&t.transformHoist&&t.transformHoist(s,t,e)}function St(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const r=e.codegenNode;if(13!==r.type)return 0;if(Tt(r))return n.set(e,0),0;{let o=3;const s=kt(e,t);if(0===s)return n.set(e,0),0;s<o&&(o=s);for(let r=0;r<e.children.length;r++){const s=St(e.children[r],t);if(0===s)return n.set(e,0),0;s<o&&(o=s)}if(o>1)for(let r=0;r<e.props.length;r++){const s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){const r=St(s.exp,t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}}return r.isBlock&&(r.isBlock=!1,t.helper(V)),n.set(e,o),o}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return St(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(d(o)||h(o))continue;const r=St(o,t);if(0===r)return 0;r<s&&(s=r)}return s;default:return 0}}function kt(e,t){let n=3;const o=Nt(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:r,value:s}=e[o],c=St(r,t);if(0===c)return c;if(c<n&&(n=c),4!==s.type)return 0;const i=St(s,t);if(0===i)return i;i<n&&(n=i)}}return n}function Nt(e){const t=e.codegenNode;if(13===t.type)return t.props}function Tt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function wt(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:p=null,isBuiltInComponent:u=l,isCustomElement:a=l,expressionPlugins:f=[],scopeId:d=null,ssr:h=!1,ssrCssVars:m="",bindingMetadata:g=i,inline:y=!1,isTS:v=!1,onError:x=T}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),N={selfName:S&&k(b(S[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:c,transformHoist:p,isBuiltInComponent:u,isCustomElement:a,expressionPlugins:f,scopeId:d,ssr:h,ssrCssVars:m,bindingMetadata:g,inline:y,isTS:v,onError:x,root:e,helpers:new Set,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,helper:e=>(N.helpers.add(e),e),helperString:e=>"_"+oe[N.helper(e)],replaceNode(e){N.parent.children[N.childIndex]=N.currentNode=e},removeNode(e){const t=e?N.parent.children.indexOf(e):N.currentNode?N.childIndex:-1;e&&e!==N.currentNode?N.childIndex>t&&(N.childIndex--,N.onNodeRemoved()):(N.currentNode=null,N.onNodeRemoved()),N.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){N.hoists.push(e);const t=ae("_hoisted_"+N.hoists.length,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ye(++N.cached,e,t)};return N}function $t(e,t){const n=wt(e,t);_t(e,n),t.hoistStatic&&vt(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const t=o[0];if(bt(e,t)&&t.codegenNode){const o=t.codegenNode;13===o.type&&(o.isBlock=!0,n(I),n(P)),e.codegenNode=o}else e.codegenNode=t}else if(o.length>1){let o=64;e.codegenNode=ie(t,n($),void 0,e.children,o+"",void 0,void 0,!0)}}(e,n),e.helpers=[...n.helpers],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}function _t(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(f(r)?o.push(...r):o.push(r)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(B);break;case 5:t.ssr||t.helper(z);break;case 9:for(let n=0;n<e.branches.length;n++)_t(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];d(r)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,_t(r,t))}}(e,t)}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function Ct(e,t){const n=d(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Fe))return;const s=[];for(let c=0;c<r.length;c++){const i=r[c];if(7===i.type&&n(i.name)){r.splice(c,1),c--;const n=t(e,i,o);n&&s.push(n)}}return s}}}function Mt(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:c=!1,runtimeGlobalName:i="Vue",runtimeModuleName:l="vue",ssr:p=!1}){const u={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:c,runtimeGlobalName:i,runtimeModuleName:l,ssr:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>"_"+oe[e],push(e,t){u.code+=e},indent(){a(++u.indentLevel)},deindent(e=!1){e?--u.indentLevel:a(--u.indentLevel)},newline(){a(u.indentLevel)}};function a(e){u.push("\n"+" ".repeat(e))}return u}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:c,deindent:i,newline:l,ssr:p}=n,u=e.helpers.length>0,a=!s&&"module"!==o;!function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r,c=e=>`${oe[e]}: _${oe[e]}`;if(e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)){n(`const { ${[V,B,E,L].filter(t=>e.helpers.includes(t)).map(c).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o(),e.forEach((e,r)=>{e&&(n(`const _hoisted_${r+1} = `),Vt(e,t),o())}),t.pure=!1})(e.hoists,t),o(),n("return ")}(e,n);if(r(`function ${p?"ssrRender":"render"}(${(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),c(),a&&(r("with (_ctx) {"),c(),u&&(r(`const { ${e.helpers.map(e=>`${oe[e]}: _${oe[e]}`).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Ot(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ot(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),p||r("return "),e.codegenNode?Vt(e.codegenNode,n):r("null"),a&&(i(),r("}")),i(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ot(e,t,{helper:n,push:o,newline:r}){const s=n("component"===t?j:A);for(let c=0;c<e.length;c++){const n=e[c];o(`const ${ze(n,t)} = ${s}(${JSON.stringify(n)})`),c<e.length-1&&r()}}function It(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Pt(e,t,n),n&&t.deindent(),t.push("]")}function Pt(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let c=0;c<e.length;c++){const i=e[c];d(i)?r(i):f(i)?It(i,t):Vt(i,t),c<e.length-1&&(n?(o&&r(","),s()):o&&r(", "))}}function Vt(e,t){if(d(e))t.push(e);else if(h(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Vt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Bt(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n("/*#__PURE__*/");n(o(z)+"("),Vt(e.content,t),n(")")}(e,t);break;case 12:Vt(e.codegenNode,t);break;case 8:Et(e,t);break;case 3:break;case 13:!function(e,t){const{push:n,helper:o,pure:r}=t,{tag:s,props:c,children:i,patchFlag:l,dynamicProps:p,directives:u,isBlock:a,disableTracking:f}=e;u&&n(o(F)+"(");a&&n(`(${o(I)}(${f?"true":""}), `);r&&n("/*#__PURE__*/");n(o(a?P:V)+"(",e),Pt(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([s,c,i,l,p]),t),n(")"),a&&n(")");u&&(n(", "),Vt(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=d(e.callee)?e.callee:o(e.callee);r&&n("/*#__PURE__*/");n(s+"(",e),Pt(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const i=c.length>1||!1;n(i?"{":"{ "),i&&o();for(let l=0;l<c.length;l++){const{key:e,value:o}=c[l];Lt(e,t),n(": "),Vt(o,t),l<c.length-1&&(n(","),s())}i&&r(),n(i?"}":" }")}(e,t);break;case 17:!function(e,t){It(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:r}=t,{params:s,returns:c,body:i,newline:l,isSlot:p}=e;p&&n(`_${oe[ee]}(`);n("(",e),f(s)?Pt(s,t):s&&Vt(s,t);n(") => "),(l||i)&&(n("{"),o());c?(l&&n("return "),f(c)?It(c,t):Vt(c,t)):i&&Vt(i,t);(l||i)&&(r(),n("}"));p&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:c,indent:i,deindent:l,newline:p}=t;if(4===n.type){const e=!Ce(n.content);e&&c("("),Bt(n,t),e&&c(")")}else c("("),Vt(n,t),c(")");s&&i(),t.indentLevel++,s||c(" "),c("? "),Vt(o,t),t.indentLevel--,s&&p(),s||c(" "),c(": ");const u=19===r.type;u||t.indentLevel++;Vt(r,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(o(Z)+"(-1),"),c());n(`_cache[${e.index}] = `),Vt(e.value,t),e.isVNode&&(n(","),c(),n(o(Z)+"(1),"),c(),n(`_cache[${e.index}]`),s());n(")")}(e,t)}}function Bt(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Et(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];d(o)?t.push(o):Vt(o,t)}}function Lt(e,t){const{push:n}=t;if(8===e.type)n("["),Et(e,t),n("]");else if(e.isStatic){n(Ce(e.content)?e.content:JSON.stringify(e.content),e)}else n(`[${e.content}]`,e)}const jt=(e,t)=>{if(5===e.type)e.content=Rt(e.content);else if(1===e.type)for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&"for"!==o.name){const e=o.exp,n=o.arg;!e||4!==e.type||"on"===o.name&&n||(o.exp=Rt(e,t,"slot"===o.name)),n&&4===n.type&&!n.isStatic&&(o.arg=Rt(n))}}};function Rt(e,t,n=!1,o=!1){return e}const At=Ct(/^(if|else|else-if)$/,(e,t,n)=>Ft(e,t,n,(e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),c=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(o)e.codegenNode=Ht(t,c,n);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=Ht(t,c+e.branches.length-1,n)}}}));function Ft(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){t.exp=ae("true",!1,t.exp?t.exp.loc:e.loc)}if("if"===t.name){const r=Dt(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const c=r[s];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){n.removeNode();const r=Dt(e,t);c.branches.push(r);const s=o&&o(c,r,!1);_t(r,n),s&&s(),n.currentNode=null}break}n.removeNode(c)}}}function Dt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Ee(e,"for")?[e]:e.children,userKey:Le(e,"key")}}function Ht(e,t,n){return e.condition?ge(e.condition,Ut(e,t,n),he(n.helper(B),['""',"true"])):Ut(e,t,n)}function Ut(e,t,n){const{helper:o}=n,r=ue("key",ae(""+t,!1,se,2)),{children:s}=e,c=s[0];if(1!==s.length||1!==c.type){if(1===s.length&&11===c.type){const e=c.codegenNode;return Ue(e,r,n),e}return ie(n,o($),pe([r]),s,"64",void 0,void 0,!0,!1,e.loc)}{const e=c.codegenNode;return 13===e.type&&(e.isBlock=!0,o(I),o(P)),Ue(e,r,n),e}}const zt=Ct("for",(e,t,n)=>{const{helper:o}=n;return Jt(e,t,n,t=>{const r=he(o(D),[t.source]),s=Le(e,"key"),c=s?ue("key",6===s.type?ae(s.value.content,!0):s.exp):null,i=4===t.source.type&&t.source.constType>0,l=i?64:s?128:256;return t.codegenNode=ie(n,o($),void 0,r,l+"",void 0,void 0,!0,!i,e.loc),()=>{let s;const l=De(e),{children:p}=t,u=1!==p.length||1!==p[0].type,a=He(e)?e:l&&1===e.children.length&&He(e.children[0])?e.children[0]:null;a?(s=a.codegenNode,l&&c&&Ue(s,c,n)):u?s=ie(n,o($),c?pe([c]):void 0,e.children,"64",void 0,void 0,!0):(s=p[0].codegenNode,l&&c&&Ue(s,c,n),s.isBlock=!i,s.isBlock?(o(I),o(P)):o(V)),r.arguments.push(me(Qt(t.parseResult),s,!0))}})});function Jt(e,t,n,o){if(!t.exp)return;const r=Wt(t.exp);if(!r)return;const{scopes:s}=n,{source:c,value:i,key:l,index:p}=r,u={type:11,loc:t.loc,source:c,valueAlias:i,keyAlias:l,objectIndexAlias:p,parseResult:r,children:De(e)?e.children:[e]};n.replaceNode(u),s.vFor++;const a=o&&o(u);return()=>{s.vFor--,a&&a()}}const Gt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Kt=/^\(|\)$/g;function Wt(e,t){const n=e.loc,o=e.content,r=o.match(Gt);if(!r)return;const[,s,c]=r,i={source:Zt(n,c.trim(),o.indexOf(c,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Kt,"").trim();const p=s.indexOf(l),u=l.match(qt);if(u){l=l.replace(qt,"").trim();const e=u[1].trim();let t;if(e&&(t=o.indexOf(e,p+l.length),i.key=Zt(n,e,t)),u[2]){const r=u[2].trim();r&&(i.index=Zt(n,r,o.indexOf(r,i.key?t+e.length:p+l.length)))}}return l&&(i.value=Zt(n,l,p)),i}function Zt(e,t,n){return ae(t,!1,Ie(e,n,t.length))}function Qt({value:e,key:t,index:n}){const o=[];return e&&o.push(e),t&&(e||o.push(ae("_",!1)),o.push(t)),n&&(t||(e||o.push(ae("_",!1)),o.push(ae("__",!1))),o.push(n)),o}const Yt=ae("undefined",!1),Xt=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Ee(e,"slot");if(n)return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},en=(e,t)=>{let n;if(De(e)&&e.props.some(Fe)&&(n=Ee(e,"for"))){const e=n.parseResult=Wt(n.exp);if(e){const{value:n,key:o,index:r}=e,{addIdentifiers:s,removeIdentifiers:c}=t;return n&&s(n),o&&s(o),r&&s(r),()=>{n&&c(n),o&&c(o),r&&c(r)}}}},tn=(e,t,n)=>me(e,t,!1,!0,t.length?t[0].loc:n);function nn(e,t,n=tn){t.helper(ee);const{children:o,loc:r}=e,s=[],c=[],i=(e,t)=>ue("default",n(e,t,r));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const p=Ee(e,"slot",!0);if(p){const{arg:e,exp:t}=p;e&&!Te(e)&&(l=!0),s.push(ue(e||ae("default",!0),n(t,o,r)))}let u=!1,a=!1;const f=[],d=new Set;for(let g=0;g<o.length;g++){const e=o[g];let r;if(!De(e)||!(r=Ee(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(p)break;u=!0;const{children:i,loc:h}=e,{arg:m=ae("default",!0),exp:y}=r;let v;Te(m)?v=m?m.content:"default":l=!0;const b=n(y,i,h);let x,S,k;if(x=Ee(e,"if"))l=!0,c.push(ge(x.exp,on(m,b),Yt));else if(S=Ee(e,/^else(-if)?$/,!0)){let e,t=g;for(;t--&&(e=o[t],3===e.type););if(e&&De(e)&&Ee(e,"if")){o.splice(g,1),g--;let e=c[c.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=S.exp?ge(S.exp,on(m,b),Yt):on(m,b)}}else if(k=Ee(e,"for")){l=!0;const e=k.parseResult||Wt(k.exp);e&&c.push(he(t.helper(D),[e.source,me(Qt(e),on(m,b),!0)]))}else{if(v){if(d.has(v))continue;d.add(v),"default"===v&&(a=!0)}s.push(ue(m,b))}}p||(u?f.length&&(a||s.push(i(void 0,f))):s.push(i(void 0,o)));const h=l?2:rn(e.children)?3:1;let m=pe(s.concat(ue("_",ae(h+"",!1))),r);return c.length&&(m=he(t.helper(U),[m,le(c)])),{slots:m,hasDynamicSlots:l}}function on(e,t){return pe([ue("name",e),ue("fn",t)])}function rn(e){for(let t=0;t<e.length;t++){const n=e[t];if(1===n.type&&(2===n.tagType||0===n.tagType&&rn(n.children)))return!0}return!1}const sn=new WeakMap,cn=(e,t)=>{if(1===e.type&&(0===e.tagType||1===e.tagType))return function(){const{tag:n,props:o}=e,r=1===e.tagType,s=r?ln(e,t):`"${n}"`;let c,i,l,p,u,a,f=0,d=m(s)&&s.callee===R||s===_||s===C||!r&&("svg"===n||"foreignObject"===n||Le(e,"key",!0));if(o.length>0){const n=pn(e,t);c=n.props,f=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;a=o&&o.length?le(o.map(e=>function(e,t){const n=[],o=sn.get(e);o?n.push(t.helperString(o)):(t.helper(A),t.directives.add(e.name),n.push(ze(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ae("true",!1,r);n.push(pe(e.modifiers.map(e=>ue(e,t)),r))}return le(n,e.loc)}(e,t))):void 0}if(e.children.length>0){s===M&&(d=!0,f|=1024);if(r&&s!==_&&s!==M){const{slots:n,hasDynamicSlots:o}=nn(e,t);i=n,o&&(f|=1024)}else if(1===e.children.length&&s!==_){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===St(n,t)&&(f|=1),i=r||2===o?n:e.children}else i=e.children}0!==f&&(l=String(f),u&&u.length&&(p=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(u))),e.codegenNode=ie(t,s,c,i,l,p,a,!!d,!1,e.loc)}};function ln(e,t,n=!1){const{tag:o}=e,r="component"===e.tag?Le(e,"is"):Ee(e,"is");if(r){const e=6===r.type?r.value&&ae(r.value.content,!0):r.exp;if(e)return he(t.helper(R),[e])}const s=$e(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(j),t.components.add(o),ze(o,"component"))}function pn(e,t,n=e.props,o=!1){const{tag:r,loc:s}=e,c=1===e.tagType;let i=[];const l=[],p=[];let a=0,f=!1,d=!1,m=!1,y=!1,v=!1,b=!1;const x=[],S=({key:e,value:n})=>{if(Te(e)){const o=e.content,r=(e=>u.test(e))(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||g(o)||(y=!0),r&&g(o)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&St(n,t)>0)return;"ref"===o?f=!0:"class"!==o||c?"style"!==o||c?"key"===o||x.includes(o)||x.push(o):m=!0:d=!0}else v=!0};for(let u=0;u<n.length;u++){const c=n[u];if(6===c.type){const{loc:e,name:t,value:n}=c;let o=!0;if("ref"===t&&(f=!0),"is"===t&&"component"===r)continue;i.push(ue(ae(t,!0,Ie(e,0,t.length)),ae(n?n.content:"",o,n?n.loc:e)))}else{const{name:n,arg:u,exp:a,loc:f}=c,d="bind"===n,m="on"===n;if("slot"===n)continue;if("once"===n)continue;if("is"===n||d&&"component"===r&&je(u,"is"))continue;if(m&&o)continue;if(!u&&(d||m)){v=!0,a&&(i.length&&(l.push(pe(un(i),s)),i=[]),l.push(d?a:{type:14,loc:f,callee:t.helper(G),arguments:[a]}));continue}const g=t.directiveTransforms[n];if(g){const{props:n,needRuntime:r}=g(c,e,t);!o&&n.forEach(S),i.push(...n),r&&(p.push(c),h(r)&&sn.set(c,r))}else p.push(c)}}let k=void 0;return l.length?(i.length&&l.push(pe(un(i),s)),k=l.length>1?he(t.helper(J),l,s):l[0]):i.length&&(k=pe(un(i),s)),v?a|=16:(d&&(a|=2),m&&(a|=4),x.length&&(a|=8),y&&(a|=32)),0!==a&&32!==a||!(f||b||p.length>0)||(a|=512),{props:k,directives:p,patchFlag:a,dynamicPropNames:x}}function un(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const s=r.key.content,c=t.get(s);c?("style"===s||"class"===s||s.startsWith("on"))&&an(c,r):(t.set(s,r),n.push(r))}return n}function an(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=le([e.value,t.value],e.loc)}const fn=(e,t)=>{if(He(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=dn(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r];s&&c.push(s),n.length&&(s||c.push("{}"),c.push(me([],n,!1,!1,o))),e.codegenNode=he(t.helper(H),c,o)}};function dn(e,t){let n='"default"',o=void 0;const r=[];for(let s=0;s<e.props.length;s++){const t=e.props[s];6===t.type?t.value&&("name"===t.name?n=JSON.stringify(t.value.content):(t.name=b(t.name),r.push(t))):"bind"===t.name&&je(t.arg,"name")?t.exp&&(n=t.exp):("bind"===t.name&&t.arg&&Te(t.arg)&&(t.arg.content=b(t.arg.content)),r.push(t))}if(r.length>0){const{props:n,directives:s}=pn(e,t,r);o=n}return{slotName:n,slotProps:o}}const hn=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,mn=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:c}=e;let i;if(4===c.type)if(c.isStatic){i=ae(N(b(c.content)),!0,c.loc)}else i=de([n.helperString(W)+"(",c,")"]);else i=c,i.children.unshift(n.helperString(W)+"("),i.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let p=n.cacheHandlers&&!l;if(l){const e=Oe(l.content),t=!(e||hn.test(l.content)),n=l.content.includes(";");(t||p&&e)&&(l=de([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[ue(i,l||ae("() => {}",!1,r))]};return o&&(u=o(u)),p&&(u.props[0].value=n.cache(u.props[0].value)),u},gn=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=c.content+' || ""'),r.includes("camel")&&(4===c.type?c.content=c.isStatic?b(c.content):`${n.helperString(q)}(${c.content})`:(c.children.unshift(n.helperString(q)+"("),c.children.push(")"))),!o||4===o.type&&!o.content.trim()?{props:[ue(c,ae("",!0,s))]}:{props:[ue(c,o)]}},yn=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o=void 0,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Ae(t)){r=!0;for(let r=e+1;r<n.length;r++){const s=n[r];if(!Ae(s)){o=void 0;break}o||(o=n[e]={type:8,loc:t.loc,children:[t]}),o.children.push(" + ",s),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType)))for(let e=0;e<n.length;e++){const o=n[e];if(Ae(o)||8===o.type){const r=[];2===o.type&&" "===o.content||r.push(o),t.ssr||0!==St(o,t)||r.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:he(t.helper(E),r)}}}}},vn=new WeakSet,bn=(e,t)=>{if(1===e.type&&Ee(e,"once",!0)){if(vn.has(e))return;return vn.add(e),t.helper(Z),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},xn=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return Sn();const s=o.loc.source;if(!Oe(4===o.type?o.content:s))return Sn();const c=r||ae("modelValue",!0),i=r?Te(r)?"onUpdate:"+r.content:de(['"onUpdate:" + ',r]):"onUpdate:modelValue";let l;l=de([(n.isTS?"($event: any)":"$event")+" => (",o," = $event)"]);const p=[ue(c,e.exp),ue(i,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>(Ce(e)?e:JSON.stringify(e))+": true").join(", "),n=r?Te(r)?r.content+"Modifiers":de([r,' + "Modifiers"']):"modelModifiers";p.push(ue(n,ae(`{ ${t} }`,!1,e.loc,2)))}return Sn(p)};function Sn(e=[]){return{props:e}}function kn(e){return[[bn,At,zt,fn,cn,Xt,yn],{on:mn,bind:gn,model:xn}]}function Nn(e,t={}){const n=t.onError||T,o="module"===t.mode;!0===t.prefixIdentifiers?n(w(45)):o&&n(w(46));t.cacheHandlers&&n(w(47)),t.scopeId&&!o&&n(w(48));const r=d(e)?We(e,t):e,[s,c]=kn();return $t(r,a({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},c,t.directiveTransforms||{})})),Mt(r,a({},t,{prefixIdentifiers:false}))}const Tn=()=>({props:[]}),wn=Symbol(""),$n=Symbol(""),_n=Symbol(""),Cn=Symbol(""),Mn=Symbol(""),On=Symbol(""),In=Symbol(""),Pn=Symbol(""),Vn=Symbol(""),Bn=Symbol("");let En;re({[wn]:"vModelRadio",[$n]:"vModelCheckbox",[_n]:"vModelText",[Cn]:"vModelSelect",[Mn]:"vModelDynamic",[On]:"withModifiers",[In]:"withKeys",[Pn]:"vShow",[Vn]:"Transition",[Bn]:"TransitionGroup"});const Ln=e("style,iframe,script,noscript",!0),jn={isVoidTag:c,isNativeTag:e=>r(e)||s(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(En||(En=document.createElement("div"))).innerHTML=e,En.textContent},isBuiltInComponent:e=>we(e,"Transition")?Vn:we(e,"TransitionGroup")?Bn:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Ln(e))return 2}return 0}},Rn=e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ae("style",!0,t.loc),exp:An(t.value.content,t.loc),modifiers:[],loc:t.loc})})},An=(e,t)=>{const r=function(e){const t={};return e.split(n).forEach(e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(e);return ae(JSON.stringify(r),!1,t,3)};function Fn(e,t){return w(e,t)}const Dn=e("passive,once,capture"),Hn=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Un=e("left,right"),zn=e("onkeyup,onkeydown,onkeypress",!0),Jn=(e,t)=>Te(e)&&"onclick"===e.content.toLowerCase()?ae(t,!0):4!==e.type?de(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Gn=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},qn=[Rn],Kn={cloak:Tn,html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("innerHTML",!0,r),o||ae("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("textContent",!0),o?he(n.helperString(z),[o],r):ae("",!0))]}},model:(e,t,n)=>{const o=xn(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=_n,c=!1;if("input"===r||s){const n=Le(t,"type");if(n){if(7===n.type)e=Mn;else if(n.value)switch(n.value.content){case"radio":e=wn;break;case"checkbox":e=$n;break;case"file":c=!0}}else Re(t)&&(e=Mn)}else"select"===r&&(e=Cn);c||(o.needRuntime=n.helper(e))}return o.props=o.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),o},on:(e,t,n)=>mn(e,0,n,t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:c,nonKeyModifiers:i,eventOptionModifiers:l}=((e,t)=>{const n=[],o=[],r=[];for(let s=0;s<t.length;s++){const c=t[s];Dn(c)?r.push(c):Un(c)?Te(e)?zn(e.content)?n.push(c):o.push(c):(n.push(c),o.push(c)):Hn(c)?o.push(c):n.push(c)}return{keyModifiers:n,nonKeyModifiers:o,eventOptionModifiers:r}})(r,o);if(i.includes("right")&&(r=Jn(r,"onContextmenu")),i.includes("middle")&&(r=Jn(r,"onMouseup")),i.length&&(s=he(n.helper(On),[s,JSON.stringify(i)])),!c.length||Te(r)&&!zn(r.content)||(s=he(n.helper(In),[s,JSON.stringify(c)])),l.length){const e=l.map(k).join("");r=Te(r)?ae(`${r.content}${e}`,!0):de(["(",r,`) + "${e}"`])}return{props:[ue(r,s)]}}),show:(e,t,n)=>({props:[],needRuntime:n.helper(Pn)})};function Wn(e,t={}){return Nn(e,a({},jn,t,{nodeTransforms:[Gn,...qn,...t.nodeTransforms||[]],directiveTransforms:a({},Kn,t.directiveTransforms||{}),transformHoist:null}))}function Zn(e,t={}){return We(e,a({},jn,t))}export{O as BASE_TRANSITION,q as CAMELIZE,K as CAPITALIZE,P as CREATE_BLOCK,B as CREATE_COMMENT,U as CREATE_SLOTS,L as CREATE_STATIC,E as CREATE_TEXT,V as CREATE_VNODE,Kn as DOMDirectiveTransforms,qn as DOMNodeTransforms,$ as FRAGMENT,ne as IS_REF,M as KEEP_ALIVE,J as MERGE_PROPS,I as OPEN_BLOCK,Y as POP_SCOPE_ID,Q as PUSH_SCOPE_ID,D as RENDER_LIST,H as RENDER_SLOT,j as RESOLVE_COMPONENT,A as RESOLVE_DIRECTIVE,R as RESOLVE_DYNAMIC_COMPONENT,Z as SET_BLOCK_TRACKING,C as SUSPENSE,_ as TELEPORT,z as TO_DISPLAY_STRING,G as TO_HANDLERS,W as TO_HANDLER_KEY,Vn as TRANSITION,Bn as TRANSITION_GROUP,te as UNREF,$n as V_MODEL_CHECKBOX,Mn as V_MODEL_DYNAMIC,wn as V_MODEL_RADIO,Cn as V_MODEL_SELECT,_n as V_MODEL_TEXT,In as V_ON_WITH_KEYS,On as V_ON_WITH_MODIFIERS,Pn as V_SHOW,ee as WITH_CTX,F as WITH_DIRECTIVES,X as WITH_SCOPE_ID,Pe as advancePositionWithClone,Ve as advancePositionWithMutation,Be as assert,Nn as baseCompile,We as baseParse,pn as buildProps,nn as buildSlots,Wn as compile,le as createArrayExpression,Se as createAssignmentExpression,ve as createBlockStatement,ye as createCacheExpression,he as createCallExpression,w as createCompilerError,de as createCompoundExpression,ge as createConditionalExpression,Fn as createDOMCompilerError,Qt as createForLoopParams,me as createFunctionExpression,xe as createIfStatement,fe as createInterpolation,pe as createObjectExpression,ue as createObjectProperty,Ne as createReturnStatement,ce as createRoot,ke as createSequenceExpression,ae as createSimpleExpression,Ct as createStructuralDirectiveTransform,be as createTemplateLiteral,wt as createTransformContext,ie as createVNodeCall,Ee as findDir,Le as findProp,Mt as generate,t as generateCodeFrame,kn as getBaseTransformPreset,Ie as getInnerRange,Re as hasDynamicKeyVBind,Je as hasScopeRef,oe as helperNameMap,Ue as injectProp,je as isBindKey,we as isBuiltInType,$e as isCoreComponent,Oe as isMemberExpression,Ce as isSimpleIdentifier,He as isSlotOutlet,Te as isStaticExp,De as isTemplateNode,Ae as isText,Fe as isVSlot,se as locStub,Tn as noopDirectiveTransform,Zn as parse,jn as parserOptions,Rt as processExpression,Jt as processFor,Ft as processIf,dn as processSlotOutlet,re as registerRuntimeHelpers,ln as resolveComponentType,ze as toValidAssetId,Xt as trackSlotScopes,en as trackVForSlotScopes,$t as transform,gn as transformBind,cn as transformElement,jt as transformExpression,xn as transformModel,mn as transformOn,Rn as transformStyle,_t as traverseNode};
|
|
1
|
+
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e,t=0,n=e.length){const o=e.split(/\r?\n/);let r=0;const s=[];for(let c=0;c<o.length;c++)if(r+=o[c].length+1,r>=t){for(let e=c-2;e<=c+2||n>r;e++){if(e<0||e>=o.length)continue;const i=e+1;s.push(`${i}${" ".repeat(Math.max(3-String(i).length,0))}| ${o[e]}`);const l=o[e].length;if(e===c){const e=t-(r-l)+1,o=Math.max(1,n>r?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>r){const e=Math.max(Math.min(n-r,l),1);s.push(" | "+"^".repeat(e))}r+=l+1}}break}return s.join("\n")}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),i={},l=()=>{},p=()=>!1,u=/^on[^a-z]/,a=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,b=y((e=>e.replace(v,((e,t)=>t?t.toUpperCase():"")))),x=/\B([A-Z])/g,S=y((e=>e.replace(x,"-$1").toLowerCase())),k=y((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=y((e=>e?`on${k(e)}`:""));function T(e){throw e}function $(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const w=Symbol(""),_=Symbol(""),C=Symbol(""),M=Symbol(""),O=Symbol(""),I=Symbol(""),P=Symbol(""),V=Symbol(""),F=Symbol(""),B=Symbol(""),L=Symbol(""),E=Symbol(""),A=Symbol(""),j=Symbol(""),H=Symbol(""),R=Symbol(""),D=Symbol(""),U=Symbol(""),z=Symbol(""),J=Symbol(""),G=Symbol(""),q=Symbol(""),K=Symbol(""),W=Symbol(""),Z=Symbol(""),Q=Symbol(""),Y=Symbol(""),X=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe={[w]:"Fragment",[_]:"Teleport",[C]:"Suspense",[M]:"KeepAlive",[O]:"BaseTransition",[I]:"openBlock",[P]:"createBlock",[V]:"createVNode",[F]:"createCommentVNode",[B]:"createTextVNode",[L]:"createStaticVNode",[E]:"resolveComponent",[A]:"resolveDynamicComponent",[j]:"resolveDirective",[H]:"withDirectives",[R]:"renderList",[D]:"renderSlot",[U]:"createSlots",[z]:"toDisplayString",[J]:"mergeProps",[G]:"toHandlers",[q]:"camelize",[K]:"capitalize",[W]:"toHandlerKey",[Z]:"setBlockTracking",[Q]:"pushScopeId",[Y]:"popScopeId",[X]:"withScopeId",[ee]:"withCtx",[te]:"unref",[ne]:"isRef"};function re(e){Object.getOwnPropertySymbols(e).forEach((t=>{oe[t]=e[t]}))}const se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ce(e,t=se){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ie(e,t,n,o,r,s,c,i=!1,l=!1,p=se){return e&&(i?(e.helper(I),e.helper(P)):e.helper(V),c&&e.helper(H)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:c,isBlock:i,disableTracking:l,loc:p}}function le(e,t=se){return{type:17,loc:t,elements:e}}function pe(e,t=se){return{type:15,loc:t,properties:e}}function ue(e,t){return{type:16,loc:se,key:d(e)?ae(e,!0):e,value:t}}function ae(e,t,n=se,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function fe(e,t){return{type:5,loc:t,content:d(e)?ae(e,!1,t):e}}function de(e,t=se){return{type:8,loc:t,children:e}}function he(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function me(e,t,n=!1,o=!1,r=se){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function ge(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:se}}function ye(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:se}}function ve(e){return{type:21,body:e,loc:se}}function be(e){return{type:22,elements:e,loc:se}}function xe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:se}}function Se(e,t){return{type:24,left:e,right:t,loc:se}}function ke(e){return{type:25,expressions:e,loc:se}}function Ne(e){return{type:26,returns:e,loc:se}}const Te=e=>4===e.type&&e.isStatic,$e=(e,t)=>e===t||e===S(t);function we(e){return $e(e,"Teleport")?_:$e(e,"Suspense")?C:$e(e,"KeepAlive")?M:$e(e,"BaseTransition")?O:void 0}const _e=/^\d|[^\$\w]/,Ce=e=>!_e.test(e),Me=/^[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*(?:\s*\.\s*[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*|\[[^\]]+\])*$/,Oe=e=>!!e&&Me.test(e.trim());function Ie(e,t,n){const o={source:e.source.substr(t,n),start:Pe(e.start,e.source,t),end:e.end};return null!=n&&(o.end=Pe(e.start,e.source,t+n)),o}function Pe(e,t,n=t.length){return Ve(a({},e),t,n)}function Ve(e,t,n=t.length){let o=0,r=-1;for(let s=0;s<n;s++)10===t.charCodeAt(s)&&(o++,r=s);return e.offset+=n,e.line+=o,e.column=-1===r?e.column+n:n-r,e}function Fe(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Be(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(n||r.exp)&&(d(t)?r.name===t:t.test(r.name)))return r}}function Le(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||o))return s}else if("bind"===s.name&&(s.exp||o)&&Ee(s.arg,t))return s}}function Ee(e,t){return!(!e||!Te(e)||e.content!==t)}function Ae(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function je(e){return 5===e.type||2===e.type}function He(e){return 7===e.type&&"slot"===e.name}function Re(e){return 1===e.type&&3===e.tagType}function De(e){return 1===e.type&&2===e.tagType}function Ue(e,t,n){let o;const r=13===e.type?e.props:e.arguments[2];if(null==r||d(r))o=pe([t]);else if(14===r.type){const e=r.arguments[0];d(e)||15!==e.type?r.callee===G?o=he(n.helper(J),[pe([t]),r]):r.arguments.unshift(pe([t])):e.properties.unshift(t),!o&&(o=r)}else if(15===r.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=r.properties.some((e=>4===e.key.type&&e.key.content===n))}e||r.properties.unshift(t),o=r}else o=he(n.helper(J),[pe([t]),r]);13===e.type?e.props=o:e.arguments[2]=o}function ze(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}function Je(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&(Je(o.arg,t)||Je(o.exp,t)))return!0}return e.children.some((e=>Je(e,t)));case 11:return!!Je(e.source,t)||e.children.some((e=>Je(e,t)));case 9:return e.branches.some((e=>Je(e,t)));case 10:return!!Je(e.condition,t)||e.children.some((e=>Je(e,t)));case 4:return!e.isStatic&&Ce(e.content)&&!!t[e.content];case 8:return e.children.some((e=>m(e)&&Je(e,t)));case 5:case 12:return Je(e.content,t);case 2:case 3:default:return!1}}const Ge=/&(gt|lt|amp|apos|quot);/g,qe={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ke={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:p,isPreTag:p,isCustomElement:p,decodeEntities:e=>e.replace(Ge,((e,t)=>qe[t])),onError:T,comments:!1};function We(e,t={}){const n=function(e,t){const n=a({},Ke);for(const o in t)n[o]=t[o]||Ke[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),o=pt(n);return ce(Ze(n,0,[]),ut(n,o))}function Ze(e,t,n){const o=at(n),r=o?o.ns:0,s=[];for(;!gt(e,t,n);){const c=e.source;let i;if(0===t||1===t)if(!e.inVPre&&ft(c,e.options.delimiters[0]))i=ct(e,t);else if(0===t&&"<"===c[0])if(1===c.length);else if("!"===c[1])i=ft(c,"\x3c!--")?Xe(e):ft(c,"<!DOCTYPE")?et(e):ft(c,"<![CDATA[")&&0!==r?Ye(e,n):et(e);else if("/"===c[1])if(2===c.length);else{if(">"===c[2]){dt(e,3);continue}if(/[a-z]/i.test(c[2])){ot(e,1,o);continue}i=et(e)}else/[a-z]/i.test(c[1])?i=tt(e,n):"?"===c[1]&&(i=et(e));if(i||(i=it(e,t)),f(i))for(let e=0;e<i.length;e++)Qe(s,i[e]);else Qe(s,i)}let c=!1;if(2!==t&&1!==t){for(let t=0;t<s.length;t++){const n=s[t];if(!e.inPre&&2===n.type)if(/[^\t\r\n\f ]/.test(n.content))n.content=n.content.replace(/[\t\r\n\f ]+/g," ");else{const e=s[t-1],o=s[t+1];!e||!o||3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(n.content)?(c=!0,s[t]=null):n.content=" "}3!==n.type||e.options.comments||(c=!0,s[t]=null)}if(e.inPre&&o&&e.options.isPreTag(o.tag)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return c?s.filter(Boolean):s}function Qe(e,t){if(2===t.type){const n=at(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Ye(e,t){dt(e,9);const n=Ze(e,3,t);return 0===e.source.length||dt(e,3),n}function Xe(e){const t=pt(e);let n;const o=/--(\!)?>/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)dt(e,s-r+1),r=s+1;dt(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),dt(e,e.source.length);return{type:3,content:n,loc:ut(e,t)}}function et(e){const t=pt(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),dt(e,e.source.length)):(o=e.source.slice(n,r),dt(e,r+1)),{type:3,content:o,loc:ut(e,t)}}function tt(e,t){const n=e.inPre,o=e.inVPre,r=at(t),s=ot(e,0,r),c=e.inPre&&!n,i=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return s;t.push(s);const l=e.options.getTextMode(s,r),p=Ze(e,l,t);if(t.pop(),s.children=p,yt(e.source,s.tag))ot(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=p[0];e&&ft(e.loc.source,"\x3c!--")}return s.loc=ut(e,s.loc.start),c&&(e.inPre=!1),i&&(e.inVPre=!1),s}const nt=e("if,else,else-if,for,slot");function ot(e,t,n){const o=pt(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],c=e.options.getNamespace(s,n);dt(e,r[0].length),ht(e);const i=pt(e),l=e.source;let p=rt(e,t);e.options.isPreTag(s)&&(e.inPre=!0),!e.inVPre&&p.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,a(e,i),e.source=l,p=rt(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;0===e.source.length||(u=ft(e.source,"/>"),dt(e,u?2:1));let f=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(s)){const e=p.some((e=>7===e.type&&"is"===e.name));d.isNativeTag&&!e?d.isNativeTag(s)||(f=1):(e||we(s)||d.isBuiltInComponent&&d.isBuiltInComponent(s)||/^[A-Z]/.test(s)||"component"===s)&&(f=1),"slot"===s?f=2:"template"===s&&p.some((e=>7===e.type&&nt(e.name)))&&(f=3)}return{type:1,ns:c,tag:s,tagType:f,props:p,isSelfClosing:u,children:[],loc:ut(e,o),codegenNode:void 0}}function rt(e,t){const n=[],o=new Set;for(;e.source.length>0&&!ft(e.source,">")&&!ft(e.source,"/>");){if(ft(e.source,"/")){dt(e,1),ht(e);continue}const r=st(e,o);0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),ht(e)}return n}function st(e,t){const n=pt(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}let r;dt(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(ht(e),dt(e,1),ht(e),r=function(e){const t=pt(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){dt(e,1);const t=e.source.indexOf(o);-1===t?n=lt(e,e.source.length,4):(n=lt(e,t,4),dt(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=lt(e,t[0].length,4)}return{content:n,isQuoted:r,loc:ut(e,t)}}(e));const s=ut(e,n);if(!e.inVPre&&/^(v-|:|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o),c=t[1]||(ft(o,":")?"bind":ft(o,"@")?"on":"slot");let i;if(t[2]){const r="slot"===c,s=o.lastIndexOf(t[2]),l=ut(e,mt(e,n,s),mt(e,n,s+t[2].length+(r&&t[3]||"").length));let p=t[2],u=!0;p.startsWith("[")?(u=!1,p.endsWith("]"),p=p.substr(1,p.length-2)):r&&(p+=t[3]||""),i={type:4,content:p,isStatic:u,constType:u?3:0,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=Pe(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:c,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:t[3]?t[3].substr(1).split("."):[],loc:s}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function ct(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=pt(e);dt(e,n.length);const c=pt(e),i=pt(e),l=r-n.length,p=e.source.slice(0,l),u=lt(e,l,t),a=u.trim(),f=u.indexOf(a);f>0&&Ve(c,p,f);return Ve(i,p,l-(u.length-a.length-f)),dt(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:a,loc:ut(e,c,i)},loc:ut(e,s)}}function it(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let o=e.source.length;for(let s=0;s<n.length;s++){const t=e.source.indexOf(n[s],1);-1!==t&&o>t&&(o=t)}const r=pt(e);return{type:2,content:lt(e,o,t),loc:ut(e,r)}}function lt(e,t,n){const o=e.source.slice(0,t);return dt(e,t),2===n||3===n||-1===o.indexOf("&")?o:e.options.decodeEntities(o,4===n)}function pt(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function ut(e,t,n){return{start:t,end:n=n||pt(e),source:e.originalSource.slice(t.offset,n.offset)}}function at(e){return e[e.length-1]}function ft(e,t){return e.startsWith(t)}function dt(e,t){const{source:n}=e;Ve(e,n,t),e.source=n.slice(t)}function ht(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&dt(e,t[0].length)}function mt(e,t,n){return Pe(t,e.originalSource.slice(t.offset,n),n)}function gt(e,t,n){const o=e.source;switch(t){case 0:if(ft(o,"</"))for(let e=n.length-1;e>=0;--e)if(yt(o,n[e].tag))return!0;break;case 1:case 2:{const e=at(n);if(e&&yt(o,e.tag))return!0;break}case 3:if(ft(o,"]]>"))return!0}return!o}function yt(e,t){return ft(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function vt(e,t){xt(e,t,bt(e,e.children[0]))}function bt(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!De(t)}function xt(e,t,n=!1){let o=!1,r=!0;const{children:s}=e;for(let c=0;c<s.length;c++){const e=s[c];if(1===e.type&&0===e.tagType){const s=n?0:St(e,t);if(s>0){if(s<3&&(r=!1),s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o=!0;continue}}else{const n=e.codegenNode;if(13===n.type){const o=Tt(n);if((!o||512===o||1===o)&&kt(e,t)>=2){const o=Nt(e);o&&(n.props=t.hoist(o))}}}}else if(12===e.type){const n=St(e.content,t);n>0&&(n<3&&(r=!1),n>=2&&(e.codegenNode=t.hoist(e.codegenNode),o=!0))}if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,xt(e,t),n&&t.scopes.vSlot--}else if(11===e.type)xt(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)xt(e.branches[n],t,1===e.branches[n].children.length)}r&&o&&t.transformHoist&&t.transformHoist(s,t,e)}function St(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const r=e.codegenNode;if(13!==r.type)return 0;if(Tt(r))return n.set(e,0),0;{let o=3;const s=kt(e,t);if(0===s)return n.set(e,0),0;s<o&&(o=s);for(let r=0;r<e.children.length;r++){const s=St(e.children[r],t);if(0===s)return n.set(e,0),0;s<o&&(o=s)}if(o>1)for(let r=0;r<e.props.length;r++){const s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){const r=St(s.exp,t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}}return r.isBlock&&(t.removeHelper(I),t.removeHelper(P),r.isBlock=!1,t.helper(V)),n.set(e,o),o}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return St(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(d(o)||h(o))continue;const r=St(o,t);if(0===r)return 0;r<s&&(s=r)}return s;default:return 0}}function kt(e,t){let n=3;const o=Nt(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:r,value:s}=e[o],c=St(r,t);if(0===c)return c;if(c<n&&(n=c),4!==s.type)return 0;const i=St(s,t);if(0===i)return i;i<n&&(n=i)}}return n}function Nt(e){const t=e.codegenNode;if(13===t.type)return t.props}function Tt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function $t(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:p=null,isBuiltInComponent:u=l,isCustomElement:a=l,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:m=!1,ssrCssVars:g="",bindingMetadata:y=i,inline:v=!1,isTS:x=!1,onError:S=T}){const N=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),$={selfName:N&&k(b(N[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:c,transformHoist:p,isBuiltInComponent:u,isCustomElement:a,expressionPlugins:f,scopeId:d,slotted:h,ssr:m,ssrCssVars:g,bindingMetadata:y,inline:v,isTS:x,onError:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,helper(e){const t=$.helpers.get(e)||0;return $.helpers.set(e,t+1),e},removeHelper(e){const t=$.helpers.get(e);if(t){const n=t-1;n?$.helpers.set(e,n):$.helpers.delete(e)}},helperString:e=>`_${oe[$.helper(e)]}`,replaceNode(e){$.parent.children[$.childIndex]=$.currentNode=e},removeNode(e){const t=e?$.parent.children.indexOf(e):$.currentNode?$.childIndex:-1;e&&e!==$.currentNode?$.childIndex>t&&($.childIndex--,$.onNodeRemoved()):($.currentNode=null,$.onNodeRemoved()),$.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){$.hoists.push(e);const t=ae(`_hoisted_${$.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ye(++$.cached,e,t)};return $}function wt(e,t){const n=$t(e,t);_t(e,n),t.hoistStatic&&vt(e,n),t.ssr||function(e,t){const{helper:n,removeHelper:o}=t,{children:r}=e;if(1===r.length){const t=r[0];if(bt(e,t)&&t.codegenNode){const r=t.codegenNode;13===r.type&&(r.isBlock||(o(V),r.isBlock=!0,n(I),n(P))),e.codegenNode=r}else e.codegenNode=t}else if(r.length>1){let o=64;e.codegenNode=ie(t,n(w),void 0,e.children,o+"",void 0,void 0,!0)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}function _t(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(f(r)?o.push(...r):o.push(r)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(F);break;case 5:t.ssr||t.helper(z);break;case 9:for(let n=0;n<e.branches.length;n++)_t(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];d(r)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,_t(r,t))}}(e,t)}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function Ct(e,t){const n=d(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(He))return;const s=[];for(let c=0;c<r.length;c++){const i=r[c];if(7===i.type&&n(i.name)){r.splice(c,1),c--;const n=t(e,i,o);n&&s.push(n)}}return s}}}function Mt(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:c=!1,runtimeGlobalName:i="Vue",runtimeModuleName:l="vue",ssr:p=!1}){const u={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:c,runtimeGlobalName:i,runtimeModuleName:l,ssr:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${oe[e]}`,push(e,t){u.code+=e},indent(){a(++u.indentLevel)},deindent(e=!1){e?--u.indentLevel:a(--u.indentLevel)},newline(){a(u.indentLevel)}};function a(e){u.push("\n"+" ".repeat(e))}return u}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:c,deindent:i,newline:l,ssr:p}=n,u=e.helpers.length>0,a=!s&&"module"!==o;!function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r,c=e=>`${oe[e]}: _${oe[e]}`;if(e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)){n(`const { ${[V,F,B,L].filter((t=>e.helpers.includes(t))).map(c).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o(),e.forEach(((e,r)=>{e&&(n(`const _hoisted_${r+1} = `),Vt(e,t),o())})),t.pure=!1})(e.hoists,t),o(),n("return ")}(e,n);if(r(`function ${p?"ssrRender":"render"}(${(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),c(),a&&(r("with (_ctx) {"),c(),u&&(r(`const { ${e.helpers.map((e=>`${oe[e]}: _${oe[e]}`)).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Ot(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ot(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),p||r("return "),e.codegenNode?Vt(e.codegenNode,n):r("null"),a&&(i(),r("}")),i(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ot(e,t,{helper:n,push:o,newline:r}){const s=n("component"===t?E:j);for(let c=0;c<e.length;c++){let n=e[c];const i=n.endsWith("__self");i&&(n=n.slice(0,-6)),o(`const ${ze(n,t)} = ${s}(${JSON.stringify(n)}${i?", true":""})`),c<e.length-1&&r()}}function It(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Pt(e,t,n),n&&t.deindent(),t.push("]")}function Pt(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let c=0;c<e.length;c++){const i=e[c];d(i)?r(i):f(i)?It(i,t):Vt(i,t),c<e.length-1&&(n?(o&&r(","),s()):o&&r(", "))}}function Vt(e,t){if(d(e))t.push(e);else if(h(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Vt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Ft(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n("/*#__PURE__*/");n(`${o(z)}(`),Vt(e.content,t),n(")")}(e,t);break;case 12:Vt(e.codegenNode,t);break;case 8:Bt(e,t);break;case 3:break;case 13:!function(e,t){const{push:n,helper:o,pure:r}=t,{tag:s,props:c,children:i,patchFlag:l,dynamicProps:p,directives:u,isBlock:a,disableTracking:f}=e;u&&n(o(H)+"(");a&&n(`(${o(I)}(${f?"true":""}), `);r&&n("/*#__PURE__*/");n(o(a?P:V)+"(",e),Pt(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([s,c,i,l,p]),t),n(")"),a&&n(")");u&&(n(", "),Vt(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=d(e.callee)?e.callee:o(e.callee);r&&n("/*#__PURE__*/");n(s+"(",e),Pt(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const i=c.length>1||!1;n(i?"{":"{ "),i&&o();for(let l=0;l<c.length;l++){const{key:e,value:o}=c[l];Lt(e,t),n(": "),Vt(o,t),l<c.length-1&&(n(","),s())}i&&r(),n(i?"}":" }")}(e,t);break;case 17:!function(e,t){It(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:r}=t,{params:s,returns:c,body:i,newline:l,isSlot:p}=e;p&&n(`_${oe[ee]}(`);n("(",e),f(s)?Pt(s,t):s&&Vt(s,t);n(") => "),(l||i)&&(n("{"),o());c?(l&&n("return "),f(c)?It(c,t):Vt(c,t)):i&&Vt(i,t);(l||i)&&(r(),n("}"));p&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:c,indent:i,deindent:l,newline:p}=t;if(4===n.type){const e=!Ce(n.content);e&&c("("),Ft(n,t),e&&c(")")}else c("("),Vt(n,t),c(")");s&&i(),t.indentLevel++,s||c(" "),c("? "),Vt(o,t),t.indentLevel--,s&&p(),s||c(" "),c(": ");const u=19===r.type;u||t.indentLevel++;Vt(r,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(Z)}(-1),`),c());n(`_cache[${e.index}] = `),Vt(e.value,t),e.isVNode&&(n(","),c(),n(`${o(Z)}(1),`),c(),n(`_cache[${e.index}]`),s());n(")")}(e,t)}}function Ft(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Bt(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];d(o)?t.push(o):Vt(o,t)}}function Lt(e,t){const{push:n}=t;if(8===e.type)n("["),Bt(e,t),n("]");else if(e.isStatic){n(Ce(e.content)?e.content:JSON.stringify(e.content),e)}else n(`[${e.content}]`,e)}const Et=(e,t)=>{if(5===e.type)e.content=At(e.content);else if(1===e.type)for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&"for"!==o.name){const e=o.exp,n=o.arg;!e||4!==e.type||"on"===o.name&&n||(o.exp=At(e,t,"slot"===o.name)),n&&4===n.type&&!n.isStatic&&(o.arg=At(n))}}};function At(e,t,n=!1,o=!1){return e}const jt=Ct(/^(if|else|else-if)$/,((e,t,n)=>Ht(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),c=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(o)e.codegenNode=Dt(t,c,n);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=Dt(t,c+e.branches.length-1,n)}}}))));function Ht(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){t.exp=ae("true",!1,t.exp?t.exp.loc:e.loc)}if("if"===t.name){const r=Rt(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const c=r[s];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){n.removeNode();const r=Rt(e,t);c.branches.push(r);const s=o&&o(c,r,!1);_t(r,n),s&&s(),n.currentNode=null}break}n.removeNode(c)}}}function Rt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Be(e,"for")?[e]:e.children,userKey:Le(e,"key")}}function Dt(e,t,n){return e.condition?ge(e.condition,Ut(e,t,n),he(n.helper(F),['""',"true"])):Ut(e,t,n)}function Ut(e,t,n){const{helper:o,removeHelper:r}=n,s=ue("key",ae(`${t}`,!1,se,2)),{children:c}=e,i=c[0];if(1!==c.length||1!==i.type){if(1===c.length&&11===i.type){const e=i.codegenNode;return Ue(e,s,n),e}{let t=64;return ie(n,o(w),pe([s]),c,t+"",void 0,void 0,!0,!1,e.loc)}}{const e=i.codegenNode;return 13!==e.type||e.isBlock||(r(V),e.isBlock=!0,o(I),o(P)),Ue(e,s,n),e}}const zt=Ct("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return Jt(e,t,n,(t=>{const s=he(o(R),[t.source]),c=Le(e,"key"),i=c?ue("key",6===c.type?ae(c.value.content,!0):c.exp):null,l=4===t.source.type&&t.source.constType>0,p=l?64:c?128:256;return t.codegenNode=ie(n,o(w),void 0,s,p+"",void 0,void 0,!0,!l,e.loc),()=>{let c;const p=Re(e),{children:u}=t,a=1!==u.length||1!==u[0].type,f=De(e)?e:p&&1===e.children.length&&De(e.children[0])?e.children[0]:null;f?(c=f.codegenNode,p&&i&&Ue(c,i,n)):a?c=ie(n,o(w),i?pe([i]):void 0,e.children,"64",void 0,void 0,!0):(c=u[0].codegenNode,p&&i&&Ue(c,i,n),c.isBlock!==!l&&(c.isBlock?(r(I),r(P)):r(V)),c.isBlock=!l,c.isBlock?(o(I),o(P)):o(V)),s.arguments.push(me(Qt(t.parseResult),c,!0))}}))}));function Jt(e,t,n,o){if(!t.exp)return;const r=Wt(t.exp);if(!r)return;const{scopes:s}=n,{source:c,value:i,key:l,index:p}=r,u={type:11,loc:t.loc,source:c,valueAlias:i,keyAlias:l,objectIndexAlias:p,parseResult:r,children:Re(e)?e.children:[e]};n.replaceNode(u),s.vFor++;const a=o&&o(u);return()=>{s.vFor--,a&&a()}}const Gt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Kt=/^\(|\)$/g;function Wt(e,t){const n=e.loc,o=e.content,r=o.match(Gt);if(!r)return;const[,s,c]=r,i={source:Zt(n,c.trim(),o.indexOf(c,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Kt,"").trim();const p=s.indexOf(l),u=l.match(qt);if(u){l=l.replace(qt,"").trim();const e=u[1].trim();let t;if(e&&(t=o.indexOf(e,p+l.length),i.key=Zt(n,e,t)),u[2]){const r=u[2].trim();r&&(i.index=Zt(n,r,o.indexOf(r,i.key?t+e.length:p+l.length)))}}return l&&(i.value=Zt(n,l,p)),i}function Zt(e,t,n){return ae(t,!1,Ie(e,n,t.length))}function Qt({value:e,key:t,index:n}){const o=[];return e&&o.push(e),t&&(e||o.push(ae("_",!1)),o.push(t)),n&&(t||(e||o.push(ae("_",!1)),o.push(ae("__",!1))),o.push(n)),o}const Yt=ae("undefined",!1),Xt=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Be(e,"slot");if(n)return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},en=(e,t)=>{let n;if(Re(e)&&e.props.some(He)&&(n=Be(e,"for"))){const e=n.parseResult=Wt(n.exp);if(e){const{value:n,key:o,index:r}=e,{addIdentifiers:s,removeIdentifiers:c}=t;return n&&s(n),o&&s(o),r&&s(r),()=>{n&&c(n),o&&c(o),r&&c(r)}}}},tn=(e,t,n)=>me(e,t,!1,!0,t.length?t[0].loc:n);function nn(e,t,n=tn){t.helper(ee);const{children:o,loc:r}=e,s=[],c=[],i=(e,t)=>ue("default",n(e,t,r));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const p=Be(e,"slot",!0);if(p){const{arg:e,exp:t}=p;e&&!Te(e)&&(l=!0),s.push(ue(e||ae("default",!0),n(t,o,r)))}let u=!1,a=!1;const f=[],d=new Set;for(let g=0;g<o.length;g++){const e=o[g];let r;if(!Re(e)||!(r=Be(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(p)break;u=!0;const{children:i,loc:h}=e,{arg:m=ae("default",!0),exp:y}=r;let v;Te(m)?v=m?m.content:"default":l=!0;const b=n(y,i,h);let x,S,k;if(x=Be(e,"if"))l=!0,c.push(ge(x.exp,on(m,b),Yt));else if(S=Be(e,/^else(-if)?$/,!0)){let e,t=g;for(;t--&&(e=o[t],3===e.type););if(e&&Re(e)&&Be(e,"if")){o.splice(g,1),g--;let e=c[c.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=S.exp?ge(S.exp,on(m,b),Yt):on(m,b)}}else if(k=Be(e,"for")){l=!0;const e=k.parseResult||Wt(k.exp);e&&c.push(he(t.helper(R),[e.source,me(Qt(e),on(m,b),!0)]))}else{if(v){if(d.has(v))continue;d.add(v),"default"===v&&(a=!0)}s.push(ue(m,b))}}p||(u?f.length&&(a||s.push(i(void 0,f))):s.push(i(void 0,o)));const h=l?2:rn(e.children)?3:1;let m=pe(s.concat(ue("_",ae(h+"",!1))),r);return c.length&&(m=he(t.helper(U),[m,le(c)])),{slots:m,hasDynamicSlots:l}}function on(e,t){return pe([ue("name",e),ue("fn",t)])}function rn(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||0===n.tagType&&rn(n.children))return!0;break;case 9:if(rn(n.branches))return!0;break;case 10:case 11:if(rn(n.children))return!0}}return!1}const sn=new WeakMap,cn=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType,s=r?ln(e,t):`"${n}"`;let c,i,l,p,u,a,f=0,d=m(s)&&s.callee===A||s===_||s===C||!r&&("svg"===n||"foreignObject"===n||Le(e,"key",!0));if(o.length>0){const n=pn(e,t);c=n.props,f=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;a=o&&o.length?le(o.map((e=>function(e,t){const n=[],o=sn.get(e);o?n.push(t.helperString(o)):(t.helper(j),t.directives.add(e.name),n.push(ze(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ae("true",!1,r);n.push(pe(e.modifiers.map((e=>ue(e,t))),r))}return le(n,e.loc)}(e,t)))):void 0}if(e.children.length>0){s===M&&(d=!0,f|=1024);if(r&&s!==_&&s!==M){const{slots:n,hasDynamicSlots:o}=nn(e,t);i=n,o&&(f|=1024)}else if(1===e.children.length&&s!==_){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===St(n,t)&&(f|=1),i=r||2===o?n:e.children}else i=e.children}0!==f&&(l=String(f),u&&u.length&&(p=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(u))),e.codegenNode=ie(t,s,c,i,l,p,a,!!d,!1,e.loc)};function ln(e,t,n=!1){const{tag:o}=e,r=fn(o)?Le(e,"is"):Be(e,"is");if(r){const e=6===r.type?r.value&&ae(r.value.content,!0):r.exp;if(e)return he(t.helper(A),[e])}const s=we(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(E),t.components.add(o),ze(o,"component"))}function pn(e,t,n=e.props,o=!1){const{tag:r,loc:s}=e,c=1===e.tagType;let i=[];const l=[],p=[];let a=0,f=!1,d=!1,m=!1,y=!1,v=!1,b=!1;const x=[],S=({key:e,value:n})=>{if(Te(e)){const o=e.content,r=(e=>u.test(e))(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||g(o)||(y=!0),r&&g(o)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&St(n,t)>0)return;"ref"===o?f=!0:"class"!==o||c?"style"!==o||c?"key"===o||x.includes(o)||x.push(o):m=!0:d=!0}else v=!0};for(let u=0;u<n.length;u++){const c=n[u];if(6===c.type){const{loc:e,name:t,value:n}=c;let o=!0;if("ref"===t&&(f=!0),"is"===t&&fn(r))continue;i.push(ue(ae(t,!0,Ie(e,0,t.length)),ae(n?n.content:"",o,n?n.loc:e)))}else{const{name:n,arg:u,exp:a,loc:f}=c,d="bind"===n,m="on"===n;if("slot"===n)continue;if("once"===n)continue;if("is"===n||d&&fn(r)&&Ee(u,"is"))continue;if(m&&o)continue;if(!u&&(d||m)){v=!0,a&&(i.length&&(l.push(pe(un(i),s)),i=[]),l.push(d?a:{type:14,loc:f,callee:t.helper(G),arguments:[a]}));continue}const g=t.directiveTransforms[n];if(g){const{props:n,needRuntime:r}=g(c,e,t);!o&&n.forEach(S),i.push(...n),r&&(p.push(c),h(r)&&sn.set(c,r))}else p.push(c)}}let k;return l.length?(i.length&&l.push(pe(un(i),s)),k=l.length>1?he(t.helper(J),l,s):l[0]):i.length&&(k=pe(un(i),s)),v?a|=16:(d&&(a|=2),m&&(a|=4),x.length&&(a|=8),y&&(a|=32)),0!==a&&32!==a||!(f||b||p.length>0)||(a|=512),{props:k,directives:p,patchFlag:a,dynamicPropNames:x}}function un(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const s=r.key.content,c=t.get(s);c?("style"===s||"class"===s||s.startsWith("on"))&&an(c,r):(t.set(s,r),n.push(r))}return n}function an(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=le([e.value,t.value],e.loc)}function fn(e){return e[0].toLowerCase()+e.slice(1)==="component"}const dn=(e,t)=>{if(De(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=hn(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r];s&&c.push(s),n.length&&(s||c.push("{}"),c.push(me([],n,!1,!1,o))),t.scopeId&&!t.slotted&&(s||c.push("{}"),n.length||c.push("undefined"),c.push("true")),e.codegenNode=he(t.helper(D),c,o)}};function hn(e,t){let n,o='"default"';const r=[];for(let s=0;s<e.props.length;s++){const t=e.props[s];6===t.type?t.value&&("name"===t.name?o=JSON.stringify(t.value.content):(t.name=b(t.name),r.push(t))):"bind"===t.name&&Ee(t.arg,"name")?t.exp&&(o=t.exp):("bind"===t.name&&t.arg&&Te(t.arg)&&(t.arg.content=b(t.arg.content)),r.push(t))}if(r.length>0){const{props:o,directives:s}=pn(e,t,r);n=o}return{slotName:o,slotProps:n}}const mn=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,gn=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:c}=e;let i;if(4===c.type)if(c.isStatic){i=ae(N(b(c.content)),!0,c.loc)}else i=de([`${n.helperString(W)}(`,c,")"]);else i=c,i.children.unshift(`${n.helperString(W)}(`),i.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let p=n.cacheHandlers&&!l;if(l){const e=Oe(l.content),t=!(e||mn.test(l.content)),n=l.content.includes(";");(t||p&&e)&&(l=de([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[ue(i,l||ae("() => {}",!1,r))]};return o&&(u=o(u)),p&&(u.props[0].value=n.cache(u.props[0].value)),u},yn=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=`${c.content} || ""`),r.includes("camel")&&(4===c.type?c.content=c.isStatic?b(c.content):`${n.helperString(q)}(${c.content})`:(c.children.unshift(`${n.helperString(q)}(`),c.children.push(")"))),!o||4===o.type&&!o.content.trim()?{props:[ue(c,ae("",!0,s))]}:{props:[ue(c,o)]}},vn=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(je(t)){r=!0;for(let r=e+1;r<n.length;r++){const s=n[r];if(!je(s)){o=void 0;break}o||(o=n[e]={type:8,loc:t.loc,children:[t]}),o.children.push(" + ",s),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType)))for(let e=0;e<n.length;e++){const o=n[e];if(je(o)||8===o.type){const r=[];2===o.type&&" "===o.content||r.push(o),t.ssr||0!==St(o,t)||r.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:he(t.helper(B),r)}}}}},bn=new WeakSet,xn=(e,t)=>{if(1===e.type&&Be(e,"once",!0)){if(bn.has(e))return;return bn.add(e),t.helper(Z),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Sn=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return kn();const s=o.loc.source;if(!Oe(4===o.type?o.content:s))return kn();const c=r||ae("modelValue",!0),i=r?Te(r)?`onUpdate:${r.content}`:de(['"onUpdate:" + ',r]):"onUpdate:modelValue";let l;l=de([`${n.isTS?"($event: any)":"$event"} => (`,o," = $event)"]);const p=[ue(c,e.exp),ue(i,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ce(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Te(r)?`${r.content}Modifiers`:de([r,' + "Modifiers"']):"modelModifiers";p.push(ue(n,ae(`{ ${t} }`,!1,e.loc,2)))}return kn(p)};function kn(e=[]){return{props:e}}function Nn(e){return[[xn,jt,zt,dn,cn,Xt,vn],{on:gn,bind:yn,model:Sn}]}function Tn(e,t={}){const n=t.onError||T,o="module"===t.mode;!0===t.prefixIdentifiers?n($(45)):o&&n($(46));t.cacheHandlers&&n($(47)),t.scopeId&&!o&&n($(48));const r=d(e)?We(e,t):e,[s,c]=Nn();return wt(r,a({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},c,t.directiveTransforms||{})})),Mt(r,a({},t,{prefixIdentifiers:false}))}const $n=()=>({props:[]}),wn=Symbol(""),_n=Symbol(""),Cn=Symbol(""),Mn=Symbol(""),On=Symbol(""),In=Symbol(""),Pn=Symbol(""),Vn=Symbol(""),Fn=Symbol(""),Bn=Symbol("");let Ln;re({[wn]:"vModelRadio",[_n]:"vModelCheckbox",[Cn]:"vModelText",[Mn]:"vModelSelect",[On]:"vModelDynamic",[In]:"withModifiers",[Pn]:"withKeys",[Vn]:"vShow",[Fn]:"Transition",[Bn]:"TransitionGroup"});const En=e("style,iframe,script,noscript",!0),An={isVoidTag:c,isNativeTag:e=>r(e)||s(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(Ln||(Ln=document.createElement("div"))).innerHTML=e,Ln.textContent},isBuiltInComponent:e=>$e(e,"Transition")?Fn:$e(e,"TransitionGroup")?Bn:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(En(e))return 2}return 0}},jn=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ae("style",!0,t.loc),exp:Hn(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},Hn=(e,t)=>{const r=function(e){const t={};return e.split(n).forEach((e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}(e);return ae(JSON.stringify(r),!1,t,3)};function Rn(e,t){return $(e,t)}const Dn=e("passive,once,capture"),Un=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),zn=e("left,right"),Jn=e("onkeyup,onkeydown,onkeypress",!0),Gn=(e,t)=>Te(e)&&"onclick"===e.content.toLowerCase()?ae(t,!0):4!==e.type?de(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,qn=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Kn=[jn],Wn={cloak:$n,html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("innerHTML",!0,r),o||ae("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ue(ae("textContent",!0),o?he(n.helperString(z),[o],r):ae("",!0))]}},model:(e,t,n)=>{const o=Sn(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=Cn,c=!1;if("input"===r||s){const n=Le(t,"type");if(n){if(7===n.type)e=On;else if(n.value)switch(n.value.content){case"radio":e=wn;break;case"checkbox":e=_n;break;case"file":c=!0}}else Ae(t)&&(e=On)}else"select"===r&&(e=Mn);c||(o.needRuntime=n.helper(e))}return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>gn(e,0,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:c,nonKeyModifiers:i,eventOptionModifiers:l}=((e,t)=>{const n=[],o=[],r=[];for(let s=0;s<t.length;s++){const c=t[s];Dn(c)?r.push(c):zn(c)?Te(e)?Jn(e.content)?n.push(c):o.push(c):(n.push(c),o.push(c)):Un(c)?o.push(c):n.push(c)}return{keyModifiers:n,nonKeyModifiers:o,eventOptionModifiers:r}})(r,o);if(i.includes("right")&&(r=Gn(r,"onContextmenu")),i.includes("middle")&&(r=Gn(r,"onMouseup")),i.length&&(s=he(n.helper(In),[s,JSON.stringify(i)])),!c.length||Te(r)&&!Jn(r.content)||(s=he(n.helper(Pn),[s,JSON.stringify(c)])),l.length){const e=l.map(k).join("");r=Te(r)?ae(`${r.content}${e}`,!0):de(["(",r,`) + "${e}"`])}return{props:[ue(r,s)]}})),show:(e,t,n)=>({props:[],needRuntime:n.helper(Vn)})};function Zn(e,t={}){return Tn(e,a({},An,t,{nodeTransforms:[qn,...Kn,...t.nodeTransforms||[]],directiveTransforms:a({},Wn,t.directiveTransforms||{}),transformHoist:null}))}function Qn(e,t={}){return We(e,a({},An,t))}export{O as BASE_TRANSITION,q as CAMELIZE,K as CAPITALIZE,P as CREATE_BLOCK,F as CREATE_COMMENT,U as CREATE_SLOTS,L as CREATE_STATIC,B as CREATE_TEXT,V as CREATE_VNODE,Wn as DOMDirectiveTransforms,Kn as DOMNodeTransforms,w as FRAGMENT,ne as IS_REF,M as KEEP_ALIVE,J as MERGE_PROPS,I as OPEN_BLOCK,Y as POP_SCOPE_ID,Q as PUSH_SCOPE_ID,R as RENDER_LIST,D as RENDER_SLOT,E as RESOLVE_COMPONENT,j as RESOLVE_DIRECTIVE,A as RESOLVE_DYNAMIC_COMPONENT,Z as SET_BLOCK_TRACKING,C as SUSPENSE,_ as TELEPORT,z as TO_DISPLAY_STRING,G as TO_HANDLERS,W as TO_HANDLER_KEY,Fn as TRANSITION,Bn as TRANSITION_GROUP,te as UNREF,_n as V_MODEL_CHECKBOX,On as V_MODEL_DYNAMIC,wn as V_MODEL_RADIO,Mn as V_MODEL_SELECT,Cn as V_MODEL_TEXT,Pn as V_ON_WITH_KEYS,In as V_ON_WITH_MODIFIERS,Vn as V_SHOW,ee as WITH_CTX,H as WITH_DIRECTIVES,X as WITH_SCOPE_ID,Pe as advancePositionWithClone,Ve as advancePositionWithMutation,Fe as assert,Tn as baseCompile,We as baseParse,pn as buildProps,nn as buildSlots,Zn as compile,le as createArrayExpression,Se as createAssignmentExpression,ve as createBlockStatement,ye as createCacheExpression,he as createCallExpression,$ as createCompilerError,de as createCompoundExpression,ge as createConditionalExpression,Rn as createDOMCompilerError,Qt as createForLoopParams,me as createFunctionExpression,xe as createIfStatement,fe as createInterpolation,pe as createObjectExpression,ue as createObjectProperty,Ne as createReturnStatement,ce as createRoot,ke as createSequenceExpression,ae as createSimpleExpression,Ct as createStructuralDirectiveTransform,be as createTemplateLiteral,$t as createTransformContext,ie as createVNodeCall,Be as findDir,Le as findProp,Mt as generate,t as generateCodeFrame,Nn as getBaseTransformPreset,Ie as getInnerRange,Ae as hasDynamicKeyVBind,Je as hasScopeRef,oe as helperNameMap,Ue as injectProp,Ee as isBindKey,$e as isBuiltInType,we as isCoreComponent,Oe as isMemberExpression,Ce as isSimpleIdentifier,De as isSlotOutlet,Te as isStaticExp,Re as isTemplateNode,je as isText,He as isVSlot,se as locStub,$n as noopDirectiveTransform,Qn as parse,An as parserOptions,At as processExpression,Jt as processFor,Ht as processIf,hn as processSlotOutlet,re as registerRuntimeHelpers,ln as resolveComponentType,ze as toValidAssetId,Xt as trackSlotScopes,en as trackVForSlotScopes,wt as transform,yn as transformBind,cn as transformElement,Et as transformExpression,Sn as transformModel,gn as transformOn,jn as transformStyle,_t as traverseNode};
|
|
@@ -510,7 +510,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
510
510
|
}
|
|
511
511
|
const nonIdentifierRE = /^\d|[^\$\w]/;
|
|
512
512
|
const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
513
|
-
const memberExpRE = /^[A-Za-z_
|
|
513
|
+
const memberExpRE = /^[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*(?:\s*\.\s*[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*|\[[^\]]+\])*$/;
|
|
514
514
|
const isMemberExpression = (path) => {
|
|
515
515
|
if (!path)
|
|
516
516
|
return false;
|
|
@@ -839,7 +839,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
839
839
|
// Whitespace management for more efficient output
|
|
840
840
|
// (same as v2 whitespace: 'condense')
|
|
841
841
|
let removedWhitespace = false;
|
|
842
|
-
if (mode !== 2 /* RAWTEXT */) {
|
|
842
|
+
if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {
|
|
843
843
|
for (let i = 0; i < nodes.length; i++) {
|
|
844
844
|
const node = nodes[i];
|
|
845
845
|
if (!context.inPre && node.type === 2 /* TEXT */) {
|
|
@@ -1149,7 +1149,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1149
1149
|
let arg;
|
|
1150
1150
|
if (match[2]) {
|
|
1151
1151
|
const isSlot = dirName === 'slot';
|
|
1152
|
-
const startOffset = name.
|
|
1152
|
+
const startOffset = name.lastIndexOf(match[2]);
|
|
1153
1153
|
const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));
|
|
1154
1154
|
let content = match[2];
|
|
1155
1155
|
let isStatic = true;
|
|
@@ -1470,7 +1470,14 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
// walk further
|
|
1472
1472
|
if (child.type === 1 /* ELEMENT */) {
|
|
1473
|
+
const isComponent = child.tagType === 1 /* COMPONENT */;
|
|
1474
|
+
if (isComponent) {
|
|
1475
|
+
context.scopes.vSlot++;
|
|
1476
|
+
}
|
|
1473
1477
|
walk(child, context);
|
|
1478
|
+
if (isComponent) {
|
|
1479
|
+
context.scopes.vSlot--;
|
|
1480
|
+
}
|
|
1474
1481
|
}
|
|
1475
1482
|
else if (child.type === 11 /* FOR */) {
|
|
1476
1483
|
// Do not hoist v-for single child because it has to be a block
|
|
@@ -1552,6 +1559,8 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1552
1559
|
// static then they don't need to be blocks since there will be no
|
|
1553
1560
|
// nested updates.
|
|
1554
1561
|
if (codegenNode.isBlock) {
|
|
1562
|
+
context.removeHelper(OPEN_BLOCK);
|
|
1563
|
+
context.removeHelper(CREATE_BLOCK);
|
|
1555
1564
|
codegenNode.isBlock = false;
|
|
1556
1565
|
context.helper(CREATE_VNODE);
|
|
1557
1566
|
}
|
|
@@ -1633,7 +1642,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1633
1642
|
return flag ? parseInt(flag, 10) : undefined;
|
|
1634
1643
|
}
|
|
1635
1644
|
|
|
1636
|
-
function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, ssr = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError }) {
|
|
1645
|
+
function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError }) {
|
|
1637
1646
|
const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
|
|
1638
1647
|
const context = {
|
|
1639
1648
|
// options
|
|
@@ -1648,6 +1657,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1648
1657
|
isCustomElement,
|
|
1649
1658
|
expressionPlugins,
|
|
1650
1659
|
scopeId,
|
|
1660
|
+
slotted,
|
|
1651
1661
|
ssr,
|
|
1652
1662
|
ssrCssVars,
|
|
1653
1663
|
bindingMetadata,
|
|
@@ -1656,7 +1666,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1656
1666
|
onError,
|
|
1657
1667
|
// state
|
|
1658
1668
|
root,
|
|
1659
|
-
helpers: new
|
|
1669
|
+
helpers: new Map(),
|
|
1660
1670
|
components: new Set(),
|
|
1661
1671
|
directives: new Set(),
|
|
1662
1672
|
hoists: [],
|
|
@@ -1676,9 +1686,22 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1676
1686
|
childIndex: 0,
|
|
1677
1687
|
// methods
|
|
1678
1688
|
helper(name) {
|
|
1679
|
-
context.helpers.
|
|
1689
|
+
const count = context.helpers.get(name) || 0;
|
|
1690
|
+
context.helpers.set(name, count + 1);
|
|
1680
1691
|
return name;
|
|
1681
1692
|
},
|
|
1693
|
+
removeHelper(name) {
|
|
1694
|
+
const count = context.helpers.get(name);
|
|
1695
|
+
if (count) {
|
|
1696
|
+
const currentCount = count - 1;
|
|
1697
|
+
if (!currentCount) {
|
|
1698
|
+
context.helpers.delete(name);
|
|
1699
|
+
}
|
|
1700
|
+
else {
|
|
1701
|
+
context.helpers.set(name, currentCount);
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
},
|
|
1682
1705
|
helperString(name) {
|
|
1683
1706
|
return `_${helperNameMap[context.helper(name)]}`;
|
|
1684
1707
|
},
|
|
@@ -1749,7 +1772,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1749
1772
|
createRootCodegen(root, context);
|
|
1750
1773
|
}
|
|
1751
1774
|
// finalize meta information
|
|
1752
|
-
root.helpers = [...context.helpers];
|
|
1775
|
+
root.helpers = [...context.helpers.keys()];
|
|
1753
1776
|
root.components = [...context.components];
|
|
1754
1777
|
root.directives = [...context.directives];
|
|
1755
1778
|
root.imports = context.imports;
|
|
@@ -1758,7 +1781,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1758
1781
|
root.cached = context.cached;
|
|
1759
1782
|
}
|
|
1760
1783
|
function createRootCodegen(root, context) {
|
|
1761
|
-
const { helper } = context;
|
|
1784
|
+
const { helper, removeHelper } = context;
|
|
1762
1785
|
const { children } = root;
|
|
1763
1786
|
if (children.length === 1) {
|
|
1764
1787
|
const child = children[0];
|
|
@@ -1768,9 +1791,12 @@ var VueCompilerDOM = (function (exports) {
|
|
|
1768
1791
|
// SimpleExpressionNode
|
|
1769
1792
|
const codegenNode = child.codegenNode;
|
|
1770
1793
|
if (codegenNode.type === 13 /* VNODE_CALL */) {
|
|
1771
|
-
codegenNode.isBlock
|
|
1772
|
-
|
|
1773
|
-
|
|
1794
|
+
if (!codegenNode.isBlock) {
|
|
1795
|
+
removeHelper(CREATE_VNODE);
|
|
1796
|
+
codegenNode.isBlock = true;
|
|
1797
|
+
helper(OPEN_BLOCK);
|
|
1798
|
+
helper(CREATE_BLOCK);
|
|
1799
|
+
}
|
|
1774
1800
|
}
|
|
1775
1801
|
root.codegenNode = codegenNode;
|
|
1776
1802
|
}
|
|
@@ -2064,8 +2090,13 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2064
2090
|
function genAssets(assets, type, { helper, push, newline }) {
|
|
2065
2091
|
const resolver = helper(type === 'component' ? RESOLVE_COMPONENT : RESOLVE_DIRECTIVE);
|
|
2066
2092
|
for (let i = 0; i < assets.length; i++) {
|
|
2067
|
-
|
|
2068
|
-
|
|
2093
|
+
let id = assets[i];
|
|
2094
|
+
// potential component implicit self-reference inferred from SFC filename
|
|
2095
|
+
const maybeSelfReference = id.endsWith('__self');
|
|
2096
|
+
if (maybeSelfReference) {
|
|
2097
|
+
id = id.slice(0, -6);
|
|
2098
|
+
}
|
|
2099
|
+
push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})`);
|
|
2069
2100
|
if (i < assets.length - 1) {
|
|
2070
2101
|
newline();
|
|
2071
2102
|
}
|
|
@@ -2339,6 +2370,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2339
2370
|
const { push, indent, deindent, scopeId, mode } = context;
|
|
2340
2371
|
const { params, returns, body, newline, isSlot } = node;
|
|
2341
2372
|
if (isSlot) {
|
|
2373
|
+
// wrap slot functions with owner context
|
|
2342
2374
|
push(`_${helperNameMap[WITH_CTX]}(`);
|
|
2343
2375
|
}
|
|
2344
2376
|
push(`(`, node);
|
|
@@ -2647,7 +2679,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2647
2679
|
}
|
|
2648
2680
|
}
|
|
2649
2681
|
function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
2650
|
-
const { helper } = context;
|
|
2682
|
+
const { helper, removeHelper } = context;
|
|
2651
2683
|
const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
|
|
2652
2684
|
const { children } = branch;
|
|
2653
2685
|
const firstChild = children[0];
|
|
@@ -2660,16 +2692,23 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2660
2692
|
return vnodeCall;
|
|
2661
2693
|
}
|
|
2662
2694
|
else {
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2695
|
+
let patchFlag = 64 /* STABLE_FRAGMENT */;
|
|
2696
|
+
let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];
|
|
2697
|
+
// check if the fragment actually contains a single valid child with
|
|
2698
|
+
// the rest being comments
|
|
2699
|
+
if (children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
|
|
2700
|
+
patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
|
|
2701
|
+
patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;
|
|
2702
|
+
}
|
|
2703
|
+
return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (` /* ${patchFlagText} */` ), undefined, undefined, true, false, branch.loc);
|
|
2666
2704
|
}
|
|
2667
2705
|
}
|
|
2668
2706
|
else {
|
|
2669
2707
|
const vnodeCall = firstChild
|
|
2670
2708
|
.codegenNode;
|
|
2671
2709
|
// Change createVNode to createBlock.
|
|
2672
|
-
if (vnodeCall.type === 13 /* VNODE_CALL */) {
|
|
2710
|
+
if (vnodeCall.type === 13 /* VNODE_CALL */ && !vnodeCall.isBlock) {
|
|
2711
|
+
removeHelper(CREATE_VNODE);
|
|
2673
2712
|
vnodeCall.isBlock = true;
|
|
2674
2713
|
helper(OPEN_BLOCK);
|
|
2675
2714
|
helper(CREATE_BLOCK);
|
|
@@ -2720,7 +2759,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2720
2759
|
}
|
|
2721
2760
|
|
|
2722
2761
|
const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {
|
|
2723
|
-
const { helper } = context;
|
|
2762
|
+
const { helper, removeHelper } = context;
|
|
2724
2763
|
return processFor(node, dir, context, forNode => {
|
|
2725
2764
|
// create the loop render function expression now, and add the
|
|
2726
2765
|
// iterator on exit after all children have been traversed
|
|
@@ -2792,6 +2831,17 @@ var VueCompilerDOM = (function (exports) {
|
|
|
2792
2831
|
if (isTemplate && keyProperty) {
|
|
2793
2832
|
injectProp(childBlock, keyProperty, context);
|
|
2794
2833
|
}
|
|
2834
|
+
if (childBlock.isBlock !== !isStableFragment) {
|
|
2835
|
+
if (childBlock.isBlock) {
|
|
2836
|
+
// switch from block to vnode
|
|
2837
|
+
removeHelper(OPEN_BLOCK);
|
|
2838
|
+
removeHelper(CREATE_BLOCK);
|
|
2839
|
+
}
|
|
2840
|
+
else {
|
|
2841
|
+
// switch from vnode to block
|
|
2842
|
+
removeHelper(CREATE_VNODE);
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2795
2845
|
childBlock.isBlock = !isStableFragment;
|
|
2796
2846
|
if (childBlock.isBlock) {
|
|
2797
2847
|
helper(OPEN_BLOCK);
|
|
@@ -3136,12 +3186,23 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3136
3186
|
function hasForwardedSlots(children) {
|
|
3137
3187
|
for (let i = 0; i < children.length; i++) {
|
|
3138
3188
|
const child = children[i];
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
(child.tagType ===
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3189
|
+
switch (child.type) {
|
|
3190
|
+
case 1 /* ELEMENT */:
|
|
3191
|
+
if (child.tagType === 2 /* SLOT */ ||
|
|
3192
|
+
(child.tagType === 0 /* ELEMENT */ &&
|
|
3193
|
+
hasForwardedSlots(child.children))) {
|
|
3194
|
+
return true;
|
|
3195
|
+
}
|
|
3196
|
+
break;
|
|
3197
|
+
case 9 /* IF */:
|
|
3198
|
+
if (hasForwardedSlots(child.branches))
|
|
3199
|
+
return true;
|
|
3200
|
+
break;
|
|
3201
|
+
case 10 /* IF_BRANCH */:
|
|
3202
|
+
case 11 /* FOR */:
|
|
3203
|
+
if (hasForwardedSlots(child.children))
|
|
3204
|
+
return true;
|
|
3205
|
+
break;
|
|
3145
3206
|
}
|
|
3146
3207
|
}
|
|
3147
3208
|
return false;
|
|
@@ -3152,14 +3213,15 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3152
3213
|
const directiveImportMap = new WeakMap();
|
|
3153
3214
|
// generate a JavaScript AST for this element's codegen
|
|
3154
3215
|
const transformElement = (node, context) => {
|
|
3155
|
-
if (!(node.type === 1 /* ELEMENT */ &&
|
|
3156
|
-
(node.tagType === 0 /* ELEMENT */ ||
|
|
3157
|
-
node.tagType === 1 /* COMPONENT */))) {
|
|
3158
|
-
return;
|
|
3159
|
-
}
|
|
3160
3216
|
// perform the work on exit, after all child expressions have been
|
|
3161
3217
|
// processed and merged.
|
|
3162
3218
|
return function postTransformElement() {
|
|
3219
|
+
node = context.currentNode;
|
|
3220
|
+
if (!(node.type === 1 /* ELEMENT */ &&
|
|
3221
|
+
(node.tagType === 0 /* ELEMENT */ ||
|
|
3222
|
+
node.tagType === 1 /* COMPONENT */))) {
|
|
3223
|
+
return;
|
|
3224
|
+
}
|
|
3163
3225
|
const { tag, props } = node;
|
|
3164
3226
|
const isComponent = node.tagType === 1 /* COMPONENT */;
|
|
3165
3227
|
// The goal of the transform is to create a codegenNode implementing the
|
|
@@ -3283,7 +3345,9 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3283
3345
|
function resolveComponentType(node, context, ssr = false) {
|
|
3284
3346
|
const { tag } = node;
|
|
3285
3347
|
// 1. dynamic component
|
|
3286
|
-
const isProp =
|
|
3348
|
+
const isProp = isComponentTag(tag)
|
|
3349
|
+
? findProp(node, 'is')
|
|
3350
|
+
: findDir(node, 'is');
|
|
3287
3351
|
if (isProp) {
|
|
3288
3352
|
const exp = isProp.type === 6 /* ATTRIBUTE */
|
|
3289
3353
|
? isProp.value && createSimpleExpression(isProp.value.content, true)
|
|
@@ -3375,7 +3439,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3375
3439
|
hasRef = true;
|
|
3376
3440
|
}
|
|
3377
3441
|
// skip :is on <component>
|
|
3378
|
-
if (name === 'is' && tag
|
|
3442
|
+
if (name === 'is' && isComponentTag(tag)) {
|
|
3379
3443
|
continue;
|
|
3380
3444
|
}
|
|
3381
3445
|
properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
|
|
@@ -3398,7 +3462,7 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3398
3462
|
}
|
|
3399
3463
|
// skip v-is and :is on <component>
|
|
3400
3464
|
if (name === 'is' ||
|
|
3401
|
-
(isBind && tag
|
|
3465
|
+
(isBind && isComponentTag(tag) && isBindKey(arg, 'is'))) {
|
|
3402
3466
|
continue;
|
|
3403
3467
|
}
|
|
3404
3468
|
// skip v-on in SSR compilation
|
|
@@ -3581,6 +3645,9 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3581
3645
|
propsNamesString += ', ';
|
|
3582
3646
|
}
|
|
3583
3647
|
return propsNamesString + `]`;
|
|
3648
|
+
}
|
|
3649
|
+
function isComponentTag(tag) {
|
|
3650
|
+
return tag[0].toLowerCase() + tag.slice(1) === 'component';
|
|
3584
3651
|
}
|
|
3585
3652
|
|
|
3586
3653
|
const transformSlotOutlet = (node, context) => {
|
|
@@ -3600,6 +3667,15 @@ var VueCompilerDOM = (function (exports) {
|
|
|
3600
3667
|
}
|
|
3601
3668
|
slotArgs.push(createFunctionExpression([], children, false, false, loc));
|
|
3602
3669
|
}
|
|
3670
|
+
if (context.scopeId && !context.slotted) {
|
|
3671
|
+
if (!slotProps) {
|
|
3672
|
+
slotArgs.push(`{}`);
|
|
3673
|
+
}
|
|
3674
|
+
if (!children.length) {
|
|
3675
|
+
slotArgs.push(`undefined`);
|
|
3676
|
+
}
|
|
3677
|
+
slotArgs.push(`true`);
|
|
3678
|
+
}
|
|
3603
3679
|
node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
|
|
3604
3680
|
}
|
|
3605
3681
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var VueCompilerDOM=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),i={},l=()=>{},p=()=>!1,a=/^on[^a-z]/,u=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=t(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,S=y(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),b=/\B([A-Z])/g,x=y(e=>e.replace(b,"-$1").toLowerCase()),T=y(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=y(e=>e?"on"+T(e):"");function E(e){throw e}function k(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const O=Symbol(""),_=Symbol(""),C=Symbol(""),I=Symbol(""),M=Symbol(""),w=Symbol(""),P=Symbol(""),$=Symbol(""),V=Symbol(""),R=Symbol(""),L=Symbol(""),A=Symbol(""),D=Symbol(""),B=Symbol(""),F=Symbol(""),H=Symbol(""),j=Symbol(""),K=Symbol(""),U=Symbol(""),G=Symbol(""),W=Symbol(""),z=Symbol(""),J=Symbol(""),q=Symbol(""),Y=Symbol(""),Z=Symbol(""),X=Symbol(""),Q=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe={[O]:"Fragment",[_]:"Teleport",[C]:"Suspense",[I]:"KeepAlive",[M]:"BaseTransition",[w]:"openBlock",[P]:"createBlock",[$]:"createVNode",[V]:"createCommentVNode",[R]:"createTextVNode",[L]:"createStaticVNode",[A]:"resolveComponent",[D]:"resolveDynamicComponent",[B]:"resolveDirective",[F]:"withDirectives",[H]:"renderList",[j]:"renderSlot",[K]:"createSlots",[U]:"toDisplayString",[G]:"mergeProps",[W]:"toHandlers",[z]:"camelize",[J]:"capitalize",[q]:"toHandlerKey",[Y]:"setBlockTracking",[Z]:"pushScopeId",[X]:"popScopeId",[Q]:"withScopeId",[ee]:"withCtx",[te]:"unref",[ne]:"isRef"};function re(e){Object.getOwnPropertySymbols(e).forEach(t=>{oe[t]=e[t]})}const se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ce(e,t=se){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ie(e,t,n,o,r,s,c,i=!1,l=!1,p=se){return e&&(i?(e.helper(w),e.helper(P)):e.helper($),c&&e.helper(F)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:c,isBlock:i,disableTracking:l,loc:p}}function le(e,t=se){return{type:17,loc:t,elements:e}}function pe(e,t=se){return{type:15,loc:t,properties:e}}function ae(e,t){return{type:16,loc:se,key:d(e)?ue(e,!0):e,value:t}}function ue(e,t,n=se,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function fe(e,t=se){return{type:8,loc:t,children:e}}function de(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function he(e,t,n=!1,o=!1,r=se){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function me(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:se}}function ge(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:se}}const ye=e=>4===e.type&&e.isStatic,ve=(e,t)=>e===t||e===x(t);function Se(e){return ve(e,"Teleport")?_:ve(e,"Suspense")?C:ve(e,"KeepAlive")?I:ve(e,"BaseTransition")?M:void 0}const be=/^\d|[^\$\w]/,xe=e=>!be.test(e),Te=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,Ne=e=>!!e&&Te.test(e.trim());function Ee(e,t,n){const o={source:e.source.substr(t,n),start:ke(e.start,e.source,t),end:e.end};return null!=n&&(o.end=ke(e.start,e.source,t+n)),o}function ke(e,t,n=t.length){return Oe(u({},e),t,n)}function Oe(e,t,n=t.length){let o=0,r=-1;for(let s=0;s<n;s++)10===t.charCodeAt(s)&&(o++,r=s);return e.offset+=n,e.line+=o,e.column=-1===r?e.column+n:n-r,e}function _e(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(n||r.exp)&&(d(t)?r.name===t:t.test(r.name)))return r}}function Ce(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||o))return s}else if("bind"===s.name&&(s.exp||o)&&Ie(s.arg,t))return s}}function Ie(e,t){return!(!e||!ye(e)||e.content!==t)}function Me(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))}function we(e){return 5===e.type||2===e.type}function Pe(e){return 7===e.type&&"slot"===e.name}function $e(e){return 1===e.type&&3===e.tagType}function Ve(e){return 1===e.type&&2===e.tagType}function Re(e,t,n){let o;const r=13===e.type?e.props:e.arguments[2];if(null==r||d(r))o=pe([t]);else if(14===r.type){const e=r.arguments[0];d(e)||15!==e.type?r.callee===W?o=de(n.helper(G),[pe([t]),r]):r.arguments.unshift(pe([t])):e.properties.unshift(t),!o&&(o=r)}else if(15===r.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=r.properties.some(e=>4===e.key.type&&e.key.content===n)}e||r.properties.unshift(t),o=r}else o=de(n.helper(G),[pe([t]),r]);13===e.type?e.props=o:e.arguments[2]=o}function Le(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}const Ae=/&(gt|lt|amp|apos|quot);/g,De={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Be={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:p,isPreTag:p,isCustomElement:p,decodeEntities:e=>e.replace(Ae,(e,t)=>De[t]),onError:E,comments:!1};function Fe(e,t={}){const n=function(e,t){const n=u({},Be);for(const o in t)n[o]=t[o]||Be[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),o=et(n);return ce(He(n,0,[]),tt(n,o))}function He(e,t,n){const o=nt(n),r=o?o.ns:0,s=[];for(;!it(e,t,n);){const c=e.source;let i=void 0;if(0===t||1===t)if(!e.inVPre&&ot(c,e.options.delimiters[0]))i=Ze(e,t);else if(0===t&&"<"===c[0])if(1===c.length);else if("!"===c[1])i=ot(c,"\x3c!--")?Ue(e):ot(c,"<!DOCTYPE")?Ge(e):ot(c,"<![CDATA[")&&0!==r?Ke(e,n):Ge(e);else if("/"===c[1])if(2===c.length);else{if(">"===c[2]){rt(e,3);continue}if(/[a-z]/i.test(c[2])){Je(e,1,o);continue}i=Ge(e)}else/[a-z]/i.test(c[1])?i=We(e,n):"?"===c[1]&&(i=Ge(e));if(i||(i=Xe(e,t)),f(i))for(let e=0;e<i.length;e++)je(s,i[e]);else je(s,i)}let c=!1;if(2!==t){for(let t=0;t<s.length;t++){const n=s[t];if(!e.inPre&&2===n.type)if(/[^\t\r\n\f ]/.test(n.content))n.content=n.content.replace(/[\t\r\n\f ]+/g," ");else{const e=s[t-1],o=s[t+1];!e||!o||3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(n.content)?(c=!0,s[t]=null):n.content=" "}3!==n.type||e.options.comments||(c=!0,s[t]=null)}if(e.inPre&&o&&e.options.isPreTag(o.tag)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return c?s.filter(Boolean):s}function je(e,t){if(2===t.type){const n=nt(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Ke(e,t){rt(e,9);const n=He(e,3,t);return 0===e.source.length||rt(e,3),n}function Ue(e){const t=et(e);let n;const o=/--(\!)?>/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)rt(e,s-r+1),r=s+1;rt(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),rt(e,e.source.length);return{type:3,content:n,loc:tt(e,t)}}function Ge(e){const t=et(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),rt(e,e.source.length)):(o=e.source.slice(n,r),rt(e,r+1)),{type:3,content:o,loc:tt(e,t)}}function We(e,t){const n=e.inPre,o=e.inVPre,r=nt(t),s=Je(e,0,r),c=e.inPre&&!n,i=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return s;t.push(s);const l=e.options.getTextMode(s,r),p=He(e,l,t);if(t.pop(),s.children=p,lt(e.source,s.tag))Je(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=p[0];e&&ot(e.loc.source,"\x3c!--")}return s.loc=tt(e,s.loc.start),c&&(e.inPre=!1),i&&(e.inVPre=!1),s}const ze=t("if,else,else-if,for,slot");function Je(e,t,n){const o=et(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],c=e.options.getNamespace(s,n);rt(e,r[0].length),st(e);const i=et(e),l=e.source;let p=qe(e,t);e.options.isPreTag(s)&&(e.inPre=!0),!e.inVPre&&p.some(e=>7===e.type&&"pre"===e.name)&&(e.inVPre=!0,u(e,i),e.source=l,p=qe(e,t).filter(e=>"v-pre"!==e.name));let a=!1;0===e.source.length||(a=ot(e.source,"/>"),rt(e,a?2:1));let f=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(s)){const e=p.some(e=>7===e.type&&"is"===e.name);d.isNativeTag&&!e?d.isNativeTag(s)||(f=1):(e||Se(s)||d.isBuiltInComponent&&d.isBuiltInComponent(s)||/^[A-Z]/.test(s)||"component"===s)&&(f=1),"slot"===s?f=2:"template"===s&&p.some(e=>7===e.type&&ze(e.name))&&(f=3)}return{type:1,ns:c,tag:s,tagType:f,props:p,isSelfClosing:a,children:[],loc:tt(e,o),codegenNode:void 0}}function qe(e,t){const n=[],o=new Set;for(;e.source.length>0&&!ot(e.source,">")&&!ot(e.source,"/>");){if(ot(e.source,"/")){rt(e,1),st(e);continue}const r=Ye(e,o);0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),st(e)}return n}function Ye(e,t){const n=et(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}rt(e,o.length);let r=void 0;/^[\t\r\n\f ]*=/.test(e.source)&&(st(e),rt(e,1),st(e),r=function(e){const t=et(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){rt(e,1);const t=e.source.indexOf(o);-1===t?n=Qe(e,e.source.length,4):(n=Qe(e,t,4),rt(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=Qe(e,t[0].length,4)}return{content:n,isQuoted:r,loc:tt(e,t)}}(e));const s=tt(e,n);if(!e.inVPre&&/^(v-|:|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o),c=t[1]||(ot(o,":")?"bind":ot(o,"@")?"on":"slot");let i;if(t[2]){const r="slot"===c,s=o.indexOf(t[2]),l=tt(e,ct(e,n,s),ct(e,n,s+t[2].length+(r&&t[3]||"").length));let p=t[2],a=!0;p.startsWith("[")?(a=!1,p.endsWith("]"),p=p.substr(1,p.length-2)):r&&(p+=t[3]||""),i={type:4,content:p,isStatic:a,constType:a?3:0,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=ke(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:c,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:t[3]?t[3].substr(1).split("."):[],loc:s}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function Ze(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=et(e);rt(e,n.length);const c=et(e),i=et(e),l=r-n.length,p=e.source.slice(0,l),a=Qe(e,l,t),u=a.trim(),f=a.indexOf(u);f>0&&Oe(c,p,f);return Oe(i,p,l-(a.length-u.length-f)),rt(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:u,loc:tt(e,c,i)},loc:tt(e,s)}}function Xe(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let o=e.source.length;for(let s=0;s<n.length;s++){const t=e.source.indexOf(n[s],1);-1!==t&&o>t&&(o=t)}const r=et(e);return{type:2,content:Qe(e,o,t),loc:tt(e,r)}}function Qe(e,t,n){const o=e.source.slice(0,t);return rt(e,t),2===n||3===n||-1===o.indexOf("&")?o:e.options.decodeEntities(o,4===n)}function et(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function tt(e,t,n){return{start:t,end:n=n||et(e),source:e.originalSource.slice(t.offset,n.offset)}}function nt(e){return e[e.length-1]}function ot(e,t){return e.startsWith(t)}function rt(e,t){const{source:n}=e;Oe(e,n,t),e.source=n.slice(t)}function st(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&rt(e,t[0].length)}function ct(e,t,n){return ke(t,e.originalSource.slice(t.offset,n),n)}function it(e,t,n){const o=e.source;switch(t){case 0:if(ot(o,"</"))for(let e=n.length-1;e>=0;--e)if(lt(o,n[e].tag))return!0;break;case 1:case 2:{const e=nt(n);if(e&<(o,e.tag))return!0;break}case 3:if(ot(o,"]]>"))return!0}return!o}function lt(e,t){return ot(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function pt(e,t){ut(e,t,at(e,e.children[0]))}function at(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Ve(t)}function ut(e,t,n=!1){let o=!1,r=!0;const{children:s}=e;for(let c=0;c<s.length;c++){const e=s[c];if(1===e.type&&0===e.tagType){const s=n?0:ft(e,t);if(s>0){if(s<3&&(r=!1),s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o=!0;continue}}else{const n=e.codegenNode;if(13===n.type){const o=mt(n);if((!o||512===o||1===o)&&dt(e,t)>=2){const o=ht(e);o&&(n.props=t.hoist(o))}}}}else if(12===e.type){const n=ft(e.content,t);n>0&&(n<3&&(r=!1),n>=2&&(e.codegenNode=t.hoist(e.codegenNode),o=!0))}if(1===e.type)ut(e,t);else if(11===e.type)ut(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)ut(e.branches[n],t,1===e.branches[n].children.length)}r&&o&&t.transformHoist&&t.transformHoist(s,t,e)}function ft(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const r=e.codegenNode;if(13!==r.type)return 0;if(mt(r))return n.set(e,0),0;{let o=3;const s=dt(e,t);if(0===s)return n.set(e,0),0;s<o&&(o=s);for(let r=0;r<e.children.length;r++){const s=ft(e.children[r],t);if(0===s)return n.set(e,0),0;s<o&&(o=s)}if(o>1)for(let r=0;r<e.props.length;r++){const s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){const r=ft(s.exp,t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}}return r.isBlock&&(r.isBlock=!1,t.helper($)),n.set(e,o),o}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ft(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(d(o)||h(o))continue;const r=ft(o,t);if(0===r)return 0;r<s&&(s=r)}return s;default:return 0}}function dt(e,t){let n=3;const o=ht(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:r,value:s}=e[o],c=ft(r,t);if(0===c)return c;if(c<n&&(n=c),4!==s.type)return 0;const i=ft(s,t);if(0===i)return i;i<n&&(n=i)}}return n}function ht(e){const t=e.codegenNode;if(13===t.type)return t.props}function mt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function gt(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:p=null,isBuiltInComponent:a=l,isCustomElement:u=l,expressionPlugins:f=[],scopeId:d=null,ssr:h=!1,ssrCssVars:m="",bindingMetadata:g=i,inline:y=!1,isTS:v=!1,onError:b=E}){const x=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),N={selfName:x&&T(S(x[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:c,transformHoist:p,isBuiltInComponent:a,isCustomElement:u,expressionPlugins:f,scopeId:d,ssr:h,ssrCssVars:m,bindingMetadata:g,inline:y,isTS:v,onError:b,root:e,helpers:new Set,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,helper:e=>(N.helpers.add(e),e),helperString:e=>"_"+oe[N.helper(e)],replaceNode(e){N.parent.children[N.childIndex]=N.currentNode=e},removeNode(e){const t=e?N.parent.children.indexOf(e):N.currentNode?N.childIndex:-1;e&&e!==N.currentNode?N.childIndex>t&&(N.childIndex--,N.onNodeRemoved()):(N.currentNode=null,N.onNodeRemoved()),N.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){N.hoists.push(e);const t=ue("_hoisted_"+N.hoists.length,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ge(++N.cached,e,t)};return N}function yt(e,t){const n=gt(e,t);vt(e,n),t.hoistStatic&&pt(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const t=o[0];if(at(e,t)&&t.codegenNode){const o=t.codegenNode;13===o.type&&(o.isBlock=!0,n(w),n(P)),e.codegenNode=o}else e.codegenNode=t}else if(o.length>1){let o=64;e.codegenNode=ie(t,n(O),void 0,e.children,o+"",void 0,void 0,!0)}}(e,n),e.helpers=[...n.helpers],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}function vt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(f(r)?o.push(...r):o.push(r)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(V);break;case 5:t.ssr||t.helper(U);break;case 9:for(let n=0;n<e.branches.length;n++)vt(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];d(r)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,vt(r,t))}}(e,t)}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function St(e,t){const n=d(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Pe))return;const s=[];for(let c=0;c<r.length;c++){const i=r[c];if(7===i.type&&n(i.name)){r.splice(c,1),c--;const n=t(e,i,o);n&&s.push(n)}}return s}}}const bt="/*#__PURE__*/";function xt(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:c=!1,runtimeGlobalName:i="Vue",runtimeModuleName:l="vue",ssr:p=!1}){const a={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:c,runtimeGlobalName:i,runtimeModuleName:l,ssr:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>"_"+oe[e],push(e,t){a.code+=e},indent(){u(++a.indentLevel)},deindent(e=!1){e?--a.indentLevel:u(--a.indentLevel)},newline(){u(a.indentLevel)}};function u(e){a.push("\n"+" ".repeat(e))}return a}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:c,deindent:i,newline:l,ssr:p}=n,a=e.helpers.length>0,u=!s&&"module"!==o;!function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r,c=e=>`${oe[e]}: _${oe[e]}`;if(e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)){n(`const { ${[$,V,R,L].filter(t=>e.helpers.includes(t)).map(c).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o(),e.forEach((e,r)=>{e&&(n(`const _hoisted_${r+1} = `),kt(e,t),o())}),t.pure=!1})(e.hoists,t),o(),n("return ")}(e,n);if(r(`function ${p?"ssrRender":"render"}(${(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),c(),u&&(r("with (_ctx) {"),c(),a&&(r(`const { ${e.helpers.map(e=>`${oe[e]}: _${oe[e]}`).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Tt(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Tt(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),p||r("return "),e.codegenNode?kt(e.codegenNode,n):r("null"),u&&(i(),r("}")),i(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Tt(e,t,{helper:n,push:o,newline:r}){const s=n("component"===t?A:B);for(let c=0;c<e.length;c++){const n=e[c];o(`const ${Le(n,t)} = ${s}(${JSON.stringify(n)})`),c<e.length-1&&r()}}function Nt(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Et(e,t,n),n&&t.deindent(),t.push("]")}function Et(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let c=0;c<e.length;c++){const i=e[c];d(i)?r(i):f(i)?Nt(i,t):kt(i,t),c<e.length-1&&(n?(o&&r(","),s()):o&&r(", "))}}function kt(e,t){if(d(e))t.push(e);else if(h(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:kt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Ot(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n(bt);n(o(U)+"("),kt(e.content,t),n(")")}(e,t);break;case 12:kt(e.codegenNode,t);break;case 8:_t(e,t);break;case 3:break;case 13:!function(e,t){const{push:n,helper:o,pure:r}=t,{tag:s,props:c,children:i,patchFlag:l,dynamicProps:p,directives:a,isBlock:u,disableTracking:f}=e;a&&n(o(F)+"(");u&&n(`(${o(w)}(${f?"true":""}), `);r&&n(bt);n(o(u?P:$)+"(",e),Et(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([s,c,i,l,p]),t),n(")"),u&&n(")");a&&(n(", "),kt(a,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=d(e.callee)?e.callee:o(e.callee);r&&n(bt);n(s+"(",e),Et(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const i=c.length>1||!1;n(i?"{":"{ "),i&&o();for(let l=0;l<c.length;l++){const{key:e,value:o}=c[l];Ct(e,t),n(": "),kt(o,t),l<c.length-1&&(n(","),s())}i&&r(),n(i?"}":" }")}(e,t);break;case 17:!function(e,t){Nt(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:r}=t,{params:s,returns:c,body:i,newline:l,isSlot:p}=e;p&&n(`_${oe[ee]}(`);n("(",e),f(s)?Et(s,t):s&&kt(s,t);n(") => "),(l||i)&&(n("{"),o());c?(l&&n("return "),f(c)?Nt(c,t):kt(c,t)):i&&kt(i,t);(l||i)&&(r(),n("}"));p&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:c,indent:i,deindent:l,newline:p}=t;if(4===n.type){const e=!xe(n.content);e&&c("("),Ot(n,t),e&&c(")")}else c("("),kt(n,t),c(")");s&&i(),t.indentLevel++,s||c(" "),c("? "),kt(o,t),t.indentLevel--,s&&p(),s||c(" "),c(": ");const a=19===r.type;a||t.indentLevel++;kt(r,t),a||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(o(Y)+"(-1),"),c());n(`_cache[${e.index}] = `),kt(e.value,t),e.isVNode&&(n(","),c(),n(o(Y)+"(1),"),c(),n(`_cache[${e.index}]`),s());n(")")}(e,t)}}function Ot(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function _t(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];d(o)?t.push(o):kt(o,t)}}function Ct(e,t){const{push:n}=t;if(8===e.type)n("["),_t(e,t),n("]");else if(e.isStatic){n(xe(e.content)?e.content:JSON.stringify(e.content),e)}else n(`[${e.content}]`,e)}function It(e,t,n=!1,o=!1){return e}const Mt=St(/^(if|else|else-if)$/,(e,t,n)=>wt(e,t,n,(e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),c=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(o)e.codegenNode=$t(t,c,n);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=$t(t,c+e.branches.length-1,n)}}}));function wt(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){t.exp=ue("true",!1,t.exp?t.exp.loc:e.loc)}if("if"===t.name){const r=Pt(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const c=r[s];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){n.removeNode();const r=Pt(e,t);c.branches.push(r);const s=o&&o(c,r,!1);vt(r,n),s&&s(),n.currentNode=null}break}n.removeNode(c)}}}function Pt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||_e(e,"for")?[e]:e.children,userKey:Ce(e,"key")}}function $t(e,t,n){return e.condition?me(e.condition,Vt(e,t,n),de(n.helper(V),['""',"true"])):Vt(e,t,n)}function Vt(e,t,n){const{helper:o}=n,r=ae("key",ue(""+t,!1,se,2)),{children:s}=e,c=s[0];if(1!==s.length||1!==c.type){if(1===s.length&&11===c.type){const e=c.codegenNode;return Re(e,r,n),e}return ie(n,o(O),pe([r]),s,"64",void 0,void 0,!0,!1,e.loc)}{const e=c.codegenNode;return 13===e.type&&(e.isBlock=!0,o(w),o(P)),Re(e,r,n),e}}const Rt=St("for",(e,t,n)=>{const{helper:o}=n;return Lt(e,t,n,t=>{const r=de(o(H),[t.source]),s=Ce(e,"key"),c=s?ae("key",6===s.type?ue(s.value.content,!0):s.exp):null,i=4===t.source.type&&t.source.constType>0,l=i?64:s?128:256;return t.codegenNode=ie(n,o(O),void 0,r,l+"",void 0,void 0,!0,!i,e.loc),()=>{let s;const l=$e(e),{children:p}=t,a=1!==p.length||1!==p[0].type,u=Ve(e)?e:l&&1===e.children.length&&Ve(e.children[0])?e.children[0]:null;u?(s=u.codegenNode,l&&c&&Re(s,c,n)):a?s=ie(n,o(O),c?pe([c]):void 0,e.children,"64",void 0,void 0,!0):(s=p[0].codegenNode,l&&c&&Re(s,c,n),s.isBlock=!i,s.isBlock?(o(w),o(P)):o($)),r.arguments.push(he(jt(t.parseResult),s,!0))}})});function Lt(e,t,n,o){if(!t.exp)return;const r=Ft(t.exp);if(!r)return;const{scopes:s}=n,{source:c,value:i,key:l,index:p}=r,a={type:11,loc:t.loc,source:c,valueAlias:i,keyAlias:l,objectIndexAlias:p,parseResult:r,children:$e(e)?e.children:[e]};n.replaceNode(a),s.vFor++;const u=o&&o(a);return()=>{s.vFor--,u&&u()}}const At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Dt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Bt=/^\(|\)$/g;function Ft(e,t){const n=e.loc,o=e.content,r=o.match(At);if(!r)return;const[,s,c]=r,i={source:Ht(n,c.trim(),o.indexOf(c,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Bt,"").trim();const p=s.indexOf(l),a=l.match(Dt);if(a){l=l.replace(Dt,"").trim();const e=a[1].trim();let t;if(e&&(t=o.indexOf(e,p+l.length),i.key=Ht(n,e,t)),a[2]){const r=a[2].trim();r&&(i.index=Ht(n,r,o.indexOf(r,i.key?t+e.length:p+l.length)))}}return l&&(i.value=Ht(n,l,p)),i}function Ht(e,t,n){return ue(t,!1,Ee(e,n,t.length))}function jt({value:e,key:t,index:n}){const o=[];return e&&o.push(e),t&&(e||o.push(ue("_",!1)),o.push(t)),n&&(t||(e||o.push(ue("_",!1)),o.push(ue("__",!1))),o.push(n)),o}const Kt=ue("undefined",!1),Ut=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=_e(e,"slot");if(n)return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Gt=(e,t,n)=>he(e,t,!1,!0,t.length?t[0].loc:n);function Wt(e,t,n=Gt){t.helper(ee);const{children:o,loc:r}=e,s=[],c=[],i=(e,t)=>ae("default",n(e,t,r));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const p=_e(e,"slot",!0);if(p){const{arg:e,exp:t}=p;e&&!ye(e)&&(l=!0),s.push(ae(e||ue("default",!0),n(t,o,r)))}let a=!1,u=!1;const f=[],d=new Set;for(let g=0;g<o.length;g++){const e=o[g];let r;if(!$e(e)||!(r=_e(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(p)break;a=!0;const{children:i,loc:h}=e,{arg:m=ue("default",!0),exp:y}=r;let v;ye(m)?v=m?m.content:"default":l=!0;const S=n(y,i,h);let b,x,T;if(b=_e(e,"if"))l=!0,c.push(me(b.exp,zt(m,S),Kt));else if(x=_e(e,/^else(-if)?$/,!0)){let e,t=g;for(;t--&&(e=o[t],3===e.type););if(e&&$e(e)&&_e(e,"if")){o.splice(g,1),g--;let e=c[c.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=x.exp?me(x.exp,zt(m,S),Kt):zt(m,S)}}else if(T=_e(e,"for")){l=!0;const e=T.parseResult||Ft(T.exp);e&&c.push(de(t.helper(H),[e.source,he(jt(e),zt(m,S),!0)]))}else{if(v){if(d.has(v))continue;d.add(v),"default"===v&&(u=!0)}s.push(ae(m,S))}}p||(a?f.length&&(u||s.push(i(void 0,f))):s.push(i(void 0,o)));const h=l?2:Jt(e.children)?3:1;let m=pe(s.concat(ae("_",ue(h+"",!1))),r);return c.length&&(m=de(t.helper(K),[m,le(c)])),{slots:m,hasDynamicSlots:l}}function zt(e,t){return pe([ae("name",e),ae("fn",t)])}function Jt(e){for(let t=0;t<e.length;t++){const n=e[t];if(1===n.type&&(2===n.tagType||0===n.tagType&&Jt(n.children)))return!0}return!1}const qt=new WeakMap,Yt=(e,t)=>{if(1===e.type&&(0===e.tagType||1===e.tagType))return function(){const{tag:n,props:o}=e,r=1===e.tagType,s=r?Zt(e,t):`"${n}"`;let c,i,l,p,a,u,f=0,d=m(s)&&s.callee===D||s===_||s===C||!r&&("svg"===n||"foreignObject"===n||Ce(e,"key",!0));if(o.length>0){const n=Xt(e,t);c=n.props,f=n.patchFlag,a=n.dynamicPropNames;const o=n.directives;u=o&&o.length?le(o.map(e=>function(e,t){const n=[],o=qt.get(e);o?n.push(t.helperString(o)):(t.helper(B),t.directives.add(e.name),n.push(Le(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ue("true",!1,r);n.push(pe(e.modifiers.map(e=>ae(e,t)),r))}return le(n,e.loc)}(e,t))):void 0}if(e.children.length>0){s===I&&(d=!0,f|=1024);if(r&&s!==_&&s!==I){const{slots:n,hasDynamicSlots:o}=Wt(e,t);i=n,o&&(f|=1024)}else if(1===e.children.length&&s!==_){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===ft(n,t)&&(f|=1),i=r||2===o?n:e.children}else i=e.children}0!==f&&(l=String(f),a&&a.length&&(p=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(a))),e.codegenNode=ie(t,s,c,i,l,p,u,!!d,!1,e.loc)}};function Zt(e,t,n=!1){const{tag:o}=e,r="component"===e.tag?Ce(e,"is"):_e(e,"is");if(r){const e=6===r.type?r.value&&ue(r.value.content,!0):r.exp;if(e)return de(t.helper(D),[e])}const s=Se(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(A),t.components.add(o),Le(o,"component"))}function Xt(e,t,n=e.props,o=!1){const{tag:r,loc:s}=e,c=1===e.tagType;let i=[];const l=[],p=[];let u=0,f=!1,d=!1,m=!1,y=!1,v=!1,S=!1;const b=[],x=({key:e,value:n})=>{if(ye(e)){const o=e.content,r=(e=>a.test(e))(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||g(o)||(y=!0),r&&g(o)&&(S=!0),20===n.type||(4===n.type||8===n.type)&&ft(n,t)>0)return;"ref"===o?f=!0:"class"!==o||c?"style"!==o||c?"key"===o||b.includes(o)||b.push(o):m=!0:d=!0}else v=!0};for(let a=0;a<n.length;a++){const c=n[a];if(6===c.type){const{loc:e,name:t,value:n}=c;let o=!0;if("ref"===t&&(f=!0),"is"===t&&"component"===r)continue;i.push(ae(ue(t,!0,Ee(e,0,t.length)),ue(n?n.content:"",o,n?n.loc:e)))}else{const{name:n,arg:a,exp:u,loc:f}=c,d="bind"===n,m="on"===n;if("slot"===n)continue;if("once"===n)continue;if("is"===n||d&&"component"===r&&Ie(a,"is"))continue;if(m&&o)continue;if(!a&&(d||m)){v=!0,u&&(i.length&&(l.push(pe(Qt(i),s)),i=[]),l.push(d?u:{type:14,loc:f,callee:t.helper(W),arguments:[u]}));continue}const g=t.directiveTransforms[n];if(g){const{props:n,needRuntime:r}=g(c,e,t);!o&&n.forEach(x),i.push(...n),r&&(p.push(c),h(r)&&qt.set(c,r))}else p.push(c)}}let T=void 0;return l.length?(i.length&&l.push(pe(Qt(i),s)),T=l.length>1?de(t.helper(G),l,s):l[0]):i.length&&(T=pe(Qt(i),s)),v?u|=16:(d&&(u|=2),m&&(u|=4),b.length&&(u|=8),y&&(u|=32)),0!==u&&32!==u||!(f||S||p.length>0)||(u|=512),{props:T,directives:p,patchFlag:u,dynamicPropNames:b}}function Qt(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const s=r.key.content,c=t.get(s);c?("style"===s||"class"===s||s.startsWith("on"))&&en(c,r):(t.set(s,r),n.push(r))}return n}function en(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=le([e.value,t.value],e.loc)}const tn=(e,t)=>{if(Ve(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=nn(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r];s&&c.push(s),n.length&&(s||c.push("{}"),c.push(he([],n,!1,!1,o))),e.codegenNode=de(t.helper(j),c,o)}};function nn(e,t){let n='"default"',o=void 0;const r=[];for(let s=0;s<e.props.length;s++){const t=e.props[s];6===t.type?t.value&&("name"===t.name?n=JSON.stringify(t.value.content):(t.name=S(t.name),r.push(t))):"bind"===t.name&&Ie(t.arg,"name")?t.exp&&(n=t.exp):("bind"===t.name&&t.arg&&ye(t.arg)&&(t.arg.content=S(t.arg.content)),r.push(t))}if(r.length>0){const{props:n,directives:s}=Xt(e,t,r);o=n}return{slotName:n,slotProps:o}}const on=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,rn=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:c}=e;let i;if(4===c.type)if(c.isStatic){i=ue(N(S(c.content)),!0,c.loc)}else i=fe([n.helperString(q)+"(",c,")"]);else i=c,i.children.unshift(n.helperString(q)+"("),i.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let p=n.cacheHandlers&&!l;if(l){const e=Ne(l.content),t=!(e||on.test(l.content)),n=l.content.includes(";");(t||p&&e)&&(l=fe([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let a={props:[ae(i,l||ue("() => {}",!1,r))]};return o&&(a=o(a)),p&&(a.props[0].value=n.cache(a.props[0].value)),a},sn=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=c.content+' || ""'),r.includes("camel")&&(4===c.type?c.content=c.isStatic?S(c.content):`${n.helperString(z)}(${c.content})`:(c.children.unshift(n.helperString(z)+"("),c.children.push(")"))),!o||4===o.type&&!o.content.trim()?{props:[ae(c,ue("",!0,s))]}:{props:[ae(c,o)]}},cn=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o=void 0,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(we(t)){r=!0;for(let r=e+1;r<n.length;r++){const s=n[r];if(!we(s)){o=void 0;break}o||(o=n[e]={type:8,loc:t.loc,children:[t]}),o.children.push(" + ",s),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType)))for(let e=0;e<n.length;e++){const o=n[e];if(we(o)||8===o.type){const r=[];2===o.type&&" "===o.content||r.push(o),t.ssr||0!==ft(o,t)||r.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:de(t.helper(R),r)}}}}},ln=new WeakSet,pn=(e,t)=>{if(1===e.type&&_e(e,"once",!0)){if(ln.has(e))return;return ln.add(e),t.helper(Y),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},an=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return un();const s=o.loc.source;if(!Ne(4===o.type?o.content:s))return un();const c=r||ue("modelValue",!0),i=r?ye(r)?"onUpdate:"+r.content:fe(['"onUpdate:" + ',r]):"onUpdate:modelValue";let l;l=fe([(n.isTS?"($event: any)":"$event")+" => (",o," = $event)"]);const p=[ae(c,e.exp),ae(i,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>(xe(e)?e:JSON.stringify(e))+": true").join(", "),n=r?ye(r)?r.content+"Modifiers":fe([r,' + "Modifiers"']):"modelModifiers";p.push(ae(n,ue(`{ ${t} }`,!1,e.loc,2)))}return un(p)};function un(e=[]){return{props:e}}function fn(e){return[[pn,Mt,Rt,tn,Yt,Ut,cn],{on:rn,bind:sn,model:an}]}function dn(e,t={}){const n=t.onError||E,o="module"===t.mode;!0===t.prefixIdentifiers?n(k(45)):o&&n(k(46));t.cacheHandlers&&n(k(47)),t.scopeId&&!o&&n(k(48));const r=d(e)?Fe(e,t):e,[s,c]=fn();return yt(r,u({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:u({},c,t.directiveTransforms||{})})),xt(r,u({},t,{prefixIdentifiers:false}))}const hn=()=>({props:[]}),mn=Symbol(""),gn=Symbol(""),yn=Symbol(""),vn=Symbol(""),Sn=Symbol(""),bn=Symbol(""),xn=Symbol(""),Tn=Symbol(""),Nn=Symbol(""),En=Symbol("");let kn;re({[mn]:"vModelRadio",[gn]:"vModelCheckbox",[yn]:"vModelText",[vn]:"vModelSelect",[Sn]:"vModelDynamic",[bn]:"withModifiers",[xn]:"withKeys",[Tn]:"vShow",[Nn]:"Transition",[En]:"TransitionGroup"});const On=t("style,iframe,script,noscript",!0),_n={isVoidTag:c,isNativeTag:e=>r(e)||s(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(kn||(kn=document.createElement("div"))).innerHTML=e,kn.textContent},isBuiltInComponent:e=>ve(e,"Transition")?Nn:ve(e,"TransitionGroup")?En:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(On(e))return 2}return 0}},Cn=e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ue("style",!0,t.loc),exp:In(t.value.content,t.loc),modifiers:[],loc:t.loc})})},In=(e,t)=>{const r=function(e){const t={};return e.split(n).forEach(e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(e);return ue(JSON.stringify(r),!1,t,3)};function Mn(e,t){return k(e,t)}const wn=t("passive,once,capture"),Pn=t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),$n=t("left,right"),Vn=t("onkeyup,onkeydown,onkeypress",!0),Rn=(e,t)=>ye(e)&&"onclick"===e.content.toLowerCase()?ue(t,!0):4!==e.type?fe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Ln=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},An=[Cn],Dn={cloak:hn,html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ae(ue("innerHTML",!0,r),o||ue("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ae(ue("textContent",!0),o?de(n.helperString(U),[o],r):ue("",!0))]}},model:(e,t,n)=>{const o=an(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=yn,c=!1;if("input"===r||s){const n=Ce(t,"type");if(n){if(7===n.type)e=Sn;else if(n.value)switch(n.value.content){case"radio":e=mn;break;case"checkbox":e=gn;break;case"file":c=!0}}else Me(t)&&(e=Sn)}else"select"===r&&(e=vn);c||(o.needRuntime=n.helper(e))}return o.props=o.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),o},on:(e,t,n)=>rn(e,0,n,t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:c,nonKeyModifiers:i,eventOptionModifiers:l}=((e,t)=>{const n=[],o=[],r=[];for(let s=0;s<t.length;s++){const c=t[s];wn(c)?r.push(c):$n(c)?ye(e)?Vn(e.content)?n.push(c):o.push(c):(n.push(c),o.push(c)):Pn(c)?o.push(c):n.push(c)}return{keyModifiers:n,nonKeyModifiers:o,eventOptionModifiers:r}})(r,o);if(i.includes("right")&&(r=Rn(r,"onContextmenu")),i.includes("middle")&&(r=Rn(r,"onMouseup")),i.length&&(s=de(n.helper(bn),[s,JSON.stringify(i)])),!c.length||ye(r)&&!Vn(r.content)||(s=de(n.helper(xn),[s,JSON.stringify(c)])),l.length){const e=l.map(T).join("");r=ye(r)?ue(`${r.content}${e}`,!0):fe(["(",r,`) + "${e}"`])}return{props:[ae(r,s)]}}),show:(e,t,n)=>({props:[],needRuntime:n.helper(Tn)})};return e.BASE_TRANSITION=M,e.CAMELIZE=z,e.CAPITALIZE=J,e.CREATE_BLOCK=P,e.CREATE_COMMENT=V,e.CREATE_SLOTS=K,e.CREATE_STATIC=L,e.CREATE_TEXT=R,e.CREATE_VNODE=$,e.DOMDirectiveTransforms=Dn,e.DOMNodeTransforms=An,e.FRAGMENT=O,e.IS_REF=ne,e.KEEP_ALIVE=I,e.MERGE_PROPS=G,e.OPEN_BLOCK=w,e.POP_SCOPE_ID=X,e.PUSH_SCOPE_ID=Z,e.RENDER_LIST=H,e.RENDER_SLOT=j,e.RESOLVE_COMPONENT=A,e.RESOLVE_DIRECTIVE=B,e.RESOLVE_DYNAMIC_COMPONENT=D,e.SET_BLOCK_TRACKING=Y,e.SUSPENSE=C,e.TELEPORT=_,e.TO_DISPLAY_STRING=U,e.TO_HANDLERS=W,e.TO_HANDLER_KEY=q,e.TRANSITION=Nn,e.TRANSITION_GROUP=En,e.UNREF=te,e.V_MODEL_CHECKBOX=gn,e.V_MODEL_DYNAMIC=Sn,e.V_MODEL_RADIO=mn,e.V_MODEL_SELECT=vn,e.V_MODEL_TEXT=yn,e.V_ON_WITH_KEYS=xn,e.V_ON_WITH_MODIFIERS=bn,e.V_SHOW=Tn,e.WITH_CTX=ee,e.WITH_DIRECTIVES=F,e.WITH_SCOPE_ID=Q,e.advancePositionWithClone=ke,e.advancePositionWithMutation=Oe,e.assert=function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},e.baseCompile=dn,e.baseParse=Fe,e.buildProps=Xt,e.buildSlots=Wt,e.compile=function(e,t={}){return dn(e,u({},_n,t,{nodeTransforms:[Ln,...An,...t.nodeTransforms||[]],directiveTransforms:u({},Dn,t.directiveTransforms||{}),transformHoist:null}))},e.createArrayExpression=le,e.createAssignmentExpression=function(e,t){return{type:24,left:e,right:t,loc:se}},e.createBlockStatement=function(e){return{type:21,body:e,loc:se}},e.createCacheExpression=ge,e.createCallExpression=de,e.createCompilerError=k,e.createCompoundExpression=fe,e.createConditionalExpression=me,e.createDOMCompilerError=Mn,e.createForLoopParams=jt,e.createFunctionExpression=he,e.createIfStatement=function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:se}},e.createInterpolation=function(e,t){return{type:5,loc:t,content:d(e)?ue(e,!1,t):e}},e.createObjectExpression=pe,e.createObjectProperty=ae,e.createReturnStatement=function(e){return{type:26,returns:e,loc:se}},e.createRoot=ce,e.createSequenceExpression=function(e){return{type:25,expressions:e,loc:se}},e.createSimpleExpression=ue,e.createStructuralDirectiveTransform=St,e.createTemplateLiteral=function(e){return{type:22,elements:e,loc:se}},e.createTransformContext=gt,e.createVNodeCall=ie,e.findDir=_e,e.findProp=Ce,e.generate=xt,e.generateCodeFrame=function(e,t=0,n=e.length){const o=e.split(/\r?\n/);let r=0;const s=[];for(let c=0;c<o.length;c++)if(r+=o[c].length+1,r>=t){for(let e=c-2;e<=c+2||n>r;e++){if(e<0||e>=o.length)continue;const i=e+1;s.push(`${i}${" ".repeat(Math.max(3-String(i).length,0))}| ${o[e]}`);const l=o[e].length;if(e===c){const e=t-(r-l)+1,o=Math.max(1,n>r?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>r){const e=Math.max(Math.min(n-r,l),1);s.push(" | "+"^".repeat(e))}r+=l+1}}break}return s.join("\n")},e.getBaseTransformPreset=fn,e.getInnerRange=Ee,e.hasDynamicKeyVBind=Me,e.hasScopeRef=function e(t,n){if(!t||0===Object.keys(n).length)return!1;switch(t.type){case 1:for(let o=0;o<t.props.length;o++){const r=t.props[o];if(7===r.type&&(e(r.arg,n)||e(r.exp,n)))return!0}return t.children.some(t=>e(t,n));case 11:return!!e(t.source,n)||t.children.some(t=>e(t,n));case 9:return t.branches.some(t=>e(t,n));case 10:return!!e(t.condition,n)||t.children.some(t=>e(t,n));case 4:return!t.isStatic&&xe(t.content)&&!!n[t.content];case 8:return t.children.some(t=>m(t)&&e(t,n));case 5:case 12:return e(t.content,n);case 2:case 3:default:return!1}},e.helperNameMap=oe,e.injectProp=Re,e.isBindKey=Ie,e.isBuiltInType=ve,e.isCoreComponent=Se,e.isMemberExpression=Ne,e.isSimpleIdentifier=xe,e.isSlotOutlet=Ve,e.isStaticExp=ye,e.isTemplateNode=$e,e.isText=we,e.isVSlot=Pe,e.locStub=se,e.noopDirectiveTransform=hn,e.parse=function(e,t={}){return Fe(e,u({},_n,t))},e.parserOptions=_n,e.processExpression=It,e.processFor=Lt,e.processIf=wt,e.processSlotOutlet=nn,e.registerRuntimeHelpers=re,e.resolveComponentType=Zt,e.toValidAssetId=Le,e.trackSlotScopes=Ut,e.trackVForSlotScopes=(e,t)=>{let n;if($e(e)&&e.props.some(Pe)&&(n=_e(e,"for"))){const e=n.parseResult=Ft(n.exp);if(e){const{value:n,key:o,index:r}=e,{addIdentifiers:s,removeIdentifiers:c}=t;return n&&s(n),o&&s(o),r&&s(r),()=>{n&&c(n),o&&c(o),r&&c(r)}}}},e.transform=yt,e.transformBind=sn,e.transformElement=Yt,e.transformExpression=(e,t)=>{if(5===e.type)e.content=It(e.content);else if(1===e.type)for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&"for"!==o.name){const e=o.exp,n=o.arg;!e||4!==e.type||"on"===o.name&&n||(o.exp=It(e,t,"slot"===o.name)),n&&4===n.type&&!n.isStatic&&(o.arg=It(n))}}},e.transformModel=an,e.transformOn=rn,e.transformStyle=Cn,e.traverseNode=vt,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
1
|
+
var VueCompilerDOM=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n=/;(?![^(]*\))/g,o=/:(.+)/;const r=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),s=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),i={},l=()=>{},p=()=>!1,a=/^on[^a-z]/,u=Object.assign,f=Array.isArray,d=e=>"string"==typeof e,h=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,g=t(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),y=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,S=y((e=>e.replace(v,((e,t)=>t?t.toUpperCase():"")))),x=/\B([A-Z])/g,b=y((e=>e.replace(x,"-$1").toLowerCase())),T=y((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=y((e=>e?`on${T(e)}`:""));function E(e){throw e}function k(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const _=Symbol(""),O=Symbol(""),C=Symbol(""),I=Symbol(""),$=Symbol(""),M=Symbol(""),w=Symbol(""),P=Symbol(""),V=Symbol(""),R=Symbol(""),L=Symbol(""),A=Symbol(""),B=Symbol(""),D=Symbol(""),F=Symbol(""),H=Symbol(""),j=Symbol(""),K=Symbol(""),U=Symbol(""),W=Symbol(""),G=Symbol(""),z=Symbol(""),J=Symbol(""),q=Symbol(""),Y=Symbol(""),Z=Symbol(""),X=Symbol(""),Q=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),oe={[_]:"Fragment",[O]:"Teleport",[C]:"Suspense",[I]:"KeepAlive",[$]:"BaseTransition",[M]:"openBlock",[w]:"createBlock",[P]:"createVNode",[V]:"createCommentVNode",[R]:"createTextVNode",[L]:"createStaticVNode",[A]:"resolveComponent",[B]:"resolveDynamicComponent",[D]:"resolveDirective",[F]:"withDirectives",[H]:"renderList",[j]:"renderSlot",[K]:"createSlots",[U]:"toDisplayString",[W]:"mergeProps",[G]:"toHandlers",[z]:"camelize",[J]:"capitalize",[q]:"toHandlerKey",[Y]:"setBlockTracking",[Z]:"pushScopeId",[X]:"popScopeId",[Q]:"withScopeId",[ee]:"withCtx",[te]:"unref",[ne]:"isRef"};function re(e){Object.getOwnPropertySymbols(e).forEach((t=>{oe[t]=e[t]}))}const se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ce(e,t=se){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function ie(e,t,n,o,r,s,c,i=!1,l=!1,p=se){return e&&(i?(e.helper(M),e.helper(w)):e.helper(P),c&&e.helper(F)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:c,isBlock:i,disableTracking:l,loc:p}}function le(e,t=se){return{type:17,loc:t,elements:e}}function pe(e,t=se){return{type:15,loc:t,properties:e}}function ae(e,t){return{type:16,loc:se,key:d(e)?ue(e,!0):e,value:t}}function ue(e,t,n=se,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function fe(e,t=se){return{type:8,loc:t,children:e}}function de(e,t=[],n=se){return{type:14,loc:n,callee:e,arguments:t}}function he(e,t,n=!1,o=!1,r=se){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function me(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:se}}function ge(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:se}}const ye=e=>4===e.type&&e.isStatic,ve=(e,t)=>e===t||e===b(t);function Se(e){return ve(e,"Teleport")?O:ve(e,"Suspense")?C:ve(e,"KeepAlive")?I:ve(e,"BaseTransition")?$:void 0}const xe=/^\d|[^\$\w]/,be=e=>!xe.test(e),Te=/^[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*(?:\s*\.\s*[A-Za-z_$\xA0-\uFFFF][\w$\xA0-\uFFFF]*|\[[^\]]+\])*$/,Ne=e=>!!e&&Te.test(e.trim());function Ee(e,t,n){const o={source:e.source.substr(t,n),start:ke(e.start,e.source,t),end:e.end};return null!=n&&(o.end=ke(e.start,e.source,t+n)),o}function ke(e,t,n=t.length){return _e(u({},e),t,n)}function _e(e,t,n=t.length){let o=0,r=-1;for(let s=0;s<n;s++)10===t.charCodeAt(s)&&(o++,r=s);return e.offset+=n,e.line+=o,e.column=-1===r?e.column+n:n-r,e}function Oe(e,t,n=!1){for(let o=0;o<e.props.length;o++){const r=e.props[o];if(7===r.type&&(n||r.exp)&&(d(t)?r.name===t:t.test(r.name)))return r}}function Ce(e,t,n=!1,o=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||o))return s}else if("bind"===s.name&&(s.exp||o)&&Ie(s.arg,t))return s}}function Ie(e,t){return!(!e||!ye(e)||e.content!==t)}function $e(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function Me(e){return 5===e.type||2===e.type}function we(e){return 7===e.type&&"slot"===e.name}function Pe(e){return 1===e.type&&3===e.tagType}function Ve(e){return 1===e.type&&2===e.tagType}function Re(e,t,n){let o;const r=13===e.type?e.props:e.arguments[2];if(null==r||d(r))o=pe([t]);else if(14===r.type){const e=r.arguments[0];d(e)||15!==e.type?r.callee===G?o=de(n.helper(W),[pe([t]),r]):r.arguments.unshift(pe([t])):e.properties.unshift(t),!o&&(o=r)}else if(15===r.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=r.properties.some((e=>4===e.key.type&&e.key.content===n))}e||r.properties.unshift(t),o=r}else o=de(n.helper(W),[pe([t]),r]);13===e.type?e.props=o:e.arguments[2]=o}function Le(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}const Ae=/&(gt|lt|amp|apos|quot);/g,Be={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},De={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:p,isPreTag:p,isCustomElement:p,decodeEntities:e=>e.replace(Ae,((e,t)=>Be[t])),onError:E,comments:!1};function Fe(e,t={}){const n=function(e,t){const n=u({},De);for(const o in t)n[o]=t[o]||De[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1}}(e,t),o=et(n);return ce(He(n,0,[]),tt(n,o))}function He(e,t,n){const o=nt(n),r=o?o.ns:0,s=[];for(;!it(e,t,n);){const c=e.source;let i;if(0===t||1===t)if(!e.inVPre&&ot(c,e.options.delimiters[0]))i=Ze(e,t);else if(0===t&&"<"===c[0])if(1===c.length);else if("!"===c[1])i=ot(c,"\x3c!--")?Ue(e):ot(c,"<!DOCTYPE")?We(e):ot(c,"<![CDATA[")&&0!==r?Ke(e,n):We(e);else if("/"===c[1])if(2===c.length);else{if(">"===c[2]){rt(e,3);continue}if(/[a-z]/i.test(c[2])){Je(e,1,o);continue}i=We(e)}else/[a-z]/i.test(c[1])?i=Ge(e,n):"?"===c[1]&&(i=We(e));if(i||(i=Xe(e,t)),f(i))for(let e=0;e<i.length;e++)je(s,i[e]);else je(s,i)}let c=!1;if(2!==t&&1!==t){for(let t=0;t<s.length;t++){const n=s[t];if(!e.inPre&&2===n.type)if(/[^\t\r\n\f ]/.test(n.content))n.content=n.content.replace(/[\t\r\n\f ]+/g," ");else{const e=s[t-1],o=s[t+1];!e||!o||3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(n.content)?(c=!0,s[t]=null):n.content=" "}3!==n.type||e.options.comments||(c=!0,s[t]=null)}if(e.inPre&&o&&e.options.isPreTag(o.tag)){const e=s[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return c?s.filter(Boolean):s}function je(e,t){if(2===t.type){const n=nt(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Ke(e,t){rt(e,9);const n=He(e,3,t);return 0===e.source.length||rt(e,3),n}function Ue(e){const t=et(e);let n;const o=/--(\!)?>/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)rt(e,s-r+1),r=s+1;rt(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),rt(e,e.source.length);return{type:3,content:n,loc:tt(e,t)}}function We(e){const t=et(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),rt(e,e.source.length)):(o=e.source.slice(n,r),rt(e,r+1)),{type:3,content:o,loc:tt(e,t)}}function Ge(e,t){const n=e.inPre,o=e.inVPre,r=nt(t),s=Je(e,0,r),c=e.inPre&&!n,i=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return s;t.push(s);const l=e.options.getTextMode(s,r),p=He(e,l,t);if(t.pop(),s.children=p,lt(e.source,s.tag))Je(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=p[0];e&&ot(e.loc.source,"\x3c!--")}return s.loc=tt(e,s.loc.start),c&&(e.inPre=!1),i&&(e.inVPre=!1),s}const ze=t("if,else,else-if,for,slot");function Je(e,t,n){const o=et(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],c=e.options.getNamespace(s,n);rt(e,r[0].length),st(e);const i=et(e),l=e.source;let p=qe(e,t);e.options.isPreTag(s)&&(e.inPre=!0),!e.inVPre&&p.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,u(e,i),e.source=l,p=qe(e,t).filter((e=>"v-pre"!==e.name)));let a=!1;0===e.source.length||(a=ot(e.source,"/>"),rt(e,a?2:1));let f=0;const d=e.options;if(!e.inVPre&&!d.isCustomElement(s)){const e=p.some((e=>7===e.type&&"is"===e.name));d.isNativeTag&&!e?d.isNativeTag(s)||(f=1):(e||Se(s)||d.isBuiltInComponent&&d.isBuiltInComponent(s)||/^[A-Z]/.test(s)||"component"===s)&&(f=1),"slot"===s?f=2:"template"===s&&p.some((e=>7===e.type&&ze(e.name)))&&(f=3)}return{type:1,ns:c,tag:s,tagType:f,props:p,isSelfClosing:a,children:[],loc:tt(e,o),codegenNode:void 0}}function qe(e,t){const n=[],o=new Set;for(;e.source.length>0&&!ot(e.source,">")&&!ot(e.source,"/>");){if(ot(e.source,"/")){rt(e,1),st(e);continue}const r=Ye(e,o);0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),st(e)}return n}function Ye(e,t){const n=et(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}let r;rt(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(st(e),rt(e,1),st(e),r=function(e){const t=et(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){rt(e,1);const t=e.source.indexOf(o);-1===t?n=Qe(e,e.source.length,4):(n=Qe(e,t,4),rt(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=Qe(e,t[0].length,4)}return{content:n,isQuoted:r,loc:tt(e,t)}}(e));const s=tt(e,n);if(!e.inVPre&&/^(v-|:|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o),c=t[1]||(ot(o,":")?"bind":ot(o,"@")?"on":"slot");let i;if(t[2]){const r="slot"===c,s=o.lastIndexOf(t[2]),l=tt(e,ct(e,n,s),ct(e,n,s+t[2].length+(r&&t[3]||"").length));let p=t[2],a=!0;p.startsWith("[")?(a=!1,p.endsWith("]"),p=p.substr(1,p.length-2)):r&&(p+=t[3]||""),i={type:4,content:p,isStatic:a,constType:a?3:0,loc:l}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=ke(e.start,r.content),e.source=e.source.slice(1,-1)}return{type:7,name:c,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:t[3]?t[3].substr(1).split("."):[],loc:s}}return{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function Ze(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=et(e);rt(e,n.length);const c=et(e),i=et(e),l=r-n.length,p=e.source.slice(0,l),a=Qe(e,l,t),u=a.trim(),f=a.indexOf(u);f>0&&_e(c,p,f);return _e(i,p,l-(a.length-u.length-f)),rt(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:u,loc:tt(e,c,i)},loc:tt(e,s)}}function Xe(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let o=e.source.length;for(let s=0;s<n.length;s++){const t=e.source.indexOf(n[s],1);-1!==t&&o>t&&(o=t)}const r=et(e);return{type:2,content:Qe(e,o,t),loc:tt(e,r)}}function Qe(e,t,n){const o=e.source.slice(0,t);return rt(e,t),2===n||3===n||-1===o.indexOf("&")?o:e.options.decodeEntities(o,4===n)}function et(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function tt(e,t,n){return{start:t,end:n=n||et(e),source:e.originalSource.slice(t.offset,n.offset)}}function nt(e){return e[e.length-1]}function ot(e,t){return e.startsWith(t)}function rt(e,t){const{source:n}=e;_e(e,n,t),e.source=n.slice(t)}function st(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&rt(e,t[0].length)}function ct(e,t,n){return ke(t,e.originalSource.slice(t.offset,n),n)}function it(e,t,n){const o=e.source;switch(t){case 0:if(ot(o,"</"))for(let e=n.length-1;e>=0;--e)if(lt(o,n[e].tag))return!0;break;case 1:case 2:{const e=nt(n);if(e&<(o,e.tag))return!0;break}case 3:if(ot(o,"]]>"))return!0}return!o}function lt(e,t){return ot(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function pt(e,t){ut(e,t,at(e,e.children[0]))}function at(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Ve(t)}function ut(e,t,n=!1){let o=!1,r=!0;const{children:s}=e;for(let c=0;c<s.length;c++){const e=s[c];if(1===e.type&&0===e.tagType){const s=n?0:ft(e,t);if(s>0){if(s<3&&(r=!1),s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o=!0;continue}}else{const n=e.codegenNode;if(13===n.type){const o=mt(n);if((!o||512===o||1===o)&&dt(e,t)>=2){const o=ht(e);o&&(n.props=t.hoist(o))}}}}else if(12===e.type){const n=ft(e.content,t);n>0&&(n<3&&(r=!1),n>=2&&(e.codegenNode=t.hoist(e.codegenNode),o=!0))}if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,ut(e,t),n&&t.scopes.vSlot--}else if(11===e.type)ut(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)ut(e.branches[n],t,1===e.branches[n].children.length)}r&&o&&t.transformHoist&&t.transformHoist(s,t,e)}function ft(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const r=e.codegenNode;if(13!==r.type)return 0;if(mt(r))return n.set(e,0),0;{let o=3;const s=dt(e,t);if(0===s)return n.set(e,0),0;s<o&&(o=s);for(let r=0;r<e.children.length;r++){const s=ft(e.children[r],t);if(0===s)return n.set(e,0),0;s<o&&(o=s)}if(o>1)for(let r=0;r<e.props.length;r++){const s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){const r=ft(s.exp,t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}}return r.isBlock&&(t.removeHelper(M),t.removeHelper(w),r.isBlock=!1,t.helper(P)),n.set(e,o),o}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ft(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(d(o)||h(o))continue;const r=ft(o,t);if(0===r)return 0;r<s&&(s=r)}return s;default:return 0}}function dt(e,t){let n=3;const o=ht(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:r,value:s}=e[o],c=ft(r,t);if(0===c)return c;if(c<n&&(n=c),4!==s.type)return 0;const i=ft(s,t);if(0===i)return i;i<n&&(n=i)}}return n}function ht(e){const t=e.codegenNode;if(13===t.type)return t.props}function mt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function gt(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:p=null,isBuiltInComponent:a=l,isCustomElement:u=l,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:m=!1,ssrCssVars:g="",bindingMetadata:y=i,inline:v=!1,isTS:x=!1,onError:b=E}){const N=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:N&&T(S(N[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:c,transformHoist:p,isBuiltInComponent:a,isCustomElement:u,expressionPlugins:f,scopeId:d,slotted:h,ssr:m,ssrCssVars:g,bindingMetadata:y,inline:v,isTS:x,onError:b,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const n=t-1;n?k.helpers.set(e,n):k.helpers.delete(e)}},helperString:e=>`_${oe[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=e?k.parent.children.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>t&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){k.hoists.push(e);const t=ue(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>ge(++k.cached,e,t)};return k}function yt(e,t){const n=gt(e,t);vt(e,n),t.hoistStatic&&pt(e,n),t.ssr||function(e,t){const{helper:n,removeHelper:o}=t,{children:r}=e;if(1===r.length){const t=r[0];if(at(e,t)&&t.codegenNode){const r=t.codegenNode;13===r.type&&(r.isBlock||(o(P),r.isBlock=!0,n(M),n(w))),e.codegenNode=r}else e.codegenNode=t}else if(r.length>1){let o=64;e.codegenNode=ie(t,n(_),void 0,e.children,o+"",void 0,void 0,!0)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}function vt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(f(r)?o.push(...r):o.push(r)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(V);break;case 5:t.ssr||t.helper(U);break;case 9:for(let n=0;n<e.branches.length;n++)vt(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];d(r)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,vt(r,t))}}(e,t)}t.currentNode=e;let r=o.length;for(;r--;)o[r]()}function St(e,t){const n=d(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(we))return;const s=[];for(let c=0;c<r.length;c++){const i=r[c];if(7===i.type&&n(i.name)){r.splice(c,1),c--;const n=t(e,i,o);n&&s.push(n)}}return s}}}const xt="/*#__PURE__*/";function bt(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:c=!1,runtimeGlobalName:i="Vue",runtimeModuleName:l="vue",ssr:p=!1}){const a={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:c,runtimeGlobalName:i,runtimeModuleName:l,ssr:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${oe[e]}`,push(e,t){a.code+=e},indent(){u(++a.indentLevel)},deindent(e=!1){e?--a.indentLevel:u(--a.indentLevel)},newline(){u(a.indentLevel)}};function u(e){a.push("\n"+" ".repeat(e))}return a}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:c,deindent:i,newline:l,ssr:p}=n,a=e.helpers.length>0,u=!s&&"module"!==o;!function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r,c=e=>`${oe[e]}: _${oe[e]}`;if(e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)){n(`const { ${[P,V,R,L].filter((t=>e.helpers.includes(t))).map(c).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o(),e.forEach(((e,r)=>{e&&(n(`const _hoisted_${r+1} = `),kt(e,t),o())})),t.pure=!1})(e.hoists,t),o(),n("return ")}(e,n);if(r(`function ${p?"ssrRender":"render"}(${(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),c(),u&&(r("with (_ctx) {"),c(),a&&(r(`const { ${e.helpers.map((e=>`${oe[e]}: _${oe[e]}`)).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Tt(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Tt(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),p||r("return "),e.codegenNode?kt(e.codegenNode,n):r("null"),u&&(i(),r("}")),i(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Tt(e,t,{helper:n,push:o,newline:r}){const s=n("component"===t?A:D);for(let c=0;c<e.length;c++){let n=e[c];const i=n.endsWith("__self");i&&(n=n.slice(0,-6)),o(`const ${Le(n,t)} = ${s}(${JSON.stringify(n)}${i?", true":""})`),c<e.length-1&&r()}}function Nt(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Et(e,t,n),n&&t.deindent(),t.push("]")}function Et(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let c=0;c<e.length;c++){const i=e[c];d(i)?r(i):f(i)?Nt(i,t):kt(i,t),c<e.length-1&&(n?(o&&r(","),s()):o&&r(", "))}}function kt(e,t){if(d(e))t.push(e);else if(h(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:kt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:_t(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:r}=t;r&&n(xt);n(`${o(U)}(`),kt(e.content,t),n(")")}(e,t);break;case 12:kt(e.codegenNode,t);break;case 8:Ot(e,t);break;case 3:break;case 13:!function(e,t){const{push:n,helper:o,pure:r}=t,{tag:s,props:c,children:i,patchFlag:l,dynamicProps:p,directives:a,isBlock:u,disableTracking:f}=e;a&&n(o(F)+"(");u&&n(`(${o(M)}(${f?"true":""}), `);r&&n(xt);n(o(u?w:P)+"(",e),Et(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([s,c,i,l,p]),t),n(")"),u&&n(")");a&&(n(", "),kt(a,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=d(e.callee)?e.callee:o(e.callee);r&&n(xt);n(s+"(",e),Et(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const i=c.length>1||!1;n(i?"{":"{ "),i&&o();for(let l=0;l<c.length;l++){const{key:e,value:o}=c[l];Ct(e,t),n(": "),kt(o,t),l<c.length-1&&(n(","),s())}i&&r(),n(i?"}":" }")}(e,t);break;case 17:!function(e,t){Nt(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:r}=t,{params:s,returns:c,body:i,newline:l,isSlot:p}=e;p&&n(`_${oe[ee]}(`);n("(",e),f(s)?Et(s,t):s&&kt(s,t);n(") => "),(l||i)&&(n("{"),o());c?(l&&n("return "),f(c)?Nt(c,t):kt(c,t)):i&&kt(i,t);(l||i)&&(r(),n("}"));p&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:c,indent:i,deindent:l,newline:p}=t;if(4===n.type){const e=!be(n.content);e&&c("("),_t(n,t),e&&c(")")}else c("("),kt(n,t),c(")");s&&i(),t.indentLevel++,s||c(" "),c("? "),kt(o,t),t.indentLevel--,s&&p(),s||c(" "),c(": ");const a=19===r.type;a||t.indentLevel++;kt(r,t),a||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(Y)}(-1),`),c());n(`_cache[${e.index}] = `),kt(e.value,t),e.isVNode&&(n(","),c(),n(`${o(Y)}(1),`),c(),n(`_cache[${e.index}]`),s());n(")")}(e,t)}}function _t(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Ot(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];d(o)?t.push(o):kt(o,t)}}function Ct(e,t){const{push:n}=t;if(8===e.type)n("["),Ot(e,t),n("]");else if(e.isStatic){n(be(e.content)?e.content:JSON.stringify(e.content),e)}else n(`[${e.content}]`,e)}function It(e,t,n=!1,o=!1){return e}const $t=St(/^(if|else|else-if)$/,((e,t,n)=>Mt(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),c=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(o)e.codegenNode=Pt(t,c,n);else{(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=Pt(t,c+e.branches.length-1,n)}}}))));function Mt(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){t.exp=ue("true",!1,t.exp?t.exp.loc:e.loc)}if("if"===t.name){const r=wt(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const c=r[s];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){n.removeNode();const r=wt(e,t);c.branches.push(r);const s=o&&o(c,r,!1);vt(r,n),s&&s(),n.currentNode=null}break}n.removeNode(c)}}}function wt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Oe(e,"for")?[e]:e.children,userKey:Ce(e,"key")}}function Pt(e,t,n){return e.condition?me(e.condition,Vt(e,t,n),de(n.helper(V),['""',"true"])):Vt(e,t,n)}function Vt(e,t,n){const{helper:o,removeHelper:r}=n,s=ae("key",ue(`${t}`,!1,se,2)),{children:c}=e,i=c[0];if(1!==c.length||1!==i.type){if(1===c.length&&11===i.type){const e=i.codegenNode;return Re(e,s,n),e}{let t=64;return ie(n,o(_),pe([s]),c,t+"",void 0,void 0,!0,!1,e.loc)}}{const e=i.codegenNode;return 13!==e.type||e.isBlock||(r(P),e.isBlock=!0,o(M),o(w)),Re(e,s,n),e}}const Rt=St("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return Lt(e,t,n,(t=>{const s=de(o(H),[t.source]),c=Ce(e,"key"),i=c?ae("key",6===c.type?ue(c.value.content,!0):c.exp):null,l=4===t.source.type&&t.source.constType>0,p=l?64:c?128:256;return t.codegenNode=ie(n,o(_),void 0,s,p+"",void 0,void 0,!0,!l,e.loc),()=>{let c;const p=Pe(e),{children:a}=t,u=1!==a.length||1!==a[0].type,f=Ve(e)?e:p&&1===e.children.length&&Ve(e.children[0])?e.children[0]:null;f?(c=f.codegenNode,p&&i&&Re(c,i,n)):u?c=ie(n,o(_),i?pe([i]):void 0,e.children,"64",void 0,void 0,!0):(c=a[0].codegenNode,p&&i&&Re(c,i,n),c.isBlock!==!l&&(c.isBlock?(r(M),r(w)):r(P)),c.isBlock=!l,c.isBlock?(o(M),o(w)):o(P)),s.arguments.push(he(jt(t.parseResult),c,!0))}}))}));function Lt(e,t,n,o){if(!t.exp)return;const r=Ft(t.exp);if(!r)return;const{scopes:s}=n,{source:c,value:i,key:l,index:p}=r,a={type:11,loc:t.loc,source:c,valueAlias:i,keyAlias:l,objectIndexAlias:p,parseResult:r,children:Pe(e)?e.children:[e]};n.replaceNode(a),s.vFor++;const u=o&&o(a);return()=>{s.vFor--,u&&u()}}const At=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Bt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Dt=/^\(|\)$/g;function Ft(e,t){const n=e.loc,o=e.content,r=o.match(At);if(!r)return;const[,s,c]=r,i={source:Ht(n,c.trim(),o.indexOf(c,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Dt,"").trim();const p=s.indexOf(l),a=l.match(Bt);if(a){l=l.replace(Bt,"").trim();const e=a[1].trim();let t;if(e&&(t=o.indexOf(e,p+l.length),i.key=Ht(n,e,t)),a[2]){const r=a[2].trim();r&&(i.index=Ht(n,r,o.indexOf(r,i.key?t+e.length:p+l.length)))}}return l&&(i.value=Ht(n,l,p)),i}function Ht(e,t,n){return ue(t,!1,Ee(e,n,t.length))}function jt({value:e,key:t,index:n}){const o=[];return e&&o.push(e),t&&(e||o.push(ue("_",!1)),o.push(t)),n&&(t||(e||o.push(ue("_",!1)),o.push(ue("__",!1))),o.push(n)),o}const Kt=ue("undefined",!1),Ut=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Oe(e,"slot");if(n)return t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Wt=(e,t,n)=>he(e,t,!1,!0,t.length?t[0].loc:n);function Gt(e,t,n=Wt){t.helper(ee);const{children:o,loc:r}=e,s=[],c=[],i=(e,t)=>ae("default",n(e,t,r));let l=t.scopes.vSlot>0||t.scopes.vFor>0;const p=Oe(e,"slot",!0);if(p){const{arg:e,exp:t}=p;e&&!ye(e)&&(l=!0),s.push(ae(e||ue("default",!0),n(t,o,r)))}let a=!1,u=!1;const f=[],d=new Set;for(let g=0;g<o.length;g++){const e=o[g];let r;if(!Pe(e)||!(r=Oe(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(p)break;a=!0;const{children:i,loc:h}=e,{arg:m=ue("default",!0),exp:y}=r;let v;ye(m)?v=m?m.content:"default":l=!0;const S=n(y,i,h);let x,b,T;if(x=Oe(e,"if"))l=!0,c.push(me(x.exp,zt(m,S),Kt));else if(b=Oe(e,/^else(-if)?$/,!0)){let e,t=g;for(;t--&&(e=o[t],3===e.type););if(e&&Pe(e)&&Oe(e,"if")){o.splice(g,1),g--;let e=c[c.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=b.exp?me(b.exp,zt(m,S),Kt):zt(m,S)}}else if(T=Oe(e,"for")){l=!0;const e=T.parseResult||Ft(T.exp);e&&c.push(de(t.helper(H),[e.source,he(jt(e),zt(m,S),!0)]))}else{if(v){if(d.has(v))continue;d.add(v),"default"===v&&(u=!0)}s.push(ae(m,S))}}p||(a?f.length&&(u||s.push(i(void 0,f))):s.push(i(void 0,o)));const h=l?2:Jt(e.children)?3:1;let m=pe(s.concat(ae("_",ue(h+"",!1))),r);return c.length&&(m=de(t.helper(K),[m,le(c)])),{slots:m,hasDynamicSlots:l}}function zt(e,t){return pe([ae("name",e),ae("fn",t)])}function Jt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||0===n.tagType&&Jt(n.children))return!0;break;case 9:if(Jt(n.branches))return!0;break;case 10:case 11:if(Jt(n.children))return!0}}return!1}const qt=new WeakMap,Yt=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType,s=r?Zt(e,t):`"${n}"`;let c,i,l,p,a,u,f=0,d=m(s)&&s.callee===B||s===O||s===C||!r&&("svg"===n||"foreignObject"===n||Ce(e,"key",!0));if(o.length>0){const n=Xt(e,t);c=n.props,f=n.patchFlag,a=n.dynamicPropNames;const o=n.directives;u=o&&o.length?le(o.map((e=>function(e,t){const n=[],o=qt.get(e);o?n.push(t.helperString(o)):(t.helper(D),t.directives.add(e.name),n.push(Le(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ue("true",!1,r);n.push(pe(e.modifiers.map((e=>ae(e,t))),r))}return le(n,e.loc)}(e,t)))):void 0}if(e.children.length>0){s===I&&(d=!0,f|=1024);if(r&&s!==O&&s!==I){const{slots:n,hasDynamicSlots:o}=Gt(e,t);i=n,o&&(f|=1024)}else if(1===e.children.length&&s!==O){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===ft(n,t)&&(f|=1),i=r||2===o?n:e.children}else i=e.children}0!==f&&(l=String(f),a&&a.length&&(p=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(a))),e.codegenNode=ie(t,s,c,i,l,p,u,!!d,!1,e.loc)};function Zt(e,t,n=!1){const{tag:o}=e,r=tn(o)?Ce(e,"is"):Oe(e,"is");if(r){const e=6===r.type?r.value&&ue(r.value.content,!0):r.exp;if(e)return de(t.helper(B),[e])}const s=Se(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(A),t.components.add(o),Le(o,"component"))}function Xt(e,t,n=e.props,o=!1){const{tag:r,loc:s}=e,c=1===e.tagType;let i=[];const l=[],p=[];let u=0,f=!1,d=!1,m=!1,y=!1,v=!1,S=!1;const x=[],b=({key:e,value:n})=>{if(ye(e)){const o=e.content,r=(e=>a.test(e))(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||g(o)||(y=!0),r&&g(o)&&(S=!0),20===n.type||(4===n.type||8===n.type)&&ft(n,t)>0)return;"ref"===o?f=!0:"class"!==o||c?"style"!==o||c?"key"===o||x.includes(o)||x.push(o):m=!0:d=!0}else v=!0};for(let a=0;a<n.length;a++){const c=n[a];if(6===c.type){const{loc:e,name:t,value:n}=c;let o=!0;if("ref"===t&&(f=!0),"is"===t&&tn(r))continue;i.push(ae(ue(t,!0,Ee(e,0,t.length)),ue(n?n.content:"",o,n?n.loc:e)))}else{const{name:n,arg:a,exp:u,loc:f}=c,d="bind"===n,m="on"===n;if("slot"===n)continue;if("once"===n)continue;if("is"===n||d&&tn(r)&&Ie(a,"is"))continue;if(m&&o)continue;if(!a&&(d||m)){v=!0,u&&(i.length&&(l.push(pe(Qt(i),s)),i=[]),l.push(d?u:{type:14,loc:f,callee:t.helper(G),arguments:[u]}));continue}const g=t.directiveTransforms[n];if(g){const{props:n,needRuntime:r}=g(c,e,t);!o&&n.forEach(b),i.push(...n),r&&(p.push(c),h(r)&&qt.set(c,r))}else p.push(c)}}let T;return l.length?(i.length&&l.push(pe(Qt(i),s)),T=l.length>1?de(t.helper(W),l,s):l[0]):i.length&&(T=pe(Qt(i),s)),v?u|=16:(d&&(u|=2),m&&(u|=4),x.length&&(u|=8),y&&(u|=32)),0!==u&&32!==u||!(f||S||p.length>0)||(u|=512),{props:T,directives:p,patchFlag:u,dynamicPropNames:x}}function Qt(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const r=e[o];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const s=r.key.content,c=t.get(s);c?("style"===s||"class"===s||s.startsWith("on"))&&en(c,r):(t.set(s,r),n.push(r))}return n}function en(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=le([e.value,t.value],e.loc)}function tn(e){return e[0].toLowerCase()+e.slice(1)==="component"}const nn=(e,t)=>{if(Ve(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=on(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r];s&&c.push(s),n.length&&(s||c.push("{}"),c.push(he([],n,!1,!1,o))),t.scopeId&&!t.slotted&&(s||c.push("{}"),n.length||c.push("undefined"),c.push("true")),e.codegenNode=de(t.helper(j),c,o)}};function on(e,t){let n,o='"default"';const r=[];for(let s=0;s<e.props.length;s++){const t=e.props[s];6===t.type?t.value&&("name"===t.name?o=JSON.stringify(t.value.content):(t.name=S(t.name),r.push(t))):"bind"===t.name&&Ie(t.arg,"name")?t.exp&&(o=t.exp):("bind"===t.name&&t.arg&&ye(t.arg)&&(t.arg.content=S(t.arg.content)),r.push(t))}if(r.length>0){const{props:o,directives:s}=Xt(e,t,r);n=o}return{slotName:o,slotProps:n}}const rn=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,sn=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:c}=e;let i;if(4===c.type)if(c.isStatic){i=ue(N(S(c.content)),!0,c.loc)}else i=fe([`${n.helperString(q)}(`,c,")"]);else i=c,i.children.unshift(`${n.helperString(q)}(`),i.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let p=n.cacheHandlers&&!l;if(l){const e=Ne(l.content),t=!(e||rn.test(l.content)),n=l.content.includes(";");(t||p&&e)&&(l=fe([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let a={props:[ae(i,l||ue("() => {}",!1,r))]};return o&&(a=o(a)),p&&(a.props[0].value=n.cache(a.props[0].value)),a},cn=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,c=e.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=`${c.content} || ""`),r.includes("camel")&&(4===c.type?c.content=c.isStatic?S(c.content):`${n.helperString(z)}(${c.content})`:(c.children.unshift(`${n.helperString(z)}(`),c.children.push(")"))),!o||4===o.type&&!o.content.trim()?{props:[ae(c,ue("",!0,s))]}:{props:[ae(c,o)]}},ln=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Me(t)){r=!0;for(let r=e+1;r<n.length;r++){const s=n[r];if(!Me(s)){o=void 0;break}o||(o=n[e]={type:8,loc:t.loc,children:[t]}),o.children.push(" + ",s),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType)))for(let e=0;e<n.length;e++){const o=n[e];if(Me(o)||8===o.type){const r=[];2===o.type&&" "===o.content||r.push(o),t.ssr||0!==ft(o,t)||r.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:de(t.helper(R),r)}}}}},pn=new WeakSet,an=(e,t)=>{if(1===e.type&&Oe(e,"once",!0)){if(pn.has(e))return;return pn.add(e),t.helper(Y),()=>{const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},un=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return fn();const s=o.loc.source;if(!Ne(4===o.type?o.content:s))return fn();const c=r||ue("modelValue",!0),i=r?ye(r)?`onUpdate:${r.content}`:fe(['"onUpdate:" + ',r]):"onUpdate:modelValue";let l;l=fe([`${n.isTS?"($event: any)":"$event"} => (`,o," = $event)"]);const p=[ae(c,e.exp),ae(i,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(be(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?ye(r)?`${r.content}Modifiers`:fe([r,' + "Modifiers"']):"modelModifiers";p.push(ae(n,ue(`{ ${t} }`,!1,e.loc,2)))}return fn(p)};function fn(e=[]){return{props:e}}function dn(e){return[[an,$t,Rt,nn,Yt,Ut,ln],{on:sn,bind:cn,model:un}]}function hn(e,t={}){const n=t.onError||E,o="module"===t.mode;!0===t.prefixIdentifiers?n(k(45)):o&&n(k(46));t.cacheHandlers&&n(k(47)),t.scopeId&&!o&&n(k(48));const r=d(e)?Fe(e,t):e,[s,c]=dn();return yt(r,u({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:u({},c,t.directiveTransforms||{})})),bt(r,u({},t,{prefixIdentifiers:false}))}const mn=()=>({props:[]}),gn=Symbol(""),yn=Symbol(""),vn=Symbol(""),Sn=Symbol(""),xn=Symbol(""),bn=Symbol(""),Tn=Symbol(""),Nn=Symbol(""),En=Symbol(""),kn=Symbol("");let _n;re({[gn]:"vModelRadio",[yn]:"vModelCheckbox",[vn]:"vModelText",[Sn]:"vModelSelect",[xn]:"vModelDynamic",[bn]:"withModifiers",[Tn]:"withKeys",[Nn]:"vShow",[En]:"Transition",[kn]:"TransitionGroup"});const On=t("style,iframe,script,noscript",!0),Cn={isVoidTag:c,isNativeTag:e=>r(e)||s(e),isPreTag:e=>"pre"===e,decodeEntities:function(e){return(_n||(_n=document.createElement("div"))).innerHTML=e,_n.textContent},isBuiltInComponent:e=>ve(e,"Transition")?En:ve(e,"TransitionGroup")?kn:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(On(e))return 2}return 0}},In=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ue("style",!0,t.loc),exp:$n(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},$n=(e,t)=>{const r=function(e){const t={};return e.split(n).forEach((e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}(e);return ue(JSON.stringify(r),!1,t,3)};function Mn(e,t){return k(e,t)}const wn=t("passive,once,capture"),Pn=t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Vn=t("left,right"),Rn=t("onkeyup,onkeydown,onkeypress",!0),Ln=(e,t)=>ye(e)&&"onclick"===e.content.toLowerCase()?ue(t,!0):4!==e.type?fe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,An=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Bn=[In],Dn={cloak:mn,html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ae(ue("innerHTML",!0,r),o||ue("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[ae(ue("textContent",!0),o?de(n.helperString(U),[o],r):ue("",!0))]}},model:(e,t,n)=>{const o=un(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=vn,c=!1;if("input"===r||s){const n=Ce(t,"type");if(n){if(7===n.type)e=xn;else if(n.value)switch(n.value.content){case"radio":e=gn;break;case"checkbox":e=yn;break;case"file":c=!0}}else $e(t)&&(e=xn)}else"select"===r&&(e=Sn);c||(o.needRuntime=n.helper(e))}return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>sn(e,0,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:c,nonKeyModifiers:i,eventOptionModifiers:l}=((e,t)=>{const n=[],o=[],r=[];for(let s=0;s<t.length;s++){const c=t[s];wn(c)?r.push(c):Vn(c)?ye(e)?Rn(e.content)?n.push(c):o.push(c):(n.push(c),o.push(c)):Pn(c)?o.push(c):n.push(c)}return{keyModifiers:n,nonKeyModifiers:o,eventOptionModifiers:r}})(r,o);if(i.includes("right")&&(r=Ln(r,"onContextmenu")),i.includes("middle")&&(r=Ln(r,"onMouseup")),i.length&&(s=de(n.helper(bn),[s,JSON.stringify(i)])),!c.length||ye(r)&&!Rn(r.content)||(s=de(n.helper(Tn),[s,JSON.stringify(c)])),l.length){const e=l.map(T).join("");r=ye(r)?ue(`${r.content}${e}`,!0):fe(["(",r,`) + "${e}"`])}return{props:[ae(r,s)]}})),show:(e,t,n)=>({props:[],needRuntime:n.helper(Nn)})};return e.BASE_TRANSITION=$,e.CAMELIZE=z,e.CAPITALIZE=J,e.CREATE_BLOCK=w,e.CREATE_COMMENT=V,e.CREATE_SLOTS=K,e.CREATE_STATIC=L,e.CREATE_TEXT=R,e.CREATE_VNODE=P,e.DOMDirectiveTransforms=Dn,e.DOMNodeTransforms=Bn,e.FRAGMENT=_,e.IS_REF=ne,e.KEEP_ALIVE=I,e.MERGE_PROPS=W,e.OPEN_BLOCK=M,e.POP_SCOPE_ID=X,e.PUSH_SCOPE_ID=Z,e.RENDER_LIST=H,e.RENDER_SLOT=j,e.RESOLVE_COMPONENT=A,e.RESOLVE_DIRECTIVE=D,e.RESOLVE_DYNAMIC_COMPONENT=B,e.SET_BLOCK_TRACKING=Y,e.SUSPENSE=C,e.TELEPORT=O,e.TO_DISPLAY_STRING=U,e.TO_HANDLERS=G,e.TO_HANDLER_KEY=q,e.TRANSITION=En,e.TRANSITION_GROUP=kn,e.UNREF=te,e.V_MODEL_CHECKBOX=yn,e.V_MODEL_DYNAMIC=xn,e.V_MODEL_RADIO=gn,e.V_MODEL_SELECT=Sn,e.V_MODEL_TEXT=vn,e.V_ON_WITH_KEYS=Tn,e.V_ON_WITH_MODIFIERS=bn,e.V_SHOW=Nn,e.WITH_CTX=ee,e.WITH_DIRECTIVES=F,e.WITH_SCOPE_ID=Q,e.advancePositionWithClone=ke,e.advancePositionWithMutation=_e,e.assert=function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},e.baseCompile=hn,e.baseParse=Fe,e.buildProps=Xt,e.buildSlots=Gt,e.compile=function(e,t={}){return hn(e,u({},Cn,t,{nodeTransforms:[An,...Bn,...t.nodeTransforms||[]],directiveTransforms:u({},Dn,t.directiveTransforms||{}),transformHoist:null}))},e.createArrayExpression=le,e.createAssignmentExpression=function(e,t){return{type:24,left:e,right:t,loc:se}},e.createBlockStatement=function(e){return{type:21,body:e,loc:se}},e.createCacheExpression=ge,e.createCallExpression=de,e.createCompilerError=k,e.createCompoundExpression=fe,e.createConditionalExpression=me,e.createDOMCompilerError=Mn,e.createForLoopParams=jt,e.createFunctionExpression=he,e.createIfStatement=function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:se}},e.createInterpolation=function(e,t){return{type:5,loc:t,content:d(e)?ue(e,!1,t):e}},e.createObjectExpression=pe,e.createObjectProperty=ae,e.createReturnStatement=function(e){return{type:26,returns:e,loc:se}},e.createRoot=ce,e.createSequenceExpression=function(e){return{type:25,expressions:e,loc:se}},e.createSimpleExpression=ue,e.createStructuralDirectiveTransform=St,e.createTemplateLiteral=function(e){return{type:22,elements:e,loc:se}},e.createTransformContext=gt,e.createVNodeCall=ie,e.findDir=Oe,e.findProp=Ce,e.generate=bt,e.generateCodeFrame=function(e,t=0,n=e.length){const o=e.split(/\r?\n/);let r=0;const s=[];for(let c=0;c<o.length;c++)if(r+=o[c].length+1,r>=t){for(let e=c-2;e<=c+2||n>r;e++){if(e<0||e>=o.length)continue;const i=e+1;s.push(`${i}${" ".repeat(Math.max(3-String(i).length,0))}| ${o[e]}`);const l=o[e].length;if(e===c){const e=t-(r-l)+1,o=Math.max(1,n>r?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(o))}else if(e>c){if(n>r){const e=Math.max(Math.min(n-r,l),1);s.push(" | "+"^".repeat(e))}r+=l+1}}break}return s.join("\n")},e.getBaseTransformPreset=dn,e.getInnerRange=Ee,e.hasDynamicKeyVBind=$e,e.hasScopeRef=function e(t,n){if(!t||0===Object.keys(n).length)return!1;switch(t.type){case 1:for(let o=0;o<t.props.length;o++){const r=t.props[o];if(7===r.type&&(e(r.arg,n)||e(r.exp,n)))return!0}return t.children.some((t=>e(t,n)));case 11:return!!e(t.source,n)||t.children.some((t=>e(t,n)));case 9:return t.branches.some((t=>e(t,n)));case 10:return!!e(t.condition,n)||t.children.some((t=>e(t,n)));case 4:return!t.isStatic&&be(t.content)&&!!n[t.content];case 8:return t.children.some((t=>m(t)&&e(t,n)));case 5:case 12:return e(t.content,n);case 2:case 3:default:return!1}},e.helperNameMap=oe,e.injectProp=Re,e.isBindKey=Ie,e.isBuiltInType=ve,e.isCoreComponent=Se,e.isMemberExpression=Ne,e.isSimpleIdentifier=be,e.isSlotOutlet=Ve,e.isStaticExp=ye,e.isTemplateNode=Pe,e.isText=Me,e.isVSlot=we,e.locStub=se,e.noopDirectiveTransform=mn,e.parse=function(e,t={}){return Fe(e,u({},Cn,t))},e.parserOptions=Cn,e.processExpression=It,e.processFor=Lt,e.processIf=Mt,e.processSlotOutlet=on,e.registerRuntimeHelpers=re,e.resolveComponentType=Zt,e.toValidAssetId=Le,e.trackSlotScopes=Ut,e.trackVForSlotScopes=(e,t)=>{let n;if(Pe(e)&&e.props.some(we)&&(n=Oe(e,"for"))){const e=n.parseResult=Ft(n.exp);if(e){const{value:n,key:o,index:r}=e,{addIdentifiers:s,removeIdentifiers:c}=t;return n&&s(n),o&&s(o),r&&s(r),()=>{n&&c(n),o&&c(o),r&&c(r)}}}},e.transform=yt,e.transformBind=cn,e.transformElement=Yt,e.transformExpression=(e,t)=>{if(5===e.type)e.content=It(e.content);else if(1===e.type)for(let n=0;n<e.props.length;n++){const o=e.props[n];if(7===o.type&&"for"!==o.name){const e=o.exp,n=o.arg;!e||4!==e.type||"on"===o.name&&n||(o.exp=It(e,t,"slot"===o.name)),n&&4===n.type&&!n.isStatic&&(o.arg=It(n))}}},e.transformModel=un,e.transformOn=sn,e.transformStyle=In,e.traverseNode=vt,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-dom",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "@vue/compiler-dom",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-dom.esm-bundler.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-dom#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vue/shared": "3.0.
|
|
40
|
-
"@vue/compiler-core": "3.0.
|
|
39
|
+
"@vue/shared": "3.0.11",
|
|
40
|
+
"@vue/compiler-core": "3.0.11"
|
|
41
41
|
}
|
|
42
42
|
}
|