pome-ui 2.0.0-preview21 → 2.0.0-preview22
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/package.json +1 -1
- package/pome-ui.dev.js +1 -1
- package/pome-ui.dev.min.js +1 -1
- package/pome-ui.js +1 -1
- package/pome-ui.min.js +1 -1
package/package.json
CHANGED
package/pome-ui.dev.js
CHANGED
|
@@ -16356,7 +16356,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16356
16356
|
}
|
|
16357
16357
|
|
|
16358
16358
|
const ignoreSideEffectTags = (node, context) => {
|
|
16359
|
-
if (node.type === 1 && node.tagType === 0 && (node.tag === "
|
|
16359
|
+
if (node.type === 1 && node.tagType === 0 && (node.tag === "script___" || node.tag === "style___")) {
|
|
16360
16360
|
context.onError(
|
|
16361
16361
|
createDOMCompilerError(
|
|
16362
16362
|
63,
|
package/pome-ui.dev.min.js
CHANGED
|
@@ -25,5 +25,5 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
25
25
|
`,-1);c()}}if(t.components.length){Zd(t.components,"component",n);if(t.directives.length||t.temps>0){c()}}if(t.directives.length){Zd(t.directives,"directive",n);if(t.temps>0){c()}}if(t.temps>0){s(`let `);for(let e=0;e<t.temps;e++){s(`${e>0?`, `:``}_temp${e}`)}}if(t.components.length||t.directives.length||t.temps){s(`
|
|
26
26
|
`,0);c()}if(!u){s(`return `)}if(t.codegenNode){sh(t.codegenNode,n)}else{s(`null`)}if(d){l();s(`}`)}l();s(`}`);return{ast:t,code:n.code,preamble:h?m.code:``,map:n.map?n.map.toJSON():void 0}}function Qd(e,t){const{ssr:n,prefixIdentifiers:o,push:s,newline:i,runtimeModuleName:r,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t;const a=l;const u=Array.from(e.helpers);if(u.length>0){{s(`const _Vue = ${a}
|
|
27
27
|
`,-1);if(e.hoists.length){const f=[$f,Ef,Nf,Of,Pf].filter(e=>u.includes(e)).map(Jd).join(", ");s(`const { ${f} } = _Vue
|
|
28
|
-
`,-1)}}}eh(e.hoists,t);i();s(`return `)}function Zd(n,o,{helper:e,push:s,newline:i,isTS:r}){const l=e(o==="component"?If:Mf);for(let t=0;t<n.length;t++){let e=n[t];const c=e.endsWith("__self");if(c){e=e.slice(0,-6)}s(`const ${Qp(e,o)} = ${l}(${JSON.stringify(e)}${c?`, true`:``})${r?`!`:``}`);if(t<n.length-1){i()}}}function eh(t,n){if(!t.length){return}n.pure=true;const{push:o,newline:s,helper:e,scopeId:i,mode:r}=n;s();for(let e=0;e<t.length;e++){const l=t[e];if(l){o(`const _hoisted_${e+1} = ${``}`);sh(l,n);s()}}n.pure=false}function th(e){return k(e)||e.type===4||e.type===2||e.type===5||e.type===8}function nh(e,t){const n=e.length>3||e.some(e=>D(e)||!th(e));t.push(`[`);n&&t.indent();oh(e,t,n);n&&t.deindent();t.push(`]`)}function oh(t,n,o=false,s=true){const{push:i,newline:r}=n;for(let e=0;e<t.length;e++){const l=t[e];if(k(l)){i(l,-3)}else if(D(l)){nh(l,n)}else{sh(l,n)}if(e<t.length-1){if(o){s&&i(",");r()}else{s&&i(", ")}}}}function sh(e,t){if(k(e)){t.push(e,-3);return}if(J(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Up(e.codegenNode!=null,`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`);sh(e.codegenNode,t);break;case 2:ih(e,t);break;case 4:rh(e,t);break;case 5:lh(e,t);break;case 12:sh(e.codegenNode,t);break;case 8:ch(e,t);break;case 3:uh(e,t);break;case 13:fh(e,t);break;case 14:dh(e,t);break;case 15:hh(e,t);break;case 17:mh(e,t);break;case 18:gh(e,t);break;case 19:vh(e,t);break;case 20:yh(e,t);break;case 21:oh(e.body,t,true,false);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:{Up(false,`unhandled codegen node type: ${e.type}`);const n=e;return n}}}function ih(e,t){t.push(JSON.stringify(e.content),-3,e)}function rh(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function lh(e,t){const{push:n,helper:o,pure:s}=t;if(s)n(Gd);n(`${o(Df)}(`);sh(e.content,t);n(`)`)}function ch(t,n){for(let e=0;e<t.children.length;e++){const o=t.children[e];if(k(o)){n.push(o,-3)}else{sh(o,n)}}}function ah(e,t){const{push:n}=t;if(e.type===8){n(`[`);ch(e,t);n(`]`)}else if(e.isStatic){const o=Ip(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else{n(`[${e.content}]`,-3,e)}}function uh(e,t){const{push:n,helper:o,pure:s}=t;if(s){n(Gd)}n(`${o(Nf)}(${JSON.stringify(e.content)})`,-3,e)}function fh(e,t){const{push:n,helper:o,pure:s}=t;const{tag:i,props:r,children:l,patchFlag:c,dynamicProps:a,directives:u,isBlock:f,disableTracking:p,isComponent:d}=e;if(u){n(o(Lf)+`(`)}if(f){n(`(${o(kf)}(${p?`true`:``}), `)}if(s){n(Gd)}const h=f?yp(t.inSSR,d):vp(t.inSSR,d);n(o(h)+`(`,-2,e);oh(ph([i,r,l,c,a]),t);n(`)`);if(f){n(`)`)}if(u){n(`, `);sh(u,t);n(`)`)}}function ph(e){let t=e.length;while(t--){if(e[t]!=null)break}return e.slice(0,t+1).map(e=>e||`null`)}function dh(e,t){const{push:n,helper:o,pure:s}=t;const i=k(e.callee)?e.callee:o(e.callee);if(s){n(Gd)}n(i+`(`,-2,e);oh(e.arguments,t);n(`)`)}function hh(e,t){const{push:n,indent:o,deindent:s,newline:i}=t;const{properties:r}=e;if(!r.length){n(`{}`,-2,e);return}const l=r.length>1||r.some(e=>e.value.type!==4);n(l?`{`:`{ `);l&&o();for(let e=0;e<r.length;e++){const{key:c,value:a}=r[e];ah(c,t);n(`: `);sh(a,t);if(e<r.length-1){n(`,`);i()}}l&&s();n(l?`}`:` }`)}function mh(e,t){nh(e.elements,t)}function gh(e,t){const{push:n,indent:o,deindent:s}=t;const{params:i,returns:r,body:l,newline:c,isSlot:a}=e;if(a){n(`_${ip[ep]}(`)}n(`(`,-2,e);if(D(i)){oh(i,t)}else if(i){sh(i,t)}n(`) => `);if(c||l){n(`{`);o()}if(r){if(c){n(`return `)}if(D(r)){nh(r,t)}else{sh(r,t)}}else if(l){sh(l,t)}if(c||l){s();n(`}`)}if(a){n(`)`)}}function vh(e,t){const{test:n,consequent:o,alternate:s,newline:i}=e;const{push:r,indent:l,deindent:c,newline:a}=t;if(n.type===4){const f=!Ip(n.content);f&&r(`(`);rh(n,t);f&&r(`)`)}else{r(`(`);sh(n,t);r(`)`)}i&&l();t.indentLevel++;i||r(` `);r(`? `);sh(o,t);t.indentLevel--;i&&a();i||r(` `);r(`: `);const u=s.type===19;if(!u){t.indentLevel++}sh(s,t);if(!u){t.indentLevel--}i&&c(true)}function yh(e,t){const{push:n,helper:o,indent:s,deindent:i,newline:r}=t;n(`_cache[${e.index}] || (`);if(e.isVNode){s();n(`${o(Yf)}(-1),`);r()}n(`_cache[${e.index}] = `);sh(e.value,t);if(e.isVNode){n(`,`);r();n(`${o(Yf)}(1),`);r();n(`_cache[${e.index}]`);i()}n(`)`)}const bh=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const _h=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function xh(n,o,e=false,t=false){const s=n.content;if(!s.trim()){return}try{new Function(t?` ${s} `:`return ${e?`(${s}) => {}`:`(${s})`}`)}catch(e){let t=e.message;const i=s.replace(_h,"").match(bh);if(i){t=`avoid using JavaScript keyword as property name: "${i[0]}"`}o.onError(K(45,n.loc,void 0,t))}}const wh=(t,n)=>{if(t.type===5){t.content=Sh(t.content,n)}else if(t.type===1){for(let e=0;e<t.props.length;e++){const o=t.props[e];if(o.type===7&&o.name!=="for"){const s=o.exp;const i=o.arg;if(s&&s.type===4&&!(o.name==="on"&&i)){o.exp=Sh(s,n,o.name==="slot")}if(i&&i.type===4&&!i.isStatic){o.arg=Sh(i,n)}}}}};function Sh(e,t,n=false,o=false,s=Object.create(t.identifiers)){{{xh(e,t,n,o)}return e}}const Ch=Kd(/^(if|else|else-if)$/,(e,t,l)=>{return kh(e,t,l,(t,n,o)=>{const e=l.parent.children;let s=e.indexOf(t);let i=0;while(s-- >=0){const r=e[s];if(r&&r.type===9){i+=r.branches.length}}return()=>{if(o){t.codegenNode=Ah(n,i,l)}else{const e=Nh(t.codegenNode);e.alternate=Ah(n,i+t.branches.length-1,l)}}})});function kh(t,n,o,s){if(n.name!=="else"&&(!n.exp||!n.exp.content.trim())){const e=n.exp?n.exp.loc:t.loc;o.onError(K(28,n.loc));n.exp=z(`true`,false,e)}if(n.exp){xh(n.exp,o)}if(n.name==="if"){const i=Th(t,n);const r={type:9,loc:t.loc,branches:[i]};o.replaceNode(r);if(s){return s(r,i,true)}}else{const l=o.parent.children;const c=[];let e=l.indexOf(t);while(e-- >=-1){const a=l[e];if(a&&a.type===3){o.removeNode(a);c.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){o.removeNode(a);continue}if(a&&a.type===9){if(n.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0){o.onError(K(30,t.loc))}o.removeNode();const i=Th(t,n);if(c.length&&!(o.parent&&o.parent.type===1&&(o.parent.tag==="transition"||o.parent.tag==="Transition"))){i.children=[...c,...i.children]}{const f=i.userKey;if(f){a.branches.forEach(({userKey:e})=>{if(Eh(e,f)){o.onError(K(29,i.userKey.loc))}})}}a.branches.push(i);const u=s&&s(a,i,false);Wd(i,o);if(u)u();o.currentNode=null}else{o.onError(K(30,t.loc))}break}}}function Th(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Vp(e,"for")?e.children:[e],userKey:Dp(e,`key`),isTemplateIf:n}}function Ah(e,t,n){if(e.condition){return hp(e.condition,$h(e,t,n),W(n.helper(Nf),['"v-if"',"true"]))}else{return $h(e,t,n)}}function $h(n,e,o){const{helper:s}=o;const i=q(`key`,z(`${e}`,false,lp,2));const{children:r}=n;const t=r[0];const l=r.length!==1||t.type!==1;if(l){if(r.length===1&&t.type===11){const c=t.codegenNode;Xp(c,i,o);return c}else{let e=64;let t=de[64];if(!n.isTemplateIf&&r.filter(e=>e.type!==3).length===1){e|=2048;t+=`, ${de[2048]}`}return ap(o,s(_f),fp([i]),r,e+` /* ${t} */`,void 0,void 0,true,false,false,n.loc)}}else{const a=t.codegenNode;const c=Zp(a);if(c.type===13){bp(c,o)}Xp(c,i,o);return a}}function Eh(e,t){if(!e||e.type!==t.type){return false}if(e.type===6){if(e.value.content!==t.value.content){return false}}else{const n=e.exp;const o=t.exp;if(n.type!==o.type){return false}if(n.type!==4||n.isStatic!==o.isStatic||n.content!==o.content){return false}}return true}function Nh(e){while(true){if(e.type===19){if(e.alternate.type===19){e=e.alternate}else{return e}}else if(e.type===20){e=e.value}}}const Oh=Kd("for",(p,e,d)=>{const{helper:h,removeHelper:m}=d;return Ph(p,e,d,i=>{const r=W(h(jf),[i.source]);const l=Wp(p);const c=Vp(p,"memo");const e=Dp(p,`key`);const a=e&&(e.type===6?z(e.value.content,true):e.exp);const u=e?q(`key`,a):null;const f=i.source.type===4&&i.source.constType>0;const t=f?64:e?128:256;i.codegenNode=ap(d,h(_f),void 0,r,t+` /* ${de[t]} */`,void 0,void 0,true,!f,false,p.loc);return()=>{let e;const{children:t}=i;if(l){p.children.some(e=>{if(e.type===1){const t=Dp(e,"key");if(t){d.onError(K(33,t.loc));return true}}})}const n=t.length!==1||t[0].type!==1;const o=Kp(p)?p:l&&p.children.length===1&&Kp(p.children[0])?p.children[0]:null;if(o){e=o.codegenNode;if(l&&u){Xp(e,u,d)}}else if(n){e=ap(d,h(_f),u?fp([u]):void 0,p.children,64+` /* ${de[64]} */`,void 0,void 0,true,void 0,false)}else{e=t[0].codegenNode;if(l&&u){Xp(e,u,d)}if(e.isBlock!==!f){if(e.isBlock){m(kf);m(yp(d.inSSR,e.isComponent))}else{m(vp(d.inSSR,e.isComponent))}}e.isBlock=!f;if(e.isBlock){h(kf);h(yp(d.inSSR,e.isComponent))}else{h(vp(d.inSSR,e.isComponent))}}if(c){const s=dp(Rh(i.parseResult,[z(`_cached`)]));s.body=gp([pp([`const _memo = (`,c.exp,`)`]),pp([`if (_cached`,...a?[` && _cached.key === `,a]:[],` && ${d.helperString(sp)}(_cached, _memo)) return _cached`]),pp([`const _item = `,e]),z(`_item.memo = _memo`),z(`return _item`)]);r.arguments.push(s,z(`_cache`),z(String(d.cached++)))}else{r.arguments.push(dp(Rh(i.parseResult),e,true))}}})});function Ph(e,t,n,o){if(!t.exp){n.onError(K(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(K(32,t.loc));return}Ih(s,n);const{addIdentifiers:i,removeIdentifiers:r,scopes:l}=n;const{source:c,value:a,key:u,index:f}=s;const p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:s,children:Wp(e)?e.children:[e]};n.replaceNode(p);l.vFor++;const d=o&&o(p);return()=>{l.vFor--;if(d)d()}}function Ih(e,t){if(e.finalized)return;{xh(e.source,t);if(e.key){xh(e.key,t,true)}if(e.index){xh(e.index,t,true)}if(e.value){xh(e.value,t,true)}}e.finalized=true}function Rh({value:e,key:t,index:n},o=[]){return Mh([e,t,n,...o])}function Mh(e){let t=e.length;while(t--){if(e[t])break}return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),false))}const Fh=z(`undefined`,false);const Lh=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Vp(e,"slot");if(n){n.exp;t.scopes.vSlot++;return()=>{t.scopes.vSlot--}}}};const jh=(e,t,n,o)=>dp(e,n,false,true,n.length?n[0].loc:o);function Uh(e,i,r=jh){i.helper(ep);const{children:l,loc:o}=e;const c=[];const a=[];let u=i.scopes.vSlot>0||i.scopes.vFor>0;const f=Vp(e,"slot",true);if(f){const{arg:s,exp:v}=f;if(s&&!Np(s)){u=true}c.push(q(s||z("default",true),r(v,void 0,l,o)))}let p=false;let d=false;const h=[];const m=new Set;let g=0;for(let s=0;s<l.length;s++){const y=l[s];let e;if(!Wp(y)||!(e=Vp(y,"slot",true))){if(y.type!==3){h.push(y)}continue}if(f){i.onError(K(37,e.loc));break}p=true;const{children:b,loc:_}=y;const{arg:x=z(`default`,true),exp:w,loc:S}=e;let t;if(Np(x)){t=x?x.content:`default`}else{u=true}const C=Vp(y,"for");const k=r(w,C,b,_);let n;let o;if(n=Vp(y,"if")){u=true;a.push(hp(n.exp,Vh(x,k,g++),Fh))}else if(o=Vp(y,/^else(-if)?$/,true)){let e=s;let t;while(e--){t=l[e];if(t.type!==3){break}}if(t&&Wp(t)&&Vp(t,"if")){l.splice(s,1);s--;let e=a[a.length-1];while(e.alternate.type===19){e=e.alternate}e.alternate=o.exp?hp(o.exp,Vh(x,k,g++),Fh):Vh(x,k,g++)}else{i.onError(K(30,o.loc))}}else if(C){u=true;const T=C.forParseResult;if(T){Ih(T,i);a.push(W(i.helper(jf),[T.source,dp(Rh(T),Vh(x,k),true)]))}else{i.onError(K(32,C.loc))}}else{if(t){if(m.has(t)){i.onError(K(38,S));continue}m.add(t);if(t==="default"){d=true}}c.push(q(x,k))}}if(!f){const A=(e,t)=>{const n=r(e,void 0,t,o);return q(`default`,n)};if(!p){c.push(A(void 0,l))}else if(h.length&&h.some(e=>Bh(e))){if(d){i.onError(K(39,h[0].loc))}else{c.push(A(void 0,h))}}}const t=u?2:Dh(e.children)?3:1;let n=fp(c.concat(q(`_`,z(t+` /* ${he[t]} */`,false))),o);if(a.length){n=W(i.helper(Vf),[n,up(a)])}return{slots:n,hasDynamicSlots:u}}function Vh(e,t,n){const o=[q(`name`,e),q(`fn`,t)];if(n!=null){o.push(q(`key`,z(String(n),true)))}return fp(o)}function Dh(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||Dh(n.children)){return true}break;case 9:if(Dh(n.branches))return true;break;case 10:case 11:if(Dh(n.children))return true;break}}return false}function Bh(e){if(e.type!==2&&e.type!==12)return true;return e.type===2?!!e.content.trim():Bh(e.content)}const Hh=new WeakMap;const qh=(S,C)=>{return function e(){S=C.currentNode;if(!(S.type===1&&(S.tagType===0||S.tagType===1))){return}const{tag:t,props:n}=S;const o=S.tagType===1;let s=o?zh(S,C):`"${t}"`;const i=H(s)&&s.callee===Rf;let r;let l;let c;let a=0;let u;let f;let p;let d=i||s===xf||s===wf||!o&&(t==="svg"||t==="foreignObject");if(n.length>0){const h=Wh(S,C,void 0,o,i);r=h.props;a=h.patchFlag;f=h.dynamicPropNames;const m=h.directives;p=m&&m.length?up(m.map(e=>Jh(e,C))):void 0;if(h.shouldUseBlock){d=true}}if(S.children.length>0){if(s===Sf){d=true;a|=1024;if(S.children.length>1){C.onError(K(46,{start:S.children[0].loc.start,end:S.children[S.children.length-1].loc.end,source:""}))}}const g=o&&s!==xf&&s!==Sf;if(g){const{slots:v,hasDynamicSlots:y}=Uh(S,C);l=v;if(y){a|=1024}}else if(S.children.length===1&&s!==xf){const b=S.children[0];const _=b.type;const x=_===5||_===8;if(x&&Fd(b,C)===0){a|=1}if(x||_===2){l=b}else{l=S.children}}else{l=S.children}}if(a!==0){{if(a<0){c=a+` /* ${de[a]} */`}else{const w=Object.keys(de).map(Number).filter(e=>e>0&&a&e).map(e=>de[e]).join(`, `);c=a+` /* ${w} */`}}if(f&&f.length){u=Xh(f)}}S.codegenNode=ap(C,s,r,l,c,u,p,!!d,false,o,S.loc)}};function zh(e,t,n=false){let{tag:o}=e;const s=Yh(o);const i=Dp(e,"is");if(i){if(s||false){const l=i.type===6?i.value&&z(i.value.content,true):i.exp;if(l){return W(t.helper(Rf),[l])}}else if(i.type===6&&i.value.content.startsWith("vue:")){o=i.value.content.slice(4)}}const r=Op(o)||t.isBuiltInComponent(o);if(r){if(!n)t.helper(r);return r}t.helper(If);t.components.add(o);return Qp(o,`component`)}function Wh(t,s,n=t.props,i,F,o=false){const{tag:r,loc:l,children:L}=t;let c=[];const a=[];const u=[];const f=L.length>0;let p=false;let d=0;let h=false;let m=false;let g=false;let v=false;let y=false;let b=false;const _=[];const x=e=>{if(c.length){a.push(fp(Kh(c),l));c=[]}if(e)a.push(e)};const j=({key:e,value:t})=>{if(Np(e)){const n=e.content;const o=G(n);if(o&&(!i||F)&&n.toLowerCase()!=="onclick"&&n!=="onUpdate:modelValue"&&!ie(n)){v=true}if(o&&ie(n)){b=true}if(o&&t.type===14){t=t.arguments[0]}if(t.type===20||(t.type===4||t.type===8)&&Fd(t,s)>0){return}if(n==="ref"){h=true}else if(n==="class"){m=true}else if(n==="style"){g=true}else if(n!=="key"&&!_.includes(n)){_.push(n)}if(i&&(n==="class"||n==="style")&&!_.includes(n)){_.push(n)}}else{y=true}};for(let e=0;e<n.length;e++){const S=n[e];if(S.type===6){const{loc:C,name:k,nameLoc:U,value:T}=S;let e=true;if(k==="ref"){h=true;if(s.scopes.vFor>0){c.push(q(z("ref_for",true),z("true")))}}if(k==="is"&&(Yh(r)||T&&T.content.startsWith("vue:")||false)){continue}c.push(q(z(k,true,U),z(T?T.content:"",e,T?T.loc:C)))}else{const{name:k,arg:A,exp:$,loc:C,modifiers:V}=S;const E=k==="bind";const N=k==="on";if(k==="slot"){if(!i){s.onError(K(40,C))}continue}if(k==="once"||k==="memo"){continue}if(k==="is"||E&&Bp(A,"is")&&(Yh(r)||false)){continue}if(N&&o){continue}if(E&&Bp(A,"key")||N&&f&&Bp(A,"vue:before-update")){p=true}if(E&&Bp(A,"ref")&&s.scopes.vFor>0){c.push(q(z("ref_for",true),z("true")))}if(!A&&(E||N)){y=true;if($){if(E){x();a.push($)}else{x({type:14,loc:C,callee:s.helper(Kf),arguments:i?[$]:[$,`true`]})}}else{s.onError(K(E?34:35,C))}continue}if(E&&V.includes("prop")){d|=32}const O=s.directiveTransforms[k];if(O){const{props:P,needRuntime:I}=O(S,t,s);!o&&P.forEach(j);if(N&&A&&!Np(A)){x(fp(P,l))}else{c.push(...P)}if(I){u.push(S);if(J(I)){Hh.set(S,I)}}}else if(!re(k)){u.push(S);if(f){p=true}}}}let w=void 0;if(a.length){x();if(a.length>1){w=W(s.helper(Bf),a,l)}else{w=a[0]}}else if(c.length){w=fp(Kh(c),l)}if(y){d|=16}else{if(m&&!i){d|=2}if(g&&!i){d|=4}if(_.length){d|=8}if(v){d|=32}}if(!p&&(d===0||d===32)&&(h||b||u.length>0)){d|=512}if(!s.inSSR&&w){switch(w.type){case 15:let t=-1;let n=-1;let o=false;for(let e=0;e<w.properties.length;e++){const M=w.properties[e].key;if(Np(M)){if(M.content==="class"){t=e}else if(M.content==="style"){n=e}}else if(!M.isHandlerKey){o=true}}const e=w.properties[t];const R=w.properties[n];if(!o){if(e&&!Np(e.value)){e.value=W(s.helper(Hf),[e.value])}if(R&&(g||R.value.type===4&&R.value.content.trim()[0]===`[`||R.value.type===17)){R.value=W(s.helper(qf),[R.value])}}else{w=W(s.helper(zf),[w])}break;case 14:break;default:w=W(s.helper(zf),[W(s.helper(Wf),[w])]);break}}return{props:w,directives:u,patchFlag:d,dynamicPropNames:_,shouldUseBlock:p}}function Kh(t){const n=new Map;const o=[];for(let e=0;e<t.length;e++){const s=t[e];if(s.key.type===8||!s.key.isStatic){o.push(s);continue}const i=s.key.content;const r=n.get(i);if(r){if(i==="style"||i==="class"||G(i)){Gh(r,s)}}else{n.set(i,s);o.push(s)}}return o}function Gh(e,t){if(e.value.type===17){e.value.elements.push(t.value)}else{e.value=up([e.value,t.value],e.loc)}}function Jh(e,t){const n=[];const o=Hh.get(e);if(o){n.push(t.helperString(o))}else{{t.helper(Mf);t.directives.add(e.name);n.push(Qp(e.name,`directive`))}}const{loc:s}=e;if(e.exp)n.push(e.exp);if(e.arg){if(!e.exp){n.push(`void 0`)}n.push(e.arg)}if(Object.keys(e.modifiers).length){if(!e.arg){if(!e.exp){n.push(`void 0`)}n.push(`void 0`)}const i=z(`true`,false,s);n.push(fp(e.modifiers.map(e=>q(e,i)),s))}return up(n,e.loc)}function Xh(n){let o=`[`;for(let e=0,t=n.length;e<t;e++){o+=JSON.stringify(n[e]);if(e<t-1)o+=", "}return o+`]`}function Yh(e){return e==="component"||e==="Component"}const Qh=(t,n)=>{if(Kp(t)){const{children:o,loc:s}=t;const{slotName:i,slotProps:r}=Zh(t,n);const l=[n.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,"{}","undefined","true"];let e=2;if(r){l[2]=r;e=3}if(o.length){l[3]=dp([],o,false,false,s);e=4}if(n.scopeId&&!n.slotted){e=5}l.splice(e);t.codegenNode=W(n.helper(Uf),l,s)}};function Zh(n,e){let o=`"default"`;let t=void 0;const s=[];for(let t=0;t<n.props.length;t++){const e=n.props[t];if(e.type===6){if(e.value){if(e.name==="name"){o=JSON.stringify(e.value.content)}else{e.name=T(e.name);s.push(e)}}}else{if(e.name==="bind"&&Bp(e.arg,"name")){if(e.exp)o=e.exp}else{if(e.name==="bind"&&e.arg&&Np(e.arg)){e.arg.content=T(e.arg.content)}s.push(e)}}}if(s.length>0){const{props:i,directives:r}=Wh(n,e,s,false,false);t=i;if(r.length){e.onError(K(36,r[0].loc))}}return{slotName:o,slotProps:t}}const em=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;const tm=(e,t,n,o)=>{const{loc:s,modifiers:i,arg:r}=e;if(!e.exp&&!i.length){n.onError(K(35,s))}let l;if(r.type===4){if(r.isStatic){let e=r.content;if(e.startsWith("vnode")){n.onError(K(51,r.loc))}if(e.startsWith("vue:")){e=`vnode-${e.slice(4)}`}const f=t.tagType!==0||e.startsWith("vnode")||!/[A-Z]/.test(e)?U(T(e)):`on:${e}`;l=z(f,true,r.loc)}else{l=pp([`${n.helperString(Xf)}(`,r,`)`])}}else{l=r;l.children.unshift(`${n.helperString(Xf)}(`);l.children.push(`)`)}let c=e.exp;if(c&&!c.content.trim()){c=void 0}let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=jp(c.content);const d=!(p||em.test(c.content));const h=c.content.includes(`;`);{xh(c,n,false,h)}if(d||a&&p){c=pp([`${d?`$event`:`${``}(...args)`} => ${h?`{`:`(`}`,c,h?`}`:`)`])}}let u={props:[q(l,c||z(`() => {}`,false,s))]};if(o){u=o(u)}if(a){u.props[0].value=n.cache(u.props[0].value)}u.props.forEach(e=>e.key.isHandlerKey=true);return u};const nm=(e,t,n)=>{const{modifiers:o,loc:s}=e;const i=e.arg;let{exp:r}=e;if(!r&&i.type===4){const l=T(i.content);r=e.exp=z(l,false,i.loc)}if(i.type!==4){i.children.unshift(`(`);i.children.push(`) || ""`)}else if(!i.isStatic){i.content=`${i.content} || ""`}if(o.includes("camel")){if(i.type===4){if(i.isStatic){i.content=T(i.content)}else{i.content=`${n.helperString(Gf)}(${i.content})`}}else{i.children.unshift(`${n.helperString(Gf)}(`);i.children.push(`)`)}}if(!n.inSSR){if(o.includes("prop")){om(i,".")}if(o.includes("attr")){om(i,"^")}}if(!r||r.type===4&&!r.content.trim()){n.onError(K(34,s));return{props:[q(i,z("",true,s))]}}return{props:[q(i,r)]}};const om=(e,t)=>{if(e.type===4){if(e.isStatic){e.content=t+e.content}else{e.content=`\`${t}\${${e.content}}\``}}else{e.children.unshift(`'${t}' + (`);e.children.push(`)`)}};const sm=(r,l)=>{if(r.type===0||r.type===1||r.type===11||r.type===10){return()=>{const n=r.children;let o=void 0;let e=false;for(let t=0;t<n.length;t++){const s=n[t];if(qp(s)){e=true;for(let e=t+1;e<n.length;e++){const i=n[e];if(qp(i)){if(!o){o=n[t]=pp([s],s.loc)}o.children.push(` + `,i);n.splice(e,1);e--}else{o=void 0;break}}}}if(!e||n.length===1&&(r.type===0||r.type===1&&r.tagType===0&&!r.props.find(e=>e.type===7&&!l.directiveTransforms[e.name])&&true)){return}for(let e=0;e<n.length;e++){const s=n[e];if(qp(s)||s.type===8){const t=[];if(s.type!==2||s.content!==" "){t.push(s)}if(!l.ssr&&Fd(s,l)===0){t.push(1+` /* ${de[1]} */`)}n[e]={type:12,content:s,loc:s.loc,codegenNode:W(l.helper(Of),t)}}}}}};const im=new WeakSet;const rm=(e,t)=>{if(e.type===1&&Vp(e,"once",true)){if(im.has(e)||t.inVOnce||t.inSSR){return}im.add(e);t.inVOnce=true;t.helper(Yf);return()=>{t.inVOnce=false;const e=t.currentNode;if(e.codegenNode){e.codegenNode=t.cache(e.codegenNode,true)}}}};const lm=(e,t,n)=>{const{exp:o,arg:s}=e;if(!o){n.onError(K(41,e.loc));return cm()}const i=o.loc.source;const r=o.type===4?o.content:i;const l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased"){n.onError(K(44,o.loc));return cm()}const c=false;if(!r.trim()||!jp(r)&&!c){n.onError(K(42,o.loc));return cm()}const a=s?s:z("modelValue",true);const u=s?Np(s)?`onUpdate:${T(s.content)}`:pp(['"onUpdate:" + ',s]):`onUpdate:modelValue`;let f;const p=n.isTS?`($event: any)`:`$event`;{f=pp([`${p} => ((`,o,`) = $event)`])}const d=[q(a,e.exp),q(u,f)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(e=>(Ip(e)?e:JSON.stringify(e))+`: true`).join(`, `);const m=s?Np(s)?`${s.content}Modifiers`:pp([s,' + "Modifiers"']):`modelModifiers`;d.push(q(m,z(`{ ${h} }`,false,e.loc,2)))}return cm(d)};function cm(e=[]){return{props:e}}const am=new WeakSet;const um=(t,n)=>{if(t.type===1){const o=Vp(t,"memo");if(!o||am.has(t)){return}am.add(t);return()=>{const e=t.codegenNode||n.currentNode.codegenNode;if(e&&e.type===13){if(t.tagType!==1){bp(e,n)}t.codegenNode=W(n.helper(op),[o.exp,dp(void 0,e),`_cache`,String(n.cached++)])}}}};function fm(e){return[[rm,Ch,um,Oh,...[],...[wh],Qh,qh,Lh,sm],{on:tm,bind:nm,model:lm}]}function pm(e,t={}){const n=t.onError||Ap;const o=t.mode==="module";{if(t.prefixIdentifiers===true){n(K(47))}else if(o){n(K(48))}}const s=false;if(t.cacheHandlers){n(K(49))}if(t.scopeId&&!o){n(K(50))}const i=E({},t,{prefixIdentifiers:s});const r=k(e)?Pd(e,i):e;const[l,c]=fm();Hd(r,E({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:E({},c,t.directiveTransforms||{})}));return Yd(r,i)}const dm=()=>({props:[]});const hm=Symbol(`vModelRadio`);const mm=Symbol(`vModelCheckbox`);const gm=Symbol(`vModelText`);const vm=Symbol(`vModelSelect`);const ym=Symbol(`vModelDynamic`);const bm=Symbol(`vOnModifiersGuard`);const _m=Symbol(`vOnKeysGuard`);const xm=Symbol(`vShow`);const wm=Symbol(`Transition`);const Sm=Symbol(`TransitionGroup`);rp({[hm]:`vModelRadio`,[mm]:`vModelCheckbox`,[gm]:`vModelText`,[vm]:`vModelSelect`,[ym]:`vModelDynamic`,[bm]:`withModifiers`,[_m]:`withKeys`,[xm]:`vShow`,[wm]:`Transition`,[Sm]:`TransitionGroup`});let Cm;function km(e,t=false){if(!Cm){Cm=document.createElement("div")}if(t){Cm.innerHTML=`<div foo="${e.replace(/"/g,""")}">`;return Cm.children[0].getAttribute("foo")}else{Cm.innerHTML=e;return Cm.textContent}}const Tm={parseMode:"html",isVoidTag:Re,isNativeTag:e=>Oe(e)||Pe(e)||Ie(e),isPreTag:e=>e==="pre",decodeEntities:km,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition"){return wm}else if(e==="TransitionGroup"||e==="transition-group"){return Sm}},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2){if(t.tag==="annotation-xml"){if(e==="svg"){return 1}if(t.props.some(e=>e.type===6&&e.name==="encoding"&&e.value!=null&&(e.value.content==="text/html"||e.value.content==="application/xhtml+xml"))){o=0}}else if(/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"){o=0}}else if(t&&o===1){if(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title"){o=0}}if(o===0){if(e==="svg"){return 1}if(e==="math"){return 2}}return o}};const Am=n=>{if(n.type===1){n.props.forEach((e,t)=>{if(e.type===6&&e.name==="style"&&e.value){n.props[t]={type:7,name:`bind`,arg:z(`style`,true,e.loc),exp:$m(e.value.content,e.loc),modifiers:[],loc:e.loc}}})}};const $m=(e,t)=>{const n=Se(e);return z(JSON.stringify(n),false,t,3)};function Em(e,t){return K(e,t,Nm)}const Nm={[53]:`v-html is missing expression.`,[54]:`v-html will override element children.`,[55]:`v-text is missing expression.`,[56]:`v-text will override element children.`,[57]:`v-model can only be used on <input>, <textarea> and <select> elements.`,[58]:`v-model argument is not supported on plain elements.`,[59]:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,[60]:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,[61]:`v-show is missing expression.`,[62]:`<Transition> expects exactly one child element or component.`,[63]:`Tags with side effect (<script> and <style>) are ignored in client component templates.`};const Om=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(53,s))}if(t.children.length){n.onError(Em(54,s));t.children.length=0}return{props:[q(z(`innerHTML`,true,s),o||z("",true))]}};const Pm=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(55,s))}if(t.children.length){n.onError(Em(56,s));t.children.length=0}return{props:[q(z(`textContent`,true),o?Fd(o,n)>0?o:W(n.helperString(Df),[o],s):z("",true))]}};const Im=(n,o,s)=>{const i=lm(n,o,s);if(!i.props.length||o.tagType===1){return i}if(n.arg){s.onError(Em(58,n.arg.loc))}function r(){const e=Vp(o,"bind");if(e&&Bp(e.arg,"value")){s.onError(Em(60,e.loc))}}const{tag:l}=o;const c=s.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||c){let e=gm;let t=false;if(l==="input"||c){const a=Dp(o,`type`);if(a){if(a.type===7){e=ym}else if(a.value){switch(a.value.content){case"radio":e=hm;break;case"checkbox":e=mm;break;case"file":t=true;s.onError(Em(59,n.loc));break;default:r();break}}}else if(Hp(o)){e=ym}else{r()}}else if(l==="select"){e=vm}else{r()}if(!t){i.needRuntime=s.helper(e)}}else{s.onError(Em(57,n.loc))}i.props=i.props.filter(e=>!(e.key.type===4&&e.key.content==="modelValue"));return i};const Rm=t(`passive,once,capture`);const Mm=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`);const Fm=t("left,right");const Lm=t(`onkeyup,onkeydown,onkeypress`,true);const jm=(t,n,e,o)=>{const s=[];const i=[];const r=[];for(let e=0;e<n.length;e++){const l=n[e];if(Rm(l)){r.push(l)}else{if(Fm(l)){if(Np(t)){if(Lm(t.content)){s.push(l)}else{i.push(l)}}else{s.push(l);i.push(l)}}else{if(Mm(l)){i.push(l)}else{s.push(l)}}}}return{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:r}};const Um=(e,t)=>{const n=Np(e)&&e.content.toLowerCase()==="onclick";return n?z(t,true):e.type!==4?pp([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]):e};const Vm=(c,e,a)=>{return tm(c,e,a,e=>{const{modifiers:t}=c;if(!t.length)return e;let{key:n,value:o}=e.props[0];const{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:r}=jm(n,t,a,c.loc);if(i.includes("right")){n=Um(n,`onContextmenu`)}if(i.includes("middle")){n=Um(n,`onMouseup`)}if(i.length){o=W(a.helper(bm),[o,JSON.stringify(i)])}if(s.length&&(!Np(n)||Lm(n.content))){o=W(a.helper(_m),[o,JSON.stringify(s)])}if(r.length){const l=r.map(j).join("");n=Np(n)?z(`${n.content}${l}`,true):pp([`(`,n,`) + "${l}"`])}return{props:[q(n,o)]}})};const Dm=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(61,s))}return{props:[],needRuntime:n.helper(xm)}};const Bm=(n,e)=>{if(n.type===1&&n.tagType===1){const t=e.isBuiltInComponent(n.tag);if(t===wm){return()=>{if(!n.children.length){return}if(Hm(n)){e.onError(Em(62,{start:n.children[0].loc.start,end:n.children[n.children.length-1].loc.end,source:""}))}const t=n.children[0];if(t.type===1){for(const e of t.props){if(e.type===7&&e.name==="show"){n.props.push({type:6,name:"persisted",nameLoc:n.loc,value:void 0,loc:n.loc})}}}}}}};function Hm(e){const t=e.children=e.children.filter(e=>e.type!==3&&!(e.type===2&&!e.content.trim()));const n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Hm)}const qm=(e,t)=>{if(e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")){t.onError(Em(63,e.loc));t.removeNode()}};const zm=[Am,...[Bm]];const Wm={cloak:dm,html:Om,text:Pm,model:Im,on:Vm,show:Dm};function Km(e,t={}){return pm(e,E({},Tm,t,{nodeTransforms:[qm,...zm,...t.nodeTransforms||[]],directiveTransforms:E({},Wm,t.directiveTransforms||{}),transformHoist:null}))}{bf()}const Gm=new WeakMap;function Jm(e){let t=Gm.get(e!=null?e:X);if(!t){t=Object.create(null);Gm.set(e!=null?e:X,t)}return t}function Xm(s,e){if(!k(s)){if(s.nodeType){s=s.innerHTML}else{p(`invalid template option: `,s);return Y}}const t=s;const n=Jm(e);const o=n[t];if(o){return o}if(s[0]==="#"){const a=document.querySelector(s);if(!a){p(`Template element not found or is empty: ${s}`)}s=a?a.innerHTML:``}const i=E({hoistStatic:true,onError:l,onWarn:e=>l(e,true)},e);if(!i.isCustomElement&&typeof customElements!=="undefined"){i.isCustomElement=e=>!!customElements.get(e)}const{code:r}=Km(s,i);function l(e,t=false){const n=t?e.message:`Template compilation error: ${e.message}`;const o=e.loc&&ye(s,e.loc.start.offset,e.loc.end.offset);p(o?`${n}
|
|
28
|
+
`,-1)}}}eh(e.hoists,t);i();s(`return `)}function Zd(n,o,{helper:e,push:s,newline:i,isTS:r}){const l=e(o==="component"?If:Mf);for(let t=0;t<n.length;t++){let e=n[t];const c=e.endsWith("__self");if(c){e=e.slice(0,-6)}s(`const ${Qp(e,o)} = ${l}(${JSON.stringify(e)}${c?`, true`:``})${r?`!`:``}`);if(t<n.length-1){i()}}}function eh(t,n){if(!t.length){return}n.pure=true;const{push:o,newline:s,helper:e,scopeId:i,mode:r}=n;s();for(let e=0;e<t.length;e++){const l=t[e];if(l){o(`const _hoisted_${e+1} = ${``}`);sh(l,n);s()}}n.pure=false}function th(e){return k(e)||e.type===4||e.type===2||e.type===5||e.type===8}function nh(e,t){const n=e.length>3||e.some(e=>D(e)||!th(e));t.push(`[`);n&&t.indent();oh(e,t,n);n&&t.deindent();t.push(`]`)}function oh(t,n,o=false,s=true){const{push:i,newline:r}=n;for(let e=0;e<t.length;e++){const l=t[e];if(k(l)){i(l,-3)}else if(D(l)){nh(l,n)}else{sh(l,n)}if(e<t.length-1){if(o){s&&i(",");r()}else{s&&i(", ")}}}}function sh(e,t){if(k(e)){t.push(e,-3);return}if(J(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Up(e.codegenNode!=null,`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`);sh(e.codegenNode,t);break;case 2:ih(e,t);break;case 4:rh(e,t);break;case 5:lh(e,t);break;case 12:sh(e.codegenNode,t);break;case 8:ch(e,t);break;case 3:uh(e,t);break;case 13:fh(e,t);break;case 14:dh(e,t);break;case 15:hh(e,t);break;case 17:mh(e,t);break;case 18:gh(e,t);break;case 19:vh(e,t);break;case 20:yh(e,t);break;case 21:oh(e.body,t,true,false);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:{Up(false,`unhandled codegen node type: ${e.type}`);const n=e;return n}}}function ih(e,t){t.push(JSON.stringify(e.content),-3,e)}function rh(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function lh(e,t){const{push:n,helper:o,pure:s}=t;if(s)n(Gd);n(`${o(Df)}(`);sh(e.content,t);n(`)`)}function ch(t,n){for(let e=0;e<t.children.length;e++){const o=t.children[e];if(k(o)){n.push(o,-3)}else{sh(o,n)}}}function ah(e,t){const{push:n}=t;if(e.type===8){n(`[`);ch(e,t);n(`]`)}else if(e.isStatic){const o=Ip(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else{n(`[${e.content}]`,-3,e)}}function uh(e,t){const{push:n,helper:o,pure:s}=t;if(s){n(Gd)}n(`${o(Nf)}(${JSON.stringify(e.content)})`,-3,e)}function fh(e,t){const{push:n,helper:o,pure:s}=t;const{tag:i,props:r,children:l,patchFlag:c,dynamicProps:a,directives:u,isBlock:f,disableTracking:p,isComponent:d}=e;if(u){n(o(Lf)+`(`)}if(f){n(`(${o(kf)}(${p?`true`:``}), `)}if(s){n(Gd)}const h=f?yp(t.inSSR,d):vp(t.inSSR,d);n(o(h)+`(`,-2,e);oh(ph([i,r,l,c,a]),t);n(`)`);if(f){n(`)`)}if(u){n(`, `);sh(u,t);n(`)`)}}function ph(e){let t=e.length;while(t--){if(e[t]!=null)break}return e.slice(0,t+1).map(e=>e||`null`)}function dh(e,t){const{push:n,helper:o,pure:s}=t;const i=k(e.callee)?e.callee:o(e.callee);if(s){n(Gd)}n(i+`(`,-2,e);oh(e.arguments,t);n(`)`)}function hh(e,t){const{push:n,indent:o,deindent:s,newline:i}=t;const{properties:r}=e;if(!r.length){n(`{}`,-2,e);return}const l=r.length>1||r.some(e=>e.value.type!==4);n(l?`{`:`{ `);l&&o();for(let e=0;e<r.length;e++){const{key:c,value:a}=r[e];ah(c,t);n(`: `);sh(a,t);if(e<r.length-1){n(`,`);i()}}l&&s();n(l?`}`:` }`)}function mh(e,t){nh(e.elements,t)}function gh(e,t){const{push:n,indent:o,deindent:s}=t;const{params:i,returns:r,body:l,newline:c,isSlot:a}=e;if(a){n(`_${ip[ep]}(`)}n(`(`,-2,e);if(D(i)){oh(i,t)}else if(i){sh(i,t)}n(`) => `);if(c||l){n(`{`);o()}if(r){if(c){n(`return `)}if(D(r)){nh(r,t)}else{sh(r,t)}}else if(l){sh(l,t)}if(c||l){s();n(`}`)}if(a){n(`)`)}}function vh(e,t){const{test:n,consequent:o,alternate:s,newline:i}=e;const{push:r,indent:l,deindent:c,newline:a}=t;if(n.type===4){const f=!Ip(n.content);f&&r(`(`);rh(n,t);f&&r(`)`)}else{r(`(`);sh(n,t);r(`)`)}i&&l();t.indentLevel++;i||r(` `);r(`? `);sh(o,t);t.indentLevel--;i&&a();i||r(` `);r(`: `);const u=s.type===19;if(!u){t.indentLevel++}sh(s,t);if(!u){t.indentLevel--}i&&c(true)}function yh(e,t){const{push:n,helper:o,indent:s,deindent:i,newline:r}=t;n(`_cache[${e.index}] || (`);if(e.isVNode){s();n(`${o(Yf)}(-1),`);r()}n(`_cache[${e.index}] = `);sh(e.value,t);if(e.isVNode){n(`,`);r();n(`${o(Yf)}(1),`);r();n(`_cache[${e.index}]`);i()}n(`)`)}const bh=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const _h=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function xh(n,o,e=false,t=false){const s=n.content;if(!s.trim()){return}try{new Function(t?` ${s} `:`return ${e?`(${s}) => {}`:`(${s})`}`)}catch(e){let t=e.message;const i=s.replace(_h,"").match(bh);if(i){t=`avoid using JavaScript keyword as property name: "${i[0]}"`}o.onError(K(45,n.loc,void 0,t))}}const wh=(t,n)=>{if(t.type===5){t.content=Sh(t.content,n)}else if(t.type===1){for(let e=0;e<t.props.length;e++){const o=t.props[e];if(o.type===7&&o.name!=="for"){const s=o.exp;const i=o.arg;if(s&&s.type===4&&!(o.name==="on"&&i)){o.exp=Sh(s,n,o.name==="slot")}if(i&&i.type===4&&!i.isStatic){o.arg=Sh(i,n)}}}}};function Sh(e,t,n=false,o=false,s=Object.create(t.identifiers)){{{xh(e,t,n,o)}return e}}const Ch=Kd(/^(if|else|else-if)$/,(e,t,l)=>{return kh(e,t,l,(t,n,o)=>{const e=l.parent.children;let s=e.indexOf(t);let i=0;while(s-- >=0){const r=e[s];if(r&&r.type===9){i+=r.branches.length}}return()=>{if(o){t.codegenNode=Ah(n,i,l)}else{const e=Nh(t.codegenNode);e.alternate=Ah(n,i+t.branches.length-1,l)}}})});function kh(t,n,o,s){if(n.name!=="else"&&(!n.exp||!n.exp.content.trim())){const e=n.exp?n.exp.loc:t.loc;o.onError(K(28,n.loc));n.exp=z(`true`,false,e)}if(n.exp){xh(n.exp,o)}if(n.name==="if"){const i=Th(t,n);const r={type:9,loc:t.loc,branches:[i]};o.replaceNode(r);if(s){return s(r,i,true)}}else{const l=o.parent.children;const c=[];let e=l.indexOf(t);while(e-- >=-1){const a=l[e];if(a&&a.type===3){o.removeNode(a);c.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){o.removeNode(a);continue}if(a&&a.type===9){if(n.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0){o.onError(K(30,t.loc))}o.removeNode();const i=Th(t,n);if(c.length&&!(o.parent&&o.parent.type===1&&(o.parent.tag==="transition"||o.parent.tag==="Transition"))){i.children=[...c,...i.children]}{const f=i.userKey;if(f){a.branches.forEach(({userKey:e})=>{if(Eh(e,f)){o.onError(K(29,i.userKey.loc))}})}}a.branches.push(i);const u=s&&s(a,i,false);Wd(i,o);if(u)u();o.currentNode=null}else{o.onError(K(30,t.loc))}break}}}function Th(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Vp(e,"for")?e.children:[e],userKey:Dp(e,`key`),isTemplateIf:n}}function Ah(e,t,n){if(e.condition){return hp(e.condition,$h(e,t,n),W(n.helper(Nf),['"v-if"',"true"]))}else{return $h(e,t,n)}}function $h(n,e,o){const{helper:s}=o;const i=q(`key`,z(`${e}`,false,lp,2));const{children:r}=n;const t=r[0];const l=r.length!==1||t.type!==1;if(l){if(r.length===1&&t.type===11){const c=t.codegenNode;Xp(c,i,o);return c}else{let e=64;let t=de[64];if(!n.isTemplateIf&&r.filter(e=>e.type!==3).length===1){e|=2048;t+=`, ${de[2048]}`}return ap(o,s(_f),fp([i]),r,e+` /* ${t} */`,void 0,void 0,true,false,false,n.loc)}}else{const a=t.codegenNode;const c=Zp(a);if(c.type===13){bp(c,o)}Xp(c,i,o);return a}}function Eh(e,t){if(!e||e.type!==t.type){return false}if(e.type===6){if(e.value.content!==t.value.content){return false}}else{const n=e.exp;const o=t.exp;if(n.type!==o.type){return false}if(n.type!==4||n.isStatic!==o.isStatic||n.content!==o.content){return false}}return true}function Nh(e){while(true){if(e.type===19){if(e.alternate.type===19){e=e.alternate}else{return e}}else if(e.type===20){e=e.value}}}const Oh=Kd("for",(p,e,d)=>{const{helper:h,removeHelper:m}=d;return Ph(p,e,d,i=>{const r=W(h(jf),[i.source]);const l=Wp(p);const c=Vp(p,"memo");const e=Dp(p,`key`);const a=e&&(e.type===6?z(e.value.content,true):e.exp);const u=e?q(`key`,a):null;const f=i.source.type===4&&i.source.constType>0;const t=f?64:e?128:256;i.codegenNode=ap(d,h(_f),void 0,r,t+` /* ${de[t]} */`,void 0,void 0,true,!f,false,p.loc);return()=>{let e;const{children:t}=i;if(l){p.children.some(e=>{if(e.type===1){const t=Dp(e,"key");if(t){d.onError(K(33,t.loc));return true}}})}const n=t.length!==1||t[0].type!==1;const o=Kp(p)?p:l&&p.children.length===1&&Kp(p.children[0])?p.children[0]:null;if(o){e=o.codegenNode;if(l&&u){Xp(e,u,d)}}else if(n){e=ap(d,h(_f),u?fp([u]):void 0,p.children,64+` /* ${de[64]} */`,void 0,void 0,true,void 0,false)}else{e=t[0].codegenNode;if(l&&u){Xp(e,u,d)}if(e.isBlock!==!f){if(e.isBlock){m(kf);m(yp(d.inSSR,e.isComponent))}else{m(vp(d.inSSR,e.isComponent))}}e.isBlock=!f;if(e.isBlock){h(kf);h(yp(d.inSSR,e.isComponent))}else{h(vp(d.inSSR,e.isComponent))}}if(c){const s=dp(Rh(i.parseResult,[z(`_cached`)]));s.body=gp([pp([`const _memo = (`,c.exp,`)`]),pp([`if (_cached`,...a?[` && _cached.key === `,a]:[],` && ${d.helperString(sp)}(_cached, _memo)) return _cached`]),pp([`const _item = `,e]),z(`_item.memo = _memo`),z(`return _item`)]);r.arguments.push(s,z(`_cache`),z(String(d.cached++)))}else{r.arguments.push(dp(Rh(i.parseResult),e,true))}}})});function Ph(e,t,n,o){if(!t.exp){n.onError(K(31,t.loc));return}const s=t.forParseResult;if(!s){n.onError(K(32,t.loc));return}Ih(s,n);const{addIdentifiers:i,removeIdentifiers:r,scopes:l}=n;const{source:c,value:a,key:u,index:f}=s;const p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:s,children:Wp(e)?e.children:[e]};n.replaceNode(p);l.vFor++;const d=o&&o(p);return()=>{l.vFor--;if(d)d()}}function Ih(e,t){if(e.finalized)return;{xh(e.source,t);if(e.key){xh(e.key,t,true)}if(e.index){xh(e.index,t,true)}if(e.value){xh(e.value,t,true)}}e.finalized=true}function Rh({value:e,key:t,index:n},o=[]){return Mh([e,t,n,...o])}function Mh(e){let t=e.length;while(t--){if(e[t])break}return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),false))}const Fh=z(`undefined`,false);const Lh=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Vp(e,"slot");if(n){n.exp;t.scopes.vSlot++;return()=>{t.scopes.vSlot--}}}};const jh=(e,t,n,o)=>dp(e,n,false,true,n.length?n[0].loc:o);function Uh(e,i,r=jh){i.helper(ep);const{children:l,loc:o}=e;const c=[];const a=[];let u=i.scopes.vSlot>0||i.scopes.vFor>0;const f=Vp(e,"slot",true);if(f){const{arg:s,exp:v}=f;if(s&&!Np(s)){u=true}c.push(q(s||z("default",true),r(v,void 0,l,o)))}let p=false;let d=false;const h=[];const m=new Set;let g=0;for(let s=0;s<l.length;s++){const y=l[s];let e;if(!Wp(y)||!(e=Vp(y,"slot",true))){if(y.type!==3){h.push(y)}continue}if(f){i.onError(K(37,e.loc));break}p=true;const{children:b,loc:_}=y;const{arg:x=z(`default`,true),exp:w,loc:S}=e;let t;if(Np(x)){t=x?x.content:`default`}else{u=true}const C=Vp(y,"for");const k=r(w,C,b,_);let n;let o;if(n=Vp(y,"if")){u=true;a.push(hp(n.exp,Vh(x,k,g++),Fh))}else if(o=Vp(y,/^else(-if)?$/,true)){let e=s;let t;while(e--){t=l[e];if(t.type!==3){break}}if(t&&Wp(t)&&Vp(t,"if")){l.splice(s,1);s--;let e=a[a.length-1];while(e.alternate.type===19){e=e.alternate}e.alternate=o.exp?hp(o.exp,Vh(x,k,g++),Fh):Vh(x,k,g++)}else{i.onError(K(30,o.loc))}}else if(C){u=true;const T=C.forParseResult;if(T){Ih(T,i);a.push(W(i.helper(jf),[T.source,dp(Rh(T),Vh(x,k),true)]))}else{i.onError(K(32,C.loc))}}else{if(t){if(m.has(t)){i.onError(K(38,S));continue}m.add(t);if(t==="default"){d=true}}c.push(q(x,k))}}if(!f){const A=(e,t)=>{const n=r(e,void 0,t,o);return q(`default`,n)};if(!p){c.push(A(void 0,l))}else if(h.length&&h.some(e=>Bh(e))){if(d){i.onError(K(39,h[0].loc))}else{c.push(A(void 0,h))}}}const t=u?2:Dh(e.children)?3:1;let n=fp(c.concat(q(`_`,z(t+` /* ${he[t]} */`,false))),o);if(a.length){n=W(i.helper(Vf),[n,up(a)])}return{slots:n,hasDynamicSlots:u}}function Vh(e,t,n){const o=[q(`name`,e),q(`fn`,t)];if(n!=null){o.push(q(`key`,z(String(n),true)))}return fp(o)}function Dh(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||Dh(n.children)){return true}break;case 9:if(Dh(n.branches))return true;break;case 10:case 11:if(Dh(n.children))return true;break}}return false}function Bh(e){if(e.type!==2&&e.type!==12)return true;return e.type===2?!!e.content.trim():Bh(e.content)}const Hh=new WeakMap;const qh=(S,C)=>{return function e(){S=C.currentNode;if(!(S.type===1&&(S.tagType===0||S.tagType===1))){return}const{tag:t,props:n}=S;const o=S.tagType===1;let s=o?zh(S,C):`"${t}"`;const i=H(s)&&s.callee===Rf;let r;let l;let c;let a=0;let u;let f;let p;let d=i||s===xf||s===wf||!o&&(t==="svg"||t==="foreignObject");if(n.length>0){const h=Wh(S,C,void 0,o,i);r=h.props;a=h.patchFlag;f=h.dynamicPropNames;const m=h.directives;p=m&&m.length?up(m.map(e=>Jh(e,C))):void 0;if(h.shouldUseBlock){d=true}}if(S.children.length>0){if(s===Sf){d=true;a|=1024;if(S.children.length>1){C.onError(K(46,{start:S.children[0].loc.start,end:S.children[S.children.length-1].loc.end,source:""}))}}const g=o&&s!==xf&&s!==Sf;if(g){const{slots:v,hasDynamicSlots:y}=Uh(S,C);l=v;if(y){a|=1024}}else if(S.children.length===1&&s!==xf){const b=S.children[0];const _=b.type;const x=_===5||_===8;if(x&&Fd(b,C)===0){a|=1}if(x||_===2){l=b}else{l=S.children}}else{l=S.children}}if(a!==0){{if(a<0){c=a+` /* ${de[a]} */`}else{const w=Object.keys(de).map(Number).filter(e=>e>0&&a&e).map(e=>de[e]).join(`, `);c=a+` /* ${w} */`}}if(f&&f.length){u=Xh(f)}}S.codegenNode=ap(C,s,r,l,c,u,p,!!d,false,o,S.loc)}};function zh(e,t,n=false){let{tag:o}=e;const s=Yh(o);const i=Dp(e,"is");if(i){if(s||false){const l=i.type===6?i.value&&z(i.value.content,true):i.exp;if(l){return W(t.helper(Rf),[l])}}else if(i.type===6&&i.value.content.startsWith("vue:")){o=i.value.content.slice(4)}}const r=Op(o)||t.isBuiltInComponent(o);if(r){if(!n)t.helper(r);return r}t.helper(If);t.components.add(o);return Qp(o,`component`)}function Wh(t,s,n=t.props,i,F,o=false){const{tag:r,loc:l,children:L}=t;let c=[];const a=[];const u=[];const f=L.length>0;let p=false;let d=0;let h=false;let m=false;let g=false;let v=false;let y=false;let b=false;const _=[];const x=e=>{if(c.length){a.push(fp(Kh(c),l));c=[]}if(e)a.push(e)};const j=({key:e,value:t})=>{if(Np(e)){const n=e.content;const o=G(n);if(o&&(!i||F)&&n.toLowerCase()!=="onclick"&&n!=="onUpdate:modelValue"&&!ie(n)){v=true}if(o&&ie(n)){b=true}if(o&&t.type===14){t=t.arguments[0]}if(t.type===20||(t.type===4||t.type===8)&&Fd(t,s)>0){return}if(n==="ref"){h=true}else if(n==="class"){m=true}else if(n==="style"){g=true}else if(n!=="key"&&!_.includes(n)){_.push(n)}if(i&&(n==="class"||n==="style")&&!_.includes(n)){_.push(n)}}else{y=true}};for(let e=0;e<n.length;e++){const S=n[e];if(S.type===6){const{loc:C,name:k,nameLoc:U,value:T}=S;let e=true;if(k==="ref"){h=true;if(s.scopes.vFor>0){c.push(q(z("ref_for",true),z("true")))}}if(k==="is"&&(Yh(r)||T&&T.content.startsWith("vue:")||false)){continue}c.push(q(z(k,true,U),z(T?T.content:"",e,T?T.loc:C)))}else{const{name:k,arg:A,exp:$,loc:C,modifiers:V}=S;const E=k==="bind";const N=k==="on";if(k==="slot"){if(!i){s.onError(K(40,C))}continue}if(k==="once"||k==="memo"){continue}if(k==="is"||E&&Bp(A,"is")&&(Yh(r)||false)){continue}if(N&&o){continue}if(E&&Bp(A,"key")||N&&f&&Bp(A,"vue:before-update")){p=true}if(E&&Bp(A,"ref")&&s.scopes.vFor>0){c.push(q(z("ref_for",true),z("true")))}if(!A&&(E||N)){y=true;if($){if(E){x();a.push($)}else{x({type:14,loc:C,callee:s.helper(Kf),arguments:i?[$]:[$,`true`]})}}else{s.onError(K(E?34:35,C))}continue}if(E&&V.includes("prop")){d|=32}const O=s.directiveTransforms[k];if(O){const{props:P,needRuntime:I}=O(S,t,s);!o&&P.forEach(j);if(N&&A&&!Np(A)){x(fp(P,l))}else{c.push(...P)}if(I){u.push(S);if(J(I)){Hh.set(S,I)}}}else if(!re(k)){u.push(S);if(f){p=true}}}}let w=void 0;if(a.length){x();if(a.length>1){w=W(s.helper(Bf),a,l)}else{w=a[0]}}else if(c.length){w=fp(Kh(c),l)}if(y){d|=16}else{if(m&&!i){d|=2}if(g&&!i){d|=4}if(_.length){d|=8}if(v){d|=32}}if(!p&&(d===0||d===32)&&(h||b||u.length>0)){d|=512}if(!s.inSSR&&w){switch(w.type){case 15:let t=-1;let n=-1;let o=false;for(let e=0;e<w.properties.length;e++){const M=w.properties[e].key;if(Np(M)){if(M.content==="class"){t=e}else if(M.content==="style"){n=e}}else if(!M.isHandlerKey){o=true}}const e=w.properties[t];const R=w.properties[n];if(!o){if(e&&!Np(e.value)){e.value=W(s.helper(Hf),[e.value])}if(R&&(g||R.value.type===4&&R.value.content.trim()[0]===`[`||R.value.type===17)){R.value=W(s.helper(qf),[R.value])}}else{w=W(s.helper(zf),[w])}break;case 14:break;default:w=W(s.helper(zf),[W(s.helper(Wf),[w])]);break}}return{props:w,directives:u,patchFlag:d,dynamicPropNames:_,shouldUseBlock:p}}function Kh(t){const n=new Map;const o=[];for(let e=0;e<t.length;e++){const s=t[e];if(s.key.type===8||!s.key.isStatic){o.push(s);continue}const i=s.key.content;const r=n.get(i);if(r){if(i==="style"||i==="class"||G(i)){Gh(r,s)}}else{n.set(i,s);o.push(s)}}return o}function Gh(e,t){if(e.value.type===17){e.value.elements.push(t.value)}else{e.value=up([e.value,t.value],e.loc)}}function Jh(e,t){const n=[];const o=Hh.get(e);if(o){n.push(t.helperString(o))}else{{t.helper(Mf);t.directives.add(e.name);n.push(Qp(e.name,`directive`))}}const{loc:s}=e;if(e.exp)n.push(e.exp);if(e.arg){if(!e.exp){n.push(`void 0`)}n.push(e.arg)}if(Object.keys(e.modifiers).length){if(!e.arg){if(!e.exp){n.push(`void 0`)}n.push(`void 0`)}const i=z(`true`,false,s);n.push(fp(e.modifiers.map(e=>q(e,i)),s))}return up(n,e.loc)}function Xh(n){let o=`[`;for(let e=0,t=n.length;e<t;e++){o+=JSON.stringify(n[e]);if(e<t-1)o+=", "}return o+`]`}function Yh(e){return e==="component"||e==="Component"}const Qh=(t,n)=>{if(Kp(t)){const{children:o,loc:s}=t;const{slotName:i,slotProps:r}=Zh(t,n);const l=[n.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,"{}","undefined","true"];let e=2;if(r){l[2]=r;e=3}if(o.length){l[3]=dp([],o,false,false,s);e=4}if(n.scopeId&&!n.slotted){e=5}l.splice(e);t.codegenNode=W(n.helper(Uf),l,s)}};function Zh(n,e){let o=`"default"`;let t=void 0;const s=[];for(let t=0;t<n.props.length;t++){const e=n.props[t];if(e.type===6){if(e.value){if(e.name==="name"){o=JSON.stringify(e.value.content)}else{e.name=T(e.name);s.push(e)}}}else{if(e.name==="bind"&&Bp(e.arg,"name")){if(e.exp)o=e.exp}else{if(e.name==="bind"&&e.arg&&Np(e.arg)){e.arg.content=T(e.arg.content)}s.push(e)}}}if(s.length>0){const{props:i,directives:r}=Wh(n,e,s,false,false);t=i;if(r.length){e.onError(K(36,r[0].loc))}}return{slotName:o,slotProps:t}}const em=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;const tm=(e,t,n,o)=>{const{loc:s,modifiers:i,arg:r}=e;if(!e.exp&&!i.length){n.onError(K(35,s))}let l;if(r.type===4){if(r.isStatic){let e=r.content;if(e.startsWith("vnode")){n.onError(K(51,r.loc))}if(e.startsWith("vue:")){e=`vnode-${e.slice(4)}`}const f=t.tagType!==0||e.startsWith("vnode")||!/[A-Z]/.test(e)?U(T(e)):`on:${e}`;l=z(f,true,r.loc)}else{l=pp([`${n.helperString(Xf)}(`,r,`)`])}}else{l=r;l.children.unshift(`${n.helperString(Xf)}(`);l.children.push(`)`)}let c=e.exp;if(c&&!c.content.trim()){c=void 0}let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const p=jp(c.content);const d=!(p||em.test(c.content));const h=c.content.includes(`;`);{xh(c,n,false,h)}if(d||a&&p){c=pp([`${d?`$event`:`${``}(...args)`} => ${h?`{`:`(`}`,c,h?`}`:`)`])}}let u={props:[q(l,c||z(`() => {}`,false,s))]};if(o){u=o(u)}if(a){u.props[0].value=n.cache(u.props[0].value)}u.props.forEach(e=>e.key.isHandlerKey=true);return u};const nm=(e,t,n)=>{const{modifiers:o,loc:s}=e;const i=e.arg;let{exp:r}=e;if(!r&&i.type===4){const l=T(i.content);r=e.exp=z(l,false,i.loc)}if(i.type!==4){i.children.unshift(`(`);i.children.push(`) || ""`)}else if(!i.isStatic){i.content=`${i.content} || ""`}if(o.includes("camel")){if(i.type===4){if(i.isStatic){i.content=T(i.content)}else{i.content=`${n.helperString(Gf)}(${i.content})`}}else{i.children.unshift(`${n.helperString(Gf)}(`);i.children.push(`)`)}}if(!n.inSSR){if(o.includes("prop")){om(i,".")}if(o.includes("attr")){om(i,"^")}}if(!r||r.type===4&&!r.content.trim()){n.onError(K(34,s));return{props:[q(i,z("",true,s))]}}return{props:[q(i,r)]}};const om=(e,t)=>{if(e.type===4){if(e.isStatic){e.content=t+e.content}else{e.content=`\`${t}\${${e.content}}\``}}else{e.children.unshift(`'${t}' + (`);e.children.push(`)`)}};const sm=(r,l)=>{if(r.type===0||r.type===1||r.type===11||r.type===10){return()=>{const n=r.children;let o=void 0;let e=false;for(let t=0;t<n.length;t++){const s=n[t];if(qp(s)){e=true;for(let e=t+1;e<n.length;e++){const i=n[e];if(qp(i)){if(!o){o=n[t]=pp([s],s.loc)}o.children.push(` + `,i);n.splice(e,1);e--}else{o=void 0;break}}}}if(!e||n.length===1&&(r.type===0||r.type===1&&r.tagType===0&&!r.props.find(e=>e.type===7&&!l.directiveTransforms[e.name])&&true)){return}for(let e=0;e<n.length;e++){const s=n[e];if(qp(s)||s.type===8){const t=[];if(s.type!==2||s.content!==" "){t.push(s)}if(!l.ssr&&Fd(s,l)===0){t.push(1+` /* ${de[1]} */`)}n[e]={type:12,content:s,loc:s.loc,codegenNode:W(l.helper(Of),t)}}}}}};const im=new WeakSet;const rm=(e,t)=>{if(e.type===1&&Vp(e,"once",true)){if(im.has(e)||t.inVOnce||t.inSSR){return}im.add(e);t.inVOnce=true;t.helper(Yf);return()=>{t.inVOnce=false;const e=t.currentNode;if(e.codegenNode){e.codegenNode=t.cache(e.codegenNode,true)}}}};const lm=(e,t,n)=>{const{exp:o,arg:s}=e;if(!o){n.onError(K(41,e.loc));return cm()}const i=o.loc.source;const r=o.type===4?o.content:i;const l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased"){n.onError(K(44,o.loc));return cm()}const c=false;if(!r.trim()||!jp(r)&&!c){n.onError(K(42,o.loc));return cm()}const a=s?s:z("modelValue",true);const u=s?Np(s)?`onUpdate:${T(s.content)}`:pp(['"onUpdate:" + ',s]):`onUpdate:modelValue`;let f;const p=n.isTS?`($event: any)`:`$event`;{f=pp([`${p} => ((`,o,`) = $event)`])}const d=[q(a,e.exp),q(u,f)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(e=>(Ip(e)?e:JSON.stringify(e))+`: true`).join(`, `);const m=s?Np(s)?`${s.content}Modifiers`:pp([s,' + "Modifiers"']):`modelModifiers`;d.push(q(m,z(`{ ${h} }`,false,e.loc,2)))}return cm(d)};function cm(e=[]){return{props:e}}const am=new WeakSet;const um=(t,n)=>{if(t.type===1){const o=Vp(t,"memo");if(!o||am.has(t)){return}am.add(t);return()=>{const e=t.codegenNode||n.currentNode.codegenNode;if(e&&e.type===13){if(t.tagType!==1){bp(e,n)}t.codegenNode=W(n.helper(op),[o.exp,dp(void 0,e),`_cache`,String(n.cached++)])}}}};function fm(e){return[[rm,Ch,um,Oh,...[],...[wh],Qh,qh,Lh,sm],{on:tm,bind:nm,model:lm}]}function pm(e,t={}){const n=t.onError||Ap;const o=t.mode==="module";{if(t.prefixIdentifiers===true){n(K(47))}else if(o){n(K(48))}}const s=false;if(t.cacheHandlers){n(K(49))}if(t.scopeId&&!o){n(K(50))}const i=E({},t,{prefixIdentifiers:s});const r=k(e)?Pd(e,i):e;const[l,c]=fm();Hd(r,E({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:E({},c,t.directiveTransforms||{})}));return Yd(r,i)}const dm=()=>({props:[]});const hm=Symbol(`vModelRadio`);const mm=Symbol(`vModelCheckbox`);const gm=Symbol(`vModelText`);const vm=Symbol(`vModelSelect`);const ym=Symbol(`vModelDynamic`);const bm=Symbol(`vOnModifiersGuard`);const _m=Symbol(`vOnKeysGuard`);const xm=Symbol(`vShow`);const wm=Symbol(`Transition`);const Sm=Symbol(`TransitionGroup`);rp({[hm]:`vModelRadio`,[mm]:`vModelCheckbox`,[gm]:`vModelText`,[vm]:`vModelSelect`,[ym]:`vModelDynamic`,[bm]:`withModifiers`,[_m]:`withKeys`,[xm]:`vShow`,[wm]:`Transition`,[Sm]:`TransitionGroup`});let Cm;function km(e,t=false){if(!Cm){Cm=document.createElement("div")}if(t){Cm.innerHTML=`<div foo="${e.replace(/"/g,""")}">`;return Cm.children[0].getAttribute("foo")}else{Cm.innerHTML=e;return Cm.textContent}}const Tm={parseMode:"html",isVoidTag:Re,isNativeTag:e=>Oe(e)||Pe(e)||Ie(e),isPreTag:e=>e==="pre",decodeEntities:km,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition"){return wm}else if(e==="TransitionGroup"||e==="transition-group"){return Sm}},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2){if(t.tag==="annotation-xml"){if(e==="svg"){return 1}if(t.props.some(e=>e.type===6&&e.name==="encoding"&&e.value!=null&&(e.value.content==="text/html"||e.value.content==="application/xhtml+xml"))){o=0}}else if(/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"){o=0}}else if(t&&o===1){if(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title"){o=0}}if(o===0){if(e==="svg"){return 1}if(e==="math"){return 2}}return o}};const Am=n=>{if(n.type===1){n.props.forEach((e,t)=>{if(e.type===6&&e.name==="style"&&e.value){n.props[t]={type:7,name:`bind`,arg:z(`style`,true,e.loc),exp:$m(e.value.content,e.loc),modifiers:[],loc:e.loc}}})}};const $m=(e,t)=>{const n=Se(e);return z(JSON.stringify(n),false,t,3)};function Em(e,t){return K(e,t,Nm)}const Nm={[53]:`v-html is missing expression.`,[54]:`v-html will override element children.`,[55]:`v-text is missing expression.`,[56]:`v-text will override element children.`,[57]:`v-model can only be used on <input>, <textarea> and <select> elements.`,[58]:`v-model argument is not supported on plain elements.`,[59]:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,[60]:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,[61]:`v-show is missing expression.`,[62]:`<Transition> expects exactly one child element or component.`,[63]:`Tags with side effect (<script> and <style>) are ignored in client component templates.`};const Om=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(53,s))}if(t.children.length){n.onError(Em(54,s));t.children.length=0}return{props:[q(z(`innerHTML`,true,s),o||z("",true))]}};const Pm=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(55,s))}if(t.children.length){n.onError(Em(56,s));t.children.length=0}return{props:[q(z(`textContent`,true),o?Fd(o,n)>0?o:W(n.helperString(Df),[o],s):z("",true))]}};const Im=(n,o,s)=>{const i=lm(n,o,s);if(!i.props.length||o.tagType===1){return i}if(n.arg){s.onError(Em(58,n.arg.loc))}function r(){const e=Vp(o,"bind");if(e&&Bp(e.arg,"value")){s.onError(Em(60,e.loc))}}const{tag:l}=o;const c=s.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||c){let e=gm;let t=false;if(l==="input"||c){const a=Dp(o,`type`);if(a){if(a.type===7){e=ym}else if(a.value){switch(a.value.content){case"radio":e=hm;break;case"checkbox":e=mm;break;case"file":t=true;s.onError(Em(59,n.loc));break;default:r();break}}}else if(Hp(o)){e=ym}else{r()}}else if(l==="select"){e=vm}else{r()}if(!t){i.needRuntime=s.helper(e)}}else{s.onError(Em(57,n.loc))}i.props=i.props.filter(e=>!(e.key.type===4&&e.key.content==="modelValue"));return i};const Rm=t(`passive,once,capture`);const Mm=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`);const Fm=t("left,right");const Lm=t(`onkeyup,onkeydown,onkeypress`,true);const jm=(t,n,e,o)=>{const s=[];const i=[];const r=[];for(let e=0;e<n.length;e++){const l=n[e];if(Rm(l)){r.push(l)}else{if(Fm(l)){if(Np(t)){if(Lm(t.content)){s.push(l)}else{i.push(l)}}else{s.push(l);i.push(l)}}else{if(Mm(l)){i.push(l)}else{s.push(l)}}}}return{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:r}};const Um=(e,t)=>{const n=Np(e)&&e.content.toLowerCase()==="onclick";return n?z(t,true):e.type!==4?pp([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]):e};const Vm=(c,e,a)=>{return tm(c,e,a,e=>{const{modifiers:t}=c;if(!t.length)return e;let{key:n,value:o}=e.props[0];const{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:r}=jm(n,t,a,c.loc);if(i.includes("right")){n=Um(n,`onContextmenu`)}if(i.includes("middle")){n=Um(n,`onMouseup`)}if(i.length){o=W(a.helper(bm),[o,JSON.stringify(i)])}if(s.length&&(!Np(n)||Lm(n.content))){o=W(a.helper(_m),[o,JSON.stringify(s)])}if(r.length){const l=r.map(j).join("");n=Np(n)?z(`${n.content}${l}`,true):pp([`(`,n,`) + "${l}"`])}return{props:[q(n,o)]}})};const Dm=(e,t,n)=>{const{exp:o,loc:s}=e;if(!o){n.onError(Em(61,s))}return{props:[],needRuntime:n.helper(xm)}};const Bm=(n,e)=>{if(n.type===1&&n.tagType===1){const t=e.isBuiltInComponent(n.tag);if(t===wm){return()=>{if(!n.children.length){return}if(Hm(n)){e.onError(Em(62,{start:n.children[0].loc.start,end:n.children[n.children.length-1].loc.end,source:""}))}const t=n.children[0];if(t.type===1){for(const e of t.props){if(e.type===7&&e.name==="show"){n.props.push({type:6,name:"persisted",nameLoc:n.loc,value:void 0,loc:n.loc})}}}}}}};function Hm(e){const t=e.children=e.children.filter(e=>e.type!==3&&!(e.type===2&&!e.content.trim()));const n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Hm)}const qm=(e,t)=>{if(e.type===1&&e.tagType===0&&(e.tag==="script___"||e.tag==="style___")){t.onError(Em(63,e.loc));t.removeNode()}};const zm=[Am,...[Bm]];const Wm={cloak:dm,html:Om,text:Pm,model:Im,on:Vm,show:Dm};function Km(e,t={}){return pm(e,E({},Tm,t,{nodeTransforms:[qm,...zm,...t.nodeTransforms||[]],directiveTransforms:E({},Wm,t.directiveTransforms||{}),transformHoist:null}))}{bf()}const Gm=new WeakMap;function Jm(e){let t=Gm.get(e!=null?e:X);if(!t){t=Object.create(null);Gm.set(e!=null?e:X,t)}return t}function Xm(s,e){if(!k(s)){if(s.nodeType){s=s.innerHTML}else{p(`invalid template option: `,s);return Y}}const t=s;const n=Jm(e);const o=n[t];if(o){return o}if(s[0]==="#"){const a=document.querySelector(s);if(!a){p(`Template element not found or is empty: ${s}`)}s=a?a.innerHTML:``}const i=E({hoistStatic:true,onError:l,onWarn:e=>l(e,true)},e);if(!i.isCustomElement&&typeof customElements!=="undefined"){i.isCustomElement=e=>!!customElements.get(e)}const{code:r}=Km(s,i);function l(e,t=false){const n=t?e.message:`Template compilation error: ${e.message}`;const o=e.loc&&ye(s,e.loc.start.offset,e.loc.end.offset);p(o?`${n}
|
|
29
29
|
${o}`:n)}const c=new Function(r)();c._rc=true;return n[t]=c}Kc(Xm);e.BaseTransition=di;e.BaseTransitionPropsValidators=fi;e.Comment=te;e.DeprecationTypes=ya;e.EffectScope=Xe;e.ErrorCodes=oo;e.ErrorTypeStrings=pa;e.Fragment=ee;e.KeepAlive=Ti;e.ReactiveEffect=nt;e.Static=Zl;e.Suspense=Ms;e.Teleport=Xl;e.Text=Ql;e.TrackOpTypes=Wn;e.Transition=Aa;e.TransitionGroup=Iu;e.TriggerOpTypes=Kn;e.VueElement=ku;e.assertNumber=no;e.callWithAsyncErrorHandling=ro;e.callWithErrorHandling=io;e.camelize=T;e.capitalize=j;e.cloneVNode=_c;e.compatUtils=va;e.compile=Xm;e.computed=ia;e.createApp=pf;e.createBlock=cc;e.createCommentVNode=Cc;e.createElementBlock=lc;e.createElementVNode=vc;e.createHydrationRenderer=Rl;e.createPropsRestProxy=_r;e.createRenderer=Il;e.createSSRApp=df;e.createSlots=Ki;e.createStaticVNode=Sc;e.createTextVNode=wc;e.createVNode=ne;e.customRef=Vn;e.defineAsyncComponent=wi;e.defineComponent=_i;e.defineCustomElement=wu;e.defineEmits=cr;e.defineExpose=ar;e.defineModel=pr;e.defineOptions=ur;e.defineProps=lr;e.defineSSRCustomElement=Su;e.defineSlots=fr;e.devtools=da;e.effect=lt;e.effectScope=Ye;e.getCurrentInstance=Ic;e.getCurrentScope=Ze;e.getTransitionRawChildren=bi;e.guardReactiveProps=bc;e.h=la;e.handleError=lo;e.hasInjectionContext=qr;e.hydrate=ff;e.initCustomFormatter=ca;e.initDirectivesForSSR=yf;e.inject=Hr;e.isMemoSame=ua;e.isProxy=wn;e.isReactive=bn;e.isReadonly=_n;e.isRef=C;e.isRuntimeOnly=Gc;e.isShallow=xn;e.isVNode=ac;e.markRaw=Sn;e.mergeDefaults=yr;e.mergeModels=br;e.mergeProps=$c;e.nextTick=bo;e.normalizeClass=ke;e.normalizeProps=Te;e.normalizeStyle=be;e.onActivated=$i;e.onBeforeMount=Fi;e.onBeforeUnmount=Vi;e.onBeforeUpdate=ji;e.onDeactivated=Ei;e.onErrorCaptured=zi;e.onMounted=Li;e.onRenderTracked=qi;e.onRenderTriggered=Hi;e.onScopeDispose=et;e.onServerPrefetch=Bi;e.onUnmounted=Di;e.onUpdated=Ui;e.openBlock=nc;e.popScopeId=us;e.provide=Br;e.proxyRefs=jn;e.pushScopeId=as;e.queuePostFlushCb=Co;e.reactive=hn;e.readonly=gn;e.ref=Nn;e.registerRuntimeCompiler=Kc;e.render=uf;e.renderList=Wi;e.renderSlot=Gi;e.resolveComponent=Ts;e.resolveDirective=Es;e.resolveDynamicComponent=$s;e.resolveFilter=ga;e.resolveTransitionHooks=mi;e.setBlockTracking=ic;e.setDevtoolsHook=ha;e.setTransitionHooks=yi;e.shallowReactive=mn;e.shallowReadonly=vn;e.shallowRef=On;e.ssrContextKey=Ks;e.ssrUtils=ma;e.stop=ct;e.toDisplayString=ze;e.toHandlerKey=U;e.toHandlers=Xi;e.toRaw=b;e.toRef=qn;e.toRefs=Dn;e.toValue=Fn;e.transformVNodeArgs=pc;e.triggerRef=Rn;e.unref=Mn;e.useAttrs=mr;e.useCssModule=Tu;e.useCssVars=Ja;e.useModel=ra;e.useSSRContext=Gs;e.useSlots=hr;e.useTransitionState=ai;e.vModelCheckbox=Hu;e.vModelDynamic=Xu;e.vModelRadio=zu;e.vModelSelect=Wu;e.vModelText=Bu;e.vShow=Wa;e.version=fa;e.warn=p;e.watch=Zs;e.watchEffect=Js;e.watchPostEffect=Xs;e.watchSyncEffect=Ys;e.withAsyncContext=xr;e.withCtx=ps;e.withDefaults=dr;e.withDirectives=ii;e.withKeys=of;e.withMemo=aa;e.withModifiers=tf;e.withScopeId=fs;return e}({});window.Vue=Vue;function build(options,exports){if(typeof exports=="undefined"){exports={}}var _options={resolveModulesParallelly:true,removeStyleWhenUnmount:false,mobile:function(){return false},httpGet:function(e){return fetch(e)},httpGetSync:function(e){if(useRelativePath){if(e.length&&e[0]=="/"){e=e.substr(1)}}var t=new XMLHttpRequest;t.open("get",e,false);t.send();return t.responseText},onNotFound:function(e,t){if(e.indexOf("/404")==0){throw"No not-found template found"}if(t){return Redirect("/404?"+_serializeOptionsToUrl(t))}else{return Redirect("/404")}},reuseContainerActiveView(e){return true},callCreatedWhenReuseContainerActiveView(e){return true},callMountedWhenReuseContainerActiveView(e){return true},callUnmountedWhenReuseContainerActiveView(e){return true},resetDataWhenReuseContainerActiveView(e){return true},generateTitle(e){return e.join(" - ")}};_combineObject(options,_options);var _cache={};var _css={};function _httpCached(e){return!!_cache[e]}function _httpGet(n){if(_cache[n]){return Promise.resolve(_cache[n])}var e=n;if(_options.version){if(n.indexOf("?")>0){e+="&"}else{e+="?"}e+="v="+_options.version}return _options.httpGet(e).then(function(e){if(e.status>300||e.status<200){return Promise.reject(e)}var t=e.text();_cache[n]=t;return Promise.resolve(t)}).catch(function(e){Promise.reject(e)})}function _httpExist(e){return _httpGet(e).then(function(){return Promise.resolve(true)}).catch(function(){return Promise.resolve(false)})}function _serializeOptionsToUrl(e){var t=Object.getOwnPropertyNames(e);var n="";for(var o=0;o<t.length;++o){n+=encodeURIComponent(t[o])+"="+encodeURIComponent(e[t[o]])+"&"}if(n[n.length-1]==="&"){n=n.substr(0,n.length-1)}return n}var _root=null;function root(){return _root}exports._rules=[];function useRoutes(e){var t=_options.httpGetSync(e);t=JSON.parse(t);if(!exports._rules){exports._rules={}}_combineObject(t,exports._rules)}function _combineObject(e,t){if(!e){return}var n=Object.getOwnPropertyNames(e);for(var o=0;o<n.length;++o){t[n[o]]=e[n[o]]}}function _getQueryString(){var e=window.location.search;if(window.location.hash.indexOf("?")>0){var t=window.location.hash.substr(window.location.hash.indexOf("?"));if(e){e+="&"+t.substr(1)}else{e=t}}return e}function _parseQueryString(e){var t=_getQueryString();if(!t){return}var n=t;if(n[0]=="?"){n=n.substr(1)}var o=n.split("&");for(var s=0;s<o.length;++s){var i=o[s].split("=");var r=decodeURIComponent(i[0]);var l=decodeURIComponent(i[1]);_fillObjectField(r,l,e)}}function _resolveModules(e,n){if(!e){return Promise.resolve()}if(_options.resolveModulesParallelly){var t=[];for(var o=0;o<e.length;++o){t.push(LoadScript(parseMacroPath(n,e[o])))}return Promise.all(t)}else{var s=Promise.resolve(null);var i=function(t){return function(e){return LoadScript(parseMacroPath(n,t))}};for(var o=0;o<e.length;++o){var r=e[o];s=s.then(i(r))}return s}}function _buildApp(url,params,mobile,parent){var componentObject={};return _httpGet(url+".js").then(function(js){var Page=function(e){componentObject=e};if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(js+"\r\n//# sourceURL="+url+".js");hookMountedAndUnmounted(componentObject,url+(mobile?".m":""));return _resolveModules(componentObject.modules||[],url).then(function(){return Promise.resolve(componentObject)})}).then(function(t){var e=null;if(mobile){e=_httpExist(url+".m.html").then(function(e){return _httpGet(url+(e?".m.html":".html"))})}else{e=_httpGet(url+".html")}return e.then(function(e){if(!t.template){t.template=e}_patchComponent(url,t);return Promise.resolve(t)})}).then(function(i){var o=i.setup;i.setup=function(e,t){if(typeof o=="function"){o(e,t)}var n=Vue.getCurrentInstance();n.$parent=parent||exports.root();n.$root=exports.root()||parent;n.$view=url;n.$app=exports;n.$data=i.data||function(){return{}};n.$created=i.created||function(){};n.$mounted=i.mounted||function(){};n.$unmounted=i.unmounted||function(){};_attachContainer(n)};var t=i.data||function(){return{}};i.data=function(){var e=t.call(this,exports);_combineObject(params,e);_parseQueryString(e);return e};return _resolveModules(i.modules,url).then(function(){var e=i.components||[];return _loadComponents(e,url).then(function(e){var t=Vue.createApp(i);for(var n=0;n<e.length;++n){var o=e[n];t.component(o.name,o.options)}var s=t.mount||function(){};t.mount=function(e){t.proxy=s(e);return t.proxy};return Promise.resolve(t)})})})}function _replace(e,t,n){var o=e.indexOf(t);if(o<0){return e}var s=e.substr(0,o)+n+e.substr(o+t.length);return s}function sleep(t){return new Promise(function(e){setTimeout(function(){e()},t)})}function yield(){return sleep(0)}function _attachContainer(a){if(!a){console.warn("Invalid view model")}if(!a.$containers){a.$containers=[]}if(!a.$containers){a.$containers=[]}var n=a.$containers;a.$container=function(t){var e=n.filter(e=>e.selector==t)[0];if(!e){e={element:document.querySelector(t),selector:t,open:function(e,o){var t=_options.mobile();var n=null;if(a.proxy){n=a.proxy}if(a.$&&a.$.proxy){n=a.$.proxy}if(!this.active||this.active.$view!=e||!_options.reuseContainerActiveView()){this.close()}var s=this;o=generateParametersFromRoute(o);_parseQueryString(o);if(_options.reuseContainerActiveView()&&this.active?.$view==e){var i=function(t){var e=Promise.resolve();if(!t||!t.active){return e}if(_options.callUnmountedWhenReuseContainerActiveView(t.active.$view)){e=e.then(function(){var e=t.active.$unmounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}e=e.then(function(){var e=t.active.$data();if(_options.resetDataWhenReuseContainerActiveView()){_combineObject(e,t.active)}_combineObject(o,t.active);return Promise.resolve()});if(_options.callCreatedWhenReuseContainerActiveView(t.active.$view)){e=e.then(function(){var e=t.active.$created();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(_options.callMountedWhenReuseContainerActiveView(t.active.$view)){e=e.then(function(){var e=t.active.$mounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(t.active.$containers&&t.active.$containers.length){for(var n=0;n<t.active.$containers.length;++n){i(t.active.$containers[n])}}return e.then(function(){t.active.$forceUpdate();return Promise.resolve(t.active)})};return Promise.resolve(i(this))}var r;var l=20;var c=function(){return new Promise(function(e,t){var n=r.mount(s.selector);if(n){s.active=n;return Promise.resolve(n)}if(--l>0){return sleep(50).then(function(){return c()})}else{return Promise.reject("Mount component to "+s.selector+" failed")}})};return _buildApp(e,o,t,n).then(function(e){r=e;return c()})},close:function(n=true){function o(e){if(e.active&&e.active.$){if(n){for(var t=0;t<e.active.$containers.length;++t){o(e.active.$containers[t])}}e.active.$.appContext.app.unmount();e.active=null}}o(this)},active:null};n.push(e)}return e}}function Root(s,i,t){s=s||{};if(typeof s.setup!="function"){s.setup=function(){}}var n=s.setup;s.setup=function(){n();var e=Vue.getCurrentInstance();e.$parent=parent||exports.root();e.$root=exports.root()||parent;e.$onUpdating=s.onUpdating;e.$app=exports;if(t){e.$layout=t;e.$view=t}_attachContainer(e)};return _resolveModules(s.modules,t).then(function(){return _loadComponents(s.components||[],t).then(function(e){var t=Vue.createApp(s||{});for(var n=0;n<e.length;++n){var o=e[n];t.component(o.name,o.options)}_root=t.mount(i);_root.$.proxy=_root})})}function mount(){function o(e){if(!e){return null}if(!e.getAttribute){return null}var t=e.getAttribute("target")||"_self";var n=e.getAttribute("static-link")||e.getAttribute("v-static")||e.getAttribute("pomelo-static");if(n==null&&t.toLowerCase()=="_self"&&e.tagName.toLowerCase()=="a"){return e.getAttribute("href")}return o(e.parentNode)}window.addEventListener("click",function(e){if(!e)return;var t=o(e.target);if(t){exports.redirect(t);e.preventDefault();return}});window.onpopstate=function(){UpdateLayout()};return UpdateLayout()}function UseConfig(e){_combineObject(e,_options)}function MapRoute(e,t){if(!exports._rules){exports._rules={}}exports._rules[e]=t}function ForceUpdate(e=exports.root()){if(!e)return;e.$forceUpdate();if(e.$containers){for(var t=0;t<e.$containers.length;++t){if(e.$containers[t].active){ForceUpdate(e.$containers[t].active)}}}}function MatchRoute(){function e(e,t,n){return e.replace(new RegExp(t,"g"),n)}function t(e){var t=[];if(!e){return t}var n=-1;var o=0;for(var s=0;s<e.length;++s){if(e[s]=="{"&&!o){n=s;o=0}else if(e[s]=="("){++o}else if(e[s]==")"){--o}else if(e[s]=="}"&&!o){t.push(e.substring(n,s+1))}}return t}function n(e){if(e[0]==="{"){return e.substr(1,e.length-2)}else{return e}}function o(e){return e.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g,"\\$&")}function s(e){var t=0;if(e){for(var n=0;n<e.length;++n){if(e[n]=="("){++t}if(e[n]=="?"&&n>0&&e[n-1]=="("){--t}}}return t}var i=Object.getOwnPropertyNames(exports._rules);for(var r=0;r<i.length;++r){var l=i[r];var c=l[0]=="#";var a=exports._rules[i[r]];var u=t(l);var f=[];var p=[];for(var d=0;d<u.length;++d){var h=u[d];var m=n(h);regex="([^/]+)";if(m[0]=="*"){regex="(.*)";m=m.substr(1)}if(m.indexOf("=")>0){var g=m.substr(m.indexOf("=")+1);regex=`(${o(g)})`;f.push(m.substr(0,m.indexOf("=")))}else if(h.indexOf(":")>0){regex=h.substr(h.indexOf(":")+1);regex=regex.substr(0,regex.length-1);f.push(m.substr(0,m.indexOf(":")))}else{f.push(m)}p.push(s(regex));l=_replace(l,h,regex)}var v=new RegExp("^"+l+"$");var u=v.exec(c?window.location.hash||"#":window.location.pathname);if(u){var y={view:a,params:[]};var b=u;u=[];var _=0;for(var d=1;d<b.length;++d){u.push(b[d]);for(var m=0;m<p[_]-1;++m){++d}++_}var x=u.map(function(e){return decodeURIComponent(e)});for(var d=0;d<f.length;++d){y.params.push({key:f[d],value:x[d]})}return y}}return null}function _fillObjectField(e,t,n){if(!n){return}var o=e.split(".");for(var s=0;s<o.length-1;++s){if(!n[o[s]]){n[o[s]]={}}n=n[o[s]]}n[o[o.length-1]]=t}function _applyLayoutHtml(e){return _httpGet(e+(_options.mobile()?".m.html":".html")).then(function(e){var t=e.indexOf("<html");var n=e.indexOf(">",t);e=e.substr(n+1);var o=e.lastIndexOf("</html>");e=e.substr(0,o);document.querySelector("html").innerHTML=e;var s=(new Date).getTime();var i="pomelo-"+s;document.querySelector("body").innerHTML='<div id="'+i+'">'+document.querySelector("body").innerHTML+"</div>";return Promise.resolve(i)})}function generateParametersFromRoute(e={}){var t=null;t=MatchRoute();if(t==null){try{_options.onNotFound(window.location.pathname+window.location.search);return}catch(e){throw"No available route found."}}for(var n=0;n<t.params.length;++n){var o=t.params[n];_fillObjectField(o.key,o.value,e)}return e}function parseMacroPath(e,t){if(!t){t=""}if(t.indexOf("@")<0){return t}var n="/";var o=e.lastIndexOf("/");if(o>=0){n=e.substr(0,o)}t=t.replaceAll("@(view)",e).replaceAll("@(js)",e+".js").replaceAll("@(html)",e+".html").replaceAll("@(mobileHtml)",e+".m.html").replaceAll("@(css)",e+".css").replaceAll("@(mobileCss)",e+".m.css").replaceAll("@(less)",e+".less").replaceAll("@(mobileLess)",e+".m.less").replaceAll("@(mobileSass)",e+".m.sass").replaceAll("@(mobileScss)",e+".m.scss").replaceAll("@(containingFolder)",n);if(t.length&&t[0]!="/"&&t.indexOf("http")==-1){t=getContainingFolder(e)+t}return t}function appendCssReference(e,t){if(typeof t=="boolean"){var n=e+".css";if(_options.version){n+="?v="+_options.version}internalAppendCssReference(e,n)}else if(typeof t=="string"){var n=parseMacroPath(e,t);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}else if(t instanceof Array){for(var o=0;o<t.length;++o){if(typeof t[o]!="string"){continue}var n=parseMacroPath(e,t[o]);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}}else{throw"style type not supported"}}function getContainingFolder(e){if(!e){console.warn("getContainingFolder: absolutePath is invalid")}var t=e.lastIndexOf("/");if(t<0){return"/"}return e.substr(0,t)+"/"}function internalAppendCssReference(e,t){if(document.querySelectorAll('link[data-style="'+e+'"][href="'+t+'"]').length){return}var n=document.createElement("link");n.rel="stylesheet";n.type="text/"+getStyleSheetType(t);n.setAttribute("data-style",e);n.href=t;try{document.querySelector("head").appendChild(n)}catch(e){}}function getStyleSheetType(e){var t=e.lastIndexOf("?");if(t>=0){e=e.substr(0,t)}var n=e.lastIndexOf(".");if(n<0){return null}return e.substr(n+1).toLowerCase()}function removeCssReference(e){if(!_options.removeStyleWhenUnmount){return}var t=document.querySelectorAll('link[data-style="'+e+'"]');if(t&&t.length){for(var n=0;n<t.length;++n){t[n].remove()}}}function hookMountedAndUnmounted(e,t){if(!e){return}if(!e.mounted){e.mounted=function(){}}if(!e.unmounted){e.unmounted=function(){}}if(!e.created){e.created=function(){}}if(e.style){var n=e.created;e.created=function(){if(!_css[t]){_css[t]=0}if(_css[t]==0){appendCssReference(t,e.style)}++_css[t];return n.call(this)};var o=e.mounted;e.mounted=function(){return o.call(this)};var s=e.unmounted;e.unmounted=function(){if(!_css[t]){return}--_css[t];if(_css[t]<=0){removeCssReference(t);delete _css[t]}return s.call(this)}}}function pomeUiPassTitle(e){if(e){this.pomeUiSubTitles=e}var t=JSON.parse(JSON.stringify(this.pomeUiSubTitles));if(this.title){t.push(this.title)}if(this.$parent&&this.$parent!=window&&this.$parent.pomeUiPassTitle){this.$parent.pomeUiPassTitle(t)}else{document.querySelector("title").innerHTML=_options.generateTitle(t)}}function UpdateLayout(){var mobile=_options.mobile();var params={};var route=null;var layout=_options.layout;route=MatchRoute();params=generateParametersFromRoute();var _def;var viewName=route.view+(_options.mobile()?".m":"");return _httpGet(route.view+".js").then(function(def){_def=def;var modules=null;var _opt;var Page=function(e){_opt=e;layout=e.layout||layout;modules=e.modules};if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(route.view);return PomeloModule.require(e,t,n)}}def=eval(def+"\r\n//# sourceURL="+route.view+".js");hookMountedAndUnmounted(_opt,viewName);return _resolveModules(modules,viewName)}).then(function(){if(exports.root()&&exports.root().$layout){if(exports.root().$layout===layout){_parseQueryString(params);var fields=Object.getOwnPropertyNames(params);for(var i=0;i<fields.length;++i){var val=params[fields[i]];exports.root()[fields[i]]=val}exports.root().$containers[0].open(route.view,params);var promise=Promise.resolve();if(typeof exports.root().$.$onUpdating=="function"){var result=exports.root().$.$onUpdating.call(exports.root());if(result instanceof Promise){promise=result}}return promise}exports.root().$.appContext.app.unmount()}if(layout){var layoutName=layout+(mobile?".m":"");var _layoutHtml;return _httpGet(layoutName+".html").then(function(e){_layoutHtml=e;return _httpGet(layout+".js")}).then(function(js){var _opt=null;var Layout=function(e){_opt=e};var LayoutNext=function(e){if(!e.data){e.data=function(){return{}}}var o=e.setup||function(e,t){};e.setup=function(e,t){o(e,t);var n=Vue.getCurrentInstance();n.$app=exports};_opt.template=_layoutHtml;_patchComponent(layout,_opt);_layoutHtml=_opt.template;var t=_layoutHtml.indexOf("<html");var n=_layoutHtml.indexOf(">",t);_layoutHtml=_layoutHtml.substr(n+1);var s=_layoutHtml.lastIndexOf("</html>");_layoutHtml=_layoutHtml.substr(0,s);document.querySelector("html").innerHTML=_layoutHtml;var i=e.data;e.data=function(){var e=i.call(this,exports);_combineObject(params,e);_parseQueryString(e);return e};var r=(new Date).getTime();var l="pomelo-"+r;var c="container-"+r;var a=document.querySelector("body").innerHTML.replace("<render-body></render-body>",'<div id="'+c+'"></div>');document.querySelector("body").innerHTML='<div id="'+l+'">'+a+"</div>";e.template=null;if(!e.mounted){e.mounted=function(){}}mountedFunc=e.mounted;e.mounted=function(){var e=this.$container("#"+c);e.open(route.view,params);return mountedFunc.call(this)};Root(e,"#"+l,layout)};if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(layout);return PomeloModule.require(e,t,n)}}eval(js+"\r\n//# sourceURL="+layout+".js");hookMountedAndUnmounted(_opt,layoutName);return _resolveModules(_opt.modules,layout).then(function(){LayoutNext(_opt);return Promise.resolve()})})}else{var viewName=route.view+(_options.mobile()?".m":"");return _applyLayoutHtml(route.view).then(function(appId){var _opt=null;var components=null;var Page=function(e){_opt=e};var PageNext=function(e){modules=e.modules;components=e.components||[];Root(e,"#"+appId,route.view)};if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(route.view);return PomeloModule.require(e,t,n)}}eval(_def+"\r\n//# sourceURL="+route.view+".js");if(!_opt){_opt={}}if(!_opt.data){_opt.data=function(){return{}}}var dataFunc=_opt.data;_opt.data=function(){var e=dataFunc.call(this,exports);_combineObject(params,e);_parseQueryString(e);return e};hookMountedAndUnmounted(_opt,viewName);_patchComponent(viewName,_opt);return _resolveModules(_opt.modules,viewName).then(function(){PageNext(_opt);return Promise.resolve();P})})}}).then(function(){ForceUpdate()}).catch(function(e){console.error(e)})}function Redirect(e){var t=null;var n=document.querySelector("title");if(n){t=n.innerText}window.history.pushState(null,t,e);UpdateLayout()}function LoadScript(url){if(_httpCached(url)){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(_cache[url]+"\r\n//# sourceURL="+url)}return Promise.resolve()}return _httpGet(url).then(function(js){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(js+"\r\n//# sourceURL="+url)}_cache[url]=js;return Promise.resolve()}).catch(e=>{console.error("Load module "+url+" failed.");console.error(e)})}function resolveRelativePathPlain(e){if(e.indexOf("./")==-1&&e.indexOf("../")==-1){return e}var t=e.lastIndexOf("../");if(t==0){return e}e=e.replaceAll("/./","/");if(e.indexOf("./")==0){e=e.substr(2)}if(t){var n=e.substr(0,t);var o=e.substr(t);return resolveRelativePath(o,n)}}function resolveRelativePath(e,t){if(e.length&&e[0]=="/"||e.indexOf("http")==0){return resolveRelativePathPlain(e)}if(e.length&&e[0]!="."){return resolveRelativePathPlain(t+e)}if(e.indexOf("./")==0){return resolveRelativePath(e.substr(2),t)}if(e.indexOf("../")==0){e=e.substr(3);t=getContainingFolder(t.substr(0,t.length-1));return resolveRelativePath(e,t)}}function _loadComponents(components,viewName){var ret=[];if(!components.length){return Promise.resolve(ret)}var workingDirectory=getContainingFolder(viewName||"/");var viewName;var subComponentRefs=[];return Promise.all(components.map(function(c){c=resolveRelativePath(parseMacroPath(viewName,c),workingDirectory);viewName=c;var _html;var _name;var _opt;return _httpGet(c+".html").then(function(e){_html=e;return _httpGet(c+".js")}).then(function(comJs){var Component=function(e,t){_opt=t;_name=e};if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(c);return PomeloModule.require(e,t,n)}}eval(comJs+"\r\n//# sourceURL="+c+".js");subComponentRefs=_opt.components;hookMountedAndUnmounted(_opt,c);if(!_opt.template){_opt.template=_html}if(!_opt.setup){_opt.setup=function(){}}var originSetup=_opt.setup;_opt.setup=function(e,t){originSetup(e,t);var n=Vue.getCurrentInstance();n.$app=exports};_patchComponent(c,_opt);var originData=_opt.data||function(){return{}};_opt.data=function(){return originData.call(this,exports)};return _resolveModules(_opt.modules,c)}).then(function(){ret.push({name:_name,options:_opt});return Promise.resolve()})})).then(function(){return _loadComponents(subComponentRefs||[],viewName)}).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(ret.filter(e=>e.name==n.name).length){continue}ret.push(n)}return Promise.resolve(ret)})}exports._addins=[];function _patchComponent(n,i){prepared=true;if(!i.data){i.data=function(){return{}}}if(!i.style){i.style=[]}if(!i.style instanceof Array){if(i.style instanceof String){i.style=[i.style]}else{i.style=["@(css)"]}}if(!i.components){i.components=[]}if(!i.created){i.created=function(){}}if(!i.mounted){i.mounted=function(){}}if(!i.unmounted){i.unmounted=function(){}}if(!i.destroyed){i.destroyed=function(){}}if(!i.watch){i.watch={}}if(!i.computed){i.computed={}}let o=i.data;i.data=function(e){var t=o.call(this,e);var n={pomeUiSubTitles:[]};_combineObject(n,t);return t};if(!i.methods){i.methods={}}i.methods.pomeUiPassTitle=pomeUiPassTitle;if(!i.watch){i.watch={}}if(!i.watch.title){i.watch.title=function(){}}let s=i.watch.title;i.watch.title=async function(){var e=s.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e=Promise.resolve();t.pomeUiPassTitle();return e})};for(let t=0;t<exports._addins.length;++t){let e=exports._addins[t].view;let s=exports._addins[t].opt;if(e!="*"&&n!=e){continue}if(s.data){let o=i.data;i.data=function(e){var t=o.call(this,e);var n={};try{n=s.data.call(this,e)}catch(e){console.error(e)}_combineObject(n,t);return t}}if(s.style){if(s.style instanceof Boolean){s.style=["@(css)"]}if(s.style instanceof String){s.style=[s.style]}s.style.forEach(function(t){if(!i.style.some(e=>e==t)){i.push(t)}})}if(s.components){s.components.forEach(function(t){if(!i.components.some(e=>e==t)){i.components.push(t)}})}if(s.layout){i.layout=s.layout}if(s.props){if(!i.props){i.props=[]}s.props.forEach(function(t){if(!i.props.some(e=>e==t)){i.props.push(t)}})}if(s.watch){var r=Object.getOwnPropertyNames(s.watch);r.forEach(function(n){var o=i.watch[n];i.watch[n]=function(e,t){o.invoke(this,e,t);try{s.watch[n].invoke(this,e,t)}catch(e){console.error(e)}}})}if(s.computed){var r=Object.getOwnPropertyNames(s.computed);r.forEach(function(e){i.computed[e]=s.computed[e]})}if(s.methods){var l=i.setup||function(e,t){};i.setup=function(e,t){l(e,t);var n={};var o=Object.getOwnPropertyNames(i.methods);o.forEach(function(e){n[e]=i.methods[e]});var s=Vue.getCurrentInstance();s.$baseMethods=n};var c=Object.getOwnPropertyNames(s.methods);c.forEach(function(e){i.methods[e]=s.methods[e]})}if(s.created){let n=i.created;i.created=async function(){var e=n.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e;try{e=s.created.call(t)}catch(e){console.error(e)}if(!e instanceof Promise){e=Promise.resolve()}return e})}}if(s.mounted){let n=i.mounted;i.mounted=async function(){var e=n.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e;try{e=s.mounted.call(t)}catch(e){console.error(e)}if(!e instanceof Promise){e=Promise.resolve()}return e})}}if(s.unmounted){let n=i.unmounted;i.unmounted=async function(){var e=n.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e;try{e=s.unmounted.call(t)}catch(e){console.error(e)}if(!e instanceof Promise){e=Promise.resolve()}return e})}}if(s.destroyed){let n=i.destroyed;i.destroyed=async function(){var e=n.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e=s.destroyed.call(t);if(!e instanceof Promise){e=Promise.resolve()}return e})}}if(s.template){if(s.template instanceof Function){if(i.template){if(i.template.indexOf("<html")>=0){var a=(new DOMParser).parseFromString(i.template,"text/html");s.template(a);i.template=(new XMLSerializer).serializeToString(a)}else{i.template=`<pome-ui-template>${i.template}</pome-ui-template>`;var a=(new DOMParser).parseFromString(i.template,"text/html");s.template(a);i.template=(new XMLSerializer).serializeToString(a);i.template=i.template.substr(i.template.indexOf("<pome-ui-template>")+"<pome-ui-template>".length);i.template=i.template.substr(0,i.template.indexOf("</pome-ui-template>"))}}}else{i.template=s.template}}}let u=i.created;i.created=async function(){var e=u.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e=Promise.resolve();t.pomeUiPassTitle();return e})};let f=i.unmounted;i.unmounted=async function(){var e=f.call(this);if(!e||!e instanceof Promise){e=Promise.resolve()}var t=this;return e.then(function(){var e=Promise.resolve();t.pomeUiPassTitle([]);return e})}}function UseAddin(addinUrl){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};var js=_options.httpGetSync(addinUrl);eval(js)}function UseInlineAddin(script){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};eval(script)}exports.root=root;exports.useConfig=UseConfig;exports.mapRoute=MapRoute;exports.matchRoute=MatchRoute;exports.updateLayout=UpdateLayout;exports.redirect=Redirect;exports.loadScript=LoadScript;exports.forceUpdate=ForceUpdate;exports.mount=mount;exports.useRoutes=useRoutes;exports.useAddin=UseAddin;exports.useInlineAddin=UseInlineAddin;return exports}exports.build=build;
|