import{$t as e,At as t,C as n,D as r,Dt as i,Et as a,Ht as o,I as s,It as c,Jt as l,Lt as u,Mt as d,Nt as f,O as p,Ot as m,Q as h,Qt as g,Rt as _,S as v,Ut as y,V as b,Vt as x,W as S,Wt as C,Xt as w,Y as T,Yt as E,Z as D,Zt as O,_t as k,an as A,at as j,b as M,bt as ee,cn as te,ct as ne,g as re,i as ie,in as N,jt as ae,k as oe,kt as se,ln as ce,nn as le,nt as ue,o as de,on as fe,ot as pe,p as me,q as he,qt as ge,rn as _e,sn as ve,st as P,un as ye,w as be,x as F,xt as xe}from"./vue.runtime.esm-bundler-6_koQ1g6.js";import{_ as Se,a as Ce,c as we,i as Te,l as I,o as Ee,s as De}from"./index-BKdX9aPN.js";import{t as Oe}from"./_plugin-vue_export-helper-S3RvzygF.js";import{c as L,i as ke,l as Ae,n as je,o as Me,r as Ne,s as Pe,t as Fe}from"./competitions-Chlt1yqd.js";import{t as Ie}from"./adminCompetition-C_OuGbfR.js";import{n as Le,r as Re,t as ze}from"./competitionBranding-Bz_llsts.js";async function Be(e,t){let{data:n}=await Te.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}});return n.data??[]}async function Ve(e,t){let{data:n}=await Te.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function He(e,t){let{data:n}=await Te.post(`/competitions/${e}/form-schemas`,t);return n}async function Ue(e,t,n){let{data:r}=await Te.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function We(e,t){await Te.delete(`/competitions/${e}/form-schemas/${t}`)}function Ge(e){let t=e?.data??e;if(!t||typeof t!=`object`||!(`id`in t))throw Error(`渠道响应格式无效`);return t}async function Ke(e){let{data:t}=await Te.get(`/competitions/${e}/signup-channels`),n=t?.data??t;if(!Array.isArray(n))throw Error(`渠道列表响应格式无效`);return n}async function qe(e,t){let{data:n}=await Te.get(`/competitions/${e}/signup-channels/${t}`);return Ge(n)}async function Je(e,t){let{data:n}=await Te.post(`/competitions/${e}/signup-channels`,t);return Ge(n)}async function Ye(e,t,n){let{data:r}=await Te.put(`/competitions/${e}/signup-channels/${t}`,n);return Ge(r)}function Xe(e){if(!e||typeof e!=`object`)throw Error(`列表响应格式无效`);let t=e;if(Array.isArray(t.data)&&typeof t.current_page==`number`){let e=t.data;return{data:e,meta:{current_page:t.current_page,last_page:typeof t.last_page==`number`?t.last_page:1,per_page:typeof t.per_page==`number`?t.per_page:e.length||15,total:typeof t.total==`number`?t.total:e.length}}}throw Error(`列表响应格式无效`)}async function Ze(e,t){let{data:n}=await Te.get(`/competitions/${e}/applications`,{params:t});return Xe(n)}async function Qe(e,t){let{data:n}=await Te.get(`/competitions/${e}/applications/${t}`);if(!n||typeof n!=`object`)throw Error(`报名详情无效`);return n}async function $e(e,t,n,r){et((await Te.get(`/competitions/${e}/applications/${t}/files/${n}/download`,{responseType:`blob`})).data,r||`附件`)}function et(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function tt(e,t){if(!e)return t;let n=/filename\*=UTF-8''([^;]+)/i.exec(e);if(n?.[1])return decodeURIComponent(n[1]);let r=/filename="?([^";]+)"?/i.exec(e);return r?.[1]?r[1]:t}async function nt(e){if(Ce.isAxiosError(e)){let t=e.response?.data;if(t instanceof Blob){let e=await t.text();try{let t=JSON.parse(e);return Error(t.errors?.export?.[0]||t.errors?.part?.[0]||t.message||`导出失败`)}catch{}}if(t&&typeof t==`object`){let e=t;return Error(e.errors?.export?.[0]||e.errors?.part?.[0]||e.message||`导出失败`)}}return e instanceof Error?e:Error(`导出失败`)}function rt(e){return new Promise(t=>{window.setTimeout(t,e)})}async function it(e,t){try{let{data:n}=await Te.get(`/competitions/${e}/applications/export/meta`,{params:t});if(!n||typeof n!=`object`)throw Error(`导出信息无效`);return n}catch(e){throw await nt(e)}}async function at(e,t,n){let r;try{r=await Te.get(`/competitions/${e}/applications/export`,{params:{...t,part:n},responseType:`blob`,timeout:0})}catch(e){throw await nt(e)}let i=tt(r.headers[`content-disposition`],`报名信息导出_第${n}部分.zip`);et(r.data,i)}async function ot(e,t,n){let r=await it(e,t);for(let i=1;i<=r.part_count;i+=1)n?.(i,r.part_count),await at(e,t,i),i{ci[t]=e[t]})}function ct(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:pi}}function lt(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=pi){return e&&(s?(e.helper(Or),e.helper(Dt(e.inSSR,l))):e.helper(Et(e.inSSR,l)),o&&e.helper(Br)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function ut(e,t=pi){return{type:17,loc:t,elements:e}}function dt(e,t=pi){return{type:15,loc:t,properties:e}}function ft(e,t){return{type:16,loc:pi,key:E(e)?pt(e,!0):e,value:t}}function pt(e,t=!1,n=pi,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function mt(e,t){return{type:5,loc:t,content:E(e)?pt(e,!1,t):e}}function ht(e,t=pi){return{type:8,loc:t,children:e}}function gt(e,t=[],n=pi){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,r=!1,i=pi){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function vt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:pi}}function yt(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:pi}}function bt(e){return{type:21,body:e,loc:pi}}function xt(e){return{type:22,elements:e,loc:pi}}function St(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:pi}}function Ct(e,t){return{type:24,left:e,right:t,loc:pi}}function wt(e){return{type:25,expressions:e,loc:pi}}function Tt(e){return{type:26,returns:e,loc:pi}}function Et(e,t){return e||t?jr:Mr}function Dt(e,t){return e||t?kr:Ar}function Ot(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Et(r,e.isComponent)),t(Or),t(Dt(r,e.isComponent)))}function kt(e){return e>=97&&e<=122||e>=65&&e<=90}function At(e){return e===32||e===10||e===9||e===12||e===13}function jt(e){return e===47||e===62||At(e)}function Mt(e){let t=new Uint8Array(e.length);for(let n=0;n{e&&Yt(e,t)});break;case`RestElement`:Yt(e.argument,t);break;case`AssignmentPattern`:Yt(e.left,t);break}return t}function Xt(e){return Ti.includes(e.type)?Xt(e.expression):e}function Zt(e){switch(e){case`Teleport`:case`teleport`:return wr;case`Suspense`:case`suspense`:return Tr;case`KeepAlive`:case`keep-alive`:return Er;case`BaseTransition`:case`base-transition`:return Dr}}function Qt(e,t,n=t.length){return $t({offset:e.offset,line:e.line,column:e.column},t,n)}function $t(e,t,n=t.length){let r=0,i=-1;for(let e=0;ee.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function on(e){return e.type===5||e.type===2}function sn(e){return e.type===7&&e.name===`pre`}function cn(e){return e.type===7&&e.name===`slot`}function ln(e){return e.type===1&&e.tagType===3}function un(e){return e.type===1&&e.tagType===2}function dn(e,t=[]){if(e&&!E(e)&&e.type===14){let n=e.callee;if(!E(n)&&Bi.has(n))return dn(e.arguments[0],t.concat(e))}return[e,t]}function fn(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!E(i)&&i.type===14){let e=dn(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||E(i))r=dt([t]);else if(i.type===14){let e=i.arguments[0];!E(e)&&e.type===15?pn(t,e)||e.properties.unshift(t):i.callee===Xr?r=gt(n.helper(Gr),[dt([t]),i]):i.arguments.unshift(dt([t])),!r&&(r=i)}else i.type===15?(pn(t,i)||i.properties.unshift(t),r=i):(r=gt(n.helper(Gr),[dt([t]),i]),o&&o.callee===Yr&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function pn(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function mn(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function hn(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;nhn(e,t));case 11:return hn(e.source,t)?!0:e.children.some(e=>hn(e,t));case 9:return e.branches.some(e=>hn(e,t));case 10:return hn(e.condition,t)?!0:e.children.some(e=>hn(e,t));case 4:return!e.isStatic&&Oi(e.content)&&!!t[e.content];case 8:return e.children.some(e=>y(e)&&hn(e,t));case 5:case 12:return hn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function gn(e){return e.type===14&&e.callee===oi?e.arguments[1].returns:e}function _n(e){for(let t=0;t{let i=t.start.offset+n;return jn(e,!1,kn(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(ra,``).trim(),l=i.indexOf(c),u=c.match(na);if(u){c=c.replace(na,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function bn(e,t){return Gi.slice(e,t)}function xn(e){ta.inSFCRoot&&(Ki.innerLoc=kn(e+1,e+1)),On(Ki);let{tag:t,ns:n}=Ki;n===0&&Ui.isPreTag(t)&&Zi++,Ui.isVoidTag(t)?Cn(Ki,e):(ea.unshift(Ki),(n===1||n===2)&&(ta.inXML=!0)),Ki=null}function Sn(e,t,n){{let t=ea[0]&&ea[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=Ui.decodeEntities(e,!1))}let r=ea[0]||Wi,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,An(i.loc,n)):r.children.push({type:2,content:e,loc:kn(t,n)})}function Cn(e,t,n=!1){n?An(e.loc,wn(t,60)):An(e.loc,tee(t,62)+1),ta.inSFCRoot&&(e.children.length?e.innerLoc.end=d({},e.children[e.children.length-1].loc.end):e.innerLoc.end=d({},e.innerLoc.start),e.innerLoc.source=bn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Qi||(r===`slot`?e.tagType=2:Tn(e)?e.tagType=3:nee(e)&&(e.tagType=1)),ta.inRCDATA||(e.children=En(a)),i===0&&Ui.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&Ui.isPreTag(r)&&Zi--,$i===e&&(Qi=ta.inVPre=!1,$i=null),ta.inXML&&(ea[0]?ea[0].ns:Ui.ns)===0&&(ta.inXML=!1);{let t=e.props;if(!ta.inSFCRoot&&Pt(`COMPILER_NATIVE_TEMPLATE`,Ui)&&e.tag===`template`&&!Tn(e)){let t=ea[0]||Wi,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Ft(`COMPILER_INLINE_TEMPLATE`,Ui,n.loc)&&e.children.length&&(n.value={type:2,content:bn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function tee(e,t){let n=e;for(;Gi.charCodeAt(n)!==t&&n=0;)n--;return n}function Tn({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}function En(e){let t=Ui.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!un(t[0])?t[0]:null}function Fn(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&Rn(s,n)>=2){let t=zn(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:In(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Fn(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Fn(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function In(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=Rn(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:se,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){E(e)&&(e=pt(e)),D.hoists.push(e);let t=pt(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=yt(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function Vn(e,t){let n=Bn(e,t);Hn(e,n),t.hoistStatic&&cee(e,n),t.ssr||lee(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function lee(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Pn(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&Ot(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=lt(t,n(Cr),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function uee(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(cn))return;let a=[];for(let o=0;o0,p=!a&&r!==`module`;if(fee(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(ca).join(`, `)} } = _Vue `,-1),c())),e.components.length&&(Gn(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Gn(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Gn(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` `,0),c()),u||i(`return `),e.codegenNode?Jn(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function fee(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} `,-1),e.hoists.length&&i(`const { ${[jr,Mr,Nr,Pr,Fr].filter(e=>u.includes(e)).map(ca).join(`, `)} } = _Vue `,-1)),pee(e.hoists,t),a(),i(`return `)}function Gn(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?zr:t===`component`?Ir:Rr);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),qn(e,t,n),n&&t.deindent(),t.push(`]`)}function qn(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function bee(e,t){let{push:n,helper:r,pure:i}=t,a=E(e.callee)?e.callee:r(e.callee);i&&n(sa),n(a+`(`,-2,e),qn(e.arguments,t),n(`)`)}function xee(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),u(o)?Kn(o,t):Jn(o,t)):s&&Jn(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function See(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Oi(n.content);e&&o(`(`),Yn(n,t),e&&o(`)`)}else o(`(`),Jn(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Jn(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Jn(i,t),u||t.indentLevel--,a&&c(!0)}function Cee(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ei)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Jn(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ei)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function $n(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function er(e){return E(e)?e:e.type===4?e.content:e.children.map(er).join(``)}function tr(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(zt(28,t.loc)),t.exp=pt(`true`,!1,r)}if(t.name===`if`){let i=nr(e,t),a={type:9,loc:aee(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&yn(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(zt(30,e.loc)),n.removeNode();let i=nr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);Hn(i,n),a&&a(),n.currentNode=null}else n.onError(zt(30,e.loc));break}}}function nr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!tn(e,`for`)?e.children:[e],userKey:nn(e,`key`),isTemplateIf:n}}function rr(e,t,n){return e.condition?vt(e.condition,ir(e,t,n),gt(n.helper(Nr),[`""`,`true`])):ir(e,t,n)}function ir(e,t,n){let{helper:r}=n,i=ft(`key`,pt(`${t}`,!1,pi,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return fn(e,i,n),e}else return lt(n,r(Cr),dt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=gn(e);return t.type===13&&Ot(t,n),fn(t,i,n),e}}function ar(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function or(e,t,n,r){if(!t.exp){n.onError(zt(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(zt(32,t.loc));return}sr(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:ln(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function sr(e,t){e.finalized||=!0}function cr({value:e,key:t,index:n},r=[]){return wee([e,t,n,...r])}function wee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||pt(`_`.repeat(t+1),!1))}function lr(e,t,n=ha){t.helper(ri);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=tn(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Ei(e)&&(s=!0),a.push(ft(e||pt(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),ft(`default`,a)};l?d.length&&!d.every(vn)&&(u?t.onError(zt(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:dr(e.children)?3:1,h=dt(a.concat(ft(`_`,pt(m+``,!1))),i);return o.length&&(h=gt(t.helper(Ur),[h,ut(o)])),{slots:h,hasDynamicSlots:s}}function ur(e,t,n){let r=[ft(`name`,e),ft(`fn`,t)];return n!=null&&r.push(ft(`key`,pt(String(n),!0))),dt(r)}function dr(e){for(let t=0;t0,p=!1,m=0,h=!1,g=!1,v=!1,y=!1,b=!1,x=!1,S=[],T=e=>{l.length&&(u.push(dt(mr(l),s)),l=[]),e&&u.push(e)},E=()=>{t.scopes.vFor>0&&l.push(ft(pt(`ref_for`,!0),pt(`true`)))},D=({key:e,value:n})=>{if(Ei(e)){let a=e.content,o=C(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ge(a)&&(y=!0),o&&ge(a)&&(x=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&In(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?v=!0:a!==`key`&&!S.includes(a)&&S.push(a),r&&(a===`class`||a===`style`)&&!S.includes(a)&&S.push(a)}else b=!0};for(let i=0;ie.content===`prop`)&&(m|=32);let S=t.directiveTransforms[n];if(S){let{props:n,needRuntime:r}=S(c,e,t);!a&&n.forEach(D),x&&i&&!Ei(i)?T(dt(n,s)):l.push(...n),r&&(d.push(c),w(r)&&ga.set(c,r))}else _(n)||(d.push(c),f&&(p=!0))}}let O;if(u.length?(T(),O=u.length>1?gt(t.helper(Gr),u,s):u[0]):l.length&&(O=dt(mr(l),s)),b?m|=16:(g&&!r&&(m|=2),v&&!r&&(m|=4),S.length&&(m|=8),y&&(m|=32)),!p&&(m===0||m===32)&&(h||x||d.length>0)&&(m|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tft(e,t)),i))}return ut(n,e.loc)}function Eee(e){let t=`[`;for(let n=0,r=e.length;n0){let{props:t,directives:r}=pr(e,n,a,!1,!1);i=t,r.length&&n.onError(zt(36,r[0].loc))}return{slotName:r,slotProps:i}}function vr(e=[]){return{props:e}}function yr(e,t){if(e.type===4)br(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!Ea.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{c(),Cr=Symbol(``),wr=Symbol(``),Tr=Symbol(``),Er=Symbol(``),Dr=Symbol(``),Or=Symbol(``),kr=Symbol(``),Ar=Symbol(``),jr=Symbol(``),Mr=Symbol(``),Nr=Symbol(``),Pr=Symbol(``),Fr=Symbol(``),Ir=Symbol(``),Lr=Symbol(``),Rr=Symbol(``),zr=Symbol(``),Br=Symbol(``),Vr=Symbol(``),Hr=Symbol(``),Ur=Symbol(``),Wr=Symbol(``),Gr=Symbol(``),Kr=Symbol(``),qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=Symbol(``),ei=Symbol(``),ti=Symbol(``),ni=Symbol(``),ri=Symbol(``),ii=Symbol(``),ai=Symbol(``),oi=Symbol(``),si=Symbol(``),ci={[Cr]:`Fragment`,[wr]:`Teleport`,[Tr]:`Suspense`,[Er]:`KeepAlive`,[Dr]:`BaseTransition`,[Or]:`openBlock`,[kr]:`createBlock`,[Ar]:`createElementBlock`,[jr]:`createVNode`,[Mr]:`createElementVNode`,[Nr]:`createCommentVNode`,[Pr]:`createTextVNode`,[Fr]:`createStaticVNode`,[Ir]:`resolveComponent`,[Lr]:`resolveDynamicComponent`,[Rr]:`resolveDirective`,[zr]:`resolveFilter`,[Br]:`withDirectives`,[Vr]:`renderList`,[Hr]:`renderSlot`,[Ur]:`createSlots`,[Wr]:`toDisplayString`,[Gr]:`mergeProps`,[Kr]:`normalizeClass`,[qr]:`normalizeStyle`,[Jr]:`normalizeProps`,[Yr]:`guardReactiveProps`,[Xr]:`toHandlers`,[Zr]:`camelize`,[Qr]:`capitalize`,[$r]:`toHandlerKey`,[ei]:`setBlockTracking`,[ti]:`pushScopeId`,[ni]:`popScopeId`,[ri]:`withCtx`,[ii]:`unref`,[ai]:`isRef`,[oi]:`withMemo`,[si]:`isMemoSame`},li={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},ui={ROOT:0,0:`ROOT`,ELEMENT:1,1:`ELEMENT`,TEXT:2,2:`TEXT`,COMMENT:3,3:`COMMENT`,SIMPLE_EXPRESSION:4,4:`SIMPLE_EXPRESSION`,INTERPOLATION:5,5:`INTERPOLATION`,ATTRIBUTE:6,6:`ATTRIBUTE`,DIRECTIVE:7,7:`DIRECTIVE`,COMPOUND_EXPRESSION:8,8:`COMPOUND_EXPRESSION`,IF:9,9:`IF`,IF_BRANCH:10,10:`IF_BRANCH`,FOR:11,11:`FOR`,TEXT_CALL:12,12:`TEXT_CALL`,VNODE_CALL:13,13:`VNODE_CALL`,JS_CALL_EXPRESSION:14,14:`JS_CALL_EXPRESSION`,JS_OBJECT_EXPRESSION:15,15:`JS_OBJECT_EXPRESSION`,JS_PROPERTY:16,16:`JS_PROPERTY`,JS_ARRAY_EXPRESSION:17,17:`JS_ARRAY_EXPRESSION`,JS_FUNCTION_EXPRESSION:18,18:`JS_FUNCTION_EXPRESSION`,JS_CONDITIONAL_EXPRESSION:19,19:`JS_CONDITIONAL_EXPRESSION`,JS_CACHE_EXPRESSION:20,20:`JS_CACHE_EXPRESSION`,JS_BLOCK_STATEMENT:21,21:`JS_BLOCK_STATEMENT`,JS_TEMPLATE_LITERAL:22,22:`JS_TEMPLATE_LITERAL`,JS_IF_STATEMENT:23,23:`JS_IF_STATEMENT`,JS_ASSIGNMENT_EXPRESSION:24,24:`JS_ASSIGNMENT_EXPRESSION`,JS_SEQUENCE_EXPRESSION:25,25:`JS_SEQUENCE_EXPRESSION`,JS_RETURN_STATEMENT:26,26:`JS_RETURN_STATEMENT`},di={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},fi={NOT_CONSTANT:0,0:`NOT_CONSTANT`,CAN_SKIP_PATCH:1,1:`CAN_SKIP_PATCH`,CAN_CACHE:2,2:`CAN_CACHE`,CAN_STRINGIFY:3,3:`CAN_STRINGIFY`},pi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},mi=new Uint8Array([123,123]),hi=new Uint8Array([125,125]),gi={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},_i=class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=mi,this.delimiterClose=hi,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=mi,this.delimiterClose=hi}getPos(e){let t=1,n=e+1,r=this.newlines.length,i=-1;if(r>100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?jt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||At(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===gi.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}},vi={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},yi={COMPILER_IS_ON_ELEMENT:{message:`Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,link:`https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-model.html`},COMPILER_V_BIND_OBJECT_ORDER:{message:`v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-bind.html`},COMPILER_V_ON_NATIVE:{message:`.native modifier for v-on has been removed as is no longer necessary.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:`v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with