物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
19 KiB

import{H as T}from"./index-bVOhw2NF.js";var H=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var t=1.70158;return e===1?1:e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return e===0?0:--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}}),Bounce:Object.freeze({In:function(e){return 1-H.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?H.Bounce.In(e*2)*.5:H.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(t){return Math.pow(t,e)},Out:function(t){return 1-Math.pow(1-t,e)},InOut:function(t){return t<.5?Math.pow(t*2,e)/2:(1-Math.pow(2-t*2,e))/2+.5}}}}),O=function(){return performance.now()},E=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(i){return t._tweens[i]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},e.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},e.prototype.update=function(t,i){t===void 0&&(t=O()),i===void 0&&(i=!1);var s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(var a=0;a<s.length;a++){var r=this._tweens[s[a]],n=!i;r&&r.update(t,n)===!1&&!i&&delete this._tweens[s[a]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),I={Linear:function(e,t){var i=e.length-1,s=i*t,a=Math.floor(s),r=I.Utils.Linear;return t<0?r(e[0],e[1],s):t>1?r(e[i],e[i-1],i-s):r(e[a],e[a+1>i?i:a+1],s-a)},Bezier:function(e,t){for(var i=0,s=e.length-1,a=Math.pow,r=I.Utils.Bernstein,n=0;n<=s;n++)i+=a(1-t,s-n)*a(t,n)*e[n]*r(s,n);return i},CatmullRom:function(e,t){var i=e.length-1,s=i*t,a=Math.floor(s),r=I.Utils.CatmullRom;return e[0]===e[i]?(t<0&&(a=Math.floor(s=i*(1+t))),r(e[(a-1+i)%i],e[a],e[(a+1)%i],e[(a+2)%i],s-a)):t<0?e[0]-(r(e[0],e[0],e[1],e[1],-s)-e[0]):t>1?e[i]-(r(e[i],e[i],e[i-1],e[i-1],s-i)-e[i]):r(e[a?a-1:0],e[a],e[i<a+1?i:a+1],e[i<a+2?i:a+2],s-a)},Utils:{Linear:function(e,t,i){return(t-e)*i+e},Bernstein:function(e,t){var i=I.Utils.Factorial;return i(e)/i(t)/i(e-t)},Factorial:function(){var e=[1];return function(t){var i=1;if(e[t])return e[t];for(var s=t;s>1;s--)i*=s;return e[t]=i,i}}(),CatmullRom:function(e,t,i,s,a){var r=(i-e)*.5,n=(s-t)*.5,l=a*a,o=a*l;return(2*t-2*i+r+n)*o+(-3*t+3*i-2*r-n)*l+r*a+t}}},M=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),S=new E,R=function(){function e(t,i){i===void 0&&(i=S),this._object=t,this._group=i,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=H.Linear.None,this._interpolationFunction=I.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=M.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(t,i){if(i===void 0&&(i=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=i<0?0:i,this},e.prototype.duration=function(t){return t===void 0&&(t=1e3),this._duration=t<0?0:t,this},e.prototype.dynamic=function(t){return t===void 0&&(t=!1),this._isDynamic=t,this},e.prototype.start=function(t,i){if(t===void 0&&(t=O()),i===void 0&&(i=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var s in this._valuesStartRepeat)this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||i){if(this._propertiesAreSetUp=!0,!this._isDynamic){var a={};for(var r in this._valuesEnd)a[r]=this._valuesEnd[r];this._valuesEnd=a}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,i)}return this},e.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},e.prototype._setupProperties=function(t,i,s,a,r){for(var n in s){var l=t[n],o=Array.isArray(l),f=o?"array":typeof l,h=!o&&Array.isArray(s[n]);if(!(f==="undefined"||f==="function")){if(h){var c=s[n];if(c.length===0)continue;for(var _=[l],d=0,u=c.length;d<u;d+=1){var y=this._handleRelativeValue(l,c[d]);if(isNaN(y)){h=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(y)}h&&(s[n]=_)}if((f==="object"||o)&&l&&!h){i[n]=o?[]:{};var p=l;for(var v in p)i[n][v]=p[v];a[n]=o?[]:{};var c=s[n];if(!this._isDynamic){var g={};for(var v in c)g[v]=c[v];s[n]=c=g}this._setupProperties(p,i[n],c,a[n],r)}else(typeof i[n]>"u"||r)&&(i[n]=l),o||(i[n]*=1),h?a[n]=s[n].slice().reverse():a[n]=i[n]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(t){return t===void 0&&(t=O()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this),this)},e.prototype.resume=function(t){return t===void 0&&(t=O()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},e.prototype.stopChainedTweens=function(){for(var t=0,i=this._chainedTweens.length;t<i;t++)this._chainedTweens[t].stop();return this},e.prototype.group=function(t){return t===void 0&&(t=S),this._group=t,this},e.prototype.delay=function(t){return t===void 0&&(t=0),this._delayTime=t,this},e.prototype.repeat=function(t){return t===void 0&&(t=0),this._initialRepeat=t,this._repeat=t,this},e.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},e.prototype.yoyo=function(t){return t===void 0&&(t=!1),this._yoyo=t,this},e.prototype.easing=function(t){return t===void 0&&(t=H.Linear.None),this._easingFunction=t,this},e.prototype.interpolation=function(t){return t===void 0&&(t=I.Linear),this._interpolationFunction=t,this},e.prototype.chain=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return this._chainedTweens=t,this},e.prototype.onStart=function(t){return this._onStartCallback=t,this},e.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},e.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},e.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},e.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},e.prototype.onStop=function(t){return this._onStopCallback=t,this},e.prototype.update=function(t,i){var s=this,a;if(t===void 0&&(t=O()),i===void 0&&(i=!0),this._isPaused)return!0;var r,n=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>n)return!1;i&&this.start(t,!0)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var l=t-this._startTime,o=this._duration+((a=this._repeatDelayTime)!==null&&a!==void 0?a:this._delayTime),f=this._duration+this._repeat*o,h=function(){if(s._duration===0||l>f)return 1;var p=Math.trunc(l/o),v=l-p*o,g=Math.min(v/s._duration,1);return g===0&&l===s._duration?1:g},c=h(),_=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,_),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),this._duration===0||l>=this._duration)if(this._repeat>0){var d=Math.min(Math.trunc((l-this._duration)/o)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=d);for(r in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[r]=="string"&&(this._valuesStartRepeat[r]=this._valuesStartRepeat[r]+parseFloat(this._valuesEnd[r])),this._yoyo&&this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=o*d,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var u=0,y=this._chainedTweens.length;u<y;u++)this._chainedTweens[u].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(t,i,s,a){for(var r in s)if(i[r]!==void 0){var n=i[r]||0,l=s[r],o=Array.isArray(t[r]),f=Array.isArray(l),h=!o&&f;h?t[r]=this._interpolationFunction(l,a):typeof l=="object"&&l?this._updateProperties(t[r],n,l,a):(l=this._handleRelativeValue(n,l),typeof l=="number"&&(t[r]=n+(l-n)*a))}},e.prototype._handleRelativeValue=function(t,i){return typeof i!="string"?i:i.charAt(0)==="+"||i.charAt(0)==="-"?t+parseFloat(i):parseFloat(i)},e.prototype._swapEndStartRepeatValues=function(t){var i=this._valuesStartRepeat[t],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=i},e}(),b=S;b.getAll.bind(b);b.removeAll.bind(b);b.add.bind(b);b.remove.bind(b);var U=b.update.bind(b);function L(e){if(!e)return{enabled:!1,"hue-rotate":0,saturate:100,brightness:100,contrast:100,blur:0};const t={};return e.split(" ").forEach(i=>{const s=/([^(]+)\(([^)]+)\)/,a=i.match(s),r=a?a[1].trim():null,n=a?a[2]:null;t[r]=Number.parseFloat(n)}),t}function B(e=15){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let i="";const s=t.length;for(let a=0;a<e;a++)i+=t.charAt(Math.floor(Math.random()*s));return i}function D(e){return window.structuredClone(e)}const j=[{value:"lrd__opacity",label:"渐隐渐显",isHovered:!1},{value:"lrd__scale",label:"缩小放大",isHovered:!1},{value:"lrd__pulse",label:"放大缩小",isHovered:!1},{value:"lrd__clockwise",label:"顺时针旋转",isHovered:!1},{value:"lrd__contra",label:"逆时针旋转",isHovered:!1},{value:"lrd__wind",label:"回旋转",isHovered:!1},{value:"lrd__cloudTB",label:"上下浮动",isHovered:!1},{value:"lrd__cloudLR",label:"左右浮动",isHovered:!1}],F=[{value:"bounce",label:"弹跳",isHovered:!1},{value:"flash",label:"闪烁",isHovered:!1},{value:"pulse",label:"脉冲",isHovered:!1},{value:"rubberBand",label:"橡皮筋",isHovered:!1},{value:"headShake",label:"头晕",isHovered:!1},{value:"wobble",label:"摇晃",isHovered:!1},{value:"jello",label:"脸颊抖动",isHovered:!1},{value:"tada",label:"叹气",isHovered:!1},{value:"heartBeat",label:"心跳",isHovered:!1},{value:"shakeX",label:"X轴抖动",isHovered:!1},{value:"shakeY",label:"Y轴抖动",isHovered:!1},{value:"swing",label:"摆动",isHovered:!1}],z=[{value:"bounceIn",label:"弹入",isHovered:!1},{value:"bounceInDown",label:"下弹入",isHovered:!1},{value:"bounceInLeft",label:"左弹入",isHovered:!1},{value:"bounceInRight",label:"右弹入",isHovered:!1},{value:"bounceInUp",label:"上弹入",isHovered:!1},{value:"fadeIn",label:"淡入",isHovered:!1},{value:"fadeInDown",label:"下淡入",isHovered:!1},{value:"fadeInDownBig",label:"下大淡入",isHovered:!1},{value:"fadeInLeft",label:"左淡入",isHovered:!1},{value:"fadeInLeftBig",label:"左大淡入",isHovered:!1},{value:"fadeInRight",label:"右淡入",isHovered:!1},{value:"fadeInRightBig",label:"右大淡入",isHovered:!1},{value:"fadeInUp",label:"上淡入",isHovered:!1},{value:"fadeInUpBig",label:"上大淡入",isHovered:!1},{value:"flipInX",label:"X轴翻转入",isHovered:!1},{value:"flipInY",label:"Y轴翻转入",isHovered:!1},{value:"lightSpeedIn",label:"光速入",isHovered:!1},{value:"rotateIn",label:"旋转入",isHovered:!1},{value:"rotateInDownLeft",label:"左下旋转入",isHovered:!1},{value:"rotateInDownRight",label:"右下旋转入",isHovered:!1},{value:"rotateInUpLeft",label:"左上旋转入",isHovered:!1},{value:"rotateInUpRight",label:"右上旋转入",isHovered:!1},{value:"rollIn",label:"滚入",isHovered:!1},{value:"slideInDown",label:"下滑入",isHovered:!1},{value:"slideInLeft",label:"左滑入",isHovered:!1},{value:"slideInRight",label:"右滑入",isHovered:!1},{value:"slideInUp",label:"上滑入",isHovered:!1},{value:"zoomIn",label:"放大",isHovered:!1},{value:"zoomInDown",label:"下放大",isHovered:!1},{value:"zoomInLeft",label:"左放大",isHovered:!1},{value:"zoomInRight",label:"右放大",isHovered:!1},{value:"zoomInUp",label:"上放大",isHovered:!1}],A=[{value:"bounceOut",label:"弹出",isHovered:!1},{value:"bounceOutDown",label:"下弹出",isHovered:!1},{value:"bounceOutLeft",label:"左弹出",isHovered:!1},{value:"bounceOutRight",label:"右弹出",isHovered:!1},{value:"bounceOutUp",label:"上弹出",isHovered:!1},{value:"fadeOut",label:"淡出",isHovered:!1},{value:"fadeOutDown",label:"下淡出",isHovered:!1},{value:"fadeOutDownBig",label:"下大淡出",isHovered:!1},{value:"fadeOutLeft",label:"左淡出",isHovered:!1},{value:"fadeOutLeftBig",label:"左大淡出",isHovered:!1},{value:"fadeOutRight",label:"右淡出",isHovered:!1},{value:"fadeOutRightBig",label:"右大淡出",isHovered:!1},{value:"fadeOutUp",label:"上淡出",isHovered:!1},{value:"fadeOutUpBig",label:"上大淡出",isHovered:!1},{value:"flipOutX",label:"X轴翻转出",isHovered:!1},{value:"flipOutY",label:"Y轴翻转出",isHovered:!1},{value:"hinge",label:"抖动",isHovered:!1},{value:"lightSpeedOut",label:"光速出",isHovered:!1},{value:"rotateOut",label:"旋转出",isHovered:!1},{value:"rotateOutDownLeft",label:"左下旋转出",isHovered:!1},{value:"rotateOutDownRight",label:"右下旋转出",isHovered:!1},{value:"rotateOutUpLeft",label:"左上旋转出",isHovered:!1},{value:"rotateOutUpRight",label:"右上旋转出",isHovered:!1},{value:"rollOut",label:"滚出",isHovered:!1},{value:"slideOutDown",label:"下滑出",isHovered:!1},{value:"slideOutLeft",label:"左滑出",isHovered:!1},{value:"slideOutRight",label:"右滑出",isHovered:!1},{value:"slideOutUp",label:"上滑出",isHovered:!1},{value:"zoomOut",label:"缩小",isHovered:!1},{value:"zoomOutDown",label:"下缩小",isHovered:!1},{value:"zoomOutLeft",label:"左缩小",isHovered:!1},{value:"zoomOutRight",label:"右缩小",isHovered:!1},{value:"zoomOutUp",label:"上缩小",isHovered:!1}],x=[{value:"jackInTheBox",label:"盒子",isHovered:!1},{value:"roll",label:"滚动",isHovered:!1},{value:"rubberBand",label:"橡皮筋",isHovered:!1},{value:"wobble",label:"摇晃",isHovered:!1},{value:"jello",label:"脸颊抖动",isHovered:!1},{value:"tada",label:"吃惊",isHovered:!1}];function N(e,t){const{transformList:i,animationConfig:s}=e.targetProps;function a(){const l=document.getElementById(t.id),o={translate:{x:0,y:0},rotate:{x:0,y:0,z:0},scale:{x:1,y:1},opacity:1},f=[],h=[],c=new R(o).to({translate:{x:0,y:0},rotate:{x:0,y:0,z:0},scale:{x:1,y:1},opacity:1},2e3).easing(H.Linear.None).onUpdate(d=>{n(l,d)}),_=T(i);if(_.forEach(d=>{const u=d["animation-timing-function"],{translate:y,rotate:p,scale:v,opacity:g}=d,w=new R(o).to({translate:y,rotate:p,scale:v,opacity:g},d["animation-duration"]*1e3).easing(H.Linear[u]).onUpdate(C=>{n(l,C)}).onComplete(()=>{});f.push(w)}),f.forEach((d,u)=>{u!==f.length-1&&f[u].chain(f[u+1])}),s["animation-direction"]==="alternate"){for(let d=_.length-2;d>=0;d--){const u=_[d],y=u["animation-timing-function"],{translate:p,rotate:v,scale:g,opacity:w}=u,C=new R(o).to({translate:p,rotate:v,scale:g,opacity:w},u["animation-duration"]*1e3).easing(H.Linear[y]).onUpdate(P=>{n(l,P)}).onComplete(()=>{});h.push(C)}f[f.length-1].chain(h[0]),h.forEach((d,u)=>{if(u===h.length-1){h[u].chain(c),s["animation-iteration-count"]===Number.POSITIVE_INFINITY&&c.chain(f[0]);return}h[u].chain(h[u+1])})}f[0].start()}function r(l){const o=requestAnimationFrame(r);U(l)||cancelAnimationFrame(o)}function n(l,o){const{translate:f,rotate:h,scale:c,opacity:_}=o,d=l.style,u=`translate3d(${f.x}px, ${f.y}px, 0) rotate3d(${h.x}, ${h.y}, ${h.z}, 0deg) scale(${c.x}, ${c.y})`;d.opacity=_,d.transform=u}setTimeout(()=>{a(),r(performance.now())},s["animation-delay"])}function q(e,t){const i=new Blob([e],{type:"application/json;charset=utf-8"}),s=URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.download=t,a.href=s,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(s)}function Y({extraHeight:e,id:t}){typeof e>"u"&&(e=65);let i=null;t?i=document.getElementById(t)?document.getElementById(t).getElementsByClassName("n-data-table-base-table-header")[0]:null:i=document.getElementsByClassName("ant-table-thead")[0];let s=0;return i&&(s=i.getBoundingClientRect().bottom),`calc(100vh - ${s+e}px)`}export{N as a,F as b,j as c,x as d,L as e,D as f,Y as g,z as i,A as o,q as s,B as u};