@kdujs/compiler-dom
Version:
@kdujs/compiler-dom
7 lines • 80.3 kB
JavaScript
/**
* @kdujs/compiler-dom v3.4.27
* (c) 2021-present NKDuy
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const t={},n=()=>{},s=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=Object.assign,r=Array.isArray,a=e=>"string"==typeof e,c=e=>"symbol"==typeof e,l=e=>null!==e&&"object"==typeof e,h=e(",key,ref,ref_for,ref_key,onKnodeBeforeMount,onKnodeMounted,onKnodeBeforeUpdate,onKnodeUpdated,onKnodeBeforeUnmount,onKnodeUnmounted"),d=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),p=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},u=/-(\w)/g,f=p((e=>e.replace(u,((e,t)=>t?t.toUpperCase():"")))),m=p((e=>e.charAt(0).toUpperCase()+e.slice(1))),_=p((e=>e?`on${m(e)}`:""));function E(e,t=0,n=e.length){let s=e.split(/(\r?\n)/);const i=s.filter(((e,t)=>t%2==1));s=s.filter(((e,t)=>t%2==0));let o=0;const r=[];for(let a=0;a<s.length;a++)if(o+=s[a].length+(i[a]&&i[a].length||0),o>=t){for(let e=a-2;e<=a+2||n>o;e++){if(e<0||e>=s.length)continue;const c=e+1;r.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${s[e]}`);const l=s[e].length,h=i[e]&&i[e].length||0;if(e===a){const e=t-(o-(l+h)),s=Math.max(1,n>o?l-e:n-t);r.push(" | "+" ".repeat(e)+"^".repeat(s))}else if(e>a){if(n>o){const e=Math.max(Math.min(n-o,l),1);r.push(" | "+"^".repeat(e))}o+=l+h}}break}return r.join("\n")}const S=/;(?![^(]*\))/g,g=/:([^]+)/,T=/\/\*[^]*?\*\//g;const N=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,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,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"),I=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,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"),y=e("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),O=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),b=Symbol(""),A=Symbol(""),C=Symbol(""),x=Symbol(""),R=Symbol(""),k=Symbol(""),L=Symbol(""),M=Symbol(""),v=Symbol(""),P=Symbol(""),D=Symbol(""),X=Symbol(""),w=Symbol(""),U=Symbol(""),K=Symbol(""),F=Symbol(""),B=Symbol(""),$=Symbol(""),H=Symbol(""),G=Symbol(""),V=Symbol(""),q=Symbol(""),J=Symbol(""),j=Symbol(""),W=Symbol(""),Y=Symbol(""),Q=Symbol(""),z=Symbol(""),Z=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),se=Symbol(""),ie=Symbol(""),oe=Symbol(""),re=Symbol(""),ae=Symbol(""),ce=Symbol(""),le=Symbol(""),he={[b]:"Fragment",[A]:"Teleport",[C]:"Suspense",[x]:"KeepAlive",[R]:"BaseTransition",[k]:"openBlock",[L]:"createBlock",[M]:"createElementBlock",[v]:"createKNode",[P]:"createElementKNode",[D]:"createCommentKNode",[X]:"createTextKNode",[w]:"createStaticKNode",[U]:"resolveComponent",[K]:"resolveDynamicComponent",[F]:"resolveDirective",[B]:"resolveFilter",[$]:"withDirectives",[H]:"renderList",[G]:"renderSlot",[V]:"createSlots",[q]:"toDisplayString",[J]:"mergeProps",[j]:"normalizeClass",[W]:"normalizeStyle",[Y]:"normalizeProps",[Q]:"guardReactiveProps",[z]:"toHandlers",[Z]:"camelize",[ee]:"capitalize",[te]:"toHandlerKey",[ne]:"setBlockTracking",[se]:"pushScopeId",[ie]:"popScopeId",[oe]:"withCtx",[re]:"unref",[ae]:"isRef",[ce]:"withMemo",[le]:"isMemoSame"};function de(e){Object.getOwnPropertySymbols(e).forEach((t=>{he[t]=e[t]}))}const pe={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},ue={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",KNODE_CALL:13,13:"KNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},fe={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},me={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},_e={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Ee(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:_e}}function Se(e,t,n,s,i,o,r,a=!1,c=!1,l=!1,h=_e){return e&&(a?(e.helper(k),e.helper(Xe(e.inSSR,l))):e.helper(De(e.inSSR,l)),r&&e.helper($)),{type:13,tag:t,props:n,children:s,patchFlag:i,dynamicProps:o,directives:r,isBlock:a,disableTracking:c,isComponent:l,loc:h}}function ge(e,t=_e){return{type:17,loc:t,elements:e}}function Te(e,t=_e){return{type:15,loc:t,properties:e}}function Ne(e,t){return{type:16,loc:_e,key:a(e)?Ie(e,!0):e,value:t}}function Ie(e,t=!1,n=_e,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function ye(e,t){return{type:5,loc:t,content:a(e)?Ie(e,!1,t):e}}function Oe(e,t=_e){return{type:8,loc:t,children:e}}function be(e,t=[],n=_e){return{type:14,loc:n,callee:e,arguments:t}}function Ae(e,t=void 0,n=!1,s=!1,i=_e){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:i}}function Ce(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:_e}}function xe(e,t,n=!1){return{type:20,index:e,value:t,isKNode:n,loc:_e}}function Re(e){return{type:21,body:e,loc:_e}}function ke(e){return{type:22,elements:e,loc:_e}}function Le(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:_e}}function Me(e,t){return{type:24,left:e,right:t,loc:_e}}function ve(e){return{type:25,expressions:e,loc:_e}}function Pe(e){return{type:26,returns:e,loc:_e}}function De(e,t){return e||t?v:P}function Xe(e,t){return e||t?L:M}function we(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(De(s,e.isComponent)),t(k),t(Xe(s,e.isComponent)))}var Ue=Object.defineProperty,Ke=(e,t,n)=>(((e,t,n)=>{t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const Fe=new Uint8Array([123,123]),Be=new Uint8Array([125,125]);function $e(e){return e>=97&&e<=122||e>=65&&e<=90}function He(e){return 32===e||10===e||9===e||12===e||13===e}function Ge(e){return 47===e||62===e||He(e)}function Ve(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};const Je={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_K_BIND_SYNC:"COMPILER_K_BIND_SYNC",COMPILER_K_BIND_OBJECT_ORDER:"COMPILER_K_BIND_OBJECT_ORDER",COMPILER_K_ON_NATIVE:"COMPILER_K_ON_NATIVE",COMPILER_K_IF_K_FOR_PRECEDENCE:"COMPILER_K_IF_K_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},je={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Kdu 3 unless the "is" value is explicitly prefixed with "kdu:".',link:"https://kdujs-v3-migration.web.app/breaking-changes/custom-elements-interop.html"},COMPILER_K_BIND_SYNC:{message:e=>`.sync modifier for k-bind has been removed. Use k-model with argument instead. \`k-bind:${e}.sync\` should be changed to \`k-model:${e}\`.`,link:"https://kdujs-v3-migration.web.app/breaking-changes/k-model.html"},COMPILER_K_BIND_OBJECT_ORDER:{message:'k-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before k-bind in the case of conflict. To retain 2.x behavior, move k-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://kdujs-v3-migration.web.app/breaking-changes/k-bind.html"},COMPILER_K_ON_NATIVE:{message:".native modifier for k-on has been removed as is no longer necessary.",link:"https://kdujs-v3-migration.web.app/breaking-changes/k-on-native-modifier-removed.html"},COMPILER_K_IF_K_FOR_PRECEDENCE:{message:"k-if / k-for precedence when used on the same element has changed in Kdu 3: k-if now takes higher precedence and will no longer have access to k-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters k-for data source.",link:"https://kdujs-v3-migration.web.app/breaking-changes/k-if-k-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Kdu 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Kdu 3.',link:"https://kdujs-v3-migration.web.app/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Kdu 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://kdujs-v3-migration.web.app/breaking-changes/filters.html"}};function We(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function Ye(e,t){const n=We("MODE",t),s=We(e,t);return 3===n?!0===s:!1!==s}function Qe(e,t,n,...s){return Ye(e,t)}function ze(e,t,n,...s){if("suppress-warning"===We(e,t))return;const{message:i,link:o}=je[e],r=`(deprecation ${e}) ${"function"==typeof i?i(...s):i}${o?`\n Details: ${o}`:""}`,a=new SyntaxError(r);a.code=e,n&&(a.loc=n),t.onWarn(a)}function Ze(e){throw e}function et(e){}function tt(e,t,n,s){const i=new SyntaxError(String(`https://kdu-js.web.app/error-reference/#compiler-${e}`));return i.code=e,i.loc=t,i}const nt={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_K_IF_NO_EXPRESSION:28,28:"X_K_IF_NO_EXPRESSION",X_K_IF_SAME_KEY:29,29:"X_K_IF_SAME_KEY",X_K_ELSE_NO_ADJACENT_IF:30,30:"X_K_ELSE_NO_ADJACENT_IF",X_K_FOR_NO_EXPRESSION:31,31:"X_K_FOR_NO_EXPRESSION",X_K_FOR_MALFORMED_EXPRESSION:32,32:"X_K_FOR_MALFORMED_EXPRESSION",X_K_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_K_FOR_TEMPLATE_KEY_PLACEMENT",X_K_BIND_NO_EXPRESSION:34,34:"X_K_BIND_NO_EXPRESSION",X_K_ON_NO_EXPRESSION:35,35:"X_K_ON_NO_EXPRESSION",X_K_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_K_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_K_SLOT_MIXED_SLOT_USAGE:37,37:"X_K_SLOT_MIXED_SLOT_USAGE",X_K_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_K_SLOT_DUPLICATE_SLOT_NAMES",X_K_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_K_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_K_SLOT_MISPLACED:40,40:"X_K_SLOT_MISPLACED",X_K_MODEL_NO_EXPRESSION:41,41:"X_K_MODEL_NO_EXPRESSION",X_K_MODEL_MALFORMED_EXPRESSION:42,42:"X_K_MODEL_MALFORMED_EXPRESSION",X_K_MODEL_ON_SCOPE_VARIABLE:43,43:"X_K_MODEL_ON_SCOPE_VARIABLE",X_K_MODEL_ON_PROPS:44,44:"X_K_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_KNODE_HOOKS:51,51:"X_KNODE_HOOKS",X_K_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_K_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},st={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"k-if/k-else-if is missing expression.",29:"k-if/else branches must use unique keys.",30:"k-else/k-else-if has no adjacent k-if or k-else-if.",31:"k-for is missing expression.",32:"k-for has invalid expression.",33:"<template k-for> key should be placed on the <template> tag.",34:"k-bind is missing expression.",52:"k-bind with same-name shorthand only allows static argument.",35:"k-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed k-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"k-slot can only be used on components or <template> tags.",41:"k-model is missing expression.",42:"k-model value must be a valid JavaScript member expression.",43:"k-model cannot be used on k-for or k-slot scope variables because they are not writable.",44:"k-model cannot be used on a prop, because local prop bindings are not writable.\nUse a k-bind binding combined with a k-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@knode-* hooks in templates are no longer supported. Use the kdu: prefix instead. For example, @knode-mounted should be changed to @kdu:mounted. @knode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function it(e,t,n=!1,s=[],i=Object.create(null)){}function ot(e,t,n){return!1}function rt(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1}function at(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1}function ct(e,t){for(const n of e.params)for(const e of ht(n))t(e)}function lt(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of ht(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}else if("ForOfStatement"===n.type||"ForInStatement"===n.type||"ForStatement"===n.type){const e="ForStatement"===n.type?n.init:n.left;if(e&&"VariableDeclaration"===e.type)for(const n of e.declarations)for(const e of ht(n.id))t(e)}}function ht(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const s of e.properties)ht("RestElement"===s.type?s.argument:s.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&ht(e,t)}));break;case"RestElement":ht(e.argument,t);break;case"AssignmentPattern":ht(e.left,t)}return t}const dt=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),pt=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,ut=(e,t)=>pt(t)&&t.key===e,ft=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function mt(e){return ft.includes(e.type)?mt(e.expression):e}const _t=e=>4===e.type&&e.isStatic;function Et(e){switch(e){case"Teleport":case"teleport":return A;case"Suspense":case"suspense":return C;case"KeepAlive":case"keep-alive":return x;case"BaseTransition":case"base-transition":return R}}const St=/^\d|[^\$\w]/,gt=e=>!St.test(e),Tt=/[A-Za-z_$\xA0-\uFFFF]/,Nt=/[\.\?\w$\xA0-\uFFFF]/,It=/\s+[.[]\s*|\s*[.[]\s+/g,yt=e=>{e=e.trim().replace(It,(e=>e.trim()));let t=0,n=[],s=0,i=0,o=null;for(let r=0;r<e.length;r++){const a=e.charAt(r);switch(t){case 0:if("["===a)n.push(t),t=1,s++;else if("("===a)n.push(t),t=2,i++;else if(!(0===r?Tt:Nt).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,o=a):"["===a?s++:"]"===a&&(--s||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,o=a;else if("("===a)i++;else if(")"===a){if(r===e.length-1)return!1;--i||(t=n.pop())}break;case 3:a===o&&(t=n.pop(),o=null)}}return!s&&!i},Ot=n,bt=yt;function At(e,t,n=t.length){return Ct({offset:e.offset,line:e.line,column:e.column},t,n)}function Ct(e,t,n=t.length){let s=0,i=-1;for(let o=0;o<n;o++)10===t.charCodeAt(o)&&(s++,i=o);return e.offset+=n,e.line+=s,e.column=-1===i?e.column+n:n-i,e}function xt(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Rt(e,t,n=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(7===i.type&&(n||i.exp)&&(a(t)?i.name===t:t.test(i.name)))return i}}function kt(e,t,n=!1,s=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||s))return o}else if("bind"===o.name&&(o.exp||s)&&Lt(o.arg,t))return o}}function Lt(e,t){return!(!e||!_t(e)||e.content!==t)}function Mt(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function vt(e){return 5===e.type||2===e.type}function Pt(e){return 7===e.type&&"slot"===e.name}function Dt(e){return 1===e.type&&3===e.tagType}function Xt(e){return 1===e.type&&2===e.tagType}const wt=new Set([Y,Q]);function Ut(e,t=[]){if(e&&!a(e)&&14===e.type){const n=e.callee;if(!a(n)&&wt.has(n))return Ut(e.arguments[0],t.concat(e))}return[e,t]}function Kt(e,t,n){let s,i,o=13===e.type?e.props:e.arguments[2],r=[];if(o&&!a(o)&&14===o.type){const e=Ut(o);o=e[0],r=e[1],i=r[r.length-1]}if(null==o||a(o))s=Te([t]);else if(14===o.type){const e=o.arguments[0];a(e)||15!==e.type?o.callee===z?s=be(n.helper(J),[Te([t]),o]):o.arguments.unshift(Te([t])):Ft(t,e)||e.properties.unshift(t),!s&&(s=o)}else 15===o.type?(Ft(t,o)||o.properties.unshift(t),s=o):(s=be(n.helper(J),[Te([t]),o]),i&&i.callee===Q&&(i=r[r.length-2]));13===e.type?i?i.arguments[0]=s:e.props=s:i?i.arguments[0]=s:e.arguments[2]=s}function Ft(e,t){let n=!1;if(4===e.key.type){const s=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===s))}return n}function Bt(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function $t(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 s=e.props[n];if(7===s.type&&($t(s.arg,t)||$t(s.exp,t)))return!0}return e.children.some((e=>$t(e,t)));case 11:return!!$t(e.source,t)||e.children.some((e=>$t(e,t)));case 9:return e.branches.some((e=>$t(e,t)));case 10:return!!$t(e.condition,t)||e.children.some((e=>$t(e,t)));case 4:return!e.isStatic&>(e.content)&&!!t[e.content];case 8:return e.children.some((e=>l(e)&&$t(e,t)));case 5:case 12:return $t(e.content,t);default:return!1}}function Ht(e){return 14===e.type&&e.callee===ce?e.arguments[1].returns:e}const Gt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Vt={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:Ze,onWarn:et,comments:!1,prefixIdentifiers:!1};let qt=Vt,Jt=null,jt="",Wt=null,Yt=null,Qt="",zt=-1,Zt=-1,en=0,tn=!1,nn=null;const sn=[],on=new class{constructor(e,t){this.stack=e,this.cbs=t,Ke(this,"state",1),Ke(this,"buffer",""),Ke(this,"sectionStart",0),Ke(this,"index",0),Ke(this,"entityStart",0),Ke(this,"baseState",1),Ke(this,"inRCDATA",!1),Ke(this,"inXML",!1),Ke(this,"inKPre",!1),Ke(this,"newlines",[]),Ke(this,"entityDecoder"),Ke(this,"mode",0),Ke(this,"delimiterOpen",Fe),Ke(this,"delimiterClose",Be),Ke(this,"delimiterIndex",-1),Ke(this,"currentSequence"),Ke(this,"sequenceIndex",0)}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Fe,this.delimiterClose=Be}getPos(e){let t=1,n=e+1;for(let s=this.newlines.length-1;s>=0;s--){const i=this.newlines[s];if(e>i){t=s+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inKPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.state=this.inRCDATA?32:1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ge(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||He(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===qe.TitleEnd||this.currentSequence===qe.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===qe.Cdata[this.sequenceIndex]?++this.sequenceIndex===qe.Cdata.length&&(this.state=28,this.currentSequence=qe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):$e(e)?(this.sectionStart=this.index,this.state=0===this.mode?6:this.inSFCRoot?34:this.inXML?6:116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Ge(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Ge(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Ve("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){He(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=$e(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||He(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.state=this.inRCDATA?32:1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):He(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):He(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Ge(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Ge(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Ge(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Ge(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Ge(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):He(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):He(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){He(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=qe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===qe.ScriptEnd[3]?this.startSpecial(qe.ScriptEnd,4):e===qe.StyleEnd[3]?this.startSpecial(qe.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===qe.TitleEnd[3]?this.startSpecial(qe.TitleEnd,4):e===qe.TextareaEnd[3]?this.startSpecial(qe.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(sn,{onerr:bn,ontext(e,t){hn(cn(e,t),e,t)},ontextentity(e,t,n){hn(e,t,n)},oninterpolation(e,t){if(tn)return hn(cn(e,t),e,t);let n=e+on.delimiterOpen.length,s=t-on.delimiterClose.length;for(;He(jt.charCodeAt(n));)n++;for(;He(jt.charCodeAt(s-1));)s--;let i=cn(n,s);i.includes("&")&&(i=qt.decodeEntities(i,!1)),Tn({type:5,content:On(i,!1,Nn(n,s)),loc:Nn(e,t)})},onopentagname(e,t){const n=cn(e,t);Wt={type:1,tag:n,ns:qt.getNamespace(n,sn[0],qt.ns),tagType:0,props:[],children:[],loc:Nn(e-1,t),codegenNode:void 0}},onopentagend(e){ln(e)},onclosetag(e,t){const n=cn(e,t);if(!qt.isVoidTag(n)){let s=!1;for(let e=0;e<sn.length;e++){if(sn[e].tag.toLowerCase()===n.toLowerCase()){s=!0;for(let n=0;n<=e;n++){dn(sn.shift(),t,n<e)}break}}s||pn(e,60)}},onselfclosingtag(e){const t=Wt.tag;Wt.isSelfClosing=!0,ln(e),sn[0]&&sn[0].tag===t&&dn(sn.shift(),e)},onattribname(e,t){Yt={type:6,name:cn(e,t),nameLoc:Nn(e,t),value:void 0,loc:Nn(e)}},ondirname(e,t){const n=cn(e,t),s="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(tn||""===s)Yt={type:6,name:n,nameLoc:Nn(e,t),value:void 0,loc:Nn(e)};else if(Yt={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:Nn(e)},"pre"===s){tn=on.inKPre=!0,nn=Wt;const e=Wt.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=yn(e[t]))}},ondirarg(e,t){if(e===t)return;const n=cn(e,t);if(tn)Yt.name+=n,In(Yt.nameLoc,t);else{const s="["!==n[0];Yt.arg=On(s?n:n.slice(1,-1),s,Nn(e,t),s?3:0)}},ondirmodifier(e,t){const n=cn(e,t);if(tn)Yt.name+="."+n,In(Yt.nameLoc,t);else if("slot"===Yt.name){const e=Yt.arg;e&&(e.content+="."+n,In(e.loc,t))}else Yt.modifiers.push(n)},onattribdata(e,t){Qt+=cn(e,t),zt<0&&(zt=e),Zt=t},onattribentity(e,t,n){Qt+=e,zt<0&&(zt=t),Zt=n},onattribnameend(e){const t=cn(Yt.loc.start.offset,e);7===Yt.type&&(Yt.rawName=t),Wt.props.some((e=>(7===e.type?e.rawName:e.name)===t))},onattribend(e,t){if(Wt&&Yt){if(In(Yt.loc,t),0!==e)if(Qt.includes("&")&&(Qt=qt.decodeEntities(Qt,!0)),6===Yt.type)"class"===Yt.name&&(Qt=gn(Qt).trim()),Yt.value={type:2,content:Qt,loc:1===e?Nn(zt,Zt):Nn(zt-1,Zt+1)},on.inSFCRoot&&"template"===Wt.tag&&"lang"===Yt.name&&Qt&&"html"!==Qt&&on.enterRCDATA(Ve("</template"),0);else{let e=0;Yt.exp=On(Qt,!1,Nn(zt,Zt),0,e),"for"===Yt.name&&(Yt.forParseResult=function(e){const t=e.loc,n=e.content,s=n.match(Gt);if(!s)return;const[,i,o]=s,r=(e,n,s=!1)=>{const i=t.start.offset+n;return On(e,!1,Nn(i,i+e.length),0,s?1:0)},a={source:r(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=i.trim().replace(an,"").trim();const l=i.indexOf(c),h=c.match(rn);if(h){c=c.replace(rn,"").trim();const e=h[1].trim();let t;if(e&&(t=n.indexOf(e,l+c.length),a.key=r(e,t,!0)),h[2]){const s=h[2].trim();s&&(a.index=r(s,n.indexOf(s,a.key?t+e.length:l+c.length),!0))}}c&&(a.value=r(c,l,!0));return a}(Yt.exp));let t=-1;"bind"===Yt.name&&(t=Yt.modifiers.indexOf("sync"))>-1&&Qe("COMPILER_K_BIND_SYNC",qt,0)&&(Yt.name="model",Yt.modifiers.splice(t,1))}7===Yt.type&&"pre"===Yt.name||Wt.props.push(Yt)}Qt="",zt=Zt=-1},oncomment(e,t){qt.comments&&Tn({type:3,content:cn(e,t),loc:Nn(e-4,t+3)})},onend(){const e=jt.length;for(let t=0;t<sn.length;t++)dn(sn[t],e-1)},oncdata(e,t){0!==sn[0].ns&&hn(cn(e,t),e,t)},onprocessinginstruction(e){0===(sn[0]?sn[0].ns:qt.ns)&&bn(21,e-1)}}),rn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,an=/^\(|\)$/g;function cn(e,t){return jt.slice(e,t)}function ln(e){on.inSFCRoot&&(Wt.innerLoc=Nn(e+1,e+1)),Tn(Wt);const{tag:t,ns:n}=Wt;0===n&&qt.isPreTag(t)&&en++,qt.isVoidTag(t)?dn(Wt,e):(sn.unshift(Wt),1!==n&&2!==n||(on.inXML=!0)),Wt=null}function hn(e,t,n){{const t=sn[0]&&sn[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=qt.decodeEntities(e,!1))}const s=sn[0]||Jt,i=s.children[s.children.length-1];i&&2===i.type?(i.content+=e,In(i.loc,n)):s.children.push({type:2,content:e,loc:Nn(t,n)})}function dn(e,t,n=!1){In(e.loc,n?pn(t,60):function(e,t){let n=e;for(;jt.charCodeAt(n)!==t&&n<jt.length-1;)n++;return n}(t,62)+1),on.inSFCRoot&&(e.innerLoc.end=o({},e.children.length?e.children[e.children.length-1].loc.end:e.innerLoc.start),e.innerLoc.source=cn(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:i}=e;tn||("slot"===s?e.tagType=2:fn(e)?e.tagType=3:function({tag:e,props:t}){if(qt.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||Et(e)||qt.isBuiltInComponent&&qt.isBuiltInComponent(e)||qt.isNativeTag&&!qt.isNativeTag(e))return!0;var n;for(let s=0;s<t.length;s++){const e=t[s];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("kdu:"))return!0;if(Qe("COMPILER_IS_ON_ELEMENT",qt))return!0}}else if("bind"===e.name&&Lt(e.arg,"is")&&Qe("COMPILER_IS_ON_ELEMENT",qt))return!0}return!1}(e)&&(e.tagType=1)),on.inRCDATA||(e.children=_n(e.children,e.tag)),0===i&&qt.isPreTag(s)&&en--,nn===e&&(tn=on.inKPre=!1,nn=null),on.inXML&&0===(sn[0]?sn[0].ns:qt.ns)&&(on.inXML=!1);{const t=e.props;if(!on.inSFCRoot&&Ye("COMPILER_NATIVE_TEMPLATE",qt)&&"template"===e.tag&&!fn(e)){const t=sn[0]||Jt,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Qe("COMPILER_INLINE_TEMPLATE",qt)&&e.children.length&&(n.value={type:2,content:cn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function pn(e,t){let n=e;for(;jt.charCodeAt(n)!==t&&n>=0;)n--;return n}const un=new Set(["if","else","else-if","for","slot"]);function fn({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&un.has(t[n].name))return!0;return!1}const mn=/\r\n/g;function _n(e,t){const n="preserve"!==qt.whitespace;let s=!1;for(let i=0;i<e.length;i++){const t=e[i];if(2===t.type)if(en)t.content=t.content.replace(mn,"\n");else if(En(t.content)){const o=e[i-1]&&e[i-1].type,r=e[i+1]&&e[i+1].type;!o||!r||n&&(3===o&&(3===r||1===r)||1===o&&(3===r||1===r&&Sn(t.content)))?(s=!0,e[i]=null):t.content=" "}else n&&(t.content=gn(t.content))}if(en&&t&&qt.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return s?e.filter(Boolean):e}function En(e){for(let t=0;t<e.length;t++)if(!He(e.charCodeAt(t)))return!1;return!0}function Sn(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function gn(e){let t="",n=!1;for(let s=0;s<e.length;s++)He(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function Tn(e){(sn[0]||Jt).children.push(e)}function Nn(e,t){return{start:on.getPos(e),end:null==t?t:on.getPos(t),source:null==t?t:cn(e,t)}}function In(e,t){e.end=on.getPos(t),e.source=cn(e.start.offset,t)}function yn(e){const t={type:6,name:e.rawName,nameLoc:Nn(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function On(e,t=!1,n,s=0,i=0){return Ie(e,t,n,s)}function bn(e,t,n){qt.onError(tt(e,Nn(t,t)))}function An(e,t){if(on.reset(),Wt=null,Yt=null,Qt="",zt=-1,Zt=-1,sn.length=0,jt=e,qt=o({},Vt),t){let e;for(e in t)null!=t[e]&&(qt[e]=t[e])}on.mode="html"===qt.parseMode?1:"sfc"===qt.parseMode?2:0,on.inXML=1===qt.ns||2===qt.ns;const n=t&&t.delimiters;n&&(on.delimiterOpen=Ve(n[0]),on.delimiterClose=Ve(n[1]));const s=Jt=Ee([],e);return on.parse(jt),s.loc=Nn(0,e.length),s.children=_n(s.children),Jt=null,s}function Cn(e,t){Rn(e,t,xn(e,e.children[0]))}function xn(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Xt(t)}function Rn(e,t,n=!1){const{children:s}=e,i=s.length;let o=0;for(let r=0;r<s.length;r++){const e=s[r];if(1===e.type&&0===e.tagType){const s=n?0:kn(e,t);if(s>0){if(s>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o++;continue}}else{const n=e.codegenNode;if(13===n.type){const s=Dn(n);if((!s||512===s||1===s)&&vn(e,t)>=2){const s=Pn(e);s&&(n.props=t.hoist(s))}n.dynamicProps&&(n.dynamicProps=t.hoist(n.dynamicProps))}}}if(1===e.type){const n=1===e.tagType;n&&t.scopes.kSlot++,Rn(e,t),n&&t.scopes.kSlot--}else if(11===e.type)Rn(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)Rn(e.branches[n],t,1===e.branches[n].children.length)}if(o&&t.transformHoist&&t.transformHoist(s,t,e),o&&o===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&r(e.codegenNode.children)){const n=t.hoist(ge(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function kn(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const s=n.get(e);if(void 0!==s)return s;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(Dn(i))return n.set(e,0),0;{let s=3;const o=vn(e,t);if(0===o)return n.set(e,0),0;o<s&&(s=o);for(let i=0;i<e.children.length;i++){const o=kn(e.children[i],t);if(0===o)return n.set(e,0),0;o<s&&(s=o)}if(s>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=kn(o.exp,t);if(0===i)return n.set(e,0),0;i<s&&(s=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(k),t.removeHelper(Xe(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(De(t.inSSR,i.isComponent))}return n.set(e,s),s}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return kn(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const s=e.children[n];if(a(s)||c(s))continue;const i=kn(s,t);if(0===i)return 0;i<o&&(o=i)}return o}}const Ln=new Set([j,W,Y,Q]);function Mn(e,t){if(14===e.type&&!a(e.callee)&&Ln.has(e.callee)){const n=e.arguments[0];if(4===n.type)return kn(n,t);if(14===n.type)return Mn(n,t)}return 0}function vn(e,t){let n=3;const s=Pn(e);if(s&&15===s.type){const{properties:e}=s;for(let s=0;s<e.length;s++){const{key:i,value:o}=e[s],r=kn(i,t);if(0===r)return r;let a;if(r<n&&(n=r),a=4===o.type?kn(o,t):14===o.type?Mn(o,t):0,0===a)return a;a<n&&(n=a)}}return n}function Pn(e){const t=e.codegenNode;if(13===t.type)return t.props}function Dn(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Xn(e,{filename:s="",prefixIdentifiers:i=!1,hoistStatic:o=!1,hmr:r=!1,cacheHandlers:c=!1,nodeTransforms:l=[],directiveTransforms:h={},transformHoist:d=null,isBuiltInComponent:p=n,isCustomElement:u=n,expressionPlugins:_=[],scopeId:E=null,slotted:S=!0,ssr:g=!1,inSSR:T=!1,ssrCssVars:N="",bindingMetadata:I=t,inline:y=!1,isTS:O=!1,onError:b=Ze,onWarn:A=et,compatConfig:C}){const x=s.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={filename:s,selfName:x&&m(f(x[1])),prefixIdentifiers:i,hoistStatic:o,hmr:r,cacheHandlers:c,nodeTransforms:l,directiveTransforms:h,transformHoist:d,isBuiltInComponent:p,isCustomElement:u,expressionPlugins:_,scopeId:E,slotted:S,ssr:g,inSSR:T,ssrCssVars:N,bindingMetadata:I,inline:y,isTS:O,onError:b,onWarn:A,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{kFor:0,kSlot:0,kPre:0,kOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inKOnce:!1,helper(e){const t=R.helpers.get(e)||0;return R.helpers.set(e,t+1),e},removeHelper(e){const t=R.helpers.get(e);if(t){const n=t-1;n?R.helpers.set(e,n):R.helpers.delete(e)}},helperString:e=>`_${he[R.helper(e)]}`,replaceNode(e){R.parent.children[R.childIndex]=R.currentNode=e},removeNode(e){const t=e?R.parent.children.indexOf(e):R.currentNode?R.childIndex:-1;e&&e!==R.currentNode?R.childIndex>t&&(R.childIndex--,R.onNodeRemoved()):(R.currentNode=null,R.onNodeRemoved()),R.parent.children.splice(t,1)},onNodeRemoved:n,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){a(e)&&(e=Ie(e)),R.hoists.push(e);const t=Ie(`_hoisted_${R.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>xe(R.cached++,e,t)};return R.filters=new Set,R}function wn(e,t){const n=Xn(e,t);Un(e,n),t.hoistStatic&&Cn(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:s}=e;if(1===s.length){const n=s[0];if(xn(e,n)&&n.codegenNode){const s=n.codegenNode;13===s.type&&we(s,t),e.codegenNode=s}else e.codegenNode=n}else if(s.length>1){let s=64;e.codegenNode=Se(t,n(b),void 0,e.children,s+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...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,e.transformed=!0,e.filters=[...n.filters]}function Un(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let o=0;o<n.length;o++){const i=n[o](e,t);if(i&&(r(i)?s.push(...i):s.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(D);break;case 5:t.ssr||t.helper(q);break;case 9:for(let n=0;n<e.branches.length;n++)Un(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];a(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,Un(i,t))}}(e,t)}t.currentNode=e;let i=s.length;for(;i--;)s[i]()}function Kn(e,t){const n=a(e)?t=>t===e:t=>e.test(t);return(e,s)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(Pt))return;const o=[];for(let r=0;r<i.length;r++){const a=i[r];if(7===a.type&&n(a.name)){i.splice(r,1),r--;const n=t(e,a,s);n&&o.push(n)}}return o}}}const Fn="/*#__PURE__*/",Bn=e=>`${he[e]}: _${he[e]}`;function $n(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:s=!1,filename:i="template.kdu.html",scopeId:o=null,optimizeImports:r=!1,runtimeGlobalName:a="Kdu",runtimeModuleName:c="kdu",ssrRuntimeModuleName:l="kdu/server-renderer",ssr:h=!1,isTS:d=!1,inSSR:p=!1}){const u={mode:t,prefixIdentifiers:n,sourceMap:s,filename:i,scopeId:o,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:h,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${he[e]}`,push(e,t=-2,n){u.code+=e},indent(){f(++u.indentLevel)},deindent(e=!1){e?--u.indentLevel:f(--u.indentLevel)},newline(){f(u.indentLevel)}};function f(e){u.push("\n"+" ".repeat(e),0)}return u}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:i,prefixIdentifiers:o,indent:r,deindent:a,newline:c,ssr:l}=n,h=Array.from(e.helpers),d=h.length>0,p=!o&&"module"!==s;!function(e,t){const{push:n,newline:s,runtimeGlobalName:i}=t,o=i,r=Array.from(e.helpers);if(r.length>0&&(n(`const _Kdu = ${o}\n`,-1),e.hoists.length)){n(`const { ${[v,P,D,X,w].filter((e=>r.includes(e))).map(Bn).join(", ")} } = _Kdu\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),qn(o,t),s())}t.pure=!1})(e.hoists,t),s(),n("return ")}(e,n);if(i(`function ${l?"ssrRender":"render"}(${(l?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),r(),p&&(i("with (_ctx) {"),r(),d&&(i(`const { ${h.map(Bn).join(", ")} } = _Kdu\n`,-1),c())),e.components.length&&(Hn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Hn(e.directives,"directive",n),