@dolusoft/vue3-datatable 1.7.43 → 1.7.44

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.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue");function Dt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Fe(t){return typeof t=="function"?t():e.unref(t)}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kn=Object.prototype.toString,wn=t=>kn.call(t)==="[object Object]",ue=()=>{},Cn=xn();function xn(){var t,l;return Rt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Sn(t,l){function o(...r){return new Promise((n,i)=>{Promise.resolve(t(()=>l.apply(this,r),{fn:l,thisArg:this,args:r})).then(n).catch(i)})}return o}const En=t=>t();function zn(t,l={}){let o,r,n=ue;const i=a=>{clearTimeout(a),n(),n=ue};return a=>{const u=Fe(t),f=Fe(l.maxWait);return o&&i(o),u<=0||f!==void 0&&f<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{n=l.rejectOnCancel?h:d,f&&!r&&(r=setTimeout(()=>{o&&i(o),r=null,d(a())},f)),o=setTimeout(()=>{r&&i(r),r=null,d(a())},u)})}}function Bn(t){return e.getCurrentInstance()}function Nn(t,l,o={}){const{eventFilter:r=En,...n}=o;return e.watch(t,Sn(r,l),n)}function Mn(t,l=!0,o){Bn()?e.onMounted(t,o):l?t():e.nextTick(t)}function Ln(t,l,o={}){const{debounce:r=0,maxWait:n=void 0,...i}=o;return Nn(t,l,{...i,eventFilter:zn(r,{maxWait:n})})}function Z(t){var l;const o=Fe(t);return(l=o==null?void 0:o.$el)!=null?l:o}const Ie=Rt?window:void 0;function qe(...t){let l,o,r,n;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,n]=t,l=Ie):[l,o,r,n]=t,!l)return ue;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const i=[],c=()=>{i.forEach(d=>d()),i.length=0},a=(d,h,v,z)=>(d.addEventListener(h,v,z),()=>d.removeEventListener(h,v,z)),u=e.watch(()=>[Z(l),Fe(n)],([d,h])=>{if(c(),!d)return;const v=wn(h)?{...h}:h;i.push(...o.flatMap(z=>r.map(N=>a(d,z,N,v))))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return Dt(f),f}let vt=!1;function Fn(t,l,o={}){const{window:r=Ie,ignore:n=[],capture:i=!0,detectIframe:c=!1}=o;if(!r)return ue;Cn&&!vt&&(vt=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",ue)),r.document.documentElement.addEventListener("click",ue));let a=!0;const u=v=>n.some(z=>{if(typeof z=="string")return Array.from(r.document.querySelectorAll(z)).some(N=>N===v.target||v.composedPath().includes(N));{const N=Z(z);return N&&(v.target===N||v.composedPath().includes(N))}}),d=[qe(r,"click",v=>{const z=Z(t);if(!(!z||z===v.target||v.composedPath().includes(z))){if(v.detail===0&&(a=!u(v)),!a){a=!0;return}l(v)}},{passive:!0,capture:i}),qe(r,"pointerdown",v=>{const z=Z(t);a=!u(v)&&!!(z&&!v.composedPath().includes(z))},{passive:!0}),c&&qe(r,"blur",v=>{setTimeout(()=>{var z;const N=Z(t);((z=r.document.activeElement)==null?void 0:z.tagName)==="IFRAME"&&!(N!=null&&N.contains(r.document.activeElement))&&l(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function Tn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function Vn(t){const l=Tn();return e.computed(()=>(l.value,!!t()))}function _n(t,l,o={}){const{window:r=Ie,...n}=o;let i;const c=Vn(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(h=>Z(h)):[Z(t)]),f=e.watch(u,h=>{if(a(),c.value&&r){i=new ResizeObserver(l);for(const v of h)v&&i.observe(v,n)}},{immediate:!0,flush:"post"}),d=()=>{a(),f()};return Dt(d),{isSupported:c,stop:d}}function Pn(t,l={width:0,height:0},o={}){const{window:r=Ie,box:n="content-box"}=o,i=e.computed(()=>{var h,v;return(v=(h=Z(t))==null?void 0:h.namespaceURI)==null?void 0:v.includes("svg")}),c=e.ref(l.width),a=e.ref(l.height),{stop:u}=_n(t,([h])=>{const v=n==="border-box"?h.borderBoxSize:n==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(r&&i.value){const z=Z(t);if(z){const N=z.getBoundingClientRect();c.value=N.width,a.value=N.height}}else if(v){const z=Array.isArray(v)?v:[v];c.value=z.reduce((N,{inlineSize:V})=>N+V,0),a.value=z.reduce((N,{blockSize:V})=>N+V,0)}else c.value=h.contentRect.width,a.value=h.contentRect.height},o);Mn(()=>{const h=Z(t);h&&(c.value="offsetWidth"in h?h.offsetWidth:l.width,a.value="offsetHeight"in h?h.offsetHeight:l.height)});const f=e.watch(()=>Z(t),h=>{c.value=h?l.width:0,a.value=h?l.height:0});function d(){u(),f()}return{width:c,height:a,stop:d}}var In=typeof global=="object"&&global&&global.Object===Object&&global,On=typeof self=="object"&&self&&self.Object===Object&&self,At=In||On||Function("return this")(),Te=At.Symbol,Wt=Object.prototype,$n=Wt.hasOwnProperty,Dn=Wt.toString,fe=Te?Te.toStringTag:void 0;function Rn(t){var l=$n.call(t,fe),o=t[fe];try{t[fe]=void 0;var r=!0}catch{}var n=Dn.call(t);return r&&(l?t[fe]=o:delete t[fe]),n}var An=Object.prototype,Wn=An.toString;function Hn(t){return Wn.call(t)}var qn="[object Null]",jn="[object Undefined]",gt=Te?Te.toStringTag:void 0;function Un(t){return t==null?t===void 0?jn:qn:gt&&gt in Object(t)?Rn(t):Hn(t)}function Gn(t){return t!=null&&typeof t=="object"}var Qn="[object Symbol]";function Xn(t){return typeof t=="symbol"||Gn(t)&&Un(t)==Qn}var Yn=/\s/;function Kn(t){for(var l=t.length;l--&&Yn.test(t.charAt(l)););return l}var Jn=/^\s+/;function Zn(t){return t&&t.slice(0,Kn(t)+1).replace(Jn,"")}function Ve(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var bt=NaN,eo=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,no=/^0o[0-7]+$/i,oo=parseInt;function me(t){if(typeof t=="number")return t;if(Xn(t))return bt;if(Ve(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Ve(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=Zn(t);var o=to.test(t);return o||no.test(t)?oo(t.slice(2),o?2:8):eo.test(t)?bt:+t}function lo(t,l,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),l!==void 0&&(t=t>=l?t:l)),t}function Ee(t,l,o){return o===void 0&&(o=l,l=void 0),o!==void 0&&(o=me(o),o=o===o?o:0),l!==void 0&&(l=me(l),l=l===l?l:0),lo(me(t),l,o)}var je=function(){return At.Date.now()},ro="Expected a function",io=Math.max,ao=Math.min;function Ht(t,l,o){var r,n,i,c,a,u,f=0,d=!1,h=!1,v=!0;if(typeof t!="function")throw new TypeError(ro);l=me(l)||0,Ve(o)&&(d=!!o.leading,h="maxWait"in o,i=h?io(me(o.maxWait)||0,l):i,v="trailing"in o?!!o.trailing:v);function z(x){var S=r,O=n;return r=n=void 0,f=x,c=t.apply(O,S),c}function N(x){return f=x,a=setTimeout(I,l),d?z(x):c}function V(x){var S=x-u,O=x-f,W=l-S;return h?ao(W,i-O):W}function w(x){var S=x-u,O=x-f;return u===void 0||S>=l||S<0||h&&O>=i}function I(){var x=je();if(w(x))return $(x);a=setTimeout(I,V(x))}function $(x){return a=void 0,v&&r?z(x):(r=n=void 0,c)}function A(){a!==void 0&&clearTimeout(a),f=0,r=u=n=a=void 0}function _(){return a===void 0?c:$(je())}function q(){var x=je(),S=w(x);if(r=arguments,n=this,u=x,S){if(a===void 0)return N(u);if(h)return clearTimeout(a),a=setTimeout(I,l),z(u)}return a===void 0&&(a=setTimeout(I,l)),c}return q.cancel=A,q.flush=_,q}var so="Expected a function";function qt(t,l,o){var r=!0,n=!0;if(typeof t!="function")throw new TypeError(so);return Ve(o)&&(r="leading"in o?!!o.leading:r,n="trailing"in o?!!o.trailing:n),Ht(t,l,{leading:r,maxWait:l,trailing:n})}var co=Object.defineProperty,uo=Object.defineProperties,fo=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,kt=(t,l,o)=>l in t?co(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,_e=(t,l)=>{for(var o in l||(l={}))ho.call(l,o)&&kt(t,o,l[o]);if(yt)for(var o of yt(l))mo.call(l,o)&&kt(t,o,l[o]);return t},jt=(t,l)=>uo(t,fo(l));const po=["onPointerdown"],vo={name:"ScrollbarThumb"};function go(t,{expose:l}){const o=t;e.useCssVars(S=>({"1fb98f78":e.unref(r)}));const r=e.computed(()=>{var S;return`${(S=o.thumbWidth)!=null?S:12}px`});let n=null,i=e.shallowRef(null);const c={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{n=setTimeout(()=>{i.value&&i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),n=null},o.autoHideDelay)},f=()=>{n!==null&&clearTimeout(n)};e.onUnmounted(f);const d=qt(S=>{S.stopPropagation(),S.preventDefault();const O=o.type==="horizontal"?"pageX":"pageY",W=(S[O]-c[O])/o.scrollInfo.wrapperMainSize*o.scrollInfo.contentMainSize;o.wrapperEl.scrollTo({[o.type==="horizontal"?"left":"top"]:c.scrollPos+W,behavior:"auto"})},16),h=()=>{u(),i.value.removeEventListener("pointermove",d),i.value.removeEventListener("pointerup",h),i.value.removeEventListener("pointercancel",h),i.value.removeEventListener("mousewheel",h),document.removeEventListener("mousewheel",h),typeof a=="number"&&i.value.releasePointerCapture(a),a=null},v=S=>{S.ctrlKey||S.button!==0||(f(),c.pageX=S.pageX,c.pageY=S.pageY,c.scrollPos=o.wrapperEl[o.type==="horizontal"?"scrollLeft":"scrollTop"],a=S==null?void 0:S.pointerId,i.value.setPointerCapture(a),i.value.addEventListener("pointermove",d),i.value.addEventListener("pointerup",h),i.value.addEventListener("pointercancel",h),i.value.addEventListener("mousewheel",h,{passive:!1}),document.addEventListener("mousewheel",h,{passive:!1}),i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{f(),i.value&&i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let N=e.shallowRef(!1),V=e.shallowRef(!1),w=e.shallowRef(null),I=null,$=null,A=e.computed(()=>o.fixedThumb&&!V.value);const _=([S])=>V.value=S.isIntersecting,q=([S])=>N.value=S.isIntersecting,x=()=>{I&&(I.disconnect(),I=null),$&&($.disconnect(),$=null)};return e.watch(()=>[o.fixedThumb,o.wrapperEl],()=>{if(!o.fixedThumb||!o.wrapperEl)return x();x(),$=new IntersectionObserver(q,{threshold:[0,.5]}),$.observe(o.wrapperEl),I=new IntersectionObserver(_),I.observe(w.value)}),e.onUnmounted(x),(S,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumbPlaceholder",`scrollbar__thumbPlaceholder--${t.type}`,{"scrollbar__thumbPlaceholder--autoHide":t.autoHide,"scrollbar__thumbPlaceholder--autoExpand":t.autoExpand}]),style:e.normalizeStyle({width:t.type==="horizontal"?`${t.scrollInfo.thumbSize}px`:"",height:t.type==="vertical"?`${t.scrollInfo.thumbSize}px`:"",position:A.value?"fixed":"absolute",[t.type==="vertical"?"top":"left"]:A.value?`${t.scrollInfo.boundaryDistance+3}px`:"3px"}),ref:(W,j)=>{j.thumbEl=W,i.value=W},onPointerdown:e.withModifiers(v,["stop"])},[O[0]||(e.setBlockTracking(-1),O[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),O[0])],46,po),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?N.value:!0)]]),o.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(W,j)=>{j.shepherdEl=W,w.value=W},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const bo=e.defineComponent(jt(_e({},vo),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:go})),yo={wait:333,type:"debounce"};function wt(...t){const l="value"in(t==null?void 0:t[0]);let o;l?o=t==null?void 0:t[1]:o=t==null?void 0:t[0];const{wait:r,type:n,callback:i}=_e(_e({},yo),o),c=l?t[0]:e.shallowRef(null),a=e.reactive({left:0,top:0,right:0,bottom:0,width:0,height:0,x:0,y:0}),u=()=>{const v=c.value.getBoundingClientRect();a.left=v.left,a.top=v.top,a.right=v.right,a.bottom=v.bottom,a.width=v.width,a.height=v.height,a.x=v.x,a.y=v.y,i==null||i()};let f=null,d=null;const h=()=>{f&&window.removeEventListener("resize",f),d&&(d.disconnect(),d=null)};return e.watchEffect(()=>{c.value&&(h(),f=u,n==="throttle"&&r>=4?f=qt(f,r):n==="debounce"&&r>=4&&(f=Ht(f,r)),window.addEventListener("resize",f),d=new ResizeObserver(f),d.observe(c.value))}),e.onUnmounted(h),l?a:[c,a]}const ko={name:"CustomScrollbar",inheritAttrs:!1};function wo(t,{expose:l,emit:o}){const r=t,n={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},i=(_,q)=>{n[q].instance||(n[q].instance=_)};let c=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var _;const q=Array.from((_=c.value.parentElement)==null?void 0:_.childNodes);for(const x in n)n[x].el=q.find(S=>{var O;return(O=S==null?void 0:S.classList)==null?void 0:O.contains(`scrollbar__thumbPlaceholder--${x}`)})});const u=wt(c,{wait:r.throttleWait,type:r.throttleType,callback:v}),f=wt(a,{wait:r.throttleWait,type:r.throttleType,callback:v});let d=e.shallowRef(0),h=e.shallowRef(0);function v(){d.value=Math.max(c.value.scrollHeight-u.height|0,0),h.value=Math.max(c.value.scrollWidth-u.width|0,0)}let z=e.computed(()=>({thumbSize:h.value?Ee(u.width/c.value.scrollWidth*u.width,r.thumbMinSize>u.width?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:f.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),N=e.computed(()=>({thumbSize:d.value?Ee(u.height/c.value.scrollHeight*u.height,r.thumbMinSize>u.height?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:f.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),V=e.computed(()=>u.height-N.value.thumbSize-5),w=e.computed(()=>u.width-z.value.thumbSize-5);const I=()=>{h.value&&(n.horizontal.el.style.transform=`translate3d(${c.value.scrollLeft/h.value*w.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),d.value&&(n.vertical.el.style.transform=`translate3d(0, ${c.value.scrollTop/d.value*V.value}px, 0)`,n.vertical.instance.autoHideAfterScroll())};e.watch(()=>[h.value,d.value],I);const $=_=>{_.stopPropagation();const q=c.value.scrollLeft,x=c.value.scrollTop,S=Ee(q+((_==null?void 0:_.deltaX)||0),0,h.value)|0,O=Ee(x+((_==null?void 0:_.deltaY)||0),0,d.value)|0;c.value.scrollLeft=S,c.value.scrollTop=O,h.value&&(n.horizontal.el.style.transform=`translate3d(${S/h.value*w.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),d.value&&(n.vertical.el.style.transform=`translate3d(0, ${O/d.value*V.value}px, 0)`,n.vertical.instance.autoHideAfterScroll()),o("scroll",{target:c.value,scrollLeft:S,scrollTop:O})},A=_=>{r.simulateScroll?$(_):I()};return e.watch(u,()=>o("wrapperResize",u)),e.watch(f,()=>o("contentResize",f)),l({scrollEl:c}),(_,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(x,S)=>{S.wrapperEl=x,c.value=x},class:"scrollbar__scroller"},_.$attrs,{onWheel:A,onScroll:A}),[e.createElementVNode("div",{ref:(x,S)=>{S.contentEl=x,a.value=x},class:e.normalizeClass(["scrollbar__content",t.contentClass,{"scrollbar__content--fixedThumb":t.fixedThumb,[`scrollbar__content--${t.direction}`]:t.direction}]),style:e.normalizeStyle(t.contentStyle)},[e.renderSlot(_.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,(x,S)=>e.createVNode(bo,{ref:O=>i(O,S),key:S,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:S===t.direction?!1:t.fixedThumb,type:S,scrollInfo:S==="vertical"?N.value:z.value,thumbWidth:t.thumbWidth,wrapperEl:c.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const Ct=e.defineComponent(jt(_e({},ko),{props:{wrapperClass:null,wrapperStyle:null,contentClass:null,contentStyle:null,direction:{default:"vertical"},thumbMinSize:{default:48},thumbMaxSize:{default:1/0},thumbWidth:{default:12},autoHide:{default:!0},autoHideDelay:{default:900},autoExpand:{default:!0},fixedThumb:null,throttleType:{default:"debounce"},throttleWait:{default:333},simulateScroll:null},emits:["wrapperResize","contentResize","scroll"],setup:wo})),xt={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:l}){const o=l,r=t,n=e.useSlots(),i=e.ref([]),c=e.computed(()=>i.value.reduce((m,y)=>(m[~~y.id]=y)&&m,{})),a=e.computed(()=>i.value.length),u=e.ref(null),f=e.ref(!1),d=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),h=e.ref({splitter:null,timeoutId:null}),v=e.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":d.value.dragging})),z=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",I),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",I))},N=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",I),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",I))},V=(m,y)=>{const E=m.target.closest(".splitpanes__splitter");if(E){const{left:k,top:C}=E.getBoundingClientRect(),{clientX:B,clientY:P}="ontouchstart"in window&&m.touches?m.touches[0]:m;d.value.cursorOffset=r.horizontal?P-C:B-k}z(),d.value.mouseDown=!0,d.value.activeSplitter=y},w=m=>{d.value.mouseDown&&(m.preventDefault(),d.value.dragging=!0,requestAnimationFrame(()=>{S(q(m)),X("resize",{event:m},!0)}))},I=m=>{d.value.dragging&&X("resized",{event:m},!0),d.value.mouseDown=!1,d.value.activeSplitter=null,setTimeout(()=>{d.value.dragging=!1,N()},100)},$=(m,y)=>{"ontouchstart"in window&&(m.preventDefault(),h.value.splitter===y?(clearTimeout(h.value.timeoutId),h.value.timeoutId=null,A(m,y),h.value.splitter=null):(h.value.splitter=y,h.value.timeoutId=setTimeout(()=>h.value.splitter=null,500))),d.value.dragging||X("splitter-click",{event:m,index:y},!0)},A=(m,y)=>{if(X("splitter-dblclick",{event:m,index:y},!0),r.maximizePanes){let E=0;i.value=i.value.map((k,C)=>(k.size=C===y?k.max:k.min,C!==y&&(E+=k.min),k)),i.value[y].size-=E,X("pane-maximize",{event:m,index:y,pane:i.value[y]}),X("resized",{event:m,index:y},!0)}},_=(m,y)=>{X("pane-click",{event:m,index:c.value[y].index,pane:c.value[y]})},q=m=>{const y=u.value.getBoundingClientRect(),{clientX:E,clientY:k}="ontouchstart"in window&&m.touches?m.touches[0]:m;return{x:E-(r.horizontal?0:d.value.cursorOffset)-y.left,y:k-(r.horizontal?d.value.cursorOffset:0)-y.top}},x=m=>{m=m[r.horizontal?"y":"x"];const y=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(m=y-m),m*100/y},S=m=>{const y=d.value.activeSplitter;let E={prevPanesSize:W(y),nextPanesSize:j(y),prevReachedMinPanes:0,nextReachedMinPanes:0};const k=0+(r.pushOtherPanes?0:E.prevPanesSize),C=100-(r.pushOtherPanes?0:E.nextPanesSize),B=Math.max(Math.min(x(m),C),k);let P=[y,y+1],U=i.value[P[0]]||null,L=i.value[P[1]]||null;const le=U.max<100&&B>=U.max+E.prevPanesSize,ce=L.max<100&&B<=100-(L.max+j(y+1));if(le||ce){le?(U.size=U.max,L.size=Math.max(100-U.max-E.prevPanesSize-E.nextPanesSize,0)):(U.size=Math.max(100-L.max-E.prevPanesSize-j(y+1),0),L.size=L.max);return}if(r.pushOtherPanes){const te=O(E,B);if(!te)return;({sums:E,panesToResize:P}=te),U=i.value[P[0]]||null,L=i.value[P[1]]||null}U!==null&&(U.size=Math.min(Math.max(B-E.prevPanesSize-E.prevReachedMinPanes,U.min),U.max)),L!==null&&(L.size=Math.min(Math.max(100-B-E.nextPanesSize-E.nextReachedMinPanes,L.min),L.max))},O=(m,y)=>{const E=d.value.activeSplitter,k=[E,E+1];return y<m.prevPanesSize+i.value[k[0]].min&&(k[0]=Re(E).index,m.prevReachedMinPanes=0,k[0]<E&&i.value.forEach((C,B)=>{B>k[0]&&B<=E&&(C.size=C.min,m.prevReachedMinPanes+=C.min)}),m.prevPanesSize=W(k[0]),k[0]===void 0)?(m.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((C,B)=>{B>0&&B<=E&&(C.size=C.min,m.prevReachedMinPanes+=C.min)}),i.value[k[1]].size=100-m.prevReachedMinPanes-i.value[0].min-m.prevPanesSize-m.nextPanesSize,null):y>100-m.nextPanesSize-i.value[k[1]].min&&(k[1]=G(E).index,m.nextReachedMinPanes=0,k[1]>E+1&&i.value.forEach((C,B)=>{B>E&&B<k[1]&&(C.size=C.min,m.nextReachedMinPanes+=C.min)}),m.nextPanesSize=j(k[1]-1),k[1]===void 0)?(m.nextReachedMinPanes=0,i.value.forEach((C,B)=>{B<a.value-1&&B>=E+1&&(C.size=C.min,m.nextReachedMinPanes+=C.min)}),i.value[k[0]].size=100-m.prevPanesSize-j(k[0]-1),null):{sums:m,panesToResize:k}},W=m=>i.value.reduce((y,E,k)=>y+(k<m?E.size:0),0),j=m=>i.value.reduce((y,E,k)=>y+(k>m+1?E.size:0),0),Re=m=>[...i.value].reverse().find(y=>y.index<m&&y.size>y.min)||{},G=m=>i.value.find(y=>y.index>m+1&&y.size>y.min)||{},ye=()=>{var m;const y=Array.from(((m=u.value)==null?void 0:m.children)||[]);for(const E of y){const k=E.classList.contains("splitpanes__pane"),C=E.classList.contains("splitpanes__splitter");!k&&!C&&(E.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},R=(m,y,E=!1)=>{const k=m-1,C=document.createElement("div");C.classList.add("splitpanes__splitter"),E||(C.onmousedown=B=>V(B,k),typeof window<"u"&&"ontouchstart"in window&&(C.ontouchstart=B=>V(B,k)),C.onclick=B=>$(B,k+1)),C.ondblclick=B=>A(B,k+1),y.parentNode.insertBefore(C,y)},K=m=>{m.onmousedown=void 0,m.onclick=void 0,m.ondblclick=void 0,m.remove()},ne=()=>{var m;const y=Array.from(((m=u.value)==null?void 0:m.children)||[]);for(const k of y)k.className.includes("splitpanes__splitter")&&K(k);let E=0;for(const k of y)k.className.includes("splitpanes__pane")&&(!E&&r.firstSplitter?R(E,k,!0):E&&R(E,k),E++)},de=({uid:m,...y})=>{const E=c.value[m];for(const[k,C]of Object.entries(y))E[k]=C},ke=m=>{var y;let E=-1;Array.from(((y=u.value)==null?void 0:y.children)||[]).some(k=>(k.className.includes("splitpanes__pane")&&E++,k.isSameNode(m.el))),i.value.splice(E,0,{...m,index:E}),i.value.forEach((k,C)=>k.index=C),f.value&&e.nextTick(()=>{ne(),Y({addedPane:i.value[E]}),X("pane-add",{pane:i.value[E]})})},we=m=>{const y=i.value.findIndex(k=>k.id===m);i.value[y].el=null;const E=i.value.splice(y,1)[0];i.value.forEach((k,C)=>k.index=C),e.nextTick(()=>{ne(),X("pane-remove",{pane:E}),Y({removedPane:{...E}})})},Y=(m={})=>{!m.addedPane&&!m.removedPane?ae():i.value.some(y=>y.givenSize!==null||y.min||y.max<100)?Ce(m):ee(),f.value&&X("resized")},ee=()=>{const m=100/a.value;let y=0;const E=[],k=[];for(const C of i.value)C.size=Math.max(Math.min(m,C.max),C.min),y-=C.size,C.size>=C.max&&E.push(C.id),C.size<=C.min&&k.push(C.id);y>.1&&se(y,E,k)},ae=()=>{let m=100;const y=[],E=[];let k=0;for(const B of i.value)m-=B.size,B.givenSize!==null&&k++,B.size>=B.max&&y.push(B.id),B.size<=B.min&&E.push(B.id);let C=100;if(m>.1){for(const B of i.value)B.givenSize===null&&(B.size=Math.max(Math.min(m/(a.value-k),B.max),B.min)),C-=B.size;C>.1&&se(C,y,E)}},Ce=({addedPane:m,removedPane:y}={})=>{let E=100/a.value,k=0;const C=[],B=[];((m==null?void 0:m.givenSize)??null)!==null&&(E=(100-m.givenSize)/(a.value-1));for(const P of i.value)k-=P.size,P.size>=P.max&&C.push(P.id),P.size<=P.min&&B.push(P.id);if(!(Math.abs(k)<.1)){for(const P of i.value)(m==null?void 0:m.givenSize)!==null&&(m==null?void 0:m.id)===P.id||(P.size=Math.max(Math.min(E,P.max),P.min)),k-=P.size,P.size>=P.max&&C.push(P.id),P.size<=P.min&&B.push(P.id);k>.1&&se(k,C,B)}},se=(m,y,E)=>{let k;m>0?k=m/(a.value-y.length):k=m/(a.value-E.length),i.value.forEach((C,B)=>{if(m>0&&!y.includes(C.id)){const P=Math.max(Math.min(C.size+k,C.max),C.min),U=P-C.size;m-=U,C.size=P}else if(!E.includes(C.id)){const P=Math.max(Math.min(C.size+k,C.max),C.min),U=P-C.size;m-=U,C.size=P}}),Math.abs(m)>.1&&e.nextTick(()=>{f.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},X=(m,y=void 0,E=!1)=>{const k=(y==null?void 0:y.index)??d.value.activeSplitter??null;o(m,{...y,...k!==null&&{index:k},...E&&k!==null&&{prevPane:i.value[k-(r.firstSplitter?1:0)],nextPane:i.value[k+(r.firstSplitter?0:1)]},panes:i.value.map(C=>({min:C.min,max:C.max,size:C.size}))})};e.watch(()=>r.firstSplitter,()=>ne()),e.onMounted(()=>{ye(),ne(),Y(),X("ready"),f.value=!0}),e.onBeforeUnmount(()=>f.value=!1);const Ae=()=>{var m;return e.h("div",{ref:u,class:v.value},(m=n.default)==null?void 0:m.call(n))};return e.provide("panes",i),e.provide("indexedPanes",c),e.provide("horizontal",e.computed(()=>r.horizontal)),e.provide("requestUpdate",de),e.provide("onPaneAdd",ke),e.provide("onPaneRemove",we),e.provide("onPaneClick",_),(m,y)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ae)))}},Ue={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const o=t,r=e.inject("requestUpdate"),n=e.inject("onPaneAdd"),i=e.inject("horizontal"),c=e.inject("onPaneRemove"),a=e.inject("onPaneClick"),u=(l=e.getCurrentInstance())==null?void 0:l.uid,f=e.inject("indexedPanes"),d=e.computed(()=>f.value[u]),h=e.ref(null),v=e.computed(()=>{const w=isNaN(o.size)||o.size===void 0?0:parseFloat(o.size);return Math.max(Math.min(w,N.value),z.value)}),z=e.computed(()=>{const w=parseFloat(o.minSize);return isNaN(w)?0:w}),N=e.computed(()=>{const w=parseFloat(o.maxSize);return isNaN(w)?100:w}),V=e.computed(()=>{var w;return`${i.value?"height":"width"}: ${(w=d.value)==null?void 0:w.size}%`});return e.watch(()=>v.value,w=>r({uid:u,size:w})),e.watch(()=>z.value,w=>r({uid:u,min:w})),e.watch(()=>N.value,w=>r({uid:u,max:w})),e.onMounted(()=>{n({id:u,el:h.value,min:z.value,max:N.value,givenSize:o.size===void 0?null:v.value,size:v.value})}),e.onBeforeUnmount(()=>c(u)),(w,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:h,class:"splitpanes__pane",onClick:I[0]||(I[0]=$=>e.unref(a)($,w._.uid)),style:e.normalizeStyle(V.value)},[e.renderSlot(w.$slots,"default")],4))}},pe=/^[a-z0-9]+(-[a-z0-9]+)*$/,Oe=(t,l,o,r="")=>{const n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),u=n.pop(),f={provider:n.length>0?n[0]:r,prefix:u,name:a};return l&&!Ne(f)?null:f}const i=n[0],c=i.split("-");if(c.length>1){const a={provider:r,prefix:c.shift(),name:c.join("-")};return l&&!Ne(a)?null:a}if(o&&r===""){const a={provider:r,prefix:"",name:i};return l&&!Ne(a,o)?null:a}return null},Ne=(t,l)=>t?!!((t.provider===""||t.provider.match(pe))&&(l&&t.prefix===""||t.prefix.match(pe))&&t.name.match(pe)):!1,Ut=Object.freeze({left:0,top:0,width:16,height:16}),Pe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...Ut,...Pe}),Xe=Object.freeze({...$e,body:"",hidden:!1});function Co(t,l){const o={};!t.hFlip!=!l.hFlip&&(o.hFlip=!0),!t.vFlip!=!l.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(l.rotate||0))%4;return r&&(o.rotate=r),o}function St(t,l){const o=Co(t,l);for(const r in Xe)r in Pe?r in t&&!(r in o)&&(o[r]=Pe[r]):r in l?o[r]=l[r]:r in t&&(o[r]=t[r]);return o}function xo(t,l){const o=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(c){if(o[c])return n[c]=[];if(!(c in n)){n[c]=null;const a=r[c]&&r[c].parent,u=a&&i(a);u&&(n[c]=[a].concat(u))}return n[c]}return Object.keys(o).concat(Object.keys(r)).forEach(i),n}function So(t,l,o){const r=t.icons,n=t.aliases||Object.create(null);let i={};function c(a){i=St(r[a]||n[a],i)}return c(l),o.forEach(c),St(t,i)}function Gt(t,l){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(n=>{l(n,null),o.push(n)});const r=xo(t);for(const n in r){const i=r[n];i&&(l(n,So(t,n,i)),o.push(n))}return o}const Eo={provider:"",aliases:{},not_found:{},...Ut};function Ge(t,l){for(const o in l)if(o in t&&typeof t[o]!=typeof l[o])return!1;return!0}function Qt(t){if(typeof t!="object"||t===null)return null;const l=t;if(typeof l.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ge(t,Eo))return null;const o=l.icons;for(const n in o){const i=o[n];if(!n.match(pe)||typeof i.body!="string"||!Ge(i,Xe))return null}const r=l.aliases||Object.create(null);for(const n in r){const i=r[n],c=i.parent;if(!n.match(pe)||typeof c!="string"||!o[c]&&!r[c]||!Ge(i,Xe))return null}return l}const Et=Object.create(null);function zo(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function ie(t,l){const o=Et[t]||(Et[t]=Object.create(null));return o[l]||(o[l]=zo(t,l))}function lt(t,l){return Qt(l)?Gt(l,(o,r)=>{r?t.icons[o]=r:t.missing.add(o)}):[]}function Bo(t,l,o){try{if(typeof o.body=="string")return t.icons[l]={...o},!0}catch{}return!1}let ve=!1;function Xt(t){return typeof t=="boolean"&&(ve=t),ve}function No(t){const l=typeof t=="string"?Oe(t,!0,ve):t;if(l){const o=ie(l.provider,l.prefix),r=l.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function Mo(t,l){const o=Oe(t,!0,ve);if(!o)return!1;const r=ie(o.provider,o.prefix);return Bo(r,o.name,l)}function Lo(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),ve&&!l&&!t.prefix){let n=!1;return Qt(t)&&(t.prefix="",Gt(t,(i,c)=>{c&&Mo(i,c)&&(n=!0)})),n}const o=t.prefix;if(!Ne({provider:l,prefix:o,name:"a"}))return!1;const r=ie(l,o);return!!lt(r,t)}const Yt=Object.freeze({width:null,height:null}),Kt=Object.freeze({...Yt,...Pe}),Fo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,To=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function zt(t,l,o){if(l===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*l*o)/o;if(typeof t!="string")return t;const r=t.split(Fo);if(r===null||!r.length)return t;const n=[];let i=r.shift(),c=To.test(i);for(;;){if(c){const a=parseFloat(i);isNaN(a)?n.push(i):n.push(Math.ceil(a*l*o)/o)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");c=!c}}function Vo(t,l="defs"){let o="";const r=t.indexOf("<"+l);for(;r>=0;){const n=t.indexOf(">",r),i=t.indexOf("</"+l);if(n===-1||i===-1)break;const c=t.indexOf(">",i);if(c===-1)break;o+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(c+1)}return{defs:o,content:t}}function _o(t,l){return t?"<defs>"+t+"</defs>"+l:l}function Po(t,l,o){const r=Vo(t);return _o(r.defs,l+r.content+o)}const Io=t=>t==="unset"||t==="undefined"||t==="none";function Oo(t,l){const o={...$e,...t},r={...Kt,...l},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(V=>{const w=[],I=V.hFlip,$=V.vFlip;let A=V.rotate;I?$?A+=2:(w.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),w.push("scale(-1 1)"),n.top=n.left=0):$&&(w.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),w.push("scale(1 -1)"),n.top=n.left=0);let _;switch(A<0&&(A-=Math.floor(A/4)*4),A=A%4,A){case 1:_=n.height/2+n.top,w.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:w.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:_=n.width/2+n.left,w.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}A%2===1&&(n.left!==n.top&&(_=n.left,n.left=n.top,n.top=_),n.width!==n.height&&(_=n.width,n.width=n.height,n.height=_)),w.length&&(i=Po(i,'<g transform="'+w.join(" ")+'">',"</g>"))});const c=r.width,a=r.height,u=n.width,f=n.height;let d,h;c===null?(h=a===null?"1em":a==="auto"?f:a,d=zt(h,u/f)):(d=c==="auto"?u:c,h=a===null?zt(d,f/u):a==="auto"?f:a);const v={},z=(V,w)=>{Io(w)||(v[V]=w.toString())};z("width",d),z("height",h);const N=[n.left,n.top,u,f];return v.viewBox=N.join(" "),{attributes:v,viewBox:N,body:i}}const $o=/\sid="(\S+)"/g,Do="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ro=0;function Ao(t,l=Do){const o=[];let r;for(;r=$o.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const c=typeof l=="function"?l(i):l+(Ro++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+c+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}const Ye=Object.create(null);function Wo(t,l){Ye[t]=l}function Ke(t){return Ye[t]||Ye[""]}function rt(t){let l;if(typeof t.resources=="string")l=[t.resources];else if(l=t.resources,!(l instanceof Array)||!l.length)return null;return{resources:l,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const it=Object.create(null),he=["https://api.simplesvg.com","https://api.unisvg.com"],Me=[];for(;he.length>0;)he.length===1||Math.random()>.5?Me.push(he.shift()):Me.push(he.pop());it[""]=rt({resources:["https://api.iconify.design"].concat(Me)});function Ho(t,l){const o=rt(l);return o===null?!1:(it[t]=o,!0)}function at(t){return it[t]}const qo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let Bt=qo();function jo(t,l){const o=at(t);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let n=0;o.resources.forEach(c=>{n=Math.max(n,c.length)});const i=l+".json?icons=";r=o.maxURL-n-o.path.length-i.length}return r}function Uo(t){return t===404}const Go=(t,l,o)=>{const r=[],n=jo(t,l),i="icons";let c={type:i,provider:t,prefix:l,icons:[]},a=0;return o.forEach((u,f)=>{a+=u.length+1,a>=n&&f>0&&(r.push(c),c={type:i,provider:t,prefix:l,icons:[]},a=u.length),c.icons.push(u)}),r.push(c),r};function Qo(t){if(typeof t=="string"){const l=at(t);if(l)return l.path}return"/"}const Xo=(t,l,o)=>{if(!Bt){o("abort",424);return}let r=Qo(l.provider);switch(l.type){case"icons":{const i=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});r+=i+".json?"+u.toString();break}case"custom":{const i=l.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let n=503;Bt(t+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{o(Uo(c)?"abort":"next",c)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",n)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",n)})},Yo={prepare:Go,send:Xo};function Ko(t){const l={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;const i=n.provider,c=n.prefix,a=n.name,u=o[i]||(o[i]=Object.create(null)),f=u[c]||(u[c]=ie(i,c));let d;a in f.icons?d=l.loaded:c===""||f.missing.has(a)?d=l.missing:d=l.pending;const h={provider:i,prefix:c,name:a};d.push(h)}),l}function Jt(t,l){t.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(n=>n.id!==l))})}function Jo(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let o=!1;const r=t.provider,n=t.prefix;l.forEach(i=>{const c=i.icons,a=c.pending.length;c.pending=c.pending.filter(u=>{if(u.prefix!==n)return!0;const f=u.name;if(t.icons[f])c.loaded.push({provider:r,prefix:n,name:f});else if(t.missing.has(f))c.missing.push({provider:r,prefix:n,name:f});else return o=!0,!0;return!1}),c.pending.length!==a&&(o||Jt([t],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Zo=0;function el(t,l,o){const r=Zo++,n=Jt.bind(null,o,r);if(!l.pending.length)return n;const i={id:r,icons:l,callback:t,abort:n};return o.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),n}function tl(t,l=!0,o=!1){const r=[];return t.forEach(n=>{const i=typeof n=="string"?Oe(n,l,o):n;i&&r.push(i)}),r}var nl={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ol(t,l,o,r){const n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index;let c;if(t.random){let x=t.resources.slice(0);for(c=[];x.length>1;){const S=Math.floor(Math.random()*x.length);c.push(x[S]),x=x.slice(0,S).concat(x.slice(S+1))}c=c.concat(x)}else c=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let u="pending",f=0,d,h=null,v=[],z=[];typeof r=="function"&&z.push(r);function N(){h&&(clearTimeout(h),h=null)}function V(){u==="pending"&&(u="aborted"),N(),v.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),v=[]}function w(x,S){S&&(z=[]),typeof x=="function"&&z.push(x)}function I(){return{startTime:a,payload:l,status:u,queriesSent:f,queriesPending:v.length,subscribe:w,abort:V}}function $(){u="failed",z.forEach(x=>{x(void 0,d)})}function A(){v.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),v=[]}function _(x,S,O){const W=S!=="success";switch(v=v.filter(j=>j!==x),u){case"pending":break;case"failed":if(W||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){d=O,$();return}if(W){d=O,v.length||(c.length?q():$());return}if(N(),A(),!t.random){const j=t.resources.indexOf(x.resource);j!==-1&&j!==t.index&&(t.index=j)}u="completed",z.forEach(j=>{j(O)})}function q(){if(u!=="pending")return;N();const x=c.shift();if(x===void 0){if(v.length){h=setTimeout(()=>{N(),u==="pending"&&(A(),$())},t.timeout);return}$();return}const S={status:"pending",resource:x,callback:(O,W)=>{_(S,O,W)}};v.push(S),f++,h=setTimeout(q,t.rotate),o(x,l,S.callback)}return setTimeout(q),I}function Zt(t){const l={...nl,...t};let o=[];function r(){o=o.filter(a=>a().status==="pending")}function n(a,u,f){const d=ol(l,a,u,(h,v)=>{r(),f&&f(h,v)});return o.push(d),d}function i(a){return o.find(u=>a(u))||null}return{query:n,find:i,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:r}}function Nt(){}const Qe=Object.create(null);function ll(t){if(!Qe[t]){const l=at(t);if(!l)return;const o=Zt(l),r={config:l,redundancy:o};Qe[t]=r}return Qe[t]}function rl(t,l,o){let r,n;if(typeof t=="string"){const i=Ke(t);if(!i)return o(void 0,424),Nt;n=i.send;const c=ll(t);c&&(r=c.redundancy)}else{const i=rt(t);if(i){r=Zt(i);const c=t.resources?t.resources[0]:"",a=Ke(c);a&&(n=a.send)}}return!r||!n?(o(void 0,424),Nt):r.query(l,n,o)().abort}const Mt="iconify2",ge="iconify",en=ge+"-count",Lt=ge+"-version",tn=36e5,il=168,al=50;function Je(t,l){try{return t.getItem(l)}catch{}}function st(t,l,o){try{return t.setItem(l,o),!0}catch{}}function Ft(t,l){try{t.removeItem(l)}catch{}}function Ze(t,l){return st(t,en,l.toString())}function et(t){return parseInt(Je(t,en))||0}const De={local:!0,session:!0},nn={local:new Set,session:new Set};let ct=!1;function sl(t){ct=t}let ze=typeof window>"u"?{}:window;function on(t){const l=t+"Storage";try{if(ze&&ze[l]&&typeof ze[l].length=="number")return ze[l]}catch{}De[t]=!1}function ln(t,l){const o=on(t);if(!o)return;const r=Je(o,Lt);if(r!==Mt){if(r){const a=et(o);for(let u=0;u<a;u++)Ft(o,ge+u.toString())}st(o,Lt,Mt),Ze(o,0);return}const n=Math.floor(Date.now()/tn)-il,i=a=>{const u=ge+a.toString(),f=Je(o,u);if(typeof f=="string"){try{const d=JSON.parse(f);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>n&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&l(d,a))return!0}catch{}Ft(o,u)}};let c=et(o);for(let a=c-1;a>=0;a--)i(a)||(a===c-1?(c--,Ze(o,c)):nn[t].add(a))}function rn(){if(!ct){sl(!0);for(const t in De)ln(t,l=>{const o=l.data,r=l.provider,n=o.prefix,i=ie(r,n);if(!lt(i,o).length)return!1;const c=o.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function cl(t,l){const o=t.lastModifiedCached;if(o&&o>=l)return o===l;if(t.lastModifiedCached=l,o)for(const r in De)ln(r,n=>{const i=n.data;return n.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===l});return!0}function ul(t,l){ct||rn();function o(r){let n;if(!De[r]||!(n=on(r)))return;const i=nn[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=et(n),c>=al||!Ze(n,c+1))return;const a={cached:Math.floor(Date.now()/tn),provider:t.provider,data:l};return st(n,ge+c.toString(),JSON.stringify(a))}l.lastModified&&!cl(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),o("local")||o("session"))}function Tt(){}function dl(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Jo(t)}))}function fl(t,l){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(l).sort():t.iconsToLoad=l,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:r}=t,n=t.iconsToLoad;delete t.iconsToLoad;let i;if(!n||!(i=Ke(o)))return;i.prepare(o,r,n).forEach(a=>{rl(o,a,u=>{if(typeof u!="object")a.icons.forEach(f=>{t.missing.add(f)});else try{const f=lt(t,u);if(!f.length)return;const d=t.pendingIcons;d&&f.forEach(h=>{d.delete(h)}),ul(t,u)}catch(f){console.error(f)}dl(t)})})}))}const hl=(t,l)=>{const o=tl(t,!0,Xt()),r=Ko(o);if(!r.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(r.loaded,r.missing,r.pending,Tt)}),()=>{u=!1}}const n=Object.create(null),i=[];let c,a;return r.pending.forEach(u=>{const{provider:f,prefix:d}=u;if(d===a&&f===c)return;c=f,a=d,i.push(ie(f,d));const h=n[f]||(n[f]=Object.create(null));h[d]||(h[d]=[])}),r.pending.forEach(u=>{const{provider:f,prefix:d,name:h}=u,v=ie(f,d),z=v.pendingIcons||(v.pendingIcons=new Set);z.has(h)||(z.add(h),n[f][d].push(h))}),i.forEach(u=>{const{provider:f,prefix:d}=u;n[f][d].length&&fl(u,n[f][d])}),l?el(l,r,i):Tt};function ml(t,l){const o={...t};for(const r in l){const n=l[r],i=typeof n;r in Yt?(n===null||n&&(i==="string"||i==="number"))&&(o[r]=n):i===typeof o[r]&&(o[r]=r==="rotate"?n%4:n)}return o}const pl=/[\s,]+/;function vl(t,l){l.split(pl).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function gl(t,l=0){const o=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(t);return isNaN(n)?0:r(n)}else if(o!==t){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-o.length));return isNaN(i)?0:(i=i/n,i%1===0?r(i):0)}}return l}function bl(t,l){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in l)o+=" "+r+'="'+l[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function yl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kl(t){return"data:image/svg+xml,"+yl(t)}function wl(t){return'url("'+kl(t)+'")'}const Vt={...Kt,inline:!1},Cl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xl={display:"inline-block"},tt={backgroundColor:"currentColor"},an={backgroundColor:"transparent"},_t={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pt={webkitMask:tt,mask:tt,background:an};for(const t in Pt){const l=Pt[t];for(const o in _t)l[t+o]=_t[o]}const Le={};["horizontal","vertical"].forEach(t=>{const l=t.slice(0,1)+"Flip";Le[t+"-flip"]=l,Le[t.slice(0,1)+"-flip"]=l,Le[t+"Flip"]=l});function It(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Ot=(t,l)=>{const o=ml(Vt,l),r={...Cl},n=l.mode||"svg",i={},c=l.style,a=typeof c=="object"&&!(c instanceof Array)?c:{};for(let V in l){const w=l[V];if(w!==void 0)switch(V){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[V]=w===!0||w==="true"||w===1;break;case"flip":typeof w=="string"&&vl(o,w);break;case"color":i.color=w;break;case"rotate":typeof w=="string"?o[V]=gl(w):typeof w=="number"&&(o[V]=w);break;case"ariaHidden":case"aria-hidden":w!==!0&&w!=="true"&&delete r["aria-hidden"];break;default:{const I=Le[V];I?(w===!0||w==="true"||w===1)&&(o[I]=!0):Vt[V]===void 0&&(r[V]=w)}}}const u=Oo(t,o),f=u.attributes;if(o.inline&&(i.verticalAlign="-0.125em"),n==="svg"){r.style={...i,...a},Object.assign(r,f);let V=0,w=l.id;return typeof w=="string"&&(w=w.replace(/-/g,"_")),r.innerHTML=Ao(u.body,w?()=>w+"ID"+V++:"iconifyVue"),e.h("svg",r)}const{body:d,width:h,height:v}=t,z=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),N=bl(d,{...f,width:h+"",height:v+""});return r.style={...i,"--svg":wl(N),width:It(f.width),height:It(f.height),...xl,...z?tt:an,...a},e.h("span",r)};Xt(!0);Wo("",Yo);if(typeof document<"u"&&typeof window<"u"){rn();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Lo(r))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let o in l){const r="IconifyProviders["+o+"] is invalid.";try{const n=l[o];if(typeof n!="object"||!n||n.resources===void 0)continue;Ho(o,n)||console.error(r)}catch{console.error(r)}}}}const Sl={...$e,body:""},oe=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,l){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Oe(t,!1,!0))===null)return this.abortLoading(),null;const r=No(o);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:hl([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const n=["iconify"];return o.prefix!==""&&n.push("iconify--"+o.prefix),o.provider!==""&&n.push("iconify--"+o.provider),{data:r,classes:n}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Ot(Sl,t);let o=t;return l.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Ot({...$e,...l.data},o)}}),El={name:"buttonExpand"},zl=e.defineComponent({...El,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,o=e.toRef(l,"expandedrows"),r=e.ref(!1);function n(a){if(l.expandall)r.value=!r.value,o.value.forEach(u=>{u.isExpanded=r.value});else{const u=o.value.find(f=>f.id==a);u?u.isExpanded=!u.isExpanded:o.value.push({id:a,isExpanded:!0})}}const i=a=>a._rowIndex!==void 0?a._rowIndex:a.id||0,c=e.ref(-1);return e.watch(()=>o.value,()=>{var a;l.expandall&&(new Set(o.value.map(u=>u.isExpanded)).size>1?(c.value=-1,r.value=!0):(a=o.value.at(0))!=null&&a.isExpanded?(c.value=0,r.value=!0):(c.value=1,r.value=!1))},{deep:!0}),(a,u)=>{var f;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:u[0]||(u[0]=d=>n(i(a.item)))},[((f=o.value.find(d=>d.id==i(a.item)))==null?void 0:f.isExpanded)===!0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.value?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.value==-1?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,icon:"ion:chevron-expand"})):c.value==0?(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(oe),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),be=(t,l)=>{const o=t.__vccOpts||t;for(const[r,n]of l)o[r]=n;return o},nt=be(zl,[["__scopeId","data-v-66476098"]]),Bl={name:"ButtonRightPanel"},Nl=e.defineComponent({...Bl,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const o=t,r=l;function n(){r("rightPanelClick",o.item)}return(i,c)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(n,["stop"])},[e.createVNode(e.unref(oe),{icon:"lucide:plus"})]))}}),$t=be(Nl,[["__scopeId","data-v-b373d5f7"]]),Ml={class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden"},Ll={name:"columnFilter"},Fl=e.defineComponent({...Ll,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(null);Fn(n,()=>{r("close")});const i=c=>{o.column.condition=c,c===""&&(o.column.value=""),r("filterChange",o.column),r("close")};return(c,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"menuRef",ref:n,class:"bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"},[e.createElementVNode("div",Ml,[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition===""}),onClick:a[0]||(a[0]=e.withModifiers(u=>i(""),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NoFilter)??"No filter"),3),o.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Contains"}),onClick:a[1]||(a[1]=e.withModifiers(u=>i("Contains"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotContains"}),onClick:a[2]||(a[2]=e.withModifiers(u=>i("NotContains"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[3]||(a[3]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=e.withModifiers(u=>i("StartsWith"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=e.withModifiers(u=>i("EndsWith"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):o.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[7]||(a[7]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=e.withModifiers(u=>i("GreaterThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan (>)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=e.withModifiers(u=>i("GreaterThanOrEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual (>=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[11]||(a[11]=e.withModifiers(u=>i("LessThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan (<)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=e.withModifiers(u=>i("LessThanOrEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual (<=)"),3)],64)):o.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[13]||(a[13]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"Not equal (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=e.withModifiers(u=>i("GreaterThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan (>)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[16]||(a[16]=e.withModifiers(u=>i("LessThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan (<)"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNull"}),onClick:a[17]||(a[17]=e.withModifiers(u=>i("IsNull"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=e.withModifiers(u=>i("IsNotNull"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNotNull)??"IsNotNull"),3)])],512))}}),Tl={},Vl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},_l=e.createElementVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(-9 -11)",fill:"currentColor","fill-rule":"nonzero"},[e.createElementVNode("path",{d:"m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z"})])],-1),Pl=[_l];function Il(t,l){return e.openBlock(),e.createElementBlock("svg",Vl,Pl)}const ot=be(Tl,[["render",Il]]),Ol={},$l={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},Dl=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Rl=[Dl];function Al(t,l){return e.openBlock(),e.createElementBlock("svg",$l,Rl)}const Wl=be(Ol,[["render",Al]]),Hl={},ql={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},jl=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Ul=[jl];function Gl(t,l){return e.openBlock(),e.createElementBlock("svg",ql,Ul)}const Ql=be(Hl,[["render",Gl]]),Xl={key:"hdrrow"},Yl={class:"bh-checkbox"},Kl=["onClick"],Jl={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},Zl={key:0,class:"bh-filter bh-relative"},er=["onUpdate:modelValue"],tr=["onUpdate:modelValue"],nr=["onUpdate:modelValue"],or=["onUpdate:modelValue"],lr=e.createElementVNode("option",{value:void 0},"All",-1),rr=e.createElementVNode("option",{value:!0},"True",-1),ir=e.createElementVNode("option",{value:!1},"False",-1),ar=[lr,rr,ir],sr=["onClick"],cr={name:"columnHeader"},Be=e.defineComponent({...cr,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const o=e.ref(null),r=t,n=l,i=e.ref({});e.onMounted(()=>{var u;(u=r.all)!=null&&u.columns&&r.all.columns.forEach(f=>{f.filter&&f.field&&(i.value[f.field]=f.value||"")})}),Ln(i,u=>{var f;(f=r.all)!=null&&f.columns&&(Object.keys(u).forEach(d=>{const h=r.all.columns.find(v=>v.field===d);h&&(h.type==="string"||h.type==="String"?h.value=typeof u[d]=="string"?u[d].trim():u[d]:h.value=u[d])}),n("filterChange"))},{debounce:300,deep:!0});const c=()=>{o.value&&(o.value.indeterminate=r.checkAll!==0?!r.checkAll:!1,o.value.checked=r.checkAll)};e.watch(()=>r.checkAll,c);const a=u=>u.value!==""&&u.value!==null&&u.value!==void 0;return(u,f)=>(e.openBlock(),e.createElementBlock("tr",Xl,[r.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",style:e.normalizeStyle({width:r.all.checkboxColumnWidth+" !important",minWidth:r.all.checkboxColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn})},[e.createElementVNode("div",Yl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:o,type:"checkbox",onClick:f[0]||(f[0]=e.withModifiers(d=>{var h;return n("selectAll",(h=d==null?void 0:d.target)==null?void 0:h.checked)},["stop"]))},null,512),e.createElementVNode("div",null,[e.createVNode(ot,{class:"check"}),e.createVNode(Wl,{class:"intermediate"})])])],6)):e.createCommentVNode("",!0),r.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,style:e.normalizeStyle({width:r.all.rightPanelColumnWidth+" !important",minWidth:r.all.rightPanelColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn})},null,6)):e.createCommentVNode("",!0),r.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",{key:2,style:e.normalizeStyle({width:r.all.subtableColumnWidth+" !important",minWidth:r.all.subtableColumnWidth+" !important"})},[r.all.expandall?(e.openBlock(),e.createBlock(nt,{key:0,expandedrows:r.expandedrows,expandall:r.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.all.columns,(d,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("th",{key:d.field,class:e.normalizeClass(["bh-select-none bh-z-[1]",[r.all.sortable&&d.sort?"bh-cursor-pointer":"",h===0&&r.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",r.all.hasCheckbox&&h===0&&r.all.stickyFirstColumn?"bh-left-[52px]":""]]),style:e.normalizeStyle({width:d.width,"min-width":d.minWidth,"max-width":d.maxWidth})},[e.createElementVNode("div",{class:e.normalizeClass(["bh-flex bh-items-center",[d.headerClass?d.headerClass:""]]),onClick:v=>r.all.sortable&&d.sort&&n("sortChange",d.field)},[e.createTextVNode(e.toDisplayString(d.title)+" ",1),r.all.sortable&&d.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[r.currentSortColumn,r.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",Jl,[e.createElementVNode("polygon",{points:"3.11,6.25 10.89,6.25 7,1.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===d.field&&t.currentSortDirection==="asc"?"!bh-text-primary":""]])},null,2),e.createElementVNode("polygon",{points:"7,12.25 10.89,7.75 3.11,7.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===d.field&&t.currentSortDirection==="desc"?"!bh-text-primary":""]])},null,2)]))],2)):e.createCommentVNode("",!0)],10,Kl),r.all.columnFilter&&!r.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.filter?(e.openBlock(),e.createElementBlock("div",Zl,[d.type==="string"||d.type==="String"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"text",class:"bh-form-control"},null,8,er)),[[e.vModelText,i.value[d.field]]]):e.createCommentVNode("",!0),d.type==="number"||d.type==="integer"||d.type==="Integer"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"number",class:"bh-form-control"},null,8,tr)),[[e.vModelText,i.value[d.field],void 0,{number:!0}]]):d.type==="date"||d.type==="DateTime"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"date",class:"bh-form-control"},null,8,nr)),[[e.vModelText,i.value[d.field]]]):d.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":v=>i.value[d.field]=v,class:"bh-form-control",onClick:f[1]||(f[1]=(...v)=>r.isOpenFilter&&r.isOpenFilter(...v))},ar,8,or)),[[e.vModelSelect,i.value[d.field]]]):e.createCommentVNode("",!0),d.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(v=>n("toggleFilterMenu",d),["stop"]),class:e.normalizeClass({"!bh-bg-primary/10 !bh-border-primary":a(d),"bh-bg-[#e0e6ed] dark:bh-bg-gray-700":!a(d)})},[e.createVNode(Ql,{class:e.normalizeClass(["bh-w-4",{"bh-text-primary":a(d),"bh-text-black/70 dark:bh-text-gray-300":!a(d)}])},null,8,["class"])],10,sr)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(Fl,{column:d,type:d.type,columnFilterLang:r.columnFilterLang,onClose:f[2]||(f[2]=v=>n("toggleFilterMenu",null)),onFilterChange:f[3]||(f[3]=v=>n("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,r.isOpenFilter===d.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),ur={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},dr={class:"bh-flex bh-h-full"},fr=e.createElementVNode("span",null,"##Left Menu Slot##",-1),hr={class:"menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none"},mr=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),pr=[mr],vr={class:"bh-flex-1",style:{overflow:"auto","min-width":"0",width:"100%"}},gr=e.createElementVNode("span",null,"##Top Menu Slot##",-1),br=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),yr=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),kr=["onClick"],wr={class:"bh-checkbox"},Cr=["value"],xr=["innerHTML"],Sr=["onClick"],Er=["colspan"],zr=["colspan"],Br=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),Nr=[Br],Mr=["colspan"],Lr=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),Fr=["onClick"],Tr={class:"bh-checkbox"},Vr=["value"],_r=["innerHTML"],Pr=["onClick"],Ir=["colspan"],Or=["colspan"],$r=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),Dr=[$r],Rr=["colspan"],Ar={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},Wr={class:"bh-pagination-info bh-flex bh-items-center"},Hr={class:"bh-mr-2"},qr=["value"],jr={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},Ur=["innerHTML"],Gr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Qr=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}),e.createElementVNode("path",{d:"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"})],-1),Xr=[Qr],Yr=["innerHTML"],Kr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Jr=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},null,-1),Zr=[Jr],ei=["onClick"],ti=["innerHTML"],ni={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},oi=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"},null,-1),li=[oi],ri=["innerHTML"],ii={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},ai=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z"}),e.createElementVNode("path",{d:"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z"})],-1),si=[ai],ci={name:"Vue3Datatable"},ui=e.defineComponent({...ci,props:{loading:{type:Boolean,default:!1},isServerMode:{type:Boolean,default:!1},skin:{default:"bh-table-striped bh-table-hover"},totalRows:{default:0},rows:{default:()=>[]},footerRows:{default:()=>[]},columns:{default:()=>[]},hasCheckbox:{type:Boolean,default:!1},hasSubtable:{type:Boolean,default:!1},hasRightPanel:{type:Boolean,default:!1},checkboxColumnWidth:{default:"40px"},rightPanelColumnWidth:{default:"40px"},subtableColumnWidth:{default:"40px"},subtableMaxHeight:{default:"400px"},subtableLazyLoading:{type:Boolean,default:!1},expandall:{type:Boolean,default:!1},search:{default:""},columnChooser:{type:Boolean,default:!1},page:{default:1},pageSize:{default:10},pageSizeOptions:{default:()=>[10,20,30,50,100]},showPageSize:{type:Boolean,default:!0},rowClass:{default:[]},cellClass:{default:[]},sortable:{type:Boolean,default:!1},sortColumn:{default:"id"},sortDirection:{default:"asc"},columnFilter:{type:Boolean,default:!1},columnFilterLang:{default:null},pagination:{type:Boolean,default:!0},showNumbers:{type:Boolean,default:!0},showNumbersCount:{default:5},showFirstPage:{type:Boolean,default:!0},showLastPage:{type:Boolean,default:!0},firstArrow:{default:""},lastArrow:{default:""},nextArrow:{default:""},previousArrow:{default:""},paginationInfo:{default:"Showing {0} to {1} of {2} entries"},noDataContent:{default:"There is no data that match your query."},stickyHeader:{type:Boolean,default:!1},stickyFooter:{type:Boolean,default:!1},height:{default:"500px"},stickyFirstColumn:{type:Boolean,default:!1},cloneHeaderInFooter:{type:Boolean,default:!1},selectRowOnClick:{type:Boolean,default:!1},scrollbarstyle:{},scrollbarautohide:{type:Boolean,default:!0},scrollbarfixedthumb:{type:Boolean,default:!1},scrollbarautoexpand:{type:Boolean,default:!1},scrollbardirection:{default:"both"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},enableHeaderArea:{type:Boolean,default:!1},headerAreaHeight:{default:"80px"},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0},tableLeftOffset:{default:5},initialLeftMenuState:{type:Boolean,default:void 0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:o}){var ft,ht;const r=e.useSlots(),n=t;for(const s of n.columns||[]){const g=((ft=s.type)==null?void 0:ft.toLowerCase())||"string";s.type=g,s.isUnique=s.isUnique!==void 0?s.isUnique:!1,s.hide=s.hide!==void 0?s.hide:!1,s.filter=s.filter!==void 0?s.filter:!0,s.search=s.search!==void 0?s.search:!0,s.sort=s.sort!==void 0?s.sort:!0,s.html=s.html!==void 0?s.html:!1,s.condition=!g||g==="string"?"Contains":"Equal"}const i=e.ref([]),c=e.ref(n.page),a=e.ref(n.pagination?n.pageSize:(ht=n.rows)==null?void 0:ht.length),u=n.pageSize,f=e.ref(n.sortColumn),d=n.sortColumn,h=e.ref(n.sortDirection),v=n.sortDirection,z=e.ref(n.totalRows),N=e.ref([]),V=e.ref(null),w=e.ref(n.loading),I=e.ref(n.search);JSON.parse(JSON.stringify(n.columns));const $=e.ref(null),A=e.ref(null);let _=e.ref(0);const q=e.ref(230),x=e.ref(n.leftmenuDefaultWidth),S=e.ref(!1),O=e.ref(null),W=()=>{if(O.value){const s=S.value?n.leftmenuMinWidth:n.leftmenuDefaultWidth;O.value.style.cssText=`
1
+ "use strict";const e=require("vue");function Dt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Fe(t){return typeof t=="function"?t():e.unref(t)}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kn=Object.prototype.toString,wn=t=>kn.call(t)==="[object Object]",ue=()=>{},Cn=xn();function xn(){var t,l;return Rt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((l=window==null?void 0:window.navigator)==null?void 0:l.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Sn(t,l){function o(...r){return new Promise((n,i)=>{Promise.resolve(t(()=>l.apply(this,r),{fn:l,thisArg:this,args:r})).then(n).catch(i)})}return o}const En=t=>t();function zn(t,l={}){let o,r,n=ue;const i=a=>{clearTimeout(a),n(),n=ue};return a=>{const u=Fe(t),f=Fe(l.maxWait);return o&&i(o),u<=0||f!==void 0&&f<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{n=l.rejectOnCancel?h:d,f&&!r&&(r=setTimeout(()=>{o&&i(o),r=null,d(a())},f)),o=setTimeout(()=>{r&&i(r),r=null,d(a())},u)})}}function Bn(t){return e.getCurrentInstance()}function Nn(t,l,o={}){const{eventFilter:r=En,...n}=o;return e.watch(t,Sn(r,l),n)}function Mn(t,l=!0,o){Bn()?e.onMounted(t,o):l?t():e.nextTick(t)}function Ln(t,l,o={}){const{debounce:r=0,maxWait:n=void 0,...i}=o;return Nn(t,l,{...i,eventFilter:zn(r,{maxWait:n})})}function Z(t){var l;const o=Fe(t);return(l=o==null?void 0:o.$el)!=null?l:o}const Ie=Rt?window:void 0;function qe(...t){let l,o,r,n;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,n]=t,l=Ie):[l,o,r,n]=t,!l)return ue;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const i=[],c=()=>{i.forEach(d=>d()),i.length=0},a=(d,h,v,z)=>(d.addEventListener(h,v,z),()=>d.removeEventListener(h,v,z)),u=e.watch(()=>[Z(l),Fe(n)],([d,h])=>{if(c(),!d)return;const v=wn(h)?{...h}:h;i.push(...o.flatMap(z=>r.map(N=>a(d,z,N,v))))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return Dt(f),f}let vt=!1;function Fn(t,l,o={}){const{window:r=Ie,ignore:n=[],capture:i=!0,detectIframe:c=!1}=o;if(!r)return ue;Cn&&!vt&&(vt=!0,Array.from(r.document.body.children).forEach(v=>v.addEventListener("click",ue)),r.document.documentElement.addEventListener("click",ue));let a=!0;const u=v=>n.some(z=>{if(typeof z=="string")return Array.from(r.document.querySelectorAll(z)).some(N=>N===v.target||v.composedPath().includes(N));{const N=Z(z);return N&&(v.target===N||v.composedPath().includes(N))}}),d=[qe(r,"click",v=>{const z=Z(t);if(!(!z||z===v.target||v.composedPath().includes(z))){if(v.detail===0&&(a=!u(v)),!a){a=!0;return}l(v)}},{passive:!0,capture:i}),qe(r,"pointerdown",v=>{const z=Z(t);a=!u(v)&&!!(z&&!v.composedPath().includes(z))},{passive:!0}),c&&qe(r,"blur",v=>{setTimeout(()=>{var z;const N=Z(t);((z=r.document.activeElement)==null?void 0:z.tagName)==="IFRAME"&&!(N!=null&&N.contains(r.document.activeElement))&&l(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function Tn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function Vn(t){const l=Tn();return e.computed(()=>(l.value,!!t()))}function _n(t,l,o={}){const{window:r=Ie,...n}=o;let i;const c=Vn(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(h=>Z(h)):[Z(t)]),f=e.watch(u,h=>{if(a(),c.value&&r){i=new ResizeObserver(l);for(const v of h)v&&i.observe(v,n)}},{immediate:!0,flush:"post"}),d=()=>{a(),f()};return Dt(d),{isSupported:c,stop:d}}function Pn(t,l={width:0,height:0},o={}){const{window:r=Ie,box:n="content-box"}=o,i=e.computed(()=>{var h,v;return(v=(h=Z(t))==null?void 0:h.namespaceURI)==null?void 0:v.includes("svg")}),c=e.ref(l.width),a=e.ref(l.height),{stop:u}=_n(t,([h])=>{const v=n==="border-box"?h.borderBoxSize:n==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(r&&i.value){const z=Z(t);if(z){const N=z.getBoundingClientRect();c.value=N.width,a.value=N.height}}else if(v){const z=Array.isArray(v)?v:[v];c.value=z.reduce((N,{inlineSize:V})=>N+V,0),a.value=z.reduce((N,{blockSize:V})=>N+V,0)}else c.value=h.contentRect.width,a.value=h.contentRect.height},o);Mn(()=>{const h=Z(t);h&&(c.value="offsetWidth"in h?h.offsetWidth:l.width,a.value="offsetHeight"in h?h.offsetHeight:l.height)});const f=e.watch(()=>Z(t),h=>{c.value=h?l.width:0,a.value=h?l.height:0});function d(){u(),f()}return{width:c,height:a,stop:d}}var In=typeof global=="object"&&global&&global.Object===Object&&global,On=typeof self=="object"&&self&&self.Object===Object&&self,At=In||On||Function("return this")(),Te=At.Symbol,Wt=Object.prototype,$n=Wt.hasOwnProperty,Dn=Wt.toString,fe=Te?Te.toStringTag:void 0;function Rn(t){var l=$n.call(t,fe),o=t[fe];try{t[fe]=void 0;var r=!0}catch{}var n=Dn.call(t);return r&&(l?t[fe]=o:delete t[fe]),n}var An=Object.prototype,Wn=An.toString;function Hn(t){return Wn.call(t)}var qn="[object Null]",jn="[object Undefined]",gt=Te?Te.toStringTag:void 0;function Un(t){return t==null?t===void 0?jn:qn:gt&&gt in Object(t)?Rn(t):Hn(t)}function Gn(t){return t!=null&&typeof t=="object"}var Qn="[object Symbol]";function Xn(t){return typeof t=="symbol"||Gn(t)&&Un(t)==Qn}var Yn=/\s/;function Kn(t){for(var l=t.length;l--&&Yn.test(t.charAt(l)););return l}var Jn=/^\s+/;function Zn(t){return t&&t.slice(0,Kn(t)+1).replace(Jn,"")}function Ve(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var bt=NaN,eo=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,no=/^0o[0-7]+$/i,oo=parseInt;function me(t){if(typeof t=="number")return t;if(Xn(t))return bt;if(Ve(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Ve(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=Zn(t);var o=to.test(t);return o||no.test(t)?oo(t.slice(2),o?2:8):eo.test(t)?bt:+t}function lo(t,l,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),l!==void 0&&(t=t>=l?t:l)),t}function Ee(t,l,o){return o===void 0&&(o=l,l=void 0),o!==void 0&&(o=me(o),o=o===o?o:0),l!==void 0&&(l=me(l),l=l===l?l:0),lo(me(t),l,o)}var je=function(){return At.Date.now()},ro="Expected a function",io=Math.max,ao=Math.min;function Ht(t,l,o){var r,n,i,c,a,u,f=0,d=!1,h=!1,v=!0;if(typeof t!="function")throw new TypeError(ro);l=me(l)||0,Ve(o)&&(d=!!o.leading,h="maxWait"in o,i=h?io(me(o.maxWait)||0,l):i,v="trailing"in o?!!o.trailing:v);function z(x){var S=r,O=n;return r=n=void 0,f=x,c=t.apply(O,S),c}function N(x){return f=x,a=setTimeout(I,l),d?z(x):c}function V(x){var S=x-u,O=x-f,W=l-S;return h?ao(W,i-O):W}function w(x){var S=x-u,O=x-f;return u===void 0||S>=l||S<0||h&&O>=i}function I(){var x=je();if(w(x))return $(x);a=setTimeout(I,V(x))}function $(x){return a=void 0,v&&r?z(x):(r=n=void 0,c)}function A(){a!==void 0&&clearTimeout(a),f=0,r=u=n=a=void 0}function _(){return a===void 0?c:$(je())}function q(){var x=je(),S=w(x);if(r=arguments,n=this,u=x,S){if(a===void 0)return N(u);if(h)return clearTimeout(a),a=setTimeout(I,l),z(u)}return a===void 0&&(a=setTimeout(I,l)),c}return q.cancel=A,q.flush=_,q}var so="Expected a function";function qt(t,l,o){var r=!0,n=!0;if(typeof t!="function")throw new TypeError(so);return Ve(o)&&(r="leading"in o?!!o.leading:r,n="trailing"in o?!!o.trailing:n),Ht(t,l,{leading:r,maxWait:l,trailing:n})}var co=Object.defineProperty,uo=Object.defineProperties,fo=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,kt=(t,l,o)=>l in t?co(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,_e=(t,l)=>{for(var o in l||(l={}))ho.call(l,o)&&kt(t,o,l[o]);if(yt)for(var o of yt(l))mo.call(l,o)&&kt(t,o,l[o]);return t},jt=(t,l)=>uo(t,fo(l));const po=["onPointerdown"],vo={name:"ScrollbarThumb"};function go(t,{expose:l}){const o=t;e.useCssVars(S=>({"1fb98f78":e.unref(r)}));const r=e.computed(()=>{var S;return`${(S=o.thumbWidth)!=null?S:12}px`});let n=null,i=e.shallowRef(null);const c={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{n=setTimeout(()=>{i.value&&i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),n=null},o.autoHideDelay)},f=()=>{n!==null&&clearTimeout(n)};e.onUnmounted(f);const d=qt(S=>{S.stopPropagation(),S.preventDefault();const O=o.type==="horizontal"?"pageX":"pageY",W=(S[O]-c[O])/o.scrollInfo.wrapperMainSize*o.scrollInfo.contentMainSize;o.wrapperEl.scrollTo({[o.type==="horizontal"?"left":"top"]:c.scrollPos+W,behavior:"auto"})},16),h=()=>{u(),i.value.removeEventListener("pointermove",d),i.value.removeEventListener("pointerup",h),i.value.removeEventListener("pointercancel",h),i.value.removeEventListener("mousewheel",h),document.removeEventListener("mousewheel",h),typeof a=="number"&&i.value.releasePointerCapture(a),a=null},v=S=>{S.ctrlKey||S.button!==0||(f(),c.pageX=S.pageX,c.pageY=S.pageY,c.scrollPos=o.wrapperEl[o.type==="horizontal"?"scrollLeft":"scrollTop"],a=S==null?void 0:S.pointerId,i.value.setPointerCapture(a),i.value.addEventListener("pointermove",d),i.value.addEventListener("pointerup",h),i.value.addEventListener("pointercancel",h),i.value.addEventListener("mousewheel",h,{passive:!1}),document.addEventListener("mousewheel",h,{passive:!1}),i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{f(),i.value&&i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let N=e.shallowRef(!1),V=e.shallowRef(!1),w=e.shallowRef(null),I=null,$=null,A=e.computed(()=>o.fixedThumb&&!V.value);const _=([S])=>V.value=S.isIntersecting,q=([S])=>N.value=S.isIntersecting,x=()=>{I&&(I.disconnect(),I=null),$&&($.disconnect(),$=null)};return e.watch(()=>[o.fixedThumb,o.wrapperEl],()=>{if(!o.fixedThumb||!o.wrapperEl)return x();x(),$=new IntersectionObserver(q,{threshold:[0,.5]}),$.observe(o.wrapperEl),I=new IntersectionObserver(_),I.observe(w.value)}),e.onUnmounted(x),(S,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumbPlaceholder",`scrollbar__thumbPlaceholder--${t.type}`,{"scrollbar__thumbPlaceholder--autoHide":t.autoHide,"scrollbar__thumbPlaceholder--autoExpand":t.autoExpand}]),style:e.normalizeStyle({width:t.type==="horizontal"?`${t.scrollInfo.thumbSize}px`:"",height:t.type==="vertical"?`${t.scrollInfo.thumbSize}px`:"",position:A.value?"fixed":"absolute",[t.type==="vertical"?"top":"left"]:A.value?`${t.scrollInfo.boundaryDistance+3}px`:"3px"}),ref:(W,j)=>{j.thumbEl=W,i.value=W},onPointerdown:e.withModifiers(v,["stop"])},[O[0]||(e.setBlockTracking(-1),O[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),O[0])],46,po),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?N.value:!0)]]),o.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(W,j)=>{j.shepherdEl=W,w.value=W},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const bo=e.defineComponent(jt(_e({},vo),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:go})),yo={wait:333,type:"debounce"};function wt(...t){const l="value"in(t==null?void 0:t[0]);let o;l?o=t==null?void 0:t[1]:o=t==null?void 0:t[0];const{wait:r,type:n,callback:i}=_e(_e({},yo),o),c=l?t[0]:e.shallowRef(null),a=e.reactive({left:0,top:0,right:0,bottom:0,width:0,height:0,x:0,y:0}),u=()=>{const v=c.value.getBoundingClientRect();a.left=v.left,a.top=v.top,a.right=v.right,a.bottom=v.bottom,a.width=v.width,a.height=v.height,a.x=v.x,a.y=v.y,i==null||i()};let f=null,d=null;const h=()=>{f&&window.removeEventListener("resize",f),d&&(d.disconnect(),d=null)};return e.watchEffect(()=>{c.value&&(h(),f=u,n==="throttle"&&r>=4?f=qt(f,r):n==="debounce"&&r>=4&&(f=Ht(f,r)),window.addEventListener("resize",f),d=new ResizeObserver(f),d.observe(c.value))}),e.onUnmounted(h),l?a:[c,a]}const ko={name:"CustomScrollbar",inheritAttrs:!1};function wo(t,{expose:l,emit:o}){const r=t,n={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},i=(_,q)=>{n[q].instance||(n[q].instance=_)};let c=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var _;const q=Array.from((_=c.value.parentElement)==null?void 0:_.childNodes);for(const x in n)n[x].el=q.find(S=>{var O;return(O=S==null?void 0:S.classList)==null?void 0:O.contains(`scrollbar__thumbPlaceholder--${x}`)})});const u=wt(c,{wait:r.throttleWait,type:r.throttleType,callback:v}),f=wt(a,{wait:r.throttleWait,type:r.throttleType,callback:v});let d=e.shallowRef(0),h=e.shallowRef(0);function v(){d.value=Math.max(c.value.scrollHeight-u.height|0,0),h.value=Math.max(c.value.scrollWidth-u.width|0,0)}let z=e.computed(()=>({thumbSize:h.value?Ee(u.width/c.value.scrollWidth*u.width,r.thumbMinSize>u.width?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:f.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),N=e.computed(()=>({thumbSize:d.value?Ee(u.height/c.value.scrollHeight*u.height,r.thumbMinSize>u.height?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:f.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),V=e.computed(()=>u.height-N.value.thumbSize-5),w=e.computed(()=>u.width-z.value.thumbSize-5);const I=()=>{h.value&&(n.horizontal.el.style.transform=`translate3d(${c.value.scrollLeft/h.value*w.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),d.value&&(n.vertical.el.style.transform=`translate3d(0, ${c.value.scrollTop/d.value*V.value}px, 0)`,n.vertical.instance.autoHideAfterScroll())};e.watch(()=>[h.value,d.value],I);const $=_=>{_.stopPropagation();const q=c.value.scrollLeft,x=c.value.scrollTop,S=Ee(q+((_==null?void 0:_.deltaX)||0),0,h.value)|0,O=Ee(x+((_==null?void 0:_.deltaY)||0),0,d.value)|0;c.value.scrollLeft=S,c.value.scrollTop=O,h.value&&(n.horizontal.el.style.transform=`translate3d(${S/h.value*w.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),d.value&&(n.vertical.el.style.transform=`translate3d(0, ${O/d.value*V.value}px, 0)`,n.vertical.instance.autoHideAfterScroll()),o("scroll",{target:c.value,scrollLeft:S,scrollTop:O})},A=_=>{r.simulateScroll?$(_):I()};return e.watch(u,()=>o("wrapperResize",u)),e.watch(f,()=>o("contentResize",f)),l({scrollEl:c}),(_,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(x,S)=>{S.wrapperEl=x,c.value=x},class:"scrollbar__scroller"},_.$attrs,{onWheel:A,onScroll:A}),[e.createElementVNode("div",{ref:(x,S)=>{S.contentEl=x,a.value=x},class:e.normalizeClass(["scrollbar__content",t.contentClass,{"scrollbar__content--fixedThumb":t.fixedThumb,[`scrollbar__content--${t.direction}`]:t.direction}]),style:e.normalizeStyle(t.contentStyle)},[e.renderSlot(_.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,(x,S)=>e.createVNode(bo,{ref:O=>i(O,S),key:S,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:S===t.direction?!1:t.fixedThumb,type:S,scrollInfo:S==="vertical"?N.value:z.value,thumbWidth:t.thumbWidth,wrapperEl:c.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const Ct=e.defineComponent(jt(_e({},ko),{props:{wrapperClass:null,wrapperStyle:null,contentClass:null,contentStyle:null,direction:{default:"vertical"},thumbMinSize:{default:48},thumbMaxSize:{default:1/0},thumbWidth:{default:12},autoHide:{default:!0},autoHideDelay:{default:900},autoExpand:{default:!0},fixedThumb:null,throttleType:{default:"debounce"},throttleWait:{default:333},simulateScroll:null},emits:["wrapperResize","contentResize","scroll"],setup:wo})),xt={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:l}){const o=l,r=t,n=e.useSlots(),i=e.ref([]),c=e.computed(()=>i.value.reduce((m,y)=>(m[~~y.id]=y)&&m,{})),a=e.computed(()=>i.value.length),u=e.ref(null),f=e.ref(!1),d=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),h=e.ref({splitter:null,timeoutId:null}),v=e.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":d.value.dragging})),z=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",I),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",I))},N=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",I),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",I))},V=(m,y)=>{const E=m.target.closest(".splitpanes__splitter");if(E){const{left:k,top:C}=E.getBoundingClientRect(),{clientX:B,clientY:P}="ontouchstart"in window&&m.touches?m.touches[0]:m;d.value.cursorOffset=r.horizontal?P-C:B-k}z(),d.value.mouseDown=!0,d.value.activeSplitter=y},w=m=>{d.value.mouseDown&&(m.preventDefault(),d.value.dragging=!0,requestAnimationFrame(()=>{S(q(m)),X("resize",{event:m},!0)}))},I=m=>{d.value.dragging&&X("resized",{event:m},!0),d.value.mouseDown=!1,d.value.activeSplitter=null,setTimeout(()=>{d.value.dragging=!1,N()},100)},$=(m,y)=>{"ontouchstart"in window&&(m.preventDefault(),h.value.splitter===y?(clearTimeout(h.value.timeoutId),h.value.timeoutId=null,A(m,y),h.value.splitter=null):(h.value.splitter=y,h.value.timeoutId=setTimeout(()=>h.value.splitter=null,500))),d.value.dragging||X("splitter-click",{event:m,index:y},!0)},A=(m,y)=>{if(X("splitter-dblclick",{event:m,index:y},!0),r.maximizePanes){let E=0;i.value=i.value.map((k,C)=>(k.size=C===y?k.max:k.min,C!==y&&(E+=k.min),k)),i.value[y].size-=E,X("pane-maximize",{event:m,index:y,pane:i.value[y]}),X("resized",{event:m,index:y},!0)}},_=(m,y)=>{X("pane-click",{event:m,index:c.value[y].index,pane:c.value[y]})},q=m=>{const y=u.value.getBoundingClientRect(),{clientX:E,clientY:k}="ontouchstart"in window&&m.touches?m.touches[0]:m;return{x:E-(r.horizontal?0:d.value.cursorOffset)-y.left,y:k-(r.horizontal?d.value.cursorOffset:0)-y.top}},x=m=>{m=m[r.horizontal?"y":"x"];const y=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(m=y-m),m*100/y},S=m=>{const y=d.value.activeSplitter;let E={prevPanesSize:W(y),nextPanesSize:j(y),prevReachedMinPanes:0,nextReachedMinPanes:0};const k=0+(r.pushOtherPanes?0:E.prevPanesSize),C=100-(r.pushOtherPanes?0:E.nextPanesSize),B=Math.max(Math.min(x(m),C),k);let P=[y,y+1],U=i.value[P[0]]||null,L=i.value[P[1]]||null;const le=U.max<100&&B>=U.max+E.prevPanesSize,ce=L.max<100&&B<=100-(L.max+j(y+1));if(le||ce){le?(U.size=U.max,L.size=Math.max(100-U.max-E.prevPanesSize-E.nextPanesSize,0)):(U.size=Math.max(100-L.max-E.prevPanesSize-j(y+1),0),L.size=L.max);return}if(r.pushOtherPanes){const te=O(E,B);if(!te)return;({sums:E,panesToResize:P}=te),U=i.value[P[0]]||null,L=i.value[P[1]]||null}U!==null&&(U.size=Math.min(Math.max(B-E.prevPanesSize-E.prevReachedMinPanes,U.min),U.max)),L!==null&&(L.size=Math.min(Math.max(100-B-E.nextPanesSize-E.nextReachedMinPanes,L.min),L.max))},O=(m,y)=>{const E=d.value.activeSplitter,k=[E,E+1];return y<m.prevPanesSize+i.value[k[0]].min&&(k[0]=Re(E).index,m.prevReachedMinPanes=0,k[0]<E&&i.value.forEach((C,B)=>{B>k[0]&&B<=E&&(C.size=C.min,m.prevReachedMinPanes+=C.min)}),m.prevPanesSize=W(k[0]),k[0]===void 0)?(m.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((C,B)=>{B>0&&B<=E&&(C.size=C.min,m.prevReachedMinPanes+=C.min)}),i.value[k[1]].size=100-m.prevReachedMinPanes-i.value[0].min-m.prevPanesSize-m.nextPanesSize,null):y>100-m.nextPanesSize-i.value[k[1]].min&&(k[1]=G(E).index,m.nextReachedMinPanes=0,k[1]>E+1&&i.value.forEach((C,B)=>{B>E&&B<k[1]&&(C.size=C.min,m.nextReachedMinPanes+=C.min)}),m.nextPanesSize=j(k[1]-1),k[1]===void 0)?(m.nextReachedMinPanes=0,i.value.forEach((C,B)=>{B<a.value-1&&B>=E+1&&(C.size=C.min,m.nextReachedMinPanes+=C.min)}),i.value[k[0]].size=100-m.prevPanesSize-j(k[0]-1),null):{sums:m,panesToResize:k}},W=m=>i.value.reduce((y,E,k)=>y+(k<m?E.size:0),0),j=m=>i.value.reduce((y,E,k)=>y+(k>m+1?E.size:0),0),Re=m=>[...i.value].reverse().find(y=>y.index<m&&y.size>y.min)||{},G=m=>i.value.find(y=>y.index>m+1&&y.size>y.min)||{},ye=()=>{var m;const y=Array.from(((m=u.value)==null?void 0:m.children)||[]);for(const E of y){const k=E.classList.contains("splitpanes__pane"),C=E.classList.contains("splitpanes__splitter");!k&&!C&&(E.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},R=(m,y,E=!1)=>{const k=m-1,C=document.createElement("div");C.classList.add("splitpanes__splitter"),E||(C.onmousedown=B=>V(B,k),typeof window<"u"&&"ontouchstart"in window&&(C.ontouchstart=B=>V(B,k)),C.onclick=B=>$(B,k+1)),C.ondblclick=B=>A(B,k+1),y.parentNode.insertBefore(C,y)},K=m=>{m.onmousedown=void 0,m.onclick=void 0,m.ondblclick=void 0,m.remove()},ne=()=>{var m;const y=Array.from(((m=u.value)==null?void 0:m.children)||[]);for(const k of y)k.className.includes("splitpanes__splitter")&&K(k);let E=0;for(const k of y)k.className.includes("splitpanes__pane")&&(!E&&r.firstSplitter?R(E,k,!0):E&&R(E,k),E++)},de=({uid:m,...y})=>{const E=c.value[m];for(const[k,C]of Object.entries(y))E[k]=C},ke=m=>{var y;let E=-1;Array.from(((y=u.value)==null?void 0:y.children)||[]).some(k=>(k.className.includes("splitpanes__pane")&&E++,k.isSameNode(m.el))),i.value.splice(E,0,{...m,index:E}),i.value.forEach((k,C)=>k.index=C),f.value&&e.nextTick(()=>{ne(),Y({addedPane:i.value[E]}),X("pane-add",{pane:i.value[E]})})},we=m=>{const y=i.value.findIndex(k=>k.id===m);i.value[y].el=null;const E=i.value.splice(y,1)[0];i.value.forEach((k,C)=>k.index=C),e.nextTick(()=>{ne(),X("pane-remove",{pane:E}),Y({removedPane:{...E}})})},Y=(m={})=>{!m.addedPane&&!m.removedPane?ae():i.value.some(y=>y.givenSize!==null||y.min||y.max<100)?Ce(m):ee(),f.value&&X("resized")},ee=()=>{const m=100/a.value;let y=0;const E=[],k=[];for(const C of i.value)C.size=Math.max(Math.min(m,C.max),C.min),y-=C.size,C.size>=C.max&&E.push(C.id),C.size<=C.min&&k.push(C.id);y>.1&&se(y,E,k)},ae=()=>{let m=100;const y=[],E=[];let k=0;for(const B of i.value)m-=B.size,B.givenSize!==null&&k++,B.size>=B.max&&y.push(B.id),B.size<=B.min&&E.push(B.id);let C=100;if(m>.1){for(const B of i.value)B.givenSize===null&&(B.size=Math.max(Math.min(m/(a.value-k),B.max),B.min)),C-=B.size;C>.1&&se(C,y,E)}},Ce=({addedPane:m,removedPane:y}={})=>{let E=100/a.value,k=0;const C=[],B=[];((m==null?void 0:m.givenSize)??null)!==null&&(E=(100-m.givenSize)/(a.value-1));for(const P of i.value)k-=P.size,P.size>=P.max&&C.push(P.id),P.size<=P.min&&B.push(P.id);if(!(Math.abs(k)<.1)){for(const P of i.value)(m==null?void 0:m.givenSize)!==null&&(m==null?void 0:m.id)===P.id||(P.size=Math.max(Math.min(E,P.max),P.min)),k-=P.size,P.size>=P.max&&C.push(P.id),P.size<=P.min&&B.push(P.id);k>.1&&se(k,C,B)}},se=(m,y,E)=>{let k;m>0?k=m/(a.value-y.length):k=m/(a.value-E.length),i.value.forEach((C,B)=>{if(m>0&&!y.includes(C.id)){const P=Math.max(Math.min(C.size+k,C.max),C.min),U=P-C.size;m-=U,C.size=P}else if(!E.includes(C.id)){const P=Math.max(Math.min(C.size+k,C.max),C.min),U=P-C.size;m-=U,C.size=P}}),Math.abs(m)>.1&&e.nextTick(()=>{f.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},X=(m,y=void 0,E=!1)=>{const k=(y==null?void 0:y.index)??d.value.activeSplitter??null;o(m,{...y,...k!==null&&{index:k},...E&&k!==null&&{prevPane:i.value[k-(r.firstSplitter?1:0)],nextPane:i.value[k+(r.firstSplitter?0:1)]},panes:i.value.map(C=>({min:C.min,max:C.max,size:C.size}))})};e.watch(()=>r.firstSplitter,()=>ne()),e.onMounted(()=>{ye(),ne(),Y(),X("ready"),f.value=!0}),e.onBeforeUnmount(()=>f.value=!1);const Ae=()=>{var m;return e.h("div",{ref:u,class:v.value},(m=n.default)==null?void 0:m.call(n))};return e.provide("panes",i),e.provide("indexedPanes",c),e.provide("horizontal",e.computed(()=>r.horizontal)),e.provide("requestUpdate",de),e.provide("onPaneAdd",ke),e.provide("onPaneRemove",we),e.provide("onPaneClick",_),(m,y)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ae)))}},Ue={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const o=t,r=e.inject("requestUpdate"),n=e.inject("onPaneAdd"),i=e.inject("horizontal"),c=e.inject("onPaneRemove"),a=e.inject("onPaneClick"),u=(l=e.getCurrentInstance())==null?void 0:l.uid,f=e.inject("indexedPanes"),d=e.computed(()=>f.value[u]),h=e.ref(null),v=e.computed(()=>{const w=isNaN(o.size)||o.size===void 0?0:parseFloat(o.size);return Math.max(Math.min(w,N.value),z.value)}),z=e.computed(()=>{const w=parseFloat(o.minSize);return isNaN(w)?0:w}),N=e.computed(()=>{const w=parseFloat(o.maxSize);return isNaN(w)?100:w}),V=e.computed(()=>{var w;return`${i.value?"height":"width"}: ${(w=d.value)==null?void 0:w.size}%`});return e.watch(()=>v.value,w=>r({uid:u,size:w})),e.watch(()=>z.value,w=>r({uid:u,min:w})),e.watch(()=>N.value,w=>r({uid:u,max:w})),e.onMounted(()=>{n({id:u,el:h.value,min:z.value,max:N.value,givenSize:o.size===void 0?null:v.value,size:v.value})}),e.onBeforeUnmount(()=>c(u)),(w,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:h,class:"splitpanes__pane",onClick:I[0]||(I[0]=$=>e.unref(a)($,w._.uid)),style:e.normalizeStyle(V.value)},[e.renderSlot(w.$slots,"default")],4))}},pe=/^[a-z0-9]+(-[a-z0-9]+)*$/,Oe=(t,l,o,r="")=>{const n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),u=n.pop(),f={provider:n.length>0?n[0]:r,prefix:u,name:a};return l&&!Ne(f)?null:f}const i=n[0],c=i.split("-");if(c.length>1){const a={provider:r,prefix:c.shift(),name:c.join("-")};return l&&!Ne(a)?null:a}if(o&&r===""){const a={provider:r,prefix:"",name:i};return l&&!Ne(a,o)?null:a}return null},Ne=(t,l)=>t?!!((t.provider===""||t.provider.match(pe))&&(l&&t.prefix===""||t.prefix.match(pe))&&t.name.match(pe)):!1,Ut=Object.freeze({left:0,top:0,width:16,height:16}),Pe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...Ut,...Pe}),Xe=Object.freeze({...$e,body:"",hidden:!1});function Co(t,l){const o={};!t.hFlip!=!l.hFlip&&(o.hFlip=!0),!t.vFlip!=!l.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(l.rotate||0))%4;return r&&(o.rotate=r),o}function St(t,l){const o=Co(t,l);for(const r in Xe)r in Pe?r in t&&!(r in o)&&(o[r]=Pe[r]):r in l?o[r]=l[r]:r in t&&(o[r]=t[r]);return o}function xo(t,l){const o=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(c){if(o[c])return n[c]=[];if(!(c in n)){n[c]=null;const a=r[c]&&r[c].parent,u=a&&i(a);u&&(n[c]=[a].concat(u))}return n[c]}return Object.keys(o).concat(Object.keys(r)).forEach(i),n}function So(t,l,o){const r=t.icons,n=t.aliases||Object.create(null);let i={};function c(a){i=St(r[a]||n[a],i)}return c(l),o.forEach(c),St(t,i)}function Gt(t,l){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(n=>{l(n,null),o.push(n)});const r=xo(t);for(const n in r){const i=r[n];i&&(l(n,So(t,n,i)),o.push(n))}return o}const Eo={provider:"",aliases:{},not_found:{},...Ut};function Ge(t,l){for(const o in l)if(o in t&&typeof t[o]!=typeof l[o])return!1;return!0}function Qt(t){if(typeof t!="object"||t===null)return null;const l=t;if(typeof l.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ge(t,Eo))return null;const o=l.icons;for(const n in o){const i=o[n];if(!n.match(pe)||typeof i.body!="string"||!Ge(i,Xe))return null}const r=l.aliases||Object.create(null);for(const n in r){const i=r[n],c=i.parent;if(!n.match(pe)||typeof c!="string"||!o[c]&&!r[c]||!Ge(i,Xe))return null}return l}const Et=Object.create(null);function zo(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function ie(t,l){const o=Et[t]||(Et[t]=Object.create(null));return o[l]||(o[l]=zo(t,l))}function lt(t,l){return Qt(l)?Gt(l,(o,r)=>{r?t.icons[o]=r:t.missing.add(o)}):[]}function Bo(t,l,o){try{if(typeof o.body=="string")return t.icons[l]={...o},!0}catch{}return!1}let ve=!1;function Xt(t){return typeof t=="boolean"&&(ve=t),ve}function No(t){const l=typeof t=="string"?Oe(t,!0,ve):t;if(l){const o=ie(l.provider,l.prefix),r=l.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function Mo(t,l){const o=Oe(t,!0,ve);if(!o)return!1;const r=ie(o.provider,o.prefix);return Bo(r,o.name,l)}function Lo(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),ve&&!l&&!t.prefix){let n=!1;return Qt(t)&&(t.prefix="",Gt(t,(i,c)=>{c&&Mo(i,c)&&(n=!0)})),n}const o=t.prefix;if(!Ne({provider:l,prefix:o,name:"a"}))return!1;const r=ie(l,o);return!!lt(r,t)}const Yt=Object.freeze({width:null,height:null}),Kt=Object.freeze({...Yt,...Pe}),Fo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,To=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function zt(t,l,o){if(l===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*l*o)/o;if(typeof t!="string")return t;const r=t.split(Fo);if(r===null||!r.length)return t;const n=[];let i=r.shift(),c=To.test(i);for(;;){if(c){const a=parseFloat(i);isNaN(a)?n.push(i):n.push(Math.ceil(a*l*o)/o)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");c=!c}}function Vo(t,l="defs"){let o="";const r=t.indexOf("<"+l);for(;r>=0;){const n=t.indexOf(">",r),i=t.indexOf("</"+l);if(n===-1||i===-1)break;const c=t.indexOf(">",i);if(c===-1)break;o+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(c+1)}return{defs:o,content:t}}function _o(t,l){return t?"<defs>"+t+"</defs>"+l:l}function Po(t,l,o){const r=Vo(t);return _o(r.defs,l+r.content+o)}const Io=t=>t==="unset"||t==="undefined"||t==="none";function Oo(t,l){const o={...$e,...t},r={...Kt,...l},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(V=>{const w=[],I=V.hFlip,$=V.vFlip;let A=V.rotate;I?$?A+=2:(w.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),w.push("scale(-1 1)"),n.top=n.left=0):$&&(w.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),w.push("scale(1 -1)"),n.top=n.left=0);let _;switch(A<0&&(A-=Math.floor(A/4)*4),A=A%4,A){case 1:_=n.height/2+n.top,w.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:w.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:_=n.width/2+n.left,w.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}A%2===1&&(n.left!==n.top&&(_=n.left,n.left=n.top,n.top=_),n.width!==n.height&&(_=n.width,n.width=n.height,n.height=_)),w.length&&(i=Po(i,'<g transform="'+w.join(" ")+'">',"</g>"))});const c=r.width,a=r.height,u=n.width,f=n.height;let d,h;c===null?(h=a===null?"1em":a==="auto"?f:a,d=zt(h,u/f)):(d=c==="auto"?u:c,h=a===null?zt(d,f/u):a==="auto"?f:a);const v={},z=(V,w)=>{Io(w)||(v[V]=w.toString())};z("width",d),z("height",h);const N=[n.left,n.top,u,f];return v.viewBox=N.join(" "),{attributes:v,viewBox:N,body:i}}const $o=/\sid="(\S+)"/g,Do="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ro=0;function Ao(t,l=Do){const o=[];let r;for(;r=$o.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const c=typeof l=="function"?l(i):l+(Ro++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+c+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}const Ye=Object.create(null);function Wo(t,l){Ye[t]=l}function Ke(t){return Ye[t]||Ye[""]}function rt(t){let l;if(typeof t.resources=="string")l=[t.resources];else if(l=t.resources,!(l instanceof Array)||!l.length)return null;return{resources:l,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const it=Object.create(null),he=["https://api.simplesvg.com","https://api.unisvg.com"],Me=[];for(;he.length>0;)he.length===1||Math.random()>.5?Me.push(he.shift()):Me.push(he.pop());it[""]=rt({resources:["https://api.iconify.design"].concat(Me)});function Ho(t,l){const o=rt(l);return o===null?!1:(it[t]=o,!0)}function at(t){return it[t]}const qo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let Bt=qo();function jo(t,l){const o=at(t);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let n=0;o.resources.forEach(c=>{n=Math.max(n,c.length)});const i=l+".json?icons=";r=o.maxURL-n-o.path.length-i.length}return r}function Uo(t){return t===404}const Go=(t,l,o)=>{const r=[],n=jo(t,l),i="icons";let c={type:i,provider:t,prefix:l,icons:[]},a=0;return o.forEach((u,f)=>{a+=u.length+1,a>=n&&f>0&&(r.push(c),c={type:i,provider:t,prefix:l,icons:[]},a=u.length),c.icons.push(u)}),r.push(c),r};function Qo(t){if(typeof t=="string"){const l=at(t);if(l)return l.path}return"/"}const Xo=(t,l,o)=>{if(!Bt){o("abort",424);return}let r=Qo(l.provider);switch(l.type){case"icons":{const i=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});r+=i+".json?"+u.toString();break}case"custom":{const i=l.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let n=503;Bt(t+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{o(Uo(c)?"abort":"next",c)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",n)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",n)})},Yo={prepare:Go,send:Xo};function Ko(t){const l={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;const i=n.provider,c=n.prefix,a=n.name,u=o[i]||(o[i]=Object.create(null)),f=u[c]||(u[c]=ie(i,c));let d;a in f.icons?d=l.loaded:c===""||f.missing.has(a)?d=l.missing:d=l.pending;const h={provider:i,prefix:c,name:a};d.push(h)}),l}function Jt(t,l){t.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(n=>n.id!==l))})}function Jo(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let o=!1;const r=t.provider,n=t.prefix;l.forEach(i=>{const c=i.icons,a=c.pending.length;c.pending=c.pending.filter(u=>{if(u.prefix!==n)return!0;const f=u.name;if(t.icons[f])c.loaded.push({provider:r,prefix:n,name:f});else if(t.missing.has(f))c.missing.push({provider:r,prefix:n,name:f});else return o=!0,!0;return!1}),c.pending.length!==a&&(o||Jt([t],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Zo=0;function el(t,l,o){const r=Zo++,n=Jt.bind(null,o,r);if(!l.pending.length)return n;const i={id:r,icons:l,callback:t,abort:n};return o.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),n}function tl(t,l=!0,o=!1){const r=[];return t.forEach(n=>{const i=typeof n=="string"?Oe(n,l,o):n;i&&r.push(i)}),r}var nl={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ol(t,l,o,r){const n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index;let c;if(t.random){let x=t.resources.slice(0);for(c=[];x.length>1;){const S=Math.floor(Math.random()*x.length);c.push(x[S]),x=x.slice(0,S).concat(x.slice(S+1))}c=c.concat(x)}else c=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let u="pending",f=0,d,h=null,v=[],z=[];typeof r=="function"&&z.push(r);function N(){h&&(clearTimeout(h),h=null)}function V(){u==="pending"&&(u="aborted"),N(),v.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),v=[]}function w(x,S){S&&(z=[]),typeof x=="function"&&z.push(x)}function I(){return{startTime:a,payload:l,status:u,queriesSent:f,queriesPending:v.length,subscribe:w,abort:V}}function $(){u="failed",z.forEach(x=>{x(void 0,d)})}function A(){v.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),v=[]}function _(x,S,O){const W=S!=="success";switch(v=v.filter(j=>j!==x),u){case"pending":break;case"failed":if(W||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){d=O,$();return}if(W){d=O,v.length||(c.length?q():$());return}if(N(),A(),!t.random){const j=t.resources.indexOf(x.resource);j!==-1&&j!==t.index&&(t.index=j)}u="completed",z.forEach(j=>{j(O)})}function q(){if(u!=="pending")return;N();const x=c.shift();if(x===void 0){if(v.length){h=setTimeout(()=>{N(),u==="pending"&&(A(),$())},t.timeout);return}$();return}const S={status:"pending",resource:x,callback:(O,W)=>{_(S,O,W)}};v.push(S),f++,h=setTimeout(q,t.rotate),o(x,l,S.callback)}return setTimeout(q),I}function Zt(t){const l={...nl,...t};let o=[];function r(){o=o.filter(a=>a().status==="pending")}function n(a,u,f){const d=ol(l,a,u,(h,v)=>{r(),f&&f(h,v)});return o.push(d),d}function i(a){return o.find(u=>a(u))||null}return{query:n,find:i,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:r}}function Nt(){}const Qe=Object.create(null);function ll(t){if(!Qe[t]){const l=at(t);if(!l)return;const o=Zt(l),r={config:l,redundancy:o};Qe[t]=r}return Qe[t]}function rl(t,l,o){let r,n;if(typeof t=="string"){const i=Ke(t);if(!i)return o(void 0,424),Nt;n=i.send;const c=ll(t);c&&(r=c.redundancy)}else{const i=rt(t);if(i){r=Zt(i);const c=t.resources?t.resources[0]:"",a=Ke(c);a&&(n=a.send)}}return!r||!n?(o(void 0,424),Nt):r.query(l,n,o)().abort}const Mt="iconify2",ge="iconify",en=ge+"-count",Lt=ge+"-version",tn=36e5,il=168,al=50;function Je(t,l){try{return t.getItem(l)}catch{}}function st(t,l,o){try{return t.setItem(l,o),!0}catch{}}function Ft(t,l){try{t.removeItem(l)}catch{}}function Ze(t,l){return st(t,en,l.toString())}function et(t){return parseInt(Je(t,en))||0}const De={local:!0,session:!0},nn={local:new Set,session:new Set};let ct=!1;function sl(t){ct=t}let ze=typeof window>"u"?{}:window;function on(t){const l=t+"Storage";try{if(ze&&ze[l]&&typeof ze[l].length=="number")return ze[l]}catch{}De[t]=!1}function ln(t,l){const o=on(t);if(!o)return;const r=Je(o,Lt);if(r!==Mt){if(r){const a=et(o);for(let u=0;u<a;u++)Ft(o,ge+u.toString())}st(o,Lt,Mt),Ze(o,0);return}const n=Math.floor(Date.now()/tn)-il,i=a=>{const u=ge+a.toString(),f=Je(o,u);if(typeof f=="string"){try{const d=JSON.parse(f);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>n&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&l(d,a))return!0}catch{}Ft(o,u)}};let c=et(o);for(let a=c-1;a>=0;a--)i(a)||(a===c-1?(c--,Ze(o,c)):nn[t].add(a))}function rn(){if(!ct){sl(!0);for(const t in De)ln(t,l=>{const o=l.data,r=l.provider,n=o.prefix,i=ie(r,n);if(!lt(i,o).length)return!1;const c=o.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function cl(t,l){const o=t.lastModifiedCached;if(o&&o>=l)return o===l;if(t.lastModifiedCached=l,o)for(const r in De)ln(r,n=>{const i=n.data;return n.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===l});return!0}function ul(t,l){ct||rn();function o(r){let n;if(!De[r]||!(n=on(r)))return;const i=nn[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=et(n),c>=al||!Ze(n,c+1))return;const a={cached:Math.floor(Date.now()/tn),provider:t.provider,data:l};return st(n,ge+c.toString(),JSON.stringify(a))}l.lastModified&&!cl(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),o("local")||o("session"))}function Tt(){}function dl(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Jo(t)}))}function fl(t,l){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(l).sort():t.iconsToLoad=l,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:r}=t,n=t.iconsToLoad;delete t.iconsToLoad;let i;if(!n||!(i=Ke(o)))return;i.prepare(o,r,n).forEach(a=>{rl(o,a,u=>{if(typeof u!="object")a.icons.forEach(f=>{t.missing.add(f)});else try{const f=lt(t,u);if(!f.length)return;const d=t.pendingIcons;d&&f.forEach(h=>{d.delete(h)}),ul(t,u)}catch(f){console.error(f)}dl(t)})})}))}const hl=(t,l)=>{const o=tl(t,!0,Xt()),r=Ko(o);if(!r.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(r.loaded,r.missing,r.pending,Tt)}),()=>{u=!1}}const n=Object.create(null),i=[];let c,a;return r.pending.forEach(u=>{const{provider:f,prefix:d}=u;if(d===a&&f===c)return;c=f,a=d,i.push(ie(f,d));const h=n[f]||(n[f]=Object.create(null));h[d]||(h[d]=[])}),r.pending.forEach(u=>{const{provider:f,prefix:d,name:h}=u,v=ie(f,d),z=v.pendingIcons||(v.pendingIcons=new Set);z.has(h)||(z.add(h),n[f][d].push(h))}),i.forEach(u=>{const{provider:f,prefix:d}=u;n[f][d].length&&fl(u,n[f][d])}),l?el(l,r,i):Tt};function ml(t,l){const o={...t};for(const r in l){const n=l[r],i=typeof n;r in Yt?(n===null||n&&(i==="string"||i==="number"))&&(o[r]=n):i===typeof o[r]&&(o[r]=r==="rotate"?n%4:n)}return o}const pl=/[\s,]+/;function vl(t,l){l.split(pl).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function gl(t,l=0){const o=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(t);return isNaN(n)?0:r(n)}else if(o!==t){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-o.length));return isNaN(i)?0:(i=i/n,i%1===0?r(i):0)}}return l}function bl(t,l){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in l)o+=" "+r+'="'+l[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function yl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kl(t){return"data:image/svg+xml,"+yl(t)}function wl(t){return'url("'+kl(t)+'")'}const Vt={...Kt,inline:!1},Cl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xl={display:"inline-block"},tt={backgroundColor:"currentColor"},an={backgroundColor:"transparent"},_t={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pt={webkitMask:tt,mask:tt,background:an};for(const t in Pt){const l=Pt[t];for(const o in _t)l[t+o]=_t[o]}const Le={};["horizontal","vertical"].forEach(t=>{const l=t.slice(0,1)+"Flip";Le[t+"-flip"]=l,Le[t.slice(0,1)+"-flip"]=l,Le[t+"Flip"]=l});function It(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Ot=(t,l)=>{const o=ml(Vt,l),r={...Cl},n=l.mode||"svg",i={},c=l.style,a=typeof c=="object"&&!(c instanceof Array)?c:{};for(let V in l){const w=l[V];if(w!==void 0)switch(V){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[V]=w===!0||w==="true"||w===1;break;case"flip":typeof w=="string"&&vl(o,w);break;case"color":i.color=w;break;case"rotate":typeof w=="string"?o[V]=gl(w):typeof w=="number"&&(o[V]=w);break;case"ariaHidden":case"aria-hidden":w!==!0&&w!=="true"&&delete r["aria-hidden"];break;default:{const I=Le[V];I?(w===!0||w==="true"||w===1)&&(o[I]=!0):Vt[V]===void 0&&(r[V]=w)}}}const u=Oo(t,o),f=u.attributes;if(o.inline&&(i.verticalAlign="-0.125em"),n==="svg"){r.style={...i,...a},Object.assign(r,f);let V=0,w=l.id;return typeof w=="string"&&(w=w.replace(/-/g,"_")),r.innerHTML=Ao(u.body,w?()=>w+"ID"+V++:"iconifyVue"),e.h("svg",r)}const{body:d,width:h,height:v}=t,z=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),N=bl(d,{...f,width:h+"",height:v+""});return r.style={...i,"--svg":wl(N),width:It(f.width),height:It(f.height),...xl,...z?tt:an,...a},e.h("span",r)};Xt(!0);Wo("",Yo);if(typeof document<"u"&&typeof window<"u"){rn();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Lo(r))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let o in l){const r="IconifyProviders["+o+"] is invalid.";try{const n=l[o];if(typeof n!="object"||!n||n.resources===void 0)continue;Ho(o,n)||console.error(r)}catch{console.error(r)}}}}const Sl={...$e,body:""},oe=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,l){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Oe(t,!1,!0))===null)return this.abortLoading(),null;const r=No(o);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:hl([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const n=["iconify"];return o.prefix!==""&&n.push("iconify--"+o.prefix),o.provider!==""&&n.push("iconify--"+o.provider),{data:r,classes:n}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Ot(Sl,t);let o=t;return l.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Ot({...$e,...l.data},o)}}),El={name:"buttonExpand"},zl=e.defineComponent({...El,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,o=e.toRef(l,"expandedrows"),r=e.ref(!1);function n(a){if(l.expandall)r.value=!r.value,o.value.forEach(u=>{u.isExpanded=r.value});else{const u=o.value.find(f=>f.id==a);u?u.isExpanded=!u.isExpanded:o.value.push({id:a,isExpanded:!0})}}const i=a=>a._rowIndex!==void 0?a._rowIndex:a.id||0,c=e.ref(-1);return e.watch(()=>o.value,()=>{var a;l.expandall&&(new Set(o.value.map(u=>u.isExpanded)).size>1?(c.value=-1,r.value=!0):(a=o.value.at(0))!=null&&a.isExpanded?(c.value=0,r.value=!0):(c.value=1,r.value=!1))},{deep:!0}),(a,u)=>{var f;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:u[0]||(u[0]=d=>n(i(a.item)))},[((f=o.value.find(d=>d.id==i(a.item)))==null?void 0:f.isExpanded)===!0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.value?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.value==-1?(e.openBlock(),e.createBlock(e.unref(oe),{key:0,icon:"ion:chevron-expand"})):c.value==0?(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(oe),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(oe),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),be=(t,l)=>{const o=t.__vccOpts||t;for(const[r,n]of l)o[r]=n;return o},nt=be(zl,[["__scopeId","data-v-66476098"]]),Bl={name:"ButtonRightPanel"},Nl=e.defineComponent({...Bl,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const o=t,r=l;function n(){r("rightPanelClick",o.item)}return(i,c)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(n,["stop"])},[e.createVNode(e.unref(oe),{icon:"lucide:plus"})]))}}),$t=be(Nl,[["__scopeId","data-v-b373d5f7"]]),Ml={class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden"},Ll={name:"columnFilter"},Fl=e.defineComponent({...Ll,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const o=t,r=l,n=e.ref(null);Fn(n,()=>{r("close")});const i=c=>{o.column.condition=c,c===""&&(o.column.value=""),r("filterChange",o.column),r("close")};return(c,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"menuRef",ref:n,class:"bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"},[e.createElementVNode("div",Ml,[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition===""}),onClick:a[0]||(a[0]=e.withModifiers(u=>i(""),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NoFilter)??"No filter"),3),o.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Contains"}),onClick:a[1]||(a[1]=e.withModifiers(u=>i("Contains"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotContains"}),onClick:a[2]||(a[2]=e.withModifiers(u=>i("NotContains"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[3]||(a[3]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=e.withModifiers(u=>i("StartsWith"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=e.withModifiers(u=>i("EndsWith"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):o.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[7]||(a[7]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=e.withModifiers(u=>i("GreaterThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan (>)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=e.withModifiers(u=>i("GreaterThanOrEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual (>=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[11]||(a[11]=e.withModifiers(u=>i("LessThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan (<)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=e.withModifiers(u=>i("LessThanOrEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual (<=)"),3)],64)):o.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[13]||(a[13]=e.withModifiers(u=>i("Equal"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal (=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=e.withModifiers(u=>i("NotEqual"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"Not equal (!=)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=e.withModifiers(u=>i("GreaterThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan (>)"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[16]||(a[16]=e.withModifiers(u=>i("LessThan"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan (<)"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNull"}),onClick:a[17]||(a[17]=e.withModifiers(u=>i("IsNull"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=e.withModifiers(u=>i("IsNotNull"),["stop"]))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNotNull)??"IsNotNull"),3)])],512))}}),Tl={},Vl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},_l=e.createElementVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(-9 -11)",fill:"currentColor","fill-rule":"nonzero"},[e.createElementVNode("path",{d:"m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z"})])],-1),Pl=[_l];function Il(t,l){return e.openBlock(),e.createElementBlock("svg",Vl,Pl)}const ot=be(Tl,[["render",Il]]),Ol={},$l={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},Dl=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Rl=[Dl];function Al(t,l){return e.openBlock(),e.createElementBlock("svg",$l,Rl)}const Wl=be(Ol,[["render",Al]]),Hl={},ql={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},jl=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Ul=[jl];function Gl(t,l){return e.openBlock(),e.createElementBlock("svg",ql,Ul)}const Ql=be(Hl,[["render",Gl]]),Xl={key:"hdrrow"},Yl={class:"bh-checkbox"},Kl=["onClick"],Jl={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},Zl={key:0,class:"bh-filter bh-relative"},er=["onUpdate:modelValue"],tr=["onUpdate:modelValue"],nr=["onUpdate:modelValue"],or=["onUpdate:modelValue"],lr=e.createElementVNode("option",{value:void 0},"All",-1),rr=e.createElementVNode("option",{value:!0},"True",-1),ir=e.createElementVNode("option",{value:!1},"False",-1),ar=[lr,rr,ir],sr=["onClick"],cr={name:"columnHeader"},Be=e.defineComponent({...cr,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const o=e.ref(null),r=t,n=l,i=e.ref({});e.onMounted(()=>{var u;(u=r.all)!=null&&u.columns&&r.all.columns.forEach(f=>{f.filter&&f.field&&(i.value[f.field]=f.value||"")})}),Ln(i,u=>{var f;(f=r.all)!=null&&f.columns&&(Object.keys(u).forEach(d=>{const h=r.all.columns.find(v=>v.field===d);h&&(h.type==="string"||h.type==="String"?h.value=typeof u[d]=="string"?u[d].trim():u[d]:h.value=u[d])}),n("filterChange"))},{debounce:300,deep:!0});const c=()=>{o.value&&(o.value.indeterminate=r.checkAll!==0?!r.checkAll:!1,o.value.checked=r.checkAll)};e.watch(()=>r.checkAll,c);const a=u=>{if(!u.field)return!1;const f=i.value[u.field];return f!==""&&f!==null&&f!==void 0};return(u,f)=>(e.openBlock(),e.createElementBlock("tr",Xl,[r.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",style:e.normalizeStyle({width:r.all.checkboxColumnWidth+" !important",minWidth:r.all.checkboxColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn})},[e.createElementVNode("div",Yl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:o,type:"checkbox",onClick:f[0]||(f[0]=e.withModifiers(d=>{var h;return n("selectAll",(h=d==null?void 0:d.target)==null?void 0:h.checked)},["stop"]))},null,512),e.createElementVNode("div",null,[e.createVNode(ot,{class:"check"}),e.createVNode(Wl,{class:"intermediate"})])])],6)):e.createCommentVNode("",!0),r.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,style:e.normalizeStyle({width:r.all.rightPanelColumnWidth+" !important",minWidth:r.all.rightPanelColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn})},null,6)):e.createCommentVNode("",!0),r.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",{key:2,style:e.normalizeStyle({width:r.all.subtableColumnWidth+" !important",minWidth:r.all.subtableColumnWidth+" !important"})},[r.all.expandall?(e.openBlock(),e.createBlock(nt,{key:0,expandedrows:r.expandedrows,expandall:r.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.all.columns,(d,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("th",{key:d.field,class:e.normalizeClass(["bh-select-none bh-z-[1]",[r.all.sortable&&d.sort?"bh-cursor-pointer":"",h===0&&r.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",r.all.hasCheckbox&&h===0&&r.all.stickyFirstColumn?"bh-left-[52px]":""]]),style:e.normalizeStyle({width:d.width,"min-width":d.minWidth,"max-width":d.maxWidth})},[e.createElementVNode("div",{class:e.normalizeClass(["bh-flex bh-items-center",[d.headerClass?d.headerClass:""]]),onClick:v=>r.all.sortable&&d.sort&&n("sortChange",d.field)},[e.createTextVNode(e.toDisplayString(d.title)+" ",1),r.all.sortable&&d.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[r.currentSortColumn,r.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",Jl,[e.createElementVNode("polygon",{points:"3.11,6.25 10.89,6.25 7,1.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===d.field&&t.currentSortDirection==="asc"?"!bh-text-primary":""]])},null,2),e.createElementVNode("polygon",{points:"7,12.25 10.89,7.75 3.11,7.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===d.field&&t.currentSortDirection==="desc"?"!bh-text-primary":""]])},null,2)]))],2)):e.createCommentVNode("",!0)],10,Kl),r.all.columnFilter&&!r.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[d.filter?(e.openBlock(),e.createElementBlock("div",Zl,[d.type==="string"||d.type==="String"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"text",class:"bh-form-control"},null,8,er)),[[e.vModelText,i.value[d.field]]]):e.createCommentVNode("",!0),d.type==="number"||d.type==="integer"||d.type==="Integer"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"number",class:"bh-form-control"},null,8,tr)),[[e.vModelText,i.value[d.field],void 0,{number:!0}]]):d.type==="date"||d.type==="DateTime"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":v=>i.value[d.field]=v,type:"date",class:"bh-form-control"},null,8,nr)),[[e.vModelText,i.value[d.field]]]):d.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":v=>i.value[d.field]=v,class:"bh-form-control",onClick:f[1]||(f[1]=(...v)=>r.isOpenFilter&&r.isOpenFilter(...v))},ar,8,or)),[[e.vModelSelect,i.value[d.field]]]):e.createCommentVNode("",!0),d.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(v=>n("toggleFilterMenu",d),["stop"]),class:e.normalizeClass({"!bh-bg-primary/10 !bh-border-primary":a(d),"bh-bg-[#e0e6ed] dark:bh-bg-gray-700":!a(d)})},[e.createVNode(Ql,{class:e.normalizeClass(["bh-w-4",{"bh-text-primary":a(d),"bh-text-black/70 dark:bh-text-gray-300":!a(d)}])},null,8,["class"])],10,sr)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(Fl,{column:d,type:d.type,columnFilterLang:r.columnFilterLang,onClose:f[2]||(f[2]=v=>n("toggleFilterMenu",null)),onFilterChange:f[3]||(f[3]=v=>n("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,r.isOpenFilter===d.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),ur={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},dr={class:"bh-flex bh-h-full"},fr=e.createElementVNode("span",null,"##Left Menu Slot##",-1),hr={class:"menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none"},mr=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),pr=[mr],vr={class:"bh-flex-1",style:{overflow:"auto","min-width":"0",width:"100%"}},gr=e.createElementVNode("span",null,"##Top Menu Slot##",-1),br=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),yr=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),kr=["onClick"],wr={class:"bh-checkbox"},Cr=["value"],xr=["innerHTML"],Sr=["onClick"],Er=["colspan"],zr=["colspan"],Br=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),Nr=[Br],Mr=["colspan"],Lr=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),Fr=["onClick"],Tr={class:"bh-checkbox"},Vr=["value"],_r=["innerHTML"],Pr=["onClick"],Ir=["colspan"],Or=["colspan"],$r=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),Dr=[$r],Rr=["colspan"],Ar={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},Wr={class:"bh-pagination-info bh-flex bh-items-center"},Hr={class:"bh-mr-2"},qr=["value"],jr={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},Ur=["innerHTML"],Gr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Qr=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}),e.createElementVNode("path",{d:"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"})],-1),Xr=[Qr],Yr=["innerHTML"],Kr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Jr=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},null,-1),Zr=[Jr],ei=["onClick"],ti=["innerHTML"],ni={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},oi=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"},null,-1),li=[oi],ri=["innerHTML"],ii={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},ai=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z"}),e.createElementVNode("path",{d:"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z"})],-1),si=[ai],ci={name:"Vue3Datatable"},ui=e.defineComponent({...ci,props:{loading:{type:Boolean,default:!1},isServerMode:{type:Boolean,default:!1},skin:{default:"bh-table-striped bh-table-hover"},totalRows:{default:0},rows:{default:()=>[]},footerRows:{default:()=>[]},columns:{default:()=>[]},hasCheckbox:{type:Boolean,default:!1},hasSubtable:{type:Boolean,default:!1},hasRightPanel:{type:Boolean,default:!1},checkboxColumnWidth:{default:"40px"},rightPanelColumnWidth:{default:"40px"},subtableColumnWidth:{default:"40px"},subtableMaxHeight:{default:"400px"},subtableLazyLoading:{type:Boolean,default:!1},expandall:{type:Boolean,default:!1},search:{default:""},columnChooser:{type:Boolean,default:!1},page:{default:1},pageSize:{default:10},pageSizeOptions:{default:()=>[10,20,30,50,100]},showPageSize:{type:Boolean,default:!0},rowClass:{default:[]},cellClass:{default:[]},sortable:{type:Boolean,default:!1},sortColumn:{default:"id"},sortDirection:{default:"asc"},columnFilter:{type:Boolean,default:!1},columnFilterLang:{default:null},pagination:{type:Boolean,default:!0},showNumbers:{type:Boolean,default:!0},showNumbersCount:{default:5},showFirstPage:{type:Boolean,default:!0},showLastPage:{type:Boolean,default:!0},firstArrow:{default:""},lastArrow:{default:""},nextArrow:{default:""},previousArrow:{default:""},paginationInfo:{default:"Showing {0} to {1} of {2} entries"},noDataContent:{default:"There is no data that match your query."},stickyHeader:{type:Boolean,default:!1},stickyFooter:{type:Boolean,default:!1},height:{default:"500px"},stickyFirstColumn:{type:Boolean,default:!1},cloneHeaderInFooter:{type:Boolean,default:!1},selectRowOnClick:{type:Boolean,default:!1},scrollbarstyle:{},scrollbarautohide:{type:Boolean,default:!0},scrollbarfixedthumb:{type:Boolean,default:!1},scrollbarautoexpand:{type:Boolean,default:!1},scrollbardirection:{default:"both"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},enableHeaderArea:{type:Boolean,default:!1},headerAreaHeight:{default:"80px"},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0},tableLeftOffset:{default:5},initialLeftMenuState:{type:Boolean,default:void 0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:o}){var ft,ht;const r=e.useSlots(),n=t;for(const s of n.columns||[]){const g=((ft=s.type)==null?void 0:ft.toLowerCase())||"string";s.type=g,s.isUnique=s.isUnique!==void 0?s.isUnique:!1,s.hide=s.hide!==void 0?s.hide:!1,s.filter=s.filter!==void 0?s.filter:!0,s.search=s.search!==void 0?s.search:!0,s.sort=s.sort!==void 0?s.sort:!0,s.html=s.html!==void 0?s.html:!1,s.condition=!g||g==="string"?"Contains":"Equal"}const i=e.ref([]),c=e.ref(n.page),a=e.ref(n.pagination?n.pageSize:(ht=n.rows)==null?void 0:ht.length),u=n.pageSize,f=e.ref(n.sortColumn),d=n.sortColumn,h=e.ref(n.sortDirection),v=n.sortDirection,z=e.ref(n.totalRows),N=e.ref([]),V=e.ref(null),w=e.ref(n.loading),I=e.ref(n.search);JSON.parse(JSON.stringify(n.columns));const $=e.ref(null),A=e.ref(null);let _=e.ref(0);const q=e.ref(230),x=e.ref(n.leftmenuDefaultWidth),S=e.ref(!1),O=e.ref(null),W=()=>{if(O.value){const s=S.value?n.leftmenuMinWidth:n.leftmenuDefaultWidth;O.value.style.cssText=`
2
2
  width: ${x.value}px !important;
3
3
  min-width: ${s}px !important;
4
4
  max-width: ${s}px !important;
@@ -2379,7 +2379,11 @@ const Ri = /* @__PURE__ */ qe(Fi, [["render", Ai]]), Ni = { key: "hdrrow" }, Wi
2379
2379
  ), le(() => o.checkAll, () => {
2380
2380
  n.value && (n.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, n.value.checked = o.checkAll);
2381
2381
  });
2382
- const r = (u) => u.value !== "" && u.value !== null && u.value !== void 0;
2382
+ const r = (u) => {
2383
+ if (!u.field) return !1;
2384
+ const d = i.value[u.field];
2385
+ return d !== "" && d !== null && d !== void 0;
2386
+ };
2383
2387
  return (u, d) => (h(), m("tr", Ni, [
2384
2388
  o.all.hasCheckbox ? (h(), m("th", {
2385
2389
  key: "chkall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.7.43",
3
+ "version": "1.7.44",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",