UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

10 lines 99.1 kB
import{N as Cn}from"./NewbieProvider-45d73778.js";import{p as Sn,v as vt,d as On,e as $n,a as Pn,F as xn}from"./index-16cac109.js";import{u as In,S as jn}from"./network-3dbc60ad.js";import{N as Tn}from"./NewbieButton-00521913.js";import{i as Yt,A as ee,d as x,w as ht,_ as E,c as J,P as Dn,g as Qe,T as he,m as Le,V as Je,r as Ke,u as Oe,j as _e,h as bt,H as Zt,s as K,p as N,o as q,I as ie,G as me,an as Ye,e as $e,b as Fn,q as ze,a2 as kn,ao as Rn,k as En,L as yt,B as An,W as Qt,n as Mn,E as Ln,v as zn}from"./compact-item-45f3d050.js";import{a as Ce,K as wt,p as Nn}from"./pickAttrs-024293c9.js";import{b as _n,c as Un,i as Bn,u as Hn,T as Jt,p as Ct}from"./useRefs-c46ab4e4.js";import{d as m,r as X,aL as Se,az as ue,O as H,y as D,bp as oe,bq as Kt,a_ as te,F as Ue,aH as Xn,ac as en,aE as tn,v as Wn,aF as Vn,av as nn,k as Gn,bv as rn,bm as on,l as qn,a3 as Yn,b5 as Zn,ao as Qn,ak as Jn,f as Kn}from"./app-e5356031.js";import{d as Ae,B as St}from"./index-2bac9f50.js";import{E as an}from"./EyeOutlined-9657ac6a.js";import{i as er,C as ln,K as et,a as tr}from"./ExclamationCircleFilled-71949edd.js";import{u as tt,L as nr,R as rr,C as or}from"./LeftOutlined-8f1bdfd3.js";import{C as ir}from"./CloseCircleFilled-7d1a9da0.js";import{u as ar}from"./FormItemContext-af84826a.js";import{d as lr,D as sr,g as cr,i as ur}from"./index-4cb0cbae.js";import{m as De}from"./index-b4cb0b96.js";function dr(e,t,r,n){for(var o=-1,f=e==null?0:e.length;++o<f;){var s=e[o];t(n,s,r(s),e)}return n}function fr(e,t,r,n){return _n(e,function(o,f,s){t(n,o,r(o),s)}),n}function pr(e,t){return function(r,n){var o=Yt(r)?dr:fr,f=t?t():{};return o(r,e,Sn(n),f)}}var gr=pr(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const mr=gr;var vr=Math.floor,hr=Math.random;function br(e,t){return e+vr(hr()*(t-e+1))}var yr=parseFloat,wr=Math.min,Cr=Math.random;function Sr(e,t,r){if(r&&typeof r!="boolean"&&Un(e,t,r)&&(t=r=void 0),r===void 0&&(typeof t=="boolean"?(r=t,t=void 0):typeof e=="boolean"&&(r=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=vt(e),t===void 0?(t=e,e=0):t=vt(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=Cr();return wr(e+o*(t-e+yr("1e-"+((o+"").length-1))),t)}return br(e,t)}var Or={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};const $r=Or;function Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){Pr(e,o,r[o])})}return e}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nt=function(t,r){var n=Ot({},t,r.attrs);return m(ee,Ot({},n,{icon:$r}),null)};nt.displayName="CloudUploadOutlined";nt.inheritAttrs=!1;const $t=nt;var xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ir=xr;function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){jr(e,o,r[o])})}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rt=function(t,r){var n=Pt({},t,r.attrs);return m(ee,Pt({},n,{icon:Ir}),null)};rt.displayName="DeleteOutlined";rt.inheritAttrs=!1;const Tr=rt;var Dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Fr=Dr;function xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){kr(e,o,r[o])})}return e}function kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot=function(t,r){var n=xt({},t,r.attrs);return m(ee,xt({},n,{icon:Fr}),null)};ot.displayName="DownloadOutlined";ot.inheritAttrs=!1;const Rr=ot;var Er={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const Ar=Er;function It(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){Mr(e,o,r[o])})}return e}function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var it=function(t,r){var n=It({},t,r.attrs);return m(ee,It({},n,{icon:Ar}),null)};it.displayName="FileTwoTone";it.inheritAttrs=!1;const Lr=it;var zr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const Nr=zr;function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){_r(e,o,r[o])})}return e}function _r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var at=function(t,r){var n=jt({},t,r.attrs);return m(ee,jt({},n,{icon:Nr}),null)};at.displayName="PaperClipOutlined";at.inheritAttrs=!1;const Ur=at;var Br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"};const Hr=Br;function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){Xr(e,o,r[o])})}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lt=function(t,r){var n=Tt({},t,r.attrs);return m(ee,Tt({},n,{icon:Hr}),null)};lt.displayName="PictureOutlined";lt.inheritAttrs=!1;const Wr=lt;var Vr={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const Gr=Vr;function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){qr(e,o,r[o])})}return e}function qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var st=function(t,r){var n=Dt({},t,r.attrs);return m(ee,Dt({},n,{icon:Gr}),null)};st.displayName="PictureTwoTone";st.inheritAttrs=!1;const Yr=st;var Zr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const Qr=Zr;function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){Jr(e,o,r[o])})}return e}function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ct=function(t,r){var n=Ft({},t,r.attrs);return m(ee,Ft({},n,{icon:Qr}),null)};ct.displayName="RotateLeftOutlined";ct.inheritAttrs=!1;const Kr=ct;var eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const to=eo;function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){no(e,o,r[o])})}return e}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ut=function(t,r){var n=kt({},t,r.attrs);return m(ee,kt({},n,{icon:to}),null)};ut.displayName="RotateRightOutlined";ut.inheritAttrs=!1;const ro=ut;var oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const io=oo;function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){ao(e,o,r[o])})}return e}function ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dt=function(t,r){var n=Rt({},t,r.attrs);return m(ee,Rt({},n,{icon:io}),null)};dt.displayName="SwapOutlined";dt.inheritAttrs=!1;const Et=dt;var lo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const so=lo;function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){co(e,o,r[o])})}return e}function co(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ft=function(t,r){var n=At({},t,r.attrs);return m(ee,At({},n,{icon:so}),null)};ft.displayName="ZoomInOutlined";ft.inheritAttrs=!1;const uo=ft;var fo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const po=fo;function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach(function(o){go(e,o,r[o])})}return e}function go(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pt=function(t,r){var n=Mt({},t,r.attrs);return m(ee,Mt({},n,{icon:po}),null)};pt.displayName="ZoomOutOutlined";pt.inheritAttrs=!1;const mo=pt;function vo(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function sn(e){const t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function ho(e){const t=X(null),r=Se(x({},e)),n=X([]),o=f=>{t.value===null&&(n.value=[],t.value=ht(()=>{let s;n.value.forEach(p=>{s=x(x({},s),p)}),x(r,s),t.value=null})),n.value.push(f)};return ue(()=>{t.value&&ht.cancel(t.value)}),[r,o]}function Lt(e,t,r,n){const o=t+r,f=(r-n)/2;if(r>n){if(t>0)return{[e]:f};if(t<0&&o<n)return{[e]:-f}}else if(t<0||o>n)return{[e]:t<0?f:-f};return{}}function bo(e,t,r,n){const{width:o,height:f}=vo();let s=null;return e<=o&&t<=f?s={x:0,y:0}:(e>o||t>f)&&(s=x(x({},Lt("x",r,e,o)),Lt("y",n,t,f))),s}var yo=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const zt=Symbol("previewGroupContext"),gt={provide:e=>{Xn(zt,e)},inject:()=>en(zt,{isPreviewGroup:te(!1),previewUrls:D(()=>new Map),setPreviewUrls:()=>{},current:X(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},wo=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),Co=H({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:wo(),setup(e,t){let{slots:r}=t;const n=D(()=>{const u={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?fn(e.preview,u):u}),o=Se(new Map),f=X(),s=D(()=>n.value.visible),p=D(()=>n.value.getContainer),b=(u,v)=>{var y,L;(L=(y=n.value).onVisibleChange)===null||L===void 0||L.call(y,u,v)},[I,h]=tt(!!s.value,{value:s,onChange:b}),T=X(null),j=D(()=>s.value!==void 0),w=D(()=>Array.from(o.keys())),l=D(()=>w.value[n.value.current]),a=D(()=>new Map(Array.from(o).filter(u=>{let[,{canPreview:v}]=u;return!!v}).map(u=>{let[v,{url:y}]=u;return[v,y]}))),d=function(u,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o.set(u,{url:v,canPreview:y})},c=u=>{f.value=u},i=u=>{T.value=u},C=function(u,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const L=()=>{o.delete(u)};return o.set(u,{url:v,canPreview:y}),L},g=u=>{u==null||u.stopPropagation(),h(!1),i(null)};return oe(l,u=>{c(u)},{immediate:!0,flush:"post"}),Kt(()=>{I.value&&j.value&&c(l.value)},{flush:"post"}),gt.provide({isPreviewGroup:te(!0),previewUrls:a,setPreviewUrls:d,current:f,setCurrent:c,setShowPreview:h,setMousePosition:i,registerImage:C}),()=>{const u=yo(n.value,[]);return m(Ue,null,[r.default&&r.default(),m(un,E(E({},u),{},{"ria-hidden":!I.value,visible:I.value,prefixCls:e.previewPrefixCls,onClose:g,mousePosition:T.value,src:a.value.get(f.value),icons:e.icons,getContainer:p.value}),null)])}}}),cn=Co,ge={x:0,y:0},So=x(x({},lr()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),Oo=H({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:So,emits:["close","afterClose"],setup(e,t){let{emit:r,attrs:n}=t;const{rotateLeft:o,rotateRight:f,zoomIn:s,zoomOut:p,close:b,left:I,right:h,flipX:T,flipY:j}=Se(e.icons),w=te(1),l=te(0),a=Se({x:1,y:1}),[d,c]=ho(ge),i=()=>r("close"),C=te(),g=Se({originX:0,originY:0,deltaX:0,deltaY:0}),u=te(!1),v=gt.inject(),{previewUrls:y,current:L,isPreviewGroup:z,setCurrent:R}=v,S=D(()=>y.value.size),O=D(()=>Array.from(y.value.keys())),$=D(()=>O.value.indexOf(L.value)),F=D(()=>z.value?y.value.get(L.value):e.src),k=D(()=>z.value&&S.value>1),M=te({wheelDirection:0}),A=()=>{w.value=1,l.value=0,c(ge),r("afterClose")},P=_=>{_?w.value+=.5:w.value++,c(ge)},U=_=>{w.value>1&&(_?w.value-=.5:w.value--),c(ge)},B=()=>{l.value+=90},V=()=>{l.value-=90},G=()=>{a.x=-a.x},Y=()=>{a.y=-a.y},Z=_=>{_.preventDefault(),_.stopPropagation(),$.value>0&&R(O.value[$.value-1])},ne=_=>{_.preventDefault(),_.stopPropagation(),$.value<S.value-1&&R(O.value[$.value+1])},re=J({[`${e.prefixCls}-moving`]:u.value}),Pe=`${e.prefixCls}-operations-operation`,xe=`${e.prefixCls}-operations-icon`,de=[{icon:b,onClick:i,type:"close"},{icon:s,onClick:()=>P(),type:"zoomIn"},{icon:p,onClick:()=>U(),type:"zoomOut",disabled:D(()=>w.value===1)},{icon:f,onClick:B,type:"rotateRight"},{icon:o,onClick:V,type:"rotateLeft"},{icon:T,onClick:G,type:"flipX"},{icon:j,onClick:Y,type:"flipY"}],ye=()=>{if(e.visible&&u.value){const _=C.value.offsetWidth*w.value,Q=C.value.offsetHeight*w.value,{left:ae,top:pe}=sn(C.value),le=l.value%180!==0;u.value=!1;const se=bo(le?Q:_,le?_:Q,ae,pe);se&&c(x({},se))}},Ie=_=>{_.button===0&&(_.preventDefault(),_.stopPropagation(),g.deltaX=_.pageX-d.x,g.deltaY=_.pageY-d.y,g.originX=d.x,g.originY=d.y,u.value=!0)},fe=_=>{e.visible&&u.value&&c({x:_.pageX-g.deltaX,y:_.pageY-g.deltaY})},W=_=>{if(!e.visible)return;_.preventDefault();const Q=_.deltaY;M.value={wheelDirection:Q}},je=_=>{!e.visible||!k.value||(_.preventDefault(),_.keyCode===wt.LEFT?$.value>0&&R(O.value[$.value-1]):_.keyCode===wt.RIGHT&&$.value<S.value-1&&R(O.value[$.value+1]))},we=()=>{e.visible&&(w.value!==1&&(w.value=1),(d.x!==ge.x||d.y!==ge.y)&&c(ge))};let Te=()=>{};return ue(()=>{oe([()=>e.visible,u],()=>{Te();let _,Q;const ae=Ce(window,"mouseup",ye,!1),pe=Ce(window,"mousemove",fe,!1),le=Ce(window,"wheel",W,{passive:!1}),se=Ce(window,"keydown",je,!1);try{window.top!==window.self&&(_=Ce(window.top,"mouseup",ye,!1),Q=Ce(window.top,"mousemove",fe,!1))}catch{}Te=()=>{ae.remove(),pe.remove(),le.remove(),se.remove(),_&&_.remove(),Q&&Q.remove()}},{flush:"post",immediate:!0}),oe([M],()=>{const{wheelDirection:_}=M.value;_>0?U(!0):_<0&&P(!0)})}),tn(()=>{Te()}),()=>{const{visible:_,prefixCls:Q,rootClassName:ae}=e;return m(sr,E(E({},n),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:Q,onClose:i,afterClose:A,visible:_,wrapClassName:re,rootClassName:ae,getContainer:e.getContainer}),{default:()=>[m("div",{class:[`${e.prefixCls}-operations-wrapper`,ae]},[m("ul",{class:`${e.prefixCls}-operations`},[de.map(pe=>{let{icon:le,onClick:se,type:mt,disabled:ke}=pe;return m("li",{class:J(Pe,{[`${e.prefixCls}-operations-operation-disabled`]:ke&&(ke==null?void 0:ke.value)}),onClick:se,key:mt},[Wn(le,{class:xe})])})])]),m("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${d.x}px, ${d.y}px, 0)`}},[m("img",{onMousedown:Ie,onDblclick:we,ref:C,class:`${e.prefixCls}-img`,src:F.value,alt:e.alt,style:{transform:`scale3d(${a.x*w.value}, ${a.y*w.value}, 1) rotate(${l.value}deg)`}},null)]),k.value&&m("div",{class:J(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:$.value<=0}),onClick:Z},[I]),k.value&&m("div",{class:J(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:$.value>=S.value-1}),onClick:ne},[h])]})}}}),un=Oo;var $o=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const dn=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Dn.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),fn=(e,t)=>{const r=x({},e);return Object.keys(t).forEach(n=>{e[n]===void 0&&(r[n]=t[n])}),r};let Po=0;const pn=H({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:dn(),emits:["click","error"],setup(e,t){let{attrs:r,slots:n,emit:o}=t;const f=D(()=>e.prefixCls),s=D(()=>`${f.value}-preview`),p=D(()=>{const P={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?fn(e.preview,P):P}),b=D(()=>{var P;return(P=p.value.src)!==null&&P!==void 0?P:e.src}),I=D(()=>e.placeholder&&e.placeholder!==!0||n.placeholder),h=D(()=>p.value.visible),T=D(()=>p.value.getContainer),j=D(()=>h.value!==void 0),w=(P,U)=>{var B,V;(V=(B=p.value).onVisibleChange)===null||V===void 0||V.call(B,P,U)},[l,a]=tt(!!h.value,{value:h,onChange:w});oe(l,(P,U)=>{w(P,U)});const d=X(I.value?"loading":"normal");oe(()=>e.src,()=>{d.value=I.value?"loading":"normal"});const c=X(null),i=D(()=>d.value==="error"),C=gt.inject(),{isPreviewGroup:g,setCurrent:u,setShowPreview:v,setMousePosition:y,registerImage:L}=C,z=X(Po++),R=D(()=>e.preview&&!i.value),S=()=>{d.value="normal"},O=P=>{d.value="error",o("error",P)},$=P=>{if(!j.value){const{left:U,top:B}=sn(P.target);g.value?(u(z.value),y({x:U,y:B})):c.value={x:U,y:B}}g.value?v(!0):a(!0),o("click",P)},F=()=>{a(!1),j.value||(c.value=null)},k=X(null);oe(()=>k,()=>{d.value==="loading"&&k.value.complete&&(k.value.naturalWidth||k.value.naturalHeight)&&S()});let M=()=>{};ue(()=>{oe([b,R],()=>{if(M(),!g.value)return()=>{};M=L(z.value,b.value,R.value),R.value||M()},{flush:"post",immediate:!0})}),tn(()=>{M()});const A=P=>Bn(P)?P+"px":P;return()=>{const{prefixCls:P,wrapperClassName:U,fallback:B,src:V,placeholder:G,wrapperStyle:Y,rootClassName:Z}=e,{width:ne,height:re,crossorigin:Pe,decoding:xe,alt:de,sizes:ye,srcset:Ie,usemap:fe,class:W,style:je}=r,we=p.value,{icons:Te,maskClassName:_}=we,Q=$o(we,["icons","maskClassName"]),ae=J(P,U,Z,{[`${P}-error`]:i.value}),pe=i.value&&B?B:b.value,le={crossorigin:Pe,decoding:xe,alt:de,sizes:ye,srcset:Ie,usemap:fe,width:ne,height:re,class:J(`${P}-img`,{[`${P}-img-placeholder`]:G===!0},W),style:x({height:A(re)},je)};return m(Ue,null,[m("div",{class:ae,onClick:R.value?$:se=>{o("click",se)},style:x({width:A(ne),height:A(re)},Y)},[m("img",E(E(E({},le),i.value&&B?{src:B}:{onLoad:S,onError:O,src:V}),{},{ref:k}),null),d.value==="loading"&&m("div",{"aria-hidden":"true",class:`${P}-placeholder`},[G||n.placeholder&&n.placeholder()]),n.previewMask&&R.value&&m("div",{class:[`${P}-mask`,_]},[n.previewMask()])]),!g.value&&R.value&&m(un,E(E({},Q),{},{"aria-hidden":!l.value,visible:l.value,prefixCls:s.value,onClose:F,mousePosition:c.value,src:pe,alt:de,getContainer:T.value,icons:Te,rootClassName:Z}),null)])}}});pn.PreviewGroup=cn;const xo=pn,Ze=e=>({position:e||"absolute",inset:0}),Io=e=>{const{iconCls:t,motionDurationSlow:r,paddingXXS:n,marginXXS:o,prefixCls:f}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new he("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${f}-mask-info`]:x(x({},Je),{padding:`0 ${n}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},jo=e=>{const{previewCls:t,modalMaskBg:r,paddingSM:n,previewOperationColorDisabled:o,motionDurationSlow:f}=e,s=new he(r).setAlpha(.1),p=s.clone().setAlpha(.2);return{[`${t}-operations`]:x(x({},Ke(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:s.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${f}`,userSelect:"none","&:hover":{background:p.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},To=e=>{const{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:n,previewCls:o,zIndexPopup:f,motionDurationSlow:s}=e,p=new he(t).setAlpha(.1),b=p.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:f+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:p.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${s}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:b.toRgbString()},"&-disabled":{"&, &:hover":{color:n,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},Do=e=>{const{motionEaseOut:t,previewCls:r,motionDurationSlow:n,componentCls:o}=e;return[{[`${o}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:x(x({},Ze()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":x(x({},Ze()),{transition:`transform ${n} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[jo(e),To(e)]}]},Fo=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:x({},Io(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:x({},Ze())}}},ko=e=>{const{previewCls:t}=e;return{[`${t}-root`]:er(e,"zoom"),"&":ur(e,!0)}},gn=Qe("Image",e=>{const t=`${e.componentCls}-preview`,r=Le(e,{previewCls:t,modalMaskBg:new he("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Fo(r),Do(r),cr(Le(r,{componentCls:t})),ko(r)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new he(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new he(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),mn={rotateLeft:m(Kr,null,null),rotateRight:m(ro,null,null),zoomIn:m(uo,null,null),zoomOut:m(mo,null,null),close:m(ln,null,null),left:m(nr,null,null),right:m(rr,null,null),flipX:m(Et,null,null),flipY:m(Et,{rotate:90},null)},Ro=()=>({previewPrefixCls:String,preview:_e()}),Eo=H({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Ro(),setup(e,t){let{attrs:r,slots:n}=t;const{prefixCls:o}=Oe("image",e),f=D(()=>`${o.value}-preview`),[s,p]=gn(o),b=D(()=>{const{preview:I}=e;return I===!1?I:x(x({},typeof I=="object"?I:{}),{rootClassName:p.value})});return()=>s(m(cn,E(E({},x(x({},r),e)),{},{preview:b.value,icons:mn,previewPrefixCls:f.value}),n))}}),vn=Eo,ve=H({name:"AImage",inheritAttrs:!1,props:dn(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:o,rootPrefixCls:f,configProvider:s}=Oe("image",e),[p,b]=gn(o),I=D(()=>{const{preview:h}=e;if(h===!1)return h;const T=typeof h=="object"?h:{};return x(x({icons:mn},T),{transitionName:bt(f.value,"zoom",T.transitionName),maskTransitionName:bt(f.value,"fade",T.maskTransitionName)})});return()=>{var h,T;const j=((T=(h=s.locale)===null||h===void 0?void 0:h.value)===null||T===void 0?void 0:T.Image)||Zt.Image,w=()=>m("div",{class:`${o.value}-mask-info`},[m(an,null,null),j==null?void 0:j.preview]),{previewMask:l=r.previewMask||w}=e;return p(m(xo,E(E({},x(x(x({},n),e),{prefixCls:o.value})),{},{preview:I.value,rootClassName:J(e.rootClassName,b.value)}),x(x({},r),{previewMask:typeof l=="function"?l:null})))}}});ve.PreviewGroup=vn;ve.install=function(e){return e.component(ve.name,ve),e.component(ve.PreviewGroup.name,ve.PreviewGroup),e};const Ao=ve,Mo=["normal","exception","active","success"],Be=()=>({prefixCls:String,type:K(),percent:Number,format:N(),status:K(),showInfo:q(),strokeWidth:Number,strokeLinecap:K(),strokeColor:_e(),trailColor:String,width:Number,success:ie(),gapDegree:Number,gapPosition:K(),size:me([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:K()});function be(e){return!e||e<0?0:e>100?100:e}function Ne(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(Ae(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),n=t.progress),t&&"percent"in t&&(n=t.percent),n}function Lo(e){let{percent:t,success:r,successPercent:n}=e;const o=be(Ne({success:r,successPercent:n}));return[o,be(be(t)-o)]}function zo(e){let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||Ye.green,r||null]}const He=(e,t,r)=>{var n,o,f,s;let p=-1,b=-1;if(t==="step"){const I=r.steps,h=r.strokeWidth;typeof e=="string"||typeof e>"u"?(p=e==="small"?2:14,b=h??8):typeof e=="number"?[p,b]=[e,e]:[p=14,b=8]=e,p*=I}else if(t==="line"){const I=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?b=I||(e==="small"?6:8):typeof e=="number"?[p,b]=[e,e]:[p=-1,b=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[p,b]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[p,b]=[e,e]:(p=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,b=(s=(f=e[0])!==null&&f!==void 0?f:e[1])!==null&&s!==void 0?s:120));return{width:p,height:b}};var No=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const _o=()=>x(x({},Be()),{strokeColor:_e(),direction:K()}),Uo=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(r=>{let{key:n,value:o}=r;return`${o} ${n}%`}).join(", ")},Bo=(e,t)=>{const{from:r=Ye.blue,to:n=Ye.blue,direction:o=t==="rtl"?"to left":"to right"}=e,f=No(e,["from","to","direction"]);if(Object.keys(f).length!==0){const s=Uo(f);return{backgroundImage:`linear-gradient(${o}, ${s})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}},Ho=H({compatConfig:{MODE:3},name:"Line",inheritAttrs:!1,props:_o(),setup(e,t){let{slots:r,attrs:n}=t;const o=D(()=>{const{strokeColor:w,direction:l}=e;return w&&typeof w!="string"?Bo(w,l):{backgroundColor:w}}),f=D(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),s=D(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),p=D(()=>{var w;return(w=e.size)!==null&&w!==void 0?w:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),b=D(()=>He(p.value,"line",{strokeWidth:e.strokeWidth})),I=D(()=>{const{percent:w}=e;return x({width:`${be(w)}%`,height:`${b.value.height}px`,borderRadius:f.value},o.value)}),h=D(()=>Ne(e)),T=D(()=>{const{success:w}=e;return{width:`${be(h.value)}%`,height:`${b.value.height}px`,borderRadius:f.value,backgroundColor:w==null?void 0:w.strokeColor}}),j={width:b.value.width<0?"100%":b.value.width,height:`${b.value.height}px`};return()=>{var w;return m(Ue,null,[m("div",E(E({},n),{},{class:[`${e.prefixCls}-outer`,n.class],style:[n.style,j]}),[m("div",{class:`${e.prefixCls}-inner`,style:s.value},[m("div",{class:`${e.prefixCls}-bg`,style:I.value},null),h.value!==void 0?m("div",{class:`${e.prefixCls}-success-bg`,style:T.value},null):null])]),(w=r.default)===null||w===void 0?void 0:w.call(r)])}}}),Xo={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Wo=e=>{const t=X(null);return Vn(()=>{const r=Date.now();let n=!1;e.value.forEach(o=>{const f=(o==null?void 0:o.$el)||o;if(!f)return;n=!0;const s=f.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.value&&r-t.value<100&&(s.transitionDuration="0s, 0s")}),n&&(t.value=Date.now())}),e},Vo={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Go=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let Nt=0;function _t(e){return+e.replace("%","")}function Ut(e){return Array.isArray(e)?e:[e]}function Bt(e,t,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5?arguments[5]:void 0;const s=50-n/2;let p=0,b=-s,I=0,h=-2*s;switch(f){case"left":p=-s,b=0,I=2*s,h=0;break;case"right":p=s,b=0,I=-2*s,h=0;break;case"bottom":b=s,h=2*s;break}const T=`M 50,50 m ${p},${b}
   a ${s},${s} 0 1 1 ${I},${-h}
   a ${s},${s} 0 1 1 ${-I},${h}`,j=Math.PI*2*s,w={stroke:r,strokeDasharray:`${t/100*(j-o)}px ${j}px`,strokeDashoffset:`-${o/2+e/100*(j-o)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:T,pathStyle:w}}const qo=H({compatConfig:{MODE:3},name:"VCCircle",props:$e(Vo,Xo),setup(e){Nt+=1;const t=X(Nt),r=D(()=>Ut(e.percent)),n=D(()=>Ut(e.strokeColor)),[o,f]=Hn();Wo(f);const s=()=>{const{prefixCls:p,strokeWidth:b,strokeLinecap:I,gapDegree:h,gapPosition:T}=e;let j=0;return r.value.map((w,l)=>{const a=n.value[l]||n.value[n.value.length-1],d=Object.prototype.toString.call(a)==="[object Object]"?`url(#${p}-gradient-${t.value})`:"",{pathString:c,pathStyle:i}=Bt(j,w,a,b,h,T);j+=w;const C={key:l,d:c,stroke:d,"stroke-linecap":I,"stroke-width":b,opacity:w===0?0:1,"fill-opacity":"0",class:`${p}-circle-path`,style:i};return m("path",E({ref:o(l)},C),null)})};return()=>{const{prefixCls:p,strokeWidth:b,trailWidth:I,gapDegree:h,gapPosition:T,trailColor:j,strokeLinecap:w,strokeColor:l}=e,a=Go(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:d,pathStyle:c}=Bt(0,100,j,b,h,T);delete a.percent;const i=n.value.find(g=>Object.prototype.toString.call(g)==="[object Object]"),C={d,stroke:j,"stroke-linecap":w,"stroke-width":I||b,"fill-opacity":"0",class:`${p}-circle-trail`,style:c};return m("svg",E({class:`${p}-circle`,viewBox:"0 0 100 100"},a),[i&&m("defs",null,[m("linearGradient",{id:`${p}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(i).sort((g,u)=>_t(g)-_t(u)).map((g,u)=>m("stop",{key:u,offset:g,"stop-color":i[g]},null))])]),m("path",C,null),s().reverse()])}}}),Yo=()=>x(x({},Be()),{strokeColor:_e()}),Zo=3,Qo=e=>Zo/e*100,Jo=H({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:$e(Yo(),{trailColor:null}),setup(e,t){let{slots:r,attrs:n}=t;const o=D(()=>{var a;return(a=e.width)!==null&&a!==void 0?a:120}),f=D(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[o.value,o.value]}),s=D(()=>He(f.value,"circle")),p=D(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),b=D(()=>({width:`${s.value.width}px`,height:`${s.value.height}px`,fontSize:`${s.value.width*.15+6}px`})),I=D(()=>{var a;return(a=e.strokeWidth)!==null&&a!==void 0?a:Math.max(Qo(s.value.width),6)}),h=D(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),T=D(()=>Lo(e)),j=D(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),w=D(()=>zo({success:e.success,strokeColor:e.strokeColor})),l=D(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:j.value}));return()=>{var a;const d=m(qo,{percent:T.value,strokeWidth:I.value,trailWidth:I.value,strokeColor:w.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:p.value,gapPosition:h.value},null);return m("div",E(E({},n),{},{class:[l.value,n.class],style:[n.style,b.value]}),[s.value.width<=20?m(Jt,null,{default:()=>[m("span",null,[d])],title:r.default}):m(Ue,null,[d,(a=r.default)===null||a===void 0?void 0:a.call(r)])])}}}),Ko=()=>x(x({},Be()),{steps:Number,strokeColor:me(),trailColor:String}),ei=H({compatConfig:{MODE:3},name:"Steps",props:Ko(),setup(e,t){let{slots:r}=t;const n=D(()=>Math.round(e.steps*((e.percent||0)/100))),o=D(()=>{var p;return(p=e.size)!==null&&p!==void 0?p:[e.size==="small"?2:14,e.strokeWidth||8]}),f=D(()=>He(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),s=D(()=>{const{steps:p,strokeColor:b,trailColor:I,prefixCls:h}=e,T=[];for(let j=0;j<p;j+=1){const w=Array.isArray(b)?b[j]:b,l={[`${h}-steps-item`]:!0,[`${h}-steps-item-active`]:j<=n.value-1};T.push(m("div",{key:j,class:l,style:{backgroundColor:j<=n.value-1?w:I,width:`${f.value.width/p}px`,height:`${f.value.height}px`}},null))}return T});return()=>{var p;return m("div",{class:`${e.prefixCls}-steps-outer`},[s.value,(p=r.default)===null||p===void 0?void 0:p.call(r)])}}}),ti=new et("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),ni=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:x(x({},Ke(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:ti,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},ri=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},oi=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},ii=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},ai=Qe("Progress",e=>{const t=e.marginXXS/2,r=Le(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ni(r),ri(r),oi(r),ii(r)]});var li=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const si=H({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:$e(Be(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:o,direction:f}=Oe("progress",e),[s,p]=ai(o),b=D(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),I=D(()=>{const{percent:l=0}=e,a=Ne(e);return parseInt(a!==void 0?a.toString():l.toString(),10)}),h=D(()=>{const{status:l}=e;return!Mo.includes(l)&&I.value>=100?"success":l||"normal"}),T=D(()=>{const{type:l,showInfo:a,size:d}=e,c=o.value;return{[c]:!0,[`${c}-inline-circle`]:l==="circle"&&He(d,"circle").width<=20,[`${c}-${l==="dashboard"&&"circle"||l}`]:!0,[`${c}-status-${h.value}`]:!0,[`${c}-show-info`]:a,[`${c}-${d}`]:d,[`${c}-rtl`]:f.value==="rtl",[p.value]:!0}}),j=D(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),w=()=>{const{showInfo:l,format:a,type:d,percent:c,title:i}=e,C=Ne(e);if(!l)return null;let g;const u=a||(r==null?void 0:r.format)||(y=>`${y}%`),v=d==="line";return a||r!=null&&r.format||h.value!=="exception"&&h.value!=="success"?g=u(be(c),be(C)):h.value==="exception"?g=v?m(ir,null,null):m(ln,null,null):h.value==="success"&&(g=v?m(tr,null,null):m(or,null,null)),m("span",{class:`${o.value}-text`,title:i===void 0&&typeof g=="string"?g:void 0},[g])};return()=>{const{type:l,steps:a,title:d}=e,{class:c}=n,i=li(n,["class"]),C=w();let g;return l==="line"?g=a?m(ei,E(E({},e),{},{strokeColor:j.value,prefixCls:o.value,steps:a}),{default:()=>[C]}):m(Ho,E(E({},e),{},{strokeColor:b.value,prefixCls:o.value,direction:f.value}),{default:()=>[C]}):(l==="circle"||l==="dashboard")&&(g=m(Jo,E(E({},e),{},{prefixCls:o.value,strokeColor:b.value,progressStatus:h.value}),{default:()=>[C]})),s(m("div",E(E({role:"progressbar"},i),{},{class:[T.value,c],title:d}),[g]))}}}),ci=Fn(si);function ui(e,t){const r=`cannot ${e.method} ${e.action} ${t.status}'`,n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function Ht(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function di(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(f){f.total>0&&(f.percent=f.loaded/f.total*100),e.onProgress(f)});const r=new FormData;e.data&&Object.keys(e.data).forEach(o=>{const f=e.data[o];if(Array.isArray(f)){f.forEach(s=>{r.append(`${o}[]`,s)});return}r.append(o,f)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(f){e.onError(f)},t.onload=function(){return t.status<200||t.status>=300?e.onError(ui(e,t),Ht(t)):e.onSuccess(Ht(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(o=>{n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort(){t.abort()}}}const fi=+new Date;let pi=0;function Xe(){return`vc-upload-${fi}-${++pi}`}const We=(e,t)=>{if(e&&t){const r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",f=o.replace(/\/.*$/,"");return r.some(s=>{const p=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(p.charAt(0)==="."){const b=n.toLowerCase(),I=p.toLowerCase();let h=[I];return(I===".jpg"||I===".jpeg")&&(h=[".jpg",".jpeg"]),h.some(T=>b.endsWith(T))}return/\/\*$/.test(p)?f===p.replace(/\/.*$/,""):!!(o===p||/^\w+$/.test(p))})}return!0};function gi(e,t){const r=e.createReader();let n=[];function o(){r.readEntries(f=>{const s=Array.prototype.slice.apply(f);n=n.concat(s),!s.length?t(n):o()})}o()}const mi=(e,t,r)=>{const n=(o,f)=>{o.path=f||"",o.isFile?o.file(s=>{r(s)&&(o.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),t([s]))}):o.isDirectory&&gi(o,s=>{s.forEach(p=>{n(p,`${f}${o.name}/`)})})};e.forEach(o=>{n(o.webkitGetAsEntry())})},vi=mi,hn=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var hi=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(f){return f instanceof r?f:new r(function(s){s(f)})}return new(r||(r=Promise))(function(f,s){function p(h){try{I(n.next(h))}catch(T){s(T)}}function b(h){try{I(n.throw(h))}catch(T){s(T)}}function I(h){h.done?f(h.value):o(h.value).then(p,b)}I((n=n.apply(e,t||[])).next())})},bi=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const yi=H({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:hn(),setup(e,t){let{slots:r,attrs:n,expose:o}=t;const f=X(Xe()),s={},p=X();let b=!1;const I=(i,C)=>hi(this,void 0,void 0,function*(){const{beforeUpload:g}=e;let u=i;if(g){try{u=yield g(i,C)}catch{u=!1}if(u===!1)return{origin:i,parsedFile:null,action:null,data:null}}const{action:v}=e;let y;typeof v=="function"?y=yield v(i):y=v;const{data:L}=e;let z;typeof L=="function"?z=yield L(i):z=L;const R=(typeof u=="object"||typeof u=="string")&&u?u:i;let S;R instanceof File?S=R:S=new File([R],i.name,{type:i.type});const O=S;return O.uid=i.uid,{origin:i,data:z,parsedFile:O,action:y}}),h=i=>{let{data:C,origin:g,action:u,parsedFile:v}=i;if(!b)return;const{onStart:y,customRequest:L,name:z,headers:R,withCredentials:S,method:O}=e,{uid:$}=g,F=L||di,k={action:u,filename:z,data:C,file:v,headers:R,withCredentials:S,method:O||"post",onProgress:M=>{const{onProgress:A}=e;A==null||A(M,v)},onSuccess:(M,A)=>{const{onSuccess:P}=e;P==null||P(M,v,A),delete s[$]},onError:(M,A)=>{const{onError:P}=e;P==null||P(M,A,v),delete s[$]}};y(g),s[$]=F(k)},T=()=>{f.value=Xe()},j=i=>{if(i){const C=i.uid?i.uid:i;s[C]&&s[C].abort&&s[C].abort(),delete s[C]}else Object.keys(s).forEach(C=>{s[C]&&s[C].abort&&s[C].abort(),delete s[C]})};ue(()=>{b=!0}),nn(()=>{b=!1,j()});const w=i=>{const C=[...i],g=C.map(u=>(u.uid=Xe(),I(u,C)));Promise.all(g).then(u=>{const{onBatchStart:v}=e;v==null||v(u.map(y=>{let{origin:L,parsedFile:z}=y;return{file:L,parsedFile:z}})),u.filter(y=>y.parsedFile!==null).forEach(y=>{h(y)})})},l=i=>{const{accept:C,directory:g}=e,{files:u}=i.target,v=[...u].filter(y=>!g||We(y,C));w(v),T()},a=i=>{const C=p.value;if(!C)return;const{onClick:g}=e;C.click(),g&&g(i)},d=i=>{i.key==="Enter"&&a(i)},c=i=>{const{multiple:C}=e;if(i.preventDefault(),i.type!=="dragover")if(e.directory)vi(Array.prototype.slice.call(i.dataTransfer.items),w,g=>We(g,e.accept));else{const g=mr(Array.prototype.slice.call(i.dataTransfer.files),y=>We(y,e.accept));let u=g[0];const v=g[1];C===!1&&(u=u.slice(0,1)),w(u),v.length&&e.onReject&&e.onReject(v)}};return o({abort:j}),()=>{var i;const{componentTag:C,prefixCls:g,disabled:u,id:v,multiple:y,accept:L,capture:z,directory:R,openFileDialogOnClick:S,onMouseenter:O,onMouseleave:$}=e,F=bi(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),k={[g]:!0,[`${g}-disabled`]:u,[n.class]:!!n.class},M=R?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return m(C,E(E({},u?{}:{onClick:S?a:()=>{},onKeydown:S?d:()=>{},onMouseenter:O,onMouseleave:$,onDrop:c,onDragover:c,tabindex:"0"}),{},{class:k,role:"button",style:n.style}),{default:()=>[m("input",E(E(E({},Nn(F,{aria:!0,data:!0})),{},{id:v,type:"file",ref:p,onClick:P=>P.stopPropagation(),key:f.value,style:{display:"none"},accept:L},M),{},{multiple:y,onChange:l},z!=null?{capture:z}:{}),null),(i=r.default)===null||i===void 0?void 0:i.call(r)]})}}});function Ve(){}const Xt=H({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:$e(hn(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ve,onError:Ve,onSuccess:Ve,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:r,attrs:n,expose:o}=t;const f=X();return o({abort:p=>{var b;(b=f.value)===null||b===void 0||b.abort(p)}}),()=>m(yi,E(E(E({},e),n),{},{ref:f}),r)}});function bn(){return{capture:me([Boolean,String]),type:K(),name:String,defaultFileList:ze(),fileList:ze(),action:me([String,Function]),directory:q(),data:me([Object,Function]),method:K(),headers:ie(),showUploadList:me([Boolean,Object]),multiple:q(),accept:String,beforeUpload:N(),onChange:N(),"onUpdate:fileList":N(),onDrop:N(),listType:K(),onPreview:N(),onDownload:N(),onReject:N(),onRemove:N(),remove:N(),supportServerRender:q(),disabled:q(),prefixCls:String,customRequest:N(),withCredentials:q(),openFileDialogOnClick:q(),locale:ie(),id:String,previewFile:N(),transformFile:N(),iconRender:N(),isImageUrl:N(),progress:ie(),itemRender:N(),maxCount:Number,height:me([Number,String]),removeIcon:N(),downloadIcon:N(),previewIcon:N()}}function wi(){return{listType:K(),onPreview:N(),onDownload:N(),onRemove:N(),items:ze(),progress:ie(),prefixCls:K(),showRemoveIcon:q(),showDownloadIcon:q(),showPreviewIcon:q(),removeIcon:N(),downloadIcon:N(),previewIcon:N(),locale:ie(void 0),previewFile:N(),iconRender:N(),isImageUrl:N(),appendAction:N(),appendActionVisible:q(),itemRender:N()}}function Re(e){return x(x({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ee(e,t){const r=[...t],n=r.findIndex(o=>{let{uid:f}=o;return f===e.uid});return n===-1?r.push(e):r[n]=e,r}function Ge(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function Ci(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}const Si=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},yn=e=>e.indexOf("image/")===0,Oi=e=>{if(e.type&&!e.thumbUrl)return yn(e.type);const t=e.thumbUrl||e.url||"",r=Si(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)},ce=200;function $i(e){return new Promise(t=>{if(!e.type||!yn(e.type)){t("");return}const r=document.createElement("canvas");r.width=ce,r.height=ce,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${ce}px; height: ${ce}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:f,height:s}=o;let p=ce,b=ce,I=0,h=0;f>s?(b=s*(ce/f),h=-(b-p)/2):(p=f*(ce/s),I=-(p-b)/2),n.drawImage(o,I,h,p,b);const T=r.toDataURL();document.body.removeChild(r),t(T)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const f=new FileReader;f.addEventListener("load",()=>{f.result&&(o.src=f.result)}),f.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const Pi=()=>({prefixCls:String,locale:ie(void 0),file:ie(),items:ze(),listType:K(),isImgUrl:N(),showRemoveIcon:q(),showDownloadIcon:q(),showPreviewIcon:q(),removeIcon:N(),downloadIcon:N(),previewIcon:N(),iconRender:N(),actionIconRender:N(),itemRender:N(),onPreview:N(),onClose:N(),onDownload:N(),progress:ie()}),xi=H({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:Pi(),setup(e,t){let{slots:r,attrs:n}=t;var o;const f=te(!1),s=te();ue(()=>{s.value=setTimeout(()=>{f.value=!0},300)}),nn(()=>{clearTimeout(s.value)});const p=te((o=e.file)===null||o===void 0?void 0:o.status);oe(()=>{var h;return(h=e.file)===null||h===void 0?void 0:h.status},h=>{h!=="removed"&&(p.value=h)});const{rootPrefixCls:b}=Oe("upload",e),I=D(()=>kn(`${b.value}-fade`));return()=>{var h,T;const{prefixCls:j,locale:w,listType:l,file:a,items:d,progress:c,iconRender:i=r.iconRender,actionIconRender:C=r.actionIconRender,itemRender:g=r.itemRender,isImgUrl:u,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:L,previewIcon:z=r.previewIcon,removeIcon:R=r.removeIcon,downloadIcon:S=r.downloadIcon,onPreview:O,onDownload:$,onClose:F}=e,{class:k,style:M}=n,A=i({file:a});let P=m("div",{class:`${j}-text-icon`},[A]);if(l==="picture"||l==="picture-card")if(p.value==="uploading"||!a.thumbUrl&&!a.url){const W={[`${j}-list-item-thumbnail`]:!0,[`${j}-list-item-file`]:p.value!=="uploading"};P=m("div",{class:W},[A])}else{const W=u!=null&&u(a)?m("img",{src:a.thumbUrl||a.url,alt:a.name,class:`${j}-list-item-image`,crossorigin:a.crossOrigin},null):A,je={[`${j}-list-item-thumbnail`]:!0,[`${j}-list-item-file`]:u&&!u(a)};P=m("a",{class:je,onClick:we=>O(a,we),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[W])}const U={[`${j}-list-item`]:!0,[`${j}-list-item-${p.value}`]:!0},B=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,V=y?C({customIcon:R?R({file:a}):m(Tr,null,null),callback:()=>F(a),prefixCls:j,title:w.removeFile}):null,G=L&&p.value==="done"?C({customIcon:S?S({file:a}):m(Rr,null,null),callback:()=>$(a),prefixCls:j,title:w.downloadFile}):null,Y=l!=="picture-card"&&m("span",{key:"download-delete",class:[`${j}-list-item-actions`,{picture:l==="picture"}]},[G,V]),Z=`${j}-list-item-name`,ne=a.url?[m("a",E(E({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:a.name},B),{},{href:a.url,onClick:W=>O(a,W)}),[a.name]),Y]:[m("span",{key:"view",class:Z,onClick:W=>O(a,W),title:a.name},[a.name]),Y],re={pointerEvents:"none",opacity:.5},Pe=v?m("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:a.url||a.thumbUrl?void 0:re,onClick:W=>O(a,W),title:w.previewFile},[z?z({file:a}):m(an,null,null)]):null,xe=l==="picture-card"&&p.value!=="uploading"&&m("span",{class:`${j}-list-item-actions`},[Pe,p.value==="done"&&G,V]),de=m("div",{class:U},[P,ne,xe,f.value&&m(Gn,I.value,{default:()=>[rn(m("div",{class:`${j}-list-item-progress`},["percent"in a?m(ci,E(E({},c),{},{type:"line",percent:a.percent}),null):null]),[[on,p.value==="uploading"]])]})]),ye={[`${j}-list-item-container`]:!0,[`${k}`]:!!k},Ie=a.response&&typeof a.response=="string"?a.response:((h=a.error)===null||h===void 0?void 0:h.statusText)||((T=a.error)===null||T===void 0?void 0:T.message)||w.uploadError,fe=p.value==="error"?m(Jt,{title:Ie,getPopupContainer:W=>W.parentNode},{default:()=>[de]}):de;return m("div",{class:ye,style:M},[g?g({originNode:fe,file:a,fileList:d,actions:{download:$.bind(null,a),preview:O.bind(null,a),remove:F.bind(null,a)}}):fe])}}}),Ii=(e,t)=>{let{slots:r}=t;var n;return En((n=r.default)===null||n===void 0?void 0:n.call(r))[0]},ji=H({compatConfig:{MODE:3},name:"AUploadList",props:$e(wi(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:$i,isImageUrl:Oi,items:[],appendActionVisible:!0}),setup(e,t){let{slots:r,expose:n}=t;const o=te(!1),f=Yn();ue(()=>{o.value==!0}),Kt(()=>{e.listType!=="picture"&&e.listType!=="picture-card"||(e.items||[]).forEach(a=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(a.originFileObj instanceof File||a.originFileObj instanceof Blob)||a.thumbUrl!==void 0||(a.thumbUrl="",e.previewFile&&e.previewFile(a.originFileObj).then(d=>{a.thumbUrl=d||"",f.update()}))})});const s=(a,d)=>{if(e.onPreview)return d==null||d.preventDefault(),e.onPreview(a)},p=a=>{typeof e.onDownload=="function"?e.onDownload(a):a.url&&window.open(a.url)},b=a=>{var d;(d=e.onRemove)===null||d===void 0||d.call(e,a)},I=a=>{let{file:d}=a;const c=e.iconRender||r.iconRender;if(c)return c({file:d,listType:e.listType});const i=d.status==="uploading",C=e.isImageUrl&&e.isImageUrl(d)?m(Yr,null,null):m(Lr,null,null);let g=i?m(yt,null,null):m(Ur,null,null);return e.listType==="picture"?g=i?m(yt,null,null):C:e.listType==="picture-card"&&(g=i?e.locale.uploading:C),g},h=a=>{const{customIcon:d,callback:c,prefixCls:i,title:C}=a,g={type:"text",size:"small",title:C,onClick:()=>{c()},class:`${i}-list-item-action`};return An(d)?m(St,g,{icon:()=>d}):m(St,g,{default:()=>[m("span",null,[d])]})};n({handlePreview:s,handleDownload:p});const{prefixCls:T,rootPrefixCls:j}=Oe("upload",e),w=D(()=>({[`${T.value}-list`]:!0,[`${T.value}-list-${e.listType}`]:!0})),l=D(()=>{const a=x({},On(`${j.value}-motion-collapse`));delete a.onAfterAppear,delete a.onAfterEnter,delete a.onAfterLeave;const d=x(x({},Rn(`${T.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:w.value,appear:o.value});return e.listType!=="picture-card"?x(x({},a),d):d});return()=>{const{listType:a,locale:d,isImageUrl:c,items:i=[],showPreviewIcon:C,showRemoveIcon:g,showDownloadIcon:u,removeIcon:v,previewIcon:y,downloadIcon:L,progress:z,appendAction:R,itemRender:S,appendActionVisible:O}=e,$=R==null?void 0:R();return m(qn,E(E({},l.value),{},{tag:"div"}),{default:()=>[i.map(F=>{const{uid:k}=F;return m(xi,{key:k,locale:d,prefixCls:T.value,file:F,items:i,progress:z,listType:a,isImgUrl:c,showPreviewIcon:C,showRemoveIcon:g,showDownloadIcon:u,onPreview:s,onDownload:p,onClose:b,removeIcon:v,previewIcon:y,downloadIcon:L,itemRender:S},x(x({},r),{iconRender:I,actionIconRender:h}))}),R?rn(m(Ii,{key:"__ant_upload_appendAction"},{default:()=>$}),[[on,!!O]]):null]})}}}),Ti=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r},
            p${t}-text,
            p${t}-hint
          `]:{color:e.colorTextDisabled}}}}}},Di=Ti,Fi=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSize:o,lineHeight:f}=e,s=`${t}-list-item`,p=`${s}-actions`,b=`${s}-action`,I=Math.round(o*f);return{[`${t}-wrapper`]:{[`${t}-list`]:x(x({},Qt()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:x(x({},Je),{padding:`0 ${e.paddingXS}px`,lineHeight:f,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[p]:{[b]:{opacity:0},[`${b}${r}-btn-sm`]:{height:I,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
              ${b}:focus,
              &.picture ${b}
            `]:{opacity:1},[n]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${n}`]:{color:e.colorText}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:o},[`${s}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${b}`]:{opacity:1,color:e.colorText},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[p]:{[`${n}, ${n}:hover`]:{color:e.colorError},[b]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ki=Fi,Wt=new et("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vt=new et("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ri=e=>{const{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:Wt},[`${r}-leave`]:{animationName:Vt}}},Wt,Vt]},Ei=Ri,Ai=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o}=e,f=`${t}-list`,s=`${f}-item`;return{[`${t}-wrapper`]:{[`${f}${f}-picture, ${f}${f}-picture-card`]:{[s]:{position:"relative",height:n+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:x(x({},Je),{width:n,height:n,lineHeight:`${n+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}}}}},Mi=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o}=e,f=`${t}-list`,s=`${f}-item`,p=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:x(x({},Qt()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:p,height:p,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${f}${f}-picture-card`]:{[`${f}-item-container`]:{display:"inline-block",width:p,height:p,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:n,margin:`0 ${e.marginXXS}px`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${s}-actions, ${s}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new he(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Li=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},zi=Li,Ni=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:x(x({},Ke(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},_i=Qe("Upload",e=>{const{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightLG:f}=e,s=Math.round(r*n),p=Le(e,{uploadThumbnailSize:t*2,uploadProgressOffset:s/2+o,uploadPicCardSize:f*2.55});return[Ni(p),Di(p),Ai(p),Mi(p),ki(p),Ei(p),zi(p),$n(p)]});var Ui=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(f){return f instanceof r?f:new r(function(s){s(f)})}return new(r||(r=Promise))(function(f,s){function p(h){try{I(n.next(h))}catch(T){s(T)}}function b(h){try{I(n.throw(h))}catch(T){s(T)}}function I(h){h.done?f(h.value):o(h.value).then(p,b)}I((n=n.apply(e,t||[])).next())})},Bi=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Fe=`__LIST_IGNORE_${Date.now()}__`,Me=H({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:$e(bn(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup(e,t){let{slots:r,attrs:n,expose:o}=t;const f=ar(),{prefixCls:s,direction:p,disabled:b}=Oe("upload",e),[I,h]=_i(s),T=Mn(),j=D(()=>{var S;return(S=T.value)!==null&&S!==void 0?S:b.value}),[w,l]=tt(e.defaultFileList||[],{value:Zn(e,"fileList"),postState:S=>{const O=Date.now();return(S??[]).map(($,F)=>(!$.uid&&!Object.isFrozen($)&&($.uid=`__AUTO__${O}_${F}__`),$))}}),a=X("drop"),d=X(null);ue(()=>{Ae(e.fileList!==void 0||n.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ae(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ae(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const c=(S,O,$)=>{var F,k;let M=[...O];e.maxCount===1?M=M.slice(-1):e.maxCount&&(M=M.slice(0,e.maxCount)),l(M);const A={file:S,fileList:M};$&&(A.event=$),(F=e["onUpdate:fileList"])===null||F===void 0||F.call(e,A.fileList),(k=e.onChange)===null||k===void 0||k.call(e,A),f.onFieldChange()},i=(S,O)=>Ui(this,void 0,void 0,function*(){const{beforeUpload:$,transformFile:F}=e;let k=S;if($){const M=yield $(S,O);if(M===!1)return!1;if(delete S[Fe],M===Fe)return Object.defineProperty(S,Fe,{value:!0,configurable:!0}),!1;typeof M=="object"&&M&&(k=M)}return F&&(k=yield F(k)),k}),C=S=>{const O=S.filter(k=>!k.file[Fe]);if(!O.length)return;const $=O.map(k=>Re(k.file));let F=[...w.value];$.forEach(k=>{F=Ee(k,F)}),$.forEach((k,M)=>{let A=k;if(O[M].parsedFile)k.status="uploading";else{const{originFileObj:P}=k;let U;try{U=new File([P],P.name,{type:P.type})}catch{U=new Blob([P],{type:P.type}),U.name=P.name,U.lastModifiedDate=new Date,U.lastModified=new Date().getTime()}U.uid=k.uid,A=U}c(A,F)})},g=(S,O,$)=>{try{typeof S=="string"&&(S=JSON.parse(S))}catch{}if(!Ge(O,w.value))return;const F=Re(O);F.status="done",F.percent=100,F.response=S,F.xhr=$;const k=Ee(F,w.value);c(F,k)},u=(S,O)=>{if(!Ge(O,w.value))return;const $=Re(O);$.status="uploading",$.percent=S.percent;const F=Ee($,w.value);c($,F,S)},v=(S,O,$)=>{if(!Ge($,w.value))return;const F=Re($);F.error=S,F.response=O,F.status="error";const k=Ee(F,w.value);c(F,k)},y=S=>{let O;const $=e.onRemove||e.remove;Promise.resolve(typeof $=="function"?$(S):$).then(F=>{var k,M;if(F===!1)return;const A=Ci(S,w.value);A&&(O=x(x({},S),{status:"removed"}),(k=w.value)===null||k===void 0||k.forEach(P=>{const U=O.uid!==void 0?"uid":"name";P[U]===O[U]&&!Object.isFrozen(P)&&(P.status="removed")}),(M=d.value)===null||M===void 0||M.abort(O),c(O,A))})},L=S=>{var O;a.value=S.type,S.type==="drop"&&((O=e.onDrop)===null||O===void 0||O.call(e,S))};o({onBatchStart:C,onSuccess:g,onProgress:u,onError:v,fileList:w,upload:d});const[z]=Ln("Upload",Zt.Upload,D(()=>e.locale)),R=(S,O)=>{const{removeIcon:$,previewIcon:F,downloadIcon:k,previewFile:M,onPreview:A,onDownload:P,isImageUrl:U,progress:B,itemRender:V,iconRender:G,showUploadList:Y}=e,{showDownloadIcon:Z,showPreviewIcon:ne,showRemoveIcon:re}=typeof Y=="boolean"?{}:Y;return Y?m(ji,{prefixCls:s.value,listType:e.listType,items:w.value,previewFile:M,onPreview:A,onDownload:P,onRemove:y,showRemoveIcon:!j.value&&re,showPreviewIcon:ne,showDownloadIcon:Z,removeIcon:$,previewIcon:F,downloadIcon:k,iconRender:G,locale:z.value,isImageUrl:U,progress:B,itemRender:V,appendActionVisible:O,appendAction:S},x({},r)):S==null?void 0:S()};return()=>{var S,O,$;const{listType:F,type:k}=e,{class:M,style:A}=n,P=Bi(n,["class","style"]),U=x(x(x({onBatchStart:C,onError:v,onProgress:u,onSuccess:g},P),e),{id:(S=e.id)!==null&&S!==void 0?S:f.id.value,prefixCls:s.value,beforeUpload:i,onChange:void 0,disabled:j.value});delete U.remove,(!r.default||j.value)&&delete U.id;const B={[`${s.value}-rtl`]:p.value==="rtl"};if(k==="drag"){const Z=J(s.value,{[`${s.value}-drag`]:!0,[`${s.value}-drag-uploading`]:w.value.some(ne=>ne.status==="uploading"),[`${s.value}-drag-hover`]:a.value==="dragover",[`${s.value}-disabled`]:j.value,[`${s.value}-rtl`]:p.value==="rtl"},n.class,h.value);return I(m("span",E(E({},n),{},{class:J(`${s.value}-wrapper`,B,M,h.value)}),[m("div",{class:Z,onDrop:L,onDragover:L,onDragleave:L,style:n.style},[m(Xt,E(E({},U),{},{ref:d,class:`${s.value}-btn`}),E({default:()=>[m("div",{class:`${s.value}-drag-container`},[(O=r.default)===null||O===void 0?void 0:O.call(r)])]},r))]),R()]))}const V=J(s.value,{[`${s.value}-select`]:!0,[`${s.value}-select-${F}`]:!0,[`${s.value}-disabled`]:j.value,[`${s.value}-rtl`]:p.value==="rtl"}),G=zn(($=r.default)===null||$===void 0?void 0:$.call(r)),Y=Z=>m("div",{class:V,style:Z},[m(Xt,E(E({},U),{},{ref:d}),r)]);return I(F==="picture-card"?m("span",E(E({},n),{},{class:J(`${s.value}-wrapper`,`${s.value}-picture-card-wrapper`,B,n.class,h.value)}),[R(Y,!!(G&&G.length))]):m("span",E(E({},n),{},{class:J(`${s.value}-wrapper`,B,n.class,h.value)}),[Y(G&&G.length?void 0:{display:"none"}),R()]))}}});var Gt=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const qe=H({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:bn(),setup(e,t){let{slots:r,attrs:n}=t;return()=>{const{height:o}=e,f=Gt(e,["height"]),{style:s}=n,p=Gt(n,["style"]),b=x(x(x({},f),p),{type:"drag",style:x(x({},s),{height:typeof o=="number"?`${o}px`:o})});return m(Me,b,r)}}}),Hi=x(Me,{Dragger:qe,LIST_IGNORE:Fe,install(e){return e.component(Me.name,Me),e.component(qe.name,qe),e}});var wn={exports:{}};(function(e){(function(){var t=function(r){if(!(this instanceof t))return new t(r);if(this.version=1,this.support=typeof File<"u"&&typeof Blob<"u"&&typeof FileList<"u"&&(!!Blob.prototype.webkitSlice||!!Blob.prototype.mozSlice||!!Blob.prototype.slice||!1),!this.support)return!1;var n=this;n.files=[],n.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,fileParameterName:"file",chunkNumberParameterName:"resumableChunkNumber",chunkSizeParameterName:"resumableChunkSize",currentChunkSizeParameterName:"resumableCurrentChunkSize",totalSizeParameterName:"resumableTotalSize",typeParameterName:"resumableType",identifierParameterName:"resumableIdentifier",fileNameParameterName:"resumableFilename",relativePathParameterName:"resumableRelativePath",totalChunksParameterName:"resumableTotalChunks",throttleProgressCallbacks:.5,query:{},headers:{},preprocess:null,method:"multipart",uploadMethod:"POST",testMethod:"GET",prioritizeFirstAndLastChunk:!1,target:"/",testTarget:null,parameterNamespace:"",testChunks:!0,generateUniqueIdentifier:null,getTarget:null,maxChunkRetries:100,chunkRetryInterval:void 0,permanentErrors:[400,404,415,500,501],maxFiles:void 0,withCredentials:!1,xhrTimeout:0,clearInput:!0,chunkFormat:"blob",setChunkTypeFromFile:!1,maxFilesErrorCallback:function(l,a){var d=n.getOpt("maxFiles");alert("Please upload no more than "+d+" file"+(d===1?"":"s")+" at a time.")},minFileSize:1,minFileSizeErrorCallback:function(l,a){alert(l.fileName||l.name+" is too small, please upload files larger than "+o.formatSize(n.getOpt("minFileSize"))+".")},maxFileSize:void 0,maxFileSizeErrorCallback:function(l,a){alert(l.fileName||l.name+" is too large, please upload files less than "+o.formatSize(n.getOpt("maxFileSize"))+".")},fileType:[],fileTypeErrorCallback:function(l,a){alert(l.fileName||l.name+" has type not allowed, please upload files of type "+n.getOpt("fileType")+".")}},n.opts=r||{},n.getOpt=function(l){var a=this;if(l instanceof Array){var d={};return o.each(l,function(c){d[c]=a.getOpt(c)}),d}if(a instanceof w){if(typeof a.opts[l]<"u")return a.opts[l];a=a.fileObj}if(a instanceof j){if(typeof a.opts[l]<"u")return a.opts[l];a=a.resumableObj}if(a instanceof t)return typeof a.opts[l]<"u"?a.opts[l]:a.defaults[l]},n.events=[],n.on=function(l,a){n.events.push(l.toLowerCase(),a)},n.fire=function(){for(var l=[],a=0;a<arguments.length;a++)l.push(arguments[a]);for(var d=l[0].toLowerCase(),a=0;a<=n.events.length;a+=2)n.events[a]==d&&n.events[a+1].apply(n,l.slice(1)),n.events[a]=="catchall"&&n.events[a+1].apply(null,l);d=="fileerror"&&n.fire("error",l[2],l[1]),d=="fileprogress"&&n.fire("progress")};var o={stopEvent:function(l){l.stopPropagation(),l.preventDefault()},each:function(l,a){if(typeof l.length<"u"){for(var d=0;d<l.length;d++)if(a(l[d])===!1)return}else for(d in l)if(a(d,l[d])===!1)return},generateUniqueIdentifier:function(l,a){var d=n.getOpt("generateUniqueIdentifier");if(typeof d=="function")return d(l,a);var c=l.webkitRelativePath||l.fileName||l.name,i=l.size;return i+"-"+c.replace(/[^0-9a-zA-Z_-]/img,"")},contains:function(l,a){var d=!1;return o.each(l,function(c){return c==a?(d=!0,!1):!0}),d},formatSize:function(l){return l<1024?l+" bytes":l<1024*1024?(l/1024).toFixed(0)+" KB":l<1024*1024*1024?(l/1024/1024).toFixed(1)+" MB":(l/1024/1024/1024).toFixed(1)+" GB"},getTarget:function(l,a){var d=n.getOpt("target");if(l==="test"&&n.getOpt("testTarget")&&(d=n.getOpt("testTarget")==="/"?n.getOpt("target"):n.getOpt("testTarget")),typeof d=="function")return d(a);var c=d.indexOf("?")<0?"?":"&",i=a.join("&");return d+c+i}},f=function(l){o.stopEvent(l),l.dataTransfer&&l.dataTransfer.items?h(l.dataTransfer.items,l):l.dataTransfer&&l.dataTransfer.files&&h(l.dataTransfer.files,l)},s=function(l){l.preventDefault()};function p(l,a,d,c){var i;if(l.isFile)return l.file(function(C){C.relativePath=a+C.name,d.push(C),c()});if(l.isDirectory?i=l:l instanceof File&&d.push(l),typeof l.webkitGetAsEntry=="function"&&(i=l.webkitGetAsEntry()),i&&i.isDirectory)return I(i,a+i.name+"/",d,c);typeof l.getAsFile=="function"&&(l=l.getAsFile(),l instanceof File&&(l.relativePath=a+l.name,d.push(l))),c()}function b(l,a){if(!l||l.length===0)return a();l[0](function(){b(l.slice(1),a)})}function I(l,a,d,c){var i=l.createReader();i.readEntries(function(C){if(!C.length)return c();b(C.map(function(g){return p.bind(null,g,a,d)}),c)})}function h(l,a){if(l.length){n.fire("beforeAdd");var d=[];b(Array.prototype.map.call(l,function(c){return p.bind(null,c,"",d)}),function(){d.length&&T(d,a)})}}var T=function(l,a){var d=0,c=n.getOpt(["maxFiles","minFileSize","maxFileSize","maxFilesErrorCallback","minFileSizeErrorCallback","maxFileSizeErrorCallback","fileType","fileTypeErrorCallback"]);if(typeof c.maxFiles<"u"&&c.maxFiles<l.length+n.files.length)if(c.maxFiles===1&&n.files.length===1&&l.length===1)n.removeFile(n.files[0]);else return c.maxFilesErrorCallback(l,d++),!1;var i=[],C=[],g=l.length,u=function(){if(!--g){if(!i.length&&!C.length)return;window.setTimeout(function(){n.fire("filesAdded",i,C)},0)}};o.each(l,function(v){var y=v.name;if(c.fileType.length>0){var L=!1;for(var z in c.fileType){var R="."+c.fileType[z];if(y.toLowerCase().indexOf(R.toLowerCase(),y.length-R.length)!==-1){L=!0;break}}if(!L)return c.fileTypeErrorCallback(v,d++),!1}if(typeof c.minFileSize<"u"&&v.size<c.minFileSize)return c.minFileSizeErrorCallback(v,d++),!1;if(typeof c.maxFileSize<"u"&&v.size>c.maxFileSize)return c.maxFileSizeErrorCallback(v,d++),!1;function S($){n.getFromUniqueIdentifier($)?C.push(v):function(){v.uniqueIdentifier=$;var F=new j(n,v,$);n.files.push(F),i.push(F),F.container=typeof a<"u"?a.srcElement:null,window.setTimeout(function(){n.fire("fileAdded",F,a)},0)}(),u()}var O=o.generateUniqueIdentifier(v,a);O&&typeof O.then=="function"?O.then(function($){S($)},function(){u()}):S(O)})};function j(l,a,d){var c=this;c.opts={},c.getOpt=l.getOpt,c._prevProgress=0,c.resumableObj=l,c.file=a,c.fileName=a.fileName||a.name,c.size=a.size,c.relativePath=a.relativePath||a.webkitRelativePath||c.fileName,c.uniqueIdentifier=d,c._pause=!1,c.container="";var i=d!==void 0,C=function(g,u){switch(g){case"progress":c.resumableObj.fire("fileProgress",c,u);break;case"error":c.abort(),i=!0,c.chunks=[],c.resumableObj.fire("fileError",c,u);break;case"success":if(i)return;c.resumableObj.fire("fileProgress",c),c.isComplete()&&c.resumableObj.fire("fileSuccess",c,u);break;case"retry":c.resumableObj.fire("fileRetry",c);break}};return c.chunks=[],c.abort=function(){var g=0;o.each(c.chunks,function(u){u.status()=="uploading"&&(u.abort(),g++)}),g>0&&c.resumableObj.fire("fileProgress",c)},c.cancel=function(){var g=c.chunks;c.chunks=[],o.each(g,function(u){u.status()=="uploading"&&(u.abort(),c.resumableObj.uploadNextChunk())}),c.resumableObj.removeFile(c),c.resumableObj.fire("fileProgress",c)},c.retry=function(){c.bootstrap();var g=!1;c.resumableObj.on("chunkingComplete",function(){g||c.resumableObj.upload(),g=!0})},c.bootstrap=function(){c.abort(),i=!1,c.chunks=[],c._prevProgress=0;for(var g=c.getOpt("forceChunkSize")?Math.ceil:Math.floor,u=Math.max(g(c.file.size/c.getOpt("chunkSize")),1),v=0;v<u;v++)(function(y){window.setTimeout(function(){c.chunks.push(new w(c.resumableObj,c,y,C)),c.resumableObj.fire("chunkingProgress",c,y/u)},0)})(v);window.setTimeout(function(){c.resumableObj.fire("chunkingComplete",c)},0)},c.progress=function(){if(i)return 1;var g=0,u=!1;return o.each(c.chunks,function(v){v.status()=="error"&&(u=!0),g+=v.progress(!0)}),g=u||g>.99999?1:g,g=Math.max(c._prevProgress,g),c._prevProgress=g,g},c.isUploading=function(){var g=!1;return o.each(c.chunks,function(u){if(u.status()=="uploading")return g=!0,!1}),g},c.isComplete=function(){var g=!1;return o.each(c.chunks,function(u){var v=u.status();if(v=="pending"||v=="uploading"||u.preprocessState===1)return g=!0,!1}),!g},c.pause=function(g){typeof g>"u"?c._pause=!c._pause:c._pause=g},c.isPaused=function(){return c._pause},c.resumableObj.fire("chunkingStart",c),c.bootstrap(),this}function w(l,a,d,c){var i=this;i.opts={},i.getOpt=l.getOpt,i.resumableObj=l,i.fileObj=a,i.fileObjSize=a.size,i.fileObjType=a.file.type,i.offset=d,i.callback=c,i.lastProgressCallback=new Date,i.tested=!1,i.retries=0,i.pendingRetry=!1,i.preprocessState=0;var C=i.getOpt("chunkSize");return i.loaded=0,i.startByte=i.offset*C,i.endByte=Math.min(i.fileObjSize,(i.offset+1)*C),i.fileObjSize-i.endByte<C&&!i.getOpt("forceChunkSize")&&(i.endByte=i.fileObjSize),i.xhr=null,i.test=function(){i.xhr=new XMLHttpRequest;var g=function(z){i.tested=!0;var R=i.status();R=="success"?(i.callback(R,i.message()),i.resumableObj.uploadNextChunk()):i.send()};i.xhr.addEventListener("load",g,!1),i.xhr.addEventListener("error",g,!1),i.xhr.addEventListener("timeout",g,!1);var u=[],v=i.getOpt("parameterNamespace"),y=i.getOpt("query");typeof y=="function"&&(y=y(i.fileObj,i)),o.each(y,function(z,R){u.push([encodeURIComponent(v+z),encodeURIComponent(R)].join("="))}),u=u.concat([["chunkNumberParameterName",i.offset+1],["chunkSizeParameterName",i.getOpt("chunkSize")],["currentChunkSizeParameterName",i.endByte-i.startByte],["totalSizeParameterName",i.fileObjSize],["typeParameterName",i.fileObjType],["identifierParameterName",i.fileObj.uniqueIdentifier],["fileNameParameterName",i.fileObj.fileName],["relativePathParameterName",i.fileObj.relativePath],["totalChunksParameterName",i.fileObj.chunks.length]].filter(function(z){return i.getOpt(z[0])}).map(function(z){return[v+i.getOpt(z[0]),encodeURIComponent(z[1])].join("=")})),i.xhr.open(i.getOpt("testMethod"),o.getTarget("test",u)),i.xhr.timeout=i.getOpt("xhrTimeout"),i.xhr.withCredentials=i.getOpt("withCredentials");var L=i.getOpt("headers");typeof L=="function"&&(L=L(i.fileObj,i)),o.each(L,function(z,R){i.xhr.setRequestHeader(z,R)}),i.xhr.send(null)},i.preprocessFinished=function(){i.preprocessState=2,i.send()},i.send=function(){var g=i.getOpt("preprocess");if(typeof g=="function")switch(i.preprocessState){case 0:i.preprocessState=1,g(i);return;case 1:return}if(i.getOpt("testChunks")&&!i.tested){i.test();return}i.xhr=new XMLHttpRequest,i.xhr.upload.addEventListener("progress",function(A){new Date-i.lastProgressCallback>i.getOpt("throttleProgressCallbacks")*1e3&&(i.callback("progress"),i.lastProgressCallback=new Date),i.loaded=A.loaded||0},!1),i.loaded=0,i.pendingRetry=!1,i.callback("progress");var u=function(A){var P=i.status();if(P=="success"||P=="error")i.callback(P,i.message()),i.resumableObj.uploadNextChunk();else{i.callback("retry",i.message()),i.abort(),i.retries++;var U=i.getOpt("chunkRetryInterval");U!==void 0?(i.pendingRetry=!0,setTimeout(i.send,U)):i.send()}};i.xhr.addEventListener("load",u,!1),i.xhr.addEventListener("error",u,!1),i.xhr.addEventListener("timeout",u,!1);var v=[["chunkNumberParameterName",i.offset+1],["chunkSizeParameterName",i.getOpt("chunkSize")],["currentChunkSizeParameterName",i.endByte-i.startByte],["totalSizeParameterName",i.fileObjSize],["typeParameterName",i.fileObjType],["identifierParameterName",i.fileObj.uniqueIdentifier],["fileNameParameterName",i.fileObj.fileName],["relativePathParameterName",i.fileObj.relativePath],["totalChunksParameterName",i.fileObj.chunks.length]].filter(function(A){return i.getOpt(A[0])}).reduce(function(A,P){return A[i.getOpt(P[0])]=P[1],A},{}),y=i.getOpt("query");typeof y=="function"&&(y=y(i.fileObj,i)),o.each(y,function(A,P){v[A]=P});var L=i.fileObj.file.slice?"slice":i.fileObj.file.mozSlice?"mozSlice":i.fileObj.file.webkitSlice?"webkitSlice":"slice",z=i.fileObj.file[L](i.startByte,i.endByte,i.getOpt("setChunkTypeFromFile")?i.fileObj.file.type:""),R=null,S=[],O=i.getOpt("parameterNamespace");if(i.getOpt("method")==="octet")R=z,o.each(v,function(A,P){S.push([encodeURIComponent(O+A),encodeURIComponent(P)].join("="))});else if(R=new FormData,o.each(v,function(A,P){R.append(O+A,P),S.push([encodeURIComponent(O+A),encodeURIComponent(P)].join("="))}),i.getOpt("chunkFormat")=="blob")R.append(O+i.getOpt("fileParameterName"),z,i.fileObj.fileName);else if(i.getOpt("chunkFormat")=="base64"){var $=new FileReader;$.onload=function(A){R.append(O+i.getOpt("fileParameterName"),$.result),i.xhr.send(R)},$.readAsDataURL(z)}var F=o.getTarget("upload",S),k=i.getOpt("uploadMethod");i.xhr.open(k,F),i.getOpt("method")==="octet"&&i.xhr.setRequestHeader("Content-Type","application/octet-stream"),i.xhr.timeout=i.getOpt("xhrTimeout"),i.xhr.withCredentials=i.getOpt("withCredentials");var M=i.getOpt("headers");typeof M=="function"&&(M=M(i.fileObj,i)),o.each(M,function(A,P){i.xhr.setRequestHeader(A,P)}),i.getOpt("chunkFormat")=="blob"&&i.xhr.send(R)},i.abort=function(){i.xhr&&i.xhr.abort(),i.xhr=null},i.status=function(){return i.pendingRetry?"uploading":i.xhr?i.xhr.readyState<4?"uploading":i.xhr.status==200||i.xhr.status==201?"success":o.contains(i.getOpt("permanentErrors"),i.xhr.status)||i.retries>=i.getOpt("maxChunkRetries")?"error":(i.abort(),"pending"):"pending"},i.message=function(){return i.xhr?i.xhr.responseText:""},i.progress=function(g){typeof g>"u"&&(g=!1);var u=g?(i.endByte-i.startByte)/i.fileObjSize:1;if(i.pendingRetry)return 0;(!i.xhr||!i.xhr.status)&&(u*=.95);var v=i.status();switch(v){case"success":case"error":return 1*u;case"pending":return 0*u;default:return i.loaded/(i.endByte-i.startByte)*u}},this}return n.uploadNextChunk=function(){var l=!1;if(n.getOpt("prioritizeFirstAndLastChunk")&&(o.each(n.files,function(d){if(d.chunks.length&&d.chunks[0].status()=="pending"&&d.chunks[0].preprocessState===0)return d.chunks[0].send(),l=!0,!1;if(d.chunks.length>1&&d.chunks[d.chunks.length-1].status()=="pending"&&d.chunks[d.chunks.length-1].preprocessState===0)return d.chunks[d.chunks.length-1].send(),l=!0,!1}),l)||(o.each(n.files,function(d){if(d.isPaused()===!1&&o.each(d.chunks,function(c){if(c.status()=="pending"&&c.preprocessState===0)return c.send(),l=!0,!1}),l)return!1}),l))return!0;var a=!1;return o.each(n.files,function(d){if(!d.isComplete())return a=!0,!1}),a||n.fire("complete"),!1},n.assignBrowse=function(l,a){typeof l.length>"u"&&(l=[l]),o.each(l,function(d){var c;d.tagName==="INPUT"&&d.type==="file"?c=d:(c=document.createElement("input"),c.setAttribute("type","file"),c.style.display="none",d.addEventListener("click",function(){c.style.opacity=0,c.style.display="block",c.focus(),c.click(),c.style.display="none"},!1),d.appendChild(c));var i=n.getOpt("maxFiles");typeof i>"u"||i!=1?c.setAttribute("multiple","multiple"):c.removeAttribute("multiple"),a?c.setAttribute("webkitdirectory","webkitdirectory"):c.removeAttribute("webkitdirectory");var C=n.getOpt("fileType");typeof C<"u"&&C.length>=1?c.setAttribute("accept",C.map(function(g){return"."+g}).join(",")):c.removeAttribute("accept"),c.addEventListener("change",function(g){T(g.target.files,g);var u=n.getOpt("clearInput");u&&(g.target.value="")},!1)})},n.assignDrop=function(l){typeof l.length>"u"&&(l=[l]),o.each(l,function(a){a.addEventListener("dragover",s,!1),a.addEventListener("dragenter",s,!1),a.addEventListener("drop",f,!1)})},n.unAssignDrop=function(l){typeof l.length>"u"&&(l=[l]),o.each(l,function(a){a.removeEventListener("dragover",s),a.removeEventListener("dragenter",s),a.removeEventListener("drop",f)})},n.isUploading=function(){var l=!1;return o.each(n.files,function(a){if(a.isUploading())return l=!0,!1}),l},n.upload=function(){if(!n.isUploading()){n.fire("uploadStart");for(var l=1;l<=n.getOpt("simultaneousUploads");l++)n.uploadNextChunk()}},n.pause=function(){o.each(n.files,function(l){l.abort()}),n.fire("pause")},n.cancel=function(){n.fire("beforeCancel");for(var l=n.files.length-1;l>=0;l--)n.files[l].cancel();n.fire("cancel")},n.progress=function(){var l=0,a=0;return o.each(n.files,function(d){l+=d.progress()*d.size,a+=d.size}),a>0?l/a:0},n.addFile=function(l,a){T([l],a)},n.addFiles=function(l,a){T(l,a)},n.removeFile=function(l){for(var a=n.files.length-1;a>=0;a--)n.files[a]===l&&n.files.splice(a,1)},n.getFromUniqueIdentifier=function(l){var a=!1;return o.each(n.files,function(d){d.uniqueIdentifier==l&&(a=d)}),a},n.getSize=function(){var l=0;return o.each(n.files,function(a){l+=a.size}),l},n.handleDropEvent=function(l){f(l)},n.handleChangeEvent=function(l){T(l.target.files,l),l.target.value=""},n.updateQuery=function(l){n.opts.query=l},this};e.exports=t})()})(wn);var Xi=wn.exports;const Wi=Pn(Xi);function qt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jn(e)}const sa=H({name:"NewbieUploader",props:{value:{type:[Object,Array,String],default:()=>({})},name:{type:String,default:"file"},headers:{type:Object,default:()=>({})},accept:{type:String,default:""},type:{type:String,default:"picture-card"},disabled:{type:Boolean,default:!1},maxSize:{type:Number,default:20},maxNum:{type:Number,default:1},multiple:{type:Boolean,default:!1},multipart:{type:Boolean,default:!1},action:{type:String,default:""},extraData:{type:Object,default:()=>({})},uploadText:{type:String,default:"上传"},uploadProps:{type:Object,default:()=>({})}},emits:["update:value","success"],setup(e,{emit:t}){const{STATE_CODE_SUCCESS:r}=jn,n=xn.useInjectFormItemContext(),o=en(Cn,()=>({})),f=o.uploadUrl||"",s=o.defaultFileItem||{},{url:p,path:b,name:I}=s,h=Se({fileList:[],previewVisible:!1,previewCurrent:0,progress:e.multipart?{strokeColor:{"0%":"#108ee9","100%":"#87d068"},strokeWidth:3,format:u=>`${parseFloat(u.toFixed(2))}%`}:null}),T=D(()=>h.fileList.length>=e.maxNum),j=D(()=>e.type==="picture-card"),w=u=>u?(u=Yt(u)?u:[u],u=u.filter(v=>v[p]||v[I]||v[b]).map(v=>({uid:Sr(1,1e7),name:v[I]||"附件",url:v[p],...v})),u):[];ue(()=>{h.fileList=w(e.value)}),oe(()=>e.value,u=>{h.fileList=w(u)});const l=u=>{h.previewCurrent=h.fileList.findIndex(v=>v.uid===u.uid),h.previewVisible=!0},a=u=>{let v=u.filter(y=>y.done||!!y[b]||!!y[I]).map(y=>Ct(y,Object.keys(s)));e.maxNum===1&&([v]=v,v||(v={[b]:"",[p]:""})),t("update:value",v),t("success",v),n.onFieldChange()},d=({file:u,fileList:v})=>{if(v=v.map(y=>{if(y.status==="done"&&y.response){const L=y.response;L.result[b]?(y={...y,...Ct(L.result,Object.keys(s))},y.done=!0):y.isRemoved=!0}else y.status==="error"&&(y.isRemoved=!0);return y}).filter(y=>!y.isRemoved),u.status==="done"&&u.response)u.response.status&&u.response.status!==r?De.error(u.response.result||"上传失败,请稍后再试"):u.response.result[b]&&a(v);else if(u.status==="removed")a(v);else if(u.status==="error"&&u.error)u.error.status===413?De.error("413, 超过服务器上传附件的大小限制"):De.error(u.error.message||"上传失败,请稍后再试");else if(!u.status){let y=-1;v.forEach((L,z)=>{L.uid===u.uid&&(y=z)}),y>=0&&v.splice(y,1)}h.fileList=v},c=u=>u.size>e.maxSize*1024*1024?(De.error(`最大只能上传${e.maxSize}M 的文件`),!1):T.value?(De.error(`最多只能上传${e.maxNum}个文件`),!1):!0,i=async({action:u,data:v,file:y,filename:L,headers:z,onError:R,onProgress:S,onSuccess:O,withCredentials:$})=>{console.log("Using uploadAction");const F=new FormData;v&&Object.keys(v).forEach(k=>{F.append(k,v[k])}),F.append(L,y);try{let k=await In().post(u,F,{withCredentials:$,headers:z,onUploadProgress:({total:M,loaded:A})=>{S({percent:parseInt(Math.round(A/M*100).toFixed(2))},y)}});O(k,y)}catch(k){R(k)}return{abort(){console.log("upload progress is aborted.")}}},C=async({action:u,data:v,file:y,headers:L,onError:z,onProgress:R,onSuccess:S})=>{console.log("Using multipartUploadAction");const O=new Wi({chunkSize:3*1024*1024,simultaneousUploads:10,testChunks:!1,throttleProgressCallbacks:1,target:u,query:v,headers:L});O.on("fileAdded",()=>{O.upload()}),O.on("fileProgress",$=>{R({percent:$.progress()*100})}),O.on("fileSuccess",($,F)=>{S(JSON.parse(F),$)}),O.on("fileError",$=>{z($)}),O.addFile(y)},g=()=>j.value?T.value?null:[e.disabled?m(Wr,null,null):m($t,null,null),e.disabled?null:m("div",{class:"newbie-upload-text"},[Kn("上传")])]:!j.value&&!T.value?[m(Tn,{label:e.uploadText||"上传",type:"primary",icon:m($t,null,null)},null)]:null;return()=>{let u,v;return m("div",{class:"newbie-uploader"},[m(Hi,Qn({fileList:h.fileList,"onUpdate:fileList":y=>h.fileList=y,class:`newbie-upload ${j.value?"is-image":""}`,name:e.name,listType:e.type,disabled:e.disabled,accept:e.accept,action:e.action||f,headers:e.headers,data:e.extraData,multiple:e.multiple,progress:h.progress,beforeUpload:c,customRequest:e.multipart?C:i,onPreview:l,onChange:d},e.uploadProps),qt(u=g())?u:{default:()=>[u]}),m(vn,{preview:{visible:h.previewVisible,onVisibleChange:y=>h.previewVisible=y,current:h.previewCurrent}},qt(v=h.fileList.map(y=>m(Ao,{style:{display:"none"},src:y.url},null)))?v:{default:()=>[v]})])}}});export{Tr as D,sa as N,sn as g};