@opengis/table 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1 +1,21 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.filter={},y.Vue))})(this,function(y,e){"use strict";const O=e.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>s.value===null||s.value===void 0?"":typeof s.value=="number"?s.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(s.value)));return(m,n)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(t.value||"-"),1))}}),q=e.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>{if(!s.value)return"";try{return new Date(s.value).toLocaleDateString()}catch{return s.value}});return(m,n)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(t.value||"-"),1))}}),J=e.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,{value:t}=s,m=e.computed(()=>Array.isArray(t)?t.map(n=>n.text||n).join(","):t?.text||t);return(n,r)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(m.value||"-"),1))}}),G=((g,s)=>{const t=g.__vccOpts||g;for(const[m,n]of s)t[m]=n;return t})(e.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>{const r=String(s.value||"").toLowerCase(),i="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return r.includes("success")||r.includes("active")||r.includes("completed")?`${i} bg-green-100 text-green-800`:r.includes("error")||r.includes("failed")||r.includes("inactive")?`${i} bg-red-100 text-red-800`:r.includes("warning")||r.includes("pending")?`${i} bg-yellow-100 text-yellow-800`:r.includes("info")||r.includes("processing")?`${i} bg-blue-100 text-blue-800`:s.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(s.value.color)?`${i} bg-${s.value.color}-100 text-${s.value.color}-800`:`${i} bg-gray-100 text-gray-800`});function m(r,i=1){const k=parseInt(r.slice(1,3),16),B=parseInt(r.slice(3,5),16),x=parseInt(r.slice(5,7),16);return`rgba(${k}, ${B}, ${x}, ${i})`}const n=e.computed(()=>{const r={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(s.value?.color)?{...r,backgroundColor:m(s.value.color,.1),color:m(s.value.color,.8)}:r});return(r,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t.value]),style:e.normalizeStyle(n.value)},e.toDisplayString(r.value?.text||r.value||"-"),7))}}),[["__scopeId","data-v-f4b15092"]]),ie={class:"flex flex-wrap gap-1"},K=e.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,t=e.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[]),m=n=>n?typeof n=="object"&&n.name?n.name:typeof n=="string"||typeof n=="number"?String(n):JSON.stringify(n):"";return(n,r)=>(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(i,k)=>(e.openBlock(),e.createElementBlock("span",{key:k,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},e.toDisplayString(m(i)),1))),128))]))}}),Q=e.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(g){const s=g,{value:t}=s,m=e.computed(()=>Array.isArray(t)?t.map(n=>n.text||n).filter((n,r)=>r<2).join(", ")+(t.length>2?` +${t.length-2}`:""):t?.text||t);return(n,r)=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(m.value||"-"),1))}}),A={number:O,date:q,text:J,badge:G,array:K,select:Q},ce={class:"flex items-center space-x-4"},de={class:"font-medium"},me={class:"font-medium"},pe={class:"font-medium"},ge={class:"flex items-center space-x-2"},ue=["disabled"],fe={class:"flex items-center space-x-1"},ye=["onClick"],be=["disabled"],I=e.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(g,{emit:s}){const t=g,m=e.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[t.size]),n=e.computed(()=>{const{theme:p}=t;return p==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:p==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),r=s,i=e.computed(()=>Math.ceil(t.total/t.limit)),k=e.computed(()=>t.total===0?0:(t.page-1)*t.limit+1),B=e.computed(()=>Math.min(t.page*t.limit,t.total)),x=e.computed(()=>{const p=[];if(i.value<=7)for(let b=1;b<=i.value;b+=1)p.push(b);else{p.push(1),t.page>4&&p.push("...");const b=Math.max(2,t.page-1),C=Math.min(i.value-1,t.page+1);for(let w=b;w<=C;w+=1)w!==1&&w!==i.value&&p.push(w);t.page<i.value-3&&p.push("..."),i.value>1&&p.push(i.value)}return p}),_=p=>{p>=1&&p<=i.value&&p!==t.page&&r("update:page",p)};return(p,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center justify-between py-3 border-t",n.value.container])},[e.createElementVNode("div",ce,[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center text-sm",n.value.text,m.value.text])},[e.createElementVNode("span",null,[u[2]||(u[2]=e.createTextVNode(" Показано ",-1)),e.createElementVNode("span",de,e.toDisplayString(k.value),1),u[3]||(u[3]=e.createTextVNode(" до ",-1)),e.createElementVNode("span",me,e.toDisplayString(B.value),1),u[4]||(u[4]=e.createTextVNode(" з ",-1)),e.createElementVNode("span",pe,e.toDisplayString(p.total),1),u[5]||(u[5]=e.createTextVNode(" результатів ",-1))])],2)]),e.createElementVNode("div",ge,[e.createElementVNode("button",{onClick:u[0]||(u[0]=b=>_(p.page-1)),disabled:p.page<=1,class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,p.page<=1?n.value.buttonDisabled:n.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(m.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,ue),e.createElementVNode("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,b=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b},[b==="..."?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-medium",m.value.button,n.value.ellipsis])}," ... ",2)):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:C=>_(b),class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,b===p.page?n.value.buttonActive:n.value.button])},e.toDisplayString(b),11,ye))],64))),128))]),e.createElementVNode("button",{onClick:u[1]||(u[1]=b=>_(p.page+1)),disabled:p.page>=i.value,class:e.normalizeClass(["relative font-medium rounded-md",m.value.button,p.page>=i.value?n.value.buttonDisabled:n.value.button])},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(m.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,be)])],2))}}),he={key:0,class:"text-center py-8"},ke={class:"inline-flex items-center space-x-2"},xe={key:2,class:"overflow-x-auto"},Ce=["checked","indeterminate"],Be=["onClick"],_e={class:"flex items-center justify-between"},we={key:0,class:"ml-1 text-xs"},Ee=["onClick"],$e=["checked","onChange"],Ne=["onClick"],Se={key:1,class:"text-center"},S=e.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0}},emits:["update:page","update:selectedRows","row-click","sort"],setup(g,{emit:s}){const t=g,m=s,n=e.ref(t.selectedRows||[]),r=e.ref([]),i=e.ref([]),k=e.ref([]),B=e.ref(!1),x=e.ref(null),_=e.ref(t.router),p=e.useSlots(),u=e.computed(()=>p.action);function b(a){if(_.value){_.value.push(a);return}location.href=a}const C=e.computed(()=>{if(t.api)return i.value;if(t.sortable&&r.value.length>0){const a=[...t.rows];return a.sort((c,o)=>{for(const d of r.value){if(!d.direction)return 0;const l=c[d.field],f=o[d.field];if(l==null)return 1;if(f==null)return-1;let E=0;typeof l=="string"&&typeof f=="string"?E=l.localeCompare(f):l<f?E=-1:l>f?E=1:E=0;const v=d.direction==="desc"?-E:E;if(v!==0)return v}return 0}),a}return t.rows});e.watch(()=>t.selectedRows,a=>{n.value=a||[]});const w=a=>n.value.some(c=>c===a),ee=a=>{const c=n.value.findIndex(o=>o===a);c>-1?n.value.splice(c,1):n.value.push(a),m("update:selectedRows",[...n.value])},j=e.computed(()=>C.value.length>0&&n.value.length===C.value.length),V=e.computed(()=>n.value.length>0&&n.value.length<C.value.length),L=()=>{j.value?n.value=[]:n.value=[...C.value],m("update:selectedRows",[...n.value])},He=a=>{if(!t.sortable)return;const c=r.value.findIndex(d=>d.field===a);if(c>=0){const d=r.value[c];d.direction==="asc"?d.direction="desc":d.direction==="desc"&&r.value.splice(c,1)}else r.value.unshift({field:a,direction:"asc"});const o=r.value.filter(d=>d.direction).map(d=>({name:d.field,asc:d.direction==="asc"}));m("sort",o),t.api&&z()},We=a=>r.value.find(o=>o.field===a)?.direction==="asc",Ue=a=>{const c=r.value.find(o=>o.field===a);if(!c)return"↑↓";switch(c.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},R=a=>t.sortable&&a.sortable!==!1,Oe=a=>{t.clickable&&m("row-click",a)},$=(a,c)=>{const o=c[a.name];if(t.getCellData||a.getCellData){const d=a.getCellData||t.getCellData;if(d){const l={name:a.name,row:c,value:o};return d(l)}}return["_data","_text"].map(d=>{const l=`${a.name}${d}`;return c[l]?c[l]:null}).find(d=>d)||o},te=a=>a.width?a.width==="w-full"?"w-full":typeof a.width=="string"?`w-[${a.width}px]`:typeof a.width=="number"?`w-[${a.width}px]`:"":"",P=e.ref(t.page),ae=e.ref(t.limit),M=e.ref(t.total),T=e.ref(1),H=e.ref(10),D=e.ref(0),oe=e.computed(()=>t.api?T.value:P.value),le=e.computed(()=>t.api?H.value:ae.value),ne=e.computed(()=>t.api?D.value:M.value),h=e.computed(()=>{const{theme:a}=t;return a==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:a==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});e.watch(()=>t.page,a=>{P.value=a}),e.watch(()=>t.limit,a=>{ae.value=a}),e.watch(()=>t.total,a=>{M.value=a});async function z(){if(t.api){B.value=!0,x.value=null;try{const a=new URL(t.api,window.location.origin);if(a.searchParams.set("page",oe.value.toString()),a.searchParams.set("limit",le.value.toString()),r.value.length>0){const d=r.value.filter(l=>l.direction).map(l=>`${l.field}:${l.direction}`).join(",");d&&a.searchParams.set("sort",d)}const c=await fetch(a.toString());if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);const o=await c.json();o.rows&&Array.isArray(o.rows)&&(i.value=o.rows),o.columns&&Array.isArray(o.columns)&&(k.value=o.columns),o.total!==void 0&&(t.api?D.value=o.total:M.value=o.total)}catch(a){x.value=a instanceof Error?a.message:"Failed to fetch data",console.error("Error fetching data:",a)}finally{B.value=!1}}}const qe=a=>{t.api?T.value=a:(P.value=a,m("update:page",a)),t.api&&z()},Je=e.computed(()=>t.showPagination&&ne.value>0),N=e.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[t.size]);e.onMounted(()=>{t.api&&(t.page&&(T.value=t.page),t.limit&&(H.value=t.limit),t.total&&(D.value=t.total),z())}),e.watch(()=>t.api,a=>{a&&(T.value=t.page||1,H.value=t.limit||10,D.value=t.total||0,z())});const Ge=e.computed(()=>t.api?k.value:t.columns),W=e.ref([]),F=e.ref({});e.provide("registerColumn",(a,c)=>{W.value.push(a),c&&a.slotName&&(F.value[a.name]=c)});const re=e.computed(()=>{const a=Ge.value||[],c=[],o=p.default?.();if(o){const d=o.filter(l=>l.type?.name==="Column"||l.type==="Column"||l.type&&typeof l.type=="object"&&l.type.name==="Column").map(l=>{const f=l.props||l.componentProps||{},E=f.field||f.name||"",v=f.header||f.label||"",se=l.children&&l.children.body,U={name:E,ua:v,format:f.format||"text",slotName:se?"body":void 0,...f};return se&&U.name&&(F.value[U.name]=l.children.body),U});c.push(...d)}if(W.value.length>0&&c.push(...W.value),c.length>0){const d=[],l=new Set(c.map(f=>f.name));return a.forEach(f=>{l.has(f.name)||d.push(f)}),d.push(...c),console.log("Combined columns:",{default:a.length,custom:c.length,combined:d.length}),d}return a.length>0?(console.log("Using default columns:",a.length),a):[]}),Ke=(a="text")=>A[a.toLowerCase()]||A.text;return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["w-full",h.value.container])},[B.value||t.loading?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[c[0]||(c[0]=e.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),e.createElementVNode("span",{class:e.normalizeClass(h.value.loading)},"Loading...",2)])])):x.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["text-center py-8",h.value.error])},e.toDisplayString(x.value),3)):!t.loading&&C.value.length>0?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",{class:e.normalizeClass(a.classWrapper?a.classWrapper:"relative w-full overflow-auto")},[e.createElementVNode("table",{class:e.normalizeClass(a.classTable),style:e.normalizeStyle(a.tableStyle)},[e.createElementVNode("thead",{class:e.normalizeClass(a.classThead||h.value.thead)},[e.createElementVNode("tr",null,[a.selectable?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header,t.classTh,"w-12"])},[e.createElementVNode("input",{type:"checkbox",checked:j.value,indeterminate:V.value,onChange:L,class:e.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",h.value.checkbox])},null,42,Ce)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value.filter(o=>!o.hidden),o=>(e.openBlock(),e.createElementBlock("th",{key:o.name,class:e.normalizeClass([o.align?`text-${o.align}`:"",R(o)?["cursor-pointer",h.value.thHover]:"",te(o)].concat(t.classTh||["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header])),onClick:d=>R(o)?He(o.name):void 0},[e.createElementVNode("div",_e,[e.createElementVNode("span",null,e.toDisplayString(o.ua||o.header||o.name),1),R(o)?(e.openBlock(),e.createElementBlock("span",we,[e.renderSlot(a.$slots,"sort",{asc:We(o.name)},()=>[e.createTextVNode(e.toDisplayString(Ue(o.name)),1)])])):e.createCommentVNode("",!0)])],10,Be))),128)),u.value?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass(["w-[100px]",t.classTh||["text-left font-medium uppercase tracking-wider",h.value.th,N.value.header]])},"Дії",2)):e.createCommentVNode("",!0)])],2),e.createElementVNode("tbody",{class:e.normalizeClass(a.classTbody||h.value.tbody)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(o,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:e.normalizeClass(t.classTr||[h.value.tr,t.clickable?"cursor-pointer":""]),onClick:l=>t.clickable?Oe(o):void 0},[a.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["whitespace-nowrap",h.value.td,N.value.cell,t.classTd,"w-12"])},[e.createElementVNode("input",{type:"checkbox",checked:w(o),onChange:l=>ee(o),class:e.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",h.value.checkbox])},null,42,$e)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value.filter(l=>!l.hidden),l=>(e.openBlock(),e.createElementBlock("td",{key:l.name,class:e.normalizeClass(t.classTd||["whitespace-nowrap",h.value.td,N.value.cell,l.align?`text-${l.align}`:"",te(l)])},[l.action&&u.value?e.renderSlot(a.$slots,"action",{key:0,row:o}):e.unref(p).number&&l.format==="number"?e.renderSlot(a.$slots,"number",{key:1,row:o,value:$(l,o)}):e.unref(p).badge&&l.format==="badge"?e.renderSlot(a.$slots,"badge",{key:2,row:o,value:$(l,o)}):e.unref(p).array&&l.format==="array"?e.renderSlot(a.$slots,"array",{key:3,row:o,value:$(l,o)}):l.slotName&&F.value[l.name]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.value[l.name]),{key:4,data:o,value:$(l,o),row:o,column:l},null,8,["data","value","row","column"])):l.link?(e.openBlock(),e.createElementBlock("a",{key:5,class:e.normalizeClass(a.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:f=>b(l.link.replace("{id}",o.id))},e.toDisplayString($(l,o)),11,Ne)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ke(l.format)),{key:6,value:$(l,o),row:o,column:l,href:l.link},null,8,["value","row","column","href"]))],2))),128)),u.value?(e.openBlock(),e.createElementBlock("td",Se,[e.renderSlot(a.$slots,"action",{row:o})])):e.createCommentVNode("",!0)],10,Ee))),128))],2)],6)],2)])):e.createCommentVNode("",!0),Je.value&&!B.value&&!t.loading&&!x.value?(e.openBlock(),e.createBlock(I,{key:3,page:oe.value,limit:le.value,total:ne.value,theme:t.theme,size:t.size,"onUpdate:page":qe},null,8,["page","limit","total","theme","size"])):e.createCommentVNode("",!0),!B.value&&!t.loading&&!x.value&&C.value.length===0?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["text-center py-8",h.value.empty])}," Дані відсутні ",2)):e.createCommentVNode("",!0)],2))}}),Ve={style:{display:"none"}},X=e.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(g){const s=g,t=e.useSlots(),m=e.inject("registerColumn");return e.onMounted(()=>{if(m){const{field:n,name:r,header:i,label:k,format:B,slotName:x,link:_,action:p,getCellData:u,suffix:b,...C}=s,V={name:n||r||"",ua:i||k||"",format:B||"text",slotName:x||(t.body?"body":void 0),link:_,action:p,getCellData:u,suffix:b,...C};console.log("Registering column:",V);const L=t.body;m(V,L)}}),(n,r)=>(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(n.$slots,"body",{data:{}})]))}}),Te={class:"mt-4"},De={class:"text-sm text-gray-600 dark:text-gray-300"},Y=e.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(g){const s=g,t=e.computed(()=>s.selectedRows.length);return(m,n)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createElementVNode("div",De," Обрано: "+e.toDisplayString(t.value)+" з "+e.toDisplayString(m.totalCount)+" записів ",1)]))}}),ze={class:"mt-4"},Fe={class:"border-b border-gray-200 dark:border-gray-700"},ve={class:"-mb-px flex space-x-8"},Ae=["onClick"],Ie={class:"mt-4"},je={class:"bg-gray-900 rounded-lg overflow-hidden"},Le={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Re={class:"text-sm text-gray-300"},Pe=["onClick"],Me={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Z=e.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(g){const s=g,t=e.ref(s.defaultTab||s.tabs[0]?.id||""),m=async n=>{try{await navigator.clipboard.writeText(n),console.log("Код скопійовано!")}catch(r){console.error("Помилка копіювання:",r)}};return(n,r)=>(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Fe,[e.createElementVNode("nav",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>(e.openBlock(),e.createElementBlock("button",{key:i.id,onClick:k=>t.value=i.id,class:e.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",t.value===i.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},e.toDisplayString(i.label),11,Ae))),128))])]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,i=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:i.id},[e.createElementVNode("div",je,[e.createElementVNode("div",Le,[e.createElementVNode("span",Re,e.toDisplayString(i.label),1),e.createElementVNode("button",{onClick:k=>m(i.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},r[0]||(r[0]=[e.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Pe)]),e.createElementVNode("pre",Me,[e.createElementVNode("code",null,e.toDisplayString(i.content),1)])])])),[[e.vShow,t.value===i.id]])),128))])]))}});S.install=function(s){s.component("DataTable",S),s.component("Column",X),s.component("Pagination",I),s.component("SelectionInfo",Y),s.component("CodeTabs",Z)},y.ArrayFormat=K,y.BadgeFormat=G,y.CodeTabs=Z,y.Column=X,y.DataTable=S,y.DateFormat=q,y.NumberFormat=O,y.Pagination=I,y.SelectFormat=Q,y.SelectionInfo=Y,y.TextFormat=J,y.default=S,y.formatComponents=A,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q.filter={},q.Vue))})(this,function(q,a){"use strict";function $s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ms=$s(a),un=a.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=a.computed(()=>t.value===null||t.value===void 0?"":typeof t.value=="number"?t.value.toFixed(2):Intl.NumberFormat("uk-UA",{maximumFractionDigits:2}).format(Number(t.value)));return(s,i)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(n.value||"-"),1))}}),hn=a.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=a.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(s,i)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(n.value||"-"),1))}}),mn=a.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=a.computed(()=>Array.isArray(n)?n.map(i=>i.text||i).join(","):n?.text||n);return(i,r)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(s.value||"-"),1))}}),gn=((e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n})(a.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=a.computed(()=>{const r=String(t.value||"").toLowerCase(),o="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return r.includes("success")||r.includes("active")||r.includes("completed")?`${o} bg-green-100 text-green-800`:r.includes("error")||r.includes("failed")||r.includes("inactive")?`${o} bg-red-100 text-red-800`:r.includes("warning")||r.includes("pending")?`${o} bg-yellow-100 text-yellow-800`:r.includes("info")||r.includes("processing")?`${o} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${o} bg-${t.value.color}-100 text-${t.value.color}-800`:`${o} bg-gray-100 text-gray-800`});function s(r,o=1){const l=parseInt(r.slice(1,3),16),c=parseInt(r.slice(3,5),16),p=parseInt(r.slice(5,7),16);return`rgba(${l}, ${c}, ${p}, ${o})`}const i=a.computed(()=>{const r={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...r,backgroundColor:s(t.value.color,.1),color:s(t.value.color,.8)}:r});return(r,o)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["badge",n.value]),style:a.normalizeStyle(i.value)},a.toDisplayString(r.value?.text||r.value||"-"),7))}}),[["__scopeId","data-v-f4b15092"]]),Ps={class:"flex flex-wrap gap-1"},vn=a.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=a.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),s=i=>i?typeof i=="object"&&i.name?i.name:typeof i=="string"||typeof i=="number"?String(i):JSON.stringify(i):"";return(i,r)=>(a.openBlock(),a.createElementBlock("div",Ps,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(o,l)=>(a.openBlock(),a.createElementBlock("span",{key:l,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"},a.toDisplayString(s(o)),1))),128))]))}}),yn=a.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,s=a.computed(()=>Array.isArray(n)?n.map(i=>i.text||i).filter((i,r)=>r<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(i,r)=>(a.openBlock(),a.createElementBlock("span",null,a.toDisplayString(s.value||"-"),1))}}),St={number:un,date:hn,text:mn,badge:gn,array:vn,select:yn},Ls={class:"flex items-center space-x-4"},Fs={class:"font-medium"},js={class:"font-medium"},zs={class:"font-medium"},Hs={class:"flex items-center space-x-2"},Us=["disabled"],qs={class:"flex items-center space-x-1"},Ks=["onClick"],Ws=["disabled"],kt=a.defineComponent({name:"Pagination",__name:"Pagination",props:{page:{},limit:{},total:{},theme:{default:"light"},size:{default:"medium"}},emits:["update:page"],setup(e,{emit:t}){const n=e,s=a.computed(()=>({small:{text:"text-xs",button:"px-2 h-7 text-xs min-w-[28px] flex items-center justify-center",icon:"w-3.5 h-3.5"},medium:{text:"text-sm",button:"px-3 h-9 text-sm min-w-[36px] flex items-center justify-center",icon:"w-4 h-4"},large:{text:"text-base",button:"px-4 h-11 text-base min-w-[44px] flex items-center justify-center",icon:"w-5 h-5"}})[n.size]),i=a.computed(()=>{const{theme:f}=n;return f==="dark"?{container:"bg-gray-900 border-gray-700",text:"text-gray-300",button:"text-gray-300 bg-gray-800 border-gray-600 hover:bg-gray-700",buttonDisabled:"text-gray-500 bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-400"}:f==="light"?{container:"bg-white border-gray-200",text:"text-gray-700",button:"text-gray-700 bg-white border-gray-300 hover:bg-gray-50",buttonDisabled:"text-gray-400 bg-gray-100",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500"}:{container:"bg-white dark:bg-gray-900 border-gray-200 dark:border-gray-700",text:"text-gray-700 dark:text-gray-300",button:"text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700",buttonDisabled:"text-gray-400 dark:text-gray-500 bg-gray-100 dark:bg-gray-800",buttonActive:"bg-blue-600 text-white",ellipsis:"text-gray-500 dark:text-gray-400"}}),r=t,o=a.computed(()=>Math.ceil(n.total/n.limit)),l=a.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=a.computed(()=>Math.min(n.page*n.limit,n.total)),p=a.computed(()=>{const f=[];if(o.value<=7)for(let u=1;u<=o.value;u+=1)f.push(u);else{f.push(1),n.page>4&&f.push("...");const u=Math.max(2,n.page-1),y=Math.min(o.value-1,n.page+1);for(let g=u;g<=y;g+=1)g!==1&&g!==o.value&&f.push(g);n.page<o.value-3&&f.push("..."),o.value>1&&f.push(o.value)}return f}),h=f=>{f>=1&&f<=o.value&&f!==n.page&&r("update:page",f)};return(f,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["flex items-center justify-between py-3 border-t",i.value.container])},[a.createElementVNode("div",Ls,[a.createElementVNode("div",{class:a.normalizeClass(["flex items-center text-sm",i.value.text,s.value.text])},[a.createElementVNode("span",null,[d[2]||(d[2]=a.createTextVNode(" Показано ",-1)),a.createElementVNode("span",Fs,a.toDisplayString(l.value),1),d[3]||(d[3]=a.createTextVNode(" до ",-1)),a.createElementVNode("span",js,a.toDisplayString(c.value),1),d[4]||(d[4]=a.createTextVNode(" з ",-1)),a.createElementVNode("span",zs,a.toDisplayString(f.total),1),d[5]||(d[5]=a.createTextVNode(" результатів ",-1))])],2)]),a.createElementVNode("div",Hs,[a.createElementVNode("button",{onClick:d[0]||(d[0]=u=>h(f.page-1)),disabled:f.page<=1,class:a.normalizeClass(["relative font-medium rounded-md",s.value.button,f.page<=1?i.value.buttonDisabled:i.value.button])},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},d[6]||(d[6]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,Us),a.createElementVNode("div",qs,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,u=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:u},[u==="..."?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["font-medium",s.value.button,i.value.ellipsis])}," ... ",2)):(a.openBlock(),a.createElementBlock("button",{key:1,onClick:y=>h(u),class:a.normalizeClass(["relative font-medium rounded-md",s.value.button,u===f.page?i.value.buttonActive:i.value.button])},a.toDisplayString(u),11,Ks))],64))),128))]),a.createElementVNode("button",{onClick:d[1]||(d[1]=u=>h(f.page+1)),disabled:f.page>=o.value,class:a.normalizeClass(["relative font-medium rounded-md",s.value.button,f.page>=o.value?i.value.buttonDisabled:i.value.button])},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(s.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},d[7]||(d[7]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,Ws)])],2))}});/**
2
+ * @vue/shared v3.5.18
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function ue(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Gs=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ct=()=>{},Ve=()=>!1,_t=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ye=Object.assign,he=Array.isArray,G=e=>typeof e=="string",Tt=e=>typeof e=="symbol",Js=e=>e!==null&&typeof e=="object",bn=ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ys=ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),wt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xs=/-(\w)/g,be=wt(e=>e.replace(Xs,(t,n)=>n?n.toUpperCase():"")),xt=wt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qs=wt(e=>e?`on${xt(e)}`:""),je={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},Zs={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Vs=/;(?![^(]*\))/g,ei=/:([^]+)/,ti=/\/\*[^]*?\*\//g;function ni(e){const t={};return e.replace(ti,"").split(Vs).forEach(n=>{if(n){const s=n.split(ei);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}const si="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ii="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ri="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",oi="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",ai=ue(si),li=ue(ii),ci=ue(ri),pi=ue(oi);/**
6
+ * @vue/compiler-core v3.5.18
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/const ze=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),He=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Ot=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),et=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),En=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),_e=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Nn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),Sn=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Dt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),It=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ue=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),At=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),kn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Bt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),$t=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Cn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),_n=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),tt=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),nt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),jt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),qe=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),zt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),fi=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),st=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),di=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),ui=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),qt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),hi=Symbol(process.env.NODE_ENV!=="production"?"unref":""),mi=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Tn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Be={[ze]:"Fragment",[He]:"Teleport",[Ot]:"Suspense",[et]:"KeepAlive",[En]:"BaseTransition",[_e]:"openBlock",[Nn]:"createBlock",[Sn]:"createElementBlock",[Dt]:"createVNode",[It]:"createElementVNode",[Ue]:"createCommentVNode",[At]:"createTextVNode",[kn]:"createStaticVNode",[Bt]:"resolveComponent",[Rt]:"resolveDynamicComponent",[$t]:"resolveDirective",[Mt]:"resolveFilter",[Pt]:"withDirectives",[Lt]:"renderList",[Cn]:"renderSlot",[_n]:"createSlots",[tt]:"toDisplayString",[nt]:"mergeProps",[Ft]:"normalizeClass",[jt]:"normalizeStyle",[qe]:"normalizeProps",[Ke]:"guardReactiveProps",[zt]:"toHandlers",[Ht]:"camelize",[fi]:"capitalize",[Ut]:"toHandlerKey",[st]:"setBlockTracking",[di]:"pushScopeId",[ui]:"popScopeId",[qt]:"withCtx",[hi]:"unref",[mi]:"isRef",[Kt]:"withMemo",[Tn]:"isMemoSame"};function gi(e){Object.getOwnPropertySymbols(e).forEach(t=>{Be[t]=e[t]})}const ne={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function vi(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ne}}function We(e,t,n,s,i,r,o,l=!1,c=!1,p=!1,h=ne){return e&&(l?(e.helper(_e),e.helper(Me(e.inSSR,p))):e.helper($e(e.inSSR,p)),o&&e.helper(Pt)),{type:13,tag:t,props:n,children:s,patchFlag:i,dynamicProps:r,directives:o,isBlock:l,disableTracking:c,isComponent:p,loc:h}}function Te(e,t=ne){return{type:17,loc:t,elements:e}}function oe(e,t=ne){return{type:15,loc:t,properties:e}}function F(e,t){return{type:16,loc:ne,key:G(e)?S(e,!0):e,value:t}}function S(e,t=!1,n=ne,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function le(e,t=ne){return{type:8,loc:t,children:e}}function K(e,t=[],n=ne){return{type:14,loc:n,callee:e,arguments:t}}function Re(e,t=void 0,n=!1,s=!1,i=ne){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:i}}function Wt(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:ne}}function yi(e,t,n=!1,s=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:s,needArraySpread:!1,loc:ne}}function bi(e){return{type:21,body:e,loc:ne}}function $e(e,t){return e||t?Dt:It}function Me(e,t){return e||t?Nn:Sn}function Gt(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n($e(s,e.isComponent)),t(_e),t(Me(s,e.isComponent)))}const wn=new Uint8Array([123,123]),xn=new Uint8Array([125,125]);function On(e){return e>=97&&e<=122||e>=65&&e<=90}function se(e){return e===32||e===10||e===9||e===12||e===13}function Ee(e){return e===47||e===62||se(e)}function it(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const J={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])};class Ei{constructor(t,n){this.stack=t,this.cbs=n,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=wn,this.delimiterClose=xn,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=wn,this.delimiterClose=xn}getPos(t){let n=1,s=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){n=i+2,s=t-r;break}}return{column:s,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===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(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Ee(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||se(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===J.TitleEnd||this.currentSequence===J.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===J.Cdata[this.sequenceIndex]?++this.sequenceIndex===J.Cdata.length&&(this.state=28,this.currentSequence=J.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===J.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):On(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Ee(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ee(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(it("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){se(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=On(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||se(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,process.env.NODE_ENV!=="production"&&this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):se(t)||(process.env.NODE_ENV!=="production"&&t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):se(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Ee(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):process.env.NODE_ENV!=="production"&&(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||Ee(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Ee(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Ee(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),process.env.NODE_ENV!=="production"&&this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||Ee(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):se(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):se(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){se(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(process.env.NODE_ENV!=="production"&&t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=J.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===J.ScriptEnd[3]?this.startSpecial(J.ScriptEnd,4):t===J.StyleEnd[3]?this.startSpecial(J.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===J.TitleEnd[3]?this.startSpecial(J.TitleEnd,4):t===J.TextareaEnd[3]?this.startSpecial(J.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===J.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):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,t))}emitCodePoint(t,n){}}const Ni={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 <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Jt(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ne(e,t){const n=Jt("MODE",t),s=Jt(e,t);return n===3?s===!0:s!==!1}function Pe(e,t,n,...s){const i=Ne(e,t);return process.env.NODE_ENV!=="production"&&i&&rt(e,t,n,...s),i}function rt(e,t,n,...s){if(Jt(e,t)==="suppress-warning")return;const{message:r,link:o}=Ni[e],l=`(deprecation ${e}) ${typeof r=="function"?r(...s):r}${o?`
10
+ Details: ${o}`:""}`,c=new SyntaxError(l);c.code=e,n&&(c.loc=n),t.onWarn(c)}function Yt(e){throw e}function Dn(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function R(e,t,n,s){const i=process.env.NODE_ENV!=="production"?(n||Si)[e]+(s||""):`https://vuejs.org/error-reference/#compiler-${e}`,r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const Si={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
11
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},Z=e=>e.type===4&&e.isStatic;function In(e){switch(e){case"Teleport":case"teleport":return He;case"Suspense":case"suspense":return Ot;case"KeepAlive":case"keep-alive":return et;case"BaseTransition":case"base-transition":return En}}const ki=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Xt=e=>!ki.test(e),Ci=/[A-Za-z_$\xA0-\uFFFF]/,_i=/[\.\?\w$\xA0-\uFFFF]/,Ti=/\s+[.[]\s*|\s*[.[]\s+/g,An=e=>e.type===4?e.content:e.loc.source,Bn=e=>{const t=An(e).trim().replace(Ti,l=>l.trim());let n=0,s=[],i=0,r=0,o=null;for(let l=0;l<t.length;l++){const c=t.charAt(l);switch(n){case 0:if(c==="[")s.push(n),n=1,i++;else if(c==="(")s.push(n),n=2,r++;else if(!(l===0?Ci:_i).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(s.push(n),n=3,o=c):c==="["?i++:c==="]"&&(--i||(n=s.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")s.push(n),n=3,o=c;else if(c==="(")r++;else if(c===")"){if(l===t.length-1)return!1;--r||(n=s.pop())}break;case 3:c===o&&(n=s.pop(),o=null);break}}return!i&&!r},wi=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,xi=e=>wi.test(An(e));function Rn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function V(e,t,n=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===7&&(n||i.exp)&&(G(t)?i.name===t:t.test(i.name)))return i}}function Ge(e,t,n=!1,s=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(n)continue;if(r.name===t&&(r.value||s))return r}else if(r.name==="bind"&&(r.exp||s)&&Se(r.arg,t))return r}}function Se(e,t){return!!(e&&Z(e)&&e.content===t)}function Oi(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Qt(e){return e.type===5||e.type===2}function $n(e){return e.type===7&&e.name==="pre"}function Di(e){return e.type===7&&e.name==="slot"}function ot(e){return e.type===1&&e.tagType===3}function at(e){return e.type===1&&e.tagType===2}const Ii=new Set([qe,Ke]);function Mn(e,t=[]){if(e&&!G(e)&&e.type===14){const n=e.callee;if(!G(n)&&Ii.has(n))return Mn(e.arguments[0],t.concat(e))}return[e,t]}function lt(e,t,n){let s,i=e.type===13?e.props:e.arguments[2],r=[],o;if(i&&!G(i)&&i.type===14){const l=Mn(i);i=l[0],r=l[1],o=r[r.length-1]}if(i==null||G(i))s=oe([t]);else if(i.type===14){const l=i.arguments[0];!G(l)&&l.type===15?Pn(t,l)||l.properties.unshift(t):i.callee===zt?s=K(n.helper(nt),[oe([t]),i]):i.arguments.unshift(oe([t])),!s&&(s=i)}else i.type===15?(Pn(t,i)||i.properties.unshift(t),s=i):(s=K(n.helper(nt),[oe([t]),i]),o&&o.callee===Ke&&(o=r[r.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function Pn(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===s)}return n}function Je(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Ai(e){return e.type===14&&e.callee===Kt?e.arguments[1].returns:e}const Bi=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Ln={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Ve,isPreTag:Ve,isIgnoreNewlineTag:Ve,isCustomElement:Ve,onError:Yt,onWarn:Dn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let x=Ln,Ye=null,ge="",X=null,T=null,ee="",ve=-1,we=-1,Zt=0,ke=!1,Vt=null;const L=[],$=new Ei(L,{onerr:te,ontext(e,t){ct(Y(e,t),e,t)},ontextentity(e,t,n){ct(e,t,n)},oninterpolation(e,t){if(ke)return ct(Y(e,t),e,t);let n=e+$.delimiterOpen.length,s=t-$.delimiterClose.length;for(;se(ge.charCodeAt(n));)n++;for(;se(ge.charCodeAt(s-1));)s--;let i=Y(n,s);i.includes("&")&&(i=x.decodeEntities(i,!1)),en({type:5,content:ft(i,!1,z(n,s)),loc:z(e,t)})},onopentagname(e,t){const n=Y(e,t);X={type:1,tag:n,ns:x.getNamespace(n,L[0],x.ns),tagType:0,props:[],children:[],loc:z(e-1,t),codegenNode:void 0}},onopentagend(e){jn(e)},onclosetag(e,t){const n=Y(e,t);if(!x.isVoidTag(n)){let s=!1;for(let i=0;i<L.length;i++)if(L[i].tag.toLowerCase()===n.toLowerCase()){s=!0,i>0&&te(24,L[0].loc.start.offset);for(let o=0;o<=i;o++){const l=L.shift();pt(l,t,o<i)}break}s||te(23,zn(e,60))}},onselfclosingtag(e){const t=X.tag;X.isSelfClosing=!0,jn(e),L[0]&&L[0].tag===t&&pt(L.shift(),e)},onattribname(e,t){T={type:6,name:Y(e,t),nameLoc:z(e,t),value:void 0,loc:z(e)}},ondirname(e,t){const n=Y(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!ke&&s===""&&te(26,e),ke||s==="")T={type:6,name:n,nameLoc:z(e,t),value:void 0,loc:z(e)};else if(T={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[S("prop")]:[],loc:z(e)},s==="pre"){ke=$.inVPre=!0,Vt=X;const i=X.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=qi(i[r]))}},ondirarg(e,t){if(e===t)return;const n=Y(e,t);if(ke&&!$n(T))T.name+=n,xe(T.nameLoc,t);else{const s=n[0]!=="[";T.arg=ft(s?n:n.slice(1,-1),s,z(e,t),s?3:0)}},ondirmodifier(e,t){const n=Y(e,t);if(ke&&!$n(T))T.name+="."+n,xe(T.nameLoc,t);else if(T.name==="slot"){const s=T.arg;s&&(s.content+="."+n,xe(s.loc,t))}else{const s=S(n,!0,z(e,t));T.modifiers.push(s)}},onattribdata(e,t){ee+=Y(e,t),ve<0&&(ve=e),we=t},onattribentity(e,t,n){ee+=e,ve<0&&(ve=t),we=n},onattribnameend(e){const t=T.loc.start.offset,n=Y(t,e);T.type===7&&(T.rawName=n),X.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&te(2,t)},onattribend(e,t){if(X&&T){if(xe(T.loc,t),e!==0)if(ee.includes("&")&&(ee=x.decodeEntities(ee,!0)),T.type===6)T.name==="class"&&(ee=qn(ee).trim()),e===1&&!ee&&te(13,t),T.value={type:2,content:ee,loc:e===1?z(ve,we):z(ve-1,we+1)},$.inSFCRoot&&X.tag==="template"&&T.name==="lang"&&ee&&ee!=="html"&&$.enterRCDATA(it("</template"),0);else{let n=0;T.exp=ft(ee,!1,z(ve,we),0,n),T.name==="for"&&(T.forParseResult=$i(T.exp));let s=-1;T.name==="bind"&&(s=T.modifiers.findIndex(i=>i.content==="sync"))>-1&&Pe("COMPILER_V_BIND_SYNC",x,T.loc,T.arg.loc.source)&&(T.name="model",T.modifiers.splice(s,1))}(T.type!==7||T.name!=="pre")&&X.props.push(T)}ee="",ve=we=-1},oncomment(e,t){x.comments&&en({type:3,content:Y(e,t),loc:z(e-4,t+3)})},onend(){const e=ge.length;if(process.env.NODE_ENV!=="production"&&$.state!==1)switch($.state){case 5:case 8:te(5,e);break;case 3:case 4:te(25,$.sectionStart);break;case 28:$.currentSequence===J.CdataEnd?te(6,e):te(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:te(9,e);break}for(let t=0;t<L.length;t++)pt(L[t],e-1),te(24,L[t].loc.start.offset)},oncdata(e,t){L[0].ns!==0?ct(Y(e,t),e,t):te(1,e-9)},onprocessinginstruction(e){(L[0]?L[0].ns:x.ns)===0&&te(21,e-1)}}),Fn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ri=/^\(|\)$/g;function $i(e){const t=e.loc,n=e.content,s=n.match(Bi);if(!s)return;const[,i,r]=s,o=(f,d,u=!1)=>{const y=t.start.offset+d,g=y+f.length;return ft(f,!1,z(y,g),0,u?1:0)},l={source:o(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=i.trim().replace(Ri,"").trim();const p=i.indexOf(c),h=c.match(Fn);if(h){c=c.replace(Fn,"").trim();const f=h[1].trim();let d;if(f&&(d=n.indexOf(f,p+c.length),l.key=o(f,d,!0)),h[2]){const u=h[2].trim();u&&(l.index=o(u,n.indexOf(u,l.key?d+f.length:p+c.length),!0))}}return c&&(l.value=o(c,p,!0)),l}function Y(e,t){return ge.slice(e,t)}function jn(e){$.inSFCRoot&&(X.innerLoc=z(e+1,e+1)),en(X);const{tag:t,ns:n}=X;n===0&&x.isPreTag(t)&&Zt++,x.isVoidTag(t)?pt(X,e):(L.unshift(X),(n===1||n===2)&&($.inXML=!0)),X=null}function ct(e,t,n){{const r=L[0]&&L[0].tag;r!=="script"&&r!=="style"&&e.includes("&")&&(e=x.decodeEntities(e,!1))}const s=L[0]||Ye,i=s.children[s.children.length-1];i&&i.type===2?(i.content+=e,xe(i.loc,n)):s.children.push({type:2,content:e,loc:z(t,n)})}function pt(e,t,n=!1){n?xe(e.loc,zn(t,60)):xe(e.loc,Mi(t,62)+1),$.inSFCRoot&&(e.children.length?e.innerLoc.end=ye({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ye({},e.innerLoc.start),e.innerLoc.source=Y(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:i,children:r}=e;if(ke||(s==="slot"?e.tagType=2:Hn(e)?e.tagType=3:Li(e)&&(e.tagType=1)),$.inRCDATA||(e.children=Un(r)),i===0&&x.isIgnoreNewlineTag(s)){const o=r[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}i===0&&x.isPreTag(s)&&Zt--,Vt===e&&(ke=$.inVPre=!1,Vt=null),$.inXML&&(L[0]?L[0].ns:x.ns)===0&&($.inXML=!1);{const o=e.props;if(process.env.NODE_ENV!=="production"&&Ne("COMPILER_V_IF_V_FOR_PRECEDENCE",x)){let c=!1,p=!1;for(let h=0;h<o.length;h++){const f=o[h];if(f.type===7&&(f.name==="if"?c=!0:f.name==="for"&&(p=!0)),c&&p){rt("COMPILER_V_IF_V_FOR_PRECEDENCE",x,e.loc);break}}}if(!$.inSFCRoot&&Ne("COMPILER_NATIVE_TEMPLATE",x)&&e.tag==="template"&&!Hn(e)){process.env.NODE_ENV!=="production"&&rt("COMPILER_NATIVE_TEMPLATE",x,e.loc);const c=L[0]||Ye,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const l=o.find(c=>c.type===6&&c.name==="inline-template");l&&Pe("COMPILER_INLINE_TEMPLATE",x,l.loc)&&e.children.length&&(l.value={type:2,content:Y(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:l.loc})}}function Mi(e,t){let n=e;for(;ge.charCodeAt(n)!==t&&n<ge.length-1;)n++;return n}function zn(e,t){let n=e;for(;ge.charCodeAt(n)!==t&&n>=0;)n--;return n}const Pi=new Set(["if","else","else-if","for","slot"]);function Hn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Pi.has(t[n].name))return!0}return!1}function Li({tag:e,props:t}){if(x.isCustomElement(e))return!1;if(e==="component"||Fi(e.charCodeAt(0))||In(e)||x.isBuiltInComponent&&x.isBuiltInComponent(e)||x.isNativeTag&&!x.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const s=t[n];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(Pe("COMPILER_IS_ON_ELEMENT",x,s.loc))return!0}}else if(s.name==="bind"&&Se(s.arg,"is")&&Pe("COMPILER_IS_ON_ELEMENT",x,s.loc))return!0}return!1}function Fi(e){return e>64&&e<91}const ji=/\r\n/g;function Un(e){const t=x.whitespace!=="preserve";let n=!1;for(let s=0;s<e.length;s++){const i=e[s];if(i.type===2)if(Zt)i.content=i.content.replace(ji,`
12
+ `);else if(zi(i.content)){const r=e[s-1]&&e[s-1].type,o=e[s+1]&&e[s+1].type;!r||!o||t&&(r===3&&(o===3||o===1)||r===1&&(o===3||o===1&&Hi(i.content)))?(n=!0,e[s]=null):i.content=" "}else t&&(i.content=qn(i.content))}return n?e.filter(Boolean):e}function zi(e){for(let t=0;t<e.length;t++)if(!se(e.charCodeAt(t)))return!1;return!0}function Hi(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function qn(e){let t="",n=!1;for(let s=0;s<e.length;s++)se(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function en(e){(L[0]||Ye).children.push(e)}function z(e,t){return{start:$.getPos(e),end:t==null?t:$.getPos(t),source:t==null?t:Y(e,t)}}function Ui(e){return z(e.start.offset,e.end.offset)}function xe(e,t){e.end=$.getPos(t),e.source=Y(e.start.offset,t)}function qi(e){const t={type:6,name:e.rawName,nameLoc:z(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function ft(e,t=!1,n,s=0,i=0){return S(e,t,n,s)}function te(e,t,n){x.onError(R(e,z(t,t),void 0,n))}function Ki(){$.reset(),X=null,T=null,ee="",ve=-1,we=-1,L.length=0}function Wi(e,t){if(Ki(),ge=e,x=ye({},Ln),t){let i;for(i in t)t[i]!=null&&(x[i]=t[i])}if(process.env.NODE_ENV!=="production"&&!x.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");$.mode=x.parseMode==="html"?1:x.parseMode==="sfc"?2:0,$.inXML=x.ns===1||x.ns===2;const n=t&&t.delimiters;n&&($.delimiterOpen=it(n[0]),$.delimiterClose=it(n[1]));const s=Ye=vi([],e);return $.parse(ge),s.loc=z(0,e.length),s.children=Un(s.children),Ye=null,s}function Gi(e,t){dt(e,void 0,t,!!Kn(e))}function Kn(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!at(t[0])?t[0]:null}function dt(e,t,n,s=!1,i=!1){const{children:r}=e,o=[];for(let f=0;f<r.length;f++){const d=r[f];if(d.type===1&&d.tagType===0){const u=s?0:ie(d,n);if(u>0){if(u>=2){d.codegenNode.patchFlag=-1,o.push(d);continue}}else{const y=d.codegenNode;if(y.type===13){const g=y.patchFlag;if((g===void 0||g===512||g===1)&&Gn(d,n)>=2){const k=Jn(d);k&&(y.props=n.hoist(k))}y.dynamicProps&&(y.dynamicProps=n.hoist(y.dynamicProps))}}}else if(d.type===12&&(s?0:ie(d,n))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push(-1+(process.env.NODE_ENV!=="production"?` /* ${je[-1]} */`:"")),o.push(d);continue}if(d.type===1){const u=d.tagType===1;u&&n.scopes.vSlot++,dt(d,e,n,!1,i),u&&n.scopes.vSlot--}else if(d.type===11)dt(d,e,n,d.children.length===1,!0);else if(d.type===9)for(let u=0;u<d.branches.length;u++)dt(d.branches[u],e,n,d.branches[u].children.length===1,i)}let l=!1;const c=[];if(o.length===r.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&he(e.codegenNode.children))e.codegenNode.children=p(Te(e.codegenNode.children)),l=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=h(e.codegenNode,"default");f&&(c.push(n.cached.length),f.returns=p(Te(f.returns)),l=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!he(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=V(e,"slot",!0),d=f&&f.arg&&h(t.codegenNode,f.arg);d&&(c.push(n.cached.length),d.returns=p(Te(d.returns)),l=!0)}}if(!l)for(const f of o)c.push(n.cached.length),f.codegenNode=n.cache(f.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(F("__",S(JSON.stringify(c),!1)));function p(f){const d=n.cache(f);return i&&n.hmr&&(d.needArraySpread=!0),d}function h(f,d){if(f.children&&!he(f.children)&&f.children.type===15){const u=f.children.properties.find(y=>y.key===d||y.key.content===d);return u&&u.value}}o.length&&n.transformHoist&&n.transformHoist(r,n,e)}function ie(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const 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 o=3;const l=Gn(e,t);if(l===0)return n.set(e,0),0;l<o&&(o=l);for(let c=0;c<e.children.length;c++){const p=ie(e.children[c],t);if(p===0)return n.set(e,0),0;p<o&&(o=p)}if(o>1)for(let c=0;c<e.props.length;c++){const p=e.props[c];if(p.type===7&&p.name==="bind"&&p.exp){const h=ie(p.exp,t);if(h===0)return n.set(e,0),0;h<o&&(o=h)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(_e),t.removeHelper(Me(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper($e(t.inSSR,i.isComponent))}return n.set(e,o),o}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ie(e.content,t);case 4:return e.constType;case 8:let r=3;for(let o=0;o<e.children.length;o++){const l=e.children[o];if(G(l)||Tt(l))continue;const c=ie(l,t);if(c===0)return 0;c<r&&(r=c)}return r;case 20:return 2;default:return process.env.NODE_ENV,0}}const Ji=new Set([Ft,jt,qe,Ke]);function Wn(e,t){if(e.type===14&&!G(e.callee)&&Ji.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ie(n,t);if(n.type===14)return Wn(n,t)}return 0}function Gn(e,t){let n=3;const s=Jn(e);if(s&&s.type===15){const{properties:i}=s;for(let r=0;r<i.length;r++){const{key:o,value:l}=i[r],c=ie(o,t);if(c===0)return c;c<n&&(n=c);let p;if(l.type===4?p=ie(l,t):l.type===14?p=Wn(l,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function Jn(e){const t=e.codegenNode;if(t.type===13)return t.props}function Yi(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:p=Ct,isCustomElement:h=Ct,expressionPlugins:f=[],scopeId:d=null,slotted:u=!0,ssr:y=!1,inSSR:g=!1,ssrCssVars:k="",bindingMetadata:N=Gs,inline:B=!1,isTS:H=!1,onError:pe=Yt,onWarn:W=Dn,compatConfig:fe}){const ae=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),_={filename:t,selfName:ae&&xt(be(ae[1])),prefixIdentifiers:n,hoistStatic:s,hmr:i,cacheHandlers:r,nodeTransforms:o,directiveTransforms:l,transformHoist:c,isBuiltInComponent:p,isCustomElement:h,expressionPlugins:f,scopeId:d,slotted:u,ssr:y,inSSR:g,ssrCssVars:k,bindingMetadata:N,inline:B,isTS:H,onError:pe,onWarn:W,compatConfig:fe,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(E){const I=_.helpers.get(E)||0;return _.helpers.set(E,I+1),E},removeHelper(E){const I=_.helpers.get(E);if(I){const D=I-1;D?_.helpers.set(E,D):_.helpers.delete(E)}},helperString(E){return`_${Be[_.helper(E)]}`},replaceNode(E){if(process.env.NODE_ENV!=="production"){if(!_.currentNode)throw new Error("Node being replaced is already removed.");if(!_.parent)throw new Error("Cannot replace root node.")}_.parent.children[_.childIndex]=_.currentNode=E},removeNode(E){if(process.env.NODE_ENV!=="production"&&!_.parent)throw new Error("Cannot remove root node.");const I=_.parent.children,D=E?I.indexOf(E):_.currentNode?_.childIndex:-1;if(process.env.NODE_ENV!=="production"&&D<0)throw new Error("node being removed is not a child of current parent");!E||E===_.currentNode?(_.currentNode=null,_.onNodeRemoved()):_.childIndex>D&&(_.childIndex--,_.onNodeRemoved()),_.parent.children.splice(D,1)},onNodeRemoved:Ct,addIdentifiers(E){},removeIdentifiers(E){},hoist(E){G(E)&&(E=S(E)),_.hoists.push(E);const I=S(`_hoisted_${_.hoists.length}`,!1,E.loc,2);return I.hoisted=E,I},cache(E,I=!1,D=!1){const C=yi(_.cached.length,E,I,D);return _.cached.push(C),C}};return _.filters=new Set,_}function Xi(e,t){const n=Yi(e,t);ut(e,n),t.hoistStatic&&Gi(e,n),t.ssr||Qi(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 Qi(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const i=Kn(e);if(i&&i.codegenNode){const r=i.codegenNode;r.type===13&&Gt(r,t),e.codegenNode=r}else e.codegenNode=s[0]}else if(s.length>1){let i=64;process.env.NODE_ENV!=="production"&&s.filter(r=>r.type!==3).length===1&&(i|=2048),e.codegenNode=We(t,n(ze),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Zi(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];G(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,ut(i,t))}}function ut(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let r=0;r<n.length;r++){const o=n[r](e,t);if(o&&(he(o)?s.push(...o):s.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ue);break;case 5:t.ssr||t.helper(tt);break;case 9:for(let r=0;r<e.branches.length;r++)ut(e.branches[r],t);break;case 10:case 11:case 1:case 0:Zi(e,t);break}t.currentNode=e;let i=s.length;for(;i--;)s[i]()}function Yn(e,t){const n=G(e)?s=>s===e:s=>e.test(s);return(s,i)=>{if(s.type===1){const{props:r}=s;if(s.tagType===3&&r.some(Di))return;const o=[];for(let l=0;l<r.length;l++){const c=r[l];if(c.type===7&&n(c.name)){r.splice(l,1),l--;const p=t(s,c,i);p&&o.push(p)}}return o}}}const ht="/*@__PURE__*/",Xn=e=>`${Be[e]}: _${Be[e]}`;function Vi(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:h=!1,isTS:f=!1,inSSR:d=!1}){const u={mode:t,prefixIdentifiers:n,sourceMap:s,filename:i,scopeId:r,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:h,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(g){return`_${Be[g]}`},push(g,k=-2,N){u.code+=g},indent(){y(++u.indentLevel)},deindent(g=!1){g?--u.indentLevel:y(--u.indentLevel)},newline(){y(u.indentLevel)}};function y(g){u.push(`
13
+ `+" ".repeat(g),0)}return u}function er(e,t={}){const n=Vi(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:i,prefixIdentifiers:r,indent:o,deindent:l,newline:c,scopeId:p,ssr:h}=n,f=Array.from(e.helpers),d=f.length>0,u=!r&&s!=="module";tr(e,n);const g=h?"ssrRender":"render",N=(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${g}(${N}) {`),o(),u&&(i("with (_ctx) {"),o(),d&&(i(`const { ${f.map(Xn).join(", ")} } = _Vue
14
+ `,-1),c())),e.components.length&&(tn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(tn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),tn(e.filters,"filter",n),c()),e.temps>0){i("let ");for(let B=0;B<e.temps;B++)i(`${B>0?", ":""}_temp${B}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
15
+ `,0),c()),h||i("return "),e.codegenNode?Q(e.codegenNode,n):i("null"),u&&(l(),i("}")),l(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function tr(e,t){const{ssr:n,prefixIdentifiers:s,push:i,newline:r,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,p=l,h=Array.from(e.helpers);if(h.length>0&&(i(`const _Vue = ${p}
16
+ `,-1),e.hoists.length)){const f=[Dt,It,Ue,At,kn].filter(d=>h.includes(d)).map(Xn).join(", ");i(`const { ${f} } = _Vue
17
+ `,-1)}nr(e.hoists,t),r(),i("return ")}function tn(e,t,{helper:n,push:s,newline:i,isTS:r}){const o=n(t==="filter"?Mt:t==="component"?Bt:$t);for(let l=0;l<e.length;l++){let c=e[l];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),s(`const ${Je(c,t)} = ${o}(${JSON.stringify(c)}${p?", true":""})${r?"!":""}`),l<e.length-1&&i()}}function nr(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let i=0;i<e.length;i++){const r=e[i];r&&(n(`const _hoisted_${i+1} = `),Q(r,t),s())}t.pure=!1}function sr(e){return G(e)||e.type===4||e.type===2||e.type===5||e.type===8}function nn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(s=>he(s)||!sr(s));t.push("["),n&&t.indent(),Xe(e,t,n),n&&t.deindent(),t.push("]")}function Xe(e,t,n=!1,s=!0){const{push:i,newline:r}=t;for(let o=0;o<e.length;o++){const l=e[o];G(l)?i(l,-3):he(l)?nn(l,t):Q(l,t),o<e.length-1&&(n?(s&&i(","),r()):s&&i(", "))}}function Q(e,t){if(G(e)){t.push(e,-3);return}if(Tt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Rn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),Q(e.codegenNode,t);break;case 2:ir(e,t);break;case 4:Qn(e,t);break;case 5:rr(e,t);break;case 12:Q(e.codegenNode,t);break;case 8:Zn(e,t);break;case 3:ar(e,t);break;case 13:lr(e,t);break;case 14:pr(e,t);break;case 15:fr(e,t);break;case 17:dr(e,t);break;case 18:ur(e,t);break;case 19:hr(e,t);break;case 20:mr(e,t);break;case 21:Xe(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:if(process.env.NODE_ENV!=="production")return Rn(!1,`unhandled codegen node type: ${e.type}`),e}}function ir(e,t){t.push(JSON.stringify(e.content),-3,e)}function Qn(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function rr(e,t){const{push:n,helper:s,pure:i}=t;i&&n(ht),n(`${s(tt)}(`),Q(e.content,t),n(")")}function Zn(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];G(s)?t.push(s,-3):Q(s,t)}}function or(e,t){const{push:n}=t;if(e.type===8)n("["),Zn(e,t),n("]");else if(e.isStatic){const s=Xt(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function ar(e,t){const{push:n,helper:s,pure:i}=t;i&&n(ht),n(`${s(Ue)}(${JSON.stringify(e.content)})`,-3,e)}function lr(e,t){const{push:n,helper:s,pure:i}=t,{tag:r,props:o,children:l,patchFlag:c,dynamicProps:p,directives:h,isBlock:f,disableTracking:d,isComponent:u}=e;let y;if(c)if(process.env.NODE_ENV!=="production")if(c<0)y=c+` /* ${je[c]} */`;else{const k=Object.keys(je).map(Number).filter(N=>N>0&&c&N).map(N=>je[N]).join(", ");y=c+` /* ${k} */`}else y=String(c);h&&n(s(Pt)+"("),f&&n(`(${s(_e)}(${d?"true":""}), `),i&&n(ht);const g=f?Me(t.inSSR,u):$e(t.inSSR,u);n(s(g)+"(",-2,e),Xe(cr([r,o,l,y,p]),t),n(")"),f&&n(")"),h&&(n(", "),Q(h,t),n(")"))}function cr(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function pr(e,t){const{push:n,helper:s,pure:i}=t,r=G(e.callee)?e.callee:s(e.callee);i&&n(ht),n(r+"(",-2,e),Xe(e.arguments,t),n(")")}function fr(e,t){const{push:n,indent:s,deindent:i,newline:r}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const l=o.length>1||process.env.NODE_ENV!=="production"&&o.some(c=>c.value.type!==4);n(l?"{":"{ "),l&&s();for(let c=0;c<o.length;c++){const{key:p,value:h}=o[c];or(p,t),n(": "),Q(h,t),c<o.length-1&&(n(","),r())}l&&i(),n(l?"}":" }")}function dr(e,t){nn(e.elements,t)}function ur(e,t){const{push:n,indent:s,deindent:i}=t,{params:r,returns:o,body:l,newline:c,isSlot:p}=e;p&&n(`_${Be[qt]}(`),n("(",-2,e),he(r)?Xe(r,t):r&&Q(r,t),n(") => "),(c||l)&&(n("{"),s()),o?(c&&n("return "),he(o)?nn(o,t):Q(o,t)):l&&Q(l,t),(c||l)&&(i(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function hr(e,t){const{test:n,consequent:s,alternate:i,newline:r}=e,{push:o,indent:l,deindent:c,newline:p}=t;if(n.type===4){const f=!Xt(n.content);f&&o("("),Qn(n,t),f&&o(")")}else o("("),Q(n,t),o(")");r&&l(),t.indentLevel++,r||o(" "),o("? "),Q(s,t),t.indentLevel--,r&&p(),r||o(" "),o(": ");const h=i.type===19;h||t.indentLevel++,Q(i,t),h||t.indentLevel--,r&&c(!0)}function mr(e,t){const{push:n,helper:s,indent:i,deindent:r,newline:o}=t,{needPauseTracking:l,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),l&&(i(),n(`${s(st)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),Q(e.value,t),l&&(n(`).cacheIndex = ${e.index},`),o(),n(`${s(st)}(1),`),o(),n(`_cache[${e.index}]`),r()),n(")"),c&&n(")]")}const gr=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"),vr=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Oe(e,t,n=!1,s=!1){const i=e.content;if(i.trim())try{new Function(s?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(r){let o=r.message;const l=i.replace(vr,"").match(gr);l&&(o=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(R(45,e.loc,void 0,o))}}const yr=(e,t)=>{if(e.type===5)e.content=sn(e.content,t);else if(e.type===1){const n=V(e,"memo");for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===7&&i.name!=="for"){const r=i.exp,o=i.arg;r&&r.type===4&&!(i.name==="on"&&o)&&!(n&&o&&o.type===4&&o.content==="key")&&(i.exp=sn(r,t,i.name==="slot")),o&&o.type===4&&!o.isStatic&&(i.arg=sn(o,t))}}}};function sn(e,t,n=!1,s=!1,i=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Oe(e,t,n,s),e}const br=Yn(/^(if|else|else-if)$/,(e,t,n)=>Er(e,t,n,(s,i,r)=>{const o=n.parent.children;let l=o.indexOf(s),c=0;for(;l-->=0;){const p=o[l];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(r)s.codegenNode=es(i,c,n);else{const p=Sr(s.codegenNode);p.alternate=es(i,c+s.branches.length-1,n)}}}));function Er(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(R(28,t.loc)),t.exp=S("true",!1,i)}if(process.env.NODE_ENV!=="production"&&t.exp&&Oe(t.exp,n),t.name==="if"){const i=Vn(e,t),r={type:9,loc:Ui(e.loc),branches:[i]};if(n.replaceNode(r),s)return s(r,i,!0)}else{const i=n.parent.children,r=[];let o=i.indexOf(e);for(;o-->=-1;){const l=i[o];if(l&&l.type===3){n.removeNode(l),process.env.NODE_ENV!=="production"&&r.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(R(30,e.loc)),n.removeNode();const c=Vn(e,t);if(process.env.NODE_ENV!=="production"&&r.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...r,...c.children]),process.env.NODE_ENV!=="production"){const h=c.userKey;h&&l.branches.forEach(({userKey:f})=>{Nr(f,h)&&n.onError(R(29,c.userKey.loc))})}l.branches.push(c);const p=s&&s(l,c,!1);ut(c,n),p&&p(),n.currentNode=null}else n.onError(R(30,e.loc));break}}}function Vn(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!V(e,"for")?e.children:[e],userKey:Ge(e,"key"),isTemplateIf:n}}function es(e,t,n){return e.condition?Wt(e.condition,ts(e,t,n),K(n.helper(Ue),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):ts(e,t,n)}function ts(e,t,n){const{helper:s}=n,i=F("key",S(`${t}`,!1,ne,2)),{children:r}=e,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const c=o.codegenNode;return lt(c,i,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&r.filter(p=>p.type!==3).length===1&&(c|=2048),We(n,s(ze),oe([i]),r,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=o.codegenNode,p=Ai(c);return p.type===13&&Gt(p,n),lt(p,i,n),c}}function Nr(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function Sr(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const kr=(e,t,n)=>{const{modifiers:s,loc:i}=e,r=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(r.type!==4||!r.isStatic)return n.onError(R(52,r.loc)),{props:[F(r,S("",!0,i))]};ns(e),o=e.exp}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=r.content?`${r.content} || ""`:'""'),s.some(l=>l.content==="camel")&&(r.type===4?r.isStatic?r.content=be(r.content):r.content=`${n.helperString(Ht)}(${r.content})`:(r.children.unshift(`${n.helperString(Ht)}(`),r.children.push(")"))),n.inSSR||(s.some(l=>l.content==="prop")&&ss(r,"."),s.some(l=>l.content==="attr")&&ss(r,"^")),{props:[F(r,o)]}},ns=(e,t)=>{const n=e.arg,s=be(n.content);e.exp=S(s,!1,n.loc)},ss=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cr=Yn("for",(e,t,n)=>{const{helper:s,removeHelper:i}=n;return _r(e,t,n,r=>{const o=K(s(Lt),[r.source]),l=ot(e),c=V(e,"memo"),p=Ge(e,"key",!1,!0);p&&p.type===7&&!p.exp&&ns(p);let f=p&&(p.type===6?p.value?S(p.value.content,!0):void 0:p.exp);const d=p&&f?F("key",f):null,u=r.source.type===4&&r.source.constType>0,y=u?64:p?128:256;return r.codegenNode=We(n,s(ze),void 0,o,y,void 0,void 0,!0,!u,!1,e.loc),()=>{let g;const{children:k}=r;process.env.NODE_ENV!=="production"&&l&&e.children.some(H=>{if(H.type===1){const pe=Ge(H,"key");if(pe)return n.onError(R(33,pe.loc)),!0}});const N=k.length!==1||k[0].type!==1,B=at(e)?e:l&&e.children.length===1&&at(e.children[0])?e.children[0]:null;if(B?(g=B.codegenNode,l&&d&&lt(g,d,n)):N?g=We(n,s(ze),d?oe([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(g=k[0].codegenNode,l&&d&&lt(g,d,n),g.isBlock!==!u&&(g.isBlock?(i(_e),i(Me(n.inSSR,g.isComponent))):i($e(n.inSSR,g.isComponent))),g.isBlock=!u,g.isBlock?(s(_e),s(Me(n.inSSR,g.isComponent))):s($e(n.inSSR,g.isComponent))),c){const H=Re(rn(r.parseResult,[S("_cached")]));H.body=bi([le(["const _memo = (",c.exp,")"]),le(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Tn)}(_cached, _memo)) return _cached`]),le(["const _item = ",g]),S("_item.memo = _memo"),S("return _item")]),o.arguments.push(H,S("_cache"),S(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(Re(rn(r.parseResult),g,!0))}})});function _r(e,t,n,s){if(!t.exp){n.onError(R(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(R(32,t.loc));return}is(i,n);const{addIdentifiers:r,removeIdentifiers:o,scopes:l}=n,{source:c,value:p,key:h,index:f}=i,d={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:h,objectIndexAlias:f,parseResult:i,children:ot(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const u=s&&s(d);return()=>{l.vFor--,u&&u()}}function is(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Oe(e.source,t),e.key&&Oe(e.key,t,!0),e.index&&Oe(e.index,t,!0),e.value&&Oe(e.value,t,!0)),e.finalized=!0)}function rn({value:e,key:t,index:n},s=[]){return Tr([e,t,n,...s])}function Tr(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||S("_".repeat(s+1),!1))}const rs=S("undefined",!1),wr=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=V(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},xr=(e,t,n,s)=>Re(e,n,!1,!0,n.length?n[0].loc:s);function Or(e,t,n=xr){t.helper(qt);const{children:s,loc:i}=e,r=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=V(e,"slot",!0);if(c){const{arg:k,exp:N}=c;k&&!Z(k)&&(l=!0),r.push(F(k||S("default",!0),n(N,void 0,s,i)))}let p=!1,h=!1;const f=[],d=new Set;let u=0;for(let k=0;k<s.length;k++){const N=s[k];let B;if(!ot(N)||!(B=V(N,"slot",!0))){N.type!==3&&f.push(N);continue}if(c){t.onError(R(37,B.loc));break}p=!0;const{children:H,loc:pe}=N,{arg:W=S("default",!0),exp:fe,loc:ae}=B;let _;Z(W)?_=W?W.content:"default":l=!0;const E=V(N,"for"),I=n(fe,E,H,pe);let D,C;if(D=V(N,"if"))l=!0,o.push(Wt(D.exp,mt(W,I,u++),rs));else if(C=V(N,/^else(-if)?$/,!0)){let A=k,M;for(;A--&&(M=s[A],!(M.type!==3&&on(M))););if(M&&ot(M)&&V(M,/^(else-)?if$/)){let P=o[o.length-1];for(;P.alternate.type===19;)P=P.alternate;P.alternate=C.exp?Wt(C.exp,mt(W,I,u++),rs):mt(W,I,u++)}else t.onError(R(30,C.loc))}else if(E){l=!0;const A=E.forParseResult;A?(is(A,t),o.push(K(t.helper(Lt),[A.source,Re(rn(A),mt(W,I),!0)]))):t.onError(R(32,E.loc))}else{if(_){if(d.has(_)){t.onError(R(38,ae));continue}d.add(_),_==="default"&&(h=!0)}r.push(F(W,I))}}if(!c){const k=(N,B)=>{const H=n(N,void 0,B,i);return t.compatConfig&&(H.isNonScopedSlot=!0),F("default",H)};p?f.length&&f.some(N=>on(N))&&(h?t.onError(R(39,f[0].loc)):r.push(k(void 0,f))):r.push(k(void 0,s))}const y=l?2:gt(e.children)?3:1;let g=oe(r.concat(F("_",S(y+(process.env.NODE_ENV!=="production"?` /* ${Zs[y]} */`:""),!1))),i);return o.length&&(g=K(t.helper(_n),[g,Te(o)])),{slots:g,hasDynamicSlots:l}}function mt(e,t,n){const s=[F("name",e),F("fn",t)];return n!=null&&s.push(F("key",S(String(n),!0))),oe(s)}function gt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||gt(n.children))return!0;break;case 9:if(gt(n.branches))return!0;break;case 10:case 11:if(gt(n.children))return!0;break}}return!1}function on(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():on(e.content)}const os=new WeakMap,Dr=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:i}=e,r=e.tagType===1;let o=r?Ir(e,t):`"${s}"`;const l=Js(o)&&o.callee===Rt;let c,p,h=0,f,d,u,y=l||o===He||o===Ot||!r&&(s==="svg"||s==="foreignObject"||s==="math");if(i.length>0){const g=as(e,t,void 0,r,l);c=g.props,h=g.patchFlag,d=g.dynamicPropNames;const k=g.directives;u=k&&k.length?Te(k.map(N=>Br(N,t))):void 0,g.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(o===et&&(y=!0,h|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(R(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),r&&o!==He&&o!==et){const{slots:k,hasDynamicSlots:N}=Or(e,t);p=k,N&&(h|=1024)}else if(e.children.length===1&&o!==He){const k=e.children[0],N=k.type,B=N===5||N===8;B&&ie(k,t)===0&&(h|=1),B||N===2?p=k:p=e.children}else p=e.children;d&&d.length&&(f=Rr(d)),e.codegenNode=We(t,o,c,p,h===0?void 0:h,f,u,!!y,!1,r,e.loc)};function Ir(e,t,n=!1){let{tag:s}=e;const i=an(s),r=Ge(e,"is",!1,!0);if(r)if(i||Ne("COMPILER_IS_ON_ELEMENT",t)){let l;if(r.type===6?l=r.value&&S(r.value.content,!0):(l=r.exp,l||(l=S("is",!1,r.arg.loc))),l)return K(t.helper(Rt),[l])}else r.type===6&&r.value.content.startsWith("vue:")&&(s=r.value.content.slice(4));const o=In(s)||t.isBuiltInComponent(s);return o?(n||t.helper(o),o):(t.helper(Bt),t.components.add(s),Je(s,"component"))}function as(e,t,n=e.props,s,i,r=!1){const{tag:o,loc:l,children:c}=e;let p=[];const h=[],f=[],d=c.length>0;let u=!1,y=0,g=!1,k=!1,N=!1,B=!1,H=!1,pe=!1;const W=[],fe=I=>{p.length&&(h.push(oe(ls(p),l)),p=[]),I&&h.push(I)},ae=()=>{t.scopes.vFor>0&&p.push(F(S("ref_for",!0),S("true")))},_=({key:I,value:D})=>{if(Z(I)){const C=I.content,A=_t(C);if(A&&(!s||i)&&C.toLowerCase()!=="onclick"&&C!=="onUpdate:modelValue"&&!bn(C)&&(B=!0),A&&bn(C)&&(pe=!0),A&&D.type===14&&(D=D.arguments[0]),D.type===20||(D.type===4||D.type===8)&&ie(D,t)>0)return;C==="ref"?g=!0:C==="class"?k=!0:C==="style"?N=!0:C!=="key"&&!W.includes(C)&&W.push(C),s&&(C==="class"||C==="style")&&!W.includes(C)&&W.push(C)}else H=!0};for(let I=0;I<n.length;I++){const D=n[I];if(D.type===6){const{loc:C,name:A,nameLoc:M,value:P}=D;let re=!0;if(A==="ref"&&(g=!0,ae()),A==="is"&&(an(o)||P&&P.content.startsWith("vue:")||Ne("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(F(S(A,!0,M),S(P?P.content:"",re,P?P.loc:C)))}else{const{name:C,arg:A,exp:M,loc:P,modifiers:re}=D,me=C==="bind",Ie=C==="on";if(C==="slot"){s||t.onError(R(40,P));continue}if(C==="once"||C==="memo"||C==="is"||me&&Se(A,"is")&&(an(o)||Ne("COMPILER_IS_ON_ELEMENT",t))||Ie&&r)continue;if((me&&Se(A,"key")||Ie&&d&&Se(A,"vue:before-update"))&&(u=!0),me&&Se(A,"ref")&&ae(),!A&&(me||Ie)){if(H=!0,M)if(me){if(fe(),process.env.NODE_ENV!=="production"&&h.some(de=>de.type===15?de.properties.some(({key:Ae})=>Ae.type!==4||!Ae.isStatic?!0:Ae.content!=="class"&&Ae.content!=="style"&&!_t(Ae.content)):!0)&&Pe("COMPILER_V_BIND_OBJECT_ORDER",t,P),Ne("COMPILER_V_BIND_OBJECT_ORDER",t)){h.unshift(M);continue}ae(),fe(),h.push(M)}else fe({type:14,loc:P,callee:t.helper(zt),arguments:s?[M]:[M,"true"]});else t.onError(R(me?34:35,P));continue}me&&re.some(j=>j.content==="prop")&&(y|=32);const Qe=t.directiveTransforms[C];if(Qe){const{props:j,needRuntime:de}=Qe(D,e,t);!r&&j.forEach(_),Ie&&A&&!Z(A)?fe(oe(j,l)):p.push(...j),de&&(f.push(D),Tt(de)&&os.set(D,de))}else Ys(C)||(f.push(D),d&&(u=!0))}}let E;if(h.length?(fe(),h.length>1?E=K(t.helper(nt),h,l):E=h[0]):p.length&&(E=oe(ls(p),l)),H?y|=16:(k&&!s&&(y|=2),N&&!s&&(y|=4),W.length&&(y|=8),B&&(y|=32)),!u&&(y===0||y===32)&&(g||pe||f.length>0)&&(y|=512),!t.inSSR&&E)switch(E.type){case 15:let I=-1,D=-1,C=!1;for(let P=0;P<E.properties.length;P++){const re=E.properties[P].key;Z(re)?re.content==="class"?I=P:re.content==="style"&&(D=P):re.isHandlerKey||(C=!0)}const A=E.properties[I],M=E.properties[D];C?E=K(t.helper(qe),[E]):(A&&!Z(A.value)&&(A.value=K(t.helper(Ft),[A.value])),M&&(N||M.value.type===4&&M.value.content.trim()[0]==="["||M.value.type===17)&&(M.value=K(t.helper(jt),[M.value])));break;case 14:break;default:E=K(t.helper(qe),[K(t.helper(Ke),[E])]);break}return{props:E,directives:f,patchFlag:y,dynamicPropNames:W,shouldUseBlock:u}}function ls(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const r=i.key.content,o=t.get(r);o?(r==="style"||r==="class"||_t(r))&&Ar(o,i):(t.set(r,i),n.push(i))}return n}function Ar(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Te([e.value,t.value],e.loc)}function Br(e,t){const n=[],s=os.get(e);s?n.push(t.helperString(s)):(t.helper($t),t.directives.add(e.name),n.push(Je(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const r=S("true",!1,i);n.push(oe(e.modifiers.map(o=>F(o,r)),i))}return Te(n,e.loc)}function Rr(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function an(e){return e==="component"||e==="Component"}const $r=(e,t)=>{if(at(e)){const{children:n,loc:s}=e,{slotName:i,slotProps:r}=Mr(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let l=2;r&&(o[2]=r,l=3),n.length&&(o[3]=Re([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=K(t.helper(Cn),o,s)}};function Mr(e,t){let n='"default"',s;const i=[];for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=be(o.name),i.push(o)));else if(o.name==="bind"&&Se(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const l=be(o.arg.content);n=o.exp=S(l,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&Z(o.arg)&&(o.arg.content=be(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=as(e,t,i,!1,!1);s=r,o.length&&t.onError(R(36,o[0].loc))}return{slotName:n,slotProps:s}}const cs=(e,t,n,s)=>{const{loc:i,modifiers:r,arg:o}=e;!e.exp&&!r.length&&n.onError(R(35,i));let l;if(o.type===4)if(o.isStatic){let f=o.content;process.env.NODE_ENV!=="production"&&f.startsWith("vnode")&&n.onError(R(51,o.loc)),f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?Qs(be(f)):`on:${f}`;l=S(d,!0,o.loc)}else l=le([`${n.helperString(Ut)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(Ut)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let p=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const f=Bn(c),d=!(f||xi(c)),u=c.content.includes(";");process.env.NODE_ENV!=="production"&&Oe(c,n,!1,u),(d||p&&f)&&(c=le([`${d?"$event":"(...args)"} => ${u?"{":"("}`,c,u?"}":")"]))}let h={props:[F(l,c||S("() => {}",!1,i))]};return s&&(h=s(h)),p&&(h.props[0].value=n.cache(h.props[0].value)),h.props.forEach(f=>f.key.isHandlerKey=!0),h},Pr=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,i=!1;for(let r=0;r<n.length;r++){const o=n[r];if(Qt(o)){i=!0;for(let l=r+1;l<n.length;l++){const c=n[l];if(Qt(c))s||(s=n[r]=le([o],o.loc)),s.children.push(" + ",c),n.splice(l,1),l--;else{s=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<n.length;r++){const o=n[r];if(Qt(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&ie(o,t)===0&&l.push(1+(process.env.NODE_ENV!=="production"?` /* ${je[1]} */`:"")),n[r]={type:12,content:o,loc:o.loc,codegenNode:K(t.helper(At),l)}}}}},ps=new WeakSet,Lr=(e,t)=>{if(e.type===1&&V(e,"once",!0))return ps.has(e)||t.inVOnce||t.inSSR?void 0:(ps.add(e),t.inVOnce=!0,t.helper(st),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},fs=(e,t,n)=>{const{exp:s,arg:i}=e;if(!s)return n.onError(R(41,e.loc)),vt();const r=s.loc.source.trim(),o=s.type===4?s.content:r,l=n.bindingMetadata[r];if(l==="props"||l==="props-aliased")return n.onError(R(44,s.loc)),vt();if(!o.trim()||!Bn(s))return n.onError(R(42,s.loc)),vt();const c=i||S("modelValue",!0),p=i?Z(i)?`onUpdate:${be(i.content)}`:le(['"onUpdate:" + ',i]):"onUpdate:modelValue";let h;const f=n.isTS?"($event: any)":"$event";h=le([`${f} => ((`,s,") = $event)"]);const d=[F(c,e.exp),F(p,h)];if(e.modifiers.length&&t.tagType===1){const u=e.modifiers.map(g=>g.content).map(g=>(Xt(g)?g:JSON.stringify(g))+": true").join(", "),y=i?Z(i)?`${i.content}Modifiers`:le([i,' + "Modifiers"']):"modelModifiers";d.push(F(y,S(`{ ${u} }`,!1,e.loc,2)))}return vt(d)};function vt(e=[]){return{props:e}}const Fr=/[\w).+\-_$\]]/,jr=(e,t)=>{Ne("COMPILER_FILTERS",t)&&(e.type===5?yt(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&yt(n.exp,t)}))};function yt(e,t){if(e.type===4)ds(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?ds(s,t):s.type===8?yt(e,t):s.type===5&&yt(s.content,t))}}function ds(e,t){const n=e.content;let s=!1,i=!1,r=!1,o=!1,l=0,c=0,p=0,h=0,f,d,u,y,g=[];for(u=0;u<n.length;u++)if(d=f,f=n.charCodeAt(u),s)f===39&&d!==92&&(s=!1);else if(i)f===34&&d!==92&&(i=!1);else if(r)f===96&&d!==92&&(r=!1);else if(o)f===47&&d!==92&&(o=!1);else if(f===124&&n.charCodeAt(u+1)!==124&&n.charCodeAt(u-1)!==124&&!l&&!c&&!p)y===void 0?(h=u+1,y=n.slice(0,u).trim()):k();else{switch(f){case 34:i=!0;break;case 39:s=!0;break;case 96:r=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:l++;break;case 125:l--;break}if(f===47){let N=u-1,B;for(;N>=0&&(B=n.charAt(N),B===" ");N--);(!B||!Fr.test(B))&&(o=!0)}}y===void 0?y=n.slice(0,u).trim():h!==0&&k();function k(){g.push(n.slice(h,u).trim()),h=u+1}if(g.length){for(process.env.NODE_ENV!=="production"&&rt("COMPILER_FILTERS",t,e.loc),u=0;u<g.length;u++)y=zr(y,g[u],t);e.content=y,e.ast=void 0}}function zr(e,t,n){n.helper(Mt);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Je(t,"filter")}(${e})`;{const i=t.slice(0,s),r=t.slice(s+1);return n.filters.add(i),`${Je(i,"filter")}(${e}${r!==")"?","+r:r}`}}const us=new WeakSet,Hr=(e,t)=>{if(e.type===1){const n=V(e,"memo");return!n||us.has(e)?void 0:(us.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&Gt(s,t),e.codegenNode=K(t.helper(Kt),[n.exp,Re(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Ur(e){return[[Lr,br,Hr,Cr,jr,...process.env.NODE_ENV!=="production"?[yr]:[],$r,Dr,wr,Pr],{on:cs,bind:kr,model:fs}]}function qr(e,t={}){const n=t.onError||Yt,s=t.mode==="module";t.prefixIdentifiers===!0?n(R(47)):s&&n(R(48));const i=!1;t.cacheHandlers&&n(R(49)),t.scopeId&&!s&&n(R(50));const r=ye({},t,{prefixIdentifiers:i}),o=G(e)?Wi(e,r):e,[l,c]=Ur();return Xi(o,ye({},r,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ye({},c,t.directiveTransforms||{})})),er(o,r)}const Kr=()=>({props:[]});/**
18
+ * @vue/compiler-dom v3.5.18
19
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
+ * @license MIT
21
+ **/const hs=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),ms=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),gs=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),vs=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),ln=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),ys=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),bs=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Es=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),cn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Ns=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");gi({[hs]:"vModelRadio",[ms]:"vModelCheckbox",[gs]:"vModelText",[vs]:"vModelSelect",[ln]:"vModelDynamic",[ys]:"withModifiers",[bs]:"withKeys",[Es]:"vShow",[cn]:"Transition",[Ns]:"TransitionGroup"});let Le;function Wr(e,t=!1){return Le||(Le=document.createElement("div")),t?(Le.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Le.children[0].getAttribute("foo")):(Le.innerHTML=e,Le.textContent)}const Gr={parseMode:"html",isVoidTag:pi,isNativeTag:e=>ai(e)||li(e)||ci(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Wr,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return cn;if(e==="TransitionGroup"||e==="transition-group")return Ns},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Jr=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:S("style",!0,t.loc),exp:Yr(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Yr=(e,t)=>{const n=ni(e);return S(JSON.stringify(n),!1,t,3)};function ce(e,t){return R(e,t,process.env.NODE_ENV!=="production"?Xr:void 0)}const Xr={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."},Qr=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(ce(53,i)),t.children.length&&(n.onError(ce(54,i)),t.children.length=0),{props:[F(S("innerHTML",!0,i),s||S("",!0))]}},Zr=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(ce(55,i)),t.children.length&&(n.onError(ce(56,i)),t.children.length=0),{props:[F(S("textContent",!0),s?ie(s,n)>0?s:K(n.helperString(tt),[s],i):S("",!0))]}},Vr=(e,t,n)=>{const s=fs(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(ce(58,e.arg.loc));function i(){const l=V(t,"bind");l&&Se(l.arg,"value")&&n.onError(ce(60,l.loc))}const{tag:r}=t,o=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||o){let l=gs,c=!1;if(r==="input"||o){const p=Ge(t,"type");if(p){if(p.type===7)l=ln;else if(p.value)switch(p.value.content){case"radio":l=hs;break;case"checkbox":l=ms;break;case"file":c=!0,n.onError(ce(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&i();break}}else Oi(t)?l=ln:process.env.NODE_ENV!=="production"&&i()}else r==="select"?l=vs:process.env.NODE_ENV!=="production"&&i();c||(s.needRuntime=n.helper(l))}else n.onError(ce(57,e.loc));return s.props=s.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),s},eo=ue("passive,once,capture"),to=ue("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),no=ue("left,right"),Ss=ue("onkeyup,onkeydown,onkeypress"),so=(e,t,n,s)=>{const i=[],r=[],o=[];for(let l=0;l<t.length;l++){const c=t[l].content;c==="native"&&Pe("COMPILER_V_ON_NATIVE",n,s)||eo(c)?o.push(c):no(c)?Z(e)?Ss(e.content.toLowerCase())?i.push(c):r.push(c):(i.push(c),r.push(c)):to(c)?r.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}},ks=(e,t)=>Z(e)&&e.content.toLowerCase()==="onclick"?S(t,!0):e.type!==4?le(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,io=(e,t,n)=>cs(e,t,n,s=>{const{modifiers:i}=e;if(!i.length)return s;let{key:r,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:p}=so(r,i,n,e.loc);if(c.includes("right")&&(r=ks(r,"onContextmenu")),c.includes("middle")&&(r=ks(r,"onMouseup")),c.length&&(o=K(n.helper(ys),[o,JSON.stringify(c)])),l.length&&(!Z(r)||Ss(r.content.toLowerCase()))&&(o=K(n.helper(bs),[o,JSON.stringify(l)])),p.length){const h=p.map(xt).join("");r=Z(r)?S(`${r.content}${h}`,!0):le(["(",r,`) + "${h}"`])}return{props:[F(r,o)]}}),ro=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(ce(61,i)),{props:[],needRuntime:n.helper(Es)}},oo=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===cn)return()=>{if(!e.children.length)return;Cs(e)&&t.onError(ce(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const i of s.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Cs(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Cs)}const ao=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(ce(63,e.loc)),t.removeNode())};function lo(e,t){return e==="template"?!0:e in _s?_s[e].has(t):t in Ts?Ts[t].has(e):!(e in ws&&ws[e].has(t)||t in xs&&xs[t].has(e))}const Fe=new Set(["h1","h2","h3","h4","h5","h6"]),De=new Set([]),_s={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:De,iframe:De,option:De,textarea:De,style:De,title:De},Ts={html:De,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},ws={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},xs={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:Fe,h2:Fe,h3:Fe,h4:Fe,h5:Fe,h6:Fe},co=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!lo(t.parent.tag,e.tag)){const n=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}},po=[Jr,...process.env.NODE_ENV!=="production"?[oo,co]:[]],fo={cloak:Kr,html:Qr,text:Zr,model:Vr,on:io,show:ro};function uo(e,t={}){return qr(e,ye({},Gr,t,{nodeTransforms:[ao,...po,...t.nodeTransforms||[]],directiveTransforms:ye({},fo,t.directiveTransforms||{}),transformHoist:null}))}function ho(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:s}=uo(n,{mode:"function"}),i=new Function("Vue",`${s}; return render`)(Ms);return a.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(r,o){return t?.setup?.()??{}},render:i})}const pn={};function Os(e){return pn[e]||(pn[e]=ho(e,{props:{row:Object,value:null,data:Object,column:Object}})),pn[e]}const mo={key:0,class:"text-center py-8"},go={class:"inline-flex items-center space-x-2"},vo={key:2,class:"overflow-x-auto"},yo=["checked","indeterminate"],bo=["onClick"],Eo={class:"flex items-center justify-between"},No={key:0,class:"ml-1 text-xs"},So=["onClick"],ko=["checked","onChange"],Co=["onClick"],_o={key:1,class:"text-center"},bt=a.defineComponent({name:"DataTable",__name:"DataTable",props:{rows:{default:()=>[]},columns:{default:()=>[]},api:{},router:{},tableStyle:{default:""},size:{default:"medium"},theme:{default:"light"},loading:{type:Boolean,default:!1},classWrapper:{default:""},classTable:{default:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},classTbody:{default:""},classTr:{default:""},classTd:{default:""},classTh:{default:""},classThead:{default:""},classLink:{default:""},selectable:{type:Boolean,default:!1},selectedRows:{default:()=>[]},limit:{default:10},page:{default:1},total:{default:0},showPagination:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0}},emits:["update:page","update:selectedRows","row-click","sort"],setup(e,{emit:t}){const n=e,s=t,i=a.ref(n.selectedRows||[]),r=a.ref([]),o=a.ref([]),l=a.ref([]),c=a.ref(!1),p=a.ref(null),h=a.ref(n.router),f=a.useSlots(),d=a.computed(()=>f.action);function u(m){if(h.value){h.value.push(m);return}location.href=m}const y=a.computed(()=>{if(n.api)return o.value;if(n.sortable&&r.value.length>0){const m=[...n.rows];return m.sort((w,b)=>{for(const O of r.value){if(!O.direction)return 0;const v=w[O.field],U=b[O.field];if(v==null)return 1;if(U==null)return-1;let Ce=0;typeof v=="string"&&typeof U=="string"?Ce=v.localeCompare(U):v<U?Ce=-1:v>U?Ce=1:Ce=0;const Nt=O.direction==="desc"?-Ce:Ce;if(Nt!==0)return Nt}return 0}),m}return n.rows});a.watch(()=>n.selectedRows,m=>{i.value=m||[]});const g=m=>i.value.some(w=>w===m),k=m=>{const w=i.value.findIndex(b=>b===m);w>-1?i.value.splice(w,1):i.value.push(m),s("update:selectedRows",[...i.value])},N=a.computed(()=>y.value.length>0&&i.value.length===y.value.length),B=a.computed(()=>i.value.length>0&&i.value.length<y.value.length),H=()=>{N.value?i.value=[]:i.value=[...y.value],s("update:selectedRows",[...i.value])},pe=m=>{if(!n.sortable)return;const w=r.value.findIndex(O=>O.field===m);if(w>=0){const O=r.value[w];O.direction==="asc"?O.direction="desc":O.direction==="desc"&&r.value.splice(w,1)}else r.value.unshift({field:m,direction:"asc"});const b=r.value.filter(O=>O.direction).map(O=>({name:O.field,asc:O.direction==="asc"}));s("sort",b),n.api&&de()},W=m=>r.value.find(b=>b.field===m)?.direction==="asc",fe=m=>{const w=r.value.find(b=>b.field===m);if(!w)return"↑↓";switch(w.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},ae=m=>n.sortable&&m.sortable!==!1,_=m=>{n.clickable&&s("row-click",m)},E=(m,w)=>{const b=w[m.name];if(n.getCellData||m.getCellData){const O=m.getCellData||n.getCellData;if(O){const v={name:m.name,row:w,value:b};return O(v)}}return["_data","_text"].map(O=>{const v=`${m.name}${O}`;return w[v]?w[v]:null}).find(O=>O)||b},I=m=>m.width?m.width==="w-full"?"w-full":typeof m.width=="string"?`w-[${m.width}px]`:typeof m.width=="number"?`w-[${m.width}px]`:"":"",D=a.ref(n.page),C=a.ref(n.limit),A=a.ref(n.total),M=a.ref(1),P=a.ref(10),re=a.ref(0),me=a.computed(()=>n.api?M.value:D.value),Ie=a.computed(()=>n.api?P.value:C.value),Qe=a.computed(()=>n.api?re.value:A.value),j=a.computed(()=>{const{theme:m}=n;return m==="dark"?{container:"dark",loading:"text-gray-400",error:"text-red-400",thead:"bg-gray-800",th:"text-gray-300",thHover:"hover:bg-gray-700",tbody:"bg-gray-900 divide-gray-700",tr:"hover:bg-gray-800",td:"text-gray-300",empty:"text-gray-400",checkbox:"border-gray-600 bg-gray-700 text-blue-400"}:m==="light"?{container:"",loading:"text-gray-500",error:"text-red-500",thead:"bg-gray-50",th:"text-gray-500",thHover:"hover:bg-gray-100",tbody:"bg-white divide-gray-200",tr:"hover:bg-gray-50",td:"text-gray-900",empty:"text-gray-500",checkbox:"border-gray-300 bg-white text-blue-600"}:{container:"",loading:"text-gray-500 dark:text-gray-400",error:"text-red-500 dark:text-red-400",thead:"bg-gray-50 dark:bg-gray-800",th:"text-gray-500 dark:text-gray-300",thHover:"hover:bg-gray-100 dark:hover:bg-gray-700",tbody:"bg-white dark:bg-gray-900 divide-gray-200 dark:divide-gray-700",tr:"hover:bg-gray-50 dark:hover:bg-gray-800",td:"text-gray-900 dark:text-gray-300",empty:"text-gray-500 dark:text-gray-400",checkbox:"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400"}});a.watch(()=>n.page,m=>{D.value=m}),a.watch(()=>n.limit,m=>{C.value=m}),a.watch(()=>n.total,m=>{A.value=m});async function de(){if(n.api){c.value=!0,p.value=null;try{const m=new URL(n.api,window.location.origin);if(m.searchParams.set("page",me.value.toString()),m.searchParams.set("limit",Ie.value.toString()),r.value.length>0){const O=r.value.filter(v=>v.direction).map(v=>`${v.field}:${v.direction}`).join(",");O&&m.searchParams.set("sort",O)}const w=await fetch(m.toString());if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const b=await w.json();b.rows&&Array.isArray(b.rows)&&(o.value=b.rows),b.columns&&Array.isArray(b.columns)&&(l.value=b.columns),b.total!==void 0&&(n.api?re.value=b.total:A.value=b.total)}catch(m){p.value=m instanceof Error?m.message:"Failed to fetch data",console.error("Error fetching data:",m)}finally{c.value=!1}}}const Ae=m=>{n.api?M.value=m:(D.value=m,s("update:page",m)),n.api&&de()},Fo=a.computed(()=>n.showPagination&&Qe.value>0),Ze=a.computed(()=>({small:{header:"px-3 py-2 text-xs",cell:"px-3 py-2 text-xs"},medium:{header:"px-6 py-3 text-xs",cell:"px-6 py-4 text-sm"},large:{header:"px-8 py-4 text-sm",cell:"px-8 py-6 text-base"}})[n.size]);a.onMounted(()=>{n.api&&(n.page&&(M.value=n.page),n.limit&&(P.value=n.limit),n.total&&(re.value=n.total),de())}),a.watch(()=>n.api,m=>{m&&(M.value=n.page||1,P.value=n.limit||10,re.value=n.total||0,de())});const jo=a.computed(()=>n.api?l.value:n.columns),fn=a.ref([]),Et=a.ref({});a.provide("registerColumn",(m,w)=>{fn.value.push(m),w&&m.slotName&&(Et.value[m.name]=w)});const Bs=a.computed(()=>{const m=jo.value||[],w=[],b=f.default?.();if(b){const O=b.filter(v=>v.type?.name==="Column"||v.type==="Column"||v.type&&typeof v.type=="object"&&v.type.name==="Column").map(v=>{const U=v.props||v.componentProps||{},Ce=U.field||U.name||"",Nt=U.header||U.label||"",Rs=v.children&&v.children.body,dn={name:Ce,ua:Nt,format:U.format||"text",slotName:Rs?"body":void 0,...U};return Rs&&dn.name&&(Et.value[dn.name]=v.children.body),dn});w.push(...O)}if(fn.value.length>0&&w.push(...fn.value),w.length>0){const O=[],v=new Set(w.map(U=>U.name));return m.forEach(U=>{v.has(U.name)||O.push(U)}),O.push(...w),console.log("Combined columns:",{default:m.length,custom:w.length,combined:O.length}),O}return m.length>0?(console.log("Using default columns:",m.length),m):[]}),zo=(m="text")=>St[m.toLowerCase()]||St.text;return(m,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-full",j.value.container])},[c.value||n.loading?(a.openBlock(),a.createElementBlock("div",mo,[a.createElementVNode("div",go,[w[0]||(w[0]=a.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),a.createElementVNode("span",{class:a.normalizeClass(j.value.loading)},"Loading...",2)])])):p.value?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["text-center py-8",j.value.error])},a.toDisplayString(p.value),3)):!n.loading&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",vo,[a.createElementVNode("div",{class:a.normalizeClass(m.classWrapper?m.classWrapper:"relative w-full overflow-auto")},[a.createElementVNode("table",{class:a.normalizeClass(m.classTable),style:a.normalizeStyle(m.tableStyle)},[a.createElementVNode("thead",{class:a.normalizeClass(m.classThead||j.value.thead)},[a.createElementVNode("tr",null,[m.selectable?(a.openBlock(),a.createElementBlock("th",{key:0,class:a.normalizeClass(["text-left font-medium uppercase tracking-wider",j.value.th,Ze.value.header,n.classTh,"w-12"])},[a.createElementVNode("input",{type:"checkbox",checked:N.value,indeterminate:B.value,onChange:H,class:a.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",j.value.checkbox])},null,42,yo)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Bs.value.filter(b=>!b.hidden),b=>(a.openBlock(),a.createElementBlock("th",{key:b.name,class:a.normalizeClass([b.align?`text-${b.align}`:"",ae(b)?["cursor-pointer",j.value.thHover]:"",I(b)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",j.value.th,Ze.value.header])),onClick:O=>ae(b)?pe(b.name):void 0},[a.createElementVNode("div",Eo,[a.createElementVNode("span",null,a.toDisplayString(b.ua||b.header||b.name),1),ae(b)?(a.openBlock(),a.createElementBlock("span",No,[a.renderSlot(m.$slots,"sort",{asc:W(b.name)},()=>[a.createTextVNode(a.toDisplayString(fe(b.name)),1)])])):a.createCommentVNode("",!0)])],10,bo))),128)),d.value?(a.openBlock(),a.createElementBlock("th",{key:1,class:a.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",j.value.th,Ze.value.header]])},"Дії",2)):a.createCommentVNode("",!0)])],2),a.createElementVNode("tbody",{class:a.normalizeClass(m.classTbody||j.value.tbody)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(b,O)=>(a.openBlock(),a.createElementBlock("tr",{key:O,class:a.normalizeClass(n.classTr||[j.value.tr,n.clickable?"cursor-pointer":""]),onClick:v=>n.clickable?_(b):void 0},[m.selectable?(a.openBlock(),a.createElementBlock("td",{key:0,class:a.normalizeClass(["whitespace-nowrap",j.value.td,Ze.value.cell,n.classTd,"w-12"])},[a.createElementVNode("input",{type:"checkbox",checked:g(b),onChange:v=>k(b),class:a.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",j.value.checkbox])},null,42,ko)],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Bs.value.filter(v=>!v.hidden),v=>(a.openBlock(),a.createElementBlock("td",{key:v.name,class:a.normalizeClass(n.classTd||["whitespace-nowrap",j.value.td,Ze.value.cell,v.align?`text-${v.align}`:"",I(v)])},[v.action&&d.value?a.renderSlot(m.$slots,"action",{key:0,row:b}):a.unref(f).number&&v.format==="number"?a.renderSlot(m.$slots,"number",{key:1,row:b,value:E(v,b)}):a.unref(f).badge&&v.format==="badge"?a.renderSlot(m.$slots,"badge",{key:2,row:b,value:E(v,b)}):a.unref(f).array&&v.format==="array"?a.renderSlot(m.$slots,"array",{key:3,row:b,value:E(v,b)}):v.slotName&&Et.value[v.name]?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Et.value[v.name]),{key:4,data:b,value:E(v,b),row:b,column:v},null,8,["data","value","row","column"])):v.link?(a.openBlock(),a.createElementBlock("a",{key:5,class:a.normalizeClass(m.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:U=>u(v.link.replace("{id}",b.id))},[v.slot&&typeof v.slot=="string"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Os)(v.slot)),{key:0,row:b,value:b,data:b,column:v},null,8,["row","value","data","column"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(E(v,b)),1)],64))],10,Co)):v.slot&&v.format==="slot"&&typeof v.slot=="string"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Os)(v.slot)),{key:6,row:b,value:E(v,b),data:b,column:v},null,8,["row","value","data","column"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(zo(v.format)),{key:7,value:E(v,b),row:b,column:v,href:v.link},null,8,["value","row","column","href"]))],2))),128)),d.value?(a.openBlock(),a.createElementBlock("td",_o,[a.renderSlot(m.$slots,"action",{row:b})])):a.createCommentVNode("",!0)],10,So))),128))],2)],6)],2)])):a.createCommentVNode("",!0),Fo.value&&!c.value&&!n.loading&&!p.value?(a.openBlock(),a.createBlock(kt,{key:3,page:me.value,limit:Ie.value,total:Qe.value,theme:n.theme,size:n.size,"onUpdate:page":Ae},null,8,["page","limit","total","theme","size"])):a.createCommentVNode("",!0),!c.value&&!n.loading&&!p.value&&y.value.length===0?(a.openBlock(),a.createElementBlock("div",{key:4,class:a.normalizeClass(["text-center py-8",j.value.empty])}," Дані відсутні ",2)):a.createCommentVNode("",!0)],2))}}),To={style:{display:"none"}},Ds=a.defineComponent({name:"Column",__name:"Column",props:{field:{},name:{},header:{},label:{},format:{},hidden:{type:Boolean},sortable:{type:Boolean},width:{},align:{},slot:{},slotName:{},link:{},action:{type:Boolean},getCellData:{type:Function},suffix:{}},setup(e){const t=e,n=a.useSlots(),s=a.inject("registerColumn");return a.onMounted(()=>{if(s){const{field:i,name:r,header:o,label:l,format:c,slotName:p,link:h,action:f,getCellData:d,suffix:u,...y}=t,B={name:i||r||"",ua:o||l||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:h,action:f,getCellData:d,suffix:u,...y};console.log("Registering column:",B);const H=n.body;s(B,H)}}),(i,r)=>(a.openBlock(),a.createElementBlock("div",To,[a.renderSlot(i.$slots,"body",{data:{}})]))}}),wo={class:"mt-4"},xo={class:"text-sm text-gray-600 dark:text-gray-300"},Is=a.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=a.computed(()=>t.selectedRows.length);return(s,i)=>(a.openBlock(),a.createElementBlock("div",wo,[a.createElementVNode("div",xo," Обрано: "+a.toDisplayString(n.value)+" з "+a.toDisplayString(s.totalCount)+" записів ",1)]))}}),Oo={class:"mt-4"},Do={class:"border-b border-gray-200 dark:border-gray-700"},Io={class:"-mb-px flex space-x-8"},Ao=["onClick"],Bo={class:"mt-4"},Ro={class:"bg-gray-900 rounded-lg overflow-hidden"},$o={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Mo={class:"text-sm text-gray-300"},Po=["onClick"],Lo={class:"p-4 text-sm text-gray-100 overflow-x-auto"},As=a.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=a.ref(t.defaultTab||t.tabs[0]?.id||""),s=async i=>{try{await navigator.clipboard.writeText(i),console.log("Код скопійовано!")}catch(r){console.error("Помилка копіювання:",r)}};return(i,r)=>(a.openBlock(),a.createElementBlock("div",Oo,[a.createElementVNode("div",Do,[a.createElementVNode("nav",Io,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tabs,o=>(a.openBlock(),a.createElementBlock("button",{key:o.id,onClick:l=>n.value=o.id,class:a.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===o.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"])},a.toDisplayString(o.label),11,Ao))),128))])]),a.createElementVNode("div",Bo,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tabs,o=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:o.id},[a.createElementVNode("div",Ro,[a.createElementVNode("div",$o,[a.createElementVNode("span",Mo,a.toDisplayString(o.label),1),a.createElementVNode("button",{onClick:l=>s(o.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},r[0]||(r[0]=[a.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Po)]),a.createElementVNode("pre",Lo,[a.createElementVNode("code",null,a.toDisplayString(o.content),1)])])])),[[a.vShow,n.value===o.id]])),128))])]))}});bt.install=function(t){t.component("DataTable",bt),t.component("Column",Ds),t.component("Pagination",kt),t.component("SelectionInfo",Is),t.component("CodeTabs",As)},q.ArrayFormat=vn,q.BadgeFormat=gn,q.CodeTabs=As,q.Column=Ds,q.DataTable=bt,q.DateFormat=hn,q.NumberFormat=un,q.Pagination=kt,q.SelectFormat=yn,q.SelectionInfo=Is,q.TextFormat=mn,q.default=bt,q.formatComponents=St,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- export type FormatType = 'text' | 'number' | 'date' | 'badge' | 'array' | 'select' | 'custom' | 'link' | 'action';
2
+ export type FormatType = 'text' | 'number' | 'date' | 'badge' | 'array' | 'select' | 'custom' | 'link' | 'action' | 'slot';
3
3
  export type TableSize = 'small' | 'medium' | 'large';
4
4
  export type TableTheme = 'light' | 'dark' | 'auto';
5
5
  export type SortDirection = 'asc' | 'desc' | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import * as Vue from 'vue';
2
+ type Emits = Record<string, any[]> | string[];
3
+ export declare function makeDynamic(tpl: string | any, options?: {
4
+ props?: Record<string, any>;
5
+ emits?: Emits;
6
+ setup?(): Record<string, any>;
7
+ }): Vue.DefineComponent<{}, Record<string, any>, {}, {}, {}, Vue.ComponentOptionsMixin, Vue.ComponentOptionsMixin, {}, string, Vue.PublicProps, Readonly<{}> & Readonly<{}>, {} | {
8
+ [x: string]: any;
9
+ }, {}, {}, {}, string, Vue.ComponentProvideOptions, true, {}, any>;
10
+ export default makeDynamic;
11
+ //# sourceMappingURL=makeDynamic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeDynamic.d.ts","sourceRoot":"","sources":["../../src/utils/makeDynamic.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAE1B,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,EAAE,CAAA;AAE7C,wBAAgB,WAAW,CACvB,GAAG,EAAE,MAAM,GAAE,GAAG,EAChB,OAAO,CAAC,EAAE;IACN,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC;;mEAiBJ;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function getSlotComponent(tpl: string): any;
2
+ //# sourceMappingURL=slotCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slotCache.d.ts","sourceRoot":"","sources":["../../src/utils/slotCache.ts"],"names":[],"mappings":"AAIA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,OAQ3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/table",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "A Vue 3 data table component with advanced features",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.mjs",