const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/jspdf.es.min-CY_STL60.js","js/index-BI6CMai0.js","js/vue-vendor-C7Zq48Yl.js","js/antd-vue-vendor-BPnV8VqP.js","js/vxe-table-vendor-B88kchpX.js","assets/index-CaK6YpON.css","js/browser-B0xVgIeL.js"])))=>i.map(i=>d[i]); var Rt=Object.defineProperty,zt=Object.defineProperties;var Wt=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var G=Math.pow,ut=(t,e,r)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,H=(t,e)=>{for(var r in e||(e={}))gt.call(e,r)&&ut(t,r,e[r]);if(rt)for(var r of rt(e))pt.call(e,r)&&ut(t,r,e[r]);return t},_=(t,e)=>zt(t,Wt(e));var at=(t,e)=>{var r={};for(var a in t)gt.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&rt)for(var a of rt(t))e.indexOf(a)<0&&pt.call(t,a)&&(r[a]=t[a]);return r};var O=(t,e,r)=>new Promise((a,o)=>{var s=c=>{try{d(r.next(c))}catch(b){o(b)}},u=c=>{try{d(r.throw(c))}catch(b){o(b)}},d=c=>c.done?a(c.value):Promise.resolve(c.value).then(s,u);d((r=r.apply(t,e)).next())});import{r as Dt,e as Et}from"./vue-vendor-C7Zq48Yl.js";import{d as bt}from"./antd-vue-vendor-BPnV8VqP.js";import{Q as It}from"./browser-INOPQ3v-.js";import{b as Lt}from"./tableMerge-CpKVscEF.js";import{g as tt,r as nt,n as ct}from"./tableBuilder-lOY0L2dW.js";import{n as qt}from"./freeTableGrid-BXWKfNhh.js";import{r as Ot,b as Ut}from"./freeTableBorders-DHo40MDb.js";import{r as jt,a as Kt,b as Vt}from"./freeTableTracks-CfeiVurn.js";import{_ as yt}from"./index-BI6CMai0.js";function ot(t,e){const r=t.bindField;if(r)return String(r).split(".").reduce((a,o)=>a==null?void 0:a[o],e||{})}function Yt(t,e,r=1,a=1){var s,u,d,c;const o=ot(t,e);if(o!=null&&t.type!=="pageNo")return t.type==="date"?bt(o).format(t.format||"YYYY-MM-DD"):String(o);if(t.type==="date")return bt().format(t.format||"YYYY-MM-DD");if(t.type==="pageNo")return t.text.replace("{{pageNo}}",String(r)).replace("{{totalPages}}",String(a));if((s=t.text)!=null&&s.startsWith("{{")&&((u=t.text)!=null&&u.endsWith("}}"))){const b=t.text.replaceAll("{","").replaceAll("}","").trim();return String((d=tt(e||{},b))!=null?d:"")}return String((c=t.text)!=null?c:"")}function Gt(t,e){return O(this,null,function*(){const r=Math.max(1,Number((t==null?void 0:t.rowCount)||1)),a=Math.max(1,Number((t==null?void 0:t.colCount)||1)),o=Math.max(.01,Number(t==null?void 0:t.w)||.01),s=Math.max(.01,Number(t==null?void 0:t.h)||.01),u=jt(t),d=Kt(t),c=String((t==null?void 0:t.borderColor)||"#d9d9d9"),b=Math.max(1,Number((t==null?void 0:t.borderWidth)||1)),m=`
[]);return u.forEach(i=>{if(s[i.row][i.col]!==i)return;const h=e.slice(i.col,i.col+i.colspan).reduce((n,y)=>n+Number((y==null?void 0:y.widthPercent)||0),0);c[i.row].push(_(H({},i),{widthPercent:h}))}),c.forEach(i=>i.sort((h,n)=>h.col-n.col)),c}function $t(t,e){return O(this,null,function*(){const r=String(t||"empty");return It.toDataURL(r,{errorCorrectionLevel:(e==null?void 0:e.qrLevel)||"M",margin:0,type:(e==null?void 0:e.qrRenderType)||"image/png",width:220})})}function Tt(t,e,r){return O(this,null,function*(){const a=String(e||""),o=(r==null?void 0:r.fillCell)!==!1,s=Math.max(10,Math.min(100,Number((r==null?void 0:r.contentScale)||100)));if(t==="image")return`
`;if(t==="qrcode")try{return``}catch(u){return`
p&&(h.style.width=`${y}px`),{sw:y,sh:f}=n();let S=wt(h);y=Math.max(y,S.sw),f=Math.max(f,S.sh),h.style.minHeight=`${f}px`,h.style.width=`${Math.max(p,y)}px`,{sw:y,sh:f}=n(),S=wt(h),y=Math.max(y,S.sw),f=Math.max(f,S.sh);const g=12e3;let T=2;for(;Math.max(y,f)*T>g&&T>.75;)T-=.25;const C=yield m(h,{backgroundColor:"#ffffff",scale:T,useCORS:!0,allowTaint:!0,logging:!1,width:y,height:f,windowWidth:y,windowHeight:f,onclone:(k,B)=>{var A;const F=((A=B.querySelector)==null?void 0:A.call(B,".lodop-print-root"))||B;if(!F)return;F.style.minHeight=`${f}px`,F.style.width=`${y}px`,F.style.overflow="visible";const I=D=>{const N=D.style;(N.overflow==="hidden"||N.overflowX==="hidden"||N.overflowY==="hidden")&&N.setProperty("overflow","visible","important"),Array.from(D.children).forEach(z=>I(z))};I(F)}}),l=Math.max(1,C.width),x=Math.max(1,C.height),$=1;if(d){const k=Math.max(e,ft(y)+$),B=Math.max(1,r),F=Math.max(1,Math.round(xt(B)*T)),I=new c({unit:"mm",format:[k,B]});let A=0,D=!0;const N=Math.max(8,Math.floor(F*.02));for(;A