xframelib 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import{h as Di,openBlock as q,createElementBlock as fe,normalizeStyle as ge,renderSlot as ie,defineComponent as Ie,ref as K,withModifiers as _o,reactive as So,getCurrentInstance as Li,computed as je,watch as Te,onMounted as Zt,onBeforeUnmount as $i,nextTick as Co,resolveComponent as dt,createBlock as Q,Transition as Eo,withCtx as be,withDirectives as ko,createElementVNode as J,Fragment as Re,createTextVNode as Qt,toDisplayString as en,createCommentVNode as ne,vShow as xo,markRaw as Ni,onErrorCaptured as Bi,Suspense as Wi,createVNode as ft,KeepAlive as Io,resolveDynamicComponent as _e,toRefs as Ui,renderList as He,normalizeClass as Pe,TransitionGroup as Oi,onUnmounted as ji,unref as tn}from"vue";import Hi from"axios";import Fi from"qs";import{Client as qi,ClientContext as nn}from"@hprose/rpc-core";import{ByteStream as ke,Writer as on,Reader as rn,ValueReader as Xi}from"@hprose/io";import{HttpTransport as Vi}from"@hprose/rpc-html5";import{Icon as sn}from"@iconify/vue";var Gi={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((n,e)=>(n[e.id]=e)&&n,{})}},methods:{updatePaneComponents(){this.panes.forEach(n=>{n.update&&n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(n,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(n){this.touch.mouseDown&&(n.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(n)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(n,e){"ontouchstart"in window&&(n.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(n,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(n,e){let t=0;this.panes=this.panes.map((o,r)=>(o.size=r===e?o.max:o.min,r!==e&&(t+=o.min),o)),this.panes[e].size-=t,this.$emit("pane-maximize",this.panes[e])},onPaneClick(n,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(n){const e=this.container.getBoundingClientRect(),{clientX:t,clientY:o}="ontouchstart"in window&&n.touches?n.touches[0]:n;return{x:t-e.left,y:o-e.top}},getCurrentDragPercentage(n){n=n[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(n=e-n),100*n/e},calculatePanesSize(n){const e=this.touch.activeSplitter;let t={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:t.prevPanesSize),r=100-(this.pushOtherPanes?0:t.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(n),r),o);let s=[e,e+1],c=this.panes[s[0]]||null,u=this.panes[s[1]]||null;const g=c.max<100&&i>=c.max+t.prevPanesSize,S=u.max<100&&i<=100-(u.max+this.sumNextPanesSize(e+1));if(g||S)g?(c.size=c.max,u.size=Math.max(100-c.max-t.prevPanesSize-t.nextPanesSize,0)):(c.size=Math.max(100-u.max-t.prevPanesSize-this.sumNextPanesSize(e+1),0),u.size=u.max);else{if(this.pushOtherPanes){const C=this.doPushOtherPanes(t,i);if(!C)return;({sums:t,panesToResize:s}=C),c=this.panes[s[0]]||null,u=this.panes[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(i-t.prevPanesSize-t.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-i-t.nextPanesSize-t.nextReachedMinPanes,u.min),u.max))}},doPushOtherPanes(n,e){const t=this.touch.activeSplitter,o=[t,t+1];return e<n.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(t).index,n.prevReachedMinPanes=0,o[0]<t&&this.panes.forEach((r,i)=>{i>o[0]&&i<=t&&(r.size=r.min,n.prevReachedMinPanes+=r.min)}),n.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(n.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((r,i)=>{i>0&&i<=t&&(r.size=r.min,n.prevReachedMinPanes+=r.min)}),this.panes[o[1]].size=100-n.prevReachedMinPanes-this.panes[0].min-n.prevPanesSize-n.nextPanesSize,null):e>100-n.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(t).index,n.nextReachedMinPanes=0,o[1]>t+1&&this.panes.forEach((r,i)=>{i>t&&i<o[1]&&(r.size=r.min,n.nextReachedMinPanes+=r.min)}),n.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(n.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((r,i)=>{i<this.panesCount-1&&i>=t+1&&(r.size=r.min,n.nextReachedMinPanes+=r.min)}),this.panes[o[0]].size=100-n.prevPanesSize-n.nextReachedMinPanes-this.panes[this.panesCount-1].min-n.nextPanesSize,null):{sums:n,panesToResize:o}},sumPrevPanesSize(n){return this.panes.reduce((e,t,o)=>e+(o<n?t.size:0),0)},sumNextPanesSize(n){return this.panes.reduce((e,t,o)=>e+(o>n+1?t.size:0),0)},findPrevExpandedPane(n){return[...this.panes].reverse().find(e=>e.index<n&&e.size>e.min)||{}},findNextExpandedPane(n){return this.panes.find(e=>e.index>n+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(n=>{const e=n.classList.contains("splitpanes__pane"),t=n.classList.contains("splitpanes__splitter");if(!e&&!t)return n.parentNode.removeChild(n),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(n,e,t=!1){const o=n-1,r=document.createElement("div");r.classList.add("splitpanes__splitter"),t||(r.onmousedown=i=>this.onMouseDown(i,o),typeof window<"u"&&"ontouchstart"in window&&(r.ontouchstart=i=>this.onMouseDown(i,o)),r.onclick=i=>this.onSplitterClick(i,o+1)),this.dblClickSplitter&&(r.ondblclick=i=>this.onSplitterDblClick(i,o+1)),e.parentNode.insertBefore(r,e)},removeSplitter(n){n.onmousedown=void 0,n.onclick=void 0,n.ondblclick=void 0,n.parentNode.removeChild(n)},redoSplitters(){const n=Array.from(this.container.children);n.forEach(t=>{t.className.includes("splitpanes__splitter")&&this.removeSplitter(t)});let e=0;n.forEach(t=>{t.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,t,!0):e&&this.addSplitter(e,t),e++)})},requestUpdate({target:n,...e}){const t=this.indexedPanes[n._.uid];Object.entries(e).forEach(([o,r])=>t[o]=r)},onPaneAdd(n){let e=-1;Array.from(n.$el.parentNode.children).some(r=>(r.className.includes("splitpanes__pane")&&e++,r===n.$el));const t=parseFloat(n.minSize),o=parseFloat(n.maxSize);this.panes.splice(e,0,{id:n._.uid,index:e,min:isNaN(t)?0:t,max:isNaN(o)?100:o,size:n.size===null?null:parseFloat(n.size),givenSize:n.size,update:n.update}),this.panes.forEach((r,i)=>r.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},onPaneRemove(n){const e=this.panes.findIndex(o=>o.id===n._.uid),t=this.panes.splice(e,1)[0];this.panes.forEach((o,r)=>o.index=r),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...t,index:e}}),this.$emit("pane-remove",{removed:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(n={}){n.addedPane||n.removedPane?this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(n):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const n=100/this.panesCount;let e=0;const t=[],o=[];this.panes.forEach(r=>{r.size=Math.max(Math.min(n,r.max),r.min),e-=r.size,r.size>=r.max&&t.push(r.id),r.size<=r.min&&o.push(r.id)}),e>.1&&this.readjustSizes(e,t,o)},initialPanesSizing(){let n=100;const e=[],t=[];let o=0;this.panes.forEach(i=>{n-=i.size,i.size!==null&&o++,i.size>=i.max&&e.push(i.id),i.size<=i.min&&t.push(i.id)});let r=100;n>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(n/(this.panesCount-o),i.max),i.min)),r-=i.size}),r>.1&&this.readjustSizes(n,e,t))},equalizeAfterAddOrRemove({addedPane:n}={}){let e=100/this.panesCount,t=0;const o=[],r=[];n&&n.givenSize!==null&&(e=(100-n.givenSize)/(this.panesCount-1)),this.panes.forEach(i=>{t-=i.size,i.size>=i.max&&o.push(i.id),i.size<=i.min&&r.push(i.id)}),!(Math.abs(t)<.1)&&(this.panes.forEach(i=>{n&&n.givenSize!==null&&n.id===i.id||(i.size=Math.max(Math.min(e,i.max),i.min)),t-=i.size,i.size>=i.max&&o.push(i.id),i.size<=i.min&&r.push(i.id)}),t>.1&&this.readjustSizes(t,o,r))},readjustSizes(n,e,t){let o;o=n>0?n/(this.panesCount-e.length):n/(this.panesCount-t.length),this.panes.forEach(r=>{if(n>0&&!e.includes(r.id)){const i=Math.max(Math.min(r.size+o,r.max),r.min),s=i-r.size;n-=s,r.size=i}else if(!t.includes(r.id)){const i=Math.max(Math.min(r.size+o,r.max),r.min),s=i-r.size;n-=s,r.size=i}r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})}),Math.abs(n)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(n){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,t)=>{e.ondblclick=n?o=>this.onSplitterDblClick(o,t):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return Di("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())},__file:"src/controls/splitpanes/splitpanes.vue"},an={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(n){this.style=n}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(n){this.requestUpdate({target:this,size:n})},minSizeNumber(n){this.requestUpdate({target:this,min:n})},maxSizeNumber(n){this.requestUpdate({target:this,max:n})}}};function cn(n){return window.TouchEvent&&n instanceof TouchEvent}an.render=function(n,e,t,o,r,i){return q(),fe("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=s=>i.onPaneClick(s,n._.uid)),style:ge(n.style)},[ie(n.$slots,"default")],4)},an.__file="src/controls/splitpanes/pane.vue";class de{e;constructor(e){this.e=e}stopPropagation(){this.e.stopPropagation()}preventDefault(){this.e.preventDefault()}get clientX(){return cn(this.e)?(this.e.type==="touchend"?this.e.changedTouches:this.e.touches).item(0).clientX:this.e.clientX}get clientY(){return cn(this.e)?(this.e.type==="touchend"?this.e.changedTouches:this.e.touches).item(0).clientY:this.e.clientY}get clientCoord(){return new Jn(this.clientX,this.clientY)}static bindDown(e,t,o,r=!1){const i=c=>{t(new de(c))},s=c=>{c.touches.length===1&&t(new de(c)),c.touches.length>1&&o&&o(new de(c))};return e.addEventListener("mousedown",i,r),e.addEventListener("touchstart",s,r),()=>{e.removeEventListener("mousedown",i,r),e.removeEventListener("touchstart",s,r)}}static bindMove(e,t,o=!1){const r=s=>{t(new de(s))},i=s=>{s.touches.length===1&&t(new de(s))};return e.addEventListener("mousemove",r,o),e.addEventListener("touchmove",i,o),()=>{e.removeEventListener("mousemove",r,o),e.removeEventListener("touchmove",i,o)}}static bindUp(e,t,o=!1){const r=s=>{t(new de(s))},i=s=>{s.touches.length===0&&t(new de(s))};return e.addEventListener("mouseup",r,o),e.addEventListener("touchend",i,o),()=>{e.removeEventListener("mouseup",r,o),e.removeEventListener("touchend",i,o)}}originalEvent({mouse:e,touch:t}){cn(this.e)?t&&t(this.e):e&&e(this.e)}}class Jn{x;y;constructor(e,t){this.x=e,this.y=t}clone(){return new Jn(this.x,this.y)}}class Ki{handle;container;options;unbindDown;unbindMove;unbindUp;constructor(e,t,o={}){this.handle=e,this.container=t,this.options=o,e&&(this.unbindDown=de.bindDown(e,this.mousedown),e.classList.add("draggable-handle"))}teardown(){this.handle?.classList.remove("draggable-handle"),this.unbindDown&&this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove()}offsetX;offsetY;mousedown=e=>{e.preventDefault(),this.handle&&(this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMoveStart&&this.options.onMoveStart(),this.unbindMove=de.bindMove(document,this.mousemove),this.unbindUp=de.bindUp(document,this.mouseup)};mousemove=e=>{this.container&&(this.container.style.left=`calc(${e.clientX-this.offsetX}px + ${this.container.style.left})`,this.container.style.top=`calc(${e.clientY-this.offsetY}px + ${this.container.style.top})`,this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMove&&this.options.onMove()};mouseup=e=>{this.options.onMoveEnd&&this.options.onMoveEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0}}class Ji{_group;onChange;zIndex;constructor(e,t){this._group=e,this.onChange=t,this.a(o=>o.push(this))}set group(e){this._group=e;const t=gt(this._group),o=gt(e);t.splice(t.indexOf(this),1),o.push(this),Ro()}get group(){return this._group}unregister(){this.a(e=>e.splice(e.indexOf(this),1))}raise(){this.a(e=>{e.splice(e.indexOf(this),1),e.push(this)})}a(e){e(gt(this._group)),Ro()}}const pt=new Map,Yi=0;function gt(n){return pt.has(n)||pt.set(n,[]),pt.get(n)}function To(n,e){return n>e?-To(e,n):n<0&&e>=0?1:n-e}function Ro(){let n=Yi;for(const e of function(t){const o=[];return t.forEach((r,i)=>o.push(i)),o}(pt).sort(To))for(const t of gt(e))n!=t.zIndex&&(t.zIndex=n,t.onChange(n)),n++}function ln(n){if(n){const{width:e,height:t}=n.style;n.style.width="auto",n.style.height="auto";const o=mt(n);return n.style.width=e,n.style.height=t,o}return{width:0,height:0,top:0,left:0,bottom:0,right:0}}function mt(n){const e=n.getBoundingClientRect(),t=e.width,o=e.height,r=e.top,i=e.left;return{width:t,height:o,top:r,left:i,bottom:r+o,right:i+t}}class Zi{container;options;handles;constructor(e,t){if(this.container=e,this.options=t,e&&t){this.handles=Po.map(u=>new u(e,this));const{width:o,height:r}=ln(e),i=t.maxWidth||window.innerWidth,s=t.maxHeight||window.innerHeight;let c=!1;(o<t.minWidth||o>i)&&(e.style.width=`${Mo(o,t.minWidth,i)}px`,c=!0),(r<t.minHeight||r>s)&&(e.style.height=`${Mo(r,t.minHeight,s)}px`,c=!0),c&&t.onResize&&t.onResize()}}teardown(){this.handles?.forEach(e=>e.teardown())}}const Po=[];class xe{container;helper;handle;handleSize=8;unbindDown;unbindMove;unbindUp;constructor(e,t){this.container=e,this.helper=t,this.handle=this.createHandleElement(),this.unbindDown=de.bindDown(this.handle,this.mousedown)}teardown(){this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove(),this.handle.parentElement.removeChild(this.handle)}x0;y0;left0;top0;width0;height0;mousedown=e=>{e.preventDefault(),e.stopPropagation();const{left:t,top:o,width:r,height:i}=mt(this.container);this.x0=e.clientX,this.y0=e.clientY,this.left0=t,this.top0=o,this.width0=r,this.height0=i,this.calcSafeBoundaries(),this.helper.options&&this.helper.options.onResizeStart&&this.helper.options.onResizeStart(),this.unbindMove=de.bindMove(document,this.mousemove),this.unbindUp=de.bindUp(document,this.mouseup)};minLeft;maxLeft;minRight;maxRight;minTop;maxTop;minBottom;maxBottom;calcSafeBoundaries(){if(!this.helper.options)return;const{left:e,top:t,right:o,bottom:r}=mt(this.container),i=this.helper.options,s=i.maxWidth||window.innerWidth,c=i.maxHeight||window.innerHeight;this.minLeft=Math.max(o-s,0),this.maxLeft=o-i.minWidth,this.minRight=e+i.minWidth,this.maxRight=Math.min(e+s,window.innerWidth),this.minTop=Math.max(r-c,0),this.maxTop=r-i.minHeight,this.minBottom=t+i.minHeight,this.maxBottom=Math.min(t+c,window.innerHeight)}mousemove=e=>{e.preventDefault(),e.stopPropagation(),this.setPosition(e),this.fixPosition(),this.helper.options&&this.helper.options.onResize&&this.helper.options.onResize()};fixPosition(){const{width:e,height:t,left:o,top:r,right:i,bottom:s}=mt(this.container),c=this.helper.options;c&&(o<this.minLeft?(this.container.style.width=e+o-this.minLeft+"px",this.container.style.left=`${this.minLeft}px`):o>this.maxLeft?(this.container.style.width=`${c.minWidth}px`,this.container.style.left=`${this.maxLeft}px`):i<this.minRight?this.container.style.width=`${c.minWidth}px`:i>this.maxRight&&(this.container.style.width=this.maxRight-o+"px"),r<this.minTop?(this.container.style.height=t+r-this.minTop+"px",this.container.style.top=`${this.minTop}px`):r>this.maxTop?(this.container.style.height=`${c.minHeight}px`,this.container.style.top=`${this.maxTop}px`):s<this.minBottom?this.container.style.height=`${c.minHeight}px`:s>this.maxBottom&&(this.container.style.height=this.maxBottom-r+"px"))}mouseup=e=>{e.preventDefault(),e.stopPropagation(),this.helper.options&&this.helper.options.onResizeEnd&&this.helper.options.onResizeEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0};createHandleElement(){const e=document.createElement("div"),t=e.style;return t.position="absolute",this.applyStyle(t),this.container.appendChild(e),e}}function Mo(n,e,t){return n<e?e:n>t?t:n}Po.push(class extends xe{setPosition(n){this.container.style.width=this.width0+n.clientX-this.x0+"px",this.container.style.height=this.height0+n.clientY-this.y0+"px"}applyStyle(n){n.width=2*this.handleSize+"px",n.height=2*this.handleSize+"px",n.right=-this.handleSize+"px",n.bottom=-this.handleSize+"px",n.cursor="nwse-resize"}},class extends xe{setPosition(n){this.container.style.height=this.height0+n.clientY-this.y0+"px"}applyStyle(n){n.right=`${this.handleSize}px`,n.left=`${this.handleSize}px`,n.height=2*this.handleSize+"px",n.bottom=-this.handleSize+"px",n.cursor="ns-resize"}},class extends xe{setPosition(n){this.container.style.left=this.left0+n.clientX-this.x0+"px",this.container.style.width=this.width0-(n.clientX-this.x0)+"px",this.container.style.height=this.height0+n.clientY-this.y0+"px"}applyStyle(n){n.left=-this.handleSize+"px",n.bottom=-this.handleSize+"px",n.width=2*this.handleSize+"px",n.height=2*this.handleSize+"px",n.cursor="nesw-resize"}},class extends xe{setPosition(n){this.container.style.left=this.left0+n.clientX-this.x0+"px",this.container.style.width=this.width0-(n.clientX-this.x0)+"px"}applyStyle(n){n.left=-this.handleSize+"px",n.bottom=`${this.handleSize}px`,n.width=2*this.handleSize+"px",n.top=`${this.handleSize}px`,n.cursor="ew-resize"}},class extends xe{setPosition(n){this.container.style.left=this.left0+n.clientX-this.x0+"px",this.container.style.width=this.width0-(n.clientX-this.x0)+"px",this.container.style.top=this.top0+n.clientY-this.y0+"px",this.container.style.height=this.height0-(n.clientY-this.y0)+"px"}applyStyle(n){n.left=-this.handleSize+"px",n.top=-this.handleSize+"px",n.width=2*this.handleSize+"px",n.height=2*this.handleSize+"px",n.cursor="nwse-resize"}},class extends xe{setPosition(n){this.container.style.top=this.top0+n.clientY-this.y0+"px",this.container.style.height=this.height0-(n.clientY-this.y0)+"px"}applyStyle(n){n.left=`${this.handleSize}px`,n.right=`${this.handleSize}px`,n.height=2*this.handleSize+"px",n.top=-this.handleSize+"px",n.cursor="ns-resize"}},class extends xe{setPosition(n){this.container.style.top=this.top0+n.clientY-this.y0+"px",this.container.style.height=this.height0-(n.clientY-this.y0)+"px",this.container.style.width=this.width0+n.clientX-this.x0+"px"}applyStyle(n){n.right=-this.handleSize+"px",n.top=-this.handleSize+"px",n.height=2*this.handleSize+"px",n.width=2*this.handleSize+"px",n.cursor="nesw-resize"}},class extends xe{setPosition(n){this.container.style.width=this.width0+n.clientX-this.x0+"px"}applyStyle(n){n.right=-this.handleSize+"px",n.top=`${this.handleSize}px`,n.bottom=`${this.handleSize}px`,n.width=2*this.handleSize+"px",n.cursor="ew-resize"}});var vt=Ie({name:"",props:{disabled:{type:Boolean,default:!1},windowStyle:{type:Object,required:!0}},components:{},setup(n){const e=K(!1),t=K(!1);return{hover:e,active:t,style:function(){let o=n.windowStyle.button;return e.value&&(o={...o,...this.windowStyle.buttonHover}),t.value&&(o={...o,...this.windowStyle.buttonActive}),o},mouseup:function(o){this.active&&this.$emit("click")},mousedown:function(o){o.preventDefault(),t.value=!0;const r=de.bindUp(document,()=>{t.value=!1,r()})}}}});const Qi=["disabled"];vt.render=function(n,e,t,o,r,i){return q(),fe("div",{class:"btn",style:ge(n.style()),onMouseenter:e[0]||(e[0]=s=>n.hover=!0),onMouseleave:e[1]||(e[1]=s=>n.hover=!1),onMousedown:e[2]||(e[2]=_o((...s)=>n.mousedown&&n.mousedown(...s),["stop"])),onTouchstart:e[3]||(e[3]=_o((...s)=>n.mousedown&&n.mousedown(...s),["stop"])),onMouseup:e[4]||(e[4]=(...s)=>n.mouseup&&n.mouseup(...s)),onTouchend:e[5]||(e[5]=(...s)=>n.mouseup&&n.mouseup(...s)),disabled:n.disabled},[ie(n.$slots,"default")],44,Qi)},vt.__scopeId="data-v-71662210",vt.__file="src/controls/vuewindow/window/Button.vue";const es=Object.prototype.toString;function ue(n,e){return es.call(n)===`[object ${e}]`}function yt(n){return ue(n,"Function")}const zo=n=>typeof n<"u",un=n=>!zo(n);function hn(n){return n===null}function ts(n){return un(n)&&hn(n)}function ns(n){return un(n)||hn(n)}const Me=n=>n!=null&&n!==null&&ue(n,"Object");function os(n){return ue(n,"Date")}function dn(n){return ue(n,"Number")}function rs(n){return ue(n,"AsyncFunction")}function is(n){return ue(n,"Promise")&&Me(n)&&yt(n.then)&&yt(n.catch)}function wt(n){return ue(n,"String")}function ss(n){return n===!0||n===!1||ue(n,"Boolean")}function fn(n){return n&&Array.isArray(n)}const as=()=>typeof window<"u",cs=n=>typeof window<"u"&&ue(n,"Window"),ls=n=>Me(n)&&!!n.tagName,us=typeof window>"u";function hs(n){return n&&["IMAGE","IMG"].includes(n.tagName)}function ds(n){return n==null||(wt(n)||fn(n)?n.length===0:!!Me(n)&&JSON.stringify(n)==="{}")}function fs(n){return ue(n,"Error")}function ps(n){return ue(n,"WeakSet")}function gs(n){return ue(n,"WeakMap")}function ms(n){return ue(n,"Symbol")}function vs(n){return ue(n,"Map")}const ys=n=>/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(n);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ao,Do={exports:{}},ws=(Ao||(Ao=1,Do.exports=function(n){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(f,l){var v=f[0],m=f[1],p=f[2],y=f[3];m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&p|~m&y)+l[0]-680876936|0)<<7|v>>>25)+m|0)&m|~v&p)+l[1]-389564586|0)<<12|y>>>20)+v|0)&v|~y&m)+l[2]+606105819|0)<<17|p>>>15)+y|0)&y|~p&v)+l[3]-1044525330|0)<<22|m>>>10)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&p|~m&y)+l[4]-176418897|0)<<7|v>>>25)+m|0)&m|~v&p)+l[5]+1200080426|0)<<12|y>>>20)+v|0)&v|~y&m)+l[6]-1473231341|0)<<17|p>>>15)+y|0)&y|~p&v)+l[7]-45705983|0)<<22|m>>>10)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&p|~m&y)+l[8]+1770035416|0)<<7|v>>>25)+m|0)&m|~v&p)+l[9]-1958414417|0)<<12|y>>>20)+v|0)&v|~y&m)+l[10]-42063|0)<<17|p>>>15)+y|0)&y|~p&v)+l[11]-1990404162|0)<<22|m>>>10)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&p|~m&y)+l[12]+1804603682|0)<<7|v>>>25)+m|0)&m|~v&p)+l[13]-40341101|0)<<12|y>>>20)+v|0)&v|~y&m)+l[14]-1502002290|0)<<17|p>>>15)+y|0)&y|~p&v)+l[15]+1236535329|0)<<22|m>>>10)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&y|p&~y)+l[1]-165796510|0)<<5|v>>>27)+m|0)&p|m&~p)+l[6]-1069501632|0)<<9|y>>>23)+v|0)&m|v&~m)+l[11]+643717713|0)<<14|p>>>18)+y|0)&v|y&~v)+l[0]-373897302|0)<<20|m>>>12)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&y|p&~y)+l[5]-701558691|0)<<5|v>>>27)+m|0)&p|m&~p)+l[10]+38016083|0)<<9|y>>>23)+v|0)&m|v&~m)+l[15]-660478335|0)<<14|p>>>18)+y|0)&v|y&~v)+l[4]-405537848|0)<<20|m>>>12)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&y|p&~y)+l[9]+568446438|0)<<5|v>>>27)+m|0)&p|m&~p)+l[14]-1019803690|0)<<9|y>>>23)+v|0)&m|v&~m)+l[3]-187363961|0)<<14|p>>>18)+y|0)&v|y&~v)+l[8]+1163531501|0)<<20|m>>>12)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m&y|p&~y)+l[13]-1444681467|0)<<5|v>>>27)+m|0)&p|m&~p)+l[2]-51403784|0)<<9|y>>>23)+v|0)&m|v&~m)+l[7]+1735328473|0)<<14|p>>>18)+y|0)&v|y&~v)+l[12]-1926607734|0)<<20|m>>>12)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m^p^y)+l[5]-378558|0)<<4|v>>>28)+m|0)^m^p)+l[8]-2022574463|0)<<11|y>>>21)+v|0)^v^m)+l[11]+1839030562|0)<<16|p>>>16)+y|0)^y^v)+l[14]-35309556|0)<<23|m>>>9)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m^p^y)+l[1]-1530992060|0)<<4|v>>>28)+m|0)^m^p)+l[4]+1272893353|0)<<11|y>>>21)+v|0)^v^m)+l[7]-155497632|0)<<16|p>>>16)+y|0)^y^v)+l[10]-1094730640|0)<<23|m>>>9)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m^p^y)+l[13]+681279174|0)<<4|v>>>28)+m|0)^m^p)+l[0]-358537222|0)<<11|y>>>21)+v|0)^v^m)+l[3]-722521979|0)<<16|p>>>16)+y|0)^y^v)+l[6]+76029189|0)<<23|m>>>9)+p|0,m=((m+=((p=((p+=((y=((y+=((v=((v+=(m^p^y)+l[9]-640364487|0)<<4|v>>>28)+m|0)^m^p)+l[12]-421815835|0)<<11|y>>>21)+v|0)^v^m)+l[15]+530742520|0)<<16|p>>>16)+y|0)^y^v)+l[2]-995338651|0)<<23|m>>>9)+p|0,m=((m+=((y=((y+=(m^((v=((v+=(p^(m|~y))+l[0]-198630844|0)<<6|v>>>26)+m|0)|~p))+l[7]+1126891415|0)<<10|y>>>22)+v|0)^((p=((p+=(v^(y|~m))+l[14]-1416354905|0)<<15|p>>>17)+y|0)|~v))+l[5]-57434055|0)<<21|m>>>11)+p|0,m=((m+=((y=((y+=(m^((v=((v+=(p^(m|~y))+l[12]+1700485571|0)<<6|v>>>26)+m|0)|~p))+l[3]-1894986606|0)<<10|y>>>22)+v|0)^((p=((p+=(v^(y|~m))+l[10]-1051523|0)<<15|p>>>17)+y|0)|~v))+l[1]-2054922799|0)<<21|m>>>11)+p|0,m=((m+=((y=((y+=(m^((v=((v+=(p^(m|~y))+l[8]+1873313359|0)<<6|v>>>26)+m|0)|~p))+l[15]-30611744|0)<<10|y>>>22)+v|0)^((p=((p+=(v^(y|~m))+l[6]-1560198380|0)<<15|p>>>17)+y|0)|~v))+l[13]+1309151649|0)<<21|m>>>11)+p|0,m=((m+=((y=((y+=(m^((v=((v+=(p^(m|~y))+l[4]-145523070|0)<<6|v>>>26)+m|0)|~p))+l[11]-1120210379|0)<<10|y>>>22)+v|0)^((p=((p+=(v^(y|~m))+l[2]+718787259|0)<<15|p>>>17)+y|0)|~v))+l[9]-343485551|0)<<21|m>>>11)+p|0,f[0]=v+f[0]|0,f[1]=m+f[1]|0,f[2]=p+f[2]|0,f[3]=y+f[3]|0}function o(f){var l,v=[];for(l=0;l<64;l+=4)v[l>>2]=f.charCodeAt(l)+(f.charCodeAt(l+1)<<8)+(f.charCodeAt(l+2)<<16)+(f.charCodeAt(l+3)<<24);return v}function r(f){var l,v=[];for(l=0;l<64;l+=4)v[l>>2]=f[l]+(f[l+1]<<8)+(f[l+2]<<16)+(f[l+3]<<24);return v}function i(f){var l,v,m,p,y,L,A=f.length,T=[1732584193,-271733879,-1732584194,271733878];for(l=64;l<=A;l+=64)t(T,o(f.substring(l-64,l)));for(v=(f=f.substring(l-64)).length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=0;l<v;l+=1)m[l>>2]|=f.charCodeAt(l)<<(l%4<<3);if(m[l>>2]|=128<<(l%4<<3),l>55)for(t(T,m),l=0;l<16;l+=1)m[l]=0;return p=(p=8*A).toString(16).match(/(.*?)(.{0,8})$/),y=parseInt(p[2],16),L=parseInt(p[1],16)||0,m[14]=y,m[15]=L,t(T,m),T}function s(f){var l,v,m,p,y,L,A=f.length,T=[1732584193,-271733879,-1732584194,271733878];for(l=64;l<=A;l+=64)t(T,r(f.subarray(l-64,l)));for(v=(f=l-64<A?f.subarray(l-64):new Uint8Array(0)).length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=0;l<v;l+=1)m[l>>2]|=f[l]<<(l%4<<3);if(m[l>>2]|=128<<(l%4<<3),l>55)for(t(T,m),l=0;l<16;l+=1)m[l]=0;return p=(p=8*A).toString(16).match(/(.*?)(.{0,8})$/),y=parseInt(p[2],16),L=parseInt(p[1],16)||0,m[14]=y,m[15]=L,t(T,m),T}function c(f){var l,v="";for(l=0;l<4;l+=1)v+=e[f>>8*l+4&15]+e[f>>8*l&15];return v}function u(f){var l;for(l=0;l<f.length;l+=1)f[l]=c(f[l]);return f.join("")}function g(f){return/[\u0080-\uFFFF]/.test(f)&&(f=unescape(encodeURIComponent(f))),f}function S(f,l){var v,m=f.length,p=new ArrayBuffer(m),y=new Uint8Array(p);for(v=0;v<m;v+=1)y[v]=f.charCodeAt(v);return l?y:p}function C(f){return String.fromCharCode.apply(null,new Uint8Array(f))}function N(f,l,v){var m=new Uint8Array(f.byteLength+l.byteLength);return m.set(new Uint8Array(f)),m.set(new Uint8Array(l),f.byteLength),v?m:m.buffer}function D(f){var l,v=[],m=f.length;for(l=0;l<m-1;l+=2)v.push(parseInt(f.substr(l,2),16));return String.fromCharCode.apply(String,v)}function M(){this.reset()}return u(i("hello")),typeof ArrayBuffer>"u"||ArrayBuffer.prototype.slice||function(){function f(l,v){return(l=0|l||0)<0?Math.max(l+v,0):Math.min(l,v)}ArrayBuffer.prototype.slice=function(l,v){var m,p,y,L,A=this.byteLength,T=f(l,A),z=A;return v!==n&&(z=f(v,A)),T>z?new ArrayBuffer(0):(m=z-T,p=new ArrayBuffer(m),y=new Uint8Array(p),L=new Uint8Array(this,T,m),y.set(L),p)}}(),M.prototype.append=function(f){return this.appendBinary(g(f)),this},M.prototype.appendBinary=function(f){this._buff+=f,this._length+=f.length;var l,v=this._buff.length;for(l=64;l<=v;l+=64)t(this._hash,o(this._buff.substring(l-64,l)));return this._buff=this._buff.substring(l-64),this},M.prototype.end=function(f){var l,v,m=this._buff,p=m.length,y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(l=0;l<p;l+=1)y[l>>2]|=m.charCodeAt(l)<<(l%4<<3);return this._finish(y,p),v=u(this._hash),f&&(v=D(v)),this.reset(),v},M.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},M.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},M.prototype.setState=function(f){return this._buff=f.buff,this._length=f.length,this._hash=f.hash,this},M.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},M.prototype._finish=function(f,l){var v,m,p,y=l;if(f[y>>2]|=128<<(y%4<<3),y>55)for(t(this._hash,f),y=0;y<16;y+=1)f[y]=0;v=(v=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),m=parseInt(v[2],16),p=parseInt(v[1],16)||0,f[14]=m,f[15]=p,t(this._hash,f)},M.hash=function(f,l){return M.hashBinary(g(f),l)},M.hashBinary=function(f,l){var v=u(i(f));return l?D(v):v},M.ArrayBuffer=function(){this.reset()},M.ArrayBuffer.prototype.append=function(f){var l,v=N(this._buff.buffer,f,!0),m=v.length;for(this._length+=f.byteLength,l=64;l<=m;l+=64)t(this._hash,r(v.subarray(l-64,l)));return this._buff=l-64<m?new Uint8Array(v.buffer.slice(l-64)):new Uint8Array(0),this},M.ArrayBuffer.prototype.end=function(f){var l,v,m=this._buff,p=m.length,y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(l=0;l<p;l+=1)y[l>>2]|=m[l]<<(l%4<<3);return this._finish(y,p),v=u(this._hash),f&&(v=D(v)),this.reset(),v},M.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},M.ArrayBuffer.prototype.getState=function(){var f=M.prototype.getState.call(this);return f.buff=C(f.buff),f},M.ArrayBuffer.prototype.setState=function(f){return f.buff=S(f.buff,!0),M.prototype.setState.call(this,f)},M.ArrayBuffer.prototype.destroy=M.prototype.destroy,M.ArrayBuffer.prototype._finish=M.prototype._finish,M.ArrayBuffer.hash=function(f,l){var v=u(s(new Uint8Array(f)));return l?D(v):v},M}()),Do.exports),pn=bt(ws);const gn=[];class he{static addHandler(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent?e.attachEvent("on"+t,o):e["on"+t]=o}static removeHandler(e,t,o){e.removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent?e.detachEvent("on"+t,o):delete e["on"+t]}static windowResizeHandler(e){he.addHandler(window,"resize",e)}static offWindowResizeHandler(e){he.removeHandler(window,"resize",e)}static fullscreenEnabled(){const e=window.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const o=window.document;let r=window.document.exitFullscreen||o.msExitFullscreen||o.mozCancelFullScreen||o.webkitCancelFullScreen;typeof r<"u"&&r?r.call(window.document):typeof window.ActiveXObject<"u"&&new window.ActiveXObject("WScript.Shell")?.SendKeys("{F11}")}else{let o=e;o||(o=window.document.documentElement);let r=o.requestFullScreen||o.webkitRequestFullScreen||o.mozRequestFullScreen||o.msRequestFullScreen;typeof r<"u"&&r?r.call(o):typeof window.ActiveXObject<"u"&&new window.ActiveXObject("WScript.Shell")?.SendKeys("{F11}")}}static requestFullScreen(e=window.document.documentElement){let t=e;var o=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(o)o.call(t);else if(typeof window.ActiveXObject<"u"){var r=new window.ActiveXObject("WScript.Shell");r!==null&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=window.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(typeof window.ActiveXObject<"u"){var o=new window.ActiveXObject("WScript.Shell");o!==null&&o.SendKeys("{F11}")}}static fullScreenElement(){return window.document.fullscreenElement||window.document.webkitFullscreenElement||window.document.mozFullscreenElement||window.document.msFullscreenElement}static isFullScreen(){return!!he.fullScreenElement()}static onFullScreenChanged(e){let t;"onfullscreenchange"in window.document?t="fullscreenchange":"onwebkitfullscreenchange"in window.document?t="webkitfullscreenchange":"onmozfullscreenchange"in window.document&&(t="mozfullscreenchange"),t?document.addEventListener(t,function(){const o=he.isFullScreen();e(o)}):document.addEventListener("MSFullscreenChange",function(){const o=he.isFullScreen();e(o)})}static stringifyCircularHandler(e,t){if(typeof t=="object"&&t!==null){if(gn.indexOf(t)!==-1)return;gn.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,he.stringifyCircularHandler);return gn.length=0,t}static jsonParse(e){const t=he.jsonStringify(e);if(t.length>1)return JSON.parse(t)}static getObjectURL(e){let t;const o=window;return o.createObjcectURL!=null?t=o.createOjcectURL(e):window.URL!=null?t=window.URL.createObjectURL(e):window.webkitURL!=null&&(t=window.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const o=File.prototype,r=o.slice||o.mozSlice||o.webkitSlice,i=e,s=2097152,c=new pn.ArrayBuffer,u=new FileReader;u.onload=function(g){c.append(g.target?.result);const S=c.end();t({isOK:!0,data:S})},u.onerror=function(){const g="\u8BA1\u7B97\u6587\u4EF6\u7B80\u5355\u6458\u8981\u9519\u8BEF\uFF01";console.warn(g),t({isOK:!1,data:g})},function(){const g=0+s>=i.size?i.size:0+s;u.readAsArrayBuffer(r.call(i,0,g))}()}static getFileMD5(e,t){const o=File.prototype,r=o.slice||o.mozSlice||o.webkitSlice,i=e,s=2097152,c=Math.ceil(i.size/s);let u=0;const g=new pn.ArrayBuffer,S=new FileReader;function C(){const N=u*s,D=N+s>=i.size?i.size:N+s;S.readAsArrayBuffer(r.call(i,N,D))}S.onload=function(N){if(g.append(N.target?.result),u++,u<c)C();else{const D=g.end();t({isOK:!0,data:D})}},S.onerror=function(){const N=`${i.name}:\u8BA1\u7B97\u6587\u4EF6\u7B80\u5355\u6458\u8981\u9519\u8BEF\uFF01`;console.warn(N),t({isOK:!1,data:N})},C()}static MD5(e,t=!1){return pn.hash(e,t)}static copyTextByCommand(e){return new Promise((t,o)=>{const r=document.createElement("input");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove(),t(!0)})}static copyText=e=>navigator.clipboard?navigator.clipboard.writeText(e).then(function(){return!0},function(t){return!1}):he.copyTextByCommand(e);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const o=window.getSelection();o.rangeCount>0&&o.removeAllRanges(),o.addRange(t);try{return document.execCommand("copy"),o.removeRange(t),!0}catch(r){return o.removeRange(t),console.error("Command\u590D\u5236\u6587\u672C\u9519\u8BEF",r),!1}}static copyElementText(e){if(!navigator.clipboard)return he.copyElementTextByCommand(e);const t=document.createRange();t.selectNode(document.getElementById(e));const o=window.getSelection();return o.rangeCount>0&&o.removeAllRanges(),o.addRange(t),navigator.clipboard.writeText(o).then(function(){return o.removeRange(t),!0},function(r){return o.removeRange(t),console.error("Clipboard\u590D\u5236\u6587\u672C\u9519\u8BEF",r),!1})}static setGrayMode(e){he.toggleClass(e,"grayMode",document.documentElement)}static toggleClass(e,t,o){const r=o||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,o=document.documentElement){o.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");window.dispatchEvent(e)}static dispatchElementEvent(e,t="click",o){let r;if(r=wt(e)?document.getElementById(e):e,r){const i=new Event(t,{bubbles:!0,cancelable:!0});o&&r.addEventListener("ev",s=>{o(s)},!1),r.dispatchEvent(i)}}static getRandomNum(e,t){var o=t-e,r=Math.random();return e+Math.round(r*o)}static merge(e={},t={}){let o,r,i,s;for(e||(e={}),r=0,i=t.length;r<i;r++)for(o in s=t[r],s)e[o]=s[o];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let o in t)e.options[o]=t[o];return e.options}static formatNum(e,t){let o=Math.pow(10,t===void 0?6:t);return Math.round(e*o)/o}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}static debounce(e,t){let o=null;return function(){o&&clearTimeout(o),o=setTimeout(e,t)}}static throttle(e,t){let o=!0;return function(){if(!o)return!1;o=!1,setTimeout(()=>{e(),o=!0},t)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||t.length===0)return;let o=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return new Blob([s],{type:o})}static getElement(e){return typeof e=="string"?document.getElementById(e):e}static getStyle(e,t){let o=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!o||o==="auto")&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);o=r?r[t]:null}return o==="auto"?null:o}static create(e,t,o){let r=document.createElement(e);return r.className=t||"",o&&o.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(e.classList!==void 0)return e.classList.contains(t);let o=this.getClass(e);return o.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(o)}static addClass(e,t){if(e.classList!==void 0){let o=this.splitWords(t);for(let r=0,i=o.length;r<i;r++)e.classList.add(o[r])}else if(!this.hasClass(e,t)){let o=this.getClass(e);this.setClass(e,(o?o+" ":"")+t)}}static removeClass(e,t){e.classList!==void 0?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){e.className.baseVal===void 0?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}static createSvgElement(e,t,o,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("d",o),i.appendChild(s),r&&r.appendChild(i),i}static parseDom(e,t=!0,o=""){t=t??!1;let r=document.createElement("div");return r.className=o||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,o){let r=this.create("video",t,o),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let s=this.create("source","",r);return s.setAttribute("src",e),s.setAttribute("type","video/quicktime"),r}static readFileBytes(e){return new Promise((t,o)=>{const r=new FileReader;r.onload=function(i){const s=r.result,c=s.indexOf("64,"),u=s.substring(c+3);t(u)},r.readAsDataURL(e)})}}class Je{static isNullOrEmpty=e=>e===null||e===""||e===void 0||e.length===0;static isNotEmpty=e=>!(e===null||e===""||e===void 0||e.length===0);static toHump(e){return e.replace(/[\-\/\_](\w)/g,(t,o)=>o.toUpperCase()).replace("views","")}static getFileName(e){const t=e.lastIndexOf("/")+1;let o=e.substring(t);return o=decodeURI(o.split("?")[0]),o}}class _t{prefixKey;storage;constructor(e="",t=localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,o=604800){const r=JSON.stringify({value:t,expire:o!==null?new Date().getTime()+1e3*o:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const o=this.storage.getItem(this.getKey(e));if(o)try{const r=JSON.parse(o),{value:i,expire:s}=r;if(s===null||s>=Date.now())return i;this.remove(this.getKey(e))}catch{return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const o=JSON.parse(t);if(o.expire===null||o.expire>=Date.now())return o;this.remove(this.getKey(e))}catch{return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,o=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${o}`}getCookie(e){const t=document.cookie.split("; ");for(let o=0,r=t.length;o<r;o++){const i=t[o].split("=");if(i[0]===this.getKey(e))return i[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}}const bs=new _t("",localStorage);function Lo(){let n=[];const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var t=0;t<36;t++){const r=Math.floor(16*Math.random());n[t]=e.substring(r,r+1)}n[14]="4";const o=3&Number(n[19])|8;return n[19]=e.substring(o,o+1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}function _s(){var n=new Date().getTime(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var o=(n+16*Math.random())%16|0;return n=Math.floor(n/16),(t==="x"?o:3&o|8).toString(16)});return e}function Ss(n){const e=n.toLowerCase().replace(/rgb?a?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),t=parseFloat(e[3]||"1"),o=Math.floor(t*parseInt(e[0])+255*(1-t)),r=Math.floor(t*parseInt(e[1])+255*(1-t)),i=Math.floor(t*parseInt(e[2])+255*(1-t));return"#"+("0"+o.toString(16)).slice(-2)+("0"+r.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)}function Cs(n){var e=n.toLowerCase();if(St(n)){if(e.length===4){for(var t="#",o=1;o<4;o+=1){const i=e.slice(o,o+1);t+=i.concat(i)}e=t}var r=[];for(o=1;o<7;o+=2)r.push(parseInt("0x"+e.slice(o,o+2)));return"rgb("+r.join(",")+")"}return e}function Es(n){const e=n;if(e.length===4){let o="#";for(var t=1;t<4;t+=1){const r=e.slice(t,t+1);o+=r.concat(r)}return o}return e}var ze;function ks(n){if(typeof n=="object"||!n)return;const e=n.toLowerCase().substring(0,1);return e==="#"?ze.Hex:e==="r"||e==="("?ze.RGBA:e==="h"?ze.Hsla:ze.RGBA}function xs(n){if(n){var e=n.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(e){var t,o,r,i=(parseFloat(e[1])%360+360)%360/360,s=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(s===0)t=o=r=c;else{var u=c<=.5?c*(s+1):c+s-c*s,g=2*c-u;t=mn(g,u,i+1/3),o=mn(g,u,i),r=mn(g,u,i-1/3)}return`rgba(${t=Math.round(255*t)},${o=Math.round(255*o)},${r=Math.round(255*r)},${e[4]?parseFloat(e[4]):1})`}}}function mn(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+6*(e-n)*t:t<.5?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function St(n){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(n)}function Is(n,e,t){const o=(n<<16|e<<8|t).toString(16);return"#"+new Array(Math.abs(o.length-7)).join("0")+o}function vn(n){let e=n.toLowerCase();if(St(n)){if(e.length===4){let o="#";for(let r=1;r<4;r+=1)o+=e.slice(r,r+1).concat(e.slice(r,r+1));e=o}const t=[];for(let o=1;o<7;o+=2)t.push(parseInt("0x"+e.slice(o,o+2)));return"RGB("+t.join(",")+")"}return e}function Ts(n){if(!St(n))return;const[e,t,o]=vn(n).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(r=>Number(r));return .299*e+.578*t+.114*o<192}function Rs(n,e){return n=n.indexOf("#")>=0?n.substring(1,n.length):n,e=Math.trunc(255*e/100),`#${wn(n.substring(0,2),e)}${wn(n.substring(2,4),e)}${wn(n.substring(4,6),e)}`}function Ps(n,e){return n=n.indexOf("#")>=0?n.substring(1,n.length):n,e=Math.trunc(255*e/100),`#${yn(n.substring(0,2),e)}${yn(n.substring(2,4),e)}${yn(n.substring(4,6),e)}`}function yn(n,e){const t=parseInt(n,16)+e,o=t>255?255:t;return o.toString(16).length>1?o.toString(16):`0${o.toString(16)}`}function $o(n,e,t){const o=[n,e,t].map(r=>(r/=255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4));return .2126*o[0]+.7152*o[1]+.0722*o[2]}function Ms(n){return function(e,t){return($o(~~e[0],~~e[1],~~e[2])+.05)/($o(t[0],t[1],t[2])+.05)}(vn(n.substring(1)).split(","),[0,0,0])>=12?"#000000":"#FFFFFF"}function wn(n,e){const t=parseInt(n,16)-e,o=t<0?0:t;return o.toString(16).length>1?o.toString(16):`0${o.toString(16)}`}function bn(n){return{all:n=n||new Map,on(e,t){const o=n.get(e);o?o.push(t):n.set(e,[t])},off(e,t){const o=n.get(e);o&&(t?o.splice(o.indexOf(t)>>>0,1):n.set(e,[]))},emit(e,t){let o=n.get(e);o&&o.slice().map(r=>{r(t)}),o=n.get("*"),o&&o.slice().map(r=>{r(e,t)})}}}(function(n){n[n.RGBA=0]="RGBA",n[n.Hex=1]="Hex",n[n.Hsla=2]="Hsla"})(ze||(ze={}));const Ae=bn(),se={HproseServiceErrorEvent:"HproseServiceError",WebAPIErrorEvent:"WebAPIError",AlertInfoEvent:"AlertInfoEvent",CommonWarnEvent:"CommonWarnEvent",WidgetLoadedEvent:"WidgetLoaded",WidgetLoaded:"WidgetLoaded",WidgetToUnloadEvent:"WidgetToUnloadEvent",WidgetUnLoadedEvent:"WidgetUnLoaded",WidgetLoadedErrorEvent:"WidgetLoadedError",WidgetVisibleChanged:"WidgetVisibleChanged",AxiosRequestErrorEvent:"AxiosRequestErrorEvent",LayoutContainerLoaded:"LayoutContainerLoaded"},Ye=(n,e)=>{const t=document.createElement("a");t.download=e,t.style.display="none";const o=new Blob([n],{type:"application/octet-stream"});t.href=URL.createObjectURL(o),document.body.appendChild(t),t.click(),document.body.removeChild(t)};function zs(n,e){const t=window.URL||window.webkitURL||window,o=new Blob([n]),r=document.createElement("a");r.href=t.createObjectURL(o),r.download=e,r.click(),t.revokeObjectURL(r.href)}const No=(n,e)=>{const t=JSON.stringify(n,null,2);e?Ye(t,e+".json"):Ae.emit(se.CommonWarnEvent,"\u53C2\u6570JsonID\u4E0D\u80FD\u4E3A\u7A7A\uFF01")},As=(n,e,t)=>{n.get(e,{responseType:"blob"}).then(function(o){Ye(o.data,t)}).catch(o=>{console.warn(o),Ae.emit(se.CommonWarnEvent,"\u4E0B\u8F7D\u6587\u4EF6\u62A5\u9519\uFF01")})};function Ds(n){const e=new Date().getTime();let t=new Date().getTime();for(;t-e<n;)t=new Date().getTime();console.log(`\u5F3A\u5236\u7B49\u5F85${Bo}\u6BEB\u79D2`)}function Bo(n){return new Promise(e=>setTimeout(e,n))}var Wo,_n={exports:{}},Uo,Oo,Sn,Cn=(Wo||(Wo=1,Oo=_n.exports,Sn=function(){var n=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],r={},i=null;function s(D,M){var f=D[M];if(typeof f.bind=="function")return f.bind(D);try{return Function.prototype.bind.call(f,D)}catch{return function(){return Function.prototype.apply.apply(f,[D,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var D=this.getLevel(),M=0;M<o.length;M++){var f=o[M];this[f]=M<D?n:this.methodFactory(f,D,this.name)}if(this.log=this.debug,typeof console===e&&D<this.levels.SILENT)return"No console available for logging"}function g(D){return function(){typeof console!==e&&(u.call(this),this[D].apply(this,arguments))}}function S(D,M,f){return function(l){return l==="debug"&&(l="log"),typeof console!==e&&(l==="trace"&&t?c:console[l]!==void 0?s(console,l):console.log!==void 0?s(console,"log"):n)}(D)||g.apply(this,arguments)}function C(D,M){var f,l,v,m=this,p="loglevel";function y(){var T;if(typeof window!==e&&p){try{T=window.localStorage[p]}catch{}if(typeof T===e)try{var z=window.document.cookie,W=encodeURIComponent(p),O=z.indexOf(W+"=");O!==-1&&(T=/^([^;]+)/.exec(z.slice(O+W.length+1))[1])}catch{}return m.levels[T]===void 0&&(T=void 0),T}}function L(T){var z=T;if(typeof z=="string"&&m.levels[z.toUpperCase()]!==void 0&&(z=m.levels[z.toUpperCase()]),typeof z=="number"&&z>=0&&z<=m.levels.SILENT)return z;throw new TypeError("log.setLevel() called with invalid level: "+T)}typeof D=="string"?p+=":"+D:typeof D=="symbol"&&(p=void 0),m.name=D,m.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},m.methodFactory=M||S,m.getLevel=function(){return v??l??f},m.setLevel=function(T,z){return v=L(T),z!==!1&&function(W){var O=(o[W]||"silent").toUpperCase();if(typeof window!==e&&p){try{return void(window.localStorage[p]=O)}catch{}try{window.document.cookie=encodeURIComponent(p)+"="+O+";"}catch{}}}(v),u.call(m)},m.setDefaultLevel=function(T){l=L(T),y()||m.setLevel(T,!1)},m.resetLevel=function(){v=null,function(){if(typeof window!==e&&p){try{window.localStorage.removeItem(p)}catch{}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}(),u.call(m)},m.enableAll=function(T){m.setLevel(m.levels.TRACE,T)},m.disableAll=function(T){m.setLevel(m.levels.SILENT,T)},m.rebuild=function(){if(i!==m&&(f=L(i.getLevel())),u.call(m),i===m)for(var T in r)r[T].rebuild()},f=L(i?i.getLevel():"WARN");var A=y();A!=null&&(v=L(A)),u.call(m)}(i=new C).getLogger=function(D){if(typeof D!="symbol"&&typeof D!="string"||D==="")throw new TypeError("You must supply a name when creating a logger.");var M=r[D];return M||(M=r[D]=new C(D,i.methodFactory)),M};var N=typeof window!==e?window.log:void 0;return i.noConflict=function(){return typeof window!==e&&window.log===i&&(window.log=N),i},i.getLoggers=function(){return r},i.default=i,i},(Uo=_n).exports?Uo.exports=Sn():Oo.log=Sn()),_n.exports);class jo{message;eventBus;constructor(e,t=void 0){e&&(this.message=e),t&&(this.eventBus=t)}msg(e,t=3,o="success"){if(this.message)if(typeof this.message=="function")this.message({type:o,message:e,duration:t});else switch(o){case"info":this.message.info(e,t);break;case"success":this.message.success(e,t);break;case"warning":this.message.warn?this.message.warn(e,t):this.message.warning&&this.message.warning(e,t);break;case"error":this.message.error(e,t)}else{switch(o){case"info":case"success":console.log(e);break;case"warning":console.warn(e);break;case"error":o="dark",console.error(e)}this.eventBus&&this.eventBus.emit(se.AlertInfoEvent,{type:o,info:e})}}info(e,t=3){this.msg(e,t,"info")}warn(e,t=3){this.msg(e,t,"warning")}err(e,t=3){this.msg(e,t,"error")}success(e,t=3){this.msg(e,t,"success")}}let Ho=!1;const B={Config:SysConfig,EventBus:Ae,DefaultProxyClient:null,Axios:Hi,Message:new jo(void 0,Ae),LayoutMap:new Map,getLayoutManager:n=>{if(!B.WidgetConfigList||B.WidgetConfigList.length===0)return;const e=B.WidgetConfigList.find(t=>t.id===n);if(e){const t=e.layoutID;if(t&&B.LayoutMap.has(t))return B.LayoutMap.get(t)}},Logger:n=>{Ho||(import.meta.env?.DEV||SysConfig.UI.ProductLog?Cn.enableAll():Cn.setDefaultLevel("warn"),Ho=!0);const e=n||"default";return Cn.getLogger(e)}},Fo="access_token",qe=new _t("user",localStorage);function De(){return qe.get(Fo)}function En(){qe.remove(Fo)}function qo(){return De()?.refresh}function kn(n,e,t,o="json",r){const i={baseURL:B.Config.ServiceURL.DefaultWebAPI,timeout:6e4,params:n,paramsSerializer:{serialize:function(s){return Fi.stringify(s,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+De()?.token},responseType:o,cancelToken:r};if(t)for(let s in t)i.headers[s]=t[s];return B.SystemID&&(i.headers.sysid=B.SystemID,B.SystemGroup&&(i.headers.sysgroup=B.SystemGroup)),e!==void 0&&(i.baseURL=e),i}function me(n,e,t,o,r="json",i,s){const c=kn(t,e,o,r,i);return s&&s>=2e4&&(c.timeout=s),B.Axios?.get(n,c).catch(function(u){Ct(u,c.baseURL,n,"Get")})}function Ct(n,e,t,o="Get"){const r=`${e}${t}`;if(n&&n.response){let i=!1;const s=n.response.status;switch(s){case 400:n.message="\u9519\u8BEF\u8BF7\u6C42";break;case 401:n.message="\u672A\u6388\u6743\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";break;case 403:n.message="\u62D2\u7EDD\u8BBF\u95EE";break;case 404:n.message="\u8BF7\u6C42\u9519\u8BEF,\u672A\u627E\u5230\u8BE5\u8D44\u6E90";break;case 405:n.message="\u8BF7\u6C42\u65B9\u6CD5\u672A\u5141\u8BB8";break;case 408:n.message="\u8BF7\u6C42\u8D85\u65F6";break;case 500:const u=n.response.data;if(u){const g=u.indexOf(":"),S=u.indexOf(`
2
- `);if(g>0&&S-g>2){const C=u.substring(g+2,S);C.indexOf("System.Exception")>0?n.message="\u540E\u53F0\u670D\u52A1\u5185\u90E8\u51FA\u9519\uFF01":(i=!0,n.message=C)}else i=!0,n.message=u}else n.message="\u670D\u52A1\u5668\u7AEF\u51FA\u9519";break;case 501:n.message="\u7F51\u7EDC\u672A\u5B9E\u73B0";break;case 502:n.message="\u7F51\u7EDC\u9519\u8BEF";break;case 503:n.message="\u670D\u52A1\u4E0D\u53EF\u7528";break;case 504:n.message="\u7F51\u7EDC\u8D85\u65F6";break;case 505:n.message="http\u7248\u672C\u4E0D\u652F\u6301\u8BE5\u8BF7\u6C42";break;default:n.message=`\u8FDE\u63A5\u9519\u8BEF${n.response.status}`}let c={address:r,code:s,isExceptionInfo:i,message:n.message,result:n.response.data};if(B.EventBus.emit(se.AxiosRequestErrorEvent,c),i)throw new Error(n.message)}else{if(n?.message)throw new Error(n.message);console.error(n,"Http\u8BF7\u6C42\u9519\u8BEF!")}}function Xo(n,e,t,o,r,i="json",s){const c=kn(o,e,r,i);s&&s>=2e4&&(c.timeout=s),c.headers["Content-Type"]="multipart/form-data";const u=function(g){let S=new FormData;return g&&Object.keys(g).forEach(C=>{if(!g)return;let N=g[C];N!=null&&(fn(N)?N.forEach(D=>{S.append(C,Go(D))}):S.append(C,Go(N)))}),S}(t);return B.Axios?.post(n,u,c).catch(function(g){Ct(g,e,c.baseURL,"Post")})}function Vo(n,e,t,o,r,i="json",s){const c=kn(o,e,r,i);return s&&s>=2e4&&(c.timeout=s),B.Axios?.post(n,t,c).catch(function(u){Ct(u,e,n,"Post")})}function Ls(n,e,t=!1){return n.startsWith("http")?me("",n,e):t||e?me(n,void 0,e):me(n,"",void 0)}function $s(n,e){return Xo(n,void 0,e)}function Ns(n,e){return B.Axios?.get(n,{params:e}).catch(function(t){Ct(t,n,"","\u5916\u90E8Get")})}function Go(n){return n instanceof Blob?n:n.toString()}function Bs(n,e,t,o="blob"){const r=e??Je.getFileName(n),i=r.lastIndexOf(".");let s="";i>0&&(s=r.substring(i).toLocaleLowerCase());let c=o;if(c==="blob")switch(s){case".csv":case".txt":case".md":return void(c="text");case".json":c="json";break;default:c="blob"}me("",n,t,void 0,c).then(u=>{u.data&&Ye(u.data,r)})}var Ko,Jo,xn,Yo,In,Zo,Tn,Qo,er,Et={exports:{}};function Ws(){return Jo?Ko:(Jo=1,n=typeof window<"u"?window:Fe!==void 0?Fe:typeof self<"u"?self:{},Ko=n);var n}function Us(){if(Yo)return xn;Yo=1,xn=function(e){if(!e)return!1;var t=n.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString;return xn}function Os(){if(Zo)return In;Zo=1;var n=function(e){return e.replace(/^\s+|\s+$/g,"")};return In=function(e){if(!e)return{};for(var t,o={},r=n(e).split(`
2
+ `);if(g>0&&S-g>2){const C=u.substring(g+2,S);C.indexOf("System.Exception")>0?n.message="\u540E\u53F0\u670D\u52A1\u5185\u90E8\u51FA\u9519\uFF01":(i=!0,n.message=C)}else i=!0,n.message=u}else n.message="\u670D\u52A1\u5668\u7AEF\u51FA\u9519";break;case 501:n.message="\u7F51\u7EDC\u672A\u5B9E\u73B0";break;case 502:n.message="\u7F51\u7EDC\u9519\u8BEF";break;case 503:n.message="\u670D\u52A1\u4E0D\u53EF\u7528";break;case 504:n.message="\u7F51\u7EDC\u8D85\u65F6";break;case 505:n.message="http\u7248\u672C\u4E0D\u652F\u6301\u8BE5\u8BF7\u6C42";break;default:n.message=`\u8FDE\u63A5\u9519\u8BEF${n.response.status}`}let c={address:r,code:s,isExceptionInfo:i,message:n.message,result:n.response.data};if(B.EventBus.emit(se.AxiosRequestErrorEvent,c),i)throw new Error(n.message)}else{if(n?.message)throw new Error(n.message);console.error(n,"Http\u8BF7\u6C42\u9519\u8BEF!")}}function Xo(n,e,t,o,r,i="json",s){const c=kn(o,e,r,i);s&&s>=2e4&&(c.timeout=s),c.headers["Content-Type"]="multipart/form-data";const u=function(g){let S=new FormData;return g&&Object.keys(g).forEach(C=>{if(!g)return;let N=g[C];N!=null&&(fn(N)?N.forEach(D=>{S.append(C,Go(D))}):S.append(C,Go(N)))}),S}(t);return B.Axios?.post(n,u,c).catch(function(g){Ct(g,e,c.baseURL,"Post")})}function Vo(n,e,t,o,r,i="json",s){const c=kn(o,e,r,i);return s&&s>=2e4&&(c.timeout=s),B.Axios?.post(n,t,c).catch(function(u){Ct(u,e,n,"Post")})}function Ls(n,e,t=!1){return n.startsWith("http")?me("",n,e):t||e?me(n,void 0,e):me(n,"",void 0)}function $s(n,e){return Xo(n,void 0,e)}function Ns(n,e){return B.Axios?.get(n,{params:e}).catch(function(t){Ct(t,n,"","\u5916\u90E8Get")})}function Go(n){return n instanceof Blob?n:n.toString()}function Bs(n,e,t){const o=e??Je.getFileName(n);me("",n,t,void 0,"blob").then(r=>{r.data&&Ye(r.data,o)})}var Ko,Jo,xn,Yo,In,Zo,Tn,Qo,er,Et={exports:{}};function Ws(){return Jo?Ko:(Jo=1,n=typeof window<"u"?window:Fe!==void 0?Fe:typeof self<"u"?self:{},Ko=n);var n}function Us(){if(Yo)return xn;Yo=1,xn=function(e){if(!e)return!1;var t=n.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString;return xn}function Os(){if(Zo)return In;Zo=1;var n=function(e){return e.replace(/^\s+|\s+$/g,"")};return In=function(e){if(!e)return{};for(var t,o={},r=n(e).split(`
3
3
  `),i=0;i<r.length;i++){var s=r[i],c=s.indexOf(":"),u=n(s.slice(0,c)).toLowerCase(),g=n(s.slice(c+1));o[u]===void 0?o[u]=g:(t=o[u],Object.prototype.toString.call(t)==="[object Array]"?o[u].push(g):o[u]=[o[u],g])}return o},In}var js=function(){if(er)return Et.exports;er=1;var n=Ws(),e=Us(),t=Os(),o=function(){if(Qo)return Tn;Qo=1,Tn=function(){for(var u={},g=0;g<arguments.length;g++){var S=arguments[g];for(var C in S)c.call(S,C)&&(u[C]=S[C])}return u};var c=Object.prototype.hasOwnProperty;return Tn}();function r(c,u,g){var S=c;return e(u)?(g=u,typeof c=="string"&&(S={uri:c})):S=o(u,{uri:c}),S.callback=g,S}function i(c,u,g){return s(u=r(c,u,g))}function s(c){if(c.callback===void 0)throw new Error("callback argument missing");var u=!1,g=function(z,W,O){u||(u=!0,c.callback(z,W,O))};function S(){var z=void 0;if(z=f.response?f.response:f.responseText||function(W){try{if(W.responseType==="document")return W.responseXML;var O=W.responseXML&&W.responseXML.documentElement.nodeName==="parsererror";if(W.responseType===""&&!O)return W.responseXML}catch{}return null}(f),A)try{z=JSON.parse(z)}catch{}return z}function C(z){return clearTimeout(l),z instanceof Error||(z=new Error(""+(z||"Unknown XMLHttpRequest Error"))),z.statusCode=0,g(z,T)}function N(){if(!M){var z;clearTimeout(l),z=c.useXDR&&f.status===void 0?200:f.status===1223?204:f.status;var W=T,O=null;return z!==0?(W={body:S(),statusCode:z,method:m,headers:{},url:v,rawRequest:f},f.getAllResponseHeaders&&(W.headers=t(f.getAllResponseHeaders()))):O=new Error("Internal XMLHttpRequest Error"),g(O,W,W.body)}}var D,M,f=c.xhr||null;f||(f=c.cors||c.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var l,v=f.url=c.uri||c.url,m=f.method=c.method||"GET",p=c.body||c.data,y=f.headers=c.headers||{},L=!!c.sync,A=!1,T={body:void 0,headers:{},statusCode:0,method:m,url:v,rawRequest:f};if("json"in c&&c.json!==!1&&(A=!0,y.accept||y.Accept||(y.Accept="application/json"),m!=="GET"&&m!=="HEAD"&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),p=JSON.stringify(c.json===!0?p:c.json))),f.onreadystatechange=function(){f.readyState===4&&setTimeout(N,0)},f.onload=N,f.onerror=C,f.onprogress=function(){},f.onabort=function(){M=!0},f.ontimeout=C,f.open(m,v,!L,c.username,c.password),L||(f.withCredentials=!!c.withCredentials),!L&&c.timeout>0&&(l=setTimeout(function(){if(!M){M=!0,f.abort("timeout");var z=new Error("XMLHttpRequest timeout");z.code="ETIMEDOUT",C(z)}},c.timeout)),f.setRequestHeader)for(D in y)y.hasOwnProperty(D)&&f.setRequestHeader(D,y[D]);else if(c.headers&&!function(z){for(var W in z)if(z.hasOwnProperty(W))return!1;return!0}(c.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in c&&(f.responseType=c.responseType),"beforeSend"in c&&typeof c.beforeSend=="function"&&c.beforeSend(f),f.send(p||null),f}return Et.exports=i,Et.exports.default=i,i.XMLHttpRequest=n.XMLHttpRequest||function(){},i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:n.XDomainRequest,function(c,u){for(var g=0;g<c.length;g++)u(c[g])}(["get","put","post","patch","head","delete"],function(c){i[c==="delete"?"del":c]=function(u,g,S){return(g=r(u,g,S)).method=c.toUpperCase(),s(g)}}),Et.exports}(),Hs=bt(js);const Fs=[200,201,202,204,308],qs=[408,502,503,504];class tr{endpoint;file;headers;method;chunkSize;attempts;delayBeforeAttempt;md5;chunk;chunkCount;chunkByteSize;maxFileBytes;endpointValue;totalChunks;attemptCount;offline;paused;success;currentXhr;reader;eventTarget;fileName;constructor(e){this.endpoint=e.endpoint,this.file=e.file,this.fileName=encodeURI(this.file.name),this.headers=e.headers||{},this.method=e.method||"PUT",this.chunkSize=e.chunkSize||5120,this.attempts=e.attempts||5,this.delayBeforeAttempt=e.delayBeforeAttempt||1,this.md5=e.md5||"",this.maxFileBytes=1024*(e.maxFileSize||0),this.chunkCount=0,this.chunkByteSize=1024*this.chunkSize,this.totalChunks=Math.ceil(this.file.size/this.chunkByteSize),this.attemptCount=0,this.offline=!1,this.paused=!1,this.success=!1,this.reader=new FileReader,this.eventTarget=bn(),this.validateOptions(),this.getEndpoint().then(()=>this.sendChunks()),typeof window<"u"&&(window.addEventListener("online",()=>{this.offline&&(this.offline=!1,this.dispatch("online"),this.sendChunks())}),window.addEventListener("offline",()=>{this.offline=!0,this.dispatch("offline")}))}on(e,t){this.eventTarget.on(e,t)}abort(){this.pause(),this.currentXhr?.abort()}pause(){this.paused=!0}resume(){this.paused&&(this.paused=!1,this.sendChunks())}dispatch(e,t){this.eventTarget.emit(e,t)}validateOptions(){if(!this.endpoint||typeof this.endpoint!="function"&&typeof this.endpoint!="string")throw new TypeError("endpoint\u5FC5\u987B\u4E3A\uFF1A\u6587\u4EF6\u4E0A\u4F20URL\u5B57\u7B26\u4E32\uFF0C\u6216\u8FD4\u56DE\u5730\u5740\u7684\u51FD\u6570\uFF01");if(!(this.file instanceof File))throw new TypeError("file\u5FC5\u987B\u4E3A\u6587\u4EF6\u5BF9\u8C61");if(this.headers&&typeof this.headers!="object")throw new TypeError("\u6587\u4EF6\u5934\u5FC5\u987B\u4E3A\u5BF9\u8C61\u6216\u7A7A\uFF01");if(this.chunkSize&&(typeof this.chunkSize!="number"||this.chunkSize<=0||this.chunkSize%256!=0))throw new TypeError("chunkSize\u5FC5\u987B\u5927\u4E8E0,\u5E76\u662F256\u7684\u6574\u6570\u500D");if(this.maxFileBytes>0&&this.maxFileBytes<this.file.size)throw new Error(`\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u6700\u5927\u5141\u8BB8\u503C\uFF1A(${this.file.size} > ${this.maxFileBytes})`);if(this.attempts&&(typeof this.attempts!="number"||this.attempts<=0))throw new TypeError("\u91CD\u8BD5\u6B21\u6570\u5FC5\u987B\u4E3A\u6B63\u6570\uFF01");if(this.delayBeforeAttempt&&(typeof this.delayBeforeAttempt!="number"||this.delayBeforeAttempt<0))throw new TypeError("\u5EF6\u65F6\u91CD\u8BD5\u65F6\u95F4\u5FC5\u987B\u4E3A\u6B63\u6570\uFF01\u9ED8\u8BA4\u4E3A1")}getEndpoint(){return typeof this.endpoint=="string"?(this.endpointValue=this.endpoint,Promise.resolve(this.endpoint)):this.endpoint(this.file).then(e=>(this.endpointValue=e,this.endpointValue))}getChunk(){return new Promise(e=>{const t=this.totalChunks===1?this.file.size:this.chunkByteSize,o=t*this.chunkCount;this.reader.onload=()=>{this.reader.result!==null&&(this.chunk=new Blob([this.reader.result],{type:"application/octet-stream"})),e(()=>{})},this.reader.readAsArrayBuffer(this.file.slice(o,o+t))})}xhrPromise(e){const t=o=>{o.upload.onprogress=r=>{const i=100/this.totalChunks,s=i*this.file.size,c=i*this.chunkCount,u=r.loaded/(r.total??s)*i;this.dispatch("progress",Math.min(c+u,100))}};return new Promise((o,r)=>{this.currentXhr=Hs({...e,beforeSend:t},(i,s)=>(this.currentXhr=void 0,i?r(i):o(s)))})}sendChunk(){if(!this.chunk)return;const e=this.chunkCount*this.chunkByteSize,t=e+this.chunk.size-1,o={...this.headers,FileName:this.fileName,FileMD5:this.md5,"Content-Type":this.file.type,"Content-Range":`bytes ${e}-${t}/${this.file.size}`};if(this.dispatch("attempt",{chunkNumber:this.chunkCount,chunkSize:this.chunk.size}),this.endpointValue)return this.xhrPromise({headers:o,url:this.endpointValue,method:this.method,body:this.chunk});console.warn("\u6587\u4EF6\u4E0A\u4F20endpointValue\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),this.dispatch("error",{message:"\u6587\u4EF6\u4E0A\u4F20endpointValue\u4E0D\u80FD\u4E3A\u7A7A\uFF01\u53D6\u6D88\u4E0A\u4F20\uFF01",chunk:this.chunkCount,attempts:this.attemptCount})}manageRetries(){if(this.attemptCount<this.attempts)return setTimeout(()=>this.sendChunks(),1e3*this.delayBeforeAttempt),void this.dispatch("attemptFailure",{message:`\u4E0A\u4F20\u5206\u7247\uFF1A${this.chunkCount}\u5931\u8D25\u3002\u8FD8\u4F1A\u518D\u5C1D\u8BD5 ${this.attempts-this.attemptCount}\u6B21\uFF01`,chunkNumber:this.chunkCount,attemptsLeft:this.attempts-this.attemptCount});this.dispatch("error",{message:`\u4E0A\u4F20\u5206\u7247\u9519\u8BEF\uFF1A ${this.chunkCount}\u3002\u505C\u6B62\u5C1D\u8BD5\uFF0C\u53D6\u6D88\u4E0A\u4F20\uFF01`,chunk:this.chunkCount,attempts:this.attemptCount})}sendChunks(){console.log(this.paused,this.offline,this.success,"sendChunks this.paused || this.offline || this.success"),!(this.paused||this.offline||this.success)&&this.getChunk().then(()=>this.sendChunk()).then(e=>{if(this.attemptCount=this.attemptCount+1,e!=null&&Fs.includes(e.statusCode)){this.dispatch("chunkSuccess",{chunk:this.chunkCount,attempts:this.attemptCount,response:e}),this.attemptCount=0,this.chunkCount=this.chunkCount+1,this.chunkCount<this.totalChunks?this.sendChunks():(this.success=!0,this.dispatch("success"));const t=this.chunkCount/this.totalChunks*this.file.size*100/this.file.size;this.dispatch("progress",t)}else if(e!=null&&qs.includes(e.statusCode)){if(this.paused||this.offline)return;this.manageRetries()}else{if(this.paused||this.offline)return;console.log(`\u670D\u52A1\u5668\u9519\u8BEF:${e?.statusCode}\uFF0C\u505C\u6B62\u4E0A\u4F20\u3002`),this.dispatch("error",{message:`\u670D\u52A1\u5668\u9519\u8BEF:${e?.statusCode}\uFF0C\u505C\u6B62\u4E0A\u4F20\u3002`,chunkNumber:this.chunkCount,attempts:this.attemptCount})}}).catch(e=>{this.paused||this.offline||this.manageRetries()})}}const Xs=n=>new tr(n),Vs=new class{hasClass(n,e){return n.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}addClass(n,e){this.hasClass(n,e)||(n.className+=" "+e)}removeClass(n,e){if(this.hasClass(n,e)){const t=new RegExp("(\\s|^)"+e+"(\\s|$)");n.className=n.className.replace(t," ")}}toggleClass(n,e){this.hasClass(n,e)?this.removeClass(n,e):this.addClass(n,e)}setCSSProperty(n,e,t){n?.style.setProperty(e,t)}};class ct{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!Je.isNullOrEmpty(e)){if(ct.httpTransport||(ct.httpTransport=new Vi),this.client=new qi(e),!this.client)throw Error("Hprose Client\u521D\u59CB\u5316\u9519\u8BEF");this.hproseURL=e,this.init()}}init(){this.client&&this.client.useServiceAsync().then(e=>{this.hproseProxy=e}).catch(e=>{String(e).indexOf("find this method ~")>0?(this.hproseProxy=this.client?.useService(),console.warn("\u65E7\u7248\u672C\u4E0D\u652F\u6301useServiceAsync")):Ae.emit(se.HproseServiceErrorEvent,"\u521D\u59CB\u5316\u9ED8\u8BA4Hprose!"),console.warn(e)})}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,o){if(this.client)return await this.client.invoke(e,t,o)}encode(e,t,o){if(this.client)return this.client.codec.encode(e,t,o)}decode(e,t){if(this.client)return this.client.codec.decode(e,t)}}class Ze{hproseClient;hpProxyObj;defaultContext=new nn;constructor(e){this.hproseClient=new ct(e),this.hpProxyObj=null}getClientContext(e,t){const o={};t&&(o.requestHeaders=t);const r=De();o.httpRequestHeaders=e||{};const i=o.httpRequestHeaders;return r&&(i.token=r.token),B.SystemID&&(i.sysid=B.SystemID,B.SystemGroup&&(i.sysgroup=B.SystemGroup)),new nn(o)}async getHproseProxy(){if(!this.hproseClient)throw new Error("HproseClient\u5BF9\u8C61\u4E3A\u6784\u5EFA\uFF0C\u65E0\u6CD5\u8C03\u7528Hprose\u65B9\u6CD5");if(!this.hpProxyObj){const e=await this.hproseClient.getProxy();this.hpProxyObj=e}return this.hpProxyObj||Ae.emit(se.HproseServiceErrorEvent,"HproseProxy\u5BF9\u8C61\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8C03\u7528Hprose\u65B9\u6CD5\uFF01"),this.hpProxyObj}async hproseInvoke(e,t,o){if(!this.hproseClient)throw new Error("HproseClient\u5BF9\u8C61\u4E3A\u6784\u5EFA\uFF0C\u65E0\u6CD5\u8C03\u7528Hprose\u65B9\u6CD5");return await this.hproseClient.invoke(e,t,o)}async hproseInvokeContext(e,t,...o){if(!this.hproseClient)throw new Error("HproseClient\u5BF9\u8C61\u4E3A\u6784\u5EFA\uFF0C\u65E0\u6CD5\u8C03\u7528Hprose\u65B9\u6CD5");const r=De();return console.log(r,"userToken3"),r&&(t||(t=new nn({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,o,t)}async hproseInvokeEncode(e){const t=new ke(e).toBytes(),o=await this.hproseClient.client?.request(t,this.defaultContext);return o&&this.hproseClient.client?.codec.decode(o,this.defaultContext)}encodeRequest(e,...t){const o=this.hproseClient.client?.codec?.encode(e,t,this.defaultContext);return ke.toString(o)}}const Rn=new Map,Gs=function(n,e,t){!B.Config.DefaultHproseAPI&&B.Config.ServiceURL&&(B.Config.DefaultHproseAPI=B.Config.ServiceURL.DefaultHproseAPI),B.Config.DefaultHproseAPI&&Je.isNotEmpty(B.Config.DefaultHproseAPI)&&(B.DefaultProxyClient=new Ze(B.Config.DefaultHproseAPI));const o=B.Config.UI.GrayMode;o&&he.setGrayMode(o);const r=new jo(n,B.EventBus);B.Message=r,B.SystemID=e,B.SystemGroup=t,B.EventBus.on(se.HproseServiceErrorEvent,i=>{const s=`\u5F53\u524D\u540E\u53F0\u4E1A\u52A1\u670D\u52A1\u4E0D\u53EF\u7528!${i}`;console.warn("Hprose\u8BF7\u6C42\u9519\u8BEF",s)}),B.EventBus.on(se.WebAPIErrorEvent,i=>{const s=`WebAPI\u540E\u53F0\u670D\u52A1\u4E0D\u53EF\u7528!${i}`;console.warn("WebAPI\u8BF7\u6C42\u9519\u8BEF",s)}),B.EventBus.on(se.AxiosRequestErrorEvent,i=>{const s=`Http\u8BF7\u6C42'${i.code}'\u9519\u8BEF: ${i.message}`;console.warn("Http\u8BF7\u6C42\u9519\u8BEF",s)}),B.EventBus.on(se.CommonWarnEvent,i=>{r.warn(i)})};function nr(n){if(n&&Je.isNotEmpty(n)){if(Rn.has(n))return Rn.get(n);{const e=new Ze(n);return Rn.set(n,e),e}}}function Ks(n){const e=nr(n);return e&&(B.DefaultProxyClient=e),e}const Le=So({isLock:!1,lockTime:0});function kt(n){Le.isLock=n,n&&(En(),console.log("\u9501\u5C4F\u4E86\u2026\u2026"))}function Js(){return Le.isLock}let Pn;function Qe(){clearInterval(Pn),!(window.location.href.indexOf("/login")>0||Le.isLock)&&(kt(!1),Le.lockTime=function(){let n=3600;return B.Config.UI?.LockTime&&B.Config.UI?.LockTime>=10&&(n=B.Config.UI.LockTime),n}(),Pn=setInterval(()=>{if(Le.lockTime--,Le.lockTime<=0)return kt(!0),clearInterval(Pn)},1e3))}function Ys(){Qe(),document.addEventListener("mousedown",Qe),document.addEventListener("mousemove",Qe)}function Zs(){document.removeEventListener("mousedown",Qe),document.removeEventListener("mousemove",Qe)}function Mn(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var or,rr={exports:{}};/*!
4
4
  localForage -- Offline Storage, Improved
5
5
  Version 1.10.0
@@ -62,9 +62,8 @@ declare function getData(fullRequestURL: string, _params?: any): Promise<any>;
62
62
  * @param url 网站相对路径或完整路径
63
63
  * @param fileName 文件名(默认为空,从URL里截取)
64
64
  * @param _params get请求参数
65
- * @param responseType 返回类型,默认为blob,可以改为arraybuffer\text\json
66
65
  * @returns
67
66
  */
68
- declare function getDownload(url: string, fileName?: string, _params?: any, responseType?: ResponseType): void;
67
+ declare function getDownload(url: string, fileName?: string, _params?: any): void;
69
68
  export { get, post, requestPost, requestGet, getData, requestPostBody, getDownload };
70
69
  export type { ResponseType };
@@ -19,9 +19,9 @@ declare const JsonDownload: (jsonObject: object, jsonID: string) => void;
19
19
  /**
20
20
  * 从Web上下载文件
21
21
  * (通过axios下载)
22
+ * 与getDownload方法共存使用
22
23
  * @param requestUrl URL下载地址
23
24
  * @param fileName 文件名
24
- * @deprecated 废弃,请使用getDownload方法替换
25
25
  */
26
26
  declare const HttpDownload: (axios: any, requestUrl: string, fileName: string) => void;
27
27
  export { Download, SaveAs, JsonDownload, HttpDownload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "积累的前端开发基础库",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",