@opengis/table 0.0.35 → 0.0.37
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/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/EditableCell.vue.d.ts +1 -0
- package/dist/components/EditableCell.vue.d.ts.map +1 -1
- package/dist/composables/useLocale.d.ts.map +1 -1
- package/dist/directives/tooltip.d.ts +4 -0
- package/dist/directives/tooltip.d.ts.map +1 -0
- package/dist/index.mjs +2423 -2349
- package/dist/index.umd.js +15 -15
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(G,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(G=typeof globalThis<"u"?globalThis:G||self,s(G.filter={},G.Vue))})(this,function(G,s){"use strict";function Js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ys=Js(s),bn={en:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",selectAll:"Select all",selectCurrent:"Select current",none:"None",chooseFormat:"Choose table format:",format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",chooseFormat:"Виберіть формат таблиці:",format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо экспорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function Xs(e){const t=e.split(".")[1];return(bn[localStorage.language||navigator.language]||bn.uk)[t]}function St(){const e=s.getCurrentInstance();return e.appContext.config.globalProperties.$i18n?e.appContext.config.globalProperties.$t:Xs}const Zs={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},Qs={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},Vs=["placeholder"],er={class:"p-1 pt-3 max-h-80 overflow-y-auto"},tr={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},nr=["onClick"],sr={class:"flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none"},rr=["value"],En=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=St(),r=e,o=t,i=s.useAttrs(),l=s.ref(!1),a=s.ref(""),c=s.ref(r.columns),p=s.ref(null),m=s.ref(null),d=s.ref(null),f=s.ref({top:0,left:0}),h=s.computed(()=>a.value?c.value.filter(D=>D.ua.toLowerCase().includes(a.value.toLowerCase())):c.value),E=s.ref("uk"),v=D=>{D.detail.key==="locale"&&(E.value=D.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",v)}),s.onMounted(()=>{window.addEventListener("storage",v),E.value=localStorage.locale}),s.watch(c,D=>{o("update:columns",D)},{deep:!0}),s.watch(()=>r.columns,D=>{JSON.stringify(D)!==JSON.stringify(c.value)&&(c.value=[...D])},{deep:!0});function C(D){Object.assign(D,{hidden:!D.hidden})}function S(){l.value=!l.value,s.nextTick(()=>{if(l.value&&(d.value?.focus(),p.value&&m.value)){const D=p.value.getBoundingClientRect();f.value={top:D.bottom+window.scrollY+5,left:D.left+window.scrollX-220}}})}function A(D){l.value&&m.value&&p.value&&!m.value.contains(D.target)&&!p.value.contains(D.target)&&(l.value=!1)}return s.onMounted(()=>{document.addEventListener("click",A,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",A,!0)}),(D,$)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:S,ref_key:"buttonRef",ref:p,class:s.normalizeClass([[s.unref(i).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},$[2]||($[2]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>',1)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[l.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"modalRef",ref:m,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:s.normalizeStyle([{position:"fixed"},{top:`${f.value.top}px`,left:`${f.value.left}px`}])},[s.createElementVNode("div",Zs,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",Qs,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:d,"onUpdate:modelValue":$[0]||($[0]=j=>a.value=j),class:"py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",placeholder:s.unref(n)("table.search")},null,8,Vs),[[s.vModelText,a.value]])]),s.createElementVNode("div",er,[s.createElementVNode("span",tr,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:$[1]||($[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,j=>(s.openBlock(),s.createElementBlock("div",{key:j.name,class:"flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",onClick:_=>C(j)},[s.createElementVNode("label",sr,[s.createTextVNode(s.toDisplayString(j[E.value]||j.ua||j.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:j.hidden},null,8,rr),s.createElementVNode("span",{class:s.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",j.hidden?"bg-white":"bg-blue-600 border-0"])},$[3]||($[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,nr))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),kn=s.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.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(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),xn=s.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),Nn=s.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),wn=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const i=String(t.value||"").toLowerCase(),l="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${l} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${l} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${l} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${l} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${l} bg-${t.value.color}-100 text-${t.value.color}-800`:`${l} bg-gray-100 text-gray-800`});function r(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),p=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${p}, ${l})`}const o=s.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:i});return(i,l)=>i.value?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(o.value)},s.toDisplayString(i.value?.text||i.value||"-"),7)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-59a2b734"]]),or={class:"flex flex-wrap gap-1"},Sn=s.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),r=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(s.openBlock(),s.createElementBlock("div",or,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,a)=>(s.openBlock(),s.createElementBlock("span",{key:a,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"},s.toDisplayString(r(l)),1))),128))]))}}),Cn=s.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),ir={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},_n=s.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return s.computed(()=>({})),(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t.value?(s.openBlock(),s.createElementBlock("span",ir,n[0]||(n[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0),n[1]||(n[1]=s.createElementVNode("span",null,null,-1))],64))}}),lr={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},ar={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},Tn=s.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=s.ref(!1),r=s.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const d="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${d}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=d,document.head.appendChild(h)}const f="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${f}"]`)||await new Promise((h,E)=>{const v=document.createElement("script");v.src=f,v.async=!0,v.onload=()=>h(),v.onerror=E,document.body.appendChild(v)}),o=window.L,o}async function c(){n.value=!0,await s.nextTick(),await a(),!i&&(i=o.map(r.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(i),m(t.value),setTimeout(()=>i.invalidateSize(),250))}function p(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(d){if(!i||!o||(l&&(l.remove(),l=null),!d))return;l=o.geoJSON(d,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,E)=>o.marker(E)}).addTo(i);const f=l.getBounds?.();if(f&&f.isValid())i.fitBounds(f,{padding:[24,24]});else if(d.type==="Point"){const[h,E]=d.coordinates;i.setView([E,h],14)}}return s.watch(()=>t.value,d=>{n.value&&i&&m(d)},{deep:!0}),s.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(d,f)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("button",{type:"button",onClick:c,class:"p-2 rounded hover:bg-gray-100 text-blue-600 inline-flex items-center justify-center",title:"Open map"},f[0]||(f[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M9 18l-6 3V6l6-3 6 3 6-3v15l-6 3-6-3z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[n.value?(s.openBlock(),s.createElementBlock("div",lr,[s.createElementVNode("div",ar,[s.createElementVNode("button",{type:"button",class:"absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",onClick:p,title:"Close"},f[1]||(f[1]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),s.createElementVNode("div",{ref_key:"mapContainer",ref:r,class:"w-full h-full"},null,512)])])):s.createCommentVNode("",!0)]))]))}}),Ct={number:kn,date:xn,text:Nn,badge:wn,array:Sn,select:Cn,boolean:_n,geom:Tn},cr={class:"flex items-center space-x-4"},dr={class:"font-medium"},pr={class:"font-medium"},fr={class:"font-medium"},ur={class:"flex items-center space-x-2"},hr=["disabled"],mr={class:"flex items-center space-x-1"},gr=["onClick"],vr=["disabled"],_t=s.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,r=s.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]),o=s.computed(()=>{const{theme:d}=n;return d==="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"}:d==="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"}}),i=t,l=s.computed(()=>Math.ceil(n.total/n.limit)),a=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),p=s.computed(()=>{const d=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)d.push(h);else{d.push(1),n.page>4&&d.push("...");const h=Math.max(2,n.page-1),E=Math.min(l.value-1,n.page+1);for(let v=h;v<=E;v+=1)v!==1&&v!==l.value&&d.push(v);n.page<l.value-3&&d.push("..."),l.value>1&&d.push(l.value)}return d}),m=d=>{d>=1&&d<=l.value&&d!==n.page&&i("update:page",d)};return(d,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[s.createElementVNode("div",cr,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",o.value.text,r.value.text])},[s.createElementVNode("span",null,[f[2]||(f[2]=s.createTextVNode(" Показано ")),s.createElementVNode("span",dr,s.toDisplayString(a.value),1),f[3]||(f[3]=s.createTextVNode(" до ")),s.createElementVNode("span",pr,s.toDisplayString(c.value),1),f[4]||(f[4]=s.createTextVNode(" з ")),s.createElementVNode("span",fr,s.toDisplayString(d.total),1),f[5]||(f[5]=s.createTextVNode(" результатів "))])],2)]),s.createElementVNode("div",ur,[s.createElementVNode("button",{onClick:f[0]||(f[0]=h=>m(d.page-1)),disabled:d.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page<=1?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[6]||(f[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,hr),s.createElementVNode("div",mr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,h=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:h},[h==="..."?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["font-medium",r.value.button,o.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:E=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===d.page?o.value.buttonActive:o.value.button])},s.toDisplayString(h),11,gr))],64))),128))]),s.createElementVNode("button",{onClick:f[1]||(f[1]=h=>m(d.page+1)),disabled:d.page>=l.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page>=l.value?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},f[7]||(f[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,vr)])],2))}});/**
|
|
1
|
+
(function(K,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(K=typeof globalThis<"u"?globalThis:K||self,s(K.filter={},K.Vue))})(this,function(K,s){"use strict";function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const nr=tr(s),nt={en:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Export",exportTitle:"Export table",close:"Close",chooseColumns:"Select columns for export:",selectAll:"Select all",selectCurrent:"Select current",none:"None",chooseFormat:"Choose table format:",format:{json:"JSON format",csv:"CSV format",xlsx:"XLSX format"},cancel:"Cancel",download:"Download table",processingExport:"Preparing export...",waitingExport:"Waiting for server status...",preparingDownload:"Preparing download..."}},uk:{table:{choose:"Оберіть колонки для відображення",columns:"Колонки",search:"Пошук",export:"Експорт",exportTitle:"Експорт таблиці",close:"Закрити",chooseColumns:"Виберіть стовпці таблиці для експорту:",selectAll:"Вибрати усі",selectCurrent:"Вибрати поточні",none:"Жодного",chooseFormat:"Виберіть формат таблиці:",format:{json:"Формат json",csv:"Формат csv",xlsx:"Формат xlsx"},cancel:"Скасувати",download:"Завантажити таблицю",processingExport:"Готуємо экспорт...",waitingExport:"Очікуємо відповідь від сервера...",preparingDownload:"Готуємо завантаження..."}}};function sr(e){const n=(()=>{try{if(typeof localStorage<"u"){const l=localStorage.getItem("language")||localStorage.getItem("locale");if(l)return l.substring(0,2)}}catch{}return typeof navigator<"u"?(navigator.language||navigator.languages?.[0]||"uk").substring(0,2):"uk"})();if(!nt||typeof nt!="object")return e;const r=nt[n]||nt.uk||{},i=e.split(".").reduce((l,a)=>l&&typeof l=="object"&&a in l?l[a]:null,r);return i&&typeof i=="string"?i:e}function Tt(){const e=s.getCurrentInstance();return e?.appContext?.config?.globalProperties?.$i18n?e.appContext.config.globalProperties.$t:sr}const rr={class:"flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800"},or={class:"relative p-1 border-gray-200 border-y dark:border-neutral-800"},ir=["placeholder"],lr={class:"p-1 pt-3 max-h-80 overflow-y-auto"},ar={class:"block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"},cr=["onClick"],dr={class:"flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none"},pr=["value"],xn=s.defineComponent({__name:"ColumnsSettings",props:{columns:{}},emits:["update:columns"],setup(e,{emit:t}){const n=Tt(),r=e,o=t,i=s.useAttrs(),l=s.ref(!1),a=s.ref(""),c=s.ref(r.columns),p=s.ref(null),m=s.ref(null),d=s.ref(null),u=s.ref({top:0,left:0}),h=s.computed(()=>a.value?c.value.filter(T=>T.ua.toLowerCase().includes(a.value.toLowerCase())):c.value),E=s.ref("uk"),v=T=>{T.detail.key==="locale"&&(E.value=T.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",v)}),s.onMounted(()=>{window.addEventListener("storage",v),E.value=localStorage.locale}),s.watch(c,T=>{o("update:columns",T)},{deep:!0}),s.watch(()=>r.columns,T=>{JSON.stringify(T)!==JSON.stringify(c.value)&&(c.value=[...T])},{deep:!0});function _(T){Object.assign(T,{hidden:!T.hidden})}function C(){l.value=!l.value,s.nextTick(()=>{if(l.value&&(d.value?.focus(),p.value&&m.value)){const T=p.value.getBoundingClientRect();u.value={top:T.bottom+window.scrollY+5,left:T.left+window.scrollX-220}}})}function A(T){l.value&&m.value&&p.value&&!m.value.contains(T.target)&&!p.value.contains(T.target)&&(l.value=!1)}return s.onMounted(()=>{document.addEventListener("click",A,!0)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",A,!0)}),(T,$)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:C,ref_key:"buttonRef",ref:p,class:s.normalizeClass([[s.unref(i).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},$[2]||($[2]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-columns" height="20" width="16"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path></svg>',1)]),2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[l.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"modalRef",ref:m,class:"fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",style:s.normalizeStyle([{position:"fixed"},{top:`${u.value.top}px`,left:`${u.value.left}px`}])},[s.createElementVNode("div",rr,s.toDisplayString(s.unref(n)("table.columns")),1),s.createElementVNode("div",or,[s.withDirectives(s.createElementVNode("input",{type:"text",ref_key:"searchInput",ref:d,"onUpdate:modelValue":$[0]||($[0]=P=>a.value=P),class:"py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",placeholder:s.unref(n)("table.search")},null,8,ir),[[s.vModelText,a.value]])]),s.createElementVNode("div",lr,[s.createElementVNode("span",ar,s.toDisplayString(s.unref(n)("table.choose")),1),s.createElementVNode("div",{class:"space-y-1",onClick:$[1]||($[1]=s.withModifiers(()=>{},["stop"]))},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.value,P=>(s.openBlock(),s.createElementBlock("div",{key:P.name,class:"flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",onClick:te=>_(P)},[s.createElementVNode("label",dr,[s.createTextVNode(s.toDisplayString(P[E.value]||P.ua||P.label)+" ",1),s.createElementVNode("input",{type:"checkbox",class:"hidden",value:P.hidden},null,8,pr),s.createElementVNode("span",{class:s.normalizeClass(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none",P.hidden?"bg-white":"bg-blue-600 border-0"])},$[3]||($[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]),2)])],8,cr))),128))])])],4)):s.createCommentVNode("",!0)]))],64))}}),wn=s.defineComponent({name:"NumberFormat",__name:"NumberFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.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(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),Nn=s.defineComponent({name:"DateFormat",__name:"DateFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{if(!t.value)return"";try{return new Date(t.value).toLocaleDateString()}catch{return t.value}});return(r,o)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(n.value||"-"),1))}}),Sn=s.defineComponent({name:"TextFormat",__name:"TextFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).join(","):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),Cn=((e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n})(s.defineComponent({name:"BadgeFormat",__name:"BadgeFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>{const i=String(t.value||"").toLowerCase(),l="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium";return i.includes("success")||i.includes("active")||i.includes("completed")?`${l} bg-green-100 text-green-800`:i.includes("error")||i.includes("failed")||i.includes("inactive")?`${l} bg-red-100 text-red-800`:i.includes("warning")||i.includes("pending")?`${l} bg-yellow-100 text-yellow-800`:i.includes("info")||i.includes("processing")?`${l} bg-blue-100 text-blue-800`:t.value?.color&&!/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value.color)?`${l} bg-${t.value.color}-100 text-${t.value.color}-800`:`${l} bg-gray-100 text-gray-800`});function r(i,l=1){const a=parseInt(i.slice(1,3),16),c=parseInt(i.slice(3,5),16),p=parseInt(i.slice(5,7),16);return`rgba(${a}, ${c}, ${p}, ${l})`}const o=s.computed(()=>{const i={minWidth:"60px",textAlign:"center",display:"inline-block"};return/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(t.value?.color)?{...i,backgroundColor:r(t.value.color,.1),color:r(t.value.color,.8)}:i});return(i,l)=>i.value?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["badge",n.value]),style:s.normalizeStyle(o.value)},s.toDisplayString(i.value?.text||i.value||"-"),7)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-59a2b734"]]),fr={class:"flex flex-wrap gap-1"},_n=s.defineComponent({name:"ArrayFormat",__name:"ArrayFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,n=s.computed(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),r=o=>o?typeof o=="object"&&o.name?o.name:typeof o=="string"||typeof o=="number"?String(o):JSON.stringify(o):"";return(o,i)=>(s.openBlock(),s.createElementBlock("div",fr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,a)=>(s.openBlock(),s.createElementBlock("span",{key:a,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"},s.toDisplayString(r(l)),1))),128))]))}}),Tn=s.defineComponent({name:"TextFormat",__name:"SelectFormat",props:{value:{},row:{},column:{}},setup(e){const t=e,{value:n}=t,r=s.computed(()=>Array.isArray(n)?n.map(o=>o.text||o).filter((o,i)=>i<2).join(", ")+(n.length>2?` +${n.length-2}`:""):n?.text||n);return(o,i)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(r.value||"-"),1))}}),ur={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"},Dn=s.defineComponent({name:"BooleanFormat",__name:"BooleanFormat",props:{value:{},row:{},column:{}},setup(e){return s.computed(()=>({})),(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t.value?(s.openBlock(),s.createElementBlock("span",ur,n[0]||(n[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0),n[1]||(n[1]=s.createElementVNode("span",null,null,-1))],64))}}),hr={key:0,class:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"},mr={class:"relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden"},On=s.defineComponent({name:"GeomFormat",__name:"GeomFormat",props:{value:{}},setup(e){const t=e,n=s.ref(!1),r=s.ref(null);let o=null,i=null,l=null;async function a(){if(o)return o;const d="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";if(!document.querySelector(`link[href="${d}"]`)){const h=document.createElement("link");h.rel="stylesheet",h.href=d,document.head.appendChild(h)}const u="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";return document.querySelector(`script[src="${u}"]`)||await new Promise((h,E)=>{const v=document.createElement("script");v.src=u,v.async=!0,v.onload=()=>h(),v.onerror=E,document.body.appendChild(v)}),o=window.L,o}async function c(){n.value=!0,await s.nextTick(),await a(),!i&&(i=o.map(r.value,{center:[50,30],zoom:10,zoomControl:!0}),o.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(i),m(t.value),setTimeout(()=>i.invalidateSize(),250))}function p(){n.value=!1,l&&(l.remove(),l=null),i&&(i.remove(),i=null)}function m(d){if(!i||!o||(l&&(l.remove(),l=null),!d))return;l=o.geoJSON(d,{style:()=>({color:"#2563eb",weight:2,fillOpacity:.3}),pointToLayer:(h,E)=>o.marker(E)}).addTo(i);const u=l.getBounds?.();if(u&&u.isValid())i.fitBounds(u,{padding:[24,24]});else if(d.type==="Point"){const[h,E]=d.coordinates;i.setView([E,h],14)}}return s.watch(()=>t.value,d=>{n.value&&i&&m(d)},{deep:!0}),s.onUnmounted(()=>{l&&(l.remove(),l=null),i&&(i.remove(),i=null)}),(d,u)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("button",{type:"button",onClick:c,class:"p-2 rounded hover:bg-gray-100 text-blue-600 inline-flex items-center justify-center",title:"Open map"},u[0]||(u[0]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M9 18l-6 3V6l6-3 6 3 6-3v15l-6 3-6-3z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M9 3v15M15 6v15","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[n.value?(s.openBlock(),s.createElementBlock("div",hr,[s.createElementVNode("div",mr,[s.createElementVNode("button",{type:"button",class:"absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",onClick:p,title:"Close"},u[1]||(u[1]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[s.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),s.createElementVNode("div",{ref_key:"mapContainer",ref:r,class:"w-full h-full"},null,512)])])):s.createCommentVNode("",!0)]))]))}}),Dt={number:wn,date:Nn,text:Sn,badge:Cn,array:_n,select:Tn,boolean:Dn,geom:On},gr={class:"flex items-center space-x-4"},vr={class:"font-medium"},yr={class:"font-medium"},br={class:"font-medium"},Er={class:"flex items-center space-x-2"},kr=["disabled"],xr={class:"flex items-center space-x-1"},wr=["onClick"],Nr=["disabled"],Ot=s.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,r=s.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]),o=s.computed(()=>{const{theme:d}=n;return d==="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"}:d==="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"}}),i=t,l=s.computed(()=>Math.ceil(n.total/n.limit)),a=s.computed(()=>n.total===0?0:(n.page-1)*n.limit+1),c=s.computed(()=>Math.min(n.page*n.limit,n.total)),p=s.computed(()=>{const d=[];if(l.value<=7)for(let h=1;h<=l.value;h+=1)d.push(h);else{d.push(1),n.page>4&&d.push("...");const h=Math.max(2,n.page-1),E=Math.min(l.value-1,n.page+1);for(let v=h;v<=E;v+=1)v!==1&&v!==l.value&&d.push(v);n.page<l.value-3&&d.push("..."),l.value>1&&d.push(l.value)}return d}),m=d=>{d>=1&&d<=l.value&&d!==n.page&&i("update:page",d)};return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex items-center justify-between py-3 border-t",o.value.container])},[s.createElementVNode("div",gr,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center text-sm",o.value.text,r.value.text])},[s.createElementVNode("span",null,[u[2]||(u[2]=s.createTextVNode(" Показано ")),s.createElementVNode("span",vr,s.toDisplayString(a.value),1),u[3]||(u[3]=s.createTextVNode(" до ")),s.createElementVNode("span",yr,s.toDisplayString(c.value),1),u[4]||(u[4]=s.createTextVNode(" з ")),s.createElementVNode("span",br,s.toDisplayString(d.total),1),u[5]||(u[5]=s.createTextVNode(" результатів "))])],2)]),s.createElementVNode("div",Er,[s.createElementVNode("button",{onClick:u[0]||(u[0]=h=>m(d.page-1)),disabled:d.page<=1,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page<=1?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[6]||(u[6]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"},null,-1)]),2))],10,kr),s.createElementVNode("div",xr,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,h=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:h},[h==="..."?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["font-medium",r.value.button,o.value.ellipsis])}," ... ",2)):(s.openBlock(),s.createElementBlock("button",{key:1,onClick:E=>m(h),class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,h===d.page?o.value.buttonActive:o.value.button])},s.toDisplayString(h),11,wr))],64))),128))]),s.createElementVNode("button",{onClick:u[1]||(u[1]=h=>m(d.page+1)),disabled:d.page>=l.value,class:s.normalizeClass(["relative font-medium rounded-md",r.value.button,d.page>=l.value?o.value.buttonDisabled:o.value.button])},[(s.openBlock(),s.createElementBlock("svg",{class:s.normalizeClass(r.value.icon),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},u[7]||(u[7]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]),2))],10,Nr)])],2))}});/**
|
|
2
2
|
* @vue/shared v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function ge(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Sr=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Bt=()=>{},st=()=>!1,It=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),we=Object.assign,ve=Array.isArray,Y=e=>typeof e=="string",At=e=>typeof e=="symbol",Cr=e=>e!==null&&typeof e=="object",Bn=ge(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_r=ge("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),$t=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tr=/-(\w)/g,Ne=$t(e=>e.replace(Tr,(t,n)=>n?n.toUpperCase():"")),Mt=$t(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dr=$t(e=>e?`on${Mt(e)}`:""),rt={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"},Or={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Br=/;(?![^(]*\))/g,Ir=/:([^]+)/,Ar=/\/\*[^]*?\*\//g;function $r(e){const t={};return e.replace(Ar,"").split(Br).forEach(n=>{if(n){const r=n.split(Ir);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Mr="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",Rr="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",Lr="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",Pr="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Fr=ge(Mr),jr=ge(Rr),zr=ge(Lr),Ur=ge(Pr);/**
|
|
6
6
|
* @vue/compiler-core v3.5.17
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/const He=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),qe=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),At=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),nt=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),On=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),_e=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),In=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),$t=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Mt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),An=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),jt=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),zt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),$n=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Mn=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),st=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),rt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),qt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),We=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Ge=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Rr=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),ot=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),Lr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Pr=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Fr=Symbol(process.env.NODE_ENV!=="production"?"unref":""),jr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Rn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Me={[He]:"Fragment",[qe]:"Teleport",[At]:"Suspense",[nt]:"KeepAlive",[On]:"BaseTransition",[_e]:"openBlock",[Bn]:"createBlock",[In]:"createElementBlock",[$t]:"createVNode",[Mt]:"createElementVNode",[Ke]:"createCommentVNode",[Rt]:"createTextVNode",[An]:"createStaticVNode",[Lt]:"resolveComponent",[Pt]:"resolveDynamicComponent",[Ft]:"resolveDirective",[jt]:"resolveFilter",[zt]:"withDirectives",[Ut]:"renderList",[$n]:"renderSlot",[Mn]:"createSlots",[st]:"toDisplayString",[rt]:"mergeProps",[Ht]:"normalizeClass",[qt]:"normalizeStyle",[We]:"normalizeProps",[Ge]:"guardReactiveProps",[Kt]:"toHandlers",[Wt]:"camelize",[Rr]:"capitalize",[Gt]:"toHandlerKey",[ot]:"setBlockTracking",[Lr]:"pushScopeId",[Pr]:"popScopeId",[Jt]:"withCtx",[Fr]:"unref",[jr]:"isRef",[Yt]:"withMemo",[Rn]:"isMemoSame"};function zr(e){Object.getOwnPropertySymbols(e).forEach(t=>{Me[t]=e[t]})}const ce={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Ur(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ce}}function Je(e,t,n,r,o,i,l,a=!1,c=!1,p=!1,m=ce){return e&&(a?(e.helper(_e),e.helper(Pe(e.inSSR,p))):e.helper(Le(e.inSSR,p)),l&&e.helper(zt)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:p,loc:m}}function Te(e,t=ce){return{type:17,loc:t,elements:e}}function fe(e,t=ce){return{type:15,loc:t,properties:e}}function J(e,t){return{type:16,loc:ce,key:Z(e)?I(e,!0):e,value:t}}function I(e,t=!1,n=ce,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ue(e,t=ce){return{type:8,loc:t,children:e}}function X(e,t=[],n=ce){return{type:14,loc:n,callee:e,arguments:t}}function Re(e,t=void 0,n=!1,r=!1,o=ce){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Xt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ce}}function Hr(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ce}}function qr(e){return{type:21,body:e,loc:ce}}function Le(e,t){return e||t?$t:Mt}function Pe(e,t){return e||t?Bn:In}function Zt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Le(r,e.isComponent)),t(_e),t(Pe(r,e.isComponent)))}const Ln=new Uint8Array([123,123]),Pn=new Uint8Array([125,125]);function Fn(e){return e>=97&&e<=122||e>=65&&e<=90}function de(e){return e===32||e===10||e===9||e===12||e===13}function xe(e){return e===47||e===62||de(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 Q={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 Kr{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=Ln,this.delimiterClose=Pn,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=Ln,this.delimiterClose=Pn}getPos(t){let n=1,r=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,r=t-i;break}}return{column:r,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?xe(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||de(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}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===Q.TitleEnd||this.currentSequence===Q.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===Q.Cdata[this.sequenceIndex]?++this.sequenceIndex===Q.Cdata.length&&(this.state=28,this.currentSequence=Q.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===Q.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):Fn(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){xe(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(xe(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){de(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=Fn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||de(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):de(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):de(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||xe(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||xe(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||xe(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||xe(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||xe(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)):de(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):de(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){de(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=Q.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===Q.ScriptEnd[3]?this.startSpecial(Q.ScriptEnd,4):t===Q.StyleEnd[3]?this.startSpecial(Q.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Q.TitleEnd[3]?this.startSpecial(Q.TitleEnd,4):t===Q.TextareaEnd[3]?this.startSpecial(Q.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===Q.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 Wr={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 Qt(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ne(e,t){const n=Qt("MODE",t),r=Qt(e,t);return n===3?r===!0:r!==!1}function Fe(e,t,n,...r){const o=Ne(e,t);return process.env.NODE_ENV!=="production"&&o&<(e,t,n,...r),o}function lt(e,t,n,...r){if(Qt(e,t)==="suppress-warning")return;const{message:i,link:l}=Wr[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${l?`
|
|
10
|
-
Details: ${l}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function
|
|
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:""},re=e=>e.type===4&&e.isStatic;function zn(e){switch(e){case"Teleport":case"teleport":return qe;case"Suspense":case"suspense":return At;case"KeepAlive":case"keep-alive":return nt;case"BaseTransition":case"base-transition":return On}}const Jr=/^\d|[^\$\w\xA0-\uFFFF]/,en=e=>!Jr.test(e),Yr=/[A-Za-z_$\xA0-\uFFFF]/,Xr=/[\.\?\w$\xA0-\uFFFF]/,Zr=/\s+[.[]\s*|\s*[.[]\s+/g,Un=e=>e.type===4?e.content:e.loc.source,Hn=e=>{const t=Un(e).trim().replace(Zr,a=>a.trim());let n=0,r=[],o=0,i=0,l=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")r.push(n),n=1,o++;else if(c==="(")r.push(n),n=2,i++;else if(!(a===0?Yr:Xr).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=r.pop())}break;case 3:c===l&&(n=r.pop(),l=null);break}}return!o&&!i},Qr=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Vr=e=>Qr.test(Un(e));function qn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function oe(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(Z(t)?o.name===t:t.test(o.name)))return o}}function Ye(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&we(i.arg,t))return i}}function we(e,t){return!!(e&&re(e)&&e.content===t)}function eo(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function tn(e){return e.type===5||e.type===2}function to(e){return e.type===7&&e.name==="slot"}function at(e){return e.type===1&&e.tagType===3}function ct(e){return e.type===1&&e.tagType===2}const no=new Set([We,Ge]);function Kn(e,t=[]){if(e&&!Z(e)&&e.type===14){const n=e.callee;if(!Z(n)&&no.has(n))return Kn(e.arguments[0],t.concat(e))}return[e,t]}function dt(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!Z(o)&&o.type===14){const a=Kn(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||Z(o))r=fe([t]);else if(o.type===14){const a=o.arguments[0];!Z(a)&&a.type===15?Wn(t,a)||a.properties.unshift(t):o.callee===Kt?r=X(n.helper(rt),[fe([t]),o]):o.arguments.unshift(fe([t])),!r&&(r=o)}else o.type===15?(Wn(t,o)||o.properties.unshift(t),r=o):(r=X(n.helper(rt),[fe([t]),o]),l&&l.callee===Ge&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Wn(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function Xe(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function so(e){return e.type===14&&e.callee===Yt?e.arguments[1].returns:e}const ro=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Gn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:et,isPreTag:et,isIgnoreNewlineTag:et,isCustomElement:et,onError:Vt,onWarn:jn,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let P=Gn,Ze=null,ve="",te=null,F=null,ie="",ye=-1,De=-1,nn=0,Se=!1,sn=null;const W=[],K=new Kr(W,{onerr:le,ontext(e,t){pt(V(e,t),e,t)},ontextentity(e,t,n){pt(e,t,n)},oninterpolation(e,t){if(Se)return pt(V(e,t),e,t);let n=e+K.delimiterOpen.length,r=t-K.delimiterClose.length;for(;de(ve.charCodeAt(n));)n++;for(;de(ve.charCodeAt(r-1));)r--;let o=V(n,r);o.includes("&")&&(o=P.decodeEntities(o,!1)),rn({type:5,content:ut(o,!1,Y(n,r)),loc:Y(e,t)})},onopentagname(e,t){const n=V(e,t);te={type:1,tag:n,ns:P.getNamespace(n,W[0],P.ns),tagType:0,props:[],children:[],loc:Y(e-1,t),codegenNode:void 0}},onopentagend(e){Yn(e)},onclosetag(e,t){const n=V(e,t);if(!P.isVoidTag(n)){let r=!1;for(let o=0;o<W.length;o++)if(W[o].tag.toLowerCase()===n.toLowerCase()){r=!0,o>0&&le(24,W[0].loc.start.offset);for(let l=0;l<=o;l++){const a=W.shift();ft(a,t,l<o)}break}r||le(23,Xn(e,60))}},onselfclosingtag(e){const t=te.tag;te.isSelfClosing=!0,Yn(e),W[0]&&W[0].tag===t&&ft(W.shift(),e)},onattribname(e,t){F={type:6,name:V(e,t),nameLoc:Y(e,t),value:void 0,loc:Y(e)}},ondirname(e,t){const n=V(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Se&&r===""&&le(26,e),Se||r==="")F={type:6,name:n,nameLoc:Y(e,t),value:void 0,loc:Y(e)};else if(F={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[I("prop")]:[],loc:Y(e)},r==="pre"){Se=K.inVPre=!0,sn=te;const o=te.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=go(o[i]))}},ondirarg(e,t){if(e===t)return;const n=V(e,t);if(Se)F.name+=n,Oe(F.nameLoc,t);else{const r=n[0]!=="[";F.arg=ut(r?n:n.slice(1,-1),r,Y(e,t),r?3:0)}},ondirmodifier(e,t){const n=V(e,t);if(Se)F.name+="."+n,Oe(F.nameLoc,t);else if(F.name==="slot"){const r=F.arg;r&&(r.content+="."+n,Oe(r.loc,t))}else{const r=I(n,!0,Y(e,t));F.modifiers.push(r)}},onattribdata(e,t){ie+=V(e,t),ye<0&&(ye=e),De=t},onattribentity(e,t,n){ie+=e,ye<0&&(ye=t),De=n},onattribnameend(e){const t=F.loc.start.offset,n=V(t,e);F.type===7&&(F.rawName=n),te.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&le(2,t)},onattribend(e,t){if(te&&F){if(Oe(F.loc,t),e!==0)if(ie.includes("&")&&(ie=P.decodeEntities(ie,!0)),F.type===6)F.name==="class"&&(ie=Vn(ie).trim()),e===1&&!ie&&le(13,t),F.value={type:2,content:ie,loc:e===1?Y(ye,De):Y(ye-1,De+1)},K.inSFCRoot&&te.tag==="template"&&F.name==="lang"&&ie&&ie!=="html"&&K.enterRCDATA(it("</template"),0);else{let n=0;F.exp=ut(ie,!1,Y(ye,De),0,n),F.name==="for"&&(F.forParseResult=io(F.exp));let r=-1;F.name==="bind"&&(r=F.modifiers.findIndex(o=>o.content==="sync"))>-1&&Fe("COMPILER_V_BIND_SYNC",P,F.loc,F.arg.loc.source)&&(F.name="model",F.modifiers.splice(r,1))}(F.type!==7||F.name!=="pre")&&te.props.push(F)}ie="",ye=De=-1},oncomment(e,t){P.comments&&rn({type:3,content:V(e,t),loc:Y(e-4,t+3)})},onend(){const e=ve.length;if(process.env.NODE_ENV!=="production"&&K.state!==1)switch(K.state){case 5:case 8:le(5,e);break;case 3:case 4:le(25,K.sectionStart);break;case 28:K.currentSequence===Q.CdataEnd?le(6,e):le(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:le(9,e);break}for(let t=0;t<W.length;t++)ft(W[t],e-1),le(24,W[t].loc.start.offset)},oncdata(e,t){W[0].ns!==0?pt(V(e,t),e,t):le(1,e-9)},onprocessinginstruction(e){(W[0]?W[0].ns:P.ns)===0&&le(21,e-1)}}),Jn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,oo=/^\(|\)$/g;function io(e){const t=e.loc,n=e.content,r=n.match(ro);if(!r)return;const[,o,i]=r,l=(d,f,h=!1)=>{const E=t.start.offset+f,v=E+d.length;return ut(d,!1,Y(E,v),0,h?1:0)},a={source:l(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(oo,"").trim();const p=o.indexOf(c),m=c.match(Jn);if(m){c=c.replace(Jn,"").trim();const d=m[1].trim();let f;if(d&&(f=n.indexOf(d,p+c.length),a.key=l(d,f,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?f+d.length:p+c.length),!0))}}return c&&(a.value=l(c,p,!0)),a}function V(e,t){return ve.slice(e,t)}function Yn(e){K.inSFCRoot&&(te.innerLoc=Y(e+1,e+1)),rn(te);const{tag:t,ns:n}=te;n===0&&P.isPreTag(t)&&nn++,P.isVoidTag(t)?ft(te,e):(W.unshift(te),(n===1||n===2)&&(K.inXML=!0)),te=null}function pt(e,t,n){{const i=W[0]&&W[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=P.decodeEntities(e,!1))}const r=W[0]||Ze,o=r.children[r.children.length-1];o&&o.type===2?(o.content+=e,Oe(o.loc,n)):r.children.push({type:2,content:e,loc:Y(t,n)})}function ft(e,t,n=!1){n?Oe(e.loc,Xn(t,60)):Oe(e.loc,lo(t,62)+1),K.inSFCRoot&&(e.children.length?e.innerLoc.end=Ee({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ee({},e.innerLoc.start),e.innerLoc.source=V(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:i}=e;if(Se||(r==="slot"?e.tagType=2:Zn(e)?e.tagType=3:co(e)&&(e.tagType=1)),K.inRCDATA||(e.children=Qn(i)),o===0&&P.isIgnoreNewlineTag(r)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&P.isPreTag(r)&&nn--,sn===e&&(Se=K.inVPre=!1,sn=null),K.inXML&&(W[0]?W[0].ns:P.ns)===0&&(K.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&Ne("COMPILER_V_IF_V_FOR_PRECEDENCE",P)){let c=!1,p=!1;for(let m=0;m<l.length;m++){const d=l[m];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){lt("COMPILER_V_IF_V_FOR_PRECEDENCE",P,e.loc);break}}}if(!K.inSFCRoot&&Ne("COMPILER_NATIVE_TEMPLATE",P)&&e.tag==="template"&&!Zn(e)){process.env.NODE_ENV!=="production"&<("COMPILER_NATIVE_TEMPLATE",P,e.loc);const c=W[0]||Ze,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&Fe("COMPILER_INLINE_TEMPLATE",P,a.loc)&&e.children.length&&(a.value={type:2,content:V(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function lo(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n<ve.length-1;)n++;return n}function Xn(e,t){let n=e;for(;ve.charCodeAt(n)!==t&&n>=0;)n--;return n}const ao=new Set(["if","else","else-if","for","slot"]);function Zn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&ao.has(t[n].name))return!0}return!1}function co({tag:e,props:t}){if(P.isCustomElement(e))return!1;if(e==="component"||po(e.charCodeAt(0))||zn(e)||P.isBuiltInComponent&&P.isBuiltInComponent(e)||P.isNativeTag&&!P.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Fe("COMPILER_IS_ON_ELEMENT",P,r.loc))return!0}}else if(r.name==="bind"&&we(r.arg,"is")&&Fe("COMPILER_IS_ON_ELEMENT",P,r.loc))return!0}return!1}function po(e){return e>64&&e<91}const fo=/\r\n/g;function Qn(e){const t=P.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const o=e[r];if(o.type===2)if(nn)o.content=o.content.replace(fo,`
|
|
12
|
-
`);else if(uo(o.content)){const i=e[r-1]&&e[r-1].type,l=e[r+1]&&e[r+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&ho(o.content)))?(n=!0,e[r]=null):o.content=" "}else t&&(o.content=Vn(o.content))}return n?e.filter(Boolean):e}function uo(e){for(let t=0;t<e.length;t++)if(!de(e.charCodeAt(t)))return!1;return!0}function ho(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Vn(e){let t="",n=!1;for(let r=0;r<e.length;r++)de(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function rn(e){(W[0]||Ze).children.push(e)}function Y(e,t){return{start:K.getPos(e),end:t==null?t:K.getPos(t),source:t==null?t:V(e,t)}}function mo(e){return Y(e.start.offset,e.end.offset)}function Oe(e,t){e.end=K.getPos(t),e.source=V(e.start.offset,t)}function go(e){const t={type:6,name:e.rawName,nameLoc:Y(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 ut(e,t=!1,n,r=0,o=0){return I(e,t,n,r)}function le(e,t,n){P.onError(U(e,Y(t,t),void 0,n))}function vo(){K.reset(),te=null,F=null,ie="",ye=-1,De=-1,W.length=0}function yo(e,t){if(vo(),ve=e,P=Ee({},Gn),t){let o;for(o in t)t[o]!=null&&(P[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!P.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");K.mode=P.parseMode==="html"?1:P.parseMode==="sfc"?2:0,K.inXML=P.ns===1||P.ns===2;const n=t&&t.delimiters;n&&(K.delimiterOpen=it(n[0]),K.delimiterClose=it(n[1]));const r=Ze=Ur([],e);return K.parse(ve),r.loc=Y(0,e.length),r.children=Qn(r.children),Ze=null,r}function bo(e,t){ht(e,void 0,t,!!es(e))}function es(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!ct(t[0])?t[0]:null}function ht(e,t,n,r=!1,o=!1){const{children:i}=e,l=[];for(let d=0;d<i.length;d++){const f=i[d];if(f.type===1&&f.tagType===0){const h=r?0:pe(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,l.push(f);continue}}else{const E=f.codegenNode;if(E.type===13){const v=E.patchFlag;if((v===void 0||v===512||v===1)&&ns(f,n)>=2){const C=ss(f);C&&(E.props=n.hoist(C))}E.dynamicProps&&(E.dynamicProps=n.hoist(E.dynamicProps))}}}else if(f.type===12&&(r?0:pe(f,n))>=2){l.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,ht(f,e,n,!1,o),h&&n.scopes.vSlot--}else if(f.type===11)ht(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)ht(f.branches[h],e,n,f.branches[h].children.length===1,o)}let a=!1;const c=[];if(l.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&ge(e.codegenNode.children))e.codegenNode.children=p(Te(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ge(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=m(e.codegenNode,"default");d&&(c.push(n.cached.length),d.returns=p(Te(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ge(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=oe(e,"slot",!0),f=d&&d.arg&&m(t.codegenNode,d.arg);f&&(c.push(n.cached.length),f.returns=p(Te(f.returns)),a=!0)}}if(!a)for(const d of l)c.push(n.cached.length),d.codegenNode=n.cache(d.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ge(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(J("__",I(JSON.stringify(c),!1)));function p(d){const f=n.cache(d);return o&&n.hmr&&(f.needArraySpread=!0),f}function m(d,f){if(d.children&&!ge(d.children)&&d.children.type===15){const h=d.children.properties.find(E=>E.key===f||E.key.content===f);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function pe(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let l=3;const a=ns(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const p=pe(e.children[c],t);if(p===0)return n.set(e,0),0;p<l&&(l=p)}if(l>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 m=pe(p.exp,t);if(m===0)return n.set(e,0),0;m<l&&(l=m)}}if(o.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(Pe(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Le(t.inSSR,o.isComponent))}return n.set(e,l),l}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 pe(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(Z(a)||Ot(a))continue;const c=pe(a,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const Eo=new Set([Ht,qt,We,Ge]);function ts(e,t){if(e.type===14&&!Z(e.callee)&&Eo.has(e.callee)){const n=e.arguments[0];if(n.type===4)return pe(n,t);if(n.type===14)return ts(n,t)}return 0}function ns(e,t){let n=3;const r=ss(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=pe(l,t);if(c===0)return c;c<n&&(n=c);let p;if(a.type===4?p=pe(a,t):a.type===14?p=ts(a,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function ss(e){const t=e.codegenNode;if(t.type===13)return t.props}function ko(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=Tt,isCustomElement:m=Tt,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:E=!1,inSSR:v=!1,ssrCssVars:C="",bindingMetadata:S=yr,inline:A=!1,isTS:D=!1,onError:$=Vt,onWarn:j=jn,compatConfig:_}){const B=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),x={filename:t,selfName:B&&It(ke(B[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:m,expressionPlugins:d,scopeId:f,slotted:h,ssr:E,inSSR:v,ssrCssVars:C,bindingMetadata:S,inline:A,isTS:D,onError:$,onWarn:j,compatConfig:_,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(w){const M=x.helpers.get(w)||0;return x.helpers.set(w,M+1),w},removeHelper(w){const M=x.helpers.get(w);if(M){const R=M-1;R?x.helpers.set(w,R):x.helpers.delete(w)}},helperString(w){return`_${Me[x.helper(w)]}`},replaceNode(w){if(process.env.NODE_ENV!=="production"){if(!x.currentNode)throw new Error("Node being replaced is already removed.");if(!x.parent)throw new Error("Cannot replace root node.")}x.parent.children[x.childIndex]=x.currentNode=w},removeNode(w){if(process.env.NODE_ENV!=="production"&&!x.parent)throw new Error("Cannot remove root node.");const M=x.parent.children,R=w?M.indexOf(w):x.currentNode?x.childIndex:-1;if(process.env.NODE_ENV!=="production"&&R<0)throw new Error("node being removed is not a child of current parent");!w||w===x.currentNode?(x.currentNode=null,x.onNodeRemoved()):x.childIndex>R&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(R,1)},onNodeRemoved:Tt,addIdentifiers(w){},removeIdentifiers(w){},hoist(w){Z(w)&&(w=I(w)),x.hoists.push(w);const M=I(`_hoisted_${x.hoists.length}`,!1,w.loc,2);return M.hoisted=w,M},cache(w,M=!1,R=!1){const k=Hr(x.cached.length,w,M,R);return x.cached.push(k),k}};return x.filters=new Set,x}function xo(e,t){const n=ko(e,t);mt(e,n),t.hoistStatic&&bo(e,n),t.ssr||No(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 No(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=es(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&Zt(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let o=64;process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Je(t,n(He),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function wo(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];Z(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,mt(o,t))}}function mt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(ge(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ke);break;case 5:t.ssr||t.helper(st);break;case 9:for(let i=0;i<e.branches.length;i++)mt(e.branches[i],t);break;case 10:case 11:case 1:case 0:wo(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function rs(e,t){const n=Z(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(to))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const p=t(r,c,o);p&&l.push(p)}}return l}}}const gt="/*@__PURE__*/",os=e=>`${Me[e]}: _${Me[e]}`;function So(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:m=!1,isTS:d=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:m,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${Me[v]}`},push(v,C=-2,S){h.code+=v},indent(){E(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:E(--h.indentLevel)},newline(){E(h.indentLevel)}};function E(v){h.push(`
|
|
13
|
-
`+" ".repeat(v),0)}return h}function
|
|
14
|
-
`,-1),c())),e.components.length&&(
|
|
15
|
-
`,0),c()),m||o("return "),e.codegenNode?
|
|
16
|
-
`,-1),e.hoists.length)){const d=[
|
|
17
|
-
`,-1)}To(e.hoists,t),i(),o("return ")}function on(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?jt:t==="component"?Lt:Ft);for(let a=0;a<e.length;a++){let c=e[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),r(`const ${Xe(c,t)} = ${l}(${JSON.stringify(c)}${p?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function To(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ne(i,t),r())}t.pure=!1}function Do(e){return Z(e)||e.type===4||e.type===2||e.type===5||e.type===8}function ln(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>ge(r)||!Do(r));t.push("["),n&&t.indent(),Qe(e,t,n),n&&t.deindent(),t.push("]")}function Qe(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];Z(a)?o(a,-3):ge(a)?ln(a,t):ne(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function ne(e,t){if(Z(e)){t.push(e,-3);return}if(Ot(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&qn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ne(e.codegenNode,t);break;case 2:Oo(e,t);break;case 4:is(e,t);break;case 5:Bo(e,t);break;case 12:ne(e.codegenNode,t);break;case 8:ls(e,t);break;case 3:Ao(e,t);break;case 13:$o(e,t);break;case 14:Ro(e,t);break;case 15:Lo(e,t);break;case 17:Po(e,t);break;case 18:Fo(e,t);break;case 19:jo(e,t);break;case 20:zo(e,t);break;case 21:Qe(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 qn(!1,`unhandled codegen node type: ${e.type}`),e}}function Oo(e,t){t.push(JSON.stringify(e.content),-3,e)}function is(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Bo(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(st)}(`),ne(e.content,t),n(")")}function ls(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Z(r)?t.push(r,-3):ne(r,t)}}function Io(e,t){const{push:n}=t;if(e.type===8)n("["),ls(e,t),n("]");else if(e.isStatic){const r=en(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Ao(e,t){const{push:n,helper:r,pure:o}=t;o&&n(gt),n(`${r(Ke)}(${JSON.stringify(e.content)})`,-3,e)}function $o(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:p,directives:m,isBlock:d,disableTracking:f,isComponent:h}=e;let E;if(c)if(process.env.NODE_ENV!=="production")if(c<0)E=c+` /* ${tt[c]} */`;else{const C=Object.keys(tt).map(Number).filter(S=>S>0&&c&S).map(S=>tt[S]).join(", ");E=c+` /* ${C} */`}else E=String(c);m&&n(r(zt)+"("),d&&n(`(${r(_e)}(${f?"true":""}), `),o&&n(gt);const v=d?Pe(t.inSSR,h):Le(t.inSSR,h);n(r(v)+"(",-2,e),Qe(Mo([i,l,a,E,p]),t),n(")"),d&&n(")"),m&&(n(", "),ne(m,t),n(")"))}function Mo(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ro(e,t){const{push:n,helper:r,pure:o}=t,i=Z(e.callee)?e.callee:r(e.callee);o&&n(gt),n(i+"(",-2,e),Qe(e.arguments,t),n(")")}function Lo(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",-2,e);return}const a=l.length>1||process.env.NODE_ENV!=="production"&&l.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:p,value:m}=l[c];Io(p,t),n(": "),ne(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Po(e,t){ln(e.elements,t)}function Fo(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:p}=e;p&&n(`_${Me[Jt]}(`),n("(",-2,e),ge(i)?Qe(i,t):i&&ne(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),ge(l)?ln(l,t):ne(l,t)):a&&ne(a,t),(c||a)&&(o(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function jo(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:p}=t;if(n.type===4){const d=!en(n.content);d&&l("("),is(n,t),d&&l(")")}else l("("),ne(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),ne(r,t),t.indentLevel--,i&&p(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,ne(o,t),m||t.indentLevel--,i&&c(!0)}function zo(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${r(ot)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),ne(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${r(ot)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const Uo=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"),Ho=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Be(e,t,n=!1,r=!1){const o=e.content;if(o.trim())try{new Function(r?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(Ho,"").match(Uo);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(U(45,e.loc,void 0,l))}}const qo=(e,t)=>{if(e.type===5)e.content=an(e.content,t);else if(e.type===1){const n=oe(e,"memo");for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&o.name!=="for"){const i=o.exp,l=o.arg;i&&i.type===4&&!(o.name==="on"&&l)&&!(n&&l&&l.type===4&&l.content==="key")&&(o.exp=an(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=an(l,t))}}}};function an(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Be(e,t,n,r),e}const Ko=rs(/^(if|else|else-if)$/,(e,t,n)=>Wo(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const p=l[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(i)r.codegenNode=cs(o,c,n);else{const p=Jo(r.codegenNode);p.alternate=cs(o,c+r.branches.length-1,n)}}}));function Wo(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=I("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Be(t.exp,n),t.name==="if"){const o=as(e,t),i={type:9,loc:mo(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children,i=[];let l=o.indexOf(e);for(;l-->=-1;){const a=o[l];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&i.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();const c=as(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&a.branches.forEach(({userKey:d})=>{Go(d,m)&&n.onError(U(29,c.userKey.loc))})}a.branches.push(c);const p=r&&r(a,c,!1);mt(c,n),p&&p(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function as(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!oe(e,"for")?e.children:[e],userKey:Ye(e,"key"),isTemplateIf:n}}function cs(e,t,n){return e.condition?Xt(e.condition,ds(e,t,n),X(n.helper(Ke),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):ds(e,t,n)}function ds(e,t,n){const{helper:r}=n,o=J("key",I(`${t}`,!1,ce,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return dt(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(p=>p.type!==3).length===1&&(c|=2048),Je(n,r(He),fe([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,p=so(c);return p.type===13&&Zt(p,n),dt(p,o,n),c}}function Go(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,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Jo(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 Yo=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:l}=e;if(l&&l.type===4&&!l.content.trim()&&(l=void 0),!l){if(i.type!==4||!i.isStatic)return n.onError(U(52,i.loc)),{props:[J(i,I("",!0,o))]};ps(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=ke(i.content):i.content=`${n.helperString(Wt)}(${i.content})`:(i.children.unshift(`${n.helperString(Wt)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&fs(i,"."),r.some(a=>a.content==="attr")&&fs(i,"^")),{props:[J(i,l)]}},ps=(e,t)=>{const n=e.arg,r=ke(n.content);e.exp=I(r,!1,n.loc)},fs=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Xo=rs("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return Zo(e,t,n,i=>{const l=X(r(Ut),[i.source]),a=at(e),c=oe(e,"memo"),p=Ye(e,"key",!1,!0);p&&p.type===7&&!p.exp&&ps(p);let d=p&&(p.type===6?p.value?I(p.value.content,!0):void 0:p.exp);const f=p&&d?J("key",d):null,h=i.source.type===4&&i.source.constType>0,E=h?64:p?128:256;return i.codegenNode=Je(n,r(He),void 0,l,E,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:C}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(D=>{if(D.type===1){const $=Ye(D,"key");if($)return n.onError(U(33,$.loc)),!0}});const S=C.length!==1||C[0].type!==1,A=ct(e)?e:a&&e.children.length===1&&ct(e.children[0])?e.children[0]:null;if(A?(v=A.codegenNode,a&&f&&dt(v,f,n)):S?v=Je(n,r(He),f?fe([f]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=C[0].codegenNode,a&&f&&dt(v,f,n),v.isBlock!==!h&&(v.isBlock?(o(_e),o(Pe(n.inSSR,v.isComponent))):o(Le(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(_e),r(Pe(n.inSSR,v.isComponent))):r(Le(n.inSSR,v.isComponent))),c){const D=Re(cn(i.parseResult,[I("_cached")]));D.body=qr([ue(["const _memo = (",c.exp,")"]),ue(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${n.helperString(Rn)}(_cached, _memo)) return _cached`]),ue(["const _item = ",v]),I("_item.memo = _memo"),I("return _item")]),l.arguments.push(D,I("_cache"),I(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Re(cn(i.parseResult),v,!0))}})});function Zo(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(U(32,t.loc));return}us(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:p,key:m,index:d}=o,f={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:m,objectIndexAlias:d,parseResult:o,children:at(e)?e.children:[e]};n.replaceNode(f),a.vFor++;const h=r&&r(f);return()=>{a.vFor--,h&&h()}}function us(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Be(e.source,t),e.key&&Be(e.key,t,!0),e.index&&Be(e.index,t,!0),e.value&&Be(e.value,t,!0)),e.finalized=!0)}function cn({value:e,key:t,index:n},r=[]){return Qo([e,t,n,...r])}function Qo(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||I("_".repeat(r+1),!1))}const hs=I("undefined",!1),Vo=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=oe(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},ei=(e,t,n,r)=>Re(e,n,!1,!0,n.length?n[0].loc:r);function ti(e,t,n=ei){t.helper(Jt);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=oe(e,"slot",!0);if(c){const{arg:C,exp:S}=c;C&&!re(C)&&(a=!0),i.push(J(C||I("default",!0),n(S,void 0,r,o)))}let p=!1,m=!1;const d=[],f=new Set;let h=0;for(let C=0;C<r.length;C++){const S=r[C];let A;if(!at(S)||!(A=oe(S,"slot",!0))){S.type!==3&&d.push(S);continue}if(c){t.onError(U(37,A.loc));break}p=!0;const{children:D,loc:$}=S,{arg:j=I("default",!0),exp:_,loc:B}=A;let x;re(j)?x=j?j.content:"default":a=!0;const w=oe(S,"for"),M=n(_,w,D,$);let R,k;if(R=oe(S,"if"))a=!0,l.push(Xt(R.exp,vt(j,M,h++),hs));else if(k=oe(S,/^else(-if)?$/,!0)){let y=C,N;for(;y--&&(N=r[y],!(N.type!==3&&dn(N))););if(N&&at(N)&&oe(N,/^(else-)?if$/)){let T=l[l.length-1];for(;T.alternate.type===19;)T=T.alternate;T.alternate=k.exp?Xt(k.exp,vt(j,M,h++),hs):vt(j,M,h++)}else t.onError(U(30,k.loc))}else if(w){a=!0;const y=w.forParseResult;y?(us(y,t),l.push(X(t.helper(Ut),[y.source,Re(cn(y),vt(j,M),!0)]))):t.onError(U(32,w.loc))}else{if(x){if(f.has(x)){t.onError(U(38,B));continue}f.add(x),x==="default"&&(m=!0)}i.push(J(j,M))}}if(!c){const C=(S,A)=>{const D=n(S,void 0,A,o);return t.compatConfig&&(D.isNonScopedSlot=!0),J("default",D)};p?d.length&&d.some(S=>dn(S))&&(m?t.onError(U(39,d[0].loc)):i.push(C(void 0,d))):i.push(C(void 0,r))}const E=a?2:yt(e.children)?3:1;let v=fe(i.concat(J("_",I(E+(process.env.NODE_ENV!=="production"?` /* ${Nr[E]} */`:""),!1))),o);return l.length&&(v=X(t.helper(Mn),[v,Te(l)])),{slots:v,hasDynamicSlots:a}}function vt(e,t,n){const r=[J("name",e),J("fn",t)];return n!=null&&r.push(J("key",I(String(n),!0))),fe(r)}function yt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||yt(n.children))return!0;break;case 9:if(yt(n.branches))return!0;break;case 10:case 11:if(yt(n.children))return!0;break}}return!1}function dn(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():dn(e.content)}const ms=new WeakMap,ni=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?si(e,t):`"${r}"`;const a=br(l)&&l.callee===Pt;let c,p,m=0,d,f,h,E=a||l===qe||l===At||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const v=gs(e,t,void 0,i,a);c=v.props,m=v.patchFlag,f=v.dynamicPropNames;const C=v.directives;h=C&&C.length?Te(C.map(S=>oi(S,t))):void 0,v.shouldUseBlock&&(E=!0)}if(e.children.length>0)if(l===nt&&(E=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(U(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==qe&&l!==nt){const{slots:C,hasDynamicSlots:S}=ti(e,t);p=C,S&&(m|=1024)}else if(e.children.length===1&&l!==qe){const C=e.children[0],S=C.type,A=S===5||S===8;A&&pe(C,t)===0&&(m|=1),A||S===2?p=C:p=e.children}else p=e.children;f&&f.length&&(d=ii(f)),e.codegenNode=Je(t,l,c,p,m===0?void 0:m,d,h,!!E,!1,i,e.loc)};function si(e,t,n=!1){let{tag:r}=e;const o=pn(r),i=Ye(e,"is",!1,!0);if(i)if(o||Ne("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&I(i.value.content,!0):(a=i.exp,a||(a=I("is",!1,i.arg.loc))),a)return X(t.helper(Pt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=zn(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(Lt),t.components.add(r),Xe(r,"component"))}function gs(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let p=[];const m=[],d=[],f=c.length>0;let h=!1,E=0,v=!1,C=!1,S=!1,A=!1,D=!1,$=!1;const j=[],_=M=>{p.length&&(m.push(fe(vs(p),a)),p=[]),M&&m.push(M)},B=()=>{t.scopes.vFor>0&&p.push(J(I("ref_for",!0),I("true")))},x=({key:M,value:R})=>{if(re(M)){const k=M.content,y=Dt(k);if(y&&(!r||o)&&k.toLowerCase()!=="onclick"&&k!=="onUpdate:modelValue"&&!Dn(k)&&(A=!0),y&&Dn(k)&&($=!0),y&&R.type===14&&(R=R.arguments[0]),R.type===20||(R.type===4||R.type===8)&&pe(R,t)>0)return;k==="ref"?v=!0:k==="class"?C=!0:k==="style"?S=!0:k!=="key"&&!j.includes(k)&&j.push(k),r&&(k==="class"||k==="style")&&!j.includes(k)&&j.push(k)}else D=!0};for(let M=0;M<n.length;M++){const R=n[M];if(R.type===6){const{loc:k,name:y,nameLoc:N,value:T}=R;let H=!0;if(y==="ref"&&(v=!0,B()),y==="is"&&(pn(l)||T&&T.content.startsWith("vue:")||Ne("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(J(I(y,!0,N),I(T?T.content:"",H,T?T.loc:k)))}else{const{name:k,arg:y,exp:N,loc:T,modifiers:H}=R,ee=k==="bind",be=k==="on";if(k==="slot"){r||t.onError(U(40,T));continue}if(k==="once"||k==="memo"||k==="is"||ee&&we(y,"is")&&(pn(l)||Ne("COMPILER_IS_ON_ELEMENT",t))||be&&i)continue;if((ee&&we(y,"key")||be&&f&&we(y,"vue:before-update"))&&(h=!0),ee&&we(y,"ref")&&B(),!y&&(ee||be)){if(D=!0,N)if(ee){if(_(),process.env.NODE_ENV!=="production"&&m.some(ae=>ae.type===15?ae.properties.some(({key:Ce})=>Ce.type!==4||!Ce.isStatic?!0:Ce.content!=="class"&&Ce.content!=="style"&&!Dt(Ce.content)):!0)&&Fe("COMPILER_V_BIND_OBJECT_ORDER",t,T),Ne("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(N);continue}B(),_(),m.push(N)}else _({type:14,loc:T,callee:t.helper(Kt),arguments:r?[N]:[N,"true"]});else t.onError(U(ee?34:35,T));continue}ee&&H.some(q=>q.content==="prop")&&(E|=32);const Ae=t.directiveTransforms[k];if(Ae){const{props:q,needRuntime:ae}=Ae(R,e,t);!i&&q.forEach(x),be&&y&&!re(y)?_(fe(q,a)):p.push(...q),ae&&(d.push(R),Ot(ae)&&ms.set(R,ae))}else Er(k)||(d.push(R),f&&(h=!0))}}let w;if(m.length?(_(),m.length>1?w=X(t.helper(rt),m,a):w=m[0]):p.length&&(w=fe(vs(p),a)),D?E|=16:(C&&!r&&(E|=2),S&&!r&&(E|=4),j.length&&(E|=8),A&&(E|=32)),!h&&(E===0||E===32)&&(v||$||d.length>0)&&(E|=512),!t.inSSR&&w)switch(w.type){case 15:let M=-1,R=-1,k=!1;for(let T=0;T<w.properties.length;T++){const H=w.properties[T].key;re(H)?H.content==="class"?M=T:H.content==="style"&&(R=T):H.isHandlerKey||(k=!0)}const y=w.properties[M],N=w.properties[R];k?w=X(t.helper(We),[w]):(y&&!re(y.value)&&(y.value=X(t.helper(Ht),[y.value])),N&&(S||N.value.type===4&&N.value.content.trim()[0]==="["||N.value.type===17)&&(N.value=X(t.helper(qt),[N.value])));break;case 14:break;default:w=X(t.helper(We),[X(t.helper(Ge),[w])]);break}return{props:w,directives:d,patchFlag:E,dynamicPropNames:j,shouldUseBlock:h}}function vs(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||Dt(i))&&ri(l,o):(t.set(i,o),n.push(o))}return n}function ri(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Te([e.value,t.value],e.loc)}function oi(e,t){const n=[],r=ms.get(e);r?n.push(t.helperString(r)):(t.helper(Ft),t.directives.add(e.name),n.push(Xe(e.name,"directive")));const{loc:o}=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 i=I("true",!1,o);n.push(fe(e.modifiers.map(l=>J(l,i)),o))}return Te(n,e.loc)}function ii(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function pn(e){return e==="component"||e==="Component"}const li=(e,t)=>{if(ct(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=ai(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Re([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=X(t.helper($n),l,r)}};function ai(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6)l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=ke(l.name),o.push(l)));else if(l.name==="bind"&&we(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=ke(l.arg.content);n=l.exp=I(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&re(l.arg)&&(l.arg.content=ke(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=gs(e,t,o,!1,!1);r=i,l.length&&t.onError(U(36,l[0].loc))}return{slotName:n,slotProps:r}}const ys=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(U(35,o));let a;if(l.type===4)if(l.isStatic){let d=l.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(U(51,l.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const f=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?xr(ke(d)):`on:${d}`;a=I(f,!0,l.loc)}else a=ue([`${n.helperString(Gt)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Gt)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let p=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const d=Hn(c),f=!(d||Vr(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Be(c,n,!1,h),(f||p&&d)&&(c=ue([`${f?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[J(a,c||I("() => {}",!1,o))]};return r&&(m=r(m)),p&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(d=>d.key.isHandlerKey=!0),m},ci=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(tn(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(tn(c))r||(r=n[i]=ue([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(tn(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&pe(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${tt[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:X(t.helper(Rt),a)}}}}},bs=new WeakSet,di=(e,t)=>{if(e.type===1&&oe(e,"once",!0))return bs.has(e)||t.inVOnce||t.inSSR?void 0:(bs.add(e),t.inVOnce=!0,t.helper(ot),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},Es=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(U(41,e.loc)),bt();const i=r.loc.source.trim(),l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(U(44,r.loc)),bt();if(!l.trim()||!Hn(r))return n.onError(U(42,r.loc)),bt();const c=o||I("modelValue",!0),p=o?re(o)?`onUpdate:${ke(o.content)}`:ue(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const d=n.isTS?"($event: any)":"$event";m=ue([`${d} => ((`,r,") = $event)"]);const f=[J(c,e.exp),J(p,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(en(v)?v:JSON.stringify(v))+": true").join(", "),E=o?re(o)?`${o.content}Modifiers`:ue([o,' + "Modifiers"']):"modelModifiers";f.push(J(E,I(`{ ${h} }`,!1,e.loc,2)))}return bt(f)};function bt(e=[]){return{props:e}}const pi=/[\w).+\-_$\]]/,fi=(e,t)=>{Ne("COMPILER_FILTERS",t)&&(e.type===5?Et(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Et(n.exp,t)}))};function Et(e,t){if(e.type===4)ks(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?ks(r,t):r.type===8?Et(e,t):r.type===5&&Et(r.content,t))}}function ks(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,p=0,m=0,d,f,h,E,v=[];for(h=0;h<n.length;h++)if(f=d,d=n.charCodeAt(h),r)d===39&&f!==92&&(r=!1);else if(o)d===34&&f!==92&&(o=!1);else if(i)d===96&&f!==92&&(i=!1);else if(l)d===47&&f!==92&&(l=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!p)E===void 0?(m=h+1,E=n.slice(0,h).trim()):C();else{switch(d){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(d===47){let S=h-1,A;for(;S>=0&&(A=n.charAt(S),A===" ");S--);(!A||!pi.test(A))&&(l=!0)}}E===void 0?E=n.slice(0,h).trim():m!==0&&C();function C(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&<("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)E=ui(E,v[h],t);e.content=E,e.ast=void 0}}function ui(e,t,n){n.helper(jt);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Xe(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Xe(o,"filter")}(${e}${i!==")"?","+i:i}`}}const xs=new WeakSet,hi=(e,t)=>{if(e.type===1){const n=oe(e,"memo");return!n||xs.has(e)?void 0:(xs.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Zt(r,t),e.codegenNode=X(t.helper(Yt),[n.exp,Re(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function mi(e){return[[di,Ko,hi,Xo,fi,...process.env.NODE_ENV!=="production"?[qo]:[],li,ni,Vo,ci],{on:ys,bind:Yo,model:Es}]}function gi(e,t={}){const n=t.onError||Vt,r=t.mode==="module";t.prefixIdentifiers===!0?n(U(47)):r&&n(U(48));const o=!1;t.cacheHandlers&&n(U(49)),t.scopeId&&!r&&n(U(50));const i=Ee({},t,{prefixIdentifiers:o}),l=Z(e)?yo(e,i):e,[a,c]=mi();return xo(l,Ee({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ee({},c,t.directiveTransforms||{})})),Co(l,i)}const vi=()=>({props:[]});/**
|
|
9
|
+
**/const qe=Symbol(process.env.NODE_ENV!=="production"?"Fragment":""),Ke=Symbol(process.env.NODE_ENV!=="production"?"Teleport":""),Rt=Symbol(process.env.NODE_ENV!=="production"?"Suspense":""),ot=Symbol(process.env.NODE_ENV!=="production"?"KeepAlive":""),In=Symbol(process.env.NODE_ENV!=="production"?"BaseTransition":""),De=Symbol(process.env.NODE_ENV!=="production"?"openBlock":""),An=Symbol(process.env.NODE_ENV!=="production"?"createBlock":""),$n=Symbol(process.env.NODE_ENV!=="production"?"createElementBlock":""),Lt=Symbol(process.env.NODE_ENV!=="production"?"createVNode":""),Pt=Symbol(process.env.NODE_ENV!=="production"?"createElementVNode":""),We=Symbol(process.env.NODE_ENV!=="production"?"createCommentVNode":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"createTextVNode":""),Mn=Symbol(process.env.NODE_ENV!=="production"?"createStaticVNode":""),jt=Symbol(process.env.NODE_ENV!=="production"?"resolveComponent":""),zt=Symbol(process.env.NODE_ENV!=="production"?"resolveDynamicComponent":""),Ut=Symbol(process.env.NODE_ENV!=="production"?"resolveDirective":""),Ht=Symbol(process.env.NODE_ENV!=="production"?"resolveFilter":""),qt=Symbol(process.env.NODE_ENV!=="production"?"withDirectives":""),Kt=Symbol(process.env.NODE_ENV!=="production"?"renderList":""),Rn=Symbol(process.env.NODE_ENV!=="production"?"renderSlot":""),Ln=Symbol(process.env.NODE_ENV!=="production"?"createSlots":""),it=Symbol(process.env.NODE_ENV!=="production"?"toDisplayString":""),lt=Symbol(process.env.NODE_ENV!=="production"?"mergeProps":""),Wt=Symbol(process.env.NODE_ENV!=="production"?"normalizeClass":""),Gt=Symbol(process.env.NODE_ENV!=="production"?"normalizeStyle":""),Ge=Symbol(process.env.NODE_ENV!=="production"?"normalizeProps":""),Je=Symbol(process.env.NODE_ENV!=="production"?"guardReactiveProps":""),Jt=Symbol(process.env.NODE_ENV!=="production"?"toHandlers":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"camelize":""),Hr=Symbol(process.env.NODE_ENV!=="production"?"capitalize":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"toHandlerKey":""),at=Symbol(process.env.NODE_ENV!=="production"?"setBlockTracking":""),qr=Symbol(process.env.NODE_ENV!=="production"?"pushScopeId":""),Kr=Symbol(process.env.NODE_ENV!=="production"?"popScopeId":""),Zt=Symbol(process.env.NODE_ENV!=="production"?"withCtx":""),Wr=Symbol(process.env.NODE_ENV!=="production"?"unref":""),Gr=Symbol(process.env.NODE_ENV!=="production"?"isRef":""),Qt=Symbol(process.env.NODE_ENV!=="production"?"withMemo":""),Pn=Symbol(process.env.NODE_ENV!=="production"?"isMemoSame":""),Re={[qe]:"Fragment",[Ke]:"Teleport",[Rt]:"Suspense",[ot]:"KeepAlive",[In]:"BaseTransition",[De]:"openBlock",[An]:"createBlock",[$n]:"createElementBlock",[Lt]:"createVNode",[Pt]:"createElementVNode",[We]:"createCommentVNode",[Ft]:"createTextVNode",[Mn]:"createStaticVNode",[jt]:"resolveComponent",[zt]:"resolveDynamicComponent",[Ut]:"resolveDirective",[Ht]:"resolveFilter",[qt]:"withDirectives",[Kt]:"renderList",[Rn]:"renderSlot",[Ln]:"createSlots",[it]:"toDisplayString",[lt]:"mergeProps",[Wt]:"normalizeClass",[Gt]:"normalizeStyle",[Ge]:"normalizeProps",[Je]:"guardReactiveProps",[Jt]:"toHandlers",[Yt]:"camelize",[Hr]:"capitalize",[Xt]:"toHandlerKey",[at]:"setBlockTracking",[qr]:"pushScopeId",[Kr]:"popScopeId",[Zt]:"withCtx",[Wr]:"unref",[Gr]:"isRef",[Qt]:"withMemo",[Pn]:"isMemoSame"};function Jr(e){Object.getOwnPropertySymbols(e).forEach(t=>{Re[t]=e[t]})}const de={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Yr(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:de}}function Ye(e,t,n,r,o,i,l,a=!1,c=!1,p=!1,m=de){return e&&(a?(e.helper(De),e.helper(Fe(e.inSSR,p))):e.helper(Pe(e.inSSR,p)),l&&e.helper(qt)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:l,isBlock:a,disableTracking:c,isComponent:p,loc:m}}function Oe(e,t=de){return{type:17,loc:t,elements:e}}function ue(e,t=de){return{type:15,loc:t,properties:e}}function W(e,t){return{type:16,loc:de,key:Y(e)?B(e,!0):e,value:t}}function B(e,t=!1,n=de,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function he(e,t=de){return{type:8,loc:t,children:e}}function J(e,t=[],n=de){return{type:14,loc:n,callee:e,arguments:t}}function Le(e,t=void 0,n=!1,r=!1,o=de){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Vt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:de}}function Xr(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:de}}function Zr(e){return{type:21,body:e,loc:de}}function Pe(e,t){return e||t?Lt:Pt}function Fe(e,t){return e||t?An:$n}function en(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Pe(r,e.isComponent)),t(De),t(Fe(r,e.isComponent)))}const Fn=new Uint8Array([123,123]),jn=new Uint8Array([125,125]);function zn(e){return e>=97&&e<=122||e>=65&&e<=90}function pe(e){return e===32||e===10||e===9||e===12||e===13}function Se(e){return e===47||e===62||pe(e)}function ct(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const X={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 Qr{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=Fn,this.delimiterClose=jn,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=Fn,this.delimiterClose=jn}getPos(t){let n=1,r=t+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(t>i){n=o+2,r=t-i;break}}return{column:r,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?Se(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||pe(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}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===X.TitleEnd||this.currentSequence===X.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===X.Cdata[this.sequenceIndex]?++this.sequenceIndex===X.Cdata.length&&(this.state=28,this.currentSequence=X.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===X.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):zn(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){Se(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Se(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(ct("</"+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){pe(t)||(t===62?(process.env.NODE_ENV!=="production"&&this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=zn(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||pe(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):pe(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):pe(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||Se(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||Se(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||Se(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||Se(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||Se(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)):pe(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):pe(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){pe(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=X.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===X.ScriptEnd[3]?this.startSpecial(X.ScriptEnd,4):t===X.StyleEnd[3]?this.startSpecial(X.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===X.TitleEnd[3]?this.startSpecial(X.TitleEnd,4):t===X.TextareaEnd[3]?this.startSpecial(X.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===X.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 Vr={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 tn(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Ce(e,t){const n=tn("MODE",t),r=tn(e,t);return n===3?r===!0:r!==!1}function je(e,t,n,...r){const o=Ce(e,t);return process.env.NODE_ENV!=="production"&&o&&dt(e,t,n,...r),o}function dt(e,t,n,...r){if(tn(e,t)==="suppress-warning")return;const{message:i,link:l}=Vr[e],a=`(deprecation ${e}) ${typeof i=="function"?i(...r):i}${l?`
|
|
10
|
+
Details: ${l}`:""}`,c=new SyntaxError(a);c.code=e,n&&(c.loc=n),t.onWarn(c)}function nn(e){throw e}function Un(e){process.env.NODE_ENV!=="production"&&console.warn(`[Vue warn] ${e.message}`)}function z(e,t,n,r){const o=process.env.NODE_ENV!=="production"?(n||eo)[e]+(r||""):`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const eo={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' 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:""},oe=e=>e.type===4&&e.isStatic;function Hn(e){switch(e){case"Teleport":case"teleport":return Ke;case"Suspense":case"suspense":return Rt;case"KeepAlive":case"keep-alive":return ot;case"BaseTransition":case"base-transition":return In}}const to=/^\d|[^\$\w\xA0-\uFFFF]/,sn=e=>!to.test(e),no=/[A-Za-z_$\xA0-\uFFFF]/,so=/[\.\?\w$\xA0-\uFFFF]/,ro=/\s+[.[]\s*|\s*[.[]\s+/g,qn=e=>e.type===4?e.content:e.loc.source,Kn=e=>{const t=qn(e).trim().replace(ro,a=>a.trim());let n=0,r=[],o=0,i=0,l=null;for(let a=0;a<t.length;a++){const c=t.charAt(a);switch(n){case 0:if(c==="[")r.push(n),n=1,o++;else if(c==="(")r.push(n),n=2,i++;else if(!(a===0?no:so).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(r.push(n),n=3,l=c):c==="["?o++:c==="]"&&(--o||(n=r.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")r.push(n),n=3,l=c;else if(c==="(")i++;else if(c===")"){if(a===t.length-1)return!1;--i||(n=r.pop())}break;case 3:c===l&&(n=r.pop(),l=null);break}}return!o&&!i},oo=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,io=e=>oo.test(qn(e));function Wn(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ie(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(Y(t)?o.name===t:t.test(o.name)))return o}}function Xe(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&_e(i.arg,t))return i}}function _e(e,t){return!!(e&&oe(e)&&e.content===t)}function lo(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function rn(e){return e.type===5||e.type===2}function ao(e){return e.type===7&&e.name==="slot"}function pt(e){return e.type===1&&e.tagType===3}function ft(e){return e.type===1&&e.tagType===2}const co=new Set([Ge,Je]);function Gn(e,t=[]){if(e&&!Y(e)&&e.type===14){const n=e.callee;if(!Y(n)&&co.has(n))return Gn(e.arguments[0],t.concat(e))}return[e,t]}function ut(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],i=[],l;if(o&&!Y(o)&&o.type===14){const a=Gn(o);o=a[0],i=a[1],l=i[i.length-1]}if(o==null||Y(o))r=ue([t]);else if(o.type===14){const a=o.arguments[0];!Y(a)&&a.type===15?Jn(t,a)||a.properties.unshift(t):o.callee===Jt?r=J(n.helper(lt),[ue([t]),o]):o.arguments.unshift(ue([t])),!r&&(r=o)}else o.type===15?(Jn(t,o)||o.properties.unshift(t),r=o):(r=J(n.helper(lt),[ue([t]),o]),l&&l.callee===Je&&(l=i[i.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Jn(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function Ze(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function po(e){return e.type===14&&e.callee===Qt?e.arguments[1].returns:e}const fo=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Yn={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:st,isPreTag:st,isIgnoreNewlineTag:st,isCustomElement:st,onError:nn,onWarn:Un,comments:process.env.NODE_ENV!=="production",prefixIdentifiers:!1};let R=Yn,Qe=null,be="",V=null,L=null,le="",Ee=-1,Be=-1,on=0,Te=!1,ln=null;const q=[],U=new Qr(q,{onerr:ae,ontext(e,t){ht(Z(e,t),e,t)},ontextentity(e,t,n){ht(e,t,n)},oninterpolation(e,t){if(Te)return ht(Z(e,t),e,t);let n=e+U.delimiterOpen.length,r=t-U.delimiterClose.length;for(;pe(be.charCodeAt(n));)n++;for(;pe(be.charCodeAt(r-1));)r--;let o=Z(n,r);o.includes("&")&&(o=R.decodeEntities(o,!1)),an({type:5,content:gt(o,!1,G(n,r)),loc:G(e,t)})},onopentagname(e,t){const n=Z(e,t);V={type:1,tag:n,ns:R.getNamespace(n,q[0],R.ns),tagType:0,props:[],children:[],loc:G(e-1,t),codegenNode:void 0}},onopentagend(e){Zn(e)},onclosetag(e,t){const n=Z(e,t);if(!R.isVoidTag(n)){let r=!1;for(let o=0;o<q.length;o++)if(q[o].tag.toLowerCase()===n.toLowerCase()){r=!0,o>0&&ae(24,q[0].loc.start.offset);for(let l=0;l<=o;l++){const a=q.shift();mt(a,t,l<o)}break}r||ae(23,Qn(e,60))}},onselfclosingtag(e){const t=V.tag;V.isSelfClosing=!0,Zn(e),q[0]&&q[0].tag===t&&mt(q.shift(),e)},onattribname(e,t){L={type:6,name:Z(e,t),nameLoc:G(e,t),value:void 0,loc:G(e)}},ondirname(e,t){const n=Z(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Te&&r===""&&ae(26,e),Te||r==="")L={type:6,name:n,nameLoc:G(e,t),value:void 0,loc:G(e)};else if(L={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[B("prop")]:[],loc:G(e)},r==="pre"){Te=U.inVPre=!0,ln=V;const o=V.props;for(let i=0;i<o.length;i++)o[i].type===7&&(o[i]=wo(o[i]))}},ondirarg(e,t){if(e===t)return;const n=Z(e,t);if(Te)L.name+=n,Ie(L.nameLoc,t);else{const r=n[0]!=="[";L.arg=gt(r?n:n.slice(1,-1),r,G(e,t),r?3:0)}},ondirmodifier(e,t){const n=Z(e,t);if(Te)L.name+="."+n,Ie(L.nameLoc,t);else if(L.name==="slot"){const r=L.arg;r&&(r.content+="."+n,Ie(r.loc,t))}else{const r=B(n,!0,G(e,t));L.modifiers.push(r)}},onattribdata(e,t){le+=Z(e,t),Ee<0&&(Ee=e),Be=t},onattribentity(e,t,n){le+=e,Ee<0&&(Ee=t),Be=n},onattribnameend(e){const t=L.loc.start.offset,n=Z(t,e);L.type===7&&(L.rawName=n),V.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&ae(2,t)},onattribend(e,t){if(V&&L){if(Ie(L.loc,t),e!==0)if(le.includes("&")&&(le=R.decodeEntities(le,!0)),L.type===6)L.name==="class"&&(le=ts(le).trim()),e===1&&!le&&ae(13,t),L.value={type:2,content:le,loc:e===1?G(Ee,Be):G(Ee-1,Be+1)},U.inSFCRoot&&V.tag==="template"&&L.name==="lang"&&le&&le!=="html"&&U.enterRCDATA(ct("</template"),0);else{let n=0;L.exp=gt(le,!1,G(Ee,Be),0,n),L.name==="for"&&(L.forParseResult=ho(L.exp));let r=-1;L.name==="bind"&&(r=L.modifiers.findIndex(o=>o.content==="sync"))>-1&&je("COMPILER_V_BIND_SYNC",R,L.loc,L.arg.loc.source)&&(L.name="model",L.modifiers.splice(r,1))}(L.type!==7||L.name!=="pre")&&V.props.push(L)}le="",Ee=Be=-1},oncomment(e,t){R.comments&&an({type:3,content:Z(e,t),loc:G(e-4,t+3)})},onend(){const e=be.length;if(process.env.NODE_ENV!=="production"&&U.state!==1)switch(U.state){case 5:case 8:ae(5,e);break;case 3:case 4:ae(25,U.sectionStart);break;case 28:U.currentSequence===X.CdataEnd?ae(6,e):ae(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:ae(9,e);break}for(let t=0;t<q.length;t++)mt(q[t],e-1),ae(24,q[t].loc.start.offset)},oncdata(e,t){q[0].ns!==0?ht(Z(e,t),e,t):ae(1,e-9)},onprocessinginstruction(e){(q[0]?q[0].ns:R.ns)===0&&ae(21,e-1)}}),Xn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,uo=/^\(|\)$/g;function ho(e){const t=e.loc,n=e.content,r=n.match(fo);if(!r)return;const[,o,i]=r,l=(d,u,h=!1)=>{const E=t.start.offset+u,v=E+d.length;return gt(d,!1,G(E,v),0,h?1:0)},a={source:l(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=o.trim().replace(uo,"").trim();const p=o.indexOf(c),m=c.match(Xn);if(m){c=c.replace(Xn,"").trim();const d=m[1].trim();let u;if(d&&(u=n.indexOf(d,p+c.length),a.key=l(d,u,!0)),m[2]){const h=m[2].trim();h&&(a.index=l(h,n.indexOf(h,a.key?u+d.length:p+c.length),!0))}}return c&&(a.value=l(c,p,!0)),a}function Z(e,t){return be.slice(e,t)}function Zn(e){U.inSFCRoot&&(V.innerLoc=G(e+1,e+1)),an(V);const{tag:t,ns:n}=V;n===0&&R.isPreTag(t)&&on++,R.isVoidTag(t)?mt(V,e):(q.unshift(V),(n===1||n===2)&&(U.inXML=!0)),V=null}function ht(e,t,n){{const i=q[0]&&q[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=R.decodeEntities(e,!1))}const r=q[0]||Qe,o=r.children[r.children.length-1];o&&o.type===2?(o.content+=e,Ie(o.loc,n)):r.children.push({type:2,content:e,loc:G(t,n)})}function mt(e,t,n=!1){n?Ie(e.loc,Qn(t,60)):Ie(e.loc,mo(t,62)+1),U.inSFCRoot&&(e.children.length?e.innerLoc.end=we({},e.children[e.children.length-1].loc.end):e.innerLoc.end=we({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o,children:i}=e;if(Te||(r==="slot"?e.tagType=2:Vn(e)?e.tagType=3:vo(e)&&(e.tagType=1)),U.inRCDATA||(e.children=es(i)),o===0&&R.isIgnoreNewlineTag(r)){const l=i[0];l&&l.type===2&&(l.content=l.content.replace(/^\r?\n/,""))}o===0&&R.isPreTag(r)&&on--,ln===e&&(Te=U.inVPre=!1,ln=null),U.inXML&&(q[0]?q[0].ns:R.ns)===0&&(U.inXML=!1);{const l=e.props;if(process.env.NODE_ENV!=="production"&&Ce("COMPILER_V_IF_V_FOR_PRECEDENCE",R)){let c=!1,p=!1;for(let m=0;m<l.length;m++){const d=l[m];if(d.type===7&&(d.name==="if"?c=!0:d.name==="for"&&(p=!0)),c&&p){dt("COMPILER_V_IF_V_FOR_PRECEDENCE",R,e.loc);break}}}if(!U.inSFCRoot&&Ce("COMPILER_NATIVE_TEMPLATE",R)&&e.tag==="template"&&!Vn(e)){process.env.NODE_ENV!=="production"&&dt("COMPILER_NATIVE_TEMPLATE",R,e.loc);const c=q[0]||Qe,p=c.children.indexOf(e);c.children.splice(p,1,...e.children)}const a=l.find(c=>c.type===6&&c.name==="inline-template");a&&je("COMPILER_INLINE_TEMPLATE",R,a.loc)&&e.children.length&&(a.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function mo(e,t){let n=e;for(;be.charCodeAt(n)!==t&&n<be.length-1;)n++;return n}function Qn(e,t){let n=e;for(;be.charCodeAt(n)!==t&&n>=0;)n--;return n}const go=new Set(["if","else","else-if","for","slot"]);function Vn({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&go.has(t[n].name))return!0}return!1}function vo({tag:e,props:t}){if(R.isCustomElement(e))return!1;if(e==="component"||yo(e.charCodeAt(0))||Hn(e)||R.isBuiltInComponent&&R.isBuiltInComponent(e)||R.isNativeTag&&!R.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(je("COMPILER_IS_ON_ELEMENT",R,r.loc))return!0}}else if(r.name==="bind"&&_e(r.arg,"is")&&je("COMPILER_IS_ON_ELEMENT",R,r.loc))return!0}return!1}function yo(e){return e>64&&e<91}const bo=/\r\n/g;function es(e){const t=R.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const o=e[r];if(o.type===2)if(on)o.content=o.content.replace(bo,`
|
|
12
|
+
`);else if(Eo(o.content)){const i=e[r-1]&&e[r-1].type,l=e[r+1]&&e[r+1].type;!i||!l||t&&(i===3&&(l===3||l===1)||i===1&&(l===3||l===1&&ko(o.content)))?(n=!0,e[r]=null):o.content=" "}else t&&(o.content=ts(o.content))}return n?e.filter(Boolean):e}function Eo(e){for(let t=0;t<e.length;t++)if(!pe(e.charCodeAt(t)))return!1;return!0}function ko(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function ts(e){let t="",n=!1;for(let r=0;r<e.length;r++)pe(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function an(e){(q[0]||Qe).children.push(e)}function G(e,t){return{start:U.getPos(e),end:t==null?t:U.getPos(t),source:t==null?t:Z(e,t)}}function xo(e){return G(e.start.offset,e.end.offset)}function Ie(e,t){e.end=U.getPos(t),e.source=Z(e.start.offset,t)}function wo(e){const t={type:6,name:e.rawName,nameLoc:G(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 gt(e,t=!1,n,r=0,o=0){return B(e,t,n,r)}function ae(e,t,n){R.onError(z(e,G(t,t),void 0,n))}function No(){U.reset(),V=null,L=null,le="",Ee=-1,Be=-1,q.length=0}function So(e,t){if(No(),be=e,R=we({},Yn),t){let o;for(o in t)t[o]!=null&&(R[o]=t[o])}if(process.env.NODE_ENV!=="production"&&!R.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");U.mode=R.parseMode==="html"?1:R.parseMode==="sfc"?2:0,U.inXML=R.ns===1||R.ns===2;const n=t&&t.delimiters;n&&(U.delimiterOpen=ct(n[0]),U.delimiterClose=ct(n[1]));const r=Qe=Yr([],e);return U.parse(be),r.loc=G(0,e.length),r.children=es(r.children),Qe=null,r}function Co(e,t){vt(e,void 0,t,!!ns(e))}function ns(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!ft(t[0])?t[0]:null}function vt(e,t,n,r=!1,o=!1){const{children:i}=e,l=[];for(let d=0;d<i.length;d++){const u=i[d];if(u.type===1&&u.tagType===0){const h=r?0:fe(u,n);if(h>0){if(h>=2){u.codegenNode.patchFlag=-1,l.push(u);continue}}else{const E=u.codegenNode;if(E.type===13){const v=E.patchFlag;if((v===void 0||v===512||v===1)&&rs(u,n)>=2){const _=os(u);_&&(E.props=n.hoist(_))}E.dynamicProps&&(E.dynamicProps=n.hoist(E.dynamicProps))}}}else if(u.type===12&&(r?0:fe(u,n))>=2){l.push(u);continue}if(u.type===1){const h=u.tagType===1;h&&n.scopes.vSlot++,vt(u,e,n,!1,o),h&&n.scopes.vSlot--}else if(u.type===11)vt(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let h=0;h<u.branches.length;h++)vt(u.branches[h],e,n,u.branches[h].children.length===1,o)}let a=!1;const c=[];if(l.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&ve(e.codegenNode.children))e.codegenNode.children=p(Oe(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ve(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=m(e.codegenNode,"default");d&&(c.push(n.cached.length),d.returns=p(Oe(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ve(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=ie(e,"slot",!0),u=d&&d.arg&&m(t.codegenNode,d.arg);u&&(c.push(n.cached.length),u.returns=p(Oe(u.returns)),a=!0)}}if(!a)for(const d of l)c.push(n.cached.length),d.codegenNode=n.cache(d.codegenNode);c.length&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ve(e.codegenNode.children)&&e.codegenNode.children.type===15&&e.codegenNode.children.properties.push(W("__",B(JSON.stringify(c),!1)));function p(d){const u=n.cache(d);return o&&n.hmr&&(u.needArraySpread=!0),u}function m(d,u){if(d.children&&!ve(d.children)&&d.children.type===15){const h=d.children.properties.find(E=>E.key===u||E.key.content===u);return h&&h.value}}l.length&&n.transformHoist&&n.transformHoist(i,n,e)}function fe(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(o.patchFlag===void 0){let l=3;const a=rs(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const p=fe(e.children[c],t);if(p===0)return n.set(e,0),0;p<l&&(l=p)}if(l>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 m=fe(p.exp,t);if(m===0)return n.set(e,0),0;m<l&&(l=m)}}if(o.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(De),t.removeHelper(Fe(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Pe(t.inSSR,o.isComponent))}return n.set(e,l),l}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 fe(e.content,t);case 4:return e.constType;case 8:let i=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(Y(a)||At(a))continue;const c=fe(a,t);if(c===0)return 0;c<i&&(i=c)}return i;case 20:return 2;default:return process.env.NODE_ENV,0}}const _o=new Set([Wt,Gt,Ge,Je]);function ss(e,t){if(e.type===14&&!Y(e.callee)&&_o.has(e.callee)){const n=e.arguments[0];if(n.type===4)return fe(n,t);if(n.type===14)return ss(n,t)}return 0}function rs(e,t){let n=3;const r=os(e);if(r&&r.type===15){const{properties:o}=r;for(let i=0;i<o.length;i++){const{key:l,value:a}=o[i],c=fe(l,t);if(c===0)return c;c<n&&(n=c);let p;if(a.type===4?p=fe(a,t):a.type===14?p=ss(a,t):p=0,p===0)return p;p<n&&(n=p)}}return n}function os(e){const t=e.codegenNode;if(t.type===13)return t.props}function To(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:i=!1,nodeTransforms:l=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:p=Bt,isCustomElement:m=Bt,expressionPlugins:d=[],scopeId:u=null,slotted:h=!0,ssr:E=!1,inSSR:v=!1,ssrCssVars:_="",bindingMetadata:C=Sr,inline:A=!1,isTS:T=!1,onError:$=nn,onWarn:P=Un,compatConfig:te}){const D=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:D&&Mt(Ne(D[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:i,nodeTransforms:l,directiveTransforms:a,transformHoist:c,isBuiltInComponent:p,isCustomElement:m,expressionPlugins:d,scopeId:u,slotted:h,ssr:E,inSSR:v,ssrCssVars:_,bindingMetadata:C,inline:A,isTS:T,onError:$,onWarn:P,compatConfig:te,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(x){const I=k.helpers.get(x)||0;return k.helpers.set(x,I+1),x},removeHelper(x){const I=k.helpers.get(x);if(I){const F=I-1;F?k.helpers.set(x,F):k.helpers.delete(x)}},helperString(x){return`_${Re[k.helper(x)]}`},replaceNode(x){if(process.env.NODE_ENV!=="production"){if(!k.currentNode)throw new Error("Node being replaced is already removed.");if(!k.parent)throw new Error("Cannot replace root node.")}k.parent.children[k.childIndex]=k.currentNode=x},removeNode(x){if(process.env.NODE_ENV!=="production"&&!k.parent)throw new Error("Cannot remove root node.");const I=k.parent.children,F=x?I.indexOf(x):k.currentNode?k.childIndex:-1;if(process.env.NODE_ENV!=="production"&&F<0)throw new Error("node being removed is not a child of current parent");!x||x===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>F&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(F,1)},onNodeRemoved:Bt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){Y(x)&&(x=B(x)),k.hoists.push(x);const I=B(`_hoisted_${k.hoists.length}`,!1,x.loc,2);return I.hoisted=x,I},cache(x,I=!1,F=!1){const w=Xr(k.cached.length,x,I,F);return k.cached.push(w),w}};return k.filters=new Set,k}function Do(e,t){const n=To(e,t);yt(e,n),t.hoistStatic&&Co(e,n),t.ssr||Oo(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 Oo(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=ns(e);if(o&&o.codegenNode){const i=o.codegenNode;i.type===13&&en(i,t),e.codegenNode=i}else e.codegenNode=r[0]}else if(r.length>1){let o=64;process.env.NODE_ENV!=="production"&&r.filter(i=>i.type!==3).length===1&&(o|=2048),e.codegenNode=Ye(t,n(qe),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}function Bo(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];Y(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,yt(o,t))}}function yt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const l=n[i](e,t);if(l&&(ve(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(We);break;case 5:t.ssr||t.helper(it);break;case 9:for(let i=0;i<e.branches.length;i++)yt(e.branches[i],t);break;case 10:case 11:case 1:case 0:Bo(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function is(e,t){const n=Y(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some(ao))return;const l=[];for(let a=0;a<i.length;a++){const c=i[a];if(c.type===7&&n(c.name)){i.splice(a,1),a--;const p=t(r,c,o);p&&l.push(p)}}return l}}}const bt="/*@__PURE__*/",ls=e=>`${Re[e]}: _${Re[e]}`;function Io(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:m=!1,isTS:d=!1,inSSR:u=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:p,ssr:m,isTS:d,inSSR:u,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${Re[v]}`},push(v,_=-2,C){h.code+=v},indent(){E(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:E(--h.indentLevel)},newline(){E(h.indentLevel)}};function E(v){h.push(`
|
|
13
|
+
`+" ".repeat(v),0)}return h}function Ao(e,t={}){const n=Io(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:l,deindent:a,newline:c,scopeId:p,ssr:m}=n,d=Array.from(e.helpers),u=d.length>0,h=!i&&r!=="module";$o(e,n);const v=m?"ssrRender":"render",C=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${v}(${C}) {`),l(),h&&(o("with (_ctx) {"),l(),u&&(o(`const { ${d.map(ls).join(", ")} } = _Vue
|
|
14
|
+
`,-1),c())),e.components.length&&(cn(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(cn(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),cn(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let A=0;A<e.temps;A++)o(`${A>0?", ":""}_temp${A}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
|
|
15
|
+
`,0),c()),m||o("return "),e.codegenNode?ee(e.codegenNode,n):o("null"),h&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function $o(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,p=a,m=Array.from(e.helpers);if(m.length>0&&(o(`const _Vue = ${p}
|
|
16
|
+
`,-1),e.hoists.length)){const d=[Lt,Pt,We,Ft,Mn].filter(u=>m.includes(u)).map(ls).join(", ");o(`const { ${d} } = _Vue
|
|
17
|
+
`,-1)}Mo(e.hoists,t),i(),o("return ")}function cn(e,t,{helper:n,push:r,newline:o,isTS:i}){const l=n(t==="filter"?Ht:t==="component"?jt:Ut);for(let a=0;a<e.length;a++){let c=e[a];const p=c.endsWith("__self");p&&(c=c.slice(0,-6)),r(`const ${Ze(c,t)} = ${l}(${JSON.stringify(c)}${p?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function Mo(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),ee(i,t),r())}t.pure=!1}function Ro(e){return Y(e)||e.type===4||e.type===2||e.type===5||e.type===8}function dn(e,t){const n=e.length>3||process.env.NODE_ENV!=="production"&&e.some(r=>ve(r)||!Ro(r));t.push("["),n&&t.indent(),Ve(e,t,n),n&&t.deindent(),t.push("]")}function Ve(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let l=0;l<e.length;l++){const a=e[l];Y(a)?o(a,-3):ve(a)?dn(a,t):ee(a,t),l<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function ee(e,t){if(Y(e)){t.push(e,-3);return}if(At(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:process.env.NODE_ENV!=="production"&&Wn(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),ee(e.codegenNode,t);break;case 2:Lo(e,t);break;case 4:as(e,t);break;case 5:Po(e,t);break;case 12:ee(e.codegenNode,t);break;case 8:cs(e,t);break;case 3:jo(e,t);break;case 13:zo(e,t);break;case 14:Ho(e,t);break;case 15:qo(e,t);break;case 17:Ko(e,t);break;case 18:Wo(e,t);break;case 19:Go(e,t);break;case 20:Jo(e,t);break;case 21:Ve(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 Wn(!1,`unhandled codegen node type: ${e.type}`),e}}function Lo(e,t){t.push(JSON.stringify(e.content),-3,e)}function as(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Po(e,t){const{push:n,helper:r,pure:o}=t;o&&n(bt),n(`${r(it)}(`),ee(e.content,t),n(")")}function cs(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Y(r)?t.push(r,-3):ee(r,t)}}function Fo(e,t){const{push:n}=t;if(e.type===8)n("["),cs(e,t),n("]");else if(e.isStatic){const r=sn(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function jo(e,t){const{push:n,helper:r,pure:o}=t;o&&n(bt),n(`${r(We)}(${JSON.stringify(e.content)})`,-3,e)}function zo(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:l,children:a,patchFlag:c,dynamicProps:p,directives:m,isBlock:d,disableTracking:u,isComponent:h}=e;let E;if(c)if(process.env.NODE_ENV!=="production")if(c<0)E=c+` /* ${rt[c]} */`;else{const _=Object.keys(rt).map(Number).filter(C=>C>0&&c&C).map(C=>rt[C]).join(", ");E=c+` /* ${_} */`}else E=String(c);m&&n(r(qt)+"("),d&&n(`(${r(De)}(${u?"true":""}), `),o&&n(bt);const v=d?Fe(t.inSSR,h):Pe(t.inSSR,h);n(r(v)+"(",-2,e),Ve(Uo([i,l,a,E,p]),t),n(")"),d&&n(")"),m&&(n(", "),ee(m,t),n(")"))}function Uo(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ho(e,t){const{push:n,helper:r,pure:o}=t,i=Y(e.callee)?e.callee:r(e.callee);o&&n(bt),n(i+"(",-2,e),Ve(e.arguments,t),n(")")}function qo(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:l}=e;if(!l.length){n("{}",-2,e);return}const a=l.length>1||process.env.NODE_ENV!=="production"&&l.some(c=>c.value.type!==4);n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:p,value:m}=l[c];Fo(p,t),n(": "),ee(m,t),c<l.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Ko(e,t){dn(e.elements,t)}function Wo(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:l,body:a,newline:c,isSlot:p}=e;p&&n(`_${Re[Zt]}(`),n("(",-2,e),ve(i)?Ve(i,t):i&&ee(i,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),ve(l)?dn(l,t):ee(l,t)):a&&ee(a,t),(c||a)&&(o(),n("}")),p&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Go(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:l,indent:a,deindent:c,newline:p}=t;if(n.type===4){const d=!sn(n.content);d&&l("("),as(n,t),d&&l(")")}else l("("),ee(n,t),l(")");i&&a(),t.indentLevel++,i||l(" "),l("? "),ee(r,t),t.indentLevel--,i&&p(),i||l(" "),l(": ");const m=o.type===19;m||t.indentLevel++,ee(o,t),m||t.indentLevel--,i&&c(!0)}function Jo(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:l}=t,{needPauseTracking:a,needArraySpread:c}=e;c&&n("[...("),n(`_cache[${e.index}] || (`),a&&(o(),n(`${r(at)}(-1`),e.inVOnce&&n(", true"),n("),"),l(),n("(")),n(`_cache[${e.index}] = `),ee(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),l(),n(`${r(at)}(1),`),l(),n(`_cache[${e.index}]`),i()),n(")"),c&&n(")]")}const Yo=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"),Xo=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Ae(e,t,n=!1,r=!1){const o=e.content;if(o.trim())try{new Function(r?` ${o} `:`return ${n?`(${o}) => {}`:`(${o})`}`)}catch(i){let l=i.message;const a=o.replace(Xo,"").match(Yo);a&&(l=`avoid using JavaScript keyword as property name: "${a[0]}"`),t.onError(z(45,e.loc,void 0,l))}}const Zo=(e,t)=>{if(e.type===5)e.content=pn(e.content,t);else if(e.type===1){const n=ie(e,"memo");for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&o.name!=="for"){const i=o.exp,l=o.arg;i&&i.type===4&&!(o.name==="on"&&l)&&!(n&&l&&l.type===4&&l.content==="key")&&(o.exp=pn(i,t,o.name==="slot")),l&&l.type===4&&!l.isStatic&&(o.arg=pn(l,t))}}}};function pn(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return process.env.NODE_ENV!=="production"&&Ae(e,t,n,r),e}const Qo=is(/^(if|else|else-if)$/,(e,t,n)=>Vo(e,t,n,(r,o,i)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const p=l[a];p&&p.type===9&&(c+=p.branches.length)}return()=>{if(i)r.codegenNode=ps(o,c,n);else{const p=ti(r.codegenNode);p.alternate=ps(o,c+r.branches.length-1,n)}}}));function Vo(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(z(28,t.loc)),t.exp=B("true",!1,o)}if(process.env.NODE_ENV!=="production"&&t.exp&&Ae(t.exp,n),t.name==="if"){const o=ds(e,t),i={type:9,loc:xo(e.loc),branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children,i=[];let l=o.indexOf(e);for(;l-->=-1;){const a=o[l];if(a&&a.type===3){n.removeNode(a),process.env.NODE_ENV!=="production"&&i.unshift(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(z(30,e.loc)),n.removeNode();const c=ds(e,t);if(process.env.NODE_ENV!=="production"&&i.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(c.children=[...i,...c.children]),process.env.NODE_ENV!=="production"){const m=c.userKey;m&&a.branches.forEach(({userKey:d})=>{ei(d,m)&&n.onError(z(29,c.userKey.loc))})}a.branches.push(c);const p=r&&r(a,c,!1);yt(c,n),p&&p(),n.currentNode=null}else n.onError(z(30,e.loc));break}}}function ds(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!ie(e,"for")?e.children:[e],userKey:Xe(e,"key"),isTemplateIf:n}}function ps(e,t,n){return e.condition?Vt(e.condition,fs(e,t,n),J(n.helper(We),[process.env.NODE_ENV!=="production"?'"v-if"':'""',"true"])):fs(e,t,n)}function fs(e,t,n){const{helper:r}=n,o=W("key",B(`${t}`,!1,de,2)),{children:i}=e,l=i[0];if(i.length!==1||l.type!==1)if(i.length===1&&l.type===11){const c=l.codegenNode;return ut(c,o,n),c}else{let c=64;return process.env.NODE_ENV!=="production"&&!e.isTemplateIf&&i.filter(p=>p.type!==3).length===1&&(c|=2048),Ye(n,r(qe),ue([o]),i,c,void 0,void 0,!0,!1,!1,e.loc)}else{const c=l.codegenNode,p=po(c);return p.type===13&&en(p,n),ut(p,o,n),c}}function ei(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,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function ti(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 ni=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:l}=e;if(l&&l.type===4&&!l.content.trim()&&(l=void 0),!l){if(i.type!==4||!i.isStatic)return n.onError(z(52,i.loc)),{props:[W(i,B("",!0,o))]};us(e),l=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.some(a=>a.content==="camel")&&(i.type===4?i.isStatic?i.content=Ne(i.content):i.content=`${n.helperString(Yt)}(${i.content})`:(i.children.unshift(`${n.helperString(Yt)}(`),i.children.push(")"))),n.inSSR||(r.some(a=>a.content==="prop")&&hs(i,"."),r.some(a=>a.content==="attr")&&hs(i,"^")),{props:[W(i,l)]}},us=(e,t)=>{const n=e.arg,r=Ne(n.content);e.exp=B(r,!1,n.loc)},hs=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},si=is("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return ri(e,t,n,i=>{const l=J(r(Kt),[i.source]),a=pt(e),c=ie(e,"memo"),p=Xe(e,"key",!1,!0);p&&p.type===7&&!p.exp&&us(p);let d=p&&(p.type===6?p.value?B(p.value.content,!0):void 0:p.exp);const u=p&&d?W("key",d):null,h=i.source.type===4&&i.source.constType>0,E=h?64:p?128:256;return i.codegenNode=Ye(n,r(qe),void 0,l,E,void 0,void 0,!0,!h,!1,e.loc),()=>{let v;const{children:_}=i;process.env.NODE_ENV!=="production"&&a&&e.children.some(T=>{if(T.type===1){const $=Xe(T,"key");if($)return n.onError(z(33,$.loc)),!0}});const C=_.length!==1||_[0].type!==1,A=ft(e)?e:a&&e.children.length===1&&ft(e.children[0])?e.children[0]:null;if(A?(v=A.codegenNode,a&&u&&ut(v,u,n)):C?v=Ye(n,r(qe),u?ue([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(v=_[0].codegenNode,a&&u&&ut(v,u,n),v.isBlock!==!h&&(v.isBlock?(o(De),o(Fe(n.inSSR,v.isComponent))):o(Pe(n.inSSR,v.isComponent))),v.isBlock=!h,v.isBlock?(r(De),r(Fe(n.inSSR,v.isComponent))):r(Pe(n.inSSR,v.isComponent))),c){const T=Le(fn(i.parseResult,[B("_cached")]));T.body=Zr([he(["const _memo = (",c.exp,")"]),he(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${n.helperString(Pn)}(_cached, _memo)) return _cached`]),he(["const _item = ",v]),B("_item.memo = _memo"),B("return _item")]),l.arguments.push(T,B("_cache"),B(String(n.cached.length))),n.cached.push(null)}else l.arguments.push(Le(fn(i.parseResult),v,!0))}})});function ri(e,t,n,r){if(!t.exp){n.onError(z(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(z(32,t.loc));return}ms(o,n);const{addIdentifiers:i,removeIdentifiers:l,scopes:a}=n,{source:c,value:p,key:m,index:d}=o,u={type:11,loc:t.loc,source:c,valueAlias:p,keyAlias:m,objectIndexAlias:d,parseResult:o,children:pt(e)?e.children:[e]};n.replaceNode(u),a.vFor++;const h=r&&r(u);return()=>{a.vFor--,h&&h()}}function ms(e,t){e.finalized||(process.env.NODE_ENV!=="production"&&(Ae(e.source,t),e.key&&Ae(e.key,t,!0),e.index&&Ae(e.index,t,!0),e.value&&Ae(e.value,t,!0)),e.finalized=!0)}function fn({value:e,key:t,index:n},r=[]){return oi([e,t,n,...r])}function oi(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||B("_".repeat(r+1),!1))}const gs=B("undefined",!1),ii=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=ie(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},li=(e,t,n,r)=>Le(e,n,!1,!0,n.length?n[0].loc:r);function ai(e,t,n=li){t.helper(Zt);const{children:r,loc:o}=e,i=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ie(e,"slot",!0);if(c){const{arg:_,exp:C}=c;_&&!oe(_)&&(a=!0),i.push(W(_||B("default",!0),n(C,void 0,r,o)))}let p=!1,m=!1;const d=[],u=new Set;let h=0;for(let _=0;_<r.length;_++){const C=r[_];let A;if(!pt(C)||!(A=ie(C,"slot",!0))){C.type!==3&&d.push(C);continue}if(c){t.onError(z(37,A.loc));break}p=!0;const{children:T,loc:$}=C,{arg:P=B("default",!0),exp:te,loc:D}=A;let k;oe(P)?k=P?P.content:"default":a=!0;const x=ie(C,"for"),I=n(te,x,T,$);let F,w;if(F=ie(C,"if"))a=!0,l.push(Vt(F.exp,Et(P,I,h++),gs));else if(w=ie(C,/^else(-if)?$/,!0)){let b=_,S;for(;b--&&(S=r[b],!(S.type!==3&&un(S))););if(S&&pt(S)&&ie(S,/^(else-)?if$/)){let O=l[l.length-1];for(;O.alternate.type===19;)O=O.alternate;O.alternate=w.exp?Vt(w.exp,Et(P,I,h++),gs):Et(P,I,h++)}else t.onError(z(30,w.loc))}else if(x){a=!0;const b=x.forParseResult;b?(ms(b,t),l.push(J(t.helper(Kt),[b.source,Le(fn(b),Et(P,I),!0)]))):t.onError(z(32,x.loc))}else{if(k){if(u.has(k)){t.onError(z(38,D));continue}u.add(k),k==="default"&&(m=!0)}i.push(W(P,I))}}if(!c){const _=(C,A)=>{const T=n(C,void 0,A,o);return t.compatConfig&&(T.isNonScopedSlot=!0),W("default",T)};p?d.length&&d.some(C=>un(C))&&(m?t.onError(z(39,d[0].loc)):i.push(_(void 0,d))):i.push(_(void 0,r))}const E=a?2:kt(e.children)?3:1;let v=ue(i.concat(W("_",B(E+(process.env.NODE_ENV!=="production"?` /* ${Or[E]} */`:""),!1))),o);return l.length&&(v=J(t.helper(Ln),[v,Oe(l)])),{slots:v,hasDynamicSlots:a}}function Et(e,t,n){const r=[W("name",e),W("fn",t)];return n!=null&&r.push(W("key",B(String(n),!0))),ue(r)}function kt(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||kt(n.children))return!0;break;case 9:if(kt(n.branches))return!0;break;case 10:case 11:if(kt(n.children))return!0;break}}return!1}function un(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():un(e.content)}const vs=new WeakMap,ci=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,i=e.tagType===1;let l=i?di(e,t):`"${r}"`;const a=Cr(l)&&l.callee===zt;let c,p,m=0,d,u,h,E=a||l===Ke||l===Rt||!i&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const v=ys(e,t,void 0,i,a);c=v.props,m=v.patchFlag,u=v.dynamicPropNames;const _=v.directives;h=_&&_.length?Oe(_.map(C=>fi(C,t))):void 0,v.shouldUseBlock&&(E=!0)}if(e.children.length>0)if(l===ot&&(E=!0,m|=1024,process.env.NODE_ENV!=="production"&&e.children.length>1&&t.onError(z(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),i&&l!==Ke&&l!==ot){const{slots:_,hasDynamicSlots:C}=ai(e,t);p=_,C&&(m|=1024)}else if(e.children.length===1&&l!==Ke){const _=e.children[0],C=_.type,A=C===5||C===8;A&&fe(_,t)===0&&(m|=1),A||C===2?p=_:p=e.children}else p=e.children;u&&u.length&&(d=ui(u)),e.codegenNode=Ye(t,l,c,p,m===0?void 0:m,d,h,!!E,!1,i,e.loc)};function di(e,t,n=!1){let{tag:r}=e;const o=hn(r),i=Xe(e,"is",!1,!0);if(i)if(o||Ce("COMPILER_IS_ON_ELEMENT",t)){let a;if(i.type===6?a=i.value&&B(i.value.content,!0):(a=i.exp,a||(a=B("is",!1,i.arg.loc))),a)return J(t.helper(zt),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const l=Hn(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(jt),t.components.add(r),Ze(r,"component"))}function ys(e,t,n=e.props,r,o,i=!1){const{tag:l,loc:a,children:c}=e;let p=[];const m=[],d=[],u=c.length>0;let h=!1,E=0,v=!1,_=!1,C=!1,A=!1,T=!1,$=!1;const P=[],te=I=>{p.length&&(m.push(ue(bs(p),a)),p=[]),I&&m.push(I)},D=()=>{t.scopes.vFor>0&&p.push(W(B("ref_for",!0),B("true")))},k=({key:I,value:F})=>{if(oe(I)){const w=I.content,b=It(w);if(b&&(!r||o)&&w.toLowerCase()!=="onclick"&&w!=="onUpdate:modelValue"&&!Bn(w)&&(A=!0),b&&Bn(w)&&($=!0),b&&F.type===14&&(F=F.arguments[0]),F.type===20||(F.type===4||F.type===8)&&fe(F,t)>0)return;w==="ref"?v=!0:w==="class"?_=!0:w==="style"?C=!0:w!=="key"&&!P.includes(w)&&P.push(w),r&&(w==="class"||w==="style")&&!P.includes(w)&&P.push(w)}else T=!0};for(let I=0;I<n.length;I++){const F=n[I];if(F.type===6){const{loc:w,name:b,nameLoc:S,value:O}=F;let H=!0;if(b==="ref"&&(v=!0,D()),b==="is"&&(hn(l)||O&&O.content.startsWith("vue:")||Ce("COMPILER_IS_ON_ELEMENT",t)))continue;p.push(W(B(b,!0,S),B(O?O.content:"",H,O?O.loc:w)))}else{const{name:w,arg:b,exp:S,loc:O,modifiers:H}=F,Q=w==="bind",ye=w==="on";if(w==="slot"){r||t.onError(z(40,O));continue}if(w==="once"||w==="memo"||w==="is"||Q&&_e(b,"is")&&(hn(l)||Ce("COMPILER_IS_ON_ELEMENT",t))||ye&&i)continue;if((Q&&_e(b,"key")||ye&&u&&_e(b,"vue:before-update"))&&(h=!0),Q&&_e(b,"ref")&&D(),!b&&(Q||ye)){if(T=!0,S)if(Q){if(te(),process.env.NODE_ENV!=="production"&&m.some(ce=>ce.type===15?ce.properties.some(({key:xe})=>xe.type!==4||!xe.isStatic?!0:xe.content!=="class"&&xe.content!=="style"&&!It(xe.content)):!0)&&je("COMPILER_V_BIND_OBJECT_ORDER",t,O),Ce("COMPILER_V_BIND_OBJECT_ORDER",t)){m.unshift(S);continue}D(),te(),m.push(S)}else te({type:14,loc:O,callee:t.helper(Jt),arguments:r?[S]:[S,"true"]});else t.onError(z(Q?34:35,O));continue}Q&&H.some(ne=>ne.content==="prop")&&(E|=32);const ke=t.directiveTransforms[w];if(ke){const{props:ne,needRuntime:ce}=ke(F,e,t);!i&&ne.forEach(k),ye&&b&&!oe(b)?te(ue(ne,a)):p.push(...ne),ce&&(d.push(F),At(ce)&&vs.set(F,ce))}else _r(w)||(d.push(F),u&&(h=!0))}}let x;if(m.length?(te(),m.length>1?x=J(t.helper(lt),m,a):x=m[0]):p.length&&(x=ue(bs(p),a)),T?E|=16:(_&&!r&&(E|=2),C&&!r&&(E|=4),P.length&&(E|=8),A&&(E|=32)),!h&&(E===0||E===32)&&(v||$||d.length>0)&&(E|=512),!t.inSSR&&x)switch(x.type){case 15:let I=-1,F=-1,w=!1;for(let O=0;O<x.properties.length;O++){const H=x.properties[O].key;oe(H)?H.content==="class"?I=O:H.content==="style"&&(F=O):H.isHandlerKey||(w=!0)}const b=x.properties[I],S=x.properties[F];w?x=J(t.helper(Ge),[x]):(b&&!oe(b.value)&&(b.value=J(t.helper(Wt),[b.value])),S&&(C||S.value.type===4&&S.value.content.trim()[0]==="["||S.value.type===17)&&(S.value=J(t.helper(Gt),[S.value])));break;case 14:break;default:x=J(t.helper(Ge),[J(t.helper(Je),[x])]);break}return{props:x,directives:d,patchFlag:E,dynamicPropNames:P,shouldUseBlock:h}}function bs(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const i=o.key.content,l=t.get(i);l?(i==="style"||i==="class"||It(i))&&pi(l,o):(t.set(i,o),n.push(o))}return n}function pi(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Oe([e.value,t.value],e.loc)}function fi(e,t){const n=[],r=vs.get(e);r?n.push(t.helperString(r)):(t.helper(Ut),t.directives.add(e.name),n.push(Ze(e.name,"directive")));const{loc:o}=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 i=B("true",!1,o);n.push(ue(e.modifiers.map(l=>W(l,i)),o))}return Oe(n,e.loc)}function ui(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function hn(e){return e==="component"||e==="Component"}const hi=(e,t)=>{if(ft(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=mi(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(l[2]=i,a=3),n.length&&(l[3]=Le([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=J(t.helper(Rn),l,r)}};function mi(e,t){let n='"default"',r;const o=[];for(let i=0;i<e.props.length;i++){const l=e.props[i];if(l.type===6)l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Ne(l.name),o.push(l)));else if(l.name==="bind"&&_e(l.arg,"name")){if(l.exp)n=l.exp;else if(l.arg&&l.arg.type===4){const a=Ne(l.arg.content);n=l.exp=B(a,!1,l.arg.loc)}}else l.name==="bind"&&l.arg&&oe(l.arg)&&(l.arg.content=Ne(l.arg.content)),o.push(l)}if(o.length>0){const{props:i,directives:l}=ys(e,t,o,!1,!1);r=i,l.length&&t.onError(z(36,l[0].loc))}return{slotName:n,slotProps:r}}const Es=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:l}=e;!e.exp&&!i.length&&n.onError(z(35,o));let a;if(l.type===4)if(l.isStatic){let d=l.content;process.env.NODE_ENV!=="production"&&d.startsWith("vnode")&&n.onError(z(51,l.loc)),d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const u=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Dr(Ne(d)):`on:${d}`;a=B(u,!0,l.loc)}else a=he([`${n.helperString(Xt)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(Xt)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let p=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const d=Kn(c),u=!(d||io(c)),h=c.content.includes(";");process.env.NODE_ENV!=="production"&&Ae(c,n,!1,h),(u||p&&d)&&(c=he([`${u?"$event":"(...args)"} => ${h?"{":"("}`,c,h?"}":")"]))}let m={props:[W(a,c||B("() => {}",!1,o))]};return r&&(m=r(m)),p&&(m.props[0].value=n.cache(m.props[0].value)),m.props.forEach(d=>d.key.isHandlerKey=!0),m},gi=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let i=0;i<n.length;i++){const l=n[i];if(rn(l)){o=!0;for(let a=i+1;a<n.length;a++){const c=n[a];if(rn(c))r||(r=n[i]=he([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const l=n[i];if(rn(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&fe(l,t)===0&&a.push(1+(process.env.NODE_ENV!=="production"?` /* ${rt[1]} */`:"")),n[i]={type:12,content:l,loc:l.loc,codegenNode:J(t.helper(Ft),a)}}}}},ks=new WeakSet,vi=(e,t)=>{if(e.type===1&&ie(e,"once",!0))return ks.has(e)||t.inVOnce||t.inSSR?void 0:(ks.add(e),t.inVOnce=!0,t.helper(at),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},xs=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(z(41,e.loc)),xt();const i=r.loc.source.trim(),l=r.type===4?r.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(z(44,r.loc)),xt();if(!l.trim()||!Kn(r))return n.onError(z(42,r.loc)),xt();const c=o||B("modelValue",!0),p=o?oe(o)?`onUpdate:${Ne(o.content)}`:he(['"onUpdate:" + ',o]):"onUpdate:modelValue";let m;const d=n.isTS?"($event: any)":"$event";m=he([`${d} => ((`,r,") = $event)"]);const u=[W(c,e.exp),W(p,m)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(sn(v)?v:JSON.stringify(v))+": true").join(", "),E=o?oe(o)?`${o.content}Modifiers`:he([o,' + "Modifiers"']):"modelModifiers";u.push(W(E,B(`{ ${h} }`,!1,e.loc,2)))}return xt(u)};function xt(e=[]){return{props:e}}const yi=/[\w).+\-_$\]]/,bi=(e,t)=>{Ce("COMPILER_FILTERS",t)&&(e.type===5?wt(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&wt(n.exp,t)}))};function wt(e,t){if(e.type===4)ws(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?ws(r,t):r.type===8?wt(e,t):r.type===5&&wt(r.content,t))}}function ws(e,t){const n=e.content;let r=!1,o=!1,i=!1,l=!1,a=0,c=0,p=0,m=0,d,u,h,E,v=[];for(h=0;h<n.length;h++)if(u=d,d=n.charCodeAt(h),r)d===39&&u!==92&&(r=!1);else if(o)d===34&&u!==92&&(o=!1);else if(i)d===96&&u!==92&&(i=!1);else if(l)d===47&&u!==92&&(l=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!a&&!c&&!p)E===void 0?(m=h+1,E=n.slice(0,h).trim()):_();else{switch(d){case 34:o=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:p++;break;case 41:p--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(d===47){let C=h-1,A;for(;C>=0&&(A=n.charAt(C),A===" ");C--);(!A||!yi.test(A))&&(l=!0)}}E===void 0?E=n.slice(0,h).trim():m!==0&&_();function _(){v.push(n.slice(m,h).trim()),m=h+1}if(v.length){for(process.env.NODE_ENV!=="production"&&dt("COMPILER_FILTERS",t,e.loc),h=0;h<v.length;h++)E=Ei(E,v[h],t);e.content=E,e.ast=void 0}}function Ei(e,t,n){n.helper(Ht);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Ze(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Ze(o,"filter")}(${e}${i!==")"?","+i:i}`}}const Ns=new WeakSet,ki=(e,t)=>{if(e.type===1){const n=ie(e,"memo");return!n||Ns.has(e)?void 0:(Ns.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&en(r,t),e.codegenNode=J(t.helper(Qt),[n.exp,Le(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function xi(e){return[[vi,Qo,ki,si,bi,...process.env.NODE_ENV!=="production"?[Zo]:[],hi,ci,ii,gi],{on:Es,bind:ni,model:xs}]}function wi(e,t={}){const n=t.onError||nn,r=t.mode==="module";t.prefixIdentifiers===!0?n(z(47)):r&&n(z(48));const o=!1;t.cacheHandlers&&n(z(49)),t.scopeId&&!r&&n(z(50));const i=we({},t,{prefixIdentifiers:o}),l=Y(e)?So(e,i):e,[a,c]=xi();return Do(l,we({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:we({},c,t.directiveTransforms||{})})),Ao(l,i)}const Ni=()=>({props:[]});/**
|
|
18
18
|
* @vue/compiler-dom v3.5.17
|
|
19
19
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
20
|
* @license MIT
|
|
21
|
-
**/const Ns=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),ws=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),Ss=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),fn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Ts=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Ds=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),un=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Os=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");zr({[Ns]:"vModelRadio",[ws]:"vModelCheckbox",[Ss]:"vModelText",[Cs]:"vModelSelect",[fn]:"vModelDynamic",[_s]:"withModifiers",[Ts]:"withKeys",[Ds]:"vShow",[un]:"Transition",[Os]:"TransitionGroup"});let je;function yi(e,t=!1){return je||(je=document.createElement("div")),t?(je.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,je.children[0].getAttribute("foo")):(je.innerHTML=e,je.textContent)}const bi={parseMode:"html",isVoidTag:Mr,isNativeTag:e=>Ir(e)||Ar(e)||$r(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:yi,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return un;if(e==="TransitionGroup"||e==="transition-group")return Os},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},Ei=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:I("style",!0,t.loc),exp:ki(t.value.content,t.loc),modifiers:[],loc:t.loc})})},ki=(e,t)=>{const n=_r(e);return I(JSON.stringify(n),!1,t,3)};function he(e,t){return U(e,t,process.env.NODE_ENV!=="production"?xi:void 0)}const xi={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."},Ni=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(he(53,o)),t.children.length&&(n.onError(he(54,o)),t.children.length=0),{props:[J(I("innerHTML",!0,o),r||I("",!0))]}},wi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(he(55,o)),t.children.length&&(n.onError(he(56,o)),t.children.length=0),{props:[J(I("textContent",!0),r?pe(r,n)>0?r:X(n.helperString(st),[r],o):I("",!0))]}},Si=(e,t,n)=>{const r=Es(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(he(58,e.arg.loc));function o(){const a=oe(t,"bind");a&&we(a.arg,"value")&&n.onError(he(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=Ss,c=!1;if(i==="input"||l){const p=Ye(t,"type");if(p){if(p.type===7)a=fn;else if(p.value)switch(p.value.content){case"radio":a=Ns;break;case"checkbox":a=ws;break;case"file":c=!0,n.onError(he(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else eo(t)?a=fn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=Cs:process.env.NODE_ENV!=="production"&&o();c||(r.needRuntime=n.helper(a))}else n.onError(he(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Ci=me("passive,once,capture"),_i=me("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Ti=me("left,right"),Bs=me("onkeyup,onkeydown,onkeypress"),Di=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&Fe("COMPILER_V_ON_NATIVE",n,r)||Ci(c)?l.push(c):Ti(c)?re(e)?Bs(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):_i(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},Is=(e,t)=>re(e)&&e.content.toLowerCase()==="onclick"?I(t,!0):e.type!==4?ue(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Oi=(e,t,n)=>ys(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=Di(i,o,n,e.loc);if(c.includes("right")&&(i=Is(i,"onContextmenu")),c.includes("middle")&&(i=Is(i,"onMouseup")),c.length&&(l=X(n.helper(_s),[l,JSON.stringify(c)])),a.length&&(!re(i)||Bs(i.content.toLowerCase()))&&(l=X(n.helper(Ts),[l,JSON.stringify(a)])),p.length){const m=p.map(It).join("");i=re(i)?I(`${i.content}${m}`,!0):ue(["(",i,`) + "${m}"`])}return{props:[J(i,l)]}}),Bi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(he(61,o)),{props:[],needRuntime:n.helper(Ds)}},Ii=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===un)return()=>{if(!e.children.length)return;As(e)&&t.onError(he(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const o of r.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function As(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(As)}const Ai=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(he(63,e.loc)),t.removeNode())};function $i(e,t){return e==="template"?!0:e in $s?$s[e].has(t):t in Ms?Ms[t].has(e):!(e in Rs&&Rs[e].has(t)||t in Ls&&Ls[t].has(e))}const ze=new Set(["h1","h2","h3","h4","h5","h6"]),Ie=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:Ie,iframe:Ie,option:Ie,textarea:Ie,style:Ie,title:Ie},Ms={html:Ie,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"])},Rs={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"])},Ls={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:ze,h2:ze,h3:ze,h4:ze,h5:ze,h6:ze},Mi=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!$i(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)}},Ri=[Ei,...process.env.NODE_ENV!=="production"?[Ii,Mi]:[]],Li={cloak:vi,html:Ni,text:wi,model:Si,on:Oi,show:Bi};function Pi(e,t={}){return gi(e,Ee({},bi,t,{nodeTransforms:[Ai,...Ri,...t.nodeTransforms||[]],directiveTransforms:Ee({},Li,t.directiveTransforms||{}),transformHoist:null}))}function Fi(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Pi(n,{mode:"function"}),o=new Function("Vue",`${r}; return render`)(Ys);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const hn={};function Ps(e){return hn[e]||(hn[e]=Fi(e,{props:{row:Object,value:null,data:Object,column:Object}})),hn[e]}const ji={class:"py-10 flex flex-col justify-center items-center text-center"},zi={class:"max-w-sm mx-auto"},Ui={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Hi={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},qi=s.defineComponent({__name:"nodata",props:{title:{default:"No data"},description:{default:"No data here yet. We will notify you when there's an update."}},setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("div",ji,[n[0]||(n[0]=s.createStaticVNode('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),s.createElementVNode("div",zi,[s.createElementVNode("p",Ui,s.toDisplayString(t.title),1),s.createElementVNode("p",Hi,s.toDisplayString(t.description),1)])]))}}),Ki=["aria-checked","data-state"],Wi={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},Gi={class:"truncate"},Ji=["onKeydown"],Yi={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},Xi={class:"py-2 px-4"},Zi={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},Qi={class:"truncate"},Vi={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},el={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},tl=["onClick"],nl={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},sl={key:1,class:"shrink-0 size-3.5 ms-auto",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},rl={key:1,class:"p-4"},ol={class:"text-base font-semibold text-gray-800 mb-3"},il={class:"mb-4"},ll={class:"block text-sm font-medium text-gray-700 mb-1"},al=["value"],cl={class:"flex justify-end gap-2 border-t pt-3"},dl=s.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function}},emits:["edit","update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(!1),i=s.ref(null),l=s.ref(null),a=s.ref(n.value),c=s.ref([]),p=s.ref("uk"),m=_=>{_.detail.key==="locale"&&(p.value=_.detail.newValue)};s.watch(()=>n.value,_=>{a.value=_});const d=s.computed(()=>{const _=n.column?.schema?.[n.column?.name];if(_?.type)switch(_.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const x=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(x)?x:"text"}),f=s.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(B=>({value:B.id??B.value,color:B.color,label:B.text??B.label}))),h=s.ref(null);function E(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&s.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),d.value==="select"&&j()}))}function v(){r("edit",n.row,n.column.name,a.value),r("update",n.row,n.column.name,a.value),o.value=!1}function C(){a.value=n.value,o.value=!1}function S(_){if(!o.value)return;const B=_.target;h.value&&!h.value.contains(B)&&(o.value=!1)}s.onMounted(()=>{document.addEventListener("click",S),window.addEventListener("storage",m),p.value=localStorage.locale,document.addEventListener("close-all-popovers",()=>{o.value=!1})}),s.onBeforeUnmount(()=>{document.removeEventListener("click",S),window.removeEventListener("storage",m),document.removeEventListener("close-all-popovers",()=>{o.value=!1})});function A(){n.editable&&(a.value=!a.value,r("update",n.row,n.column.name,a.value))}function D(_){return n.color?n.color.startsWith("#")?_.replace("{c}",`[${n.color}]`):_.replace("{c}",`${n.color}-500`):_.replace("{c}","cyan-500")}const $=s.computed(()=>({border:D("border-{c}"),ring:D("focus:ring-{c}"),text:D("text-{c}"),hover:D("hover:text-{c}"),bg:D("bg-{c} hover:bg-{c}/90")}));async function j(){if(d.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(_){console.error(`Не удалось загрузить options для ${n.column.name}`,_)}}return(_,B)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(_.classContent?_.classContent:"relative group w-full"),ref_key:"cellRef",ref:h},[d.value==="boolean"&&_.editable?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:s.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",a.value?$.value.border:"",$.value.ring,a.value?$.value.bg:""]),onClick:s.withModifiers(A,["stop"])},[a.value?(s.openBlock(),s.createElementBlock("span",Wi,B[4]||(B[4]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0)],10,Ki)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"flex items-center justify-between cursor-pointer",onClick:s.withModifiers(E,["stop"])},[s.createElementVNode("span",Gi,[s.renderSlot(_.$slots,"default")]),_.editable?(s.openBlock(),s.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:s.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",$.value.text])},B[5]||(B[5]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):s.createCommentVNode("",!0)]),o.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:s.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",d.value==="select"?"":"w-[450px]"]),onKeydown:s.withKeys(s.withModifiers(C,["stop","prevent"]),["esc"])},[d.value==="select"?(s.openBlock(),s.createElementBlock("div",Yi,[s.createElementVNode("div",Xi,[s.createElementVNode("span",Zi,[s.createElementVNode("span",Qi," Редагувати "+s.toDisplayString(_.column[p.value]||_.column.header||_.column.ua||_.column.name),1)])]),s.createElementVNode("div",Vi,[s.createElementVNode("div",el,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,x=>(s.openBlock(),s.createElementBlock("label",{key:x.value.toString(),onClick:s.withModifiers(()=>{a.value=x.value,v()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[B[8]||(B[8]=s.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),x.color?(s.openBlock(),s.createElementBlock("span",nl,B[6]||(B[6]=[s.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(x.label)+" ",1),a.value===x.value?(s.openBlock(),s.createElementBlock("svg",sl,B[7]||(B[7]=[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):s.createCommentVNode("",!0)],8,tl))),128))])])])):(s.openBlock(),s.createElementBlock("div",rl,[s.createElementVNode("h3",ol," Редагувати "+s.toDisplayString(_.column[p.value]||_.column.header||_.column.ua||_.column.name),1),s.createElementVNode("div",il,[s.createElementVNode("label",ll,s.toDisplayString(_.column[p.value]||_.column.header||_.column.ua||_.column.name),1),d.value==="text"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[0]||(B[0]=x=>a.value=x),type:"text",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value]]):d.value==="number"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[1]||(B[1]=x=>a.value=x),type:"number",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value,void 0,{number:!0}]]):d.value==="date"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[2]||(B[2]=x=>a.value=x),type:"date",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onChange:v},null,34)),[[s.vModelText,a.value]]):d.value==="select"?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[3]||(B[3]=x=>a.value=x),class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",$.value.ring,$.value.border])},[B[9]||(B[9]=s.createElementVNode("option",{disabled:"",value:""},"-- виберіть --",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,x=>(s.openBlock(),s.createElementBlock("option",{key:x.value.toString(),value:x.value},s.toDisplayString(x.label),9,al))),128))],2)),[[s.vModelSelect,a.value]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",cl,[s.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:C}," Скасувати "),s.createElementVNode("button",{type:"button",class:s.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",$.value.bg]),onClick:v}," Зберегти ",2)])]))],42,Ji)):s.createCommentVNode("",!0)],64))],2))}}),pl={key:0,class:"text-center py-8"},fl={class:"inline-flex items-center space-x-2"},ul={key:2,class:"overflow-x-auto"},hl=["checked","indeterminate"],ml=["onClick"],gl={class:"flex items-center justify-between"},vl={class:"flex items-center gap-1.5"},yl={key:0,class:"relative group"},bl=["onMouseenter"],El={key:0,class:"ml-1 text-xs"},kl=["onClick"],xl=["checked","onChange"],Nl=["onClick"],wl={key:1,class:"text-center"},Sl=["colspan"],kt=s.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:""},classContent:{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},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(n.selectedRows||[]),i=s.ref(n.defaultSort.map(u=>({field:u.name,direction:u.asc?"asc":"desc"}))),l=s.ref([]),a=s.ref([]),c=s.ref(!1),p=s.ref(null),m=s.ref(n.router),d=s.useSlots(),f=s.computed(()=>d.action);function h(u){if(m.value){m.value.push(u);return}location.href=u}const E=s.computed(()=>{if(n.api)return l.value;if(n.sortable&&i.value.length>0){const u=[...n.rows];return u.sort((O,b)=>{for(const L of i.value){if(!L.direction)return 0;const g=O[L.field],z=b[L.field];if(g==null)return 1;if(z==null)return-1;let se=0;typeof g=="string"&&typeof z=="string"?se=g.localeCompare(z):g<z?se=-1:g>z?se=1:se=0;const Ue=L.direction==="desc"?-se:se;if(Ue!==0)return Ue}return 0}),u}return n.rows});s.watch(()=>n.selectedRows,u=>{o.value=u||[]});const v=u=>o.value.some(O=>O===u),C=u=>{const O=o.value.findIndex(b=>b===u);O>-1?o.value.splice(O,1):o.value.push(u),r("update:selectedRows",[...o.value])},S=s.computed(()=>E.value.length>0&&o.value.length===E.value.length),A=s.computed(()=>o.value.length>0&&o.value.length<E.value.length),D=()=>{S.value?o.value=[]:o.value=[...E.value],r("update:selectedRows",[...o.value])},$=(u,O)=>{if(!n.sortable)return;if(O?.ctrlKey||O?.metaKey){const g=i.value.findIndex(z=>z.field===u);if(g>=0){const z=i.value[g];z.direction==="asc"?z.direction="desc":z.direction==="desc"&&i.value.splice(g,1)}else i.value.unshift({field:u,direction:"asc"})}else{const g=i.value.find(z=>z.field===u);g?g.direction==="asc"?g.direction="desc":g.direction==="desc"&&(i.value=[]):i.value=[{field:u,direction:"asc"}]}const L=i.value.filter(g=>g.direction).map(g=>({name:g.field,asc:g.direction==="asc"}));r("sort",L),n.api&&ae()},j=u=>i.value.find(b=>b.field===u)?.direction==="asc",_=u=>{const O=i.value.find(b=>b.field===u);if(!O)return"";switch(O.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},B=u=>n.sortable&&u.sortable!==!1,x=u=>{n.clickable&&r("row-click",u)},w=(u,O)=>{const b=O[u.name];if(n.getCellData||u.getCellData){const L=u.getCellData||n.getCellData;if(L){const g={name:u.name,row:O,value:b};return L(g)}}return["_data","_text"].map(L=>{const g=`${u.name}${L}`;return O[g]?O[g]:null}).find(L=>L)||(u.link?b||"-":b)},M=u=>u.width?u.width==="w-full"?"w-full":typeof u.width=="string"?`w-[${u.width}px] max-w-[${u.width}px] min-w-[${u.width}px]`:typeof u.width=="number"?`w-[${u.width}px] max-w-[${u.width}px] min-w-[${u.width}px]`:"":"max-w-[350px]",R=s.ref(n.page),k=s.ref(n.limit),y=s.ref(n.total),N=s.ref(1),T=s.ref(10),H=s.ref(0),ee=s.computed(()=>n.api?N.value:R.value),be=s.computed(()=>n.api?T.value:k.value),Ae=s.computed(()=>n.api?H.value:y.value),q=s.computed(()=>{const{theme:u}=n;return u==="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"}:u==="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"}});s.watch(()=>n.page,u=>{R.value=u}),s.watch(()=>n.limit,u=>{k.value=u}),s.watch(()=>n.total,u=>{y.value=u});async function ae(){if(n.api){c.value=!0,p.value=null;try{const u=new URL(n.api,window.location.origin);if(u.searchParams.set("page",ee.value.toString()),u.searchParams.set("limit",be.value.toString()),i.value.length>0){const L=i.value.filter(g=>g.direction).map(g=>`${g.field}:${g.direction}`).join(",");L&&u.searchParams.set("sort",L)}const O=await fetch(u.toString());if(!O.ok)throw new Error(`HTTP error! status: ${O.status}`);const b=await O.json();b.rows&&Array.isArray(b.rows)&&(l.value=b.rows),b.columns&&Array.isArray(b.columns)&&(a.value=b.columns),b.total!==void 0&&(n.api?H.value=b.total:y.value=b.total)}catch(u){p.value=u instanceof Error?u.message:"Failed to fetch data",console.error("Error fetching data:",u)}finally{c.value=!1}}}const Ce=u=>{n.api?N.value=u:(R.value=u,r("update:page",u)),n.api&&ae()},xt=s.computed(()=>n.showPagination&&Ae.value>0),Ve=s.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]),Ca=St(),Nt=s.ref("uk"),Hs=u=>{u.detail.key==="locale"&&(Nt.value=u.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",Hs)}),s.onMounted(()=>{window.addEventListener("storage",Hs),Nt.value=localStorage.locale,n.api&&(n.page&&(N.value=n.page),n.limit&&(T.value=n.limit),n.total&&(H.value=n.total),ae())}),s.watch(()=>n.api,u=>{u&&(N.value=n.page||1,T.value=n.limit||10,H.value=n.total||0,ae())});const qs=s.computed(()=>n.api?a.value:n.columns),mn=s.ref([]),wt=s.ref({});s.provide("registerColumn",(u,O)=>{mn.value.push(u),O&&u.slotName&&(wt.value[u.name]=O)});const gn=s.computed(()=>{const u=qs.value||[],O=[],b=d.default?.();if(b){const L=b.filter(g=>g.type?.name==="Column"||g.type==="Column"||g.type&&typeof g.type=="object"&&g.type.name==="Column").map(g=>{const z=g.props||g.componentProps||{},se=z.field||z.name||"",Ue=z.header||z.label||"",Gs=g.children&&g.children.body,yn={name:se,ua:Ue,format:z.format||"text",slotName:Gs?"body":void 0,...z};return Gs&&yn.name&&(wt.value[yn.name]=g.children.body),yn});O.push(...L)}if(mn.value.length>0&&O.push(...mn.value),O.length>0){const L=[],g=new Set(O.map(z=>z.name));return u.forEach(z=>{g.has(z.name)||L.push(z)}),L.push(...O),console.log("Combined columns:",{default:u.length,custom:O.length,combined:L.length}),L}return u.length>0?u:[]}),_a=(u="text")=>Ct[u.toLowerCase()]||Ct.text,$e=s.ref({});async function Ta(u){const{data:O,api:b}=gn.value.find(L=>L.name===u);if($e.value[u])return $e.value[u];if(O||b){const L=b||`/api/suggest/${O}?json=1`,z=await(await fetch(L)).json();z.data&&Array.isArray(z.data)&&($e.value[u]=z.data.map(se=>({value:se.id??se.value,label:se.text??se.label})))}return $e.value[u]}function Da(u,O,b,L){const g=L;g!==-1&&(n.rows[g]={...n.rows[g],[O]:b}),r("cell-update",u,O,b)}function Ks(u){const b=`info:${Nt.value}`;return u[b]?u[b]:u.info?u.info:null}const vn=s.ref(null),Ws=s.ref({top:"0px",left:"0px"});function Oa(u,O){const b=u.currentTarget.getBoundingClientRect();vn.value=O,Ws.value={top:`${b.bottom+4}px`,left:`${Math.min(b.left,window.innerWidth-230)}px`}}function Ba(){vn.value=null}return s.watch(()=>n.form,async u=>{u&&($e.value={})}),s.onMounted(()=>{n.form&&($e.value={})}),(u,O)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",q.value.container])},[c.value||n.loading?(s.openBlock(),s.createElementBlock("div",pl,[s.createElementVNode("div",fl,[O[0]||(O[0]=s.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(q.value.loading)},"Loading...",2)])])):p.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",q.value.error])},s.toDisplayString(p.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",ul,[s.createElementVNode("div",{class:s.normalizeClass(u.classWrapper?u.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(u.classTable),style:s.normalizeStyle(u.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(u.classThead||q.value.thead)},[s.createElementVNode("tr",null,[u.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",q.value.th,Ve.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:S.value,indeterminate:A.value,onChange:D,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",q.value.checkbox])},null,42,hl)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(gn.value.filter(b=>!b.hidden),b=>(s.openBlock(),s.createElementBlock("th",{key:b.name,class:s.normalizeClass([b.align?`text-${b.align}`:"",B(b)?["cursor-pointer",q.value.thHover]:"",M(b)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",q.value.th,Ve.value.header])),onClick:L=>B(b)?$(b.name,L):void 0},[s.createElementVNode("div",gl,[s.createElementVNode("div",vl,[s.createElementVNode("span",null,s.toDisplayString(b[Nt.value]||b.header||b.ua||b.name),1),Ks(b)?(s.openBlock(),s.createElementBlock("div",yl,[(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help",onMouseenter:L=>Oa(L,b.name),onMouseleave:Ba},O[1]||(O[1]=[s.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),s.createElementVNode("path",{d:"M12 16v-4"},null,-1),s.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,bl)),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[vn.value===b.name?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(Ws.value),class:"fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"},s.toDisplayString(Ks(b)),5)):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0)]),B(b)?(s.openBlock(),s.createElementBlock("span",El,[s.renderSlot(u.$slots,"sort",{asc:j(b.name)},()=>[s.createTextVNode(s.toDisplayString(_(b.name)),1)])])):s.createCommentVNode("",!0)])],10,ml))),128)),f.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",q.value.th,Ve.value.header]])},s.toDisplayString(s.unref(Ca)("table.actions")),3)):s.createCommentVNode("",!0)])],2),E.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(u.classTbody||q.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(E.value,(b,L)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:L},[s.createElementVNode("tr",{class:s.normalizeClass(n.classTr||[q.value.tr,n.clickable?"cursor-pointer":""]),onClick:g=>n.clickable?x(b):void 0},[u.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",q.value.td,Ve.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:v(b),onChange:g=>C(b),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",q.value.checkbox])},null,42,xl)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(gn.value.filter(g=>!g.hidden),g=>(s.openBlock(),s.createElementBlock("td",{key:g.name,class:s.normalizeClass(n.classTd?[n.classTd,M(g)]:["whitespace-nowrap",q.value.td,Ve.value.cell,g.align?`text-${g.align}`:"",M(g)])},[(s.openBlock(),s.createBlock(dl,{"class-content":n.classContent,key:b,editable:g.edit,row:b,column:g,value:b[g.name],format:g.format,options:$e.value[g.name]||[],color:u.color,onUpdate:(z,se,Ue)=>Da(z,se,Ue,L),"fetch-options":Ta},{default:s.withCtx(()=>[g.action&&f.value?s.renderSlot(u.$slots,"action",{key:0,row:b}):s.unref(d).number&&g.format==="number"?s.renderSlot(u.$slots,"number",{key:1,row:b,value:w(g,b)}):s.unref(d).badge&&g.format==="badge"?s.renderSlot(u.$slots,"badge",{key:2,row:b,value:w(g,b)}):s.unref(d).array&&g.format==="array"?s.renderSlot(u.$slots,"array",{key:3,row:b,value:w(g,b)}):g.slotName&&wt.value[g.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(wt.value[g.name]),{key:4,data:b,value:w(g,b),row:b,column:g},null,8,["data","value","row","column"])):g.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(u.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:z=>h(g.link.replace("{id}",b.id))},[g.slot&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Ps)(g.slot)),{key:0,row:b,value:b,data:b,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(w(g,b)),1)],64))],10,Nl)):g.slot&&g.format==="slot"&&typeof g.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(Ps)(g.slot)),{key:6,row:b,value:w(g,b),data:b,column:g},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(_a(g.format)),{key:7,value:w(g,b),row:b,column:g,href:g.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","onUpdate"]))],2))),128)),f.value?(s.openBlock(),s.createElementBlock("td",wl,[s.renderSlot(u.$slots,"action",{row:b})])):s.createCommentVNode("",!0)],10,kl),s.createElementVNode("tr",null,[s.renderSlot(u.$slots,"under-row",{row:b})])],64))),128))],2)):s.createCommentVNode("",!0),E.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",q.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:qs.value.length},[s.createVNode(qi)],8,Sl)])],2)):s.createCommentVNode("",!0)],6)],2)])),xt.value&&!c.value&&!n.loading&&!p.value?(s.openBlock(),s.createBlock(_t,{key:3,page:ee.value,limit:be.value,total:Ae.value,theme:n.theme,size:n.size,"onUpdate:page":Ce},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),Cl={style:{display:"none"}},Fs=s.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=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:o,name:i,header:l,label:a,format:c,slotName:p,link:m,action:d,getCellData:f,suffix:h,...E}=t,A={name:o||i||"",ua:l||a||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:m,action:d,getCellData:f,suffix:h,...E};console.log("Registering column:",A);const D=n.body;r(A,D)}}),(o,i)=>(s.openBlock(),s.createElementBlock("div",Cl,[s.renderSlot(o.$slots,"body",{data:{}})]))}}),_l={class:"mt-4"},Tl={class:"text-sm text-gray-600 dark:text-gray-300"},js=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,o)=>(s.openBlock(),s.createElementBlock("div",_l,[s.createElementVNode("div",Tl," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Dl={class:"mt-4"},Ol={class:"border-b border-gray-200 dark:border-gray-700"},Bl={class:"-mb-px flex space-x-8"},Il=["onClick"],Al={class:"mt-4"},$l={class:"bg-gray-900 rounded-lg overflow-hidden"},Ml={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},Rl={class:"text-sm text-gray-300"},Ll=["onClick"],Pl={class:"p-4 text-sm text-gray-100 overflow-x-auto"},zs=s.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=s.ref(t.defaultTab||t.tabs[0]?.id||""),r=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(s.openBlock(),s.createElementBlock("div",Dl,[s.createElementVNode("div",Ol,[s.createElementVNode("nav",Bl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>(s.openBlock(),s.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===l.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"])},s.toDisplayString(l.label),11,Il))),128))])]),s.createElementVNode("div",Al,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:l.id},[s.createElementVNode("div",$l,[s.createElementVNode("div",Ml,[s.createElementVNode("span",Rl,s.toDisplayString(l.label),1),s.createElementVNode("button",{onClick:a=>r(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[s.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s.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,Ll)]),s.createElementVNode("pre",Pl,[s.createElementVNode("code",null,s.toDisplayString(l.content),1)])])])),[[s.vShow,n.value===l.id]])),128))])]))}}),Fl={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},jl={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12"},zl={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},Ul={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Hl={class:"sr-only"},ql={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},Kl={class:"p-4"},Wl={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},Gl={class:"text-sm font-[600] text-gray-500"},Jl={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},Yl={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Xl={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Zl={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},Ql={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},Vl={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ea={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ta={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},na={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},sa={class:"flex items-center gap-[4px]"},ra=["id","value"],oa=["for"],ia={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",height:"12",width:"12"},la={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},aa={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},ca={class:"text-sm font-[600] text-gray-500"},da={class:"mt-2 space-y-2"},pa={class:"flex items-center"},fa={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ua={class:"flex items-center"},ha={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ma={class:"flex items-center"},ga={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},va={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},ya={class:"flex items-center gap-2 mb-2"},ba={class:"flex justify-end gap-x-2"},Ea={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},ka=["disabled"],xa={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},Na={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},wa={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},Sa={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},Us=s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=St(),r=e,o=s.ref(!1),i=s.ref([]),l=s.ref("json"),a=s.ref(!1),c=s.ref(!1),p=s.ref(""),m=s.ref(!1),d=s.ref("all"),f=s.computed(()=>r.columns??[]),h=s.useAttrs();function E(){i.value=f.value.map(k=>k.name),l.value="json",o.value=!0,m.value=!1}function v(){o.value=!1,m.value=!1}function C(){i.value=f.value.map(k=>k.name),d.value="all"}function S(){const k=f.value.filter(y=>!y.hidden).map(y=>y.name);i.value=k.length?k:f.value.map(y=>y.name),d.value="active"}function A(){i.value=[],d.value="none"}async function D(){if(i.value.length===0)return;a.value=!0,p.value="",c.value=!1;const k=new URLSearchParams({table:r.table,format:l.value,columns:i.value.join(",")});try{const y=await fetch(`/api/export?${k.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!y.ok)throw new Error("Export failed");if(y.headers.get("content-type")?.includes("text/event-stream")){if(v(),c.value=!0,m.value=!0,!await M(y,H=>{p.value=H}))throw new Error("Failed to process streamed export");p.value=n("table.preparingDownload"),await x(k),c.value=!1,m.value=!1}else await B(y),v()}catch(y){console.error(y);const{$notify:N=console.log}=t?.appContext?.config?.globalProperties||{};N({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),c.value=!1,m.value=!1}finally{a.value=!1}}const $=s.ref("uk"),j=k=>{k.detail.key==="locale"&&($.value=k.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",j)}),s.onMounted(()=>{window.addEventListener("storage",j),$.value=localStorage.locale});function _(k,y){const N=URL.createObjectURL(k),T=document.createElement("a");T.href=N,T.download=y||`${r.table}.${l.value}`,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(N)}async function B(k){const y=await k.blob();_(y,`${r.table}.${l.value}`)}async function x(k){const y=await fetch(`/api/export?${k.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!y.ok)throw new Error("Export failed");await B(y)}function w(k){return k.split(/\r?\n/).reduce((y,N)=>{const[T,...H]=N.split(":");if(!T)return y;const ee=H.join(":").trimStart();return T==="event"&&(y.event=ee),T==="data"&&(y.data=(y.data?`${y.data}
|
|
22
|
-
`:"")+
|
|
21
|
+
**/const Ss=Symbol(process.env.NODE_ENV!=="production"?"vModelRadio":""),Cs=Symbol(process.env.NODE_ENV!=="production"?"vModelCheckbox":""),_s=Symbol(process.env.NODE_ENV!=="production"?"vModelText":""),Ts=Symbol(process.env.NODE_ENV!=="production"?"vModelSelect":""),mn=Symbol(process.env.NODE_ENV!=="production"?"vModelDynamic":""),Ds=Symbol(process.env.NODE_ENV!=="production"?"vOnModifiersGuard":""),Os=Symbol(process.env.NODE_ENV!=="production"?"vOnKeysGuard":""),Bs=Symbol(process.env.NODE_ENV!=="production"?"vShow":""),gn=Symbol(process.env.NODE_ENV!=="production"?"Transition":""),Is=Symbol(process.env.NODE_ENV!=="production"?"TransitionGroup":"");Jr({[Ss]:"vModelRadio",[Cs]:"vModelCheckbox",[_s]:"vModelText",[Ts]:"vModelSelect",[mn]:"vModelDynamic",[Ds]:"withModifiers",[Os]:"withKeys",[Bs]:"vShow",[gn]:"Transition",[Is]:"TransitionGroup"});let ze;function Si(e,t=!1){return ze||(ze=document.createElement("div")),t?(ze.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ze.children[0].getAttribute("foo")):(ze.innerHTML=e,ze.textContent)}const Ci={parseMode:"html",isVoidTag:Ur,isNativeTag:e=>Fr(e)||jr(e)||zr(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Si,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return gn;if(e==="TransitionGroup"||e==="transition-group")return Is},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(o=>o.type===6&&o.name==="encoding"&&o.value!=null&&(o.value.content==="text/html"||o.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},_i=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:B("style",!0,t.loc),exp:Ti(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ti=(e,t)=>{const n=$r(e);return B(JSON.stringify(n),!1,t,3)};function me(e,t){return z(e,t,process.env.NODE_ENV!=="production"?Di:void 0)}const Di={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."},Oi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(53,o)),t.children.length&&(n.onError(me(54,o)),t.children.length=0),{props:[W(B("innerHTML",!0,o),r||B("",!0))]}},Bi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(55,o)),t.children.length&&(n.onError(me(56,o)),t.children.length=0),{props:[W(B("textContent",!0),r?fe(r,n)>0?r:J(n.helperString(it),[r],o):B("",!0))]}},Ii=(e,t,n)=>{const r=xs(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(me(58,e.arg.loc));function o(){const a=ie(t,"bind");a&&_e(a.arg,"value")&&n.onError(me(60,a.loc))}const{tag:i}=t,l=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||l){let a=_s,c=!1;if(i==="input"||l){const p=Xe(t,"type");if(p){if(p.type===7)a=mn;else if(p.value)switch(p.value.content){case"radio":a=Ss;break;case"checkbox":a=Cs;break;case"file":c=!0,n.onError(me(59,e.loc));break;default:process.env.NODE_ENV!=="production"&&o();break}}else lo(t)?a=mn:process.env.NODE_ENV!=="production"&&o()}else i==="select"?a=Ts:process.env.NODE_ENV!=="production"&&o();c||(r.needRuntime=n.helper(a))}else n.onError(me(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Ai=ge("passive,once,capture"),$i=ge("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Mi=ge("left,right"),As=ge("onkeyup,onkeydown,onkeypress"),Ri=(e,t,n,r)=>{const o=[],i=[],l=[];for(let a=0;a<t.length;a++){const c=t[a].content;c==="native"&&je("COMPILER_V_ON_NATIVE",n,r)||Ai(c)?l.push(c):Mi(c)?oe(e)?As(e.content.toLowerCase())?o.push(c):i.push(c):(o.push(c),i.push(c)):$i(c)?i.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:l}},$s=(e,t)=>oe(e)&&e.content.toLowerCase()==="onclick"?B(t,!0):e.type!==4?he(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Li=(e,t,n)=>Es(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:i,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:p}=Ri(i,o,n,e.loc);if(c.includes("right")&&(i=$s(i,"onContextmenu")),c.includes("middle")&&(i=$s(i,"onMouseup")),c.length&&(l=J(n.helper(Ds),[l,JSON.stringify(c)])),a.length&&(!oe(i)||As(i.content.toLowerCase()))&&(l=J(n.helper(Os),[l,JSON.stringify(a)])),p.length){const m=p.map(Mt).join("");i=oe(i)?B(`${i.content}${m}`,!0):he(["(",i,`) + "${m}"`])}return{props:[W(i,l)]}}),Pi=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(me(61,o)),{props:[],needRuntime:n.helper(Bs)}},Fi=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===gn)return()=>{if(!e.children.length)return;Ms(e)&&t.onError(me(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const r=e.children[0];if(r.type===1)for(const o of r.props)o.type===7&&o.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function Ms(e){const t=e.children=e.children.filter(r=>r.type!==3&&!(r.type===2&&!r.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Ms)}const ji=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(process.env.NODE_ENV!=="production"&&t.onError(me(63,e.loc)),t.removeNode())};function zi(e,t){return e==="template"?!0:e in Rs?Rs[e].has(t):t in Ls?Ls[t].has(e):!(e in Ps&&Ps[e].has(t)||t in Fs&&Fs[t].has(e))}const Ue=new Set(["h1","h2","h3","h4","h5","h6"]),$e=new Set([]),Rs={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:$e,iframe:$e,option:$e,textarea:$e,style:$e,title:$e},Ls={html:$e,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"])},Ps={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"])},Fs={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:Ue,h2:Ue,h3:Ue,h4:Ue,h5:Ue,h6:Ue},Ui=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!zi(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)}},Hi=[_i,...process.env.NODE_ENV!=="production"?[Fi,Ui]:[]],qi={cloak:Ni,html:Oi,text:Bi,model:Ii,on:Li,show:Pi};function Ki(e,t={}){return wi(e,we({},Ci,t,{nodeTransforms:[ji,...Hi,...t.nodeTransforms||[]],directiveTransforms:we({},qi,t.directiveTransforms||{}),transformHoist:null}))}function Wi(e,t){const n=e.trim().startsWith("<")?e:`<span>${e}</span>`,{code:r}=Ki(n,{mode:"function"}),o=new Function("Vue",`${r}; return render`)(nr);return s.defineComponent({name:"DynamicFromString",props:t?.props??{},emits:t?.emits??[],setup(i,l){return t?.setup?.()??{}},render:o})}const vn={};function js(e){return vn[e]||(vn[e]=Wi(e,{props:{row:Object,value:null,data:Object,column:Object}})),vn[e]}const Gi={class:"py-10 flex flex-col justify-center items-center text-center"},Ji={class:"max-w-sm mx-auto"},Yi={class:"mt-2 font-medium text-gray-800 dark:text-neutral-200"},Xi={class:"mb-5 text-sm text-gray-500 dark:text-neutral-500"},Zi=s.defineComponent({__name:"nodata",props:{title:{default:"No data"},description:{default:"No data here yet. We will notify you when there's an update."}},setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("div",Gi,[n[0]||(n[0]=s.createStaticVNode('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),s.createElementVNode("div",Ji,[s.createElementVNode("p",Yi,s.toDisplayString(t.title),1),s.createElementVNode("p",Xi,s.toDisplayString(t.description),1)])]))}}),Qi=["aria-checked","data-state"],Vi={key:0,"data-state":"checked","data-slot":"checkbox-indicator",class:"flex items-center justify-center transition-none text-white"},el=["onKeydown"],tl={key:0,class:"hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-inthmtdid1"},nl={class:"py-2 px-4"},sl={class:"block font-medium text-[13px] text-gray-800 dark:text-neutral-200"},rl={class:"truncate"},ol={class:"p-1 border-t border-gray-200 dark:border-neutral-800"},il={class:"space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},ll=["onClick"],al={key:0,class:"shrink-0 size-3.5 flex justify-center items-center"},cl={key:1,class:"shrink-0 size-3.5 ms-auto",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},dl={key:1,class:"p-4"},pl={class:"text-base font-semibold text-gray-800 mb-3"},fl={class:"mb-4"},ul={class:"block text-sm font-medium text-gray-700 mb-1"},hl=["value"],ml={class:"flex justify-end gap-2 border-t pt-3"},gl=s.defineComponent({__name:"EditableCell",props:{row:{},column:{},value:{},format:{},options:{},accent:{},editable:{type:Boolean},color:{},classContent:{},fetchOptions:{type:Function},overflow:{}},emits:["edit","update"],setup(e,{emit:t}){const n=e,r=t,o=s.ref(!1),i=s.ref(null),l=s.ref(null),a=s.ref(n.value),c=s.ref([]),p=s.ref("uk"),m=D=>{D.detail.key==="locale"&&(p.value=D.detail.newValue)};s.watch(()=>n.value,D=>{a.value=D});const d=s.computed(()=>{const D=n.column?.schema?.[n.column?.name];if(D?.type)switch(D.type){case"Text":return"text";case"Number":return"number";case"Switcher":return"boolean";case"Autocomplete":return"select";case"Date":return"date";default:return"text"}const x=(n.format||n.column?.format||"text").toLowerCase();return["text","number","date","select","boolean"].includes(x)?x:"text"}),u=s.computed(()=>(n.column?.schema?.[n.column?.name]?.options||n.options||c.value||[]).map(k=>({value:k.id??k.value,color:k.color,label:k.text??k.label}))),h=s.ref(null);function E(){n.editable&&(o.value||document.dispatchEvent(new CustomEvent("close-all-popovers")),o.value=!o.value,o.value&&s.nextTick(()=>{i.value?.focus?.(),i.value?.showPicker?.(),d.value==="select"&&te()}))}function v(){r("edit",n.row,n.column.name,a.value),r("update",n.row,n.column.name,a.value),o.value=!1}function _(){a.value=n.value,o.value=!1}function C(D){if(!o.value)return;const k=D.target;h.value&&!h.value.contains(k)&&(o.value=!1)}s.onMounted(()=>{document.addEventListener("click",C),window.addEventListener("storage",m),p.value=localStorage.locale,document.addEventListener("close-all-popovers",()=>{o.value=!1})}),s.onBeforeUnmount(()=>{document.removeEventListener("click",C),window.removeEventListener("storage",m),document.removeEventListener("close-all-popovers",()=>{o.value=!1})});function A(){n.editable&&(a.value=!a.value,r("update",n.row,n.column.name,a.value))}function T(D){return n.color?n.color.startsWith("#")?D.replace("{c}",`[${n.color}]`):D.replace("{c}",`${n.color}-500`):D.replace("{c}","cyan-500")}const $=s.computed(()=>({border:T("border-{c}"),ring:T("focus:ring-{c}"),text:T("text-{c}"),hover:T("hover:text-{c}"),bg:T("bg-{c} hover:bg-{c}/90")})),P=s.computed(()=>n.overflow==="wrap"?["flex-1","whitespace-normal","break-words"]:["flex-1","truncate","whitespace-nowrap"]);async function te(){if(d.value==="select"&&!(n.options&&n.options.length>0||n.column?.schema?.[n.column?.name]?.options?.length>0)&&c.value.length===0&&n.fetchOptions)try{c.value=await n.fetchOptions(n.column.name)}catch(D){console.error(`Не удалось загрузить options для ${n.column.name}`,D)}}return(D,k)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(D.classContent?D.classContent:"relative group w-full"),ref_key:"cellRef",ref:h},[d.value==="boolean"&&D.editable?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",role:"checkbox","aria-checked":a.value?"true":"false","data-state":a.value?"checked":"unchecked",class:s.normalizeClass(["peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center",a.value?$.value.border:"",$.value.ring,a.value?$.value.bg:""]),onClick:s.withModifiers(A,["stop"])},[a.value?(s.openBlock(),s.createElementBlock("span",Vi,k[4]||(k[4]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check size-3.5"},[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)]))):s.createCommentVNode("",!0)],10,Qi)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"flex items-start justify-between cursor-pointer gap-2",onClick:s.withModifiers(E,["stop"])},[s.createElementVNode("span",{class:s.normalizeClass(P.value)},[s.renderSlot(D.$slots,"default")],2),D.editable?(s.openBlock(),s.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:s.normalizeClass(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",$.value.text])},k[5]||(k[5]=[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"},null,-1)]),2)):s.createCommentVNode("",!0)]),o.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:l,class:s.normalizeClass(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg",d.value==="select"?"":"w-[450px]"]),onKeydown:s.withKeys(s.withModifiers(_,["stop","prevent"]),["esc"])},[d.value==="select"?(s.openBlock(),s.createElementBlock("div",tl,[s.createElementVNode("div",nl,[s.createElementVNode("span",sl,[s.createElementVNode("span",rl," Редагувати "+s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1)])]),s.createElementVNode("div",ol,[s.createElementVNode("div",il,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,x=>(s.openBlock(),s.createElementBlock("label",{key:x.value.toString(),onClick:s.withModifiers(()=>{a.value=x.value,v()},["prevent"]),class:"py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"},[k[8]||(k[8]=s.createElementVNode("input",{type:"radio",class:"hidden",id:"hs-pro-chthuts1op",name:"hs-pro-chthuts1"},null,-1)),x.color?(s.openBlock(),s.createElementBlock("span",al,k[6]||(k[6]=[s.createElementVNode("span",{class:"shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full"},null,-1)]))):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(x.label)+" ",1),a.value===x.value?(s.openBlock(),s.createElementBlock("svg",cl,k[7]||(k[7]=[s.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))):s.createCommentVNode("",!0)],8,ll))),128))])])])):(s.openBlock(),s.createElementBlock("div",dl,[s.createElementVNode("h3",pl," Редагувати "+s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1),s.createElementVNode("div",fl,[s.createElementVNode("label",ul,s.toDisplayString(D.column[p.value]||D.column.header||D.column.ua||D.column.name),1),d.value==="text"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[0]||(k[0]=x=>a.value=x),type:"text",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value]]):d.value==="number"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[1]||(k[1]=x=>a.value=x),type:"number",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onKeyup:s.withKeys(v,["enter"])},null,34)),[[s.vModelText,a.value,void 0,{number:!0}]]):d.value==="date"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[2]||(k[2]=x=>a.value=x),type:"date",class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",$.value.ring,$.value.border]),onChange:v},null,34)),[[s.vModelText,a.value]]):d.value==="select"?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:3,ref_key:"inputRef",ref:i,"onUpdate:modelValue":k[3]||(k[3]=x=>a.value=x),class:s.normalizeClass(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",$.value.ring,$.value.border])},[k[9]||(k[9]=s.createElementVNode("option",{disabled:"",value:""},"-- виберіть --",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,x=>(s.openBlock(),s.createElementBlock("option",{key:x.value.toString(),value:x.value},s.toDisplayString(x.label),9,hl))),128))],2)),[[s.vModelSelect,a.value]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",ml,[s.createElementVNode("button",{type:"button",class:"px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",onClick:_}," Скасувати "),s.createElementVNode("button",{type:"button",class:s.normalizeClass(["px-4 py-1.5 text-sm rounded-md text-white",$.value.bg]),onClick:v}," Зберегти ",2)])]))],42,el)):s.createCommentVNode("",!0)],64))],2))}}),zs=typeof window<"u",Us=typeof document<"u",vl=()=>{if(!Us)throw new Error("Tooltip requires document to be defined");const e=document.createElement("div");return e.className="fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200",e.style.opacity="0",e.style.visibility="hidden",document.body.appendChild(e),e},Hs=(e,t)=>{if(!Us||!zs)return;const n=vl(),r={text:t,tooltipEl:n,show:o=>{if(!r.text||!zs)return;n.textContent=r.text;const i=o.currentTarget.getBoundingClientRect(),l=window.innerWidth-n.offsetWidth-12,a=Math.max(12,Math.min(i.left,l));n.style.left=`${a}px`,n.style.top=`${i.bottom+4}px`,n.style.opacity="1",n.style.visibility="visible"},hide:()=>{n.style.opacity="0",n.style.visibility="hidden"}};e.addEventListener("mouseenter",r.show),e.addEventListener("mouseleave",r.hide),e.addEventListener("focus",r.show),e.addEventListener("blur",r.hide),e.tooltipHandlers=r},qs=e=>{e.tooltipHandlers&&(e.removeEventListener("mouseenter",e.tooltipHandlers.show),e.removeEventListener("mouseleave",e.tooltipHandlers.hide),e.removeEventListener("focus",e.tooltipHandlers.show),e.removeEventListener("blur",e.tooltipHandlers.hide),e.tooltipHandlers.tooltipEl.remove(),delete e.tooltipHandlers)},yl={mounted(e,t){t.value&&Hs(e,t.value)},updated(e,t){const n=e;if(!t.value){qs(n);return}if(!n.tooltipHandlers){Hs(n,t.value);return}n.tooltipHandlers.text=t.value},unmounted(e){qs(e)}},bl={key:0,class:"text-center py-8"},El={class:"inline-flex items-center space-x-2"},kl={key:2,class:"overflow-x-auto"},xl=["checked","indeterminate"],wl=["onClick"],Nl={class:"flex items-center justify-between"},Sl={class:"flex items-center gap-1.5"},Cl={key:0,class:"relative group"},_l=["onMouseenter"],Tl={key:0,class:"ml-1 text-xs"},Dl=["onClick"],Ol=["checked","onChange"],Bl=["onClick"],Il={key:1,class:"text-center"},Al=["colspan"],Nt=s.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:""},classContent:{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},defaultSort:{default:()=>[]},clickable:{type:Boolean,default:!1},getCellData:{type:Function,default:void 0},form:{},color:{default:"blue"}},emits:["update:page","update:selectedRows","row-click","sort","cell-update"],setup(e,{emit:t}){const n=e,r=yl,o=t,i=s.ref(n.selectedRows||[]),l=s.ref(n.defaultSort.map(f=>({field:f.name,direction:f.asc?"asc":"desc"}))),a=s.ref([]),c=s.ref([]),p=s.ref(!1),m=s.ref(null),d=s.ref(n.router),u=s.useSlots(),h=s.computed(()=>u.action);function E(f){if(d.value){d.value.push(f);return}location.href=f}const v=s.computed(()=>{if(n.api)return a.value;if(n.sortable&&l.value.length>0){const f=[...n.rows];return f.sort((N,g)=>{for(const M of l.value){if(!M.direction)return 0;const y=N[M.field],j=g[M.field];if(y==null)return 1;if(j==null)return-1;let re=0;typeof y=="string"&&typeof j=="string"?re=y.localeCompare(j):y<j?re=-1:y>j?re=1:re=0;const He=M.direction==="desc"?-re:re;if(He!==0)return He}return 0}),f}return n.rows});s.watch(()=>n.selectedRows,f=>{i.value=f||[]});const _=f=>i.value.some(N=>N===f),C=f=>{const N=i.value.findIndex(g=>g===f);N>-1?i.value.splice(N,1):i.value.push(f),o("update:selectedRows",[...i.value])},A=s.computed(()=>v.value.length>0&&i.value.length===v.value.length),T=s.computed(()=>i.value.length>0&&i.value.length<v.value.length),$=()=>{A.value?i.value=[]:i.value=[...v.value],o("update:selectedRows",[...i.value])},P=(f,N)=>{if(!n.sortable)return;if(N?.ctrlKey||N?.metaKey){const y=l.value.findIndex(j=>j.field===f);if(y>=0){const j=l.value[y];j.direction==="asc"?j.direction="desc":j.direction==="desc"&&l.value.splice(y,1)}else l.value.unshift({field:f,direction:"asc"})}else{const y=l.value.find(j=>j.field===f);y?y.direction==="asc"?y.direction="desc":y.direction==="desc"&&(l.value=[]):l.value=[{field:f,direction:"asc"}]}const M=l.value.filter(y=>y.direction).map(y=>({name:y.field,asc:y.direction==="asc"}));o("sort",M),n.api&&St()},te=f=>l.value.find(g=>g.field===f)?.direction==="asc",D=f=>{const N=l.value.find(g=>g.field===f);if(!N)return"";switch(N.direction){case"asc":return"↑";case"desc":return"↓";default:return"↕️"}},k=f=>n.sortable&&f.sortable!==!1,x=f=>{n.clickable&&o("row-click",f)},I=(f,N)=>{const g=N[f.name];if(n.getCellData||f.getCellData){const M=f.getCellData||n.getCellData;if(M){const y={name:f.name,row:N,value:g};return M(y)}}return["_data","_text"].map(M=>{const y=`${f.name}${M}`;return N[y]?N[y]:null}).find(M=>M)||(f.link?g||"-":g)},F=f=>{const N=g=>g==null||g===""?"":typeof g=="object"?g?.text?String(g.text):g?.label?String(g.label):JSON.stringify(g):String(g);return Array.isArray(f)?f.map(N).filter(Boolean).join(", "):N(f)},w=(f,N)=>{if(!N?.tooltip)return;const g=I(N,f);if(g!=null)return F(g)},b=f=>f.width?f.width==="w-full"?"w-full":typeof f.width=="string"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:typeof f.width=="number"?`w-[${f.width}px] max-w-[${f.width}px] min-w-[${f.width}px]`:"":"max-w-[350px]",S=f=>(typeof f?.overflow=="string"?f.overflow.toLowerCase():"")==="wrap"?"wrap":"clip",O=f=>S(f)==="wrap"?["whitespace-normal","break-words"]:["truncate","whitespace-nowrap"],H=s.ref(n.page),Q=s.ref(n.limit),ye=s.ref(n.total),ke=s.ref(1),ne=s.ref(10),ce=s.ref(0),xe=s.computed(()=>n.api?ke.value:H.value),et=s.computed(()=>n.api?ne.value:Q.value),Ys=s.computed(()=>n.api?ce.value:ye.value),se=s.computed(()=>{const{theme:f}=n;return f==="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"}:f==="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"}});s.watch(()=>n.page,f=>{H.value=f}),s.watch(()=>n.limit,f=>{Q.value=f}),s.watch(()=>n.total,f=>{ye.value=f});async function St(){if(n.api){p.value=!0,m.value=null;try{const f=new URL(n.api,window.location.origin);if(f.searchParams.set("page",xe.value.toString()),f.searchParams.set("limit",et.value.toString()),l.value.length>0){const M=l.value.filter(y=>y.direction).map(y=>`${y.field}:${y.direction}`).join(",");M&&f.searchParams.set("sort",M)}const N=await fetch(f.toString());if(!N.ok)throw new Error(`HTTP error! status: ${N.status}`);const g=await N.json();g.rows&&Array.isArray(g.rows)&&(a.value=g.rows),g.columns&&Array.isArray(g.columns)&&(c.value=g.columns),g.total!==void 0&&(n.api?ce.value=g.total:ye.value=g.total)}catch(f){m.value=f instanceof Error?f.message:"Failed to fetch data",console.error("Error fetching data:",f)}finally{p.value=!1}}}const $a=f=>{n.api?ke.value=f:(H.value=f,o("update:page",f)),n.api&&St()},Ma=s.computed(()=>n.showPagination&&Ys.value>0),tt=s.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]),Ra=f=>{const N=[];return n.classTd?N.push(n.classTd):N.push(se.value.td,tt.value.cell),f.align&&N.push(`text-${f.align}`),b(f)&&N.push(b(f)),N.push(...O(f)),N.filter(Boolean)},La=Tt(),Ct=s.ref("uk"),Xs=f=>{f.detail.key==="locale"&&(Ct.value=f.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("resize",Xs)}),s.onMounted(()=>{window.addEventListener("storage",Xs),Ct.value=localStorage.locale,n.api&&(n.page&&(ke.value=n.page),n.limit&&(ne.value=n.limit),n.total&&(ce.value=n.total),St())}),s.watch(()=>n.api,f=>{f&&(ke.value=n.page||1,ne.value=n.limit||10,ce.value=n.total||0,St())});const Zs=s.computed(()=>n.api?c.value:n.columns),yn=s.ref([]),_t=s.ref({});s.provide("registerColumn",(f,N)=>{yn.value.push(f),N&&f.slotName&&(_t.value[f.name]=N)});const bn=s.computed(()=>{const f=Zs.value||[],N=[],g=u.default?.();if(g){const M=g.filter(y=>y.type?.name==="Column"||y.type==="Column"||y.type&&typeof y.type=="object"&&y.type.name==="Column").map(y=>{const j=y.props||y.componentProps||{},re=j.field||j.name||"",He=j.header||j.label||"",er=y.children&&y.children.body,kn={name:re,ua:He,format:j.format||"text",slotName:er?"body":void 0,...j};return er&&kn.name&&(_t.value[kn.name]=y.children.body),kn});N.push(...M)}if(yn.value.length>0&&N.push(...yn.value),N.length>0){const M=[],y=new Set(N.map(j=>j.name));return f.forEach(j=>{y.has(j.name)||M.push(j)}),M.push(...N),console.log("Combined columns:",{default:f.length,custom:N.length,combined:M.length}),M}return f.length>0?f:[]}),Pa=(f="text")=>Dt[f.toLowerCase()]||Dt.text,Me=s.ref({});async function Fa(f){const{data:N,api:g}=bn.value.find(M=>M.name===f);if(Me.value[f])return Me.value[f];if(N||g){const M=g||`/api/suggest/${N}?json=1`,j=await(await fetch(M)).json();j.data&&Array.isArray(j.data)&&(Me.value[f]=j.data.map(re=>({value:re.id??re.value,label:re.text??re.label})))}return Me.value[f]}function ja(f,N,g,M){const y=M;y!==-1&&(n.rows[y]={...n.rows[y],[N]:g}),o("cell-update",f,N,g)}function Qs(f){const g=`info:${Ct.value}`;return f[g]?f[g]:f.info?f.info:null}const En=s.ref(null),Vs=s.ref({top:"0px",left:"0px"});function za(f,N){const g=f.currentTarget.getBoundingClientRect();En.value=N,Vs.value={top:`${g.bottom+4}px`,left:`${Math.min(g.left,window.innerWidth-230)}px`}}function Ua(){En.value=null}return s.watch(()=>n.form,async f=>{f&&(Me.value={})}),s.onMounted(()=>{n.form&&(Me.value={})}),(f,N)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["w-full",se.value.container])},[p.value||n.loading?(s.openBlock(),s.createElementBlock("div",bl,[s.createElementVNode("div",El,[N[0]||(N[0]=s.createElementVNode("div",{class:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(se.value.loading)},"Loading...",2)])])):m.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["text-center py-8",se.value.error])},s.toDisplayString(m.value),3)):n.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",kl,[s.createElementVNode("div",{class:s.normalizeClass(f.classWrapper?f.classWrapper:"relative w-full overflow-auto")},[s.createElementVNode("table",{class:s.normalizeClass(f.classTable),style:s.normalizeStyle(f.tableStyle)},[s.createElementVNode("thead",{class:s.normalizeClass(f.classThead||se.value.thead)},[s.createElementVNode("tr",null,[f.selectable?(s.openBlock(),s.createElementBlock("th",{key:0,class:s.normalizeClass(["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header,n.classTh,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:A.value,indeterminate:T.value,onChange:$,class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,xl)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(bn.value.filter(g=>!g.hidden),g=>(s.openBlock(),s.createElementBlock("th",{key:g.name,class:s.normalizeClass([g.align?`text-${g.align}`:"",k(g)?["cursor-pointer",se.value.thHover]:"",b(g)].concat(n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header])),onClick:M=>k(g)?P(g.name,M):void 0},[s.createElementVNode("div",Nl,[s.createElementVNode("div",Sl,[s.createElementVNode("span",null,s.toDisplayString(g[Ct.value]||g.header||g.ua||g.name),1),Qs(g)?(s.openBlock(),s.createElementBlock("div",Cl,[(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-400 cursor-help",onMouseenter:M=>za(M,g.name),onMouseleave:Ua},N[1]||(N[1]=[s.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),s.createElementVNode("path",{d:"M12 16v-4"},null,-1),s.createElementVNode("path",{d:"M12 8h.01"},null,-1)]),40,_l)),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[En.value===g.name?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(Vs.value),class:"fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"},s.toDisplayString(Qs(g)),5)):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0)]),k(g)?(s.openBlock(),s.createElementBlock("span",Tl,[s.renderSlot(f.$slots,"sort",{asc:te(g.name)},()=>[s.createTextVNode(s.toDisplayString(D(g.name)),1)])])):s.createCommentVNode("",!0)])],10,wl))),128)),h.value?(s.openBlock(),s.createElementBlock("th",{key:1,class:s.normalizeClass(["w-[100px]",n.classTh||["text-left font-medium uppercase tracking-wider",se.value.th,tt.value.header]])},s.toDisplayString(s.unref(La)("table.actions")),3)):s.createCommentVNode("",!0)])],2),v.value.length?(s.openBlock(),s.createElementBlock("tbody",{key:0,class:s.normalizeClass(f.classTbody||se.value.tbody)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,(g,M)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:M},[s.createElementVNode("tr",{class:s.normalizeClass(n.classTr||[se.value.tr,n.clickable?"cursor-pointer":""]),onClick:y=>n.clickable?x(g):void 0},[f.selectable?(s.openBlock(),s.createElementBlock("td",{key:0,class:s.normalizeClass(["whitespace-nowrap",se.value.td,tt.value.cell,n.classTd,"w-12"])},[s.createElementVNode("input",{type:"checkbox",checked:_(g),onChange:y=>C(g),class:s.normalizeClass(["h-4 w-4 focus:ring-blue-500 rounded",se.value.checkbox])},null,42,Ol)],2)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(bn.value.filter(y=>!y.hidden),y=>s.withDirectives((s.openBlock(),s.createElementBlock("td",{key:y.name,class:s.normalizeClass(Ra(y))},[(s.openBlock(),s.createBlock(gl,{"class-content":n.classContent,key:g,editable:y.edit,row:g,column:y,value:g[y.name],format:y.format,options:Me.value[y.name]||[],color:f.color,overflow:S(y),onUpdate:(j,re,He)=>ja(j,re,He,M),"fetch-options":Fa},{default:s.withCtx(()=>[y.action&&h.value?s.renderSlot(f.$slots,"action",{key:0,row:g}):s.unref(u).number&&y.format==="number"?s.renderSlot(f.$slots,"number",{key:1,row:g,value:I(y,g)}):s.unref(u).badge&&y.format==="badge"?s.renderSlot(f.$slots,"badge",{key:2,row:g,value:I(y,g)}):s.unref(u).array&&y.format==="array"?s.renderSlot(f.$slots,"array",{key:3,row:g,value:I(y,g)}):y.slotName&&_t.value[y.name]?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(_t.value[y.name]),{key:4,data:g,value:I(y,g),row:g,column:y},null,8,["data","value","row","column"])):y.link?(s.openBlock(),s.createElementBlock("a",{key:5,class:s.normalizeClass(f.classLink||"hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),onClick:j=>E(y.link.replace("{id}",g.id))},[y.slot&&typeof y.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(js)(y.slot)),{key:0,row:g,value:g,data:g,column:y},null,8,["row","value","data","column"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(I(y,g)),1)],64))],10,Bl)):y.slot&&y.format==="slot"&&typeof y.slot=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(js)(y.slot)),{key:6,row:g,value:I(y,g),data:g,column:y},null,8,["row","value","data","column"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(Pa(y.format)),{key:7,value:I(y,g),row:g,column:y,href:y.link},null,8,["value","row","column","href"]))]),_:2},1032,["class-content","editable","row","column","value","format","options","color","overflow","onUpdate"]))],2)),[[s.unref(r),w(g,y)]])),128)),h.value?(s.openBlock(),s.createElementBlock("td",Il,[s.renderSlot(f.$slots,"action",{row:g})])):s.createCommentVNode("",!0)],10,Dl),s.createElementVNode("tr",null,[s.renderSlot(f.$slots,"under-row",{row:g})])],64))),128))],2)):s.createCommentVNode("",!0),v.value.length===0?(s.openBlock(),s.createElementBlock("tbody",{key:1,class:s.normalizeClass(["text-center py-8",se.value.empty])},[s.createElementVNode("tr",null,[s.createElementVNode("td",{colspan:Zs.value.length},[s.createVNode(Zi)],8,Al)])],2)):s.createCommentVNode("",!0)],6)],2)])),Ma.value&&!p.value&&!n.loading&&!m.value?(s.openBlock(),s.createBlock(Ot,{key:3,page:xe.value,limit:et.value,total:Ys.value,theme:n.theme,size:n.size,"onUpdate:page":$a},null,8,["page","limit","total","theme","size"])):s.createCommentVNode("",!0)],2))}}),$l={style:{display:"none"}},Ks=s.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:{},tooltip:{type:Boolean},overflow:{}},setup(e){const t=e,n=s.useSlots(),r=s.inject("registerColumn");return s.onMounted(()=>{if(r){const{field:o,name:i,header:l,label:a,format:c,slotName:p,link:m,action:d,getCellData:u,suffix:h,...E}=t,A={name:o||i||"",ua:l||a||"",format:c||"text",slotName:p||(n.body?"body":void 0),link:m,action:d,getCellData:u,suffix:h,...E};console.log("Registering column:",A);const T=n.body;r(A,T)}}),(o,i)=>(s.openBlock(),s.createElementBlock("div",$l,[s.renderSlot(o.$slots,"body",{data:{}})]))}}),Ml={class:"mt-4"},Rl={class:"text-sm text-gray-600 dark:text-gray-300"},Ws=s.defineComponent({__name:"SelectionInfo",props:{selectedRows:{},totalCount:{}},setup(e){const t=e,n=s.computed(()=>t.selectedRows.length);return(r,o)=>(s.openBlock(),s.createElementBlock("div",Ml,[s.createElementVNode("div",Rl," Обрано: "+s.toDisplayString(n.value)+" з "+s.toDisplayString(r.totalCount)+" записів ",1)]))}}),Ll={class:"mt-4"},Pl={class:"border-b border-gray-200 dark:border-gray-700"},Fl={class:"-mb-px flex space-x-8"},jl=["onClick"],zl={class:"mt-4"},Ul={class:"bg-gray-900 rounded-lg overflow-hidden"},Hl={class:"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700"},ql={class:"text-sm text-gray-300"},Kl=["onClick"],Wl={class:"p-4 text-sm text-gray-100 overflow-x-auto"},Gs=s.defineComponent({__name:"CodeTabs",props:{tabs:{},defaultTab:{default:void 0}},setup(e){const t=e,n=s.ref(t.defaultTab||t.tabs[0]?.id||""),r=async o=>{try{await navigator.clipboard.writeText(o),console.log("Код скопійовано!")}catch(i){console.error("Помилка копіювання:",i)}};return(o,i)=>(s.openBlock(),s.createElementBlock("div",Ll,[s.createElementVNode("div",Pl,[s.createElementVNode("nav",Fl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>(s.openBlock(),s.createElementBlock("button",{key:l.id,onClick:a=>n.value=l.id,class:s.normalizeClass(["py-2 px-1 border-b-2 font-medium text-sm transition-colors",n.value===l.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"])},s.toDisplayString(l.label),11,jl))),128))])]),s.createElementVNode("div",zl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.tabs,l=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:l.id},[s.createElementVNode("div",Ul,[s.createElementVNode("div",Hl,[s.createElementVNode("span",ql,s.toDisplayString(l.label),1),s.createElementVNode("button",{onClick:a=>r(l.content),class:"text-gray-400 hover:text-white transition-colors",title:"Копіювати код"},i[0]||(i[0]=[s.createElementVNode("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s.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,Kl)]),s.createElementVNode("pre",Wl,[s.createElementVNode("code",null,s.toDisplayString(l.content),1)])])])),[[s.vShow,n.value===l.id]])),128))])]))}}),Gl={key:0,class:"vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Jl={class:"m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12"},Yl={class:"py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]"},Xl={class:"font-medium text-gray-800 dark:text-[#ffffff]"},Zl={class:"sr-only"},Ql={class:"ui-dialog__content p-4 overflow-y-auto flex-1"},Vl={class:"p-4"},ea={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},ta={class:"text-sm font-[600] text-gray-500"},na={class:"flex items-center gap-[10px] -ml-[10px] my-[10px]"},sa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ra={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},oa={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},ia={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},la={class:"h-[14px] w-[14px] border rounded-full flex items-center justify-center"},aa={key:0,class:"block h-[8px] w-[8px] rounded-full bg-blue-500"},ca={class:"mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]"},da={class:"flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0"},pa={class:"flex items-center gap-[4px]"},fa=["id","value"],ua=["for"],ha={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",height:"12",width:"12"},ma={class:"text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400"},ga={class:"pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700"},va={class:"text-sm font-[600] text-gray-500"},ya={class:"mt-2 space-y-2"},ba={class:"flex items-center"},Ea={for:"json",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},ka={class:"flex items-center"},xa={for:"csv",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},wa={class:"flex items-center"},Na={for:"xlsx",class:"text-sm text-gray-800 ms-3 dark:text-neutral-400"},Sa={key:0,class:"p-3 border rounded-md bg-gray-50 text-sm text-gray-700 whitespace-pre-line mb-4 dark:bg-neutral-800 dark:text-neutral-200"},Ca={class:"flex items-center gap-2 mb-2"},_a={class:"flex justify-end gap-x-2"},Ta={class:"flex w-full justify-end p-[20px] gap-[6px] border-t"},Da=["disabled"],Oa={key:0,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/60"},Ba={class:"rounded-lg bg-white p-6 text-center shadow-xl dark:bg-neutral-900 w-[320px]"},Ia={class:"text-sm font-medium text-gray-700 dark:text-neutral-200"},Aa={class:"mt-2 text-xs text-gray-500 whitespace-pre-line dark:text-neutral-400"},Js=s.defineComponent({__name:"Export",props:{table:{},columns:{}},setup(e){const t=s.getCurrentInstance(),n=Tt(),r=e,o=s.ref(!1),i=s.ref([]),l=s.ref("json"),a=s.ref(!1),c=s.ref(!1),p=s.ref(""),m=s.ref(!1),d=s.ref("all"),u=s.computed(()=>r.columns??[]),h=s.useAttrs();function E(){i.value=u.value.map(w=>w.name),l.value="json",o.value=!0,m.value=!1}function v(){o.value=!1,m.value=!1}function _(){i.value=u.value.map(w=>w.name),d.value="all"}function C(){const w=u.value.filter(b=>!b.hidden).map(b=>b.name);i.value=w.length?w:u.value.map(b=>b.name),d.value="active"}function A(){i.value=[],d.value="none"}async function T(){if(i.value.length===0)return;a.value=!0,p.value="",c.value=!1;const w=new URLSearchParams({table:r.table,format:l.value,columns:i.value.join(",")});try{const b=await fetch(`/api/export?${w.toString()}`,{method:"GET",headers:{Accept:"text/event-stream, */*"}});if(!b.ok)throw new Error("Export failed");if(b.headers.get("content-type")?.includes("text/event-stream")){if(v(),c.value=!0,m.value=!0,!await I(b,H=>{p.value=H}))throw new Error("Failed to process streamed export");p.value=n("table.preparingDownload"),await k(w),c.value=!1,m.value=!1}else await D(b),v()}catch(b){console.error(b);const{$notify:S=console.log}=t?.appContext?.config?.globalProperties||{};S({type:"error",title:"Помилка",message:"Не вдалося єкспортувати файл"}),c.value=!1,m.value=!1}finally{a.value=!1}}const $=s.ref("uk"),P=w=>{w.detail.key==="locale"&&($.value=w.detail.newValue)};s.onUnmounted(()=>{window.removeEventListener("storage",P)}),s.onMounted(()=>{window.addEventListener("storage",P),$.value=localStorage.locale});function te(w,b){const S=URL.createObjectURL(w),O=document.createElement("a");O.href=S,O.download=b||`${r.table}.${l.value}`,document.body.appendChild(O),O.click(),O.remove(),URL.revokeObjectURL(S)}async function D(w){const b=await w.blob();te(b,`${r.table}.${l.value}`)}async function k(w){const b=await fetch(`/api/export?${w.toString()}`,{method:"GET",headers:{Accept:"*/*"}});if(!b.ok)throw new Error("Export failed");await D(b)}function x(w){return w.split(/\r?\n/).reduce((b,S)=>{const[O,...H]=S.split(":");if(!O)return b;const Q=H.join(":").trimStart();return O==="event"&&(b.event=Q),O==="data"&&(b.data=(b.data?`${b.data}
|
|
22
|
+
`:"")+Q),b},{})}async function I(w,b){const S=w.body?.getReader();if(!S)return!1;const O=new TextDecoder;let H="",Q=!1;for(;;){const{value:ye,done:ke}=await S.read();if(ke)break;H+=O.decode(ye,{stream:!0});let ne=H.indexOf(`
|
|
23
23
|
|
|
24
|
-
`);for(;
|
|
24
|
+
`);for(;ne!==-1;){const ce=H.slice(0,ne).trim();if(H=H.slice(ne+2),ce){const et=x(ce).data?.trim();et&&(Q=F(et,b)||Q)}ne=H.indexOf(`
|
|
25
25
|
|
|
26
|
-
`)}}return ee}function R(k,y){const N=k.trim();if(!N)return!1;try{const T=JSON.parse(N);return T.message&&y&&y(T.message),T.status&&y&&y(T.status),!!(T.done||T.complete)}catch{const H=N.toLowerCase();return y&&y(N),!!(H==="[done]"||H.startsWith("finish"))}}return(k,y)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:E,class:s.normalizeClass([[s.unref(h).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},[y[4]||(y[4]=s.createStaticVNode('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.export")),1)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[o.value?(s.openBlock(),s.createElementBlock("div",Fl,[s.createElementVNode("div",jl,[s.createElementVNode("div",zl,[s.createElementVNode("h3",Ul,s.toDisplayString(s.unref(n)("table.exportTitle")),1),s.createElementVNode("button",{type:"button",onClick:v,class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"},[s.createElementVNode("span",Hl,s.toDisplayString(s.unref(n)("table.close")),1),y[5]||(y[5]=s.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M18 6 6 18"}),s.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),s.createElementVNode("div",ql,[s.createElementVNode("div",Kl,[s.createElementVNode("div",Wl,[s.createElementVNode("h2",Gl,s.toDisplayString(s.unref(n)("table.chooseColumns")),1),s.createElementVNode("div",Jl,[s.createElementVNode("button",{onClick:C,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Yl,[d.value==="all"?(s.openBlock(),s.createElementBlock("span",Xl)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectAll")),1)]),s.createElementVNode("button",{onClick:S,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Zl,[d.value==="active"?(s.openBlock(),s.createElementBlock("span",Ql)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectCurrent")),1)]),s.createElementVNode("button",{onClick:A,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",Vl,[d.value==="none"?(s.openBlock(),s.createElementBlock("span",ea)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.none")),1)])]),s.createElementVNode("div",ta,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,N=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:N.name},[s.createElementVNode("div",na,[s.createElementVNode("div",sa,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",id:"radio-"+N.name,value:N.name,"onUpdate:modelValue":y[0]||(y[0]=T=>i.value=T)},null,8,ra),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+N.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[s.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:s.normalizeStyle(i.value.includes(N.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",ia,y[6]||(y[6]=[s.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[s.vShow,i.value.includes(N.name)]])],4),s.createElementVNode("span",la,s.toDisplayString(N[$.value]||N.header||N.ua||N.name),1)],8,oa)])])]))),128))])]),s.createElementVNode("div",aa,[s.createElementVNode("h2",ca,s.toDisplayString(s.unref(n)("table.chooseFormat")),1),s.createElementVNode("div",da,[s.createElementVNode("div",pa,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"json",value:"json","onUpdate:modelValue":y[1]||(y[1]=N=>l.value=N)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",fa,s.toDisplayString(s.unref(n)("table.format.json")),1)]),s.createElementVNode("div",ua,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"csv",value:"csv","onUpdate:modelValue":y[2]||(y[2]=N=>l.value=N)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",ha,s.toDisplayString(s.unref(n)("table.format.csv")),1)]),s.createElementVNode("div",ma,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"xlsx",value:"xlsx","onUpdate:modelValue":y[3]||(y[3]=N=>l.value=N)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",ga,s.toDisplayString(s.unref(n)("table.format.xlsx")),1)])])])]),c.value?(s.openBlock(),s.createElementBlock("div",va,[s.createElementVNode("div",ya,[y[7]||(y[7]=s.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("span",null,s.toDisplayString(s.unref(n)("table.processingExport")),1)]),s.createElementVNode("div",null,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",ba,[s.createElementVNode("div",Ea,[s.createElementVNode("button",{type:"button",onClick:v,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},s.toDisplayString(s.unref(n)("table.cancel")),1),s.createElementVNode("button",{type:"button",onClick:D,disabled:i.value.length===0||a.value,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"},s.toDisplayString(s.unref(n)("table.download")),9,ka)])])])])):s.createCommentVNode("",!0)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[m.value?(s.openBlock(),s.createElementBlock("div",xa,[s.createElementVNode("div",Na,[y[8]||(y[8]=s.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("p",wa,s.toDisplayString(s.unref(n)("table.processingExport")),1),s.createElementVNode("p",Sa,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])])):s.createCommentVNode("",!0)]))],64))}});kt.install=function(t){t.component("DataTable",kt),t.component("Column",Fs),t.component("Pagination",_t),t.component("SelectionInfo",js),t.component("CodeTabs",zs),t.component("ColumnsSettings",En),t.component("Export",Us)},G.ArrayFormat=Sn,G.BadgeFormat=wn,G.BooleanFormat=_n,G.CodeTabs=zs,G.Column=Fs,G.ColumnsSettings=En,G.DataTable=kt,G.DateFormat=xn,G.Export=Us,G.GeomFormat=Tn,G.NumberFormat=kn,G.Pagination=_t,G.SelectFormat=Cn,G.SelectionInfo=js,G.TextFormat=Nn,G.default=kt,G.formatComponents=Ct,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
26
|
+
`)}}return Q}function F(w,b){const S=w.trim();if(!S)return!1;try{const O=JSON.parse(S);return O.message&&b&&b(O.message),O.status&&b&&b(O.status),!!(O.done||O.complete)}catch{const H=S.toLowerCase();return b&&b(S),!!(H==="[done]"||H.startsWith("finish"))}}return(w,b)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("button",{onClick:E,class:s.normalizeClass([[s.unref(h).class],"py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])},[b[4]||(b[4]=s.createStaticVNode('<svg class="flex-shrink-0 mt-0.5 size-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="16" width="16"><path d="m3 16 4 4 4-4"></path><path d="M7 20V4"></path><path d="m21 8-4-4-4 4"></path><path d="M17 4v16"></path></svg>',1)),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.export")),1)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[o.value?(s.openBlock(),s.createElementBlock("div",Gl,[s.createElementVNode("div",Jl,[s.createElementVNode("div",Yl,[s.createElementVNode("h3",Xl,s.toDisplayString(s.unref(n)("table.exportTitle")),1),s.createElementVNode("button",{type:"button",onClick:v,class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"},[s.createElementVNode("span",Zl,s.toDisplayString(s.unref(n)("table.close")),1),b[5]||(b[5]=s.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s.createElementVNode("path",{d:"M18 6 6 18"}),s.createElementVNode("path",{d:"m6 6 12 12"})],-1))])]),s.createElementVNode("div",Ql,[s.createElementVNode("div",Vl,[s.createElementVNode("div",ea,[s.createElementVNode("h2",ta,s.toDisplayString(s.unref(n)("table.chooseColumns")),1),s.createElementVNode("div",na,[s.createElementVNode("button",{onClick:_,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",sa,[d.value==="all"?(s.openBlock(),s.createElementBlock("span",ra)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectAll")),1)]),s.createElementVNode("button",{onClick:C,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",oa,[d.value==="active"?(s.openBlock(),s.createElementBlock("span",ia)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.selectCurrent")),1)]),s.createElementVNode("button",{onClick:A,class:"inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"},[s.createElementVNode("span",la,[d.value==="none"?(s.openBlock(),s.createElementBlock("span",aa)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(s.unref(n)("table.none")),1)])]),s.createElementVNode("div",ca,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.value,S=>(s.openBlock(),s.createElementBlock("div",{class:"flex items-center",style:{width:"calc(50% - 5px)"},key:S.name},[s.createElementVNode("div",da,[s.createElementVNode("div",pa,[s.withDirectives(s.createElementVNode("input",{type:"checkbox",class:"shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",id:"radio-"+S.name,value:S.name,"onUpdate:modelValue":b[0]||(b[0]=O=>i.value=O)},null,8,fa),[[s.vModelCheckbox,i.value]]),s.createElementVNode("label",{for:"radio-"+S.name,class:"flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300"},[s.createElementVNode("div",{class:"h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",style:s.normalizeStyle(i.value.includes(S.name)?"background-color: rgb(37,99,235); border-color: transparent;":"")},[s.withDirectives((s.openBlock(),s.createElementBlock("svg",ha,b[6]||(b[6]=[s.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]),512)),[[s.vShow,i.value.includes(S.name)]])],4),s.createElementVNode("span",ma,s.toDisplayString(S[$.value]||S.header||S.ua||S.name),1)],8,ua)])])]))),128))])]),s.createElementVNode("div",ga,[s.createElementVNode("h2",va,s.toDisplayString(s.unref(n)("table.chooseFormat")),1),s.createElementVNode("div",ya,[s.createElementVNode("div",ba,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"json",value:"json","onUpdate:modelValue":b[1]||(b[1]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",Ea,s.toDisplayString(s.unref(n)("table.format.json")),1)]),s.createElementVNode("div",ka,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"csv",value:"csv","onUpdate:modelValue":b[2]||(b[2]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",xa,s.toDisplayString(s.unref(n)("table.format.csv")),1)]),s.createElementVNode("div",wa,[s.withDirectives(s.createElementVNode("input",{type:"radio",name:"hs-pro-duecmfm",class:"text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",id:"xlsx",value:"xlsx","onUpdate:modelValue":b[3]||(b[3]=S=>l.value=S)},null,512),[[s.vModelRadio,l.value]]),s.createElementVNode("label",Na,s.toDisplayString(s.unref(n)("table.format.xlsx")),1)])])])]),c.value?(s.openBlock(),s.createElementBlock("div",Sa,[s.createElementVNode("div",Ca,[b[7]||(b[7]=s.createElementVNode("svg",{class:"animate-spin h-4 w-4 text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("span",null,s.toDisplayString(s.unref(n)("table.processingExport")),1)]),s.createElementVNode("div",null,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",_a,[s.createElementVNode("div",Ta,[s.createElementVNode("button",{type:"button",onClick:v,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},s.toDisplayString(s.unref(n)("table.cancel")),1),s.createElementVNode("button",{type:"button",onClick:T,disabled:i.value.length===0||a.value,class:"inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"},s.toDisplayString(s.unref(n)("table.download")),9,Da)])])])])):s.createCommentVNode("",!0)])),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[m.value?(s.openBlock(),s.createElementBlock("div",Oa,[s.createElementVNode("div",Ba,[b[8]||(b[8]=s.createElementVNode("svg",{class:"mx-auto mb-4 h-8 w-8 animate-spin text-blue-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),s.createElementVNode("p",Ia,s.toDisplayString(s.unref(n)("table.processingExport")),1),s.createElementVNode("p",Aa,s.toDisplayString(p.value||s.unref(n)("table.waitingExport")),1)])])):s.createCommentVNode("",!0)]))],64))}});Nt.install=function(t){t.component("DataTable",Nt),t.component("Column",Ks),t.component("Pagination",Ot),t.component("SelectionInfo",Ws),t.component("CodeTabs",Gs),t.component("ColumnsSettings",xn),t.component("Export",Js)},K.ArrayFormat=_n,K.BadgeFormat=Cn,K.BooleanFormat=Dn,K.CodeTabs=Gs,K.Column=Ks,K.ColumnsSettings=xn,K.DataTable=Nt,K.DateFormat=Nn,K.Export=Js,K.GeomFormat=On,K.NumberFormat=wn,K.Pagination=Ot,K.SelectFormat=Tn,K.SelectionInfo=Ws,K.TextFormat=Sn,K.default=Nt,K.formatComponents=Dt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|