15 lines
79 KiB
JavaScript
15 lines
79 KiB
JavaScript
|
/**
|
||
|
* @vue/compiler-dom v3.5.16
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/var VueCompilerDOM=function(e){"use strict";let t;function n(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return e=>e in t}let i={},r=()=>{},s=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),a=Object.assign,l=Array.isArray,c=e=>"string"==typeof e,h=e=>"symbol"==typeof e,d=e=>null!==e&&"object"==typeof e,p=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),u=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),f=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,_=f(e=>e.replace(E,(e,t)=>t?t.toUpperCase():"")),m=f(e=>e.charAt(0).toUpperCase()+e.slice(1)),S=f(e=>e?`on${m(e)}`:""),g=/;(?![^(]*\))/g,T=/:([^]+)/,N=/\/\*[^]*?\*\//g,I=n("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"),y=n("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"),O=n("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"),A=n("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),C=Symbol(""),b=Symbol(""),v=Symbol(""),R=Symbol(""),x=Symbol(""),L=Symbol(""),M=Symbol(""),D=Symbol(""),P=Symbol(""),V=Symbol(""),k=Symbol(""),X=Symbol(""),w=Symbol(""),U=Symbol(""),F=Symbol(""),B=Symbol(""),$=Symbol(""),H=Symbol(""),G=Symbol(""),q=Symbol(""),J=Symbol(""),j=Symbol(""),W=Symbol(""),K=Symbol(""),Y=Symbol(""),Q=Symbol(""),z=Symbol(""),Z=Symbol(""),ee=Symbol(""),et=Symbol(""),en=Symbol(""),ei=Symbol(""),er=Symbol(""),es=Symbol(""),eo=Symbol(""),ea=Symbol(""),el=Symbol(""),ec=Symbol(""),eh=Symbol(""),ed={[C]:"Fragment",[b]:"Teleport",[v]:"Suspense",[R]:"KeepAlive",[x]:"BaseTransition",[L]:"openBlock",[M]:"createBlock",[D]:"createElementBlock",[P]:"createVNode",[V]:"createElementVNode",[k]:"createCommentVNode",[X]:"createTextVNode",[w]:"createStaticVNode",[U]:"resolveComponent",[F]:"resolveDynamicComponent",[B]:"resolveDirective",[$]:"resolveFilter",[H]:"withDirectives",[G]:"renderList",[q]:"renderSlot",[J]:"createSlots",[j]:"toDisplayString",[W]:"mergeProps",[K]:"normalizeClass",[Y]:"normalizeStyle",[Q]:"normalizeProps",[z]:"guardReactiveProps",[Z]:"toHandlers",[ee]:"camelize",[et]:"capitalize",[en]:"toHandlerKey",[ei]:"setBlockTracking",[er]:"pushScopeId",[es]:"popScopeId",[eo]:"withCtx",[ea]:"unref",[el]:"isRef",[ec]:"withMemo",[eh]:"isMemoSame"};function ep(e){Object.getOwnPropertySymbols(e).forEach(t=>{ed[t]=e[t]})}let eu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ef(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,
|
||
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* 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 eG(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(let n of e.properties)"RestElement"===n.type?eG(n.argument,t):eG(n.value,t);break;case"ArrayPattern":e.elements.forEach(e=>{e&&eG(e,t)});break;case"RestElement":eG(e.argument,t);break;case"AssignmentPattern":eG(e.left,t)}return t}let eq=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,eJ=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"],ej=e=>4===e.type&&e.isStatic;function eW(e){switch(e){case"Teleport":case"teleport":return b;case"Suspense":case"suspense":return v;case"KeepAlive":case"keep-alive":return R;case"BaseTransition":case"base-transition":return x}}let eK=/^\d|[^\$\w\xA0-\uFFFF]/,eY=e=>!eK.test(e),eQ=/[A-Za-z_$\xA0-\uFFFF]/,ez=/[\.\?\w$\xA0-\uFFFF]/,eZ=/\s+[.[]\s*|\s*[.[]\s+/g,e1=e=>4===e.type?e.content:e.loc.source,e0=e=>{let t=e1(e).trim().replace(eZ,e=>e.trim()),n=0,i=[],r=0,s=0,o=null;for(let e=0;e<t.length;e++){let a=t.charAt(e);switch(n){case 0:if("["===a)i.push(n),n=1,r++;else if("("===a)i.push(n),n=2,s++;else if(!(0===e?eQ:ez).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(i.push(n),n=3,o=a):"["===a?r++:"]"!==a||--r||(n=i.pop());break;case 2:if("'"===a||'"'===a||"`"===a)i.push(n),n=3,o=a;else if("("===a)s++;else if(")"===a){if(e===t.length-1)return!1;--s||(n=i.pop())}break;case 3:a===o&&(n=i.pop(),o=null)}}return!r&&!s},e2=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,e3=e=>e2.test(e1(e));function e4(e,t,n=t.length){let i=0,r=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(i++,r=e);return e.offset+=n,e.line+=i,e.column=-1===r?e.column+n:n-r,e}function e6(e,t,n=!1){for(let i=0;i<e.props.length;i++){let r=e.props[i];if(7===r.type&&(n||r.exp)&&(c(t)?r.name===t:t.test(r.name)))return r}}function e5(e,t,n=!1,i=!1){for(let r=0;r<e.props.length;r++){let s=e.props[r];if(6===s.type){if(n)continue;if(s.name===t&&(s.value||i))return s}else if("bind"===s.name&&(s.exp||i)&&e9(s.arg,t))return s}}function e9(e,t){return!!(e&&ej(e)&&e.content===t)}function e7(e){return e.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))}function e8(e){return 5===e.type||2===e.type}function te(e){return 7===e.type&&"slot"===e.name}function tt(e){return 1===e.type&&3===e.tagType}function tn(e){return 1===e.type&&2===e.tagType}let ti=new Set([Q,z]);function tr(e,t,n){let i,r,s=13===e.type?e.props:e.arguments[2],o=[];if(s&&!c(s)&&14===s.type){let e=function e(t,n=[]){if(t&&!c(t)&&14===t.type){let i=t.callee;if(!c(i)&&ti.has(i))return e(t.arguments[0],n.concat(t))}return[t,n]}(s);s=e[0],r=(o=e[1])[o.length-1]}if(null==s||c(s))i=em([t]);else if(14===s.type){let e=s.arguments[0];c(e)||15!==e.type?s.callee===Z?i=eN(n.helper(W),[em([t]),s]):s.arguments.unshift(em([t])):ts(t,e)||e.properties.unshift(t),i||(i=s)}else 15===s.type?(ts(t,s)||s.properties.unshift(t),i=s):(i=eN(n.helper(W),[em([t]),s]),r&&r.callee===z&&(r=o[o.length-2]));13===e.type?r?r.arguments[0]=i:e.props=i:r?r.arguments[0]=i:e.arguments[2]=i}function ts(e,t){let n=!1;if(4===e.key.type){let i=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===i)}return n}function to(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).to
|
||
|
`);else if(function(e){for(let t=0;t<e.length;t++)if(!eM(e.charCodeAt(t)))return!1;return!0}(r.content)){let s=e[t-1]&&e[t-1].type,o=e[t+1]&&e[t+1].type;!s||!o||n&&(3===s&&(3===o||1===o)||1===s&&(3===o||1===o&&function(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}(r.content)))?(i=!0,e[t]=null):r.content=" "}else n&&(r.content=tP(r.content))}return i?e.filter(Boolean):e}function tP(e){let t="",n=!1;for(let i=0;i<e.length;i++)eM(e.charCodeAt(i))?n||(t+=" ",n=!0):(t+=e[i],n=!1);return t}function tV(e){(tN[0]||td).children.push(e)}function tk(e,t){return{start:tI.getPos(e),end:null==t?t:tI.getPos(t),source:null==t?t:tA(e,t)}}function tX(e,t){e.end=tI.getPos(t),e.source=tA(e.start.offset,t)}function tw(e,t=!1,n,i=0,r=0){return eg(e,t,n,i)}function tU(e,t,n){th.onError(e$(e,tk(t,t)))}function tF(e,t){if(tI.reset(),tu=null,tf=null,tE="",t_=-1,tm=-1,tN.length=0,tp=e,th=a({},tc),t){let e;for(e in t)null!=t[e]&&(th[e]=t[e])}tI.mode="html"===th.parseMode?1:2*("sfc"===th.parseMode),tI.inXML=1===th.ns||2===th.ns;let n=t&&t.delimiters;n&&(tI.delimiterOpen=eP(n[0]),tI.delimiterClose=eP(n[1]));let i=td=ef([],e);return tI.parse(tp),i.loc=tk(0,e.length),i.children=tD(i.children),td=null,i}function tB(e,t){let{children:n}=e;return 1===n.length&&1===t.type&&!tn(t)}function t$(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;let i=n.get(e);if(void 0!==i)return i;let r=e.codegenNode;if(13!==r.type||r.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0!==r.patchFlag)return n.set(e,0),0;{let i=3,s=tG(e,t);if(0===s)return n.set(e,0),0;s<i&&(i=s);for(let r=0;r<e.children.length;r++){let s=t$(e.children[r],t);if(0===s)return n.set(e,0),0;s<i&&(i=s)}if(i>1)for(let r=0;r<e.props.length;r++){let s=e.props[r];if(7===s.type&&"bind"===s.name&&s.exp){let r=t$(s.exp,t);if(0===r)return n.set(e,0),0;r<i&&(i=r)}}if(r.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(L),t.removeHelper(eb(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(eC(t.inSSR,r.isComponent))}return n.set(e,i),i}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return t$(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){let i=e.children[n];if(c(i)||h(i))continue;let r=t$(i,t);if(0===r)return 0;r<s&&(s=r)}return s;case 20:return 2}}let tH=new Set([K,Y,Q,z]);function tG(e,t){let n=3,i=tq(e);if(i&&15===i.type){let{properties:e}=i;for(let i=0;i<e.length;i++){let r,{key:s,value:o}=e[i],a=t$(s,t);if(0===a)return a;if(a<n&&(n=a),0===(r=4===o.type?t$(o,t):14===o.type?function e(t,n){if(14===t.type&&!c(t.callee)&&tH.has(t.callee)){let i=t.arguments[0];if(4===i.type)return t$(i,n);if(14===i.type)return e(i,n)}return 0}(o,t):0))return r;r<n&&(n=r)}}return n}function tq(e){let t=e.codegenNode;if(13===t.type)return t.props}function tJ(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:o=!1,cacheHandlers:a=!1,nodeTransforms:l=[],directiveTransforms:h={},transformHoist:d=null,isBuiltInComponent:p=r,isCustomElement:u=r,expressionPlugins:f=[],scopeId:E=null,slotted:S=!0,ssr:g=!1,inSSR:T=!1,ssrCssVars:N="",bindingMetadata:I=i,inline:y=!1,isTS:O=!1,onError:A=eF,onWarn:C=eB,compatConfig:b}){let v=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={filename:t,selfName:v&&m(_(v[1])),prefixIdentifiers:n,hoistStatic:s,hmr:o,cacheHandlers:a,nodeTransforms:l,directiveTransforms:h,transformHoist:d,isBuiltInComponent:p,isCustomElement:u,expressionPlugins:f,scopeId:E,slotted:S,ssr:g,inSSR:T,ssrCssVars:N,bindingMetadata:I,inline:y,isTS:O,onError:A,onWarn:C,compatConfig:b,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=R.helpers.get(e)||0;return R.helpers.set(e,t+1),e},removeHelper(e){let t=R.helpers.get(e);if(t){let n=t-1;n?R.helpers.set(e,n):R.helpers.delete(e)}},help
|
||
|
`+" ".repeat(e),0)}return u}(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:i,push:r,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:h}=n,d=Array.from(e.helpers),p=d.length>0,u=!s&&"module"!==i;var f=e,E=n;let{ssr:_,prefixIdentifiers:m,push:S,newline:g,runtimeModuleName:T,runtimeGlobalName:N,ssrRuntimeModuleName:I}=E,y=Array.from(f.helpers);if(y.length>0&&(S(`const _Vue = ${N}
|
||
|
`,-1),f.hoists.length)){let e=[P,V,k,X,w].filter(e=>y.includes(e)).map(tQ).join(", ");S(`const { ${e} } = _Vue
|
||
|
`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:i}=t;i();for(let r=0;r<e.length;r++){let s=e[r];s&&(n(`const _hoisted_${r+1} = `),t2(s,t),i())}t.pure=!1})(f.hoists,E),g(),S("return ");let O=(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${h?"ssrRender":"render"}(${O}) {`),o(),u&&(r("with (_ctx) {"),o(),p&&(r(`const { ${d.map(tQ).join(", ")} } = _Vue
|
||
|
`,-1),l())),e.components.length&&(tZ(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(tZ(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),tZ(e.filters,"filter",n),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(`
|
||
|
`,0),l()),h||r("return "),e.codegenNode?t2(e.codegenNode,n):r("null"),u&&(a(),r("}")),a(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function tZ(e,t,{helper:n,push:i,newline:r,isTS:s}){let o=n("filter"===t?$:"component"===t?U:B);for(let n=0;n<e.length;n++){let a=e[n],l=a.endsWith("__self");l&&(a=a.slice(0,-6)),i(`const ${to(a,t)} = ${o}(${JSON.stringify(a)}${l?", true":""})${s?"!":""}`),n<e.length-1&&r()}}function t1(e,t){let n=e.length>3;t.push("["),n&&t.indent(),t0(e,t,n),n&&t.deindent(),t.push("]")}function t0(e,t,n=!1,i=!0){let{push:r,newline:s}=t;for(let o=0;o<e.length;o++){let a=e[o];c(a)?r(a,-3):l(a)?t1(a,t):t2(a,t),o<e.length-1&&(n?(i&&r(","),s()):i&&r(", "))}}function t2(e,t){if(c(e))return void t.push(e,-3);if(h(e))return void t.push(t.helper(e));switch(e.type){case 1:case 9:case 11:case 12:t2(e.codegenNode,t);break;case 2:n=e,t.push(JSON.stringify(n.content),-3,n);break;case 4:t3(e,t);break;case 5:var n,i,r,s=e,o=t;let{push:a,helper:d,pure:p}=o;p&&a(tY),a(`${d(j)}(`),t2(s.content,o),a(")");break;case 8:t4(e,t);break;case 3:var u=e,f=t;let{push:E,helper:_,pure:m}=f;m&&E(tY),E(`${_(k)}(${JSON.stringify(u.content)})`,-3,u);break;case 13:let S;var g=e,T=t;let{push:N,helper:I,pure:y}=T,{tag:O,props:A,children:C,patchFlag:b,dynamicProps:v,directives:R,isBlock:x,disableTracking:M,isComponent:D}=g;b&&(S=String(b)),R&&N(I(H)+"("),x&&N(`(${I(L)}(${M?"true":""}), `),y&&N(tY),N(I(x?eb(T.inSSR,D):eC(T.inSSR,D))+"(",-2,g),t0(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([O,A,C,S,v]),T),N(")"),x&&N(")"),R&&(N(", "),t2(R,T),N(")"));break;case 14:var P=e,V=t;let{push:X,helper:w,pure:U}=V,F=c(P.callee)?P.callee:w(P.callee);U&&X(tY),X(F+"(",-2,P),t0(P.arguments,V),X(")");break;case 15:!function(e,t){let{push:n,indent:i,deindent:r,newline:s}=t,{properties:o}=e;if(!o.length)return n("{}",-2,e);let a=o.length>1;n(a?"{":"{ "),a&&i();for(let e=0;e<o.length;e++){let{key:i,value:r}=o[e],{push:a}=t;8===i.type?(a("["),t4(i,t),a("]")):i.isStatic?a(eY(i.content)?i.content:JSON.stringify(i.content),-2,i):a(`[${i.content}]`,-3,i),n(": "),t2(r,t),e<o.length-1&&(n(","),s())}a&&r(),n(a?"}":" }")}(e,t);break;case 17:i=e,r=t,t1(i.elements,r);break;case 18:var B=e,$=t;let{push:G,indent:q,deindent:J}=$,{params:W,returns:K,body:Y,newline:Q,isSlot:z}=B;z&&G(`_${ed[eo]}(`),G("(",-2,B),l(W)?t0(W,$):W&&t2(W,$),G(") => "),(Q||Y)&&(G("{"),q()),K?(Q&&G("return "),l(K)?t1(K,$):t2(K,$)):Y&&t2(Y,$),(Q||Y)&&(J(),G("}")),z&&(B.isNonScopedSlot&&G(", undefined, true"),G(")"));break;case 19:var Z=e,ee=t;let{test:et,consequent:en,alternate:er,newline:es}=Z,{push:ea,indent:el,deindent:ec,newline:eh}=ee;if(4===et.type){let e=!eY(et.content);e&&ea("("),t3(et,ee),e&&ea(")")}else ea("("),t2(et,ee),ea(")");es&&el(),ee.indentLevel++,es||ea(" "),ea("? "),t2(en,ee),ee.indentLevel--,es&&eh(),es||ea(" "),ea(": ");let ep=19===er.type;!ep&&ee.indentLevel++,t2(er,ee),!ep&&ee.indentLevel--,es&&ec(!0);break;case 20:var eu=e,ef=t;let{push:eE,helper:e_,indent:em,deindent:eS,newline:eg}=ef,{needPauseTracking:eT,needArraySpread:eN}=eu;eN&&eE("[...("),eE(`_cache[${eu.index}] || (`),eT&&(em(),eE(`${e_(ei)}(-1`),eu.inVOnce&&eE(", true"),eE("),"),eg(),eE("(")),eE(`_cache[${eu.index}] = `),t2(eu.value,ef),eT&&(eE(`).cacheIndex = ${eu.index},`),eg(),eE(`${e_(ei)}(1),`),eg(),eE(`_cache[${eu.index}]`),eS()),eE(")"),eN&&eE(")]");break;case 21:t0(e.body,t,!0,!1)}}function t3(e,t){let{content:n,isStatic:i}=e;t.push(i?JSON.stringify(n):n,-3,e)}function t4(e,t){for(let n=0;n<e.children.length;n++){let i=e.children[n];c(i)?t.push(i,-3):t2(i,t)}}function t6(e,t,n=!1,i=!1,r=Object.create(t.identifiers)){return e}let t5=tK(/^(if|else|else-if)$/,(e,t,n)=>t9(e,t,n,(e,t,i)=>{let r=n.parent.children,s=r.indexOf(e),o=0;for(;s-- >=0;){let e=r[s];e&&9===e.type&&(o+=e.branches.length)}return()=>{i?e.codegenNode=t8(t,o,n):function(e){for(;;)if(19===e.type)if(19!==e.alternate.type)return e;else e=e.alternate;else 20===e.type&&(e=e.value)}(e.codegenNode).alternate=t8(t,o+e.branches.length-1,n)}}));function t9(e,t,n,i){if("else"!==t.name&&(
|
||
|
`)},e.getBaseTransformPreset=nP,e.getConstantType=t$,e.getMemoedVNodeCall=ta,e.getVNodeBlockHelper=eb,e.getVNodeHelper=eC,e.hasDynamicKeyVBind=e7,e.hasScopeRef=function e(t,n){if(!t||0===Object.keys(n).length)return!1;switch(t.type){case 1:for(let i=0;i<t.props.length;i++){let r=t.props[i];if(7===r.type&&(e(r.arg,n)||e(r.exp,n)))return!0}return t.children.some(t=>e(t,n));case 11:if(e(t.source,n))return!0;return t.children.some(t=>e(t,n));case 9:return t.branches.some(t=>e(t,n));case 10:if(e(t.condition,n))return!0;return t.children.some(t=>e(t,n));case 4:return!t.isStatic&&eY(t.content)&&!!n[t.content];case 8:return t.children.some(t=>d(t)&&e(t,n));case 5:case 12:return e(t.content,n);default:return!1}},e.helperNameMap=ed,e.injectProp=tr,e.isCoreComponent=eW,e.isFnExpression=e3,e.isFnExpressionBrowser=e3,e.isFnExpressionNode=r,e.isFunctionType=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),e.isInDestructureAssignment=function(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){let n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1},e.isInNewExpression=function(e){let t=e.length;for(;t--;){let n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1},e.isMemberExpression=e0,e.isMemberExpressionBrowser=e0,e.isMemberExpressionNode=r,e.isReferencedIdentifier=function(e,t,n){return!1},e.isSimpleIdentifier=eY,e.isSlotOutlet=tn,e.isStaticArgOf=e9,e.isStaticExp=ej,e.isStaticProperty=eq,e.isStaticPropertyKey=(e,t)=>eq(t)&&t.key===e,e.isTemplateNode=tt,e.isText=e8,e.isVSlot=te,e.locStub=eu,e.noopDirectiveTransform=nk,e.parse=function(e,t={}){return tF(e,a({},nj,t))},e.parserOptions=nj,e.processExpression=t6,e.processFor=ns,e.processIf=t9,e.processSlotOutlet=nN,e.registerRuntimeHelpers=ep,e.resolveComponentType=nE,e.stringifyExpression=function e(t){return c(t)?t:4===t.type?t.content:t.children.map(e).join("")},e.toValidAssetId=to,e.trackSlotScopes=nc,e.trackVForSlotScopes=(e,t)=>{let n;if(tt(e)&&e.props.some(te)&&(n=e6(e,"for"))){let e=n.forParseResult;if(e){no(e);let{value:n,key:i,index:r}=e,{addIdentifiers:s,removeIdentifiers:o}=t;return n&&s(n),i&&s(i),r&&s(r),()=>{n&&o(n),i&&o(i),r&&o(r)}}}},e.transform=tj,e.transformBind=nt,e.transformElement=nf,e.transformExpression=(e,t)=>{if(5===e.type)e.content=t6(e.content,t);else if(1===e.type){let n=e6(e,"memo");for(let i=0;i<e.props.length;i++){let r=e.props[i];if(7===r.type&&"for"!==r.name){let e=r.exp,i=r.arg;!e||4!==e.type||"on"===r.name&&i||n&&i&&4===i.type&&"key"===i.content||(r.exp=t6(e,t,"slot"===r.name)),i&&4===i.type&&!i.isStatic&&(r.arg=t6(i,t))}}}},e.transformModel=nC,e.transformOn=nI,e.transformStyle=nW,e.traverseNode=tW,e.unwrapTSNode=function e(t){return eJ.includes(t.type)?e(t.expression):t},e.walkBlockDeclarations=function(e,t){for(let i of e.body)if("VariableDeclaration"===i.type){if(i.declare)continue;for(let e of i.declarations)for(let n of eG(e.id))t(n)}else if("FunctionDeclaration"===i.type||"ClassDeclaration"===i.type){if(i.declare||!i.id)continue;t(i.id)}else{var n;("ForOfStatement"===(n=i).type||"ForInStatement"===n.type||"ForStatement"===n.type)&&function(e,t,n){let i="ForStatement"===e.type?e.init:e.left;if(i&&"VariableDeclaration"===i.type&&"var"===i.kind&&t)for(let e of i.declarations)for(let t of eG(e.id))n(t)}(i,!0,t)}},e.walkFunctionParams=function(e,t){for(let n of e.params)for(let e of eG(n))t(e)},e.walkIdentifiers=function(e,t,n=!1,i=[],r=Object.create(null)){},e.warnDeprecation=function(e,t,n,...i){if("suppress-warning"===eX(e,t))return;let{message:r,link:s}=ek[e],o=SyntaxError(`(deprecation ${e}) ${"function"==typeof r?r(...i):r}${s?`
|
||
|
Details: ${s}`:""}`);o.code=e,n&&(o.loc=n),t.onWarn(o)},e}({});
|