/*! Bigin UI v1.1.104 */(function(A,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(A=typeof globalThis<"u"?globalThis:A||self,n(A.BiginUi={},A.Vue))})(this,function(A,n){"use strict";var kg=typeof global=="object"&&global&&global.Object===Object&&global,pN=typeof self=="object"&&self&&self.Object===Object&&self,Lt=kg||pN||Function("return this")(),qt=Lt.Symbol,Sg=Object.prototype,mN=Sg.hasOwnProperty,gN=Sg.toString,fs=qt?qt.toStringTag:void 0;function yN(e){var t=mN.call(e,fs),o=e[fs];try{e[fs]=void 0;var r=!0}catch{}var a=gN.call(e);return r&&(t?e[fs]=o:delete e[fs]),a}var bN=Object.prototype,CN=bN.toString;function wN(e){return CN.call(e)}var $N="[object Null]",kN="[object Undefined]",Eg=qt?qt.toStringTag:void 0;function tn(e){return e==null?e===void 0?kN:$N:Eg&&Eg in Object(e)?yN(e):wN(e)}function St(e){return e!=null&&typeof e=="object"}var SN="[object Symbol]";function wn(e){return typeof e=="symbol"||St(e)&&tn(e)==SN}var EN=0/0;function Bg(e){return typeof e=="number"?e:wn(e)?EN:+e}function wt(e,t){for(var o=-1,r=e==null?0:e.length,a=Array(r);++o<r;)a[o]=t(e[o],o,e);return a}var Fe=Array.isArray,BN=1/0,Ng=qt?qt.prototype:void 0,_g=Ng?Ng.toString:void 0;function $n(e){if(typeof e=="string")return e;if(Fe(e))return wt(e,$n)+"";if(wn(e))return _g?_g.call(e):"";var t=e+"";return t=="0"&&1/e==-BN?"-0":t}function tc(e,t){return function(o,r){var a;if(o===void 0&&r===void 0)return t;if(o!==void 0&&(a=o),r!==void 0){if(a===void 0)return r;typeof o=="string"||typeof r=="string"?(o=$n(o),r=$n(r)):(o=Bg(o),r=Bg(r)),a=e(o,r)}return a}}var NN=tc(function(e,t){return e+t},0),_N=/\s/;function Tg(e){for(var t=e.length;t--&&_N.test(e.charAt(t)););return t}var TN=/^\s+/;function Ag(e){return e&&e.slice(0,Tg(e)+1).replace(TN,"")}function $t(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xg=0/0,AN=/^[-+]0x[0-9a-f]+$/i,xN=/^0b[01]+$/i,MN=/^0o[0-7]+$/i,PN=parseInt;function Rn(e){if(typeof e=="number")return e;if(wn(e))return xg;if($t(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$t(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ag(e);var o=xN.test(e);return o||MN.test(e)?PN(e.slice(2),o?2:8):AN.test(e)?xg:+e}var Mg=1/0,vN=17976931348623157e292;function Zo(e){if(!e)return e===0?e:0;if(e=Rn(e),e===Mg||e===-Mg){var t=e<0?-1:1;return t*vN}return e===e?e:0}function We(e){var t=Zo(e),o=t%1;return t===t?o?t-o:t:0}var ON="Expected a function";function IN(e,t){if(typeof t!="function")throw new TypeError(ON);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function nn(e){return e}var DN="[object AsyncFunction]",RN="[object Function]",LN="[object GeneratorFunction]",VN="[object Proxy]";function Xo(e){if(!$t(e))return!1;var t=tn(e);return t==RN||t==LN||t==DN||t==VN}var nc=Lt["__core-js_shared__"],Pg=function(){var e=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function FN(e){return!!Pg&&Pg in e}var zN=Function.prototype,HN=zN.toString;function la(e){if(e!=null){try{return HN.call(e)}catch{}try{return e+""}catch{}}return""}var WN=/[\\^$.*+?()[\]{}|]/g,KN=/^\[object .+?Constructor\]$/,jN=Function.prototype,UN=Object.prototype,GN=jN.toString,YN=UN.hasOwnProperty,qN=RegExp("^"+GN.call(YN).replace(WN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vg(e){if(!$t(e)||FN(e))return!1;var t=Xo(e)?qN:KN;return t.test(la(e))}function ZN(e,t){return e?.[t]}function ca(e,t){var o=ZN(e,t);return vg(o)?o:void 0}var hs=ca(Lt,"WeakMap"),oc=hs&&new hs,Og=oc?function(e,t){return oc.set(e,t),e}:nn,Ig=Object.create,Za=function(){function e(){}return function(t){if(!$t(t))return{};if(Ig)return Ig(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();function ps(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Za(e.prototype),r=e.apply(o,t);return $t(r)?r:o}}var XN=1;function JN(e,t,o){var r=t&XN,a=ps(e);function i(){var s=this&&this!==Lt&&this instanceof i?a:e;return s.apply(r?o:this,arguments)}return i}function kn(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var QN=Math.max;function Dg(e,t,o,r){for(var a=-1,i=e.length,s=o.length,l=-1,c=t.length,d=QN(i-s,0),u=Array(c+d),f=!r;++l<c;)u[l]=t[l];for(;++a<s;)(f||a<i)&&(u[o[a]]=e[a]);for(;d--;)u[l++]=e[a++];return u}var e_=Math.max;function Rg(e,t,o,r){for(var a=-1,i=e.length,s=-1,l=o.length,c=-1,d=t.length,u=e_(i-l,0),f=Array(u+d),h=!r;++a<u;)f[a]=e[a];for(var p=a;++c<d;)f[p+c]=t[c];for(;++s<l;)(h||a<i)&&(f[p+o[s]]=e[a++]);return f}function t_(e,t){for(var o=e.length,r=0;o--;)e[o]===t&&++r;return r}function rc(){}var n_=4294967295;function Ye(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n_,this.__views__=[]}Ye.prototype=Za(rc.prototype),Ye.prototype.constructor=Ye;function lf(){}var cf=oc?function(e){return oc.get(e)}:lf,Xa={},o_=Object.prototype,r_=o_.hasOwnProperty;function ac(e){for(var t=e.name+"",o=Xa[t],r=r_.call(Xa,t)?o.length:0;r--;){var a=o[r],i=a.func;if(i==null||i==e)return a.name}return t}function Ln(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Ln.prototype=Za(rc.prototype),Ln.prototype.constructor=Ln;function cn(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}function Lg(e){if(e instanceof Ye)return e.clone();var t=new Ln(e.__wrapped__,e.__chain__);return t.__actions__=cn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var a_=Object.prototype,i_=a_.hasOwnProperty;function D(e){if(St(e)&&!Fe(e)&&!(e instanceof Ye)){if(e instanceof Ln)return e;if(i_.call(e,"__wrapped__"))return Lg(e)}return new Ln(e)}D.prototype=rc.prototype,D.prototype.constructor=D;function df(e){var t=ac(e),o=D[t];if(typeof o!="function"||!(t in Ye.prototype))return!1;if(e===o)return!0;var r=cf(o);return!!r&&e===r[0]}var s_=800,l_=16,c_=Date.now;function Vg(e){var t=0,o=0;return function(){var r=c_(),a=l_-(r-o);if(o=r,a>0){if(++t>=s_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Fg=Vg(Og),d_=/\{\n\/\* \[wrapped with (.+)\] \*/,u_=/,? & /;function f_(e){var t=e.match(d_);return t?t[1].split(u_):[]}var h_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function p_(e,t){var o=t.length;if(!o)return e;var r=o-1;return t[r]=(o>1?"& ":"")+t[r],t=t.join(o>2?", ":" "),e.replace(h_,`{
/* [wrapped with `+t+`] */
`)}function uf(e){return function(){return e}}var ic=function(){try{var e=ca(Object,"defineProperty");return e({},"",{}),e}catch{}}(),m_=ic?function(e,t){return ic(e,"toString",{configurable:!0,enumerable:!1,value:uf(t),writable:!0})}:nn,ff=Vg(m_);function Vn(e,t){for(var o=-1,r=e==null?0:e.length;++o<r&&t(e[o],o,e)!==!1;);return e}function sc(e,t,o,r){for(var a=e.length,i=o+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function zg(e){return e!==e}function g_(e,t,o){for(var r=o-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Ja(e,t,o){return t===t?g_(e,t,o):sc(e,zg,o)}function lc(e,t){var o=e==null?0:e.length;return!!o&&Ja(e,t,0)>-1}var y_=1,b_=2,C_=8,w_=16,$_=32,k_=64,S_=128,E_=256,B_=512,N_=[["ary",S_],["bind",y_],["bindKey",b_],["curry",C_],["curryRight",w_],["flip",B_],["partial",$_],["partialRight",k_],["rearg",E_]];function __(e,t){return Vn(N_,function(o){var r="_."+o[0];t&o[1]&&!lc(e,r)&&e.push(r)}),e.sort()}function Hg(e,t,o){var r=t+"";return ff(e,p_(r,__(f_(r),o)))}var T_=1,A_=2,x_=4,M_=8,Wg=32,Kg=64;function jg(e,t,o,r,a,i,s,l,c,d){var u=t&M_,f=u?s:void 0,h=u?void 0:s,p=u?i:void 0,m=u?void 0:i;t|=u?Wg:Kg,t&=~(u?Kg:Wg),t&x_||(t&=~(T_|A_));var g=[e,t,a,p,f,m,h,l,c,d],y=o.apply(void 0,g);return df(e)&&Fg(y,g),y.placeholder=r,Hg(y,e,t)}function Qa(e){var t=e;return t.placeholder}var P_=9007199254740991,v_=/^(?:0|[1-9]\d*)$/;function Jo(e,t){var o=typeof e;return t=t??P_,!!t&&(o=="number"||o!="symbol"&&v_.test(e))&&e>-1&&e%1==0&&e<t}var O_=Math.min;function I_(e,t){for(var o=e.length,r=O_(t.length,o),a=cn(e);r--;){var i=t[r];e[r]=Jo(i,o)?a[i]:void 0}return e}var Ug="__lodash_placeholder__";function Br(e,t){for(var o=-1,r=e.length,a=0,i=[];++o<r;){var s=e[o];(s===t||s===Ug)&&(e[o]=Ug,i[a++]=o)}return i}var D_=1,R_=2,L_=8,V_=16,F_=128,z_=512;function cc(e,t,o,r,a,i,s,l,c,d){var u=t&F_,f=t&D_,h=t&R_,p=t&(L_|V_),m=t&z_,g=h?void 0:ps(e);function y(){for(var w=arguments.length,$=Array(w),C=w;C--;)$[C]=arguments[C];if(p)var b=Qa(y),k=t_($,b);if(r&&($=Dg($,r,a,p)),i&&($=Rg($,i,s,p)),w-=k,p&&w<d){var S=Br($,b);return jg(e,t,cc,y.placeholder,o,$,S,l,c,d-w)}var E=f?o:this,N=h?E[e]:e;return w=$.length,l?$=I_($,l):m&&w>1&&$.reverse(),u&&c<w&&($.length=c),this&&this!==Lt&&this instanceof y&&(N=g||ps(N)),N.apply(E,$)}return y}function H_(e,t,o){var r=ps(e);function a(){for(var i=arguments.length,s=Array(i),l=i,c=Qa(a);l--;)s[l]=arguments[l];var d=i<3&&s[0]!==c&&s[i-1]!==c?[]:Br(s,c);if(i-=d.length,i<o)return jg(e,t,cc,a.placeholder,void 0,s,d,void 0,void 0,o-i);var u=this&&this!==Lt&&this instanceof a?r:e;return kn(u,this,s)}return a}var W_=1;function K_(e,t,o,r){var a=t&W_,i=ps(e);function s(){for(var l=-1,c=arguments.length,d=-1,u=r.length,f=Array(u+c),h=this&&this!==Lt&&this instanceof s?i:e;++d<u;)f[d]=r[d];for(;c--;)f[d++]=arguments[++l];return kn(h,a?o:this,f)}return s}var Gg="__lodash_placeholder__",hf=1,j_=2,U_=4,Yg=8,ms=128,qg=256,G_=Math.min;function Y_(e,t){var o=e[1],r=t[1],a=o|r,i=a<(hf|j_|ms),s=r==ms&&o==Yg||r==ms&&o==qg&&e[7].length<=t[8]||r==(ms|qg)&&t[7].length<=t[8]&&o==Yg;if(!(i||s))return e;r&hf&&(e[2]=t[2],a|=o&hf?0:U_);var l=t[3];if(l){var c=e[3];e[3]=c?Dg(c,l,t[4]):l,e[4]=c?Br(e[3],Gg):t[4]}return l=t[5],l&&(c=e[5],e[5]=c?Rg(c,l,t[6]):l,e[6]=c?Br(e[5],Gg):t[6]),l=t[7],l&&(e[7]=l),r&ms&&(e[8]=e[8]==null?t[8]:G_(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var q_="Expected a function",Zg=1,Z_=2,pf=8,mf=16,gf=32,Xg=64,Jg=Math.max;function Qo(e,t,o,r,a,i,s,l){var c=t&Z_;if(!c&&typeof e!="function")throw new TypeError(q_);var d=r?r.length:0;if(d||(t&=~(gf|Xg),r=a=void 0),s=s===void 0?s:Jg(We(s),0),l=l===void 0?l:We(l),d-=a?a.length:0,t&Xg){var u=r,f=a;r=a=void 0}var h=c?void 0:cf(e),p=[e,t,o,r,a,u,f,i,s,l];if(h&&Y_(p,h),e=p[0],t=p[1],o=p[2],r=p[3],a=p[4],l=p[9]=p[9]===void 0?c?0:e.length:Jg(p[9]-d,0),!l&&t&(pf|mf)&&(t&=~(pf|mf)),!t||t==Zg)var m=JN(e,t,o);else t==pf||t==mf?m=H_(e,t,l):(t==gf||t==(Zg|gf))&&!a.length?m=K_(e,t,o,r):m=cc.apply(void 0,p);var g=h?Og:Fg;return Hg(g(m,p),e,t)}var X_=128;function Qg(e,t,o){return t=o?void 0:t,t=e&&t==null?e.length:t,Qo(e,X_,void 0,void 0,void 0,void 0,t)}function er(e,t,o){t=="__proto__"&&ic?ic(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ro(e,t){return e===t||e!==e&&t!==t}var J_=Object.prototype,Q_=J_.hasOwnProperty;function gs(e,t,o){var r=e[t];(!(Q_.call(e,t)&&ro(r,o))||o===void 0&&!(t in e))&&er(e,t,o)}function _o(e,t,o,r){var a=!o;o||(o={});for(var i=-1,s=t.length;++i<s;){var l=t[i],c=r?r(o[l],e[l],l,o,e):void 0;c===void 0&&(c=e[l]),a?er(o,l,c):gs(o,l,c)}return o}var e2=Math.max;function t2(e,t,o){return t=e2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=e2(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=o(s),kn(e,this,l)}}function je(e,t){return ff(t2(e,t,nn),e+"")}var eT=9007199254740991;function dc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eT}function dn(e){return e!=null&&dc(e.length)&&!Xo(e)}function on(e,t,o){if(!$t(o))return!1;var r=typeof t;return(r=="number"?dn(o)&&Jo(t,o.length):r=="string"&&t in o)?ro(o[t],e):!1}function ei(e){return je(function(t,o){var r=-1,a=o.length,i=a>1?o[a-1]:void 0,s=a>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&on(o[0],o[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=o[r];l&&e(t,l,r,i)}return t})}var tT=Object.prototype;function ys(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||tT;return e===o}function yf(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}var nT="[object Arguments]";function n2(e){return St(e)&&tn(e)==nT}var o2=Object.prototype,oT=o2.hasOwnProperty,rT=o2.propertyIsEnumerable,da=n2(function(){return arguments}())?n2:function(e){return St(e)&&oT.call(e,"callee")&&!rT.call(e,"callee")};function bf(){return!1}var r2=typeof A=="object"&&A&&!A.nodeType&&A,a2=r2&&typeof module=="object"&&module&&!module.nodeType&&module,aT=a2&&a2.exports===r2,i2=aT?Lt.Buffer:void 0,iT=i2?i2.isBuffer:void 0,Nr=iT||bf,sT="[object Arguments]",lT="[object Array]",cT="[object Boolean]",dT="[object Date]",uT="[object Error]",fT="[object Function]",hT="[object Map]",pT="[object Number]",mT="[object Object]",gT="[object RegExp]",yT="[object Set]",bT="[object String]",CT="[object WeakMap]",wT="[object ArrayBuffer]",$T="[object DataView]",kT="[object Float32Array]",ST="[object Float64Array]",ET="[object Int8Array]",BT="[object Int16Array]",NT="[object Int32Array]",_T="[object Uint8Array]",TT="[object Uint8ClampedArray]",AT="[object Uint16Array]",xT="[object Uint32Array]",yt={};yt[kT]=yt[ST]=yt[ET]=yt[BT]=yt[NT]=yt[_T]=yt[TT]=yt[AT]=yt[xT]=!0,yt[sT]=yt[lT]=yt[wT]=yt[cT]=yt[$T]=yt[dT]=yt[uT]=yt[fT]=yt[hT]=yt[pT]=yt[mT]=yt[gT]=yt[yT]=yt[bT]=yt[CT]=!1;function MT(e){return St(e)&&dc(e.length)&&!!yt[tn(e)]}function Sn(e){return function(t){return e(t)}}var s2=typeof A=="object"&&A&&!A.nodeType&&A,bs=s2&&typeof module=="object"&&module&&!module.nodeType&&module,PT=bs&&bs.exports===s2,Cf=PT&&kg.process,Fn=function(){try{var e=bs&&bs.require&&bs.require("util").types;return e||Cf&&Cf.binding&&Cf.binding("util")}catch{}}(),l2=Fn&&Fn.isTypedArray,ti=l2?Sn(l2):MT,vT=Object.prototype,OT=vT.hasOwnProperty;function c2(e,t){var o=Fe(e),r=!o&&da(e),a=!o&&!r&&Nr(e),i=!o&&!r&&!a&&ti(e),s=o||r||a||i,l=s?yf(e.length,String):[],c=l.length;for(var d in e)(t||OT.call(e,d))&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Jo(d,c)))&&l.push(d);return l}function d2(e,t){return function(o){return e(t(o))}}var IT=d2(Object.keys,Object),DT=Object.prototype,RT=DT.hasOwnProperty;function wf(e){if(!ys(e))return IT(e);var t=[];for(var o in Object(e))RT.call(e,o)&&o!="constructor"&&t.push(o);return t}function Mt(e){return dn(e)?c2(e):wf(e)}var LT=Object.prototype,VT=LT.hasOwnProperty,FT=ei(function(e,t){if(ys(t)||dn(t)){_o(t,Mt(t),e);return}for(var o in t)VT.call(t,o)&&gs(e,o,t[o])});function zT(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var HT=Object.prototype,WT=HT.hasOwnProperty;function KT(e){if(!$t(e))return zT(e);var t=ys(e),o=[];for(var r in e)r=="constructor"&&(t||!WT.call(e,r))||o.push(r);return o}function un(e){return dn(e)?c2(e,!0):KT(e)}var u2=ei(function(e,t){_o(t,un(t),e)}),uc=ei(function(e,t,o,r){_o(t,un(t),e,r)}),jT=ei(function(e,t,o,r){_o(t,Mt(t),e,r)}),UT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GT=/^\w*$/;function $f(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||wn(e)?!0:GT.test(e)||!UT.test(e)||t!=null&&e in Object(t)}var Cs=ca(Object,"create");function YT(){this.__data__=Cs?Cs(null):{},this.size=0}function qT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZT="__lodash_hash_undefined__",XT=Object.prototype,JT=XT.hasOwnProperty;function QT(e){var t=this.__data__;if(Cs){var o=t[e];return o===ZT?void 0:o}return JT.call(t,e)?t[e]:void 0}var eA=Object.prototype,tA=eA.hasOwnProperty;function nA(e){var t=this.__data__;return Cs?t[e]!==void 0:tA.call(t,e)}var oA="__lodash_hash_undefined__";function rA(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Cs&&t===void 0?oA:t,this}function ua(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}ua.prototype.clear=YT,ua.prototype.delete=qT,ua.prototype.get=QT,ua.prototype.has=nA,ua.prototype.set=rA;function aA(){this.__data__=[],this.size=0}function fc(e,t){for(var o=e.length;o--;)if(ro(e[o][0],t))return o;return-1}var iA=Array.prototype,sA=iA.splice;function lA(e){var t=this.__data__,o=fc(t,e);if(o<0)return!1;var r=t.length-1;return o==r?t.pop():sA.call(t,o,1),--this.size,!0}function cA(e){var t=this.__data__,o=fc(t,e);return o<0?void 0:t[o][1]}function dA(e){return fc(this.__data__,e)>-1}function uA(e,t){var o=this.__data__,r=fc(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function tr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}tr.prototype.clear=aA,tr.prototype.delete=lA,tr.prototype.get=cA,tr.prototype.has=dA,tr.prototype.set=uA;var ws=ca(Lt,"Map");function fA(){this.size=0,this.__data__={hash:new ua,map:new(ws||tr),string:new ua}}function hA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hc(e,t){var o=e.__data__;return hA(t)?o[typeof t=="string"?"string":"hash"]:o.map}function pA(e){var t=hc(this,e).delete(e);return this.size-=t?1:0,t}function mA(e){return hc(this,e).get(e)}function gA(e){return hc(this,e).has(e)}function yA(e,t){var o=hc(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}function nr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}nr.prototype.clear=fA,nr.prototype.delete=pA,nr.prototype.get=mA,nr.prototype.has=gA,nr.prototype.set=yA;var bA="Expected a function";function $s(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bA);var o=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=o.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return o.cache=i.set(a,s)||i,s};return o.cache=new($s.Cache||nr),o}$s.Cache=nr;var CA=500;function wA(e){var t=$s(e,function(r){return o.size===CA&&o.clear(),r}),o=t.cache;return t}var $A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kA=/\\(\\)?/g,f2=wA(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($A,function(o,r,a,i){t.push(a?i.replace(kA,"$1"):r||o)}),t});function ot(e){return e==null?"":$n(e)}function _r(e,t){return Fe(e)?e:$f(e,t)?[e]:f2(ot(e))}var SA=1/0;function To(e){if(typeof e=="string"||wn(e))return e;var t=e+"";return t=="0"&&1/e==-SA?"-0":t}function fa(e,t){t=_r(t,e);for(var o=0,r=t.length;e!=null&&o<r;)e=e[To(t[o++])];return o&&o==r?e:void 0}function rt(e,t,o){var r=e==null?void 0:fa(e,t);return r===void 0?o:r}function kf(e,t){for(var o=-1,r=t.length,a=Array(r),i=e==null;++o<r;)a[o]=i?void 0:rt(e,t[o]);return a}function Tr(e,t){for(var o=-1,r=t.length,a=e.length;++o<r;)e[a+o]=t[o];return e}var h2=qt?qt.isConcatSpreadable:void 0;function EA(e){return Fe(e)||da(e)||!!(h2&&e&&e[h2])}function Wt(e,t,o,r,a){var i=-1,s=e.length;for(o||(o=EA),a||(a=[]);++i<s;){var l=e[i];t>0&&o(l)?t>1?Wt(l,t-1,o,r,a):Tr(a,l):r||(a[a.length]=l)}return a}function Sf(e){var t=e==null?0:e.length;return t?Wt(e,1):[]}function or(e){return ff(t2(e,void 0,Sf),e+"")}var BA=or(kf),pc=d2(Object.getPrototypeOf,Object),NA="[object Object]",_A=Function.prototype,TA=Object.prototype,p2=_A.toString,AA=TA.hasOwnProperty,xA=p2.call(Object);function ks(e){if(!St(e)||tn(e)!=NA)return!1;var t=pc(e);if(t===null)return!0;var o=AA.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&p2.call(o)==xA}var MA="[object DOMException]",PA="[object Error]";function Ef(e){if(!St(e))return!1;var t=tn(e);return t==PA||t==MA||typeof e.message=="string"&&typeof e.name=="string"&&!ks(e)}var m2=je(function(e,t){try{return kn(e,void 0,t)}catch(o){return Ef(o)?o:new Error(o)}}),vA="Expected a function";function g2(e,t){var o;if(typeof t!="function")throw new TypeError(vA);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=void 0),o}}var OA=1,IA=32,mc=je(function(e,t,o){var r=OA;if(o.length){var a=Br(o,Qa(mc));r|=IA}return Qo(e,r,t,o,a)});mc.placeholder={};var DA=or(function(e,t){return Vn(t,function(o){o=To(o),er(e,o,mc(e[o],e))}),e}),RA=1,LA=2,VA=32,Bf=je(function(e,t,o){var r=RA|LA;if(o.length){var a=Br(o,Qa(Bf));r|=VA}return Qo(t,r,e,o,a)});Bf.placeholder={};function zn(e,t,o){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),o=o>a?a:o,o<0&&(o+=a),a=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}function Ar(e,t,o){var r=e.length;return o=o===void 0?r:o,!t&&o>=r?e:zn(e,t,o)}var FA="\\ud800-\\udfff",zA="\\u0300-\\u036f",HA="\\ufe20-\\ufe2f",WA="\\u20d0-\\u20ff",KA=zA+HA+WA,jA="\\ufe0e\\ufe0f",UA="\\u200d",GA=RegExp("["+UA+FA+KA+jA+"]");function ni(e){return GA.test(e)}function YA(e){return e.split("")}var y2="\\ud800-\\udfff",qA="\\u0300-\\u036f",ZA="\\ufe20-\\ufe2f",XA="\\u20d0-\\u20ff",JA=qA+ZA+XA,QA="\\ufe0e\\ufe0f",ex="["+y2+"]",Nf="["+JA+"]",_f="\\ud83c[\\udffb-\\udfff]",tx="(?:"+Nf+"|"+_f+")",b2="[^"+y2+"]",C2="(?:\\ud83c[\\udde6-\\uddff]){2}",w2="[\\ud800-\\udbff][\\udc00-\\udfff]",nx="\\u200d",$2=tx+"?",k2="["+QA+"]?",ox="(?:"+nx+"(?:"+[b2,C2,w2].join("|")+")"+k2+$2+")*",rx=k2+$2+ox,ax="(?:"+[b2+Nf+"?",Nf,C2,w2,ex].join("|")+")",ix=RegExp(_f+"(?="+_f+")|"+ax+rx,"g");function sx(e){return e.match(ix)||[]}function ao(e){return ni(e)?sx(e):YA(e)}function S2(e){return function(t){t=ot(t);var o=ni(t)?ao(t):void 0,r=o?o[0]:t.charAt(0),a=o?Ar(o,1).join(""):t.slice(1);return r[e]()+a}}var Tf=S2("toUpperCase");function E2(e){return Tf(ot(e).toLowerCase())}function Af(e,t,o,r){var a=-1,i=e==null?0:e.length;for(r&&i&&(o=e[++a]);++a<i;)o=t(o,e[a],a,e);return o}function xf(e){return function(t){return e?.[t]}}var lx={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},cx=xf(lx),dx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ux="\\u0300-\\u036f",fx="\\ufe20-\\ufe2f",hx="\\u20d0-\\u20ff",px=ux+fx+hx,mx="["+px+"]",gx=RegExp(mx,"g");function B2(e){return e=ot(e),e&&e.replace(dx,cx).replace(gx,"")}var yx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bx(e){return e.match(yx)||[]}var Cx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function wx(e){return Cx.test(e)}var N2="\\ud800-\\udfff",$x="\\u0300-\\u036f",kx="\\ufe20-\\ufe2f",Sx="\\u20d0-\\u20ff",Ex=$x+kx+Sx,_2="\\u2700-\\u27bf",T2="a-z\\xdf-\\xf6\\xf8-\\xff",Bx="\\xac\\xb1\\xd7\\xf7",Nx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_x="\\u2000-\\u206f",Tx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",A2="A-Z\\xc0-\\xd6\\xd8-\\xde",Ax="\\ufe0e\\ufe0f",x2=Bx+Nx+_x+Tx,M2="['\u2019]",P2="["+x2+"]",xx="["+Ex+"]",v2="\\d+",Mx="["+_2+"]",O2="["+T2+"]",I2="[^"+N2+x2+v2+_2+T2+A2+"]",Px="\\ud83c[\\udffb-\\udfff]",vx="(?:"+xx+"|"+Px+")",Ox="[^"+N2+"]",D2="(?:\\ud83c[\\udde6-\\uddff]){2}",R2="[\\ud800-\\udbff][\\udc00-\\udfff]",oi="["+A2+"]",Ix="\\u200d",L2="(?:"+O2+"|"+I2+")",Dx="(?:"+oi+"|"+I2+")",V2="(?:"+M2+"(?:d|ll|m|re|s|t|ve))?",F2="(?:"+M2+"(?:D|LL|M|RE|S|T|VE))?",z2=vx+"?",H2="["+Ax+"]?",Rx="(?:"+Ix+"(?:"+[Ox,D2,R2].join("|")+")"+H2+z2+")*",Lx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fx=H2+z2+Rx,zx="(?:"+[Mx,D2,R2].join("|")+")"+Fx,Hx=RegExp([oi+"?"+O2+"+"+V2+"(?="+[P2,oi,"$"].join("|")+")",Dx+"+"+F2+"(?="+[P2,oi+L2,"$"].join("|")+")",oi+"?"+L2+"+"+V2,oi+"+"+F2,Vx,Lx,v2,zx].join("|"),"g");function Wx(e){return e.match(Hx)||[]}function W2(e,t,o){return e=ot(e),t=o?void 0:t,t===void 0?wx(e)?Wx(e):bx(e):e.match(t)||[]}var Kx="['\u2019]",jx=RegExp(Kx,"g");function ri(e){return function(t){return Af(W2(B2(t).replace(jx,"")),e,"")}}var Ux=ri(function(e,t,o){return t=t.toLowerCase(),e+(o?E2(t):t)});function gc(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}var Gx=Lt.isFinite,Yx=Math.min;function Mf(e){var t=Math[e];return function(o,r){if(o=Rn(o),r=r==null?0:Yx(We(r),292),r&&Gx(o)){var a=(ot(o)+"e").split("e"),i=t(a[0]+"e"+(+a[1]+r));return a=(ot(i)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(o)}}var qx=Mf("ceil");function K2(e){var t=D(e);return t.__chain__=!0,t}var Zx=Math.ceil,Xx=Math.max;function Jx(e,t,o){(o?on(e,t,o):t===void 0)?t=1:t=Xx(We(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,i=0,s=Array(Zx(r/t));a<r;)s[i++]=zn(e,a,a+=t);return s}function ha(e,t,o){return e===e&&(o!==void 0&&(e=e<=o?e:o),t!==void 0&&(e=e>=t?e:t)),e}function Qx(e,t,o){return o===void 0&&(o=t,t=void 0),o!==void 0&&(o=Rn(o),o=o===o?o:0),t!==void 0&&(t=Rn(t),t=t===t?t:0),ha(Rn(e),t,o)}function eM(){this.__data__=new tr,this.size=0}function tM(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function nM(e){return this.__data__.get(e)}function oM(e){return this.__data__.has(e)}var rM=200;function aM(e,t){var o=this.__data__;if(o instanceof tr){var r=o.__data__;if(!ws||r.length<rM-1)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new nr(r)}return o.set(e,t),this.size=o.size,this}function io(e){var t=this.__data__=new tr(e);this.size=t.size}io.prototype.clear=eM,io.prototype.delete=tM,io.prototype.get=nM,io.prototype.has=oM,io.prototype.set=aM;function j2(e,t){return e&&_o(t,Mt(t),e)}function iM(e,t){return e&&_o(t,un(t),e)}var U2=typeof A=="object"&&A&&!A.nodeType&&A,G2=U2&&typeof module=="object"&&module&&!module.nodeType&&module,sM=G2&&G2.exports===U2,Y2=sM?Lt.Buffer:void 0,q2=Y2?Y2.allocUnsafe:void 0;function Z2(e,t){if(t)return e.slice();var o=e.length,r=q2?q2(o):new e.constructor(o);return e.copy(r),r}function xr(e,t){for(var o=-1,r=e==null?0:e.length,a=0,i=[];++o<r;){var s=e[o];t(s,o,e)&&(i[a++]=s)}return i}function Pf(){return[]}var lM=Object.prototype,cM=lM.propertyIsEnumerable,X2=Object.getOwnPropertySymbols,vf=X2?function(e){return e==null?[]:(e=Object(e),xr(X2(e),function(t){return cM.call(e,t)}))}:Pf;function dM(e,t){return _o(e,vf(e),t)}var uM=Object.getOwnPropertySymbols,J2=uM?function(e){for(var t=[];e;)Tr(t,vf(e)),e=pc(e);return t}:Pf;function fM(e,t){return _o(e,J2(e),t)}function Q2(e,t,o){var r=t(e);return Fe(e)?r:Tr(r,o(e))}function Of(e){return Q2(e,Mt,vf)}function If(e){return Q2(e,un,J2)}var Df=ca(Lt,"DataView"),Rf=ca(Lt,"Promise"),ai=ca(Lt,"Set"),ey="[object Map]",hM="[object Object]",ty="[object Promise]",ny="[object Set]",oy="[object WeakMap]",ry="[object DataView]",pM=la(Df),mM=la(ws),gM=la(Rf),yM=la(ai),bM=la(hs),pa=tn;(Df&&pa(new Df(new ArrayBuffer(1)))!=ry||ws&&pa(new ws)!=ey||Rf&&pa(Rf.resolve())!=ty||ai&&pa(new ai)!=ny||hs&&pa(new hs)!=oy)&&(pa=function(e){var t=tn(e),o=t==hM?e.constructor:void 0,r=o?la(o):"";if(r)switch(r){case pM:return ry;case mM:return ey;case gM:return ty;case yM:return ny;case bM:return oy}return t});var Ao=pa,CM=Object.prototype,wM=CM.hasOwnProperty;function $M(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&wM.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var yc=Lt.Uint8Array;function Lf(e){var t=new e.constructor(e.byteLength);return new yc(t).set(new yc(e)),t}function kM(e,t){var o=t?Lf(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var SM=/\w*$/;function EM(e){var t=new e.constructor(e.source,SM.exec(e));return t.lastIndex=e.lastIndex,t}var ay=qt?qt.prototype:void 0,iy=ay?ay.valueOf:void 0;function BM(e){return iy?Object(iy.call(e)):{}}function sy(e,t){var o=t?Lf(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var NM="[object Boolean]",_M="[object Date]",TM="[object Map]",AM="[object Number]",xM="[object RegExp]",MM="[object Set]",PM="[object String]",vM="[object Symbol]",OM="[object ArrayBuffer]",IM="[object DataView]",DM="[object Float32Array]",RM="[object Float64Array]",LM="[object Int8Array]",VM="[object Int16Array]",FM="[object Int32Array]",zM="[object Uint8Array]",HM="[object Uint8ClampedArray]",WM="[object Uint16Array]",KM="[object Uint32Array]";function jM(e,t,o){var r=e.constructor;switch(t){case OM:return Lf(e);case NM:case _M:return new r(+e);case IM:return kM(e,o);case DM:case RM:case LM:case VM:case FM:case zM:case HM:case WM:case KM:return sy(e,o);case TM:return new r;case AM:case PM:return new r(e);case xM:return EM(e);case MM:return new r;case vM:return BM(e)}}function ly(e){return typeof e.constructor=="function"&&!ys(e)?Za(pc(e)):{}}var UM="[object Map]";function GM(e){return St(e)&&Ao(e)==UM}var cy=Fn&&Fn.isMap,dy=cy?Sn(cy):GM,YM="[object Set]";function qM(e){return St(e)&&Ao(e)==YM}var uy=Fn&&Fn.isSet,fy=uy?Sn(uy):qM,ZM=1,XM=2,JM=4,hy="[object Arguments]",QM="[object Array]",eP="[object Boolean]",tP="[object Date]",nP="[object Error]",py="[object Function]",oP="[object GeneratorFunction]",rP="[object Map]",aP="[object Number]",my="[object Object]",iP="[object RegExp]",sP="[object Set]",lP="[object String]",cP="[object Symbol]",dP="[object WeakMap]",uP="[object ArrayBuffer]",fP="[object DataView]",hP="[object Float32Array]",pP="[object Float64Array]",mP="[object Int8Array]",gP="[object Int16Array]",yP="[object Int32Array]",bP="[object Uint8Array]",CP="[object Uint8ClampedArray]",wP="[object Uint16Array]",$P="[object Uint32Array]",ht={};ht[hy]=ht[QM]=ht[uP]=ht[fP]=ht[eP]=ht[tP]=ht[hP]=ht[pP]=ht[mP]=ht[gP]=ht[yP]=ht[rP]=ht[aP]=ht[my]=ht[iP]=ht[sP]=ht[lP]=ht[cP]=ht[bP]=ht[CP]=ht[wP]=ht[$P]=!0,ht[nP]=ht[py]=ht[dP]=!1;function Hn(e,t,o,r,a,i){var s,l=t&ZM,c=t&XM,d=t&JM;if(o&&(s=a?o(e,r,a,i):o(e)),s!==void 0)return s;if(!$t(e))return e;var u=Fe(e);if(u){if(s=$M(e),!l)return cn(e,s)}else{var f=Ao(e),h=f==py||f==oP;if(Nr(e))return Z2(e,l);if(f==my||f==hy||h&&!a){if(s=c||h?{}:ly(e),!l)return c?fM(e,iM(s,e)):dM(e,j2(s,e))}else{if(!ht[f])return a?e:{};s=jM(e,f,l)}}i||(i=new io);var p=i.get(e);if(p)return p;i.set(e,s),fy(e)?e.forEach(function(y){s.add(Hn(y,t,o,y,e,i))}):dy(e)&&e.forEach(function(y,w){s.set(w,Hn(y,t,o,w,e,i))});var m=d?c?If:Of:c?un:Mt,g=u?void 0:m(e);return Vn(g||e,function(y,w){g&&(w=y,y=e[w]),gs(s,w,Hn(y,t,o,w,e,i))}),s}var kP=4;function SP(e){return Hn(e,kP)}var EP=1,BP=4;function rr(e){return Hn(e,EP|BP)}var NP=1,_P=4;function TP(e,t){return t=typeof t=="function"?t:void 0,Hn(e,NP|_P,t)}var AP=4;function xP(e,t){return t=typeof t=="function"?t:void 0,Hn(e,AP,t)}function MP(){return new Ln(this.value(),this.__chain__)}function PP(e){for(var t=-1,o=e==null?0:e.length,r=0,a=[];++t<o;){var i=e[t];i&&(a[r++]=i)}return a}function vP(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),o=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Tr(Fe(o)?cn(o):[o],Wt(t,1))}var OP="__lodash_hash_undefined__";function IP(e){return this.__data__.set(e,OP),this}function DP(e){return this.__data__.has(e)}function ma(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new nr;++t<o;)this.add(e[t])}ma.prototype.add=ma.prototype.push=IP,ma.prototype.has=DP;function Vf(e,t){for(var o=-1,r=e==null?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1}function Ss(e,t){return e.has(t)}var RP=1,LP=2;function gy(e,t,o,r,a,i){var s=o&RP,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=i.get(e),u=i.get(t);if(d&&u)return d==t&&u==e;var f=-1,h=!0,p=o&LP?new ma:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var m=e[f],g=t[f];if(r)var y=s?r(g,m,f,t,e,i):r(m,g,f,e,t,i);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!Vf(t,function(w,$){if(!Ss(p,$)&&(m===w||a(m,w,o,r,i)))return p.push($)})){h=!1;break}}else if(!(m===g||a(m,g,o,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function Ff(e){var t=-1,o=Array(e.size);return e.forEach(function(r,a){o[++t]=[a,r]}),o}function bc(e){var t=-1,o=Array(e.size);return e.forEach(function(r){o[++t]=r}),o}var VP=1,FP=2,zP="[object Boolean]",HP="[object Date]",WP="[object Error]",KP="[object Map]",jP="[object Number]",UP="[object RegExp]",GP="[object Set]",YP="[object String]",qP="[object Symbol]",ZP="[object ArrayBuffer]",XP="[object DataView]",yy=qt?qt.prototype:void 0,zf=yy?yy.valueOf:void 0;function JP(e,t,o,r,a,i,s){switch(o){case XP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZP:return!(e.byteLength!=t.byteLength||!i(new yc(e),new yc(t)));case zP:case HP:case jP:return ro(+e,+t);case WP:return e.name==t.name&&e.message==t.message;case UP:case YP:return e==t+"";case KP:var l=Ff;case GP:var c=r&VP;if(l||(l=bc),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;r|=FP,s.set(e,t);var u=gy(l(e),l(t),r,a,i,s);return s.delete(e),u;case qP:if(zf)return zf.call(e)==zf.call(t)}return!1}var QP=1,ev=Object.prototype,tv=ev.hasOwnProperty;function nv(e,t,o,r,a,i){var s=o&QP,l=Of(e),c=l.length,d=Of(t),u=d.length;if(c!=u&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in t:tv.call(t,h)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var y=s;++f<c;){h=l[f];var w=e[h],$=t[h];if(r)var C=s?r($,w,h,t,e,i):r(w,$,h,e,t,i);if(!(C===void 0?w===$||a(w,$,o,r,i):C)){g=!1;break}y||(y=h=="constructor")}if(g&&!y){var b=e.constructor,k=t.constructor;b!=k&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof k=="function"&&k instanceof k)&&(g=!1)}return i.delete(e),i.delete(t),g}var ov=1,by="[object Arguments]",Cy="[object Array]",Cc="[object Object]",rv=Object.prototype,wy=rv.hasOwnProperty;function av(e,t,o,r,a,i){var s=Fe(e),l=Fe(t),c=s?Cy:Ao(e),d=l?Cy:Ao(t);c=c==by?Cc:c,d=d==by?Cc:d;var u=c==Cc,f=d==Cc,h=c==d;if(h&&Nr(e)){if(!Nr(t))return!1;s=!0,u=!1}if(h&&!u)return i||(i=new io),s||ti(e)?gy(e,t,o,r,a,i):JP(e,t,c,o,r,a,i);if(!(o&ov)){var p=u&&wy.call(e,"__wrapped__"),m=f&&wy.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,y=m?t.value():t;return i||(i=new io),a(g,y,o,r,i)}}return h?(i||(i=new io),nv(e,t,o,r,a,i)):!1}function Es(e,t,o,r,a){return e===t?!0:e==null||t==null||!St(e)&&!St(t)?e!==e&&t!==t:av(e,t,o,r,Es,a)}var iv=1,sv=2;function Hf(e,t,o,r){var a=o.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=o[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=o[a];var c=l[0],d=e[c],u=l[1];if(s&&l[2]){if(d===void 0&&!(c in e))return!1}else{var f=new io;if(r)var h=r(d,u,c,e,t,f);if(!(h===void 0?Es(u,d,iv|sv,r,f):h))return!1}}return!0}function $y(e){return e===e&&!$t(e)}function Wf(e){for(var t=Mt(e),o=t.length;o--;){var r=t[o],a=e[r];t[o]=[r,a,$y(a)]}return t}function ky(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function Sy(e){var t=Wf(e);return t.length==1&&t[0][2]?ky(t[0][0],t[0][1]):function(o){return o===e||Hf(o,e,t)}}function lv(e,t){return e!=null&&t in Object(e)}function Ey(e,t,o){t=_r(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=To(t[r]);if(!(i=e!=null&&o(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&dc(a)&&Jo(s,a)&&(Fe(e)||da(e)))}function Kf(e,t){return e!=null&&Ey(e,t,lv)}var cv=1,dv=2;function By(e,t){return $f(e)&&$y(t)?ky(To(e),t):function(o){var r=rt(o,e);return r===void 0&&r===t?Kf(o,e):Es(t,r,cv|dv)}}function jf(e){return function(t){return t?.[e]}}function uv(e){return function(t){return fa(t,e)}}function Ny(e){return $f(e)?jf(To(e)):uv(e)}function Ve(e){return typeof e=="function"?e:e==null?nn:typeof e=="object"?Fe(e)?By(e[0],e[1]):Sy(e):Ny(e)}var fv="Expected a function";function hv(e){var t=e==null?0:e.length,o=Ve;return e=t?wt(e,function(r){if(typeof r[1]!="function")throw new TypeError(fv);return[o(r[0]),r[1]]}):[],je(function(r){for(var a=-1;++a<t;){var i=e[a];if(kn(i[0],this,r))return kn(i[1],this,r)}})}function _y(e,t,o){var r=o.length;if(e==null)return!r;for(e=Object(e);r--;){var a=o[r],i=t[a],s=e[a];if(s===void 0&&!(a in e)||!i(s))return!1}return!0}function pv(e){var t=Mt(e);return function(o){return _y(o,e,t)}}var mv=1;function gv(e){return pv(Hn(e,mv))}function yv(e,t){return t==null||_y(e,t,Mt(t))}function bv(e,t,o,r){for(var a=-1,i=e==null?0:e.length;++a<i;){var s=e[a];t(r,s,o(s),e)}return r}function Ty(e){return function(t,o,r){for(var a=-1,i=Object(t),s=r(t),l=s.length;l--;){var c=s[e?l:++a];if(o(i[c],c,i)===!1)break}return t}}var Uf=Ty();function xo(e,t){return e&&Uf(e,t,Mt)}function Ay(e,t){return function(o,r){if(o==null)return o;if(!dn(o))return e(o,r);for(var a=o.length,i=t?a:-1,s=Object(o);(t?i--:++i<a)&&r(s[i],i,s)!==!1;);return o}}var Mr=Ay(xo);function Cv(e,t,o,r){return Mr(e,function(a,i,s){t(r,a,o(a),s)}),r}function wc(e,t){return function(o,r){var a=Fe(o)?bv:Cv,i=t?t():{};return a(o,e,Ve(r),i)}}var wv=Object.prototype,$v=wv.hasOwnProperty,kv=wc(function(e,t,o){$v.call(e,o)?++e[o]:er(e,o,1)});function Sv(e,t){var o=Za(e);return t==null?o:j2(o,t)}var Ev=8;function Gf(e,t,o){t=o?void 0:t;var r=Qo(e,Ev,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Gf.placeholder,r}Gf.placeholder={};var Bv=16;function Yf(e,t,o){t=o?void 0:t;var r=Qo(e,Bv,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Yf.placeholder,r}Yf.placeholder={};var $c=function(){return Lt.Date.now()},Nv="Expected a function",_v=Math.max,Tv=Math.min;function Zt(e,t,o){var r,a,i,s,l,c,d=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Nv);t=Rn(t)||0,$t(o)&&(u=!!o.leading,f="maxWait"in o,i=f?_v(Rn(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h);function p(S){var E=r,N=a;return r=a=void 0,d=S,s=e.apply(N,E),s}function m(S){return d=S,l=setTimeout(w,t),u?p(S):s}function g(S){var E=S-c,N=S-d,_=t-E;return f?Tv(_,i-N):_}function y(S){var E=S-c,N=S-d;return c===void 0||E>=t||E<0||f&&N>=i}function w(){var S=$c();if(y(S))return $(S);l=setTimeout(w,g(S))}function $(S){return l=void 0,h&&r?p(S):(r=a=void 0,s)}function C(){l!==void 0&&clearTimeout(l),d=0,r=c=a=l=void 0}function b(){return l===void 0?s:$($c())}function k(){var S=$c(),E=y(S);if(r=arguments,a=this,c=S,E){if(l===void 0)return m(c);if(f)return clearTimeout(l),l=setTimeout(w,t),p(c)}return l===void 0&&(l=setTimeout(w,t)),s}return k.cancel=C,k.flush=b,k}function Av(e,t){return e==null||e!==e?t:e}var xy=Object.prototype,xv=xy.hasOwnProperty,Mv=je(function(e,t){e=Object(e);var o=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&on(t[0],t[1],a)&&(r=1);++o<r;)for(var i=t[o],s=un(i),l=-1,c=s.length;++l<c;){var d=s[l],u=e[d];(u===void 0||ro(u,xy[d])&&!xv.call(e,d))&&(e[d]=i[d])}return e});function qf(e,t,o){(o!==void 0&&!ro(e[t],o)||o===void 0&&!(t in e))&&er(e,t,o)}function Tt(e){return St(e)&&dn(e)}function Zf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function My(e){return _o(e,un(e))}function Pv(e,t,o,r,a,i,s){var l=Zf(e,o),c=Zf(t,o),d=s.get(c);if(d){qf(e,o,d);return}var u=i?i(l,c,o+"",e,t,s):void 0,f=u===void 0;if(f){var h=Fe(c),p=!h&&Nr(c),m=!h&&!p&&ti(c);u=c,h||p||m?Fe(l)?u=l:Tt(l)?u=cn(l):p?(f=!1,u=Z2(c,!0)):m?(f=!1,u=sy(c,!0)):u=[]:ks(c)||da(c)?(u=l,da(l)?u=My(l):(!$t(l)||Xo(l))&&(u=ly(c))):f=!1}f&&(s.set(c,u),a(u,c,r,i,s),s.delete(c)),qf(e,o,u)}function kc(e,t,o,r,a){e!==t&&Uf(t,function(i,s){if(a||(a=new io),$t(i))Pv(e,t,s,o,kc,r,a);else{var l=r?r(Zf(e,s),i,s+"",e,t,a):void 0;l===void 0&&(l=i),qf(e,s,l)}},un)}function Py(e,t,o,r,a,i){return $t(e)&&$t(t)&&(i.set(t,e),kc(e,t,void 0,Py,i),i.delete(t)),e}var vy=ei(function(e,t,o,r){kc(e,t,o,r)}),vv=je(function(e){return e.push(void 0,Py),kn(vy,void 0,e)}),Ov="Expected a function";function Oy(e,t,o){if(typeof e!="function")throw new TypeError(Ov);return setTimeout(function(){e.apply(void 0,o)},t)}var Iv=je(function(e,t){return Oy(e,1,t)}),Dv=je(function(e,t,o){return Oy(e,Rn(t)||0,o)});function Xf(e,t,o){for(var r=-1,a=e==null?0:e.length;++r<a;)if(o(t,e[r]))return!0;return!1}var Rv=200;function Bs(e,t,o,r){var a=-1,i=lc,s=!0,l=e.length,c=[],d=t.length;if(!l)return c;o&&(t=wt(t,Sn(o))),r?(i=Xf,s=!1):t.length>=Rv&&(i=Ss,s=!1,t=new ma(t));e:for(;++a<l;){var u=e[a],f=o==null?u:o(u);if(u=r||u!==0?u:0,s&&f===f){for(var h=d;h--;)if(t[h]===f)continue e;c.push(u)}else i(t,f,r)||c.push(u)}return c}var Lv=je(function(e,t){return Tt(e)?Bs(e,Wt(t,1,Tt,!0)):[]});function En(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Vv=je(function(e,t){var o=En(t);return Tt(o)&&(o=void 0),Tt(e)?Bs(e,Wt(t,1,Tt,!0),Ve(o)):[]}),Fv=je(function(e,t){var o=En(t);return Tt(o)&&(o=void 0),Tt(e)?Bs(e,Wt(t,1,Tt,!0),void 0,o):[]}),zv=tc(function(e,t){return e/t},1);function Hv(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===void 0?1:We(t),zn(e,t<0?0:t,r)):[]}function Wv(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===void 0?1:We(t),t=r-t,zn(e,0,t<0?0:t)):[]}function Sc(e,t,o,r){for(var a=e.length,i=r?a:-1;(r?i--:++i<a)&&t(e[i],i,e););return o?zn(e,r?0:i,r?i+1:a):zn(e,r?i+1:0,r?a:i)}function Kv(e,t){return e&&e.length?Sc(e,Ve(t),!0,!0):[]}function jv(e,t){return e&&e.length?Sc(e,Ve(t),!0):[]}function Mo(e){return typeof e=="function"?e:nn}function Iy(e,t){var o=Fe(e)?Vn:Mr;return o(e,Mo(t))}function Uv(e,t){for(var o=e==null?0:e.length;o--&&t(e[o],o,e)!==!1;);return e}var Dy=Ty(!0);function Jf(e,t){return e&&Dy(e,t,Mt)}var Ry=Ay(Jf,!0);function Ly(e,t){var o=Fe(e)?Uv:Ry;return o(e,Mo(t))}function Gv(e,t,o){e=ot(e),t=$n(t);var r=e.length;o=o===void 0?r:ha(We(o),0,r);var a=o;return o-=t.length,o>=0&&e.slice(o,a)==t}function Yv(e,t){return wt(t,function(o){return[o,e[o]]})}function qv(e){var t=-1,o=Array(e.size);return e.forEach(function(r){o[++t]=[r,r]}),o}var Zv="[object Map]",Xv="[object Set]";function Vy(e){return function(t){var o=Ao(t);return o==Zv?Ff(t):o==Xv?qv(t):Yv(t,e(t))}}var Fy=Vy(Mt),zy=Vy(un),Jv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qv=xf(Jv),Hy=/[&<>"']/g,eO=RegExp(Hy.source);function Wy(e){return e=ot(e),e&&eO.test(e)?e.replace(Hy,Qv):e}var Ky=/[\\^$.*+?()[\]{}|]/g,tO=RegExp(Ky.source);function nO(e){return e=ot(e),e&&tO.test(e)?e.replace(Ky,"\\$&"):e}function jy(e,t){for(var o=-1,r=e==null?0:e.length;++o<r;)if(!t(e[o],o,e))return!1;return!0}function oO(e,t){var o=!0;return Mr(e,function(r,a,i){return o=!!t(r,a,i),o}),o}function rO(e,t,o){var r=Fe(e)?jy:oO;return o&&on(e,t,o)&&(t=void 0),r(e,Ve(t))}var aO=4294967295;function Uy(e){return e?ha(We(e),0,aO):0}function iO(e,t,o,r){var a=e.length;for(o=We(o),o<0&&(o=-o>a?0:a+o),r=r===void 0||r>a?a:We(r),r<0&&(r+=a),r=o>r?0:Uy(r);o<r;)e[o++]=t;return e}function sO(e,t,o,r){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&on(e,t,o)&&(o=0,r=a),iO(e,t,o,r)):[]}function Gy(e,t){var o=[];return Mr(e,function(r,a,i){t(r,a,i)&&o.push(r)}),o}function lO(e,t){var o=Fe(e)?xr:Gy;return o(e,Ve(t))}function Yy(e){return function(t,o,r){var a=Object(t);if(!dn(t)){var i=Ve(o);t=Mt(t),o=function(l){return i(a[l],l,a)}}var s=e(t,o,r);return s>-1?a[i?t[s]:s]:void 0}}var cO=Math.max;function qy(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:We(o);return a<0&&(a=cO(r+a,0)),sc(e,Ve(t),a)}var dO=Yy(qy);function Zy(e,t,o){var r;return o(e,function(a,i,s){if(t(a,i,s))return r=i,!1}),r}function uO(e,t){return Zy(e,Ve(t),xo)}var fO=Math.max,hO=Math.min;function Xy(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return o!==void 0&&(a=We(o),a=o<0?fO(r+a,0):hO(a,r-1)),sc(e,Ve(t),a,!0)}var pO=Yy(Xy);function mO(e,t){return Zy(e,Ve(t),Jf)}function Jy(e){return e&&e.length?e[0]:void 0}function Qy(e,t){var o=-1,r=dn(e)?Array(e.length):[];return Mr(e,function(a,i,s){r[++o]=t(a,i,s)}),r}function Ec(e,t){var o=Fe(e)?wt:Qy;return o(e,Ve(t))}function gO(e,t){return Wt(Ec(e,t),1)}var yO=1/0;function bO(e,t){return Wt(Ec(e,t),yO)}function CO(e,t,o){return o=o===void 0?1:We(o),Wt(Ec(e,t),o)}var wO=1/0;function eb(e){var t=e==null?0:e.length;return t?Wt(e,wO):[]}function $O(e,t){var o=e==null?0:e.length;return o?(t=t===void 0?1:We(t),Wt(e,t)):[]}var kO=512;function SO(e){return Qo(e,kO)}var EO=Mf("floor"),BO="Expected a function",NO=8,_O=32,TO=128,AO=256;function tb(e){return or(function(t){var o=t.length,r=o,a=Ln.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if(typeof i!="function")throw new TypeError(BO);if(a&&!s&&ac(i)=="wrapper")var s=new Ln([],!0)}for(r=s?r:o;++r<o;){i=t[r];var l=ac(i),c=l=="wrapper"?cf(i):void 0;c&&df(c[0])&&c[1]==(TO|NO|_O|AO)&&!c[4].length&&c[9]==1?s=s[ac(c[0])].apply(s,c[3]):s=i.length==1&&df(i)?s[l]():s.thru(i)}return function(){var d=arguments,u=d[0];if(s&&d.length==1&&Fe(u))return s.plant(u).value();for(var f=0,h=o?t[f].apply(this,d):u;++f<o;)h=t[f].call(this,h);return h}})}var xO=tb(),MO=tb(!0);function PO(e,t){return e==null?e:Uf(e,Mo(t),un)}function vO(e,t){return e==null?e:Dy(e,Mo(t),un)}function OO(e,t){return e&&xo(e,Mo(t))}function IO(e,t){return e&&Jf(e,Mo(t))}function Qf(e){for(var t=-1,o=e==null?0:e.length,r={};++t<o;){var a=e[t];r[a[0]]=a[1]}return r}function Bc(e,t){return xr(t,function(o){return Xo(e[o])})}function DO(e){return e==null?[]:Bc(e,Mt(e))}function RO(e){return e==null?[]:Bc(e,un(e))}var LO=Object.prototype,VO=LO.hasOwnProperty,FO=wc(function(e,t,o){VO.call(e,o)?e[o].push(t):er(e,o,[t])});function eh(e,t){return e>t}function Nc(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Rn(t),o=Rn(o)),e(t,o)}}var zO=Nc(eh),HO=Nc(function(e,t){return e>=t}),WO=Object.prototype,KO=WO.hasOwnProperty;function jO(e,t){return e!=null&&KO.call(e,t)}function UO(e,t){return e!=null&&Ey(e,t,jO)}var GO=Math.max,YO=Math.min;function qO(e,t,o){return e>=YO(t,o)&&e<GO(t,o)}function ZO(e,t,o){return t=Zo(t),o===void 0?(o=t,t=0):o=Zo(o),e=Rn(e),qO(e,t,o)}var XO="[object String]";function Ns(e){return typeof e=="string"||!Fe(e)&&St(e)&&tn(e)==XO}function th(e,t){return wt(t,function(o){return e[o]})}function ii(e){return e==null?[]:th(e,Mt(e))}var JO=Math.max;function QO(e,t,o,r){e=dn(e)?e:ii(e),o=o&&!r?We(o):0;var a=e.length;return o<0&&(o=JO(a+o,0)),Ns(e)?o<=a&&e.indexOf(t,o)>-1:!!a&&Ja(e,t,o)>-1}var eI=Math.max;function tI(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:We(o);return a<0&&(a=eI(r+a,0)),Ja(e,t,a)}function nI(e){var t=e==null?0:e.length;return t?zn(e,0,-1):[]}var oI=Math.min;function nh(e,t,o){for(var r=o?Xf:lc,a=e[0].length,i=e.length,s=i,l=Array(i),c=1/0,d=[];s--;){var u=e[s];s&&t&&(u=wt(u,Sn(t))),c=oI(u.length,c),l[s]=!o&&(t||a>=120&&u.length>=120)?new ma(s&&u):void 0}u=e[0];var f=-1,h=l[0];e:for(;++f<a&&d.length<c;){var p=u[f],m=t?t(p):p;if(p=o||p!==0?p:0,!(h?Ss(h,m):r(d,m,o))){for(s=i;--s;){var g=l[s];if(!(g?Ss(g,m):r(e[s],m,o)))continue e}h&&h.push(m),d.push(p)}}return d}function oh(e){return Tt(e)?e:[]}var rI=je(function(e){var t=wt(e,oh);return t.length&&t[0]===e[0]?nh(t):[]}),aI=je(function(e){var t=En(e),o=wt(e,oh);return t===En(o)?t=void 0:o.pop(),o.length&&o[0]===e[0]?nh(o,Ve(t)):[]}),iI=je(function(e){var t=En(e),o=wt(e,oh);return t=typeof t=="function"?t:void 0,t&&o.pop(),o.length&&o[0]===e[0]?nh(o,void 0,t):[]});function sI(e,t,o,r){return xo(e,function(a,i,s){t(r,o(a),i,s)}),r}function nb(e,t){return function(o,r){return sI(o,e,t(r),{})}}var lI=Object.prototype,cI=lI.toString,dI=nb(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=cI.call(t)),e[t]=o},uf(nn)),ob=Object.prototype,uI=ob.hasOwnProperty,fI=ob.toString,hI=nb(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=fI.call(t)),uI.call(e,t)?e[t].push(o):e[t]=[o]},Ve);function rb(e,t){return t.length<2?e:fa(e,zn(t,0,-1))}function _s(e,t,o){t=_r(t,e),e=rb(e,t);var r=e==null?e:e[To(En(t))];return r==null?void 0:kn(r,e,o)}var pI=je(_s),mI=je(function(e,t,o){var r=-1,a=typeof t=="function",i=dn(e)?Array(e.length):[];return Mr(e,function(s){i[++r]=a?kn(t,s,o):_s(s,t,o)}),i}),gI="[object ArrayBuffer]";function yI(e){return St(e)&&tn(e)==gI}var ab=Fn&&Fn.isArrayBuffer,bI=ab?Sn(ab):yI,CI="[object Boolean]";function Pt(e){return e===!0||e===!1||St(e)&&tn(e)==CI}var wI="[object Date]";function $I(e){return St(e)&&tn(e)==wI}var ib=Fn&&Fn.isDate,kI=ib?Sn(ib):$I;function SI(e){return St(e)&&e.nodeType===1&&!ks(e)}var EI="[object Map]",BI="[object Set]",NI=Object.prototype,_I=NI.hasOwnProperty;function rh(e){if(e==null)return!0;if(dn(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||Nr(e)||ti(e)||da(e)))return!e.length;var t=Ao(e);if(t==EI||t==BI)return!e.size;if(ys(e))return!wf(e).length;for(var o in e)if(_I.call(e,o))return!1;return!0}function Bn(e,t){return Es(e,t)}function TI(e,t,o){o=typeof o=="function"?o:void 0;var r=o?o(e,t):void 0;return r===void 0?Es(e,t,void 0,o):!!r}var AI=Lt.isFinite;function xI(e){return typeof e=="number"&&AI(e)}function sb(e){return typeof e=="number"&&e==We(e)}function MI(e,t){return e===t||Hf(e,t,Wf(t))}function PI(e,t,o){return o=typeof o=="function"?o:void 0,Hf(e,t,Wf(t),o)}var vI="[object Number]";function Se(e){return typeof e=="number"||St(e)&&tn(e)==vI}function OI(e){return Se(e)&&e!=+e}var II=nc?Xo:bf,DI="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function RI(e){if(II(e))throw new Error(DI);return vg(e)}function xt(e){return e==null}function LI(e){return e===null}var VI="[object RegExp]";function FI(e){return St(e)&&tn(e)==VI}var lb=Fn&&Fn.isRegExp,ah=lb?Sn(lb):FI,cb=9007199254740991;function zI(e){return sb(e)&&e>=-cb&&e<=cb}function HI(e){return e===void 0}var WI="[object WeakMap]";function KI(e){return St(e)&&Ao(e)==WI}var jI="[object WeakSet]";function UI(e){return St(e)&&tn(e)==jI}var GI=1;function YI(e){return Ve(typeof e=="function"?e:Hn(e,GI))}var qI=Array.prototype,ZI=qI.join;function XI(e,t){return e==null?"":ZI.call(e,t)}var JI=ri(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),QI=wc(function(e,t,o){er(e,o,t)});function eD(e,t,o){for(var r=o+1;r--;)if(e[r]===t)return r;return r}var tD=Math.max,nD=Math.min;function oD(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r;return o!==void 0&&(a=We(o),a=a<0?tD(r+a,0):nD(a,r-1)),t===t?eD(e,t,a):sc(e,zg,a,!0)}var rD=ri(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),aD=S2("toLowerCase");function ih(e,t){return e<t}var iD=Nc(ih),sD=Nc(function(e,t){return e<=t});function lD(e,t){var o={};return t=Ve(t),xo(e,function(r,a,i){er(o,t(r,a,i),r)}),o}function cD(e,t){var o={};return t=Ve(t),xo(e,function(r,a,i){er(o,a,t(r,a,i))}),o}var dD=1;function uD(e){return Sy(Hn(e,dD))}var fD=1;function hD(e,t){return By(e,Hn(t,fD))}function _c(e,t,o){for(var r=-1,a=e.length;++r<a;){var i=e[r],s=t(i);if(s!=null&&(l===void 0?s===s&&!wn(s):o(s,l)))var l=s,c=i}return c}function pD(e){return e&&e.length?_c(e,nn,eh):void 0}function mD(e,t){return e&&e.length?_c(e,Ve(t),eh):void 0}function sh(e,t){for(var o,r=-1,a=e.length;++r<a;){var i=t(e[r]);i!==void 0&&(o=o===void 0?i:o+i)}return o}var gD=0/0;function db(e,t){var o=e==null?0:e.length;return o?sh(e,t)/o:gD}function yD(e){return db(e,nn)}function bD(e,t){return db(e,Ve(t))}var so=ei(function(e,t,o){kc(e,t,o)}),CD=je(function(e,t){return function(o){return _s(o,e,t)}}),wD=je(function(e,t){return function(o){return _s(e,o,t)}});function $D(e){return e&&e.length?_c(e,nn,ih):void 0}function kD(e,t){return e&&e.length?_c(e,Ve(t),ih):void 0}function ub(e,t,o){var r=Mt(t),a=Bc(t,r),i=!($t(o)&&"chain"in o)||!!o.chain,s=Xo(e);return Vn(a,function(l){var c=t[l];e[l]=c,s&&(e.prototype[l]=function(){var d=this.__chain__;if(i||d){var u=e(this.__wrapped__),f=u.__actions__=cn(this.__actions__);return f.push({func:c,args:arguments,thisArg:e}),u.__chain__=d,u}return c.apply(e,Tr([this.value()],arguments))})}),e}var SD=tc(function(e,t){return e*t},1),ED="Expected a function";function Ts(e){if(typeof e!="function")throw new TypeError(ED);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function BD(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o}var ND="[object Map]",_D="[object Set]",lh=qt?qt.iterator:void 0;function fb(e){if(!e)return[];if(dn(e))return Ns(e)?ao(e):cn(e);if(lh&&e[lh])return BD(e[lh]());var t=Ao(e),o=t==ND?Ff:t==_D?bc:ii;return o(e)}function TD(){this.__values__===void 0&&(this.__values__=fb(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function hb(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,Jo(t,o)?e[t]:void 0}function AD(e,t){return e&&e.length?hb(e,We(t)):void 0}function xD(e){return e=We(e),je(function(t){return hb(t,e)})}function ch(e,t){return t=_r(t,e),e=rb(e,t),e==null||delete e[To(En(t))]}function MD(e){return ks(e)?void 0:e}var PD=1,vD=2,OD=4,ID=or(function(e,t){var o={};if(e==null)return o;var r=!1;t=wt(t,function(i){return i=_r(i,e),r||(r=i.length>1),i}),_o(e,If(e),o),r&&(o=Hn(o,PD|vD|OD,MD));for(var a=t.length;a--;)ch(o,t[a]);return o});function As(e,t,o,r){if(!$t(e))return e;t=_r(t,e);for(var a=-1,i=t.length,s=i-1,l=e;l!=null&&++a<i;){var c=To(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var u=l[c];d=r?r(u,c,l):void 0,d===void 0&&(d=$t(u)?u:Jo(t[a+1])?[]:{})}gs(l,c,d),l=l[c]}return e}function pb(e,t,o){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],l=fa(e,s);o(l,s)&&As(i,_r(s,e),l)}return i}function mb(e,t){if(e==null)return{};var o=wt(If(e),function(r){return[r]});return t=Ve(t),pb(e,o,function(r,a){return t(r,a[0])})}function DD(e,t){return mb(e,Ts(Ve(t)))}function RD(e){return g2(2,e)}function LD(e,t){var o=e.length;for(e.sort(t);o--;)e[o]=e[o].value;return e}function gb(e,t){if(e!==t){var o=e!==void 0,r=e===null,a=e===e,i=wn(e),s=t!==void 0,l=t===null,c=t===t,d=wn(t);if(!l&&!d&&!i&&e>t||i&&s&&c&&!l&&!d||r&&s&&c||!o&&c||!a)return 1;if(!r&&!i&&!d&&e<t||d&&o&&a&&!r&&!i||l&&o&&a||!s&&a||!c)return-1}return 0}function VD(e,t,o){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,l=o.length;++r<s;){var c=gb(a[r],i[r]);if(c){if(r>=l)return c;var d=o[r];return c*(d=="desc"?-1:1)}}return e.index-t.index}function yb(e,t,o){t.length?t=wt(t,function(i){return Fe(i)?function(s){return fa(s,i.length===1?i[0]:i)}:i}):t=[nn];var r=-1;t=wt(t,Sn(Ve));var a=Qy(e,function(i,s,l){var c=wt(t,function(d){return d(i)});return{criteria:c,index:++r,value:i}});return LD(a,function(i,s){return VD(i,s,o)})}function FD(e,t,o,r){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=r?void 0:o,Fe(o)||(o=o==null?[]:[o]),yb(e,t,o))}function dh(e){return or(function(t){return t=wt(t,Sn(Ve)),je(function(o){var r=this;return e(t,function(a){return kn(a,r,o)})})})}var zD=dh(wt),HD=je,WD=Math.min,KD=HD(function(e,t){t=t.length==1&&Fe(t[0])?wt(t[0],Sn(Ve)):wt(Wt(t,1),Sn(Ve));var o=t.length;return je(function(r){for(var a=-1,i=WD(r.length,o);++a<i;)r[a]=t[a].call(this,r[a]);return kn(e,this,r)})}),jD=dh(jy),UD=dh(Vf),GD=9007199254740991,YD=Math.floor;function uh(e,t){var o="";if(!e||t<1||t>GD)return o;do t%2&&(o+=e),t=YD(t/2),t&&(e+=e);while(t);return o}var qD=jf("length"),bb="\\ud800-\\udfff",ZD="\\u0300-\\u036f",XD="\\ufe20-\\ufe2f",JD="\\u20d0-\\u20ff",QD=ZD+XD+JD,eR="\\ufe0e\\ufe0f",tR="["+bb+"]",fh="["+QD+"]",hh="\\ud83c[\\udffb-\\udfff]",nR="(?:"+fh+"|"+hh+")",Cb="[^"+bb+"]",wb="(?:\\ud83c[\\udde6-\\uddff]){2}",$b="[\\ud800-\\udbff][\\udc00-\\udfff]",oR="\\u200d",kb=nR+"?",Sb="["+eR+"]?",rR="(?:"+oR+"(?:"+[Cb,wb,$b].join("|")+")"+Sb+kb+")*",aR=Sb+kb+rR,iR="(?:"+[Cb+fh+"?",fh,wb,$b,tR].join("|")+")",Eb=RegExp(hh+"(?="+hh+")|"+iR+aR,"g");function sR(e){for(var t=Eb.lastIndex=0;Eb.test(e);)++t;return t}function si(e){return ni(e)?sR(e):qD(e)}var lR=Math.ceil;function Tc(e,t){t=t===void 0?" ":$n(t);var o=t.length;if(o<2)return o?uh(t,e):t;var r=uh(t,lR(e/si(t)));return ni(t)?Ar(ao(r),0,e).join(""):r.slice(0,e)}var cR=Math.ceil,dR=Math.floor;function uR(e,t,o){e=ot(e),t=We(t);var r=t?si(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Tc(dR(a),o)+e+Tc(cR(a),o)}function fR(e,t,o){e=ot(e),t=We(t);var r=t?si(e):0;return t&&r<t?e+Tc(t-r,o):e}function hR(e,t,o){e=ot(e),t=We(t);var r=t?si(e):0;return t&&r<t?Tc(t-r,o)+e:e}var pR=/^\s+/,mR=Lt.parseInt;function gR(e,t,o){return o||t==null?t=0:t&&(t=+t),mR(ot(e).replace(pR,""),t||0)}var yR=32,Ac=je(function(e,t){var o=Br(t,Qa(Ac));return Qo(e,yR,void 0,t,o)});Ac.placeholder={};var bR=64,ph=je(function(e,t){var o=Br(t,Qa(ph));return Qo(e,bR,void 0,t,o)});ph.placeholder={};var CR=wc(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function wR(e,t){return pb(e,t,function(o,r){return Kf(e,r)})}var Po=or(function(e,t){return e==null?{}:wR(e,t)});function $R(e){for(var t,o=this;o instanceof rc;){var r=Lg(o);r.__index__=0,r.__values__=void 0,t?a.__wrapped__=r:t=r;var a=r;o=o.__wrapped__}return a.__wrapped__=e,t}function kR(e){return function(t){return e==null?void 0:fa(e,t)}}function SR(e,t,o,r){for(var a=o-1,i=e.length;++a<i;)if(r(e[a],t))return a;return-1}var ER=Array.prototype,Bb=ER.splice;function mh(e,t,o,r){var a=r?SR:Ja,i=-1,s=t.length,l=e;for(e===t&&(t=cn(t)),o&&(l=wt(e,Sn(o)));++i<s;)for(var c=0,d=t[i],u=o?o(d):d;(c=a(l,u,c,r))>-1;)l!==e&&Bb.call(l,c,1),Bb.call(e,c,1);return e}function Nb(e,t){return e&&e.length&&t&&t.length?mh(e,t):e}var BR=je(Nb);function NR(e,t,o){return e&&e.length&&t&&t.length?mh(e,t,Ve(o)):e}function _R(e,t,o){return e&&e.length&&t&&t.length?mh(e,t,void 0,o):e}var TR=Array.prototype,AR=TR.splice;function _b(e,t){for(var o=e?t.length:0,r=o-1;o--;){var a=t[o];if(o==r||a!==i){var i=a;Jo(a)?AR.call(e,a,1):ch(e,a)}}return e}var xR=or(function(e,t){var o=e==null?0:e.length,r=kf(e,t);return _b(e,wt(t,function(a){return Jo(a,o)?+a:a}).sort(gb)),r}),MR=Math.floor,PR=Math.random;function gh(e,t){return e+MR(PR()*(t-e+1))}var vR=parseFloat,OR=Math.min,IR=Math.random;function DR(e,t,o){if(o&&typeof o!="boolean"&&on(e,t,o)&&(t=o=void 0),o===void 0&&(typeof t=="boolean"?(o=t,t=void 0):typeof e=="boolean"&&(o=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=Zo(e),t===void 0?(t=e,e=0):t=Zo(t)),e>t){var r=e;e=t,t=r}if(o||e%1||t%1){var a=IR();return OR(e+a*(t-e+vR("1e-"+((a+"").length-1))),t)}return gh(e,t)}var RR=Math.ceil,LR=Math.max;function VR(e,t,o,r){for(var a=-1,i=LR(RR((t-e)/(o||1)),0),s=Array(i);i--;)s[r?i:++a]=e,e+=o;return s}function Tb(e){return function(t,o,r){return r&&typeof r!="number"&&on(t,o,r)&&(o=r=void 0),t=Zo(t),o===void 0?(o=t,t=0):o=Zo(o),r=r===void 0?t<o?1:-1:Zo(r),VR(t,o,r,e)}}var FR=Tb(),zR=Tb(!0),HR=256,WR=or(function(e,t){return Qo(e,HR,void 0,void 0,void 0,t)});function Ab(e,t,o,r,a){return a(e,function(i,s,l){o=r?(r=!1,i):t(o,i,s,l)}),o}function KR(e,t,o){var r=Fe(e)?Af:Ab,a=arguments.length<3;return r(e,Ve(t),o,a,Mr)}function jR(e,t,o,r){var a=e==null?0:e.length;for(r&&a&&(o=e[--a]);a--;)o=t(o,e[a],a,e);return o}function UR(e,t,o){var r=Fe(e)?jR:Ab,a=arguments.length<3;return r(e,Ve(t),o,a,Ry)}function GR(e,t){var o=Fe(e)?xr:Gy;return o(e,Ts(Ve(t)))}function YR(e,t){var o=[];if(!(e&&e.length))return o;var r=-1,a=[],i=e.length;for(t=Ve(t);++r<i;){var s=e[r];t(s,r,e)&&(o.push(s),a.push(r))}return _b(e,a),o}function qR(e,t,o){return(o?on(e,t,o):t===void 0)?t=1:t=We(t),uh(ot(e),t)}function ZR(){var e=arguments,t=ot(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var XR="Expected a function";function JR(e,t){if(typeof e!="function")throw new TypeError(XR);return t=t===void 0?t:We(t),je(e,t)}function QR(e,t,o){t=_r(t,e);var r=-1,a=t.length;for(a||(a=1,e=void 0);++r<a;){var i=e?.[To(t[r])];i===void 0&&(r=a,i=o),e=Xo(i)?i.call(e):i}return e}var eL=Array.prototype,tL=eL.reverse;function yh(e){return e==null?e:tL.call(e)}var nL=Mf("round");function xb(e){var t=e.length;return t?e[gh(0,t-1)]:void 0}function oL(e){return xb(ii(e))}function rL(e){var t=Fe(e)?xb:oL;return t(e)}function xc(e,t){var o=-1,r=e.length,a=r-1;for(t=t===void 0?r:t;++o<t;){var i=gh(o,a),s=e[i];e[i]=e[o],e[o]=s}return e.length=t,e}function aL(e,t){return xc(cn(e),ha(t,0,e.length))}function iL(e,t){var o=ii(e);return xc(o,ha(t,0,o.length))}function sL(e,t,o){(o?on(e,t,o):t===void 0)?t=1:t=We(t);var r=Fe(e)?aL:iL;return r(e,t)}function Mb(e,t,o){return e==null?e:As(e,t,o)}function lL(e,t,o,r){return r=typeof r=="function"?r:void 0,e==null?e:As(e,t,o,r)}function cL(e){return xc(cn(e))}function dL(e){return xc(ii(e))}function uL(e){var t=Fe(e)?cL:dL;return t(e)}var fL="[object Map]",hL="[object Set]";function pL(e){if(e==null)return 0;if(dn(e))return Ns(e)?si(e):e.length;var t=Ao(e);return t==fL||t==hL?e.size:wf(e).length}function mL(e,t,o){var r=e==null?0:e.length;return r?(o&&typeof o!="number"&&on(e,t,o)?(t=0,o=r):(t=t==null?0:We(t),o=o===void 0?r:We(o)),zn(e,t,o)):[]}var gL=ri(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function yL(e,t){var o;return Mr(e,function(r,a,i){return o=t(r,a,i),!o}),!!o}function bL(e,t,o){var r=Fe(e)?Vf:yL;return o&&on(e,t,o)&&(t=void 0),r(e,Ve(t))}var CL=je(function(e,t){if(e==null)return[];var o=t.length;return o>1&&on(e,t[0],t[1])?t=[]:o>2&&on(t[0],t[1],t[2])&&(t=[t[0]]),yb(e,Wt(t,1),[])}),wL=4294967295,$L=wL-1,kL=Math.floor,SL=Math.min;function bh(e,t,o,r){var a=0,i=e==null?0:e.length;if(i===0)return 0;t=o(t);for(var s=t!==t,l=t===null,c=wn(t),d=t===void 0;a<i;){var u=kL((a+i)/2),f=o(e[u]),h=f!==void 0,p=f===null,m=f===f,g=wn(f);if(s)var y=r||m;else d?y=m&&(r||h):l?y=m&&h&&(r||!p):c?y=m&&h&&!p&&(r||!g):p||g?y=!1:y=r?f<=t:f<t;y?a=u+1:i=u}return SL(i,$L)}var EL=4294967295,BL=EL>>>1;function Mc(e,t,o){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=BL){for(;r<a;){var i=r+a>>>1,s=e[i];s!==null&&!wn(s)&&(o?s<=t:s<t)?r=i+1:a=i}return a}return bh(e,t,nn,o)}function NL(e,t){return Mc(e,t)}function _L(e,t,o){return bh(e,t,Ve(o))}function TL(e,t){var o=e==null?0:e.length;if(o){var r=Mc(e,t);if(r<o&&ro(e[r],t))return r}return-1}function AL(e,t){return Mc(e,t,!0)}function xL(e,t,o){return bh(e,t,Ve(o),!0)}function ML(e,t){var o=e==null?0:e.length;if(o){var r=Mc(e,t,!0)-1;if(ro(e[r],t))return r}return-1}function Pb(e,t){for(var o=-1,r=e.length,a=0,i=[];++o<r;){var s=e[o],l=t?t(s):s;if(!o||!ro(l,c)){var c=l;i[a++]=s===0?0:s}}return i}function PL(e){return e&&e.length?Pb(e):[]}function vL(e,t){return e&&e.length?Pb(e,Ve(t)):[]}var OL=4294967295;function IL(e,t,o){return o&&typeof o!="number"&&on(e,t,o)&&(t=o=void 0),o=o===void 0?OL:o>>>0,o?(e=ot(e),e&&(typeof t=="string"||t!=null&&!ah(t))&&(t=$n(t),!t&&ni(e))?Ar(ao(e),0,o):e.split(t,o)):[]}var DL="Expected a function",RL=Math.max;function LL(e,t){if(typeof e!="function")throw new TypeError(DL);return t=t==null?0:RL(We(t),0),je(function(o){var r=o[t],a=Ar(o,0,t);return r&&Tr(a,r),kn(e,this,a)})}var VL=ri(function(e,t,o){return e+(o?" ":"")+Tf(t)});function FL(e,t,o){return e=ot(e),o=o==null?0:ha(We(o),0,e.length),t=$n(t),e.slice(o,o+t.length)==t}function zL(){return{}}function HL(){return""}function WL(){return!0}var KL=tc(function(e,t){return e-t},0);function jL(e){return e&&e.length?sh(e,nn):0}function UL(e,t){return e&&e.length?sh(e,Ve(t)):0}function GL(e){var t=e==null?0:e.length;return t?zn(e,1,t):[]}function YL(e,t,o){return e&&e.length?(t=o||t===void 0?1:We(t),zn(e,0,t<0?0:t)):[]}function qL(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===void 0?1:We(t),t=r-t,zn(e,t<0?0:t,r)):[]}function ZL(e,t){return e&&e.length?Sc(e,Ve(t),!1,!0):[]}function XL(e,t){return e&&e.length?Sc(e,Ve(t)):[]}function JL(e,t){return t(e),e}var vb=Object.prototype,QL=vb.hasOwnProperty;function Ob(e,t,o,r){return e===void 0||ro(e,vb[o])&&!QL.call(r,o)?t:e}var eV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function tV(e){return"\\"+eV[e]}var Ib=/<%=([\s\S]+?)%>/g,nV=/<%-([\s\S]+?)%>/g,oV=/<%([\s\S]+?)%>/g,Ch={escape:nV,evaluate:oV,interpolate:Ib,variable:"",imports:{_:{escape:Wy}}},rV="Invalid `variable` option passed into `_.template`",aV=/\b__p \+= '';/g,iV=/\b(__p \+=) '' \+/g,sV=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lV=/[()=,{}\[\]\/\s]/,cV=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pc=/($^)/,dV=/['\n\r\u2028\u2029\\]/g,uV=Object.prototype,Db=uV.hasOwnProperty;function fV(e,t,o){var r=Ch.imports._.templateSettings||Ch;o&&on(e,t,o)&&(t=void 0),e=ot(e),t=uc({},t,r,Ob);var a=uc({},t.imports,r.imports,Ob),i=Mt(a),s=th(a,i),l,c,d=0,u=t.interpolate||Pc,f="__p += '",h=RegExp((t.escape||Pc).source+"|"+u.source+"|"+(u===Ib?cV:Pc).source+"|"+(t.evaluate||Pc).source+"|$","g"),p=Db.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
`:"";e.replace(h,function(y,w,$,C,b,k){return $||($=C),f+=e.slice(d,k).replace(dV,tV),w&&(l=!0,f+=`' +
__e(`+w+`) +
'`),b&&(c=!0,f+=`';
`+b+`;
__p += '`),$&&(f+=`' +
((__t = (`+$+`)) == null ? '' : __t) +
'`),d=k+y.length,y}),f+=`';
`;var m=Db.call(t,"variable")&&t.variable;if(!m)f=`with (obj) {
`+f+`
}
`;else if(lV.test(m))throw new Error(rV);f=(c?f.replace(aV,""):f).replace(iV,"$1").replace(sV,"$1;"),f="function("+(m||"obj")+`) {
`+(m?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+f+`return __p
}`;var g=m2(function(){return Function(i,p+"return "+f).apply(void 0,s)});if(g.source=f,Ef(g))throw g;return g}var hV="Expected a function";function Pr(e,t,o){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(hV);return $t(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),Zt(e,t,{leading:r,maxWait:t,trailing:a})}function xs(e,t){return t(e)}var pV=9007199254740991,wh=4294967295,mV=Math.min;function gV(e,t){if(e=We(e),e<1||e>pV)return[];var o=wh,r=mV(e,wh);t=Mo(t),e-=wh;for(var a=yf(r,t);++o<e;)t(o);return a}function yV(){return this}function Rb(e,t){var o=e;return o instanceof Ye&&(o=o.value()),Af(t,function(r,a){return a.func.apply(a.thisArg,Tr([r],a.args))},o)}function $h(){return Rb(this.__wrapped__,this.__actions__)}function bV(e){return ot(e).toLowerCase()}function CV(e){return Fe(e)?wt(e,To):wn(e)?[e]:cn(f2(ot(e)))}var Lb=9007199254740991;function wV(e){return e?ha(We(e),-Lb,Lb):e===0?e:0}function $V(e){return ot(e).toUpperCase()}function kV(e,t,o){var r=Fe(e),a=r||Nr(e)||ti(e);if(t=Ve(t),o==null){var i=e&&e.constructor;a?o=r?new i:[]:$t(e)?o=Xo(i)?Za(pc(e)):{}:o={}}return(a?Vn:xo)(e,function(s,l,c){return t(o,s,l,c)}),o}function Vb(e,t){for(var o=e.length;o--&&Ja(t,e[o],0)>-1;);return o}function Fb(e,t){for(var o=-1,r=e.length;++o<r&&Ja(t,e[o],0)>-1;);return o}function SV(e,t,o){if(e=ot(e),e&&(o||t===void 0))return Ag(e);if(!e||!(t=$n(t)))return e;var r=ao(e),a=ao(t),i=Fb(r,a),s=Vb(r,a)+1;return Ar(r,i,s).join("")}function EV(e,t,o){if(e=ot(e),e&&(o||t===void 0))return e.slice(0,Tg(e)+1);if(!e||!(t=$n(t)))return e;var r=ao(e),a=Vb(r,ao(t))+1;return Ar(r,0,a).join("")}var BV=/^\s+/;function NV(e,t,o){if(e=ot(e),e&&(o||t===void 0))return e.replace(BV,"");if(!e||!(t=$n(t)))return e;var r=ao(e),a=Fb(r,ao(t));return Ar(r,a).join("")}var _V=30,TV="...",AV=/\w*$/;function xV(e,t){var o=_V,r=TV;if($t(t)){var a="separator"in t?t.separator:a;o="length"in t?We(t.length):o,r="omission"in t?$n(t.omission):r}e=ot(e);var i=e.length;if(ni(e)){var s=ao(e);i=s.length}if(o>=i)return e;var l=o-si(r);if(l<1)return r;var c=s?Ar(s,0,l).join(""):e.slice(0,l);if(a===void 0)return c+r;if(s&&(l+=c.length-l),ah(a)){if(e.slice(l).search(a)){var d,u=c;for(a.global||(a=RegExp(a.source,ot(AV.exec(a))+"g")),a.lastIndex=0;d=a.exec(u);)var f=d.index;c=c.slice(0,f===void 0?l:f)}}else if(e.indexOf($n(a),l)!=l){var h=c.lastIndexOf(a);h>-1&&(c=c.slice(0,h))}return c+r}function MV(e){return Qg(e,1)}var PV={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vV=xf(PV),zb=/&(?:amp|lt|gt|quot|#39);/g,OV=RegExp(zb.source);function IV(e){return e=ot(e),e&&OV.test(e)?e.replace(zb,vV):e}var DV=1/0,RV=ai&&1/bc(new ai([,-0]))[1]==DV?function(e){return new ai(e)}:lf,LV=200;function vr(e,t,o){var r=-1,a=lc,i=e.length,s=!0,l=[],c=l;if(o)s=!1,a=Xf;else if(i>=LV){var d=t?null:RV(e);if(d)return bc(d);s=!1,a=Ss,c=new ma}else c=t?[]:l;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=o||u!==0?u:0,s&&f===f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),l.push(u)}else a(c,f,o)||(c!==l&&c.push(f),l.push(u))}return l}var vc=je(function(e){return vr(Wt(e,1,Tt,!0))}),VV=je(function(e){var t=En(e);return Tt(t)&&(t=void 0),vr(Wt(e,1,Tt,!0),Ve(t))}),FV=je(function(e){var t=En(e);return t=typeof t=="function"?t:void 0,vr(Wt(e,1,Tt,!0),void 0,t)});function zV(e){return e&&e.length?vr(e):[]}function HV(e,t){return e&&e.length?vr(e,Ve(t)):[]}function WV(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?vr(e,void 0,t):[]}var KV=0;function jV(e){var t=++KV;return ot(e)+t}function UV(e,t){return e==null?!0:ch(e,t)}var GV=Math.max;function kh(e){if(!(e&&e.length))return[];var t=0;return e=xr(e,function(o){if(Tt(o))return t=GV(o.length,t),!0}),yf(t,function(o){return wt(e,jf(o))})}function Hb(e,t){if(!(e&&e.length))return[];var o=kh(e);return t==null?o:wt(o,function(r){return kn(t,void 0,r)})}function Wb(e,t,o,r){return As(e,t,o(fa(e,t)),r)}function YV(e,t,o){return e==null?e:Wb(e,t,Mo(o))}function qV(e,t,o,r){return r=typeof r=="function"?r:void 0,e==null?e:Wb(e,t,Mo(o),r)}var ZV=ri(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()});function XV(e){return e==null?[]:th(e,un(e))}var JV=je(function(e,t){return Tt(e)?Bs(e,t):[]});function QV(e,t){return Ac(Mo(t),e)}var eF=or(function(e){var t=e.length,o=t?e[0]:0,r=this.__wrapped__,a=function(i){return kf(i,e)};return t>1||this.__actions__.length||!(r instanceof Ye)||!Jo(o)?this.thru(a):(r=r.slice(o,+o+(t?1:0)),r.__actions__.push({func:xs,args:[a],thisArg:void 0}),new Ln(r,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i}))});function tF(){return K2(this)}function nF(){var e=this.__wrapped__;if(e instanceof Ye){var t=e;return this.__actions__.length&&(t=new Ye(this)),t=t.reverse(),t.__actions__.push({func:xs,args:[yh],thisArg:void 0}),new Ln(t,this.__chain__)}return this.thru(yh)}function Sh(e,t,o){var r=e.length;if(r<2)return r?vr(e[0]):[];for(var a=-1,i=Array(r);++a<r;)for(var s=e[a],l=-1;++l<r;)l!=a&&(i[a]=Bs(i[a]||s,e[l],t,o));return vr(Wt(i,1),t,o)}var oF=je(function(e){return Sh(xr(e,Tt))}),rF=je(function(e){var t=En(e);return Tt(t)&&(t=void 0),Sh(xr(e,Tt),Ve(t))}),aF=je(function(e){var t=En(e);return t=typeof t=="function"?t:void 0,Sh(xr(e,Tt),void 0,t)}),iF=je(kh);function Kb(e,t,o){for(var r=-1,a=e.length,i=t.length,s={};++r<a;){var l=r<i?t[r]:void 0;o(s,e[r],l)}return s}function sF(e,t){return Kb(e||[],t||[],gs)}function lF(e,t){return Kb(e||[],t||[],As)}var cF=je(function(e){var t=e.length,o=t>1?e[t-1]:void 0;return o=typeof o=="function"?(e.pop(),o):void 0,Hb(e,o)}),Be={chunk:Jx,compact:PP,concat:vP,difference:Lv,differenceBy:Vv,differenceWith:Fv,drop:Hv,dropRight:Wv,dropRightWhile:Kv,dropWhile:jv,fill:sO,findIndex:qy,findLastIndex:Xy,first:Jy,flatten:Sf,flattenDeep:eb,flattenDepth:$O,fromPairs:Qf,head:Jy,indexOf:tI,initial:nI,intersection:rI,intersectionBy:aI,intersectionWith:iI,join:XI,last:En,lastIndexOf:oD,nth:AD,pull:BR,pullAll:Nb,pullAllBy:NR,pullAllWith:_R,pullAt:xR,remove:YR,reverse:yh,slice:mL,sortedIndex:NL,sortedIndexBy:_L,sortedIndexOf:TL,sortedLastIndex:AL,sortedLastIndexBy:xL,sortedLastIndexOf:ML,sortedUniq:PL,sortedUniqBy:vL,tail:GL,take:YL,takeRight:qL,takeRightWhile:ZL,takeWhile:XL,union:vc,unionBy:VV,unionWith:FV,uniq:zV,uniqBy:HV,uniqWith:WV,unzip:kh,unzipWith:Hb,without:JV,xor:oF,xorBy:rF,xorWith:aF,zip:iF,zipObject:sF,zipObjectDeep:lF,zipWith:cF},ut={countBy:kv,each:Iy,eachRight:Ly,every:rO,filter:lO,find:dO,findLast:pO,flatMap:gO,flatMapDeep:bO,flatMapDepth:CO,forEach:Iy,forEachRight:Ly,groupBy:FO,includes:QO,invokeMap:mI,keyBy:QI,map:Ec,orderBy:FD,partition:CR,reduce:KR,reduceRight:UR,reject:GR,sample:rL,sampleSize:sL,shuffle:uL,size:pL,some:bL,sortBy:CL},dF={now:$c},Et={after:IN,ary:Qg,before:g2,bind:mc,bindKey:Bf,curry:Gf,curryRight:Yf,debounce:Zt,defer:Iv,delay:Dv,flip:SO,memoize:$s,negate:Ts,once:RD,overArgs:KD,partial:Ac,partialRight:ph,rearg:WR,rest:JR,spread:LL,throttle:Pr,unary:MV,wrap:QV},Ie={castArray:gc,clone:SP,cloneDeep:rr,cloneDeepWith:TP,cloneWith:xP,conformsTo:yv,eq:ro,gt:zO,gte:HO,isArguments:da,isArray:Fe,isArrayBuffer:bI,isArrayLike:dn,isArrayLikeObject:Tt,isBoolean:Pt,isBuffer:Nr,isDate:kI,isElement:SI,isEmpty:rh,isEqual:Bn,isEqualWith:TI,isError:Ef,isFinite:xI,isFunction:Xo,isInteger:sb,isLength:dc,isMap:dy,isMatch:MI,isMatchWith:PI,isNaN:OI,isNative:RI,isNil:xt,isNull:LI,isNumber:Se,isObject:$t,isObjectLike:St,isPlainObject:ks,isRegExp:ah,isSafeInteger:zI,isSet:fy,isString:Ns,isSymbol:wn,isTypedArray:ti,isUndefined:HI,isWeakMap:KI,isWeakSet:UI,lt:iD,lte:sD,toArray:fb,toFinite:Zo,toInteger:We,toLength:Uy,toNumber:Rn,toPlainObject:My,toSafeInteger:wV,toString:ot},rn={add:NN,ceil:qx,divide:zv,floor:EO,max:pD,maxBy:mD,mean:yD,meanBy:bD,min:$D,minBy:kD,multiply:SD,round:nL,subtract:KL,sum:jL,sumBy:UL},Eh={clamp:Qx,inRange:ZO,random:DR},Le={assign:FT,assignIn:u2,assignInWith:uc,assignWith:jT,at:BA,create:Sv,defaults:Mv,defaultsDeep:vv,entries:Fy,entriesIn:zy,extend:u2,extendWith:uc,findKey:uO,findLastKey:mO,forIn:PO,forInRight:vO,forOwn:OO,forOwnRight:IO,functions:DO,functionsIn:RO,get:rt,has:UO,hasIn:Kf,invert:dI,invertBy:hI,invoke:pI,keys:Mt,keysIn:un,mapKeys:lD,mapValues:cD,merge:so,mergeWith:vy,omit:ID,omitBy:DD,pick:Po,pickBy:mb,result:QR,set:Mb,setWith:lL,toPairs:Fy,toPairsIn:zy,transform:kV,unset:UV,update:YV,updateWith:qV,values:ii,valuesIn:XV},vo={at:eF,chain:K2,commit:MP,lodash:D,next:TD,plant:$R,reverse:nF,tap:JL,thru:xs,toIterator:yV,toJSON:$h,value:$h,valueOf:$h,wrapperChain:tF},tt={camelCase:Ux,capitalize:E2,deburr:B2,endsWith:Gv,escape:Wy,escapeRegExp:nO,kebabCase:JI,lowerCase:rD,lowerFirst:aD,pad:uR,padEnd:fR,padStart:hR,parseInt:gR,repeat:qR,replace:ZR,snakeCase:gL,split:IL,startCase:VL,startsWith:FL,template:fV,templateSettings:Ch,toLower:bV,toUpper:$V,trim:SV,trimEnd:EV,trimStart:NV,truncate:xV,unescape:IV,upperCase:ZV,upperFirst:Tf,words:W2},at={attempt:m2,bindAll:DA,cond:hv,conforms:gv,constant:uf,defaultTo:Av,flow:xO,flowRight:MO,identity:nn,iteratee:YI,matches:uD,matchesProperty:hD,method:CD,methodOf:wD,mixin:ub,noop:lf,nthArg:xD,over:zD,overEvery:jD,overSome:UD,property:Ny,propertyOf:kR,range:FR,rangeRight:zR,stubArray:Pf,stubFalse:bf,stubObject:zL,stubString:HL,stubTrue:WL,times:gV,toPath:CV,uniqueId:jV};function uF(){var e=new Ye(this.__wrapped__);return e.__actions__=cn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=cn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=cn(this.__views__),e}function fF(){if(this.__filtered__){var e=new Ye(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var hF=Math.max,pF=Math.min;function mF(e,t,o){for(var r=-1,a=o.length;++r<a;){var i=o[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=pF(t,e+s);break;case"takeRight":e=hF(e,t-s);break}}return{start:e,end:t}}var gF=1,yF=2,bF=Math.min;function CF(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),r=t<0,a=o?e.length:0,i=mF(0,a,this.__views__),s=i.start,l=i.end,c=l-s,d=r?l:s-1,u=this.__iteratees__,f=u.length,h=0,p=bF(c,this.__takeCount__);if(!o||!r&&a==c&&p==c)return Rb(e,this.__actions__);var m=[];e:for(;c--&&h<p;){d+=t;for(var g=-1,y=e[d];++g<f;){var w=u[g],$=w.iteratee,C=w.type,b=$(y);if(C==yF)y=b;else if(!b){if(C==gF)continue e;break e}}m[h++]=y}return m}var wF="4.17.21",$F=2,kF=1,SF=3,jb=4294967295,EF=Array.prototype,BF=Object.prototype,Ub=BF.hasOwnProperty,Gb=qt?qt.iterator:void 0,NF=Math.max,Yb=Math.min,Bh=function(e){return function(t,o,r){if(r==null){var a=$t(o),i=a&&Mt(o),s=i&&i.length&&Bc(o,i);(s?s.length:a)||(r=o,o=t,t=this)}return e(t,o,r)}}(ub);D.after=Et.after,D.ary=Et.ary,D.assign=Le.assign,D.assignIn=Le.assignIn,D.assignInWith=Le.assignInWith,D.assignWith=Le.assignWith,D.at=Le.at,D.before=Et.before,D.bind=Et.bind,D.bindAll=at.bindAll,D.bindKey=Et.bindKey,D.castArray=Ie.castArray,D.chain=vo.chain,D.chunk=Be.chunk,D.compact=Be.compact,D.concat=Be.concat,D.cond=at.cond,D.conforms=at.conforms,D.constant=at.constant,D.countBy=ut.countBy,D.create=Le.create,D.curry=Et.curry,D.curryRight=Et.curryRight,D.debounce=Et.debounce,D.defaults=Le.defaults,D.defaultsDeep=Le.defaultsDeep,D.defer=Et.defer,D.delay=Et.delay,D.difference=Be.difference,D.differenceBy=Be.differenceBy,D.differenceWith=Be.differenceWith,D.drop=Be.drop,D.dropRight=Be.dropRight,D.dropRightWhile=Be.dropRightWhile,D.dropWhile=Be.dropWhile,D.fill=Be.fill,D.filter=ut.filter,D.flatMap=ut.flatMap,D.flatMapDeep=ut.flatMapDeep,D.flatMapDepth=ut.flatMapDepth,D.flatten=Be.flatten,D.flattenDeep=Be.flattenDeep,D.flattenDepth=Be.flattenDepth,D.flip=Et.flip,D.flow=at.flow,D.flowRight=at.flowRight,D.fromPairs=Be.fromPairs,D.functions=Le.functions,D.functionsIn=Le.functionsIn,D.groupBy=ut.groupBy,D.initial=Be.initial,D.intersection=Be.intersection,D.intersectionBy=Be.intersectionBy,D.intersectionWith=Be.intersectionWith,D.invert=Le.invert,D.invertBy=Le.invertBy,D.invokeMap=ut.invokeMap,D.iteratee=at.iteratee,D.keyBy=ut.keyBy,D.keys=Mt,D.keysIn=Le.keysIn,D.map=ut.map,D.mapKeys=Le.mapKeys,D.mapValues=Le.mapValues,D.matches=at.matches,D.matchesProperty=at.matchesProperty,D.memoize=Et.memoize,D.merge=Le.merge,D.mergeWith=Le.mergeWith,D.method=at.method,D.methodOf=at.methodOf,D.mixin=Bh,D.negate=Ts,D.nthArg=at.nthArg,D.omit=Le.omit,D.omitBy=Le.omitBy,D.once=Et.once,D.orderBy=ut.orderBy,D.over=at.over,D.overArgs=Et.overArgs,D.overEvery=at.overEvery,D.overSome=at.overSome,D.partial=Et.partial,D.partialRight=Et.partialRight,D.partition=ut.partition,D.pick=Le.pick,D.pickBy=Le.pickBy,D.property=at.property,D.propertyOf=at.propertyOf,D.pull=Be.pull,D.pullAll=Be.pullAll,D.pullAllBy=Be.pullAllBy,D.pullAllWith=Be.pullAllWith,D.pullAt=Be.pullAt,D.range=at.range,D.rangeRight=at.rangeRight,D.rearg=Et.rearg,D.reject=ut.reject,D.remove=Be.remove,D.rest=Et.rest,D.reverse=Be.reverse,D.sampleSize=ut.sampleSize,D.set=Le.set,D.setWith=Le.setWith,D.shuffle=ut.shuffle,D.slice=Be.slice,D.sortBy=ut.sortBy,D.sortedUniq=Be.sortedUniq,D.sortedUniqBy=Be.sortedUniqBy,D.split=tt.split,D.spread=Et.spread,D.tail=Be.tail,D.take=Be.take,D.takeRight=Be.takeRight,D.takeRightWhile=Be.takeRightWhile,D.takeWhile=Be.takeWhile,D.tap=vo.tap,D.throttle=Et.throttle,D.thru=xs,D.toArray=Ie.toArray,D.toPairs=Le.toPairs,D.toPairsIn=Le.toPairsIn,D.toPath=at.toPath,D.toPlainObject=Ie.toPlainObject,D.transform=Le.transform,D.unary=Et.unary,D.union=Be.union,D.unionBy=Be.unionBy,D.unionWith=Be.unionWith,D.uniq=Be.uniq,D.uniqBy=Be.uniqBy,D.uniqWith=Be.uniqWith,D.unset=Le.unset,D.unzip=Be.unzip,D.unzipWith=Be.unzipWith,D.update=Le.update,D.updateWith=Le.updateWith,D.values=Le.values,D.valuesIn=Le.valuesIn,D.without=Be.without,D.words=tt.words,D.wrap=Et.wrap,D.xor=Be.xor,D.xorBy=Be.xorBy,D.xorWith=Be.xorWith,D.zip=Be.zip,D.zipObject=Be.zipObject,D.zipObjectDeep=Be.zipObjectDeep,D.zipWith=Be.zipWith,D.entries=Le.toPairs,D.entriesIn=Le.toPairsIn,D.extend=Le.assignIn,D.extendWith=Le.assignInWith,Bh(D,D),D.add=rn.add,D.attempt=at.attempt,D.camelCase=tt.camelCase,D.capitalize=tt.capitalize,D.ceil=rn.ceil,D.clamp=Eh.clamp,D.clone=Ie.clone,D.cloneDeep=Ie.cloneDeep,D.cloneDeepWith=Ie.cloneDeepWith,D.cloneWith=Ie.cloneWith,D.conformsTo=Ie.conformsTo,D.deburr=tt.deburr,D.defaultTo=at.defaultTo,D.divide=rn.divide,D.endsWith=tt.endsWith,D.eq=Ie.eq,D.escape=tt.escape,D.escapeRegExp=tt.escapeRegExp,D.every=ut.every,D.find=ut.find,D.findIndex=Be.findIndex,D.findKey=Le.findKey,D.findLast=ut.findLast,D.findLastIndex=Be.findLastIndex,D.findLastKey=Le.findLastKey,D.floor=rn.floor,D.forEach=ut.forEach,D.forEachRight=ut.forEachRight,D.forIn=Le.forIn,D.forInRight=Le.forInRight,D.forOwn=Le.forOwn,D.forOwnRight=Le.forOwnRight,D.get=Le.get,D.gt=Ie.gt,D.gte=Ie.gte,D.has=Le.has,D.hasIn=Le.hasIn,D.head=Be.head,D.identity=nn,D.includes=ut.includes,D.indexOf=Be.indexOf,D.inRange=Eh.inRange,D.invoke=Le.invoke,D.isArguments=Ie.isArguments,D.isArray=Fe,D.isArrayBuffer=Ie.isArrayBuffer,D.isArrayLike=Ie.isArrayLike,D.isArrayLikeObject=Ie.isArrayLikeObject,D.isBoolean=Ie.isBoolean,D.isBuffer=Ie.isBuffer,D.isDate=Ie.isDate,D.isElement=Ie.isElement,D.isEmpty=Ie.isEmpty,D.isEqual=Ie.isEqual,D.isEqualWith=Ie.isEqualWith,D.isError=Ie.isError,D.isFinite=Ie.isFinite,D.isFunction=Ie.isFunction,D.isInteger=Ie.isInteger,D.isLength=Ie.isLength,D.isMap=Ie.isMap,D.isMatch=Ie.isMatch,D.isMatchWith=Ie.isMatchWith,D.isNaN=Ie.isNaN,D.isNative=Ie.isNative,D.isNil=Ie.isNil,D.isNull=Ie.isNull,D.isNumber=Ie.isNumber,D.isObject=$t,D.isObjectLike=Ie.isObjectLike,D.isPlainObject=Ie.isPlainObject,D.isRegExp=Ie.isRegExp,D.isSafeInteger=Ie.isSafeInteger,D.isSet=Ie.isSet,D.isString=Ie.isString,D.isSymbol=Ie.isSymbol,D.isTypedArray=Ie.isTypedArray,D.isUndefined=Ie.isUndefined,D.isWeakMap=Ie.isWeakMap,D.isWeakSet=Ie.isWeakSet,D.join=Be.join,D.kebabCase=tt.kebabCase,D.last=En,D.lastIndexOf=Be.lastIndexOf,D.lowerCase=tt.lowerCase,D.lowerFirst=tt.lowerFirst,D.lt=Ie.lt,D.lte=Ie.lte,D.max=rn.max,D.maxBy=rn.maxBy,D.mean=rn.mean,D.meanBy=rn.meanBy,D.min=rn.min,D.minBy=rn.minBy,D.stubArray=at.stubArray,D.stubFalse=at.stubFalse,D.stubObject=at.stubObject,D.stubString=at.stubString,D.stubTrue=at.stubTrue,D.multiply=rn.multiply,D.nth=Be.nth,D.noop=at.noop,D.now=dF.now,D.pad=tt.pad,D.padEnd=tt.padEnd,D.padStart=tt.padStart,D.parseInt=tt.parseInt,D.random=Eh.random,D.reduce=ut.reduce,D.reduceRight=ut.reduceRight,D.repeat=tt.repeat,D.replace=tt.replace,D.result=Le.result,D.round=rn.round,D.sample=ut.sample,D.size=ut.size,D.snakeCase=tt.snakeCase,D.some=ut.some,D.sortedIndex=Be.sortedIndex,D.sortedIndexBy=Be.sortedIndexBy,D.sortedIndexOf=Be.sortedIndexOf,D.sortedLastIndex=Be.sortedLastIndex,D.sortedLastIndexBy=Be.sortedLastIndexBy,D.sortedLastIndexOf=Be.sortedLastIndexOf,D.startCase=tt.startCase,D.startsWith=tt.startsWith,D.subtract=rn.subtract,D.sum=rn.sum,D.sumBy=rn.sumBy,D.template=tt.template,D.times=at.times,D.toFinite=Ie.toFinite,D.toInteger=We,D.toLength=Ie.toLength,D.toLower=tt.toLower,D.toNumber=Ie.toNumber,D.toSafeInteger=Ie.toSafeInteger,D.toString=Ie.toString,D.toUpper=tt.toUpper,D.trim=tt.trim,D.trimEnd=tt.trimEnd,D.trimStart=tt.trimStart,D.truncate=tt.truncate,D.unescape=tt.unescape,D.uniqueId=at.uniqueId,D.upperCase=tt.upperCase,D.upperFirst=tt.upperFirst,D.each=ut.forEach,D.eachRight=ut.forEachRight,D.first=Be.head,Bh(D,function(){var e={};return xo(D,function(t,o){Ub.call(D.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),D.VERSION=wF,(D.templateSettings=tt.templateSettings).imports._=D,Vn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){D[e].placeholder=D}),Vn(["drop","take"],function(e,t){Ye.prototype[e]=function(o){o=o===void 0?1:NF(We(o),0);var r=this.__filtered__&&!t?new Ye(this):this.clone();return r.__filtered__?r.__takeCount__=Yb(o,r.__takeCount__):r.__views__.push({size:Yb(o,jb),type:e+(r.__dir__<0?"Right":"")}),r},Ye.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Vn(["filter","map","takeWhile"],function(e,t){var o=t+1,r=o==kF||o==SF;Ye.prototype[e]=function(a){var i=this.clone();return i.__iteratees__.push({iteratee:Ve(a),type:o}),i.__filtered__=i.__filtered__||r,i}}),Vn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ye.prototype[e]=function(){return this[o](1).value()[0]}}),Vn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ye.prototype[e]=function(){return this.__filtered__?new Ye(this):this[o](1)}}),Ye.prototype.compact=function(){return this.filter(nn)},Ye.prototype.find=function(e){return this.filter(e).head()},Ye.prototype.findLast=function(e){return this.reverse().find(e)},Ye.prototype.invokeMap=je(function(e,t){return typeof e=="function"?new Ye(this):this.map(function(o){return _s(o,e,t)})}),Ye.prototype.reject=function(e){return this.filter(Ts(Ve(e)))},Ye.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ye(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==void 0&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ye.prototype.toArray=function(){return this.take(jb)},xo(Ye.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=D[r?"take"+(t=="last"?"Right":""):t],i=r||/^find/.test(t);!a||(D.prototype[t]=function(){var s=this.__wrapped__,l=r?[1]:arguments,c=s instanceof Ye,d=l[0],u=c||Fe(s),f=function(w){var $=a.apply(D,Tr([w],l));return r&&h?$[0]:$};u&&o&&typeof d=="function"&&d.length!=1&&(c=u=!1);var h=this.__chain__,p=!!this.__actions__.length,m=i&&!h,g=c&&!p;if(!i&&u){s=g?s:new Ye(this);var y=e.apply(s,l);return y.__actions__.push({func:xs,args:[f],thisArg:void 0}),new Ln(y,h)}return m&&g?e.apply(this,l):(y=this.thru(f),m?r?y.value()[0]:y.value():y)})}),Vn(["pop","push","shift","sort","splice","unshift"],function(e){var t=EF[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);D.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Fe(i)?i:[],a)}return this[o](function(s){return t.apply(Fe(s)?s:[],a)})}}),xo(Ye.prototype,function(e,t){var o=D[t];if(o){var r=o.name+"";Ub.call(Xa,r)||(Xa[r]=[]),Xa[r].push({name:t,func:o})}}),Xa[cc(void 0,$F).name]=[{name:"wrapper",func:void 0}],Ye.prototype.clone=uF,Ye.prototype.reverse=fF,Ye.prototype.value=CF,D.prototype.at=vo.at,D.prototype.chain=vo.wrapperChain,D.prototype.commit=vo.commit,D.prototype.next=vo.next,D.prototype.plant=vo.plant,D.prototype.reverse=vo.reverse,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=vo.value,D.prototype.first=D.prototype.head,Gb&&(D.prototype[Gb]=vo.toIterator);/**
 * @license
 * Lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="es" -o ./`
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */const _F='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',TF=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,qb=e=>Array.from(e.querySelectorAll(_F)).filter(t=>AF(t)&&TF(t)),AF=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Oc=function(e,t,...o){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...o),e.dispatchEvent(a),e},Zb=e=>!e.getAttribute("aria-owns"),Xb=(e,t,o)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(o),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},Ic=e=>{!e||(e.focus(),!Zb(e)&&e.click())},pt=(e,t,{checkForDefaultPrevented:o=!0}={})=>a=>{const i=e?.(a);if(o===!1||!i)return t?.(a)},Jb=e=>t=>t.pointerType==="mouse"?e(t):void 0;var xF=Object.defineProperty,MF=Object.defineProperties,PF=Object.getOwnPropertyDescriptors,Qb=Object.getOwnPropertySymbols,vF=Object.prototype.hasOwnProperty,OF=Object.prototype.propertyIsEnumerable,eC=(e,t,o)=>t in e?xF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,IF=(e,t)=>{for(var o in t||(t={}))vF.call(t,o)&&eC(e,o,t[o]);if(Qb)for(var o of Qb(t))OF.call(t,o)&&eC(e,o,t[o]);return e},DF=(e,t)=>MF(e,PF(t));function tC(e,t){var o;const r=n.shallowRef();return n.watchEffect(()=>{r.value=e()},DF(IF({},t),{flush:(o=t?.flush)!=null?o:"sync"})),n.readonly(r)}var nC;const Re=typeof window<"u",RF=e=>typeof e<"u",LF=e=>typeof e=="function",VF=e=>typeof e=="number",FF=e=>typeof e=="string",li=()=>{},zF=Re&&((nC=window?.navigator)==null?void 0:nC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Dc(e){return typeof e=="function"?e():n.unref(e)}function HF(e,t){function o(...r){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(i)})}return o}function WF(e,t=!0,o=!0,r=!1){let a=0,i,s=!0,l=li,c;const d=()=>{i&&(clearTimeout(i),i=void 0,l(),l=li)};return f=>{const h=Dc(e),p=Date.now()-a,m=()=>c=f();return d(),h<=0?(a=Date.now(),m()):(p>h&&(o||!s)?(a=Date.now(),m()):t&&(c=new Promise((g,y)=>{l=r?y:g,i=setTimeout(()=>{a=Date.now(),s=!0,g(m()),d()},Math.max(0,h-p))})),!o&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,c)}}function KF(e){return e}function Rc(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function oC(e,t=200,o=!1,r=!0,a=!1){return HF(WF(t,o,r,a),e)}function Nh(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function ga(e,t,o={}){const{immediate:r=!0}=o,a=n.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...d)},Dc(t))}return r&&(a.value=!0,Re&&c()),Rc(l),{isPending:n.readonly(a),start:c,stop:l}}function Wn(e){var t;const o=Dc(e);return(t=o?.$el)!=null?t:o}const ci=Re?window:void 0,jF=Re?window.document:void 0;function Xe(...e){let t,o,r,a;if(FF(e[0])||Array.isArray(e[0])?([o,r,a]=e,t=ci):[t,o,r,a]=e,!t)return li;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),c=n.watch(()=>[Wn(t),Dc(a)],([u,f])=>{s(),u&&i.push(...o.flatMap(h=>r.map(p=>l(u,h,p,f))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Rc(d),d}let rC=!1;function _h(e,t,o={}){const{window:r=ci,ignore:a=[],capture:i=!0,detectIframe:s=!1}=o;if(!r)return;zF&&!rC&&(rC=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",li)));let l=!0;const c=h=>a.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(m=>m===h.target||h.composedPath().includes(m));{const m=Wn(p);return m&&(h.target===m||h.composedPath().includes(m))}}),u=[Xe(r,"click",h=>{const p=Wn(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(l=!c(h)),!l){l=!0;return}t(h)}},{passive:!0,capture:i}),Xe(r,"pointerdown",h=>{const p=Wn(e);p&&(l=!h.composedPath().includes(p)&&!c(h))},{passive:!0}),s&&Xe(r,"blur",h=>{var p;const m=Wn(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&t(h)})].filter(Boolean);return()=>u.forEach(h=>h())}function UF(e,t=!1){const o=n.ref(),r=()=>o.value=Boolean(e());return r(),Nh(r,t),o}function GF(e){return JSON.parse(JSON.stringify(e))}const Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ah="__vueuse_ssr_handlers__";Th[Ah]=Th[Ah]||{},Th[Ah];function YF({document:e=jF}={}){if(!e)return n.ref("visible");const t=n.ref(e.visibilityState);return Xe(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var aC=Object.getOwnPropertySymbols,qF=Object.prototype.hasOwnProperty,ZF=Object.prototype.propertyIsEnumerable,XF=(e,t)=>{var o={};for(var r in e)qF.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&aC)for(var r of aC(e))t.indexOf(r)<0&&ZF.call(e,r)&&(o[r]=e[r]);return o};function an(e,t,o={}){const r=o,{window:a=ci}=r,i=XF(r,["window"]);let s;const l=UF(()=>a&&"ResizeObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Wn(e),f=>{c(),l.value&&a&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{c(),d()};return Rc(u),{isSupported:l,stop:u}}function iC(e,t={}){const{reset:o=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,s=n.ref(0),l=n.ref(0),c=n.ref(0),d=n.ref(0),u=n.ref(0),f=n.ref(0),h=n.ref(0),p=n.ref(0);function m(){const g=Wn(e);if(!g){o&&(s.value=0,l.value=0,c.value=0,d.value=0,u.value=0,f.value=0,h.value=0,p.value=0);return}const y=g.getBoundingClientRect();s.value=y.height,l.value=y.bottom,c.value=y.left,d.value=y.right,u.value=y.top,f.value=y.width,h.value=y.x,p.value=y.y}return an(e,m),n.watch(()=>Wn(e),g=>!g&&m()),a&&Xe("scroll",m,{capture:!0,passive:!0}),r&&Xe("resize",m,{passive:!0}),Nh(()=>{i&&m()}),{height:s,bottom:l,left:c,right:d,top:u,width:f,x:h,y:p,update:m}}function Ms(){const e=n.ref(!1);return n.onMounted(()=>{e.value=!0}),e}var ya;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ya||(ya={}));function JF(e,t={}){const{threshold:o=50,onSwipe:r,onSwipeEnd:a,onSwipeStart:i,passive:s=!0,window:l=ci}=t,c=n.reactive({x:0,y:0}),d=n.reactive({x:0,y:0}),u=n.computed(()=>c.x-d.x),f=n.computed(()=>c.y-d.y),{max:h,abs:p}=Math,m=n.computed(()=>h(p(u.value),p(f.value))>=o),g=n.ref(!1),y=n.computed(()=>m.value?p(u.value)>p(f.value)?u.value>0?ya.LEFT:ya.RIGHT:f.value>0?ya.UP:ya.DOWN:ya.NONE),w=_=>[_.touches[0].clientX,_.touches[0].clientY],$=(_,T)=>{c.x=_,c.y=T},C=(_,T)=>{d.x=_,d.y=T};let b;const k=QF(l?.document);s?b=k?{passive:!0}:{capture:!1}:b=k?{passive:!1,capture:!0}:{capture:!0};const S=_=>{g.value&&a?.(_,y.value),g.value=!1},E=[Xe(e,"touchstart",_=>{b.capture&&!b.passive&&_.preventDefault();const[T,P]=w(_);$(T,P),C(T,P),i?.(_)},b),Xe(e,"touchmove",_=>{const[T,P]=w(_);C(T,P),!g.value&&m.value&&(g.value=!0),g.value&&r?.(_)},b),Xe(e,"touchend",S,b),Xe(e,"touchcancel",S,b)];return{isPassiveEventSupported:k,isSwiping:g,direction:y,coordsStart:c,coordsEnd:d,lengthX:u,lengthY:f,stop:()=>E.forEach(_=>_())}}function QF(e){if(!e)return!1;let t=!1;const o={get passive(){return t=!0,!1}};return e.addEventListener("x",li,o),e.removeEventListener("x",li),t}var ez=Object.defineProperty,sC=Object.getOwnPropertySymbols,tz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,lC=(e,t,o)=>t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oz=(e,t)=>{for(var o in t||(t={}))tz.call(t,o)&&lC(e,o,t[o]);if(sC)for(var o of sC(t))nz.call(t,o)&&lC(e,o,t[o]);return e};oz({linear:KF},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function rz(e,t,o,r={}){var a,i,s;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:f}=r,h=n.getCurrentInstance(),p=o||h?.emit||((a=h?.$emit)==null?void 0:a.bind(h))||((s=(i=h?.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(h?.proxy));let m=d;t||(t="modelValue"),m=d||m||`update:${t.toString()}`;const g=w=>l?LF(l)?l(w):GF(w):w,y=()=>RF(e[t])?g(e[t]):f;if(c){const w=y(),$=n.ref(w);return n.watch(()=>e[t],C=>$.value=g(C)),n.watch($,C=>{(C!==e[t]||u)&&p(m,C)},{deep:u}),$}else return n.computed({get(){return y()},set(w){p(m,w)}})}function az({window:e=ci}={}){if(!e)return n.ref(!1);const t=n.ref(e.document.hasFocus());return Xe(e,"blur",()=>{t.value=!1}),Xe(e,"focus",()=>{t.value=!0}),t}function iz(e={}){const{window:t=ci,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,s=n.ref(o),l=n.ref(r),c=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return c(),Nh(c),Xe("resize",c,{passive:!0}),a&&Xe("orientationchange",c,{passive:!0}),{width:s,height:l}}const sz=(e,t)=>{if(!Re||!e||!t)return!1;const o=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},o.top<r.bottom&&o.bottom>r.top&&o.right>r.left&&o.left<r.right},cC=e=>{let t=0,o=e;for(;o;)t+=o.offsetTop,o=o.offsetParent;return t},lz=(e,t)=>Math.abs(cC(e)-cC(t)),xh=e=>{let t,o;return e.type==="touchend"?(o=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(o=e.touches[0].clientY,t=e.touches[0].clientX):(o=e.clientY,t=e.clientX),{clientX:t,clientY:o}},mt=()=>{},cz=Object.prototype.hasOwnProperty,Kt=(e,t)=>cz.call(e,t),Me=Array.isArray,Ps=e=>dC(e)==="[object Date]",nt=e=>typeof e=="function",De=e=>typeof e=="string",it=e=>e!==null&&typeof e=="object",Mh=e=>it(e)&&nt(e.then)&&nt(e.catch),dz=Object.prototype.toString,dC=e=>dz.call(e),Ph=e=>dC(e).slice(8,-1),vh=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},uz=/-(\w)/g,uC=vh(e=>e.replace(uz,(t,o)=>o?o.toUpperCase():"")),fz=/\B([A-Z])/g,hz=vh(e=>e.replace(fz,"-$1").toLowerCase()),pz=vh(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vt=e=>e===void 0,Kn=e=>!e&&e!==0||Me(e)&&e.length===0||it(e)&&!Object.keys(e).length,ar=e=>typeof Element>"u"?!1:e instanceof Element,mz=e=>xt(e),gz=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),jn=e=>pz(e),vs=e=>Object.keys(e),yz=e=>Object.entries(e),bz=(e,t,o)=>({get value(){return rt(e,t,o)},set value(r){Mb(e,t,r)}});class Cz extends Error{constructor(t){super(t),this.name="BiginUiError"}}function vt(e,t){throw new Cz(`[${e}] ${t}`)}function z2e(e,t){}const fC=(e="")=>e.split(" ").filter(t=>!!t.trim()),lo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Oo=(e,t)=>{!e||!t.trim()||e.classList.add(...fC(t))},fn=(e,t)=>{!e||!t.trim()||e.classList.remove(...fC(t))},ir=(e,t)=>{if(!Re||!e||!t)return"";let o=uC(t);o==="float"&&(o="cssFloat");try{const r=e.style[o];if(r)return r;const a=document.defaultView?.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}};function Ot(e,t="px"){if(!e)return"";if(De(e))return e;if(Se(e))return`${e}${t}`}const wz=(e,t)=>{if(!Re)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=ir(e,o);return["scroll","auto","overlay"].some(a=>r.includes(a))},Oh=(e,t)=>{if(!Re)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(wz(o,t))return o;o=o.parentNode}return o};let Lc;const hC=e=>{if(!Re)return 0;if(Lc!==void 0)return Lc;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const o=t.offsetWidth;t.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",t.appendChild(r);const a=r.offsetWidth;return t.parentNode?.removeChild(t),Lc=o-a,Lc};function pC(e,t){if(!Re)return;if(!t){e.scrollTop=0;return}const o=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)o.push(r),r=r.offsetParent;const a=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),i=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:i>l&&(e.scrollTop=i-e.clientHeight)}let $z=Re?document.body:void 0;function kz(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),$z.appendChild(t),t}function Sz(e){e.remove()}var ze=(e,t)=>{let o=e.__vccOpts||e;for(let[r,a]of t)o[r]=a;return o},Ez={name:"Loading"},Bz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Nz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M138 86H166C171.523 86 176 90.4771 176 96C176 101.523 171.523 106 166 106H138C132.477 106 128 101.523 128 96C128 90.4771 132.477 86 138 86ZM26 86H54C59.5228 86 64 90.4771 64 96C64 101.523 59.5228 106 54 106H26C20.4772 106 16 101.523 16 96C16 90.4771 20.4772 86 26 86ZM96 128C101.523 128 106 132.477 106 138V166C106 171.523 101.523 176 96 176C90.4771 176 86 171.523 86 166V138C86 132.477 90.4771 128 96 128ZM96 16C101.523 16 106 20.4772 106 26V54C106 59.5228 101.523 64 96 64C90.4771 64 86 59.5228 86 54V26C86 20.4772 90.4771 16 96 16ZM132.77 118.627L152.569 138.426C156.474 142.332 156.474 148.663 152.569 152.569C148.663 156.474 142.332 156.474 138.426 152.569L118.627 132.77C114.722 128.864 114.722 122.533 118.627 118.627C122.533 114.722 128.864 114.722 132.77 118.627ZM53.5736 39.4315L73.3726 59.2304C77.2778 63.1357 77.2778 69.4673 73.3726 73.3726C69.4673 77.2778 63.1357 77.2778 59.2304 73.3726L39.4315 53.5736C35.5262 49.6684 35.5262 43.3367 39.4315 39.4315C43.3367 35.5262 49.6684 35.5262 53.5736 39.4315ZM73.3726 118.627C77.2778 122.533 77.2778 128.864 73.3726 132.77L53.5736 152.569C49.6684 156.474 43.3367 156.474 39.4315 152.569C35.5262 148.663 35.5262 142.332 39.4315 138.426L59.2304 118.627C63.1357 114.722 69.4673 114.722 73.3726 118.627ZM152.569 39.4315C156.474 43.3367 156.474 49.6684 152.569 53.5736L132.77 73.3726C128.864 77.2778 122.533 77.2778 118.627 73.3726C114.722 69.4673 114.722 63.1357 118.627 59.2304L138.426 39.4315C142.332 35.5262 148.663 35.5262 152.569 39.4315Z",fill:"currentColor"})],-1),_z=[Nz];function Tz(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Bz,_z)}var Or=ze(Ez,[["render",Tz],["__file","Loading.vue"]]),Az={name:"ActionDown"},xz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Mz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107.985 122.362L135.706 89.2755C141.381 82.5021 140.491 72.4107 133.718 66.7357C130.837 64.3225 127.2 63 123.442 63H68C59.1634 63 52 70.1634 52 79C52 82.7576 53.3225 86.3953 55.7357 89.2755L83.4567 122.362C89.1317 129.135 99.2232 130.026 105.997 124.351C106.717 123.747 107.382 123.082 107.985 122.362Z",fill:"currentColor"})],-1),Pz=[Mz];function vz(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",xz,Pz)}var di=ze(Az,[["render",vz],["__file","action-down.vue"]]),Oz={name:"ActionRight"},Iz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Dz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M122.362 83.4571L89.2755 55.7361C82.5021 50.061 72.4107 50.9515 66.7357 57.7249C64.3225 60.6051 63 64.2428 63 68.0004V123.442C63 132.279 70.1634 139.442 79 139.442C82.7576 139.442 86.3953 138.12 89.2755 135.707L122.362 107.986C129.135 102.311 130.026 92.2193 124.351 85.4459C123.747 84.7259 123.082 84.0604 122.362 83.4571Z",fill:"currentColor"})],-1),Rz=[Dz];function Lz(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Iz,Rz)}var ui=ze(Oz,[["render",Lz],["__file","action-right.vue"]]),Vz={name:"ActionUp"},Fz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},zz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107.985 68.7249L135.706 101.811C141.381 108.585 140.491 118.676 133.718 124.351C130.837 126.764 127.2 128.087 123.442 128.087H68C59.1634 128.087 52 120.923 52 112.087C52 108.329 53.3225 104.692 55.7357 101.811L83.4567 68.7249C89.1317 61.9515 99.2232 61.061 105.997 66.7361C106.717 67.3393 107.382 68.0048 107.985 68.7249Z",fill:"currentColor"})],-1),Hz=[zz];function Wz(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Fz,Hz)}var mC=ze(Vz,[["render",Wz],["__file","action-up.vue"]]),Kz={name:"ArrowDown"},jz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Uz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M96.0001 20C102.627 20 108 25.3726 108 32L108 139.053L133.861 115.182C138.731 110.687 146.322 110.991 150.818 115.861C155.313 120.73 155.009 128.322 150.139 132.818L115.492 164.8C104.766 174.701 88.2339 174.701 77.5082 164.8L42.8607 132.818C37.9908 128.322 37.6872 120.73 42.1824 115.861C46.6777 110.991 54.2696 110.687 59.1394 115.182L84 138.131L84.0001 32C84.0001 25.3726 89.3726 20 96.0001 20Z",fill:"currentColor"})],-1),Gz=[Uz];function Yz(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",jz,Gz)}var qz=ze(Kz,[["render",Yz],["__file","arrow-down.vue"]]),Zz={name:"ArrowLeft"},Xz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Jz=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M55.4078 41.8607C59.9031 36.9908 67.495 36.6872 72.3648 41.1824C77.2347 45.6777 77.5384 53.2696 73.0431 58.1394L49.632 83.5L163.725 83.5001C170.353 83.5001 175.725 88.8726 175.725 95.5001C175.725 102.127 170.353 107.5 163.725 107.5L49.633 107.5L73.0431 132.861C77.4634 137.649 77.2435 145.07 72.6045 149.59L72.3648 149.818C67.495 154.313 59.9031 154.009 55.4078 149.139L23.4255 114.492C13.5248 103.766 13.5248 87.2339 23.4255 76.5082L55.4078 41.8607Z",fill:"currentColor"})],-1),Qz=[Jz];function eH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Xz,Qz)}var co=ze(Zz,[["render",eH],["__file","arrow-left.vue"]]),tH={name:"ArrowRight"},nH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},oH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M133.318 41.8607L165.3 76.5082C175.201 87.2339 175.201 103.766 165.3 114.492L133.318 149.139C128.822 154.009 121.23 154.313 116.361 149.818C111.491 145.322 111.187 137.731 115.682 132.861L139.091 107.5L32 107.5C25.3726 107.5 20 102.127 20 95.5001C20 88.8726 25.3726 83.5001 32 83.5001L139.092 83.5L115.682 58.1394C111.187 53.2696 111.491 45.6777 116.361 41.1824C121.23 36.6872 128.822 36.9908 133.318 41.8607Z",fill:"currentColor"})],-1),rH=[oH];function aH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",nH,rH)}var Un=ze(tH,[["render",aH],["__file","arrow-right.vue"]]),iH={name:"ArrowUp"},sH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},lH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M77.5082 27.4255C88.2339 17.5248 104.766 17.5248 115.492 27.4255L150.139 59.4078C155.009 63.9031 155.313 71.495 150.818 76.3648C146.322 81.2347 138.731 81.5384 133.861 77.0431L109 54.094L109 160.225C109 166.853 103.627 172.225 97.0001 172.225C90.3726 172.225 85.0001 166.853 85.0001 160.225L85 53.17L59.1394 77.0431C54.3507 81.4634 46.93 81.2435 42.4097 76.6045L42.1824 76.3648C37.6872 71.495 37.9908 63.9031 42.8607 59.4078L77.5082 27.4255Z",fill:"currentColor"})],-1),cH=[lH];function dH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",sH,cH)}var uH=ze(iH,[["render",dH],["__file","arrow-up.vue"]]),fH={name:"Calendar"},hH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},pH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M141.001 36.5807C160.864 39.9137 176 57.1893 176 78V122C176 145.196 157.196 164 134 164H58C34.804 164 16 145.196 16 122V78C16 57.189 31.1361 39.9131 51.0002 36.5807L51.0007 57.1366C42.2822 60.0603 36 68.2965 36 78V122C36 134.15 45.8497 144 58 144H134C146.15 144 156 134.15 156 122V78C156 68.2965 149.718 60.0603 140.999 57.1366L141 57L141.001 36.5807ZM68 120C72.4183 120 76 123.582 76 128C76 132.418 72.4183 136 68 136H60C55.5817 136 52 132.418 52 128C52 123.582 55.5817 120 60 120H68ZM100 120C104.418 120 108 123.582 108 128C108 132.418 104.418 136 100 136H92C87.5817 136 84 132.418 84 128C84 123.582 87.5817 120 92 120H100ZM68 96C72.4183 96 76 99.5817 76 104C76 108.418 72.4183 112 68 112H60C55.5817 112 52 108.418 52 104C52 99.5817 55.5817 96 60 96H68ZM100 96C104.418 96 108 99.5817 108 104C108 108.418 104.418 112 100 112H92C87.5817 112 84 108.418 84 104C84 99.5817 87.5817 96 92 96H100ZM132 96C136.418 96 140 99.5817 140 104C140 108.418 136.418 112 132 112H124C119.582 112 116 108.418 116 104C116 99.5817 119.582 96 124 96H132ZM100 72C104.418 72 108 75.5817 108 80C108 84.4183 104.418 88 100 88H92C87.5817 88 84 84.4183 84 80C84 75.5817 87.5817 72 92 72H100ZM132 72C136.418 72 140 75.5817 140 80C140 84.4183 136.418 88 132 88H124C119.582 88 116 84.4183 116 80C116 75.5817 119.582 72 124 72H132ZM128 28C131.866 28 135 31.134 135 35V57C135 60.866 131.866 64 128 64C124.134 64 121 60.866 121 57V35C121 31.134 124.134 28 128 28ZM64 28C67.866 28 71 31.134 71 35V57C71 60.866 67.866 64 64 64C60.134 64 57 60.866 57 57V35C57 31.134 60.134 28 64 28ZM115 36V56H77V36H115Z",fill:"currentColor"})],-1),mH=[pH];function gH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",hH,mH)}var yH=ze(fH,[["render",gH],["__file","calendar.vue"]]),bH={name:"Check"},CH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},wH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M153.227 56.6863C159.476 62.9347 159.476 73.0653 153.227 79.3137L96.6586 135.882C90.4103 142.131 80.2796 142.131 74.0312 135.882C73.6255 135.477 73.2461 135.054 72.8931 134.618L38.6863 100.41C32.4379 94.1615 32.4379 84.0309 38.6863 77.7825C44.9347 71.5341 55.0653 71.5341 61.3137 77.7825L85.408 101.877L130.6 56.6863C136.848 50.4379 146.979 50.4379 153.227 56.6863Z",fill:"currentColor"})],-1),$H=[wH];function kH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",CH,$H)}var uo=ze(bH,[["render",kH],["__file","check.vue"]]),SH={name:"ChevronDown"},EH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},BH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M52.1393 66.1824C47.2694 61.6872 39.6775 61.9909 35.1823 66.8607C30.6871 71.7305 30.9907 79.3225 35.8606 83.8177L75.6515 120.548C87.1434 131.156 104.856 131.156 116.348 120.548L156.139 83.8177C161.009 79.3225 161.313 71.7305 156.818 66.8607C152.322 61.9909 144.73 61.6872 139.861 66.1824L100.07 102.913C97.7712 105.034 94.2286 105.034 91.9303 102.913L52.1393 66.1824Z",fill:"currentColor"})],-1),NH=[BH];function _H(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",EH,NH)}var TH=ze(SH,[["render",_H],["__file","chevron-down.vue"]]),AH={name:"ChevronLeft"},xH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},MH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M125.818 52.1393C130.313 47.2695 130.009 39.6776 125.139 35.1823C120.269 30.6871 112.678 30.9907 108.182 35.8606L71.4522 75.6515C60.8443 87.1434 60.8443 104.856 71.4522 116.348L108.182 156.139C112.678 161.009 120.269 161.313 125.139 156.818C130.009 152.322 130.313 144.73 125.818 139.861L89.0875 100.07C86.9659 97.7713 86.9659 94.2286 89.0875 91.9303L125.818 52.1393Z",fill:"currentColor"})],-1),PH=[MH];function vH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",xH,PH)}var Os=ze(AH,[["render",vH],["__file","chevron-left.vue"]]),OH={name:"ChevronRight"},IH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},DH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M66.1824 52.1393C61.6872 47.2694 61.9908 39.6775 66.8607 35.1823C71.7305 30.6871 79.3225 30.9907 83.8177 35.8606L120.548 75.6515C131.156 87.1434 131.156 104.856 120.548 116.348L83.8177 156.139C79.3225 161.009 71.7305 161.313 66.8607 156.818C61.9908 152.322 61.6872 144.73 66.1824 139.861L102.913 100.07C105.034 97.7713 105.034 94.2286 102.913 91.9303L66.1824 52.1393Z",fill:"currentColor"})],-1),RH=[DH];function LH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",IH,RH)}var Is=ze(OH,[["render",LH],["__file","chevron-right.vue"]]),VH={name:"ChevronUp"},FH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},zH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M52.1393 125.818C47.2694 130.313 39.6775 130.009 35.1823 125.139C30.6871 120.269 30.9907 112.678 35.8606 108.182L75.6515 71.4522C87.1434 60.8443 104.856 60.8443 116.348 71.4522L156.139 108.182C161.009 112.678 161.313 120.269 156.818 125.139C152.322 130.009 144.73 130.313 139.861 125.818L100.07 89.0875C97.7712 86.9659 94.2286 86.9659 91.9303 89.0875L52.1393 125.818Z",fill:"currentColor"})],-1),HH=[zH];function WH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",FH,HH)}var gC=ze(VH,[["render",WH],["__file","chevron-up.vue"]]),KH={name:"ClearCircle"},jH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},UH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M96 24C135.765 24 168 56.2355 168 96C168 135.765 135.765 168 96 168C56.2355 168 24 135.765 24 96C24 56.2355 56.2355 24 96 24ZM96 44C67.2812 44 44 67.2812 44 96C44 124.719 67.2812 148 96 148C124.719 148 148 124.719 148 96C148 67.2812 124.719 44 96 44ZM86.1005 70.5442L96 80.444L105.899 70.5442C110.195 66.2484 117.16 66.2484 121.456 70.5442C125.752 74.8399 125.752 81.8047 121.456 86.1005L111.556 96L121.456 105.899C125.752 110.195 125.752 117.16 121.456 121.456C117.16 125.752 110.195 125.752 105.899 121.456L96 111.556L86.1005 121.456C81.8047 125.752 74.8399 125.752 70.5442 121.456C66.2484 117.16 66.2484 110.195 70.5442 105.899L80.444 96L70.5442 86.1005C66.2484 81.8047 66.2484 74.8399 70.5442 70.5442C74.8399 66.2484 81.8047 66.2484 86.1005 70.5442Z",fill:"currentColor"})],-1),GH=[UH];function YH(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",jH,GH)}var qH=ze(KH,[["render",YH],["__file","clear-circle.vue"]]),ZH={name:"Clear"},XH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},JH=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M147.338 45.5147C152.024 50.201 152.024 57.799 147.338 62.4853L113.397 96.426L147.338 130.368C152.024 135.054 152.024 142.652 147.338 147.338C142.652 152.024 135.054 152.024 130.368 147.338L96.426 113.397L62.4853 147.338C57.799 152.024 50.201 152.024 45.5147 147.338C40.8284 142.652 40.8284 135.054 45.5147 130.368L79.455 96.426L45.5147 62.4853C40.8284 57.799 40.8284 50.201 45.5147 45.5147C50.201 40.8284 57.799 40.8284 62.4853 45.5147L96.426 79.455L130.368 45.5147C135.054 40.8284 142.652 40.8284 147.338 45.5147Z",fill:"currentColor"})],-1),QH=[JH];function eW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",XH,QH)}var fi=ze(ZH,[["render",eW],["__file","clear.vue"]]),tW={name:"Close"},nW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},oW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M147.338 45.5147C152.024 50.201 152.024 57.799 147.338 62.4853L113.397 96.426L147.338 130.368C152.024 135.054 152.024 142.652 147.338 147.338C142.652 152.024 135.054 152.024 130.368 147.338L96.426 113.397L62.4853 147.338C57.799 152.024 50.201 152.024 45.5147 147.338C40.8284 142.652 40.8284 135.054 45.5147 130.368L79.455 96.426L45.5147 62.4853C40.8284 57.799 40.8284 50.201 45.5147 45.5147C50.201 40.8284 57.799 40.8284 62.4853 45.5147L96.426 79.455L130.368 45.5147C135.054 40.8284 142.652 40.8284 147.338 45.5147Z",fill:"currentColor"})],-1),rW=[oW];function aW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",nW,rW)}var Nn=ze(tW,[["render",aW],["__file","close.vue"]]),iW={name:"ControlMinus"},sW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},lW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48 80H144C152.837 80 160 87.1634 160 96C160 104.837 152.837 112 144 112H48C39.1634 112 32 104.837 32 96C32 87.1634 39.1634 80 48 80Z",fill:"currentColor"})],-1),cW=[lW];function dW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",sW,cW)}var uW=ze(iW,[["render",dW],["__file","control-minus.vue"]]),fW={name:"ControlPlus"},hW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},pW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M96 32C104.837 32 112 39.1634 112 48V80H144C152.837 80 160 87.1634 160 96C160 104.837 152.837 112 144 112H112V144C112 152.837 104.837 160 96 160C87.1634 160 80 152.837 80 144V112H48C39.1634 112 32 104.837 32 96C32 87.1634 39.1634 80 48 80H80V48C80 39.1634 87.1634 32 96 32Z",fill:"currentColor"})],-1),mW=[pW];function gW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",hW,mW)}var yC=ze(fW,[["render",gW],["__file","control-plus.vue"]]),yW={name:"Delete"},bW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},CW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M166 44C171.523 44 176 48.4772 176 54C176 59.5228 171.523 64 166 64H160.116L153.647 133.872C151.647 155.476 133.522 172 111.826 172H80.1739C58.4783 172 40.3531 155.476 38.3528 133.872L31.883 64H26C20.4772 64 16 59.5228 16 54C16 48.4772 20.4772 44 26 44H166ZM140.031 64H51.968L58.2676 132.028C59.3043 143.224 68.6085 151.816 79.8119 151.997L80.1739 152H111.826C123.19 152 132.685 143.344 133.732 132.028L140.031 64ZM83.2779 83.9221L88.8448 123.533C89.4597 127.908 86.4113 131.953 82.036 132.568C77.6607 133.183 73.6154 130.135 73.0005 125.76L67.4336 86.1489C66.8187 81.7736 69.867 77.7283 74.2423 77.1134C78.6176 76.4985 82.6629 79.5469 83.2779 83.9221ZM117.674 77.1085C122.049 77.7234 125.098 81.7688 124.483 86.1441L118.916 125.755C118.301 130.13 114.256 133.178 109.88 132.564C105.505 131.949 102.457 127.903 103.072 123.528L108.638 83.9173C109.253 79.542 113.299 76.4936 117.674 77.1085ZM120 28C120 32.4183 116.418 36 112 36H80C75.5817 36 72 32.4183 72 28C72 23.5817 75.5817 20 80 20H112C116.418 20 120 23.5817 120 28Z",fill:"currentColor"})],-1),wW=[CW];function $W(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",bW,wW)}var kW=ze(yW,[["render",$W],["__file","delete.vue"]]),SW={name:"Document"},EW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},BW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M117.6 16C120.119 16 122.546 16.9508 124.394 18.6624L156.794 48.6624C158.838 50.555 160 53.2144 160 56V134C160 157.196 141.196 176 118 176H74C50.804 176 32 157.196 32 134V58C32 34.804 50.804 16 74 16H117.6ZM112 36H74C61.8497 36 52 45.8497 52 58V134C52 146.15 61.8497 156 74 156H118C130.15 156 140 146.15 140 134V66H128C119.269 66 112.171 59.0061 112.003 50.3149L112 50V36ZM114 120C119.523 120 124 124.477 124 130C124 135.523 119.523 140 114 140H78C72.4772 140 68 135.523 68 130C68 124.477 72.4772 120 78 120H114ZM114 84C119.523 84 124 88.4771 124 94C124 99.5229 119.523 104 114 104H78C72.4772 104 68 99.5229 68 94C68 88.4771 72.4772 84 78 84H114Z",fill:"currentColor"})],-1),NW=[BW];function _W(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",EW,NW)}var TW=ze(SW,[["render",_W],["__file","document.vue"]]),AW={name:"Error"},xW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},MW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M96 32C106.163 32 114.403 40.2391 114.403 50.4027C114.403 50.9127 114.381 51.4226 114.339 51.9309L109.719 107.377C109.124 114.512 103.16 120 96 120C88.8404 120 82.876 114.512 82.2814 107.377L77.6609 51.9309C76.8169 41.8025 84.3433 32.9076 94.4717 32.0636C94.9801 32.0212 95.4899 32 96 32ZM96 132C103.732 132 110 138.268 110 146C110 153.732 103.732 160 96 160C88.268 160 82 153.732 82 146C82 138.268 88.268 132 96 132Z",fill:"currentColor"})],-1),PW=[MW];function vW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",xW,PW)}var Vc=ze(AW,[["render",vW],["__file","error.vue"]]),OW={name:"Hide"},IW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},DW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M150.959 40.9289C154.865 44.8342 154.865 51.1658 150.959 55.0711L54.9594 151.071C51.0542 154.976 44.7225 154.976 40.8173 151.071C36.912 147.166 36.912 140.834 40.8173 136.929L43.6947 134.052C39.7725 131.795 35.995 129.282 32.3866 126.526L30.3192 124.948C14.3319 112.739 11.2685 89.8819 23.477 73.8945C25.4433 71.3196 27.7443 69.0186 30.3192 67.0523L32.3866 65.4736C50.6261 51.5453 72.9389 44 95.8884 44C106.797 44 117.617 45.7052 127.966 49.0386C128.152 49.0984 128.334 49.163 128.514 49.2323L136.817 40.9289C140.723 37.0237 147.054 37.0237 150.959 40.9289ZM164.984 70.1189C177.946 82.9331 179.453 103.5 168.3 118.105C166.333 120.68 164.032 122.981 161.457 124.948L159.39 126.526C141.151 140.455 118.838 148 95.8884 148C90.3655 148 85.8884 143.523 85.8884 138C85.8884 132.571 90.215 128.152 95.6084 128.004L95.8884 128C114.451 128 132.499 121.897 147.252 110.631L149.319 109.052C150.48 108.166 151.518 107.128 152.404 105.967C157.355 99.4839 156.771 90.3843 151.185 84.6064L150.923 84.3421C146.996 80.4593 146.959 74.1278 150.842 70.2002C154.725 66.2725 161.056 66.2361 164.984 70.1189ZM95.8884 64C77.3257 64 59.2779 70.103 44.5249 81.3689L42.4575 82.9477C41.2965 83.8343 40.259 84.8718 39.3724 86.0328C33.8676 93.2414 35.2489 103.548 42.4575 109.052L44.5249 110.631C48.8892 113.964 53.5589 116.858 58.4684 119.278L73.3852 104.362C72.4173 101.758 71.8884 98.9408 71.8884 96C71.8884 82.7452 82.6335 72 95.8884 72C98.829 72 101.646 72.5289 104.25 73.4966L112.165 65.5798C106.816 64.5315 101.366 64 95.8884 64Z",fill:"currentColor"})],-1),RW=[DW];function LW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",IW,RW)}var VW=ze(OW,[["render",LW],["__file","hide.vue"]]),FW={name:"History"},zW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},HW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M148.992 50.5724C173.794 75.3745 173.746 115.621 148.902 140.465C131.426 157.94 105.72 163.571 82.8408 155.557C77.6285 153.731 74.8831 148.026 76.7089 142.813C78.5347 137.601 84.2402 134.856 89.4525 136.682C105.141 142.177 122.766 138.316 134.76 126.323C151.801 109.282 151.834 81.6986 134.85 64.7146C117.865 47.7305 90.2826 47.7632 73.2414 64.8044C64.4857 73.5601 60.014 85.3463 60.4646 97.3168L66.3033 91.4785C69.3717 88.4101 74.3466 88.4101 77.415 91.4785C80.4834 94.547 80.4834 99.5218 77.415 102.59L63.1719 116.833C56.9235 123.082 46.7928 123.082 40.5445 116.833L26.3013 102.59C23.2329 99.5218 23.2329 94.547 26.3013 91.4785C29.3697 88.4101 34.3446 88.4101 37.413 91.4785L40.4441 94.5101C40.7392 78.2991 47.2138 62.5478 59.0993 50.6623C83.9434 25.8181 124.19 25.7704 148.992 50.5724ZM104.296 74.0709L109.959 95.207L127.86 95.2076C132.278 95.2076 135.86 98.7894 135.86 103.208C135.86 107.626 132.278 111.208 127.86 111.208H103.86C102.571 111.208 101.353 110.903 100.274 110.361C98.2823 109.377 96.7082 107.573 96.088 105.258L88.8411 78.212C87.6975 73.9443 90.2302 69.5576 94.4979 68.4141C98.7657 67.2705 103.152 69.8032 104.296 74.0709Z",fill:"currentColor"})],-1),WW=[HW];function KW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",zW,WW)}var bC=ze(FW,[["render",KW],["__file","history.vue"]]),jW={name:"Image"},UW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},GW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M134 32C157.196 32 176 50.804 176 74V118C176 141.196 157.196 160 134 160H58C34.804 160 16 141.196 16 118V74C16 50.804 34.804 32 58 32H134ZM134 52H58C45.8497 52 36 61.8497 36 74V118C36 118.145 36.0014 118.29 36.0042 118.434C36.0442 116.085 36.6025 113.773 37.639 111.663L43.1223 100.5C43.6375 99.4513 44.3027 98.4832 45.0971 97.6263C49.6124 92.7556 57.2212 92.4674 62.092 96.9827L75.5036 109.416C75.7498 109.644 76.003 109.864 76.263 110.076C83.1084 115.664 93.1876 114.645 98.7756 107.8L116.807 85.7112C117.147 85.2947 117.508 84.8956 117.888 84.5155C124.136 78.2671 134.267 78.2671 140.515 84.5155L151.314 95.3137C154.314 98.3143 156 102.384 156 106.627V74C156 61.8497 146.15 52 134 52ZM79 64C87.2843 64 94 70.7157 94 79C94 87.2843 87.2843 94 79 94C70.7157 94 64 87.2843 64 79C64 70.7157 70.7157 64 79 64Z",fill:"currentColor"})],-1),YW=[GW];function qW(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",UW,YW)}var ZW=ze(jW,[["render",qW],["__file","image.vue"]]),XW={name:"Information"},JW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},QW=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M96 16C140.183 16 176 51.8172 176 96C176 140.183 140.183 176 96 176C51.8172 176 16 140.183 16 96C16 51.8172 51.8172 16 96 16ZM96 36C62.8629 36 36 62.8629 36 96C36 129.137 62.8629 156 96 156C129.137 156 156 129.137 156 96C156 62.8629 129.137 36 96 36ZM96 85C103.732 85 110 91.268 110 99V127C110 134.732 103.732 141 96 141C88.268 141 82 134.732 82 127V99C82 91.268 88.268 85 96 85ZM96 51C103.732 51 110 57.268 110 65C110 72.732 103.732 79 96 79C88.268 79 82 72.732 82 65C82 57.268 88.268 51 96 51Z",fill:"currentColor"})],-1),eK=[QW];function tK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",JW,eK)}var Fc=ze(XW,[["render",tK],["__file","information.vue"]]),nK={name:"MoreHorizontal"},oK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},rK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M92 32H100C108.837 32 116 39.1634 116 48C116 56.8366 108.837 64 100 64H92C83.1634 64 76 56.8366 76 48C76 39.1634 83.1634 32 92 32ZM92 80H100C108.837 80 116 87.1634 116 96C116 104.837 108.837 112 100 112H92C83.1634 112 76 104.837 76 96C76 87.1634 83.1634 80 92 80ZM92 128H100C108.837 128 116 135.163 116 144C116 152.837 108.837 160 100 160H92C83.1634 160 76 152.837 76 144C76 135.163 83.1634 128 92 128Z",fill:"currentColor"})],-1),aK=[rK];function iK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",oK,aK)}var sK=ze(nK,[["render",iK],["__file","more-horizontal.vue"]]),lK={name:"Profile"},cK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},dK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M96.3586 80C112.927 80 126.359 66.5685 126.359 50C126.359 33.4315 112.927 20 96.3586 20C79.7901 20 66.3586 33.4315 66.3586 50C66.3586 66.5685 79.7901 80 96.3586 80ZM101.241 90C126.55 90 149.795 103.96 161.686 126.302L165.669 133.784C172.415 146.46 167.609 162.205 154.933 168.951C151.173 170.953 146.978 172 142.717 172H50C35.6406 172 24 160.359 24 146C24 141.74 25.0469 137.545 27.0486 133.784L31.0312 126.302C42.9225 103.96 66.1675 90 91.4763 90H101.241ZM101.241 110H91.4763C73.5597 110 57.1042 119.883 48.6861 135.698L44.7035 143.181C44.2416 144.049 44 145.017 44 146C44 149.314 46.6863 152 50 152H142.717C143.7 152 144.668 151.758 145.536 151.296C148.462 149.74 149.571 146.106 148.014 143.181L144.031 135.698C135.613 119.883 119.158 110 101.241 110Z",fill:"currentColor"})],-1),uK=[dK];function fK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",cK,uK)}var hK=ze(lK,[["render",fK],["__file","profile.vue"]]),pK={name:"Question"},mK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},gK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M96 16C140.183 16 176 51.8172 176 96C176 140.183 140.183 176 96 176C51.8172 176 16 140.183 16 96C16 51.8172 51.8172 16 96 16ZM96 36C62.8629 36 36 62.8629 36 96C36 129.137 62.8629 156 96 156C129.137 156 156 129.137 156 96C156 62.8629 129.137 36 96 36ZM93.5769 114.899C96.3574 114.899 98.8157 115.924 100.952 117.973C103.088 120.023 104.168 122.49 104.193 125.374C104.168 127.347 103.656 129.137 102.658 130.744C101.659 132.35 100.364 133.628 98.7714 134.577C97.1789 135.526 95.4474 136 93.5769 136C90.6447 136 88.1359 134.969 86.0505 132.907C83.965 130.845 82.935 128.334 82.9603 125.374C82.935 122.49 83.965 120.023 86.0505 117.973C88.1359 115.924 90.6447 114.899 93.5769 114.899ZM94.7902 56C100.2 56 105.028 56.7906 109.274 58.3719C113.521 59.9532 116.87 62.3314 119.322 65.5066C121.774 68.6819 123 72.6477 123 77.4042C123 80.4655 122.475 83.1537 121.426 85.4687C120.377 87.7837 118.924 89.8204 117.066 91.5788C115.363 93.1906 113.4 94.6696 111.176 96.0157L110.563 96.3795C108.743 97.4421 107.214 98.5364 105.976 99.6622C104.737 100.788 103.802 102.066 103.17 103.495C103.094 103.667 103.021 103.883 102.952 104.144L102.901 104.349C102.044 107.952 98.8254 110.495 95.1217 110.497H93.2735C88.6233 110.497 84.8535 106.727 84.8535 102.077C84.8535 101.756 84.8719 101.435 84.9085 101.117C85.0304 100.054 85.1646 99.247 85.3111 98.6945C85.9683 96.215 86.9415 94.2226 88.2307 92.7173C89.4124 91.3373 90.8384 90.0797 92.5086 88.9442L92.9702 88.6376C94.588 87.575 96.0351 86.5503 97.3116 85.5636C98.5882 84.5769 99.5993 83.5269 100.345 82.4137C101.091 81.3004 101.463 80.0354 101.463 78.6186C101.463 77.3536 101.16 76.2404 100.553 75.2789C99.9468 74.3175 99.1253 73.5712 98.0889 73.0398C97.0525 72.5085 95.9024 72.2429 94.6385 72.2429C93.2735 72.2429 92.016 72.5591 90.8658 73.1917C89.7157 73.8242 88.7931 74.697 88.0979 75.8102L87.7169 76.4157C85.1265 80.5148 80.2348 82.5375 75.5059 81.4649C71.0009 80.4431 68.1773 75.9627 69.1991 71.4578C69.2344 71.302 69.2742 71.1473 69.3185 70.9938C69.9337 68.8567 70.6388 67.2301 71.4337 66.1139C73.9109 62.635 77.197 60.0797 81.2919 58.4478C85.3869 56.8159 89.8863 56 94.7902 56Z",fill:"currentColor"})],-1),yK=[gK];function bK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",mK,yK)}var CK=ze(pK,[["render",bK],["__file","question.vue"]]),wK={name:"RotateLeft"},$K={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},kK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M118.213 81.9878L138.012 101.787C149.728 113.503 149.728 132.497 138.012 144.213L118.213 164.012C106.497 175.728 87.5025 175.728 75.7868 164.012L55.9878 144.213C44.2721 132.497 44.2721 113.503 55.9878 101.787L75.7868 81.9878C87.5025 70.2721 106.497 70.2721 118.213 81.9878ZM89.9289 96.1299L70.1299 115.929C66.2247 119.834 66.2247 126.166 70.1299 130.071L89.9289 149.87C93.8342 153.775 100.166 153.775 104.071 149.87L123.87 130.071C127.775 126.166 127.775 119.834 123.87 115.929L104.071 96.1299C100.166 92.2247 93.8342 92.2247 89.9289 96.1299ZM97 19C125.224 19 150.339 35.3846 162.082 60.5586C164.416 65.5637 162.251 71.5138 157.246 73.8484C152.241 76.1831 146.291 74.0183 143.957 69.0132C135.464 50.8069 117.366 39 97 39C82.5185 39 69.0885 44.9658 59.4662 55.0008L74 55C79.5228 55 84 59.4772 84 65C84 70.5228 79.5228 75 74 75H44C35.1634 75 28 67.8366 28 59V29C28 23.4772 32.4772 19 38 19C43.5228 19 48 23.4772 48 29L48.0001 38.2356C61.0475 26.1154 78.4024 19 97 19Z",fill:"currentColor"})],-1),SK=[kK];function EK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",$K,SK)}var BK=ze(wK,[["render",EK],["__file","rotate-left.vue"]]),NK={name:"RotateRight"},_K={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},TK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M114.368 81.9878L134.167 101.787C145.883 113.503 145.883 132.497 134.167 144.213L114.368 164.012C102.653 175.728 83.6578 175.728 71.9421 164.012L52.1431 144.213C40.4274 132.497 40.4274 113.503 52.1431 101.787L71.9421 81.9878C83.6578 70.2721 102.653 70.2721 114.368 81.9878ZM86.0842 96.1299L66.2852 115.929C62.38 119.834 62.38 126.166 66.2852 130.071L86.0842 149.87C89.9895 153.775 96.3211 153.775 100.226 149.87L120.025 130.071C123.931 126.166 123.931 119.834 120.025 115.929L100.226 96.1299C96.3211 92.2247 89.9895 92.2247 86.0842 96.1299ZM152.155 19C157.678 19 162.155 23.4772 162.155 29V59C162.155 67.8366 154.992 75 146.155 75H116.155C110.632 75 106.155 70.5228 106.155 65C106.155 59.4772 110.632 55 116.155 55L132.555 55.0008C122.933 44.9658 109.503 39 95.0215 39C74.6556 39 56.5574 50.8069 48.0649 69.0132C45.7303 74.0183 39.7802 76.1831 34.7751 73.8484C29.77 71.5138 27.6052 65.5637 29.9398 60.5586C41.6824 35.3846 66.7976 19 95.0215 19C112.746 19 129.342 25.463 142.156 36.5621L142.155 29C142.155 23.4772 146.632 19 152.155 19Z",fill:"currentColor"})],-1),AK=[TK];function xK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",_K,AK)}var MK=ze(NK,[["render",xK],["__file","rotate-right.vue"]]),PK={name:"Search"},vK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},OK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M157.485 132.029L165.971 140.515C173 147.544 173 158.941 165.971 165.971C158.941 173 147.544 173 140.515 165.971L132.029 157.485C125 150.456 125 139.059 132.029 132.029C139.059 125 150.456 125 157.485 132.029ZM84 21C118.794 21 147 49.2061 147 84C147 118.794 118.794 147 84 147C49.2061 147 21 118.794 21 84C21 49.2061 49.2061 21 84 21ZM84 41C60.2518 41 41 60.2518 41 84C41 107.748 60.2518 127 84 127C107.748 127 127 107.748 127 84C127 60.2518 107.748 41 84 41ZM90.7688 47.5967C106.75 52.0015 118.804 65.4418 121.373 81.8909C121.884 85.165 119.644 88.2336 116.37 88.7449C113.096 89.2562 110.028 87.0166 109.516 83.7426C107.677 71.9671 99.0255 62.3199 87.5802 59.1653C84.3856 58.2848 82.5097 54.9812 83.3902 51.7867C84.2707 48.5921 87.5742 46.7161 90.7688 47.5967Z",fill:"currentColor"})],-1),IK=[OK];function DK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",vK,IK)}var RK=ze(PK,[["render",DK],["__file","search.vue"]]),LK={name:"Show"},VK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},FK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M95.8884 44C118.838 44 141.151 51.5453 159.39 65.4736L161.457 67.0523C177.445 79.2609 180.508 102.118 168.3 118.105C166.333 120.68 164.032 122.981 161.457 124.948L159.39 126.526C141.151 140.455 118.838 148 95.8884 148C72.9389 148 50.6261 140.455 32.3866 126.526L30.3192 124.948C14.3319 112.739 11.2685 89.8819 23.477 73.8945C25.4433 71.3196 27.7443 69.0186 30.3192 67.0523L32.3866 65.4736C50.6261 51.5453 72.9389 44 95.8884 44ZM95.8884 64C77.3257 64 59.2779 70.103 44.5249 81.3689L42.4575 82.9477C41.2965 83.8343 40.259 84.8718 39.3724 86.0328C33.8676 93.2414 35.2489 103.548 42.4575 109.052L44.5249 110.631C59.2779 121.897 77.3257 128 95.8884 128C114.451 128 132.499 121.897 147.252 110.631L149.319 109.052C150.48 108.166 151.518 107.128 152.404 105.967C157.909 98.7586 156.528 88.4524 149.319 82.9477L147.252 81.3689C132.499 70.103 114.451 64 95.8884 64ZM95.8884 72C109.143 72 119.888 82.7452 119.888 96C119.888 109.255 109.143 120 95.8884 120C82.6335 120 71.8884 109.255 71.8884 96C71.8884 82.7452 82.6335 72 95.8884 72Z",fill:"currentColor"})],-1),zK=[FK];function HK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",VK,zK)}var WK=ze(LK,[["render",HK],["__file","show.vue"]]),KK={name:"SortDown"},jK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},UK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M56.8579 16C62.3807 16 66.8579 20.4772 66.8579 26L66.857 143.509L74.8406 135.527C78.7459 131.622 85.0775 131.622 88.9828 135.527C92.888 139.432 92.888 145.764 88.9828 149.669L67.7696 170.882C61.5212 177.131 51.3905 177.131 45.1421 170.882L23.9289 149.669C20.0237 145.764 20.0237 139.432 23.9289 135.527C27.8342 131.622 34.1658 131.622 38.0711 135.527L46.857 144.312L46.8579 26C46.8579 20.4772 51.335 16 56.8579 16ZM137.858 96C143.381 96 147.858 100.477 147.858 106C147.858 111.523 143.381 116 137.858 116H93.8579C88.335 116 83.8579 111.523 83.8579 106C83.8579 100.477 88.335 96 93.8579 96H137.858ZM161.858 64C167.381 64 171.858 68.4772 171.858 74C171.858 79.5228 167.381 84 161.858 84H93.8579C88.335 84 83.8579 79.5228 83.8579 74C83.8579 68.4772 88.335 64 93.8579 64H161.858ZM161.858 32C167.381 32 171.858 36.4772 171.858 42C171.858 47.5228 167.381 52 161.858 52H93.8579C88.335 52 83.8579 47.5228 83.8579 42C83.8579 36.4772 88.335 32 93.8579 32H161.858Z",fill:"currentColor"})],-1),GK=[UK];function YK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",jK,GK)}var CC=ze(KK,[["render",YK],["__file","sort-down.vue"]]),qK={name:"SortUp"},ZK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},XK=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M67.7696 20.6863L88.9828 41.8995C92.888 45.8047 92.888 52.1364 88.9828 56.0416C85.0775 59.9469 78.7459 59.9469 74.8406 56.0416L66.857 48.058L66.8579 165.373C66.8579 170.895 62.3807 175.373 56.8579 175.373C51.335 175.373 46.8579 170.895 46.8579 165.373L46.857 47.255L38.0711 56.0416C34.1658 59.9469 27.8342 59.9469 23.9289 56.0416C20.0237 52.1364 20.0237 45.8047 23.9289 41.8995L45.1421 20.6863C51.3905 14.4379 61.5212 14.4379 67.7696 20.6863ZM161.858 139.373C167.381 139.373 171.858 143.85 171.858 149.373C171.858 154.895 167.381 159.373 161.858 159.373H93.8579C88.335 159.373 83.8579 154.895 83.8579 149.373C83.8579 143.85 88.335 139.373 93.8579 139.373H161.858ZM161.858 107.373C167.381 107.373 171.858 111.85 171.858 117.373C171.858 122.895 167.381 127.373 161.858 127.373H93.8579C88.335 127.373 83.8579 122.895 83.8579 117.373C83.8579 111.85 88.335 107.373 93.8579 107.373H161.858ZM137.858 75.3726C143.381 75.3726 147.858 79.8497 147.858 85.3726C147.858 90.8954 143.381 95.3726 137.858 95.3726H93.8579C88.335 95.3726 83.8579 90.8954 83.8579 85.3726C83.8579 79.8497 88.335 75.3726 93.8579 75.3726H137.858Z",fill:"currentColor"})],-1),JK=[XK];function QK(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",ZK,JK)}var wC=ze(qK,[["render",QK],["__file","sort-up.vue"]]),ej={name:"Sort"},tj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},nj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M143.77 28.6863L164.983 49.8995C168.888 53.8047 168.888 60.1364 164.983 64.0416C161.078 67.9469 154.746 67.9469 150.841 64.0416L143.857 57.058L143.858 157.373C143.858 163.448 138.933 168.373 132.858 168.373C126.783 168.373 121.858 163.448 121.858 157.373L121.857 56.255L114.071 64.0416C110.166 67.9469 103.834 67.9469 99.9289 64.0416C96.0237 60.1364 96.0237 53.8047 99.9289 49.8995L121.142 28.6863C127.391 22.4379 137.521 22.4379 143.77 28.6863ZM60.8579 24.3726C66.933 24.3726 71.8579 29.2975 71.8579 35.3726L71.857 135.882L78.8406 128.899C82.7459 124.994 89.0775 124.994 92.9828 128.899C96.888 132.805 96.888 139.136 92.9828 143.042L71.7696 164.255C65.5212 170.503 55.3905 170.503 49.1421 164.255L27.9289 143.042C24.0237 139.136 24.0237 132.805 27.9289 128.899C31.8342 124.994 38.1658 124.994 42.0711 128.899L49.857 136.685L49.8579 35.3726C49.8579 29.2975 54.7827 24.3726 60.8579 24.3726Z",fill:"currentColor"})],-1),oj=[nj];function rj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",tj,oj)}var aj=ze(ej,[["render",rj],["__file","sort.vue"]]),ij={name:"StarFill"},sj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},lj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M73.3539 33.4641C79.1156 20.9832 93.9042 15.5361 106.385 21.2978C111.758 23.7781 116.071 28.0914 118.551 33.4641L127.183 52.162C128.693 55.4336 131.847 57.6396 135.438 57.9366L154.046 59.4757C167.158 60.5602 176.909 72.0687 175.824 85.1807C175.351 90.9056 172.825 96.2665 168.711 100.276L154.212 114.409C151.855 116.707 150.78 120.017 151.336 123.261L154.723 143.006C157.064 156.656 147.896 169.619 134.246 171.96C128.811 172.892 123.22 172.007 118.338 169.44L100.606 160.118C97.6929 158.587 94.2125 158.587 91.2993 160.118L73.5671 169.44C61.3087 175.885 46.1468 171.172 39.7022 158.914C37.1359 154.032 36.2504 148.441 37.1826 143.006L40.5692 123.261C41.1255 120.017 40.05 116.707 37.6932 114.409L23.1941 100.276C13.7727 91.0925 13.5799 76.0102 22.7635 66.5888C26.7732 62.4753 32.1341 59.9492 37.8589 59.4757L56.4673 57.9366C60.0584 57.6396 63.212 55.4336 64.7223 52.162L73.3539 33.4641Z",fill:"currentColor"})],-1),cj=[lj];function dj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",sj,cj)}var zc=ze(ij,[["render",dj],["__file","star-fill.vue"]]),uj={name:"Star"},fj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},hj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M73.3539 33.4641C79.1156 20.9832 93.9042 15.5361 106.385 21.2978C111.758 23.7781 116.071 28.0914 118.551 33.4641L128.161 54.2796C129.067 56.2425 130.959 57.5662 133.114 57.7444L154.046 59.4757C167.158 60.5602 176.909 72.0687 175.824 85.1807C175.351 90.9056 172.825 96.2665 168.711 100.276L152.706 115.877C151.292 117.256 150.647 119.241 150.981 121.188L154.723 143.006C157.064 156.656 147.896 169.619 134.246 171.96C128.811 172.892 123.22 172.007 118.338 169.44L98.7447 159.14C96.9968 158.221 94.9086 158.221 93.1606 159.14L73.5671 169.44C61.3087 175.885 46.1468 171.172 39.7022 158.914C37.1359 154.032 36.2504 148.441 37.1826 143.006L40.9246 121.188C41.2585 119.241 40.6132 117.256 39.1991 115.877L23.1941 100.276C13.7727 91.0925 13.5799 76.0102 22.7635 66.5888C26.7732 62.4753 32.1341 59.9492 37.8589 59.4757L58.7917 57.7444C60.9464 57.5662 62.8386 56.2425 63.7447 54.2796L73.3539 33.4641ZM98.0025 39.4563C95.5502 38.3242 92.6445 39.3945 91.5124 41.8468L81.9032 62.6623C77.9765 71.1684 69.7771 76.9041 60.4403 77.6763L39.5075 79.4076C38.5889 79.4836 37.7287 79.8889 37.0853 80.549C35.6117 82.0607 35.6426 84.4808 37.1544 85.9544L53.1593 101.555C59.2871 107.529 62.0834 116.135 60.6368 124.569L56.8948 146.386C56.7061 147.487 56.8853 148.619 57.4048 149.607C58.7095 152.088 61.7787 153.042 64.2603 151.738L83.8538 141.437C91.4282 137.455 100.477 137.455 108.052 141.437L127.645 151.738C128.633 152.257 129.765 152.437 130.865 152.248C133.629 151.774 135.485 149.15 135.011 146.386L131.269 124.569C129.822 116.135 132.618 107.529 138.746 101.555L154.751 85.9544C155.411 85.311 155.816 84.4508 155.892 83.5322C156.066 81.4283 154.502 79.5817 152.398 79.4076L131.465 77.6763C122.128 76.9041 113.929 71.1684 110.002 62.6623L100.393 41.8468C99.9056 40.7911 99.0581 39.9436 98.0025 39.4563Z",fill:"currentColor"})],-1),pj=[hj];function mj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",fj,pj)}var gj=ze(uj,[["render",mj],["__file","star.vue"]]),yj={name:"ViewContains"},bj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Cj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M72 160H120C124.418 160 128 163.582 128 168C128 172.418 124.418 176 120 176H72C67.5817 176 64 172.418 64 168C64 163.582 67.5817 160 72 160ZM134 16C157.196 16 176 34.804 176 58V110C176 133.196 157.196 152 134 152H58C34.804 152 16 133.196 16 110V58C16 34.804 34.804 16 58 16H134ZM134 36H58C45.8497 36 36 45.8497 36 58V110C36 122.15 45.8497 132 58 132H134C146.15 132 156 122.15 156 110V58C156 45.8497 146.15 36 134 36ZM122 56C126.418 56 130 59.5817 130 64V104C130 108.418 126.418 112 122 112C117.582 112 114 108.418 114 104V64C114 59.5817 117.582 56 122 56ZM70 56C74.4183 56 78 59.5817 78 64V104C78 108.418 74.4183 112 70 112C65.5817 112 62 108.418 62 104V64C62 59.5817 65.5817 56 70 56ZM96 88C100.418 88 104 91.5817 104 96C104 100.418 100.418 104 96 104C91.5817 104 88 100.418 88 96C88 91.5817 91.5817 88 96 88ZM96 64C100.418 64 104 67.5817 104 72C104 76.4183 100.418 80 96 80C91.5817 80 88 76.4183 88 72C88 67.5817 91.5817 64 96 64Z",fill:"currentColor"})],-1),wj=[Cj];function $j(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",bj,wj)}var kj=ze(yj,[["render",$j],["__file","view-contains.vue"]]),Sj={name:"ViewFullScreen"},Ej={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Bj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M72 160H120C124.418 160 128 163.582 128 168C128 172.418 124.418 176 120 176H72C67.5817 176 64 172.418 64 168C64 163.582 67.5817 160 72 160ZM134 16C157.196 16 176 34.804 176 58V110C176 133.196 157.196 152 134 152H58C34.804 152 16 133.196 16 110V58C16 34.804 34.804 16 58 16H134ZM134 36H58C45.8497 36 36 45.8497 36 58V110C36 122.15 45.8497 132 58 132H134C146.15 132 156 122.15 156 110V58C156 45.8497 146.15 36 134 36ZM137 88C140.866 88 144 91.134 144 95V104C144 112.837 136.837 120 128 120H119C115.134 120 112 116.866 112 113C112 109.134 115.134 106 119 106H126C128.209 106 130 104.209 130 102V95C130 91.134 133.134 88 137 88ZM55 88C58.866 88 62 91.134 62 95V102C62 104.209 63.7909 106 66 106H73C76.866 106 80 109.134 80 113C80 116.866 76.866 120 73 120H64C55.1634 120 48 112.837 48 104V95C48 91.134 51.134 88 55 88ZM130 48C137.732 48 144 54.268 144 62V73C144 76.866 140.866 80 137 80C133.134 80 130 76.866 130 73V66C130 63.7909 128.209 62 126 62H119C115.134 62 112 58.866 112 55C112 51.134 115.134 48 119 48H130ZM73 48C76.866 48 80 51.134 80 55C80 58.866 76.866 62 73 62H66C63.7909 62 62 63.7909 62 66V73C62 76.866 58.866 80 55 80C51.134 80 48 76.866 48 73V62C48 54.268 54.268 48 62 48H73Z",fill:"currentColor"})],-1),Nj=[Bj];function _j(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Ej,Nj)}var Tj=ze(Sj,[["render",_j],["__file","view-full-screen.vue"]]),Aj={name:"Warning"},xj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Mj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M113.671 37.2102C118.003 39.9302 121.666 43.5925 124.386 47.9244L161.977 107.792C171.962 123.695 167.165 144.681 151.263 154.666C145.846 158.068 139.579 159.872 133.182 159.872H58C39.2223 159.872 24 144.65 24 125.872C24 119.476 25.8043 113.209 29.2057 107.792L66.797 47.9244C76.7824 32.0217 97.7687 27.2249 113.671 37.2102ZM83.7348 58.5597L46.1435 118.427C44.743 120.658 44 123.238 44 125.872C44 133.604 50.268 139.872 58 139.872H133.182C135.816 139.872 138.397 139.129 140.627 137.728C147.175 133.617 149.151 124.975 145.039 118.427L107.448 58.5597C106.328 56.776 104.82 55.268 103.036 54.148C96.4879 50.0364 87.8464 52.0116 83.7348 58.5597ZM95.5912 115.872C100.562 115.872 104.591 119.901 104.591 124.872C104.591 129.843 100.562 133.872 95.5912 133.872C90.6207 133.872 86.5913 129.843 86.5913 124.872C86.5913 119.901 90.6207 115.872 95.5912 115.872ZM95.5912 68.872C101.46 68.872 106.217 73.6292 106.217 79.4975C106.217 79.9275 106.191 80.357 106.139 80.7838L103.439 102.924C102.955 106.89 99.5872 109.872 95.5912 109.872C91.5953 109.872 88.2276 106.89 87.7439 102.924L85.0439 80.7838C84.3335 74.9586 88.4799 69.6606 94.305 68.9502C94.7318 68.8981 95.1613 68.872 95.5912 68.872Z",fill:"currentColor"})],-1),Pj=[Mj];function vj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",xj,Pj)}var Hc=ze(Aj,[["render",vj],["__file","warning.vue"]]),Oj={name:"ZoomIn"},Ij={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},Dj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M157.485 132.029L165.971 140.515C173 147.544 173 158.941 165.971 165.971C158.941 173 147.544 173 140.515 165.971L132.029 157.485C125 150.456 125 139.059 132.029 132.029C139.059 125 150.456 125 157.485 132.029ZM84 21C118.794 21 147 49.2061 147 84C147 118.794 118.794 147 84 147C49.2061 147 21 118.794 21 84C21 49.2061 49.2061 21 84 21ZM84 41C60.2518 41 41 60.2518 41 84C41 107.748 60.2518 127 84 127C107.748 127 127 107.748 127 84C127 60.2518 107.748 41 84 41ZM84 55C89.5229 55 94 59.4772 94 65V74H103C108.523 74 113 78.4772 113 84C113 89.5229 108.523 94 103 94H94V103C94 108.523 89.5229 113 84 113C78.4772 113 74 108.523 74 103V94H65C59.4772 94 55 89.5229 55 84C55 78.4772 59.4772 74 65 74H74V65C74 59.4772 78.4772 55 84 55Z",fill:"currentColor"})],-1),Rj=[Dj];function Lj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Ij,Rj)}var $C=ze(Oj,[["render",Lj],["__file","zoom-in.vue"]]),Vj={name:"ZoomOut"},Fj={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"192",height:"192",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 192 192"},zj=n.createElementVNode("g",{fill:"none"},[n.createElementVNode("path",{d:"M157.485 132.029L165.971 140.515C173 147.544 173 158.941 165.971 165.971C158.941 173 147.544 173 140.515 165.971L132.029 157.485C125 150.456 125 139.059 132.029 132.029C139.059 125 150.456 125 157.485 132.029ZM84 21C118.794 21 147 49.2061 147 84C147 118.794 118.794 147 84 147C49.2061 147 21 118.794 21 84C21 49.2061 49.2061 21 84 21ZM84 41C60.2518 41 41 60.2518 41 84C41 107.748 60.2518 127 84 127C107.748 127 127 107.748 127 84C127 60.2518 107.748 41 84 41ZM102 73C108.075 73 113 77.9249 113 84C113 90.0751 108.075 95 102 95H66C59.9249 95 55 90.0751 55 84C55 77.9249 59.9249 73 66 73H102Z",fill:"currentColor"})],-1),Hj=[zj];function Wj(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",Fj,Hj)}var Kj=ze(Vj,[["render",Wj],["__file","zoom-out.vue"]]);/*! BigIn Icons Vue v3.0.5 */const kC="__epPropKey",K=e=>e,jj=e=>it(e)&&!!e[kC],fo=(e,t)=>{if(!it(e)||jj(e))return e;const{values:o,required:r,default:a,type:i,validator:s}=e,c={type:i,required:!!r,validator:o||s?d=>{let u=!1,f=[];if(o&&(f=Array.from(o),Kt(e,"default")&&f.push(a),u||(u=f.includes(d))),s&&(u||(u=s(d))),!u&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(d)}.`)}return u}:void 0,[kC]:!0};return Kt(e,"default")&&(c.default=a),c},ne=e=>Qf(Object.entries(e).map(([t,o])=>[t,fo(o,t)])),Je=K([String,Object,Function]),SC={Close:Nn},Ih={Close:Nn,Check:uo,Information:Fc,Warning:Hc,Error:Vc},sr={success:uo,warning:Hc,error:Vc,info:Fc},Uj={validating:Or,success:uo,error:Vc},Ne=(e,t)=>{if(e.install=o=>{for(const r of[e,...Object.values(t??{})])o.component(r.name,r)},t)for(const[o,r]of Object.entries(t))e[o]=r;return e},EC=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e),Gj=(e,t)=>(e.install=o=>{o.directive(t,e)},e),Ge=e=>(e.install=mt,e),Wc=(...e)=>t=>{e.forEach(o=>{nt(o)?o(t):o.value=t})},de={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},BC=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Kc=["sun","mon","tue","wed","thu","fri","sat"],Pe="update:modelValue",ct="change",_n="input",Dh=Symbol("INSTALLED_KEY"),ba=["","default","xxsmall","xsmall","small","large","xlarge"],NC={large:44,default:36,small:32},Yj=e=>NC[e||"default"],hi=e=>["",...ba].includes(e);var Gn=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Gn||{});function Rh(e){return n.isVNode(e)&&e.type===n.Fragment}function qj(e){return n.isVNode(e)&&e.type===n.Comment}function Zj(e){return n.isVNode(e)&&!Rh(e)&&!qj(e)}const Xj=e=>{if(!n.isVNode(e))return{};const t=e.props||{},o=(n.isVNode(e.type)?e.type.props:void 0)||{},r={};return Object.keys(o).forEach(a=>{Kt(o[a],"default")&&(r[a]=o[a].default)}),Object.keys(t).forEach(a=>{r[uC(a)]=t[a]}),r},Jj=e=>{if(!Me(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},pi=e=>{const t=Me(e)?e:[e],o=[];return t.forEach(r=>{Me(r)?o.push(...pi(r)):n.isVNode(r)&&Me(r.children)?o.push(...pi(r.children)):o.push(r)}),o},_C=e=>e**3,Qj=e=>e<.5?_C(e*2)/2:1-_C((1-e)*2)/2,TC=e=>[...new Set(e)],lr=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Lh=()=>Re&&/firefox/i.test(window.navigator.userAgent),jc=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Vh=e=>Re?window.requestAnimationFrame(e):setTimeout(e,16),Fh=e=>Re?window.cancelAnimationFrame(e):clearTimeout(e),Ds=()=>Math.floor(Math.random()*1e4),st=e=>e,eU=["class","style"],tU=/^on[A-Z]/,Uc=(e={})=>{const{excludeListeners:t=!1,excludeKeys:o}=e,r=n.computed(()=>(o?.value||[]).concat(eU)),a=n.getCurrentInstance();return a?n.computed(()=>Qf(Object.entries(a.proxy?.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&tU.test(i))))):n.computed(()=>({}))},zh=Symbol("breadcrumbKey"),Hh=Symbol("buttonGroupContextKey"),Wh=Symbol("carouselContextKey"),Rs=Symbol("checkboxGroupContextKey"),Kh=Symbol("collapseContextKey"),jh=Symbol(),Uh=Symbol("dialogInjectionKey"),Gh=Symbol("formContextKey"),Ir=Symbol("formItemContextKey"),Yh=Symbol("bPaginationKey"),qh=Symbol("radioGroupKey"),Zh=Symbol("rowContextKey"),Xh=Symbol("scrollbarContextKey"),Jh=Symbol("sliderContextKey"),Ls=Symbol("tabsRootContextKey"),Qh=Symbol("uploadContextKey"),Gc=Symbol("popper"),ep=Symbol("popperContent"),Vs=Symbol("bTooltip"),Fs=Symbol("tooltipV2"),tp=Symbol("tooltipV2Content"),Yc="tooltip_v2.open",qc=Symbol(),zs=e=>{const t=n.getCurrentInstance();return n.computed(()=>(t.proxy?.$props)[e]??void 0)},Zc=n.ref();function Tn(e,t=void 0){const o=n.getCurrentInstance()?n.inject(jh,Zc):Zc;return e?n.computed(()=>o.value?.[e]??t):o}const np=(e,t,o=!1)=>{const r=!!n.getCurrentInstance(),a=r?Tn():void 0,i=t?.provide??(r?n.provide:void 0);if(!i)return;const s=n.computed(()=>{const l=n.unref(e);return a?.value?nU(a.value,l):l});return i(jh,s),(o||!Zc.value)&&(Zc.value=s.value),s},nU=(e,t)=>{const o=[...new Set([...vs(e),...vs(t)])],r={};for(const a of o)r[a]=t[a]??e[a];return r},It=fo({type:String,values:ba,required:!1}),At=(e,t={})=>{const o=n.ref(void 0),r=t.prop?o:zs("size"),a=t.prop?o:zs("large"),i=t.prop?o:zs("small"),s=t.global?o:Tn("size"),l=t.formItem?{size:void 0}:n.inject(Ir,void 0);return n.computed(()=>a.value&&"large"||i.value&&"small"||r.value||n.unref(e)||l?.size||s.value||"")},ho=e=>{const t=zs("disabled");return n.computed(()=>t.value||n.unref(e)||!1)},oU=({from:e,replacement:t,scope:o,version:r,ref:a,type:i="API"},s)=>{n.watch(()=>n.unref(s),l=>{},{immediate:!0})},op=(e,t,o)=>{let r={offsetX:0,offsetY:0};const a=l=>{const c=l.clientX,d=l.clientY,{offsetX:u,offsetY:f}=r,h=e.value.getBoundingClientRect(),p=h.left,m=h.top,g=h.width,y=h.height,w=document.documentElement.clientWidth,$=document.documentElement.clientHeight,C=-p+u,b=-m+f,k=w-p-g+u,S=$-m-y+f,E=_=>{const T=Math.min(Math.max(u+_.clientX-c,C),k),P=Math.min(Math.max(f+_.clientY-d,b),S);r={offsetX:T,offsetY:P},e.value.style.transform=`translate(${Ot(T)}, ${Ot(P)})`},N=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",N)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};n.onMounted(()=>{n.watchEffect(()=>{o.value?i():s()})}),n.onBeforeUnmount(()=>{s()})},AC=e=>({focus:()=>{e.value?.focus?.()}}),Hs="b",rU="is-",Ca=(e,t,o,r,a)=>{let i=`${e}-${t}`;return o&&(i+=`-${o}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},G=e=>{const t=Tn("namespace",Hs);return{namespace:t,b:(m="")=>Ca(t.value,e,m,"",""),e:m=>m?Ca(t.value,e,"",m,""):"",m:m=>m?Ca(t.value,e,"","",m):"",be:(m,g)=>m&&g?Ca(t.value,e,m,g,""):"",em:(m,g)=>m&&g?Ca(t.value,e,"",m,g):"",bm:(m,g)=>m&&g?Ca(t.value,e,m,"",g):"",bem:(m,g,y)=>m&&g&&y?Ca(t.value,e,m,g,y):"",is:(m,...g)=>{const y=g.length>=1?g[0]:!0;return m&&y?`${rU}${m}`:""},cssVar:m=>{const g={};for(const y in m)m[y]&&(g[`--${t.value}-${y}`]=m[y]);return g},cssVarName:m=>`--${t.value}-${m}`,cssVarBlock:m=>{const g={};for(const y in m)m[y]&&(g[`--${t.value}-${e}-${y}`]=m[y]);return g},cssVarBlockName:m=>`--${t.value}-${e}-${m}`}},aU={prefix:Math.floor(Math.random()*1e4),current:0},xC=Symbol("bIdInjection"),po=e=>{const t=n.inject(xC,aU),o=Tn("namespace",Hs);return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)},mo=()=>{const e=n.inject(Gh,void 0),t=n.inject(Ir,void 0);return{form:e,formItem:t}},cr=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:r})=>{o||(o=n.ref(!1)),r||(r=n.ref(!1));const a=n.ref();let i;const s=n.computed(()=>!!(!e.label&&t));return n.onMounted(()=>{i=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:po().value);d!==a.value&&(a.value=d)},{immediate:!0})}),n.onUnmounted(()=>{i&&i()}),{isLabeledByFormItem:s,inputId:a}};var iU={name:"en",b:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{timePanelEmptyMessage:"Please select dates first",now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},numericInput:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Showing from {first} \u2014 {last} of {total} result(s)",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the b-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},formItem:{optional:"(optional)"}}};const MC=e=>(t,o)=>PC(t,o,n.unref(e)),PC=(e,t,o)=>rt(o,e,e).replace(/\{(\w+)\}/g,(r,a)=>`${t?.[a]??`{${a}}`}`),vC=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:MC(e)}},He=()=>{const e=Tn("locale");return vC(n.computed(()=>e.value||iU))},sU=()=>{},lU=Array.isArray,cU=e=>typeof e=="function";let dU;function uU(e,t=dU){t&&t.active&&t.effects.push(e)}const fU=e=>{const t=new Set(e);return t.w=0,t.n=0,t},OC=e=>(e.w&Dr)>0,IC=e=>(e.n&Dr)>0,hU=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Dr},pU=e=>{const{deps:t}=e;if(t.length){let o=0;for(let r=0;r<t.length;r++){const a=t[r];OC(a)&&!IC(a)?a.delete(e):t[o++]=a,a.w&=~Dr,a.n&=~Dr}t.length=o}};let Ws=0,Dr=1;const rp=30;let Io;class mU{constructor(t,o=null,r){this.fn=t,this.scheduler=o,this.active=!0,this.deps=[],this.parent=void 0,uU(this,r)}run(){if(!this.active)return this.fn();let t=Io,o=Xc;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Io,Io=this,Xc=!0,Dr=1<<++Ws,Ws<=rp?hU(this):DC(this),this.fn()}finally{Ws<=rp&&pU(this),Dr=1<<--Ws,Io=this.parent,Xc=o,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Io===this?this.deferStop=!0:this.active&&(DC(this),this.onStop&&this.onStop(),this.active=!1)}}function DC(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}let Xc=!0;function gU(e,t){let o=!1;Ws<=rp?IC(e)||(e.n|=Dr,o=!OC(e)):o=!e.has(Io),o&&(e.add(Io),Io.deps.push(e))}function yU(e,t){const o=lU(e)?e:[...e];for(const r of o)r.computed&&RC(r);for(const r of o)r.computed||RC(r)}function RC(e,t){(e!==Io||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Jc(e){const t=e&&e.__v_raw;return t?Jc(t):e}function bU(e){Xc&&Io&&(e=Jc(e),gU(e.dep||(e.dep=fU())))}function CU(e,t){e=Jc(e);const o=e.dep;o&&yU(o)}var LC;class wU{constructor(t,o,r,a){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this[LC]=!1,this._dirty=!0,this.effect=new mU(t,()=>{this._dirty||(this._dirty=!0,CU(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=Jc(this);return bU(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}LC="__v_isReadonly";function $U(e,t,o=!1){let r,a;const i=cU(e);return i?(r=e,a=sU):(r=e.get,a=e.set),new wU(r,a,i||!a,o)}const ap=e=>{n.isRef(e)||vt("[useLockscreen]","You need to pass a ref param to this function");const t=G("popup"),o=$U(()=>t.bm("parent","hidden"));if(!Re||lo(document.body,o.value))return;let r=0,a=!1,i="0";const s=()=>{setTimeout(()=>{fn(document.body,o.value),a&&(document.body.style.width=i)},200)};n.watch(e,l=>{if(!l){s();return}a=!lo(document.body,o.value),a&&(i=document.body.style.width),r=hC(t.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,d=ir(document.body,"overflowY");r>0&&(c||d==="scroll")&&a&&(document.body.style.width=`calc(100% - ${r}px)`),Oo(document.body,o.value)}),n.onScopeDispose(()=>s())},mi=[],kU=e=>{mi.length!==0&&e.code===de.esc&&(e.stopPropagation(),mi[mi.length-1].handleClose())},SU=(e,t)=>{n.watch(t,o=>{o?mi.push(e):mi.splice(mi.indexOf(e),1)})};Re&&Xe(document,"keydown",kU);const EU=fo({type:K(Boolean),default:null}),BU=fo({type:K(Function)}),ip=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,r=[t],a={[e]:EU,[o]:BU};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:u,onHide:f})=>{const h=n.getCurrentInstance(),{emit:p}=h,m=h.props,g=n.computed(()=>nt(m[o])),y=n.computed(()=>m[e]===null),w=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),nt(u)&&u(E))},$=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),nt(f)&&f(E))},C=E=>{if(m.disabled===!0||nt(d)&&!d())return;const N=g.value&&Re;N&&p(t,!0),(y.value||!N)&&w(E)},b=E=>{if(m.disabled===!0||!Re)return;const N=g.value&&Re;N&&p(t,!1),(y.value||!N)&&$(E)},k=E=>{!Pt(E)||(m.disabled&&E?g.value&&p(t,!1):s.value!==E&&(E?w():$()))},S=()=>{s.value?b():C()};return n.watch(()=>m[e],k),c&&h.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...h.proxy.$route}),()=>{c.value&&s.value&&b()}),n.onMounted(()=>{k(m[e])}),{hide:b,show:C,toggle:S,hasUpdateHandler:g}},useModelToggleProps:a,useModelToggleEmits:r}},{useModelToggle:NU,useModelToggleProps:_U,useModelToggleEmits:TU}=ip("modelValue"),AU=(e,t,o)=>{const r=i=>{o(i)&&i.stopImmediatePropagation()};let a;n.watch(()=>e.value,i=>{i?a=Xe(document,t,r,!0):a?.()},{immediate:!0})},VC=(e,t)=>{let o;n.watch(()=>e.value,r=>{r?(o=document.activeElement,n.isRef(t)&&t.value.focus?.()):o.focus()})},Qc=e=>{if(!e)return{onClick:mt,onMousedown:mt,onMouseup:mt};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}},xU=(e,t)=>{const o=n.ref(!1);if(!Re)return{isTeleportVisible:o,showTeleport:mt,hideTeleport:mt,renderTeleport:mt};let r=null;const a=()=>{o.value=!0,r===null&&(r=kz())},i=()=>{o.value=!1,r!==null&&(Sz(r),r=null)},s=()=>t.value!==!0?e():o.value?[n.h(n.Teleport,{to:r},e())]:void 0;return n.onUnmounted(i),{isTeleportVisible:o,showTeleport:a,hideTeleport:i,renderTeleport:s}},FC=(e,t=0)=>{if(t===0)return e;const o=n.ref(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{o.value=e.value},t)};return n.onMounted(a),n.watch(()=>e.value,i=>{i?a():o.value=i}),o};function zC(){let e;const t=(r,a)=>{o(),e=window.setTimeout(r,a)},o=()=>window.clearTimeout(e);return Rc(()=>o()),{registerTimeout:t,cancelTimeout:o}}const HC="after-appear",WC="after-enter",KC="after-leave",MU="appear",jC="appear-cancelled",UC="before-enter",GC="before-leave",YC="enter",qC="enter-cancelled",ZC="leave",XC="leave-cancelled",PU=[HC,WC,KC,MU,jC,UC,GC,YC,qC,ZC,XC],vU=()=>{const{emit:e}=n.getCurrentInstance();return{onAfterAppear:()=>{e(HC)},onAfterEnter:()=>{e(WC)},onAfterLeave:()=>{e(KC)},onAppearCancelled:()=>{e(jC)},onBeforeEnter:()=>{e(UC)},onBeforeLeave:()=>{e(GC)},onEnter:()=>{e(YC)},onEnterCancelled:()=>{e(qC)},onLeave:()=>{e(ZC)},onLeaveCancelled:()=>{e(XC)}}};let gi=[];const JC=e=>{const t=e;t.key===de.esc&&gi.forEach(o=>o(t))},QC=e=>{n.onMounted(()=>{gi.length===0&&document.addEventListener("keydown",JC),Re&&gi.push(e)}),n.onBeforeUnmount(()=>{gi=gi.filter(t=>t!==e),gi.length===0&&Re&&document.removeEventListener("keydown",JC)})};let e3;const sp=`${Tn("namespace",Hs).value}-popper-container-${Ds()}`,lp=`#${sp}`,OU=()=>{const e=document.createElement("div");return e.id=sp,document.body.appendChild(e),e},t3=()=>{n.onBeforeMount(()=>{!Re||(!e3||!document.body.querySelector(lp))&&(e3=OU())})},IU=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:o=()=>!0,beforeShow:r,afterShow:a,afterHide:i,beforeHide:s})=>{n.watch(()=>n.unref(e),l=>{l?(r?.(),n.nextTick(()=>{!n.unref(e)||o("show")&&(t.value=!0)})):(s?.(),n.nextTick(()=>{n.unref(e)||o("hide")&&(t.value=!1)}))}),n.watch(()=>t.value,l=>{l?a?.():i?.()})},n3=ne({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),o3=({showAfter:e,hideAfter:t,open:o,close:r})=>{const{registerTimeout:a}=zC();return{onOpen:l=>{a(()=>{o(l)},n.unref(e))},onClose:l=>{a(()=>{r(l)},n.unref(t))}}},cp=Symbol("bForwardRef"),r3=e=>{const t=o=>{e.value=o};n.provide(cp,{setForwardRef:t})},a3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),i3=n.ref(0),Do=()=>{const e=Tn("zIndex",2e3),t=n.computed(()=>e.value+i3.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(i3.value++,t.value)}};function dp(e){return e.split("-")[1]}function s3(e){return e==="y"?"height":"width"}function up(e){return e.split("-")[0]}function fp(e){return["top","bottom"].includes(up(e))?"x":"y"}function l3(e,t,o){let{reference:r,floating:a}=e;const i=r.x+r.width/2-a.width/2,s=r.y+r.height/2-a.height/2,l=fp(t),c=s3(l),d=r[c]/2-a[c]/2,u=up(t),f=l==="x";let h;switch(u){case"top":h={x:i,y:r.y-a.height};break;case"bottom":h={x:i,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-a.width,y:s};break;default:h={x:r.x,y:r.y}}switch(dp(t)){case"start":h[l]-=d*(o&&f?-1:1);break;case"end":h[l]+=d*(o&&f?-1:1);break}return h}const DU=async(e,t,o)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));if(process.env.NODE_ENV!=="production"){if(s==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),l.filter(g=>{let{name:y}=g;return y==="autoPlacement"||y==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));(!e||!t)&&console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let d=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=l3(d,r,c),h=r,p={},m=0;for(let g=0;g<l.length;g++){const{name:y,fn:w}=l[g],{x:$,y:C,data:b,reset:k}=await w({x:u,y:f,initialPlacement:r,placement:h,strategy:a,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});if(u=$??u,f=C??f,p={...p,[y]:{...p[y],...b}},process.env.NODE_ENV!=="production"&&m>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),k&&m<=50){m++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:u,y:f}=l3(d,h,c)),g=-1;continue}}return{x:u,y:f,placement:h,strategy:a,middlewareData:p}};function RU(e){return{top:0,right:0,bottom:0,left:0,...e}}function LU(e){return typeof e!="number"?RU(e):{top:e,right:e,bottom:e,left:e}}function c3(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const VU=Math.min,FU=Math.max;function zU(e,t,o){return FU(e,VU(t,o))}const HU=e=>({name:"arrow",options:e,async fn(t){const{element:o,padding:r=0}=e||{},{x:a,y:i,placement:s,rects:l,platform:c,elements:d}=t;if(o==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const u=LU(r),f={x:a,y:i},h=fp(s),p=s3(h),m=await c.getDimensions(o),g=h==="y",y=g?"top":"left",w=g?"bottom":"right",$=g?"clientHeight":"clientWidth",C=l.reference[p]+l.reference[h]-f[h]-l.floating[p],b=f[h]-l.reference[h],k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(o));let S=k?k[$]:0;(!S||!await(c.isElement==null?void 0:c.isElement(k)))&&(S=d.floating[$]||l.floating[p]);const E=C/2-b/2,N=u[y],_=S-m[p]-u[w],T=S/2-m[p]/2+E,P=zU(N,T,_),v=dp(s)!=null&&T!=P&&l.reference[p]/2-(T<N?u[y]:u[w])-m[p]/2<0?T<N?N-T:_-T:0;return{[h]:f[h]-v,data:{[h]:P,centerOffset:T-P}}}});async function WU(e,t){const{placement:o,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=up(o),l=dp(o),c=fp(o)==="x",d=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),c?{x:p*u,y:h*d}:{x:h*d,y:p*u}}const KU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:o,y:r}=t,a=await WU(t,e);return{x:o+a.x,y:r+a.y,data:a}}}};function An(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ro(e){return An(e).getComputedStyle(e)}const d3=Math.min,Ks=Math.max,ed=Math.round;function u3(e){const t=Ro(e);let o=parseFloat(t.width),r=parseFloat(t.height);const a=e.offsetWidth,i=e.offsetHeight,s=ed(o)!==a||ed(r)!==i;return s&&(o=a,r=i),{width:o,height:r,fallback:s}}function Rr(e){return h3(e)?(e.nodeName||"").toLowerCase():""}let td;function f3(){if(td)return td;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(td=e.brands.map(t=>t.brand+"/"+t.version).join(" "),td):navigator.userAgent}function go(e){return e instanceof An(e).HTMLElement}function Lr(e){return e instanceof An(e).Element}function h3(e){return e instanceof An(e).Node}function p3(e){if(typeof ShadowRoot>"u")return!1;const t=An(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nd(e){const{overflow:t,overflowX:o,overflowY:r,display:a}=Ro(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(a)}function jU(e){return["table","td","th"].includes(Rr(e))}function hp(e){const t=/firefox/i.test(f3()),o=Ro(e),r=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||(r?r!=="none":!1)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)||["transform","perspective"].some(a=>o.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const i=o.contain;return i!=null?i.includes(a):!1})}function pp(){return/^((?!chrome|android).)*safari/i.test(f3())}function mp(e){return["html","body","#document"].includes(Rr(e))}function m3(e){return Lr(e)?e:e.contextElement}const g3={x:1,y:1};function yi(e){const t=m3(e);if(!go(t))return g3;const o=t.getBoundingClientRect(),{width:r,height:a,fallback:i}=u3(t);let s=(i?ed(o.width):o.width)/r,l=(i?ed(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function js(e,t,o,r){var a,i;t===void 0&&(t=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),l=m3(e);let c=g3;t&&(r?Lr(r)&&(c=yi(r)):c=yi(e));const d=l?An(l):window,u=pp()&&o;let f=(s.left+(u&&((a=d.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,h=(s.top+(u&&((i=d.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,p=s.width/c.x,m=s.height/c.y;if(l){const g=An(l),y=r&&Lr(r)?An(r):r;let w=g.frameElement;for(;w&&r&&y!==g;){const $=yi(w),C=w.getBoundingClientRect(),b=getComputedStyle(w);C.x+=(w.clientLeft+parseFloat(b.paddingLeft))*$.x,C.y+=(w.clientTop+parseFloat(b.paddingTop))*$.y,f*=$.x,h*=$.y,p*=$.x,m*=$.y,f+=C.x,h+=C.y,w=An(w).frameElement}}return c3({width:p,height:m,x:f,y:h})}function Vr(e){return((h3(e)?e.ownerDocument:e.document)||window.document).documentElement}function od(e){return Lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function UU(e){let{rect:t,offsetParent:o,strategy:r}=e;const a=go(o),i=Vr(o);if(o===i)return t;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&r!=="fixed")&&((Rr(o)!=="body"||nd(i))&&(s=od(o)),go(o))){const d=js(o);l=yi(o),c.x=d.x+o.clientLeft,c.y=d.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function y3(e){return js(Vr(e)).left+od(e).scrollLeft}function GU(e){const t=Vr(e),o=od(e),r=e.ownerDocument.body,a=Ks(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ks(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+y3(e);const l=-o.scrollTop;return Ro(r).direction==="rtl"&&(s+=Ks(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Us(e){if(Rr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||p3(e)&&e.host||Vr(e);return p3(t)?t.host:t}function b3(e){const t=Us(e);return mp(t)?t.ownerDocument.body:go(t)&&nd(t)?t:b3(t)}function C3(e,t){var o;t===void 0&&(t=[]);const r=b3(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),i=An(r);return a?t.concat(i,i.visualViewport||[],nd(r)?r:[]):t.concat(r,C3(r))}function YU(e,t){const o=An(e),r=Vr(e),a=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=pp();(!d||d&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l,y:c}}function qU(e,t){const o=js(e,!0,t==="fixed"),r=o.top+e.clientTop,a=o.left+e.clientLeft,i=go(e)?yi(e):{x:1,y:1},s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=r*i.y;return{width:s,height:l,x:c,y:d}}function w3(e,t,o){let r;if(t==="viewport")r=YU(e,o);else if(t==="document")r=GU(Vr(e));else if(Lr(t))r=qU(t,o);else{const s={...t};if(pp()){var a,i;const l=An(e);s.x-=((a=l.visualViewport)==null?void 0:a.offsetLeft)||0,s.y-=((i=l.visualViewport)==null?void 0:i.offsetTop)||0}r=s}return c3(r)}function ZU(e,t){const o=t.get(e);if(o)return o;let r=C3(e).filter(l=>Lr(l)&&Rr(l)!=="body"),a=null;const i=Ro(e).position==="fixed";let s=i?Us(e):e;for(;Lr(s)&&!mp(s);){const l=Ro(s),c=hp(s);l.position==="fixed"?a=null:(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position))?r=r.filter(f=>f!==s):a=l,s=Us(s)}return t.set(e,r),r}function XU(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e;const s=[...o==="clippingAncestors"?ZU(t,this._c):[].concat(o),r],l=s[0],c=s.reduce((d,u)=>{const f=w3(t,u,a);return d.top=Ks(f.top,d.top),d.right=d3(f.right,d.right),d.bottom=d3(f.bottom,d.bottom),d.left=Ks(f.left,d.left),d},w3(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function JU(e){return go(e)?u3(e):e.getBoundingClientRect()}function $3(e,t){return!go(e)||Ro(e).position==="fixed"?null:t?t(e):e.offsetParent}function QU(e){let t=Us(e);for(;go(t)&&!mp(t);){if(hp(t))return t;t=Us(t)}return null}function k3(e,t){const o=An(e);if(!go(e))return o;let r=$3(e,t);for(;r&&jU(r)&&Ro(r).position==="static";)r=$3(r,t);return r&&(Rr(r)==="html"||Rr(r)==="body"&&Ro(r).position==="static"&&!hp(r))?o:r||QU(e)||o}function eG(e,t,o){const r=go(t),a=Vr(t),i=js(e,!0,o==="fixed",t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&o!=="fixed")if((Rr(t)!=="body"||nd(a))&&(s=od(t)),go(t)){const c=js(t,!0);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else a&&(l.x=y3(a));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}const tG={getClippingRect:XU,convertOffsetParentRelativeRectToViewportRelativeRect:UU,isElement:Lr,getDimensions:JU,getOffsetParent:k3,getDocumentElement:Vr,getScale:yi,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const a=this.getOffsetParent||k3,i=this.getDimensions;return{reference:eG(t,await a(o),r),floating:{x:0,y:0,...await i(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ro(e).direction==="rtl"},nG=(e,t,o)=>{const r=new Map,a={platform:tG,...o},i={...a.platform,_c:r};return DU(e,t,{...a,platform:i})},oG=ne({}),rG=e=>{if(!Re)return;if(!e)return e;const t=Wn(e);return t||(n.isRef(e)?t:e)},aG=(e,t)=>{const o=e?.[t];return xt(o)?"":`${o}px`},S3=({middleware:e,placement:t,strategy:o})=>{const r=n.ref(),a=n.ref(),i=n.ref(),s=n.ref(),l=n.ref({}),c={x:i,y:s,placement:t,strategy:o,middlewareData:l},d=async()=>{if(!Re)return;const u=rG(r),f=Wn(a);if(!u||!f)return;const h=await nG(u,f,{placement:n.unref(t),strategy:n.unref(o),middleware:n.unref(e)});vs(c).forEach(p=>{c[p].value=h[p]})};return n.onMounted(()=>{n.watchEffect(()=>{d()})}),{...c,update:d,referenceRef:r,contentRef:a}},E3=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(o){const r=n.unref(e);return r?HU({element:r,padding:t}).fn(o):{}}});function B3(e){const t=n.ref();function o(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:s}=e.value;if(a==null||i==null)return;const l=s.slice(0,Math.max(0,a)),c=s.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:s,beforeTxt:l,afterTxt:c}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:l}=t.value;if(i==null||s==null||l==null)return;let c=a.length;if(a.endsWith(s))c=a.length-s.length;else if(a.startsWith(i))c=i.length;else{const d=i[l-1],u=a.indexOf(d,l-1);u!==-1&&(c=u+1)}e.value.setSelectionRange(c,c)}return[o,r]}const iG=(e,t,o)=>pi(e.subTree).filter(i=>n.isVNode(i)&&i.type?.name===t&&!!i.component).map(i=>i.component.uid).map(i=>o[i]).filter(i=>!!i),N3=(e,t)=>{const o={},r=n.shallowRef([]);return{children:r,addChild:s=>{o[s.uid]=s,r.value=iG(e,t,o)},removeChild:s=>{delete o[s],r.value=r.value.filter(l=>l.uid!==s)}}},sG="1.1.104",_3=(e=[])=>({version:sG,install:(o,r)=>{o[Dh]||(o[Dh]=!0,e.forEach(a=>o.use(a)),r&&np(r,o,!0))}}),T3=ne({zIndex:{type:K([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),A3={scroll:({scrollTop:e,fixed:t})=>Se(e)&&Pt(t),[ct]:e=>Pt(e)};var Q=(e,t)=>{const o=e.__vccOpts||e;for(const[r,a]of t)o[r]=a;return o};const lG=["data-test-variant"],x3="BAffix",cG=n.defineComponent({name:x3}),dG=n.defineComponent({...cG,props:T3,emits:A3,setup(e,{expose:t,emit:o}){const r=e,a=G("affix"),i=n.shallowRef(),s=n.shallowRef(),l=n.shallowRef(),{height:c}=iz(),{height:d,width:u,top:f,bottom:h,update:p}=iC(s),m=iC(i),g=n.ref(!1),y=n.ref(0),w=n.ref(0),$=n.computed(()=>({height:g.value?`${d.value}px`:"",width:g.value?`${u.value}px`:""})),C=n.computed(()=>{if(!g.value)return{};const S=r.offset?`${r.offset}px`:0;return{height:`${d.value}px`,width:`${u.value}px`,top:r.position==="top"?S:"",bottom:r.position==="bottom"?S:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:r.zIndex}}),b=()=>{if(!!l.value)if(y.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0,r.position==="top")if(r.target){const S=m.bottom.value-r.offset-d.value;g.value=r.offset>f.value&&m.bottom.value>0,w.value=S<0?S:0}else g.value=r.offset>f.value;else if(r.target){const S=c.value-m.top.value-r.offset-d.value;g.value=c.value-r.offset<h.value&&c.value>m.top.value,w.value=S<0?-S:0}else g.value=c.value-r.offset<h.value},k=()=>{o("scroll",{scrollTop:y.value,fixed:g.value})};return n.watch(g,S=>o("change",S)),n.onMounted(()=>{r.target?(i.value=document.querySelector(r.target)??void 0,i.value||vt(x3,`Target is not existed: ${r.target}`)):i.value=document.documentElement,l.value=Oh(s.value,!0),p()}),Xe(l,"scroll",k),n.watchEffect(b),t({update:b}),(S,E)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"root",ref:s,class:n.normalizeClass(n.unref(a).b()),style:n.normalizeStyle(n.unref($)),"data-test-name":"affix","data-test-variant":[g.value&&"fixed"].join("-"),"data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass({[n.unref(a).m("fixed")]:g.value}),style:n.normalizeStyle(n.unref(C))},[n.renderSlot(S.$slots,"default")],6)],14,lG))}});var uG=Q(dG,[["__file","affix.vue"]]);const M3=Ne(uG),P3=ne({size:{type:K([Number,String])},color:{type:String},loading:Boolean}),fG=n.defineComponent({name:"BIcon",inheritAttrs:!1}),hG=n.defineComponent({...fG,props:P3,setup(e){const t=e,o=G("icon"),r=n.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Vt(a)?void 0:Ot(a),"--color":i}});return(a,i)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:[n.unref(o).b(),n.unref(o).is("loading",a.loading)],style:n.unref(r)},a.$attrs,{"data-test-name":"icon","data-test-variant":"","data-test-state":""}),[n.renderSlot(a.$slots,"default")],16))}});var pG=Q(hG,[["__file","icon.vue"]]);const pe=Ne(pG),v3=["light","dark"],O3=ne({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:vs(sr),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:{type:Boolean,default:!0},center:Boolean,effect:{type:String,values:v3,default:"light"}}),I3={close:e=>e instanceof MouseEvent},mG=["data-test-variant","data-test-state"],gG=n.defineComponent({name:"BAlert"}),yG=n.defineComponent({...gG,props:O3,emits:I3,setup(e,{emit:t}){const o=e,{Close:r}=Ih,a=n.useSlots(),i=G("alert"),s=n.ref(!0),l=n.computed(()=>sr[o.type]||sr.info),c=n.computed(()=>[i.e("icon"),{[i.is("big")]:!!o.description||!!a.default}]),d=n.computed(()=>({[i.is("bold")]:o.description||a.default})),u=f=>{s.value=!1,t("close",f)};return(f,h)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).m(f.type),n.unref(i).is("center",f.center),n.unref(i).is(f.effect)]),role:"alert","data-test-name":"alert","data-test-variant":f.type,"data-test-state":[f.center&&"center"].join("-")},[f.showIcon&&n.unref(l)?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(c))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(l))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).e("content")])},[f.title||f.$slots.title?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass([n.unref(i).e("title"),n.unref(d)])},[n.renderSlot(f.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(f.title),1)])],2)):n.createCommentVNode("v-if",!0),f.$slots.default||f.description?(n.openBlock(),n.createElementBlock("p",{key:1,class:n.normalizeClass(n.unref(i).e("description"))},[n.renderSlot(f.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(f.description),1)])],2)):n.createCommentVNode("v-if",!0)],2),f.closable?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[f.closeText?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(i).e("close-btn"),n.unref(i).is("customed")]),onClick:u},n.toDisplayString(f.closeText),3)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(i).e("close-btn"))},[n.createVNode(n.unref(pe),{onClick:u},{default:n.withCtx(()=>[n.createVNode(n.unref(r))]),_:1})],2))],64)):n.createCommentVNode("v-if",!0)],10,mG),[[n.vShow,s.value]])]),_:3},8,["name"]))}});var bG=Q(yG,[["__file","alert.vue"]]);const D3=Ne(bG);let yo;const CG=`
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
`,wG=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function $G(e){const t=window.getComputedStyle(e),o=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:wG.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:o}}function R3(e,t=1,o){yo||(yo=document.createElement("textarea"),document.body.appendChild(yo));const{paddingSize:r,borderSize:a,boxSizing:i,contextStyle:s}=$G(e);yo.setAttribute("style",`${s};${CG}`),yo.value=e.value||e.placeholder||"";let l=yo.scrollHeight;const c={};i==="border-box"?l=l+a:i==="content-box"&&(l=l-r),yo.value="";const d=yo.scrollHeight-r;if(Se(t)){let u=d*t;i==="border-box"&&(u=u+r+a),l=Math.max(u,l),c.minHeight=`${u}px`}if(Se(o)){let u=d*o;i==="border-box"&&(u=u+r+a),l=Math.min(u,l)}return c.height=`${l}px`,yo.parentNode?.removeChild(yo),yo=void 0,c}const L3=ne({id:{type:String,default:void 0},size:It,disabled:Boolean,modelValue:{type:K([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:K([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Je,default:""},prefixIcon:{type:Je,default:""},suffixClass:{type:String,default:""},prefixClass:{type:String,default:""},prependClass:{type:String,default:""},appendClass:{type:String,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:K([Object,Array,String]),default:()=>st({})},inputClass:{type:String,default:""},inputWrapperClass:{type:String,default:""},textareaClass:{type:String,default:""},rounded:{type:Boolean,default:!1},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),V3={[Pe]:e=>De(e),input:e=>De(e),change:e=>De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},kG=["role"],SG=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],EG=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],BG=n.defineComponent({name:"BInput",inheritAttrs:!1}),NG=n.defineComponent({...BG,props:L3,emits:V3,setup(e,{expose:t,emit:o}){const r=e,a=n.useAttrs(),i=n.useSlots(),s=n.computed(()=>{const oe={};return r.containerRole==="combobox"&&(oe["aria-haspopup"]=a["aria-haspopup"],oe["aria-owns"]=a["aria-owns"],oe["aria-expanded"]=a["aria-expanded"]),oe}),l=Uc({excludeKeys:n.computed(()=>Object.keys(s.value))}),{formItem:c}=mo(),{inputId:d}=cr(r,{formItemContext:c}),u=At(),f=ho(),h=G("input"),p=G("textarea"),m=n.shallowRef(),g=n.shallowRef(),y=n.ref(!1),w=n.ref(!1),$=n.ref(!1),C=n.ref(!1),b=n.ref(),k=n.shallowRef(r.inputStyle),S=n.computed(()=>Boolean(c?.error)),E=n.computed(()=>m.value||g.value),N=n.computed(()=>C.value?VW:WK),_=n.computed(()=>[a.style,r.inputStyle]),T=n.computed(()=>[r.inputStyle,k.value,{resize:r.resize}]),P=n.computed(()=>xt(r.modelValue)?"":String(r.modelValue)),x=n.computed(()=>r.clearable&&!f.value&&!r.readonly&&!!P.value&&(y.value||w.value)),v=n.computed(()=>r.showPassword&&!f.value&&!r.readonly),O=n.computed(()=>r.showWordLimit&&!!l.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!f.value&&!r.readonly&&!r.showPassword),I=n.computed(()=>Array.from(P.value).length),F=n.computed(()=>!!O.value&&I.value>Number(l.value.maxlength)),[M,z]=B3(m);an(g,oe=>{if(!O.value||r.resize!=="both")return;const se=oe[0],{width:me}=se.contentRect;b.value={right:`calc(100% - ${me+15+6}px)`}});const B=()=>{const{type:oe,autosize:se}=r;if(!(!Re||oe!=="textarea"))if(se){const me=it(se)?se.minRows:void 0,ee=it(se)?se.maxRows:void 0;k.value={...R3(g.value,me,ee)}}else k.value={minHeight:R3(g.value).minHeight}},L=()=>{const oe=E.value;!oe||oe.value===P.value||(oe.value=P.value)},W=async oe=>{M();let{value:se}=oe.target;r.formatter&&(se=r.parser?r.parser(se):se,se=r.formatter(se)),!$.value&&(o(Pe,se),o("input",se),await n.nextTick(),L(),z())},R=oe=>{o("change",oe.target.value)},H=oe=>{o("compositionstart",oe),$.value=!0},j=oe=>{o("compositionupdate",oe);const se=oe.target?.value,me=se[se.length-1]||"";$.value=!jc(me)},U=oe=>{o("compositionend",oe),$.value&&($.value=!1,W(oe))},re=()=>{C.value=!C.value,J()},J=async()=>{await n.nextTick(),E.value?.focus()},Y=()=>E.value?.blur(),q=oe=>{y.value=!0,o("focus",oe),c?.setFocused(!0)},te=oe=>{y.value=!1,o("blur",oe),c?.setFocused(!1)},ue=oe=>{w.value=!1,o("mouseleave",oe)},ge=oe=>{w.value=!0,o("mouseenter",oe)},Ee=oe=>{o("keydown",oe)},Te=()=>{E.value?.select()},ye=()=>{o(Pe,""),o("change",""),o("clear"),o("input","")};return n.watch(()=>r.modelValue,()=>{n.nextTick(()=>B())}),n.watch(P,()=>L()),n.watch(()=>r.type,async()=>{await n.nextTick(),L(),B()}),n.onMounted(()=>{!r.formatter&&r.parser,L(),n.nextTick(B)}),t({input:m,textarea:g,ref:E,textareaStyle:T,autosize:n.toRef(r,"autosize"),focus:J,blur:Y,select:Te,clear:ye,resizeTextarea:B}),(oe,se)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",n.mergeProps(n.unref(s),{class:[oe.type==="textarea"?n.unref(p).b():n.unref(h).b(),n.unref(h).m(oe.large&&"large"||oe.small&&"small"||n.unref(u)),n.unref(h).is("disabled",!!n.unref(f)),n.unref(h).is("exceed",n.unref(F)),n.unref(h).is("error",n.unref(S)),{[n.unref(h).b("group")]:oe.$slots.prepend||oe.$slots.append,[n.unref(h).bm("group","append")]:oe.$slots.append,[n.unref(h).bm("group","prepend")]:oe.$slots.prepend,[n.unref(h).m("prefix")]:oe.$slots.prefix||oe.prefixIcon,[n.unref(h).m("suffix")]:oe.$slots.suffix||oe.suffixIcon||oe.clearable||oe.showPassword,[n.unref(h).bm("suffix","password-clear")]:n.unref(x)&&n.unref(v)},oe.$attrs.class],style:n.unref(_),role:oe.containerRole,"data-test-name":"input","data-test-variant":"","data-test-state":"",onMouseenter:ge,onMouseleave:ue}),[n.createCommentVNode(" input "),oe.type!=="textarea"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createCommentVNode(" prepend slot "),oe.$slots.prepend?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(h).be("group","prepend"),oe.prependClass])},[n.renderSlot(oe.$slots,"prepend")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass([n.unref(h).e("wrapper"),n.unref(h).is("focus",y.value),n.unref(h).is("rounded",oe.rounded),oe.inputWrapperClass])},[n.createCommentVNode(" prefix slot "),oe.$slots.prefix||oe.prefixIcon?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(h).e("prefix"),oe.prefixClass])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(h).e("prefix-inner"))},[n.renderSlot(oe.$slots,"prefix"),oe.prefixIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(h).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(oe.prefixIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],2)):n.createCommentVNode("v-if",!0),oe.$slots.content&&oe.modelValue?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(h).e("custom-content"))},[n.renderSlot(oe.$slots,"content")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("input",n.mergeProps({id:n.unref(d),ref_key:"input",ref:m,class:[n.unref(h).e("inner"),n.unref(h).is("custom-content",Boolean(oe.$slots.content&&oe.modelValue)),oe.inputClass]},n.unref(l),{type:oe.showPassword?C.value?"text":"password":oe.type,disabled:!!n.unref(f),formatter:oe.formatter,parser:oe.parser,readonly:oe.readonly,autocomplete:oe.autocomplete,tabindex:oe.tabindex,"aria-label":oe.label,placeholder:oe.placeholder,style:oe.inputStyle,onCompositionstart:H,onCompositionupdate:j,onCompositionend:U,onInput:W,onFocus:q,onBlur:te,onChange:R,onKeydown:Ee}),null,16,SG),n.createCommentVNode(" suffix slot "),!!n.unref(i).suffix||!!oe.suffixIcon||n.unref(x)||oe.showPassword||n.unref(O)?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([n.unref(h).e("suffix"),oe.suffixClass,n.unref(h).is("action",n.unref(x)||oe.showPassword||n.unref(O))])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(h).e("suffix-inner"))},[n.unref(x)?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(h).e("icon"),n.unref(h).e("clear")]),onMousedown:se[0]||(se[0]=n.withModifiers(()=>{},["prevent"])),onClick:ye},{default:n.withCtx(()=>[n.createVNode(n.unref(qH))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.unref(v)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass([n.unref(h).e("icon"),n.unref(h).e("password")]),onClick:re},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(N))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.unref(O)?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(h).e("count"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("count-inner"))},n.toDisplayString(n.unref(I))+"/"+n.toDisplayString(n.unref(l).maxlength),3)],2)):n.createCommentVNode("v-if",!0),!n.unref(x)||!n.unref(v)||!n.unref(O)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[n.renderSlot(oe.$slots,"suffix"),oe.suffixIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(h).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(oe.suffixIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],64)):n.createCommentVNode("v-if",!0)],2)],2)):n.createCommentVNode("v-if",!0)],2),n.createCommentVNode(" append slot "),oe.$slots.append?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(h).be("group","append"),oe.appendClass])},[n.renderSlot(oe.$slots,"append")],2)):n.createCommentVNode("v-if",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" textarea "),n.createElementVNode("textarea",n.mergeProps({id:n.unref(d),ref_key:"textarea",ref:g,class:[n.unref(p).e("inner"),oe.textareaClass]},n.unref(l),{tabindex:oe.tabindex,disabled:!!n.unref(f),readonly:oe.readonly,autocomplete:oe.autocomplete,style:n.unref(T),"aria-label":oe.label,placeholder:oe.placeholder,onCompositionstart:H,onCompositionupdate:j,onCompositionend:U,onInput:W,onFocus:q,onBlur:te,onChange:R,onKeydown:Ee}),null,16,EG),n.unref(O)?(n.openBlock(),n.createElementBlock("span",{key:0,style:n.normalizeStyle(b.value),class:n.normalizeClass(n.unref(h).e("count"))},n.toDisplayString(n.unref(I))+"/"+n.toDisplayString(n.unref(l).maxlength),7)):n.createCommentVNode("v-if",!0)],64))],16,kG)),[[n.vShow,oe.type!=="hidden"]])}});var _G=Q(NG,[["__file","input.vue"]]);const hn=Ne(_G),wa=4,gp={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},F3=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),z3=ne({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),TG="Thumb";var H3=Q(n.defineComponent({__name:"thumb",props:z3,setup(e){const t=e,o=n.inject(Xh),r=G("scrollbar");o||vt(TG,"can not inject scrollbar context");const a=n.ref(),i=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,u=Re?document.onselectstart:null;const f=n.computed(()=>gp[t.vertical?"vertical":"horizontal"]),h=n.computed(()=>F3({size:t.size,move:t.move,bar:f.value})),p=n.computed(()=>a.value[f.value.offset]**2/o.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),m=S=>{if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;window.getSelection()?.removeAllRanges(),y(S);const E=S.currentTarget;!E||(s.value[f.value.axis]=E[f.value.offset]-(S[f.value.client]-E.getBoundingClientRect()[f.value.direction]))},g=S=>{if(!i.value||!a.value||!o.wrapElement)return;const E=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),N=i.value[f.value.offset]/2,_=(E-N)*100*p.value/a.value[f.value.offset];o.wrapElement[f.value.scroll]=_*o.wrapElement[f.value.scrollSize]/100},y=S=>{S.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",$),u=document.onselectstart,document.onselectstart=()=>!1},w=S=>{if(!a.value||!i.value||c===!1)return;const E=s.value[f.value.axis];if(!E)return;const N=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,_=i.value[f.value.offset]-E,T=(N-_)*100*p.value/a.value[f.value.offset];o.wrapElement[f.value.scroll]=T*o.wrapElement[f.value.scrollSize]/100},$=()=>{c=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",$),k(),d&&(l.value=!1)},C=()=>{d=!1,l.value=!!t.size},b=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{k(),document.removeEventListener("mouseup",$)});const k=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Xe(n.toRef(o,"scrollbarElement"),"mousemove",C),Xe(n.toRef(o,"scrollbarElement"),"mouseleave",b),(S,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(r).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:a,class:n.normalizeClass([n.unref(r).e("bar"),n.unref(r).is(n.unref(f).key)]),onMousedown:g},[n.createElementVNode("div",{ref_key:"thumb",ref:i,class:n.normalizeClass(n.unref(r).e("thumb")),style:n.normalizeStyle(n.unref(h)),onMousedown:m},null,38)],34),[[n.vShow,S.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const AG=ne({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var xG=Q(n.defineComponent({__name:"bar",props:AG,setup(e,{expose:t}){const o=e,r=n.ref(0),a=n.ref(0);return t({handleScroll:s=>{if(s){const l=s.offsetHeight-wa,c=s.offsetWidth-wa;a.value=s.scrollTop*100/l*o.ratioY,r.value=s.scrollLeft*100/c*o.ratioX}}}),(s,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(H3,{move:r.value,ratio:s.ratioX,size:s.width,always:s.always,style:n.normalizeStyle(s.$attrs.style)},null,8,["move","ratio","size","always","style"]),n.createVNode(H3,{move:a.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always,style:n.normalizeStyle(s.$attrs.style)},null,8,["move","ratio","size","always","style"])],64))}}),[["__file","bar.vue"]]);const W3=ne({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:K([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},barSize:{type:Number,default:6}}),K3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Se)},MG=n.defineComponent({name:"BScrollbar"}),PG=n.defineComponent({...MG,props:W3,emits:K3,setup(e,{expose:t,emit:o}){const r=e,a=G("scrollbar");let i,s;const l=n.ref(),c=n.ref(),d=n.ref(),u=n.ref("0"),f=n.ref("0"),h=n.ref(),p=n.ref(1),m=n.ref(1),g=n.computed(()=>{const S={};return r.height&&(S.height=Ot(r.height)),r.maxHeight&&(S.maxHeight=Ot(r.maxHeight)),[r.wrapStyle,S]}),y=n.computed(()=>{const S={};return r.barSize&&(S[`--${a.b()}-bar-size`]=Ot(r.barSize)),[S]}),w=()=>{c.value&&(h.value?.handleScroll(c.value),o("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function $(S,E){it(S)?c.value.scrollTo(S):Se(S)&&Se(E)&&c.value.scrollTo(S,E)}const C=S=>{!Se(S)||(c.value.scrollTop=S)},b=S=>{!Se(S)||(c.value.scrollLeft=S)},k=()=>{if(!c.value)return;const S=c.value.offsetHeight-wa,E=c.value.offsetWidth-wa,N=S**2/c.value.scrollHeight,_=E**2/c.value.scrollWidth,T=Math.max(N,r.minSize),P=Math.max(_,r.minSize);p.value=N/(S-N)/(T/(S-T)),m.value=_/(E-_)/(P/(E-P)),f.value=T+wa<S?`${T}px`:"",u.value=P+wa<E?`${P}px`:""};return n.watch(()=>r.noresize,S=>{S?(i?.(),s?.()):({stop:i}=an(d,k),s=Xe("resize",k))},{immediate:!0}),n.watch(()=>[r.maxHeight,r.height],()=>{r.native||n.nextTick(()=>{k(),c.value&&h.value?.handleScroll(c.value)})}),n.provide(Xh,n.reactive({scrollbarElement:l,wrapElement:c})),n.onMounted(()=>{r.native||n.nextTick(()=>{k()})}),n.onUpdated(()=>k()),t({wrap$:c,update:k,scrollTo:$,setScrollTop:C,setScrollLeft:b,handleScroll:w}),(S,E)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbar$",ref:l,class:n.normalizeClass(n.unref(a).b()),"data-test-name":"scrollbar","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{ref_key:"wrap$",ref:c,class:n.normalizeClass([S.wrapClass,n.unref(a).e("wrap"),{[n.unref(a).em("wrap","hidden-default")]:!S.native}]),style:n.normalizeStyle(n.unref(g)),onScroll:w},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(S.tag),{ref_key:"resize$",ref:d,class:n.normalizeClass([n.unref(a).e("view"),S.viewClass]),style:n.normalizeStyle(S.viewStyle)},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(xG,{key:0,ref_key:"barRef",ref:h,height:f.value,width:u.value,always:S.always,"ratio-x":m.value,"ratio-y":p.value,style:n.normalizeStyle(n.unref(y))},null,8,["height","width","always","ratio-x","ratio-y","style"]))],2))}});var vG=Q(PG,[["__file","scrollbar.vue"]]);const bo=Ne(vG),j3={LIGHT:"light",DARK:"dark"},U3=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],rd=ne({role:{type:String,values:U3,default:"tooltip"}}),OG=rd,IG=n.defineComponent({name:"BPopperRoot",inheritAttrs:!1}),DG=n.defineComponent({...IG,props:rd,setup(e,{expose:t}){const o=e,r=n.ref(),a=n.ref(),i=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:s,role:l};return t(c),n.provide(Gc,c),(d,u)=>n.renderSlot(d.$slots,"default")}});var RG=Q(DG,[["__file","popper.vue"]]);const ad=ne({arrowOffset:{type:Number,default:5}}),LG=ad,VG=n.defineComponent({name:"BPopperArrow",inheritAttrs:!1}),FG=n.defineComponent({...VG,props:ad,setup(e,{expose:t}){const o=e,r=G("popper"),{arrowOffset:a,arrowRef:i}=n.inject(ep,void 0);return n.watch(()=>o.arrowOffset,s=>{a.value=s}),n.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:n.normalizeClass(n.unref(r).e("arrow")),"data-popper-arrow":""},null,2))}});var G3=Q(FG,[["__file","arrow.vue"]]);const zG="BOnlyChild",Y3=n.defineComponent({name:zG,setup(e,{slots:t,attrs:o}){const r=n.inject(cp),a=a3(r?.setForwardRef??mt);return()=>{const i=t.default?.(o);if(!i||i.length>1)return null;const s=q3(i);return s?n.withDirectives(n.cloneVNode(s,o),[[a]]):null}}});function q3(e){if(!e)return null;const t=e;for(const o of t){if(it(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return Z3(o);case n.Fragment:return q3(o.children);default:return o}return Z3(o)}return null}function Z3(e){const t=G("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const id=ne({virtualRef:{type:K(Object)},virtualTriggering:Boolean,onMouseenter:{type:K(Function)},onMouseleave:{type:K(Function)},onClick:{type:K(Function)},onKeydown:{type:K(Function)},onFocus:{type:K(Function)},onBlur:{type:K(Function)},onContextmenu:{type:K(Function)},id:String,open:Boolean}),HG=id,WG=n.defineComponent({name:"BPopperTrigger",inheritAttrs:!1}),KG=n.defineComponent({...WG,props:id,setup(e,{expose:t}){const o=e,{role:r,triggerRef:a}=n.inject(Gc,void 0);r3(a);const i=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(r&&r.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(a.value=Wn(u))},{immediate:!0}),n.watch(a,(u,f)=>{d?.(),d=void 0,ar(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{const p=o[h];p&&(u.addEventListener(h.slice(2).toLowerCase(),p),f?.removeEventListener?.(h.slice(2).toLowerCase(),p))}),d=n.watch([i,s,l,c],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,m)=>{xt(h[m])?u.removeAttribute(p):u.setAttribute(p,h[m])})},{immediate:!0})),ar(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),n.onBeforeUnmount(()=>{d?.(),d=void 0}),t({triggerRef:a}),(u,f)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Y3),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(i),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var X3=Q(KG,[["__file","trigger.vue"]]),pn="top",Yn="bottom",qn="right",mn="left",yp="auto",Gs=[pn,Yn,qn,mn],bi="start",Ys="end",jG="clippingParents",J3="viewport",qs="popper",UG="reference",Q3=Gs.reduce(function(e,t){return e.concat([t+"-"+bi,t+"-"+Ys])},[]),$a=[].concat(Gs,[yp]).reduce(function(e,t){return e.concat([t,t+"-"+bi,t+"-"+Ys])},[]),GG="beforeRead",YG="read",qG="afterRead",ZG="beforeMain",XG="main",JG="afterMain",QG="beforeWrite",eY="write",tY="afterWrite",nY=[GG,YG,qG,ZG,XG,JG,QG,eY,tY];function Lo(e){return e?(e.nodeName||"").toLowerCase():null}function Co(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ci(e){var t=Co(e).Element;return e instanceof t||e instanceof Element}function Zn(e){var t=Co(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bp(e){if(typeof ShadowRoot>"u")return!1;var t=Co(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oY(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},a=t.attributes[o]||{},i=t.elements[o];!Zn(i)||!Lo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function rY(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!Zn(a)||!Lo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}var e4={name:"applyStyles",enabled:!0,phase:"write",fn:oY,effect:rY,requires:["computeStyles"]};function Vo(e){return e.split("-")[0]}var ka=Math.max,sd=Math.min,wi=Math.round;function $i(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),r=1,a=1;if(Zn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=wi(o.width)/s||1),i>0&&(a=wi(o.height)/i||1)}return{width:o.width/r,height:o.height/a,top:o.top/a,right:o.right/r,bottom:o.bottom/a,left:o.left/r,x:o.left/r,y:o.top/a}}function Cp(e){var t=$i(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function t4(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&bp(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dr(e){return Co(e).getComputedStyle(e)}function aY(e){return["table","td","th"].indexOf(Lo(e))>=0}function Fr(e){return((Ci(e)?e.ownerDocument:e.document)||window.document).documentElement}function ld(e){return Lo(e)==="html"?e:e.assignedSlot||e.parentNode||(bp(e)?e.host:null)||Fr(e)}function n4(e){return!Zn(e)||dr(e).position==="fixed"?null:e.offsetParent}function iY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Zn(e)){var r=dr(e);if(r.position==="fixed")return null}var a=ld(e);for(bp(a)&&(a=a.host);Zn(a)&&["html","body"].indexOf(Lo(a))<0;){var i=dr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Zs(e){for(var t=Co(e),o=n4(e);o&&aY(o)&&dr(o).position==="static";)o=n4(o);return o&&(Lo(o)==="html"||Lo(o)==="body"&&dr(o).position==="static")?t:o||iY(e)||t}function wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,o){return ka(e,sd(t,o))}function sY(e,t,o){var r=Xs(e,t,o);return r>o?o:r}function o4(){return{top:0,right:0,bottom:0,left:0}}function r4(e){return Object.assign({},o4(),e)}function a4(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var lY=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,r4(typeof e!="number"?e:a4(e,Gs))};function cY(e){var t,o=e.state,r=e.name,a=e.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,l=Vo(o.placement),c=wp(l),d=[mn,qn].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!s)){var f=lY(a.padding,o),h=Cp(i),p=c==="y"?pn:mn,m=c==="y"?Yn:qn,g=o.rects.reference[u]+o.rects.reference[c]-s[c]-o.rects.popper[u],y=s[c]-o.rects.reference[c],w=Zs(i),$=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,C=g/2-y/2,b=f[p],k=$-h[u]-f[m],S=$/2-h[u]/2+C,E=Xs(b,S,k),N=c;o.modifiersData[r]=(t={},t[N]=E,t.centerOffset=E-S,t)}}function dY(e){var t=e.state,o=e.options,r=o.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!t4(t.elements.popper,a)||(t.elements.arrow=a))}var uY={name:"arrow",enabled:!0,phase:"main",fn:cY,effect:dY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ki(e){return e.split("-")[1]}var fY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hY(e){var t=e.x,o=e.y,r=window,a=r.devicePixelRatio||1;return{x:wi(t*a)/a||0,y:wi(o*a)/a||0}}function i4(e){var t,o=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var w=s.hasOwnProperty("x"),$=s.hasOwnProperty("y"),C=mn,b=pn,k=window;if(d){var S=Zs(o),E="clientHeight",N="clientWidth";if(S===Co(o)&&(S=Fr(o),dr(S).position!=="static"&&l==="absolute"&&(E="scrollHeight",N="scrollWidth")),S=S,a===pn||(a===mn||a===qn)&&i===Ys){b=Yn;var _=f&&S===k&&k.visualViewport?k.visualViewport.height:S[E];g-=_-r.height,g*=c?1:-1}if(a===mn||(a===pn||a===Yn)&&i===Ys){C=qn;var T=f&&S===k&&k.visualViewport?k.visualViewport.width:S[N];p-=T-r.width,p*=c?1:-1}}var P=Object.assign({position:l},d&&fY),x=u===!0?hY({x:p,y:g}):{x:p,y:g};if(p=x.x,g=x.y,c){var v;return Object.assign({},P,(v={},v[b]=$?"0":"",v[C]=w?"0":"",v.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",v))}return Object.assign({},P,(t={},t[b]=$?g+"px":"",t[C]=w?p+"px":"",t.transform="",t))}function pY(e){var t=e.state,o=e.options,r=o.gpuAcceleration,a=r===void 0?!0:r,i=o.adaptive,s=i===void 0?!0:i,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:Vo(t.placement),variation:ki(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i4(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i4(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var s4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pY,data:{}},cd={passive:!0};function mY(e){var t=e.state,o=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Co(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",o.update,cd)}),l&&c.addEventListener("resize",o.update,cd),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",o.update,cd)}),l&&c.removeEventListener("resize",o.update,cd)}}var l4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mY,data:{}},gY={left:"right",right:"left",bottom:"top",top:"bottom"};function dd(e){return e.replace(/left|right|bottom|top/g,function(t){return gY[t]})}var yY={start:"end",end:"start"};function c4(e){return e.replace(/start|end/g,function(t){return yY[t]})}function $p(e){var t=Co(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function kp(e){return $i(Fr(e)).left+$p(e).scrollLeft}function bY(e){var t=Co(e),o=Fr(e),r=t.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:s+kp(e),y:l}}function CY(e){var t,o=Fr(e),r=$p(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ka(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ka(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+kp(e),c=-r.scrollTop;return dr(a||o).direction==="rtl"&&(l+=ka(o.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Sp(e){var t=dr(e),o=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+r)}function d4(e){return["html","body","#document"].indexOf(Lo(e))>=0?e.ownerDocument.body:Zn(e)&&Sp(e)?e:d4(ld(e))}function Js(e,t){var o;t===void 0&&(t=[]);var r=d4(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),i=Co(r),s=a?[i].concat(i.visualViewport||[],Sp(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(Js(ld(s)))}function Ep(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wY(e){var t=$i(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function u4(e,t){return t===J3?Ep(bY(e)):Ci(t)?wY(t):Ep(CY(Fr(e)))}function $Y(e){var t=Js(ld(e)),o=["absolute","fixed"].indexOf(dr(e).position)>=0,r=o&&Zn(e)?Zs(e):e;return Ci(r)?t.filter(function(a){return Ci(a)&&t4(a,r)&&Lo(a)!=="body"}):[]}function kY(e,t,o){var r=t==="clippingParents"?$Y(e):[].concat(t),a=[].concat(r,[o]),i=a[0],s=a.reduce(function(l,c){var d=u4(e,c);return l.top=ka(d.top,l.top),l.right=sd(d.right,l.right),l.bottom=sd(d.bottom,l.bottom),l.left=ka(d.left,l.left),l},u4(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function f4(e){var t=e.reference,o=e.element,r=e.placement,a=r?Vo(r):null,i=r?ki(r):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(a){case pn:c={x:s,y:t.y-o.height};break;case Yn:c={x:s,y:t.y+t.height};break;case qn:c={x:t.x+t.width,y:l};break;case mn:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=a?wp(a):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case bi:c[d]=c[d]-(t[u]/2-o[u]/2);break;case Ys:c[d]=c[d]+(t[u]/2-o[u]/2);break}}return c}function Qs(e,t){t===void 0&&(t={});var o=t,r=o.placement,a=r===void 0?e.placement:r,i=o.boundary,s=i===void 0?jG:i,l=o.rootBoundary,c=l===void 0?J3:l,d=o.elementContext,u=d===void 0?qs:d,f=o.altBoundary,h=f===void 0?!1:f,p=o.padding,m=p===void 0?0:p,g=r4(typeof m!="number"?m:a4(m,Gs)),y=u===qs?UG:qs,w=e.rects.popper,$=e.elements[h?y:u],C=kY(Ci($)?$:$.contextElement||Fr(e.elements.popper),s,c),b=$i(e.elements.reference),k=f4({reference:b,element:w,strategy:"absolute",placement:a}),S=Ep(Object.assign({},w,k)),E=u===qs?S:b,N={top:C.top-E.top+g.top,bottom:E.bottom-C.bottom+g.bottom,left:C.left-E.left+g.left,right:E.right-C.right+g.right},_=e.modifiersData.offset;if(u===qs&&_){var T=_[a];Object.keys(N).forEach(function(P){var x=[qn,Yn].indexOf(P)>=0?1:-1,v=[pn,Yn].indexOf(P)>=0?"y":"x";N[P]+=T[v]*x})}return N}function SY(e,t){t===void 0&&(t={});var o=t,r=o.placement,a=o.boundary,i=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?$a:c,u=ki(r),f=u?l?Q3:Q3.filter(function(m){return ki(m)===u}):Gs,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,g){return m[g]=Qs(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[Vo(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function EY(e){if(Vo(e)===yp)return[];var t=dd(e);return[c4(e),t,c4(t)]}function BY(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=o.mainAxis,i=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,u=o.boundary,f=o.rootBoundary,h=o.altBoundary,p=o.flipVariations,m=p===void 0?!0:p,g=o.allowedAutoPlacements,y=t.options.placement,w=Vo(y),$=w===y,C=c||($||!m?[dd(y)]:EY(y)),b=[y].concat(C).reduce(function(j,U){return j.concat(Vo(U)===yp?SY(t,{placement:U,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:g}):U)},[]),k=t.rects.reference,S=t.rects.popper,E=new Map,N=!0,_=b[0],T=0;T<b.length;T++){var P=b[T],x=Vo(P),v=ki(P)===bi,O=[pn,Yn].indexOf(x)>=0,I=O?"width":"height",F=Qs(t,{placement:P,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),M=O?v?qn:mn:v?Yn:pn;k[I]>S[I]&&(M=dd(M));var z=dd(M),B=[];if(i&&B.push(F[x]<=0),l&&B.push(F[M]<=0,F[z]<=0),B.every(function(j){return j})){_=P,N=!1;break}E.set(P,B)}if(N)for(var L=m?3:1,W=function(j){var U=b.find(function(re){var J=E.get(re);if(J)return J.slice(0,j).every(function(Y){return Y})});if(U)return _=U,"break"},R=L;R>0;R--){var H=W(R);if(H==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var NY={name:"flip",enabled:!0,phase:"main",fn:BY,requiresIfExists:["offset"],data:{_skip:!1}};function h4(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function p4(e){return[pn,qn,Yn,mn].some(function(t){return e[t]>=0})}function _Y(e){var t=e.state,o=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Qs(t,{elementContext:"reference"}),l=Qs(t,{altBoundary:!0}),c=h4(s,r),d=h4(l,a,i),u=p4(c),f=p4(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var TY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_Y};function AY(e,t,o){var r=Vo(e),a=[mn,pn].indexOf(r)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[mn,qn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function xY(e){var t=e.state,o=e.options,r=e.name,a=o.offset,i=a===void 0?[0,0]:a,s=$a.reduce(function(u,f){return u[f]=AY(f,t.rects,i),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}var MY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xY};function PY(e){var t=e.state,o=e.name;t.modifiersData[o]=f4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var m4={name:"popperOffsets",enabled:!0,phase:"read",fn:PY,data:{}};function vY(e){return e==="x"?"y":"x"}function OY(e){var t=e.state,o=e.options,r=e.name,a=o.mainAxis,i=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,f=o.padding,h=o.tether,p=h===void 0?!0:h,m=o.tetherOffset,g=m===void 0?0:m,y=Qs(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),w=Vo(t.placement),$=ki(t.placement),C=!$,b=wp(w),k=vY(b),S=t.modifiersData.popperOffsets,E=t.rects.reference,N=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,T=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(S){if(i){var v,O=b==="y"?pn:mn,I=b==="y"?Yn:qn,F=b==="y"?"height":"width",M=S[b],z=M+y[O],B=M-y[I],L=p?-N[F]/2:0,W=$===bi?E[F]:N[F],R=$===bi?-N[F]:-E[F],H=t.elements.arrow,j=p&&H?Cp(H):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:o4(),re=U[O],J=U[I],Y=Xs(0,E[F],j[F]),q=C?E[F]/2-L-Y-re-T.mainAxis:W-Y-re-T.mainAxis,te=C?-E[F]/2+L+Y+J+T.mainAxis:R+Y+J+T.mainAxis,ue=t.elements.arrow&&Zs(t.elements.arrow),ge=ue?b==="y"?ue.clientTop||0:ue.clientLeft||0:0,Ee=(v=P?.[b])!=null?v:0,Te=M+q-Ee-ge,ye=M+te-Ee,oe=Xs(p?sd(z,Te):z,M,p?ka(B,ye):B);S[b]=oe,x[b]=oe-M}if(l){var se,me=b==="x"?pn:mn,ee=b==="x"?Yn:qn,le=S[k],Ce=k==="y"?"height":"width",X=le+y[me],ie=le-y[ee],we=[pn,mn].indexOf(w)!==-1,fe=(se=P?.[k])!=null?se:0,$e=we?X:le-E[Ce]-N[Ce]-fe+T.altAxis,ce=we?le+E[Ce]+N[Ce]-fe-T.altAxis:ie,ke=p&&we?sY($e,le,ce):Xs(p?$e:X,le,p?ce:ie);S[k]=ke,x[k]=ke-le}t.modifiersData[r]=x}}var IY={name:"preventOverflow",enabled:!0,phase:"main",fn:OY,requiresIfExists:["offset"]};function DY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RY(e){return e===Co(e)||!Zn(e)?$p(e):DY(e)}function LY(e){var t=e.getBoundingClientRect(),o=wi(t.width)/e.offsetWidth||1,r=wi(t.height)/e.offsetHeight||1;return o!==1||r!==1}function VY(e,t,o){o===void 0&&(o=!1);var r=Zn(t),a=Zn(t)&&LY(t),i=Fr(t),s=$i(e,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!o)&&((Lo(t)!=="body"||Sp(i))&&(l=RY(t)),Zn(t)?(c=$i(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=kp(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function FY(e){var t=new Map,o=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){o.has(i.name)||a(i)}),r}function zY(e){var t=FY(e);return nY.reduce(function(o,r){return o.concat(t.filter(function(a){return a.phase===r}))},[])}function HY(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function WY(e){var t=e.reduce(function(o,r){var a=o[r.name];return o[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var g4={placement:"bottom",modifiers:[],strategy:"absolute"};function y4(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Bp(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,a=t.defaultOptions,i=a===void 0?g4:a;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},g4,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(g){var y=typeof g=="function"?g(d.options):g;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:Ci(s)?Js(s):s.contextElement?Js(s.contextElement):[],popper:Js(l)};var w=zY(WY([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function($){return $.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var g=d.elements,y=g.reference,w=g.popper;if(y4(y,w)){d.rects={reference:VY(y,Zs(w),d.options.strategy==="fixed"),popper:Cp(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var $=0;$<d.orderedModifiers.length;$++){if(d.reset===!0){d.reset=!1,$=-1;continue}var C=d.orderedModifiers[$],b=C.fn,k=C.options,S=k===void 0?{}:k,E=C.name;typeof b=="function"&&(d=b({state:d,options:S,name:E,instance:h})||d)}}}},update:HY(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){m(),f=!0}};if(!y4(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){d.orderedModifiers.forEach(function(g){var y=g.name,w=g.options,$=w===void 0?{}:w,C=g.effect;if(typeof C=="function"){var b=C({state:d,name:y,instance:h,options:$}),k=function(){};u.push(b||k)}})}function m(){u.forEach(function(g){return g()}),u=[]}return h}}Bp();var KY=[l4,m4,s4,e4];Bp({defaultModifiers:KY});var jY=[l4,m4,s4,e4,MY,NY,IY,uY,TY],b4=Bp({defaultModifiers:jY});const C4=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},w4=(e,t)=>{for(const o of e)if(!UY(o,t))return o},UY=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},GY=e=>{const t=C4(e),o=w4(t,e),r=w4(t.reverse(),e);return[o,r]},YY=e=>e instanceof HTMLInputElement&&"select"in e,zr=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&YY(e)&&t&&e.select()}};function $4(e,t){const o=[...e],r=e.indexOf(t);return r!==-1&&o.splice(r,1),o}const qY=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=$4(e,r),e.unshift(r)},remove:r=>{e=$4(e,r),e[0]?.resume?.()}}},ZY=(e,t=!1)=>{const o=document.activeElement;for(const r of e)if(zr(r,t),document.activeElement!==o)return},k4=qY(),Np="focus-trap.focus-after-trapped",_p="focus-trap.focus-after-released",S4={cancelable:!0,bubbles:!1},E4="focusAfterTrapped",B4="focusAfterReleased",Tp=Symbol("bFocusTrap"),XY=n.defineComponent({name:"BFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[E4,B4,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let r,a;QC(p=>{e.trapped&&!i.paused&&t("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:m,altKey:g,ctrlKey:y,metaKey:w,currentTarget:$,shiftKey:C}=p,{loop:b}=e,k=m===de.tab&&!g&&!y&&!w,S=document.activeElement;if(k&&S){const E=$,[N,_]=GY(E);N&&_?!C&&S===_?(p.preventDefault(),b&&zr(N,!0),t("focusout-prevented")):C&&[N,E].includes(S)&&(p.preventDefault(),b&&zr(_,!0),t("focusout-prevented")):S===E&&(p.preventDefault(),t("focusout-prevented"))}};n.provide(Tp,{focusTrapRef:o,onKeydown:s}),n.watch(()=>e.focusTrapEl,p=>{p&&(o.value=p)},{immediate:!0}),n.watch([o],([p],[m])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",s),m.removeEventListener("focusin",d),m.removeEventListener("focusout",u))});const l=p=>{t(E4,p)},c=p=>t(B4,p),d=p=>{const m=n.unref(o);if(!m)return;const g=p.target,y=g&&m.contains(g);y&&t("focusin",p),!i.paused&&e.trapped&&(y?a=g:zr(a,!0))},u=p=>{const m=n.unref(o);if(!(i.paused||!m))if(e.trapped){const g=p.relatedTarget;!xt(g)&&!m.contains(g)&&setTimeout(()=>{!i.paused&&e.trapped&&zr(a,!0)},0)}else{const g=p.target;g&&m.contains(g)||t("focusout",p)}};async function f(){await n.nextTick();const p=n.unref(o);if(p){k4.push(i);const m=document.activeElement;if(r=m,!p.contains(m)){const y=new Event(Np,S4);p.addEventListener(Np,l),p.dispatchEvent(y),y.defaultPrevented||n.nextTick(()=>{let w=e.focusStartEl;De(w)||(zr(w),document.activeElement!==w&&(w="first")),w==="first"&&ZY(C4(p),!0),(document.activeElement===m||w==="container")&&zr(p)})}}}function h(){const p=n.unref(o);if(p){p.removeEventListener(Np,l);const m=new Event(_p,S4);p.addEventListener(_p,c),p.dispatchEvent(m),m.defaultPrevented||zr(r??document.body,!0),p.removeEventListener(_p,l),k4.remove(i)}}return n.onMounted(()=>{e.trapped&&f(),n.watch(()=>e.trapped,p=>{p?f():h()})}),n.onBeforeUnmount(()=>{e.trapped&&h()}),{onKeydown:s}}});function JY(e,t,o,r,a,i){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ud=Q(XY,[["render",JY],["__file","focus-trap.vue"]]);const QY=["fixed","absolute"],Ap=ne({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:K(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:$a,default:"bottom"},popperOptions:{type:K(Object),default:()=>({})},strategy:{type:String,values:QY,default:"absolute"}}),fd=ne({...Ap,id:String,style:{type:K([String,Array,Object])},className:{type:K([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:K([String,Array,Object])},popperStyle:{type:K([String,Array,Object])},referenceEl:{type:K(Object)},triggerTargetEl:{type:K(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),xp={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},eq=Ap,tq=fd,nq=xp,N4=(e,t)=>{const{placement:o,strategy:r,popperOptions:a}=e,i={placement:o,strategy:r,...a,modifiers:rq(e)};return aq(i,t),iq(i,a?.modifiers),i},oq=e=>{if(!!Re)return Wn(e)};function rq(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:o,adaptive:o}}]}function aq(e,{arrowEl:t,arrowOffset:o}){e.modifiers.push({name:"arrow",options:{element:t,padding:o??5}})}function iq(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const sq=n.defineComponent({name:"BPopperContent"}),lq=n.defineComponent({...sq,props:fd,emits:xp,setup(e,{expose:t,emit:o}){const r=e,{popperInstanceRef:a,contentRef:i,triggerRef:s,role:l}=n.inject(Gc,void 0),{nextZIndex:c}=Do(),d=G("popper"),u=n.ref(),f=n.ref("first"),h=n.ref(),p=n.ref();n.provide(ep,{arrowRef:h,arrowOffset:p});const m=n.ref(r.zIndex||c()),g=n.ref(!1);let y;const w=n.computed(()=>oq(r.referenceEl)||n.unref(s)),$=n.computed(()=>[{zIndex:n.unref(m)},r.popperStyle]),C=n.computed(()=>[d.b(),d.is("pure",r.pure),d.is(r.effect),r.popperClass]),b=n.computed(()=>l&&l.value==="dialog"?"false":void 0),k=({referenceEl:v,popperContentEl:O,arrowEl:I})=>{const F=N4(r,{arrowEl:I,arrowOffset:n.unref(p)});return b4(v,O,F)},S=(v=!0)=>{n.unref(a)?.update(),v&&(m.value=r.zIndex||c())},E=()=>{const v={name:"eventListeners",enabled:r.visible};n.unref(a)?.setOptions?.(O=>({...O,modifiers:[...O.modifiers||[],v]})),S(!1),r.visible&&r.focusOnShow?g.value=!0:r.visible===!1&&(g.value=!1)},N=()=>{o("focus")},_=()=>{f.value="first",o("blur")},T=v=>{r.visible&&!g.value&&(v.target&&(f.value=v.target),g.value=!0,v.relatedTarget&&v.relatedTarget?.focus())},P=()=>{r.trapping||(g.value=!1)},x=()=>{g.value=!1,o("close")};return n.onMounted(()=>{let v;n.watch(w,O=>{if(v?.(),n.unref(a)?.destroy?.(),O){const F=n.unref(u);i.value=F,a.value=k({referenceEl:O,popperContentEl:F,arrowEl:n.unref(h)}),v=n.watch(()=>O.getBoundingClientRect(),()=>S(),{immediate:!0})}else a.value=void 0},{immediate:!0}),n.watch(()=>r.triggerTargetEl,(O,I)=>{y?.(),y=void 0;const F=n.unref(O||u.value),M=n.unref(I||u.value);ar(F)&&(y=n.watch([l,()=>r.ariaLabel,b,()=>r.id],z=>{["role","aria-label","aria-modal","id"].forEach((B,L)=>{xt(z[L])?F.removeAttribute(B):F.setAttribute(B,z[L])})},{immediate:!0})),M!==F&&ar(M)&&["role","aria-label","aria-modal","id"].forEach(z=>{M.removeAttribute(z)})},{immediate:!0}),n.watch(()=>r.visible,E,{immediate:!0}),n.watch(()=>N4(r,{arrowEl:n.unref(h),arrowOffset:n.unref(p)}),O=>a.value?.setOptions(O))}),n.onBeforeUnmount(()=>{y?.(),y=void 0}),t({popperContentRef:u,popperInstanceRef:a,updatePopper:S,contentStyle:$}),(v,O)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"popperContentRef",ref:u,style:n.normalizeStyle(n.unref($)),class:n.normalizeClass(n.unref(C)),tabindex:"-1",onMouseenter:O[0]||(O[0]=I=>v.$emit("mouseenter",I)),onMouseleave:O[1]||(O[1]=I=>v.$emit("mouseleave",I))},[n.createVNode(n.unref(ud),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":u.value,"focus-start-el":f.value,onFocusAfterTrapped:N,onFocusAfterReleased:_,onFocusin:T,onFocusoutPrevented:P,onReleaseRequested:x},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var _4=Q(lq,[["__file","content.vue"]]);const Mp=Ne(RG),cq=G("tooltip"),Ft=ne({...n3,...fd,appendTo:{type:K([String,Object]),default:lp},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:K(Boolean),default:null},transition:{type:String,default:`${cq.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Si=ne({...id,disabled:Boolean,trigger:{type:K([String,Array]),default:"hover"},triggerKeys:{type:K(Array),default:()=>[de.enter,de.space]}}),{useModelToggleProps:T4,useModelToggleEmits:A4,useModelToggle:x4}=ip("visible"),M4=ne({...rd,...T4,...Ft,...Si,...ad,visibleArrow:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0}}),P4=[...A4,"before-show","before-hide","show","hide","open","close"],dq=(e,t)=>Me(e)?e.includes(t):e===t,Ei=(e,t,o)=>r=>{dq(n.unref(e),t)&&o(r)},uq=n.defineComponent({name:"BTooltipTrigger"}),fq=n.defineComponent({...uq,props:Si,setup(e,{expose:t}){const o=e,r=G("tooltip"),{controlled:a,id:i,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Vs,void 0),u=n.ref(null),f=()=>{if(n.unref(a)||o.disabled)return!0},h=n.toRef(o,"trigger"),p=pt(f,Ei(h,"hover",l)),m=pt(f,Ei(h,"hover",c)),g=pt(f,Ei(h,"click",b=>{b.button===0&&d(b)})),y=pt(f,Ei(h,"focus",l)),w=pt(f,Ei(h,"focus",c)),$=pt(f,Ei(h,"contextmenu",b=>{b.preventDefault(),d(b)})),C=pt(f,b=>{const{code:k}=b;o.triggerKeys.includes(k)&&(b.preventDefault(),d(b))});return t({triggerRef:u}),(b,k)=>(n.openBlock(),n.createBlock(n.unref(X3),{id:n.unref(i),"virtual-ref":b.virtualRef,open:n.unref(s),"virtual-triggering":b.virtualTriggering,class:n.normalizeClass(n.unref(r).e("trigger")),onBlur:n.unref(w),onClick:n.unref(g),onContextmenu:n.unref($),onFocus:n.unref(y),onMouseenter:n.unref(p),onMouseleave:n.unref(m),onKeydown:n.unref(C)},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var hq=Q(fq,[["__file","trigger.vue"]]);const pq=n.defineComponent({name:"BTooltipContent",inheritAttrs:!1}),mq=n.defineComponent({...pq,props:Ft,setup(e,{expose:t}){const o=e,r=n.ref(null),a=n.ref(!1),i=Ms(),{controlled:s,id:l,open:c,trigger:d,onClose:u,onOpen:f,onShow:h,onHide:p,onBeforeShow:m,onBeforeHide:g}=n.inject(Vs,void 0),y=n.computed(()=>o.persistent);n.onBeforeUnmount(()=>{a.value=!0});const w=n.computed(()=>n.unref(y)?!0:n.unref(c)),$=n.computed(()=>o.disabled?!1:n.unref(c)),C=n.computed(()=>o.style??{}),b=n.computed(()=>!n.unref(c)),k=()=>{p()},S=()=>{if(n.unref(s))return!0},E=pt(S,()=>{o.enterable&&n.unref(d)==="hover"&&f()}),N=pt(S,()=>{n.unref(d)==="hover"&&u()}),_=()=>{r.value?.updatePopper?.(),m?.()},T=()=>{g?.()},P=()=>{h(),v=_h(n.computed(()=>r.value?.popperContentRef),()=>{if(n.unref(s))return;n.unref(d)!=="hover"&&u()})},x=()=>{o.virtualTriggering||u()};let v;return n.watch(()=>n.unref(c),O=>{O||v?.()},{flush:"post"}),n.watch(()=>o.content,()=>{r.value?.updatePopper?.()}),t({contentRef:r}),(O,I)=>n.unref(i)?(n.openBlock(),n.createBlock(n.Teleport,{key:0,disabled:!O.teleported,to:O.appendTo},[n.createVNode(n.Transition,{name:O.transition,onAfterLeave:k,onBeforeEnter:_,onAfterEnter:P,onBeforeLeave:T},{default:n.withCtx(()=>[n.unref(w)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(_4),n.mergeProps({key:0,id:n.unref(l),ref_key:"contentRef",ref:r},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":n.unref(b),"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,n.unref(C)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:n.unref($),"z-index":O.zIndex,onMouseenter:n.unref(E),onMouseleave:n.unref(N),onBlur:x,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.createCommentVNode(" Workaround bug #6378 "),a.value?n.createCommentVNode("v-if",!0):n.renderSlot(O.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[n.vShow,n.unref($)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"])):n.createCommentVNode("v-if",!0)}});var gq=Q(mq,[["__file","content.vue"]]);const yq=["innerHTML"],bq={key:1},Cq=n.defineComponent({name:"BTooltip"}),wq=n.defineComponent({...Cq,props:M4,emits:P4,setup(e,{expose:t,emit:o}){const r=e,a=G("tooltip");t3();const i=n.computed(()=>r.showAfter),s=n.computed(()=>(Vt(r.visibleArrow),Pt(r.visibleArrow)?r.visibleArrow:r.showArrow)),l=po(),c=n.ref(),d=n.ref(),u=()=>{const b=n.unref(c);b&&b.popperInstanceRef?.update()},f=n.ref(!1),h=n.ref(),{show:p,hide:m,hasUpdateHandler:g}=x4({indicator:f,toggleReason:h}),{onOpen:y,onClose:w}=o3({showAfter:i,hideAfter:n.toRef(r,"hideAfter"),open:p,close:m}),$=n.computed(()=>Pt(r.visible)&&!g.value);n.provide(Vs,{controlled:$,id:l,open:n.readonly(f),trigger:n.toRef(r,"trigger"),onOpen:b=>{y(b)},onClose:b=>{w(b)},onToggle:b=>{n.unref(f)?w(b):y(b)},onShow:()=>{o("show",h.value)},onHide:()=>{o("hide",h.value)},onBeforeShow:()=>{o("before-show",h.value)},onBeforeHide:()=>{o("before-hide",h.value)},updatePopper:u}),n.watch(()=>r.disabled,b=>{b&&f.value&&(f.value=!1)});const C=()=>{const b=d.value?.contentRef?.popperContentRef;return b&&b.contains(document.activeElement)};return n.onDeactivated(()=>f.value&&m()),t({popperRef:c,contentRef:d,isFocusInsideContent:C,updatePopper:u,onOpen:y,onClose:w,hide:m}),(b,k)=>(n.openBlock(),n.createBlock(n.unref(Mp),{ref_key:"popperRef",ref:c,role:b.role,"data-test-name":"tooltip","data-test-variant":"","data-test-state":""},{default:n.withCtx(()=>[n.createVNode(hq,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:n.withCtx(()=>[b.$slots.default?n.renderSlot(b.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(gq,{ref_key:"contentRef",ref:d,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass||n.unref(a).b(),"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":n.unref(i),strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"content",{},()=>[b.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:b.content},null,8,yq)):(n.openBlock(),n.createElementBlock("span",bq,n.toDisplayString(b.content),1))]),n.unref(s)?(n.openBlock(),n.createBlock(n.unref(G3),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):n.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var $q=Q(wq,[["__file","tooltip.vue"]]);const Xt=Ne($q),v4=ne({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:K(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:K([Function,Array]),default:mt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Ft.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Je,default:""},prefixIcon:{type:Je,default:""},suffixClass:{type:String,default:""},prefixClass:{type:String,default:""},prependClass:{type:String,default:""},appendClass:{type:String,default:""},inputClass:{type:String,default:""},rounded:{type:Boolean,default:!1},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),O4={[Pe]:e=>De(e),[_n]:e=>De(e),[ct]:e=>De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>it(e)},kq=["aria-expanded","aria-owns"],Sq={key:0},Eq=["id","aria-selected","onClick"],I4="BAutocomplete",Bq=n.defineComponent({name:I4,inheritAttrs:!1}),Nq=n.defineComponent({...Bq,props:v4,emits:O4,setup(e,{expose:t,emit:o}){const r=e,a=Uc(),i=n.useAttrs(),s=ho(),l=G("autocomplete"),c=n.ref(),d=n.ref(),u=n.ref(),f=n.ref();let h=!1,p=!1;const m=n.ref([]),g=n.ref(-1),y=n.ref(""),w=n.ref(!1),$=n.ref(!1),C=n.ref(!1),b=n.computed(()=>l.b(String(Ds()))),k=n.computed(()=>i.style),S=n.computed(()=>(m.value.length>0||C.value)&&w.value),E=n.computed(()=>!r.hideLoading&&C.value),N=n.computed(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),_=async()=>{await n.nextTick(),S.value&&(y.value=`${c.value.$el.offsetWidth}px`)},T=()=>{p=!0},P=()=>{p=!1,g.value=-1},v=Zt(async J=>{if($.value)return;const Y=q=>{C.value=!1,!$.value&&(Me(q)?(m.value=q,g.value=r.highlightFirstItem?0:-1):vt(I4,"autocomplete suggestions must be an array"))};if(C.value=!0,Me(r.fetchSuggestions))Y(r.fetchSuggestions);else{const q=await r.fetchSuggestions(J,Y);Me(q)&&Y(q)}},r.debounce),O=J=>{const Y=!!J;if(o(_n,J),o(Pe,J),$.value=!1,w.value||(w.value=Y),!r.triggerOnFocus&&!J){$.value=!0,m.value=[];return}v(J)},I=J=>{s.value||(J.target?.tagName!=="INPUT"||N.value.includes(document.activeElement))&&(w.value=!0)},F=J=>{o(ct,J)},M=J=>{p||(w.value=!0,o("focus",J),r.triggerOnFocus&&!h&&v(String(r.modelValue)))},z=J=>{p||o("blur",J)},B=()=>{w.value=!1,o(Pe,""),o("clear")},L=async()=>{S.value&&g.value>=0&&g.value<m.value.length?U(m.value[g.value]):r.selectWhenUnmatched&&(o("select",{value:r.modelValue}),m.value=[],g.value=-1)},W=J=>{S.value&&(J.preventDefault(),J.stopPropagation(),R())},R=()=>{w.value=!1},H=()=>{c.value?.focus()},j=()=>{c.value?.blur()},U=async J=>{o(_n,J[r.valueKey]),o(Pe,J[r.valueKey]),o("select",J),m.value=[],g.value=-1},re=J=>{if(!S.value||C.value)return;if(J<0){g.value=-1;return}J>=m.value.length&&(J=m.value.length-1);const Y=d.value.querySelector(`.${l.be("suggestion","wrap")}`),te=Y.querySelectorAll(`.${l.be("suggestion","list")} li`)[J],ue=Y.scrollTop,{offsetTop:ge,scrollHeight:Ee}=te;ge+Ee>ue+Y.clientHeight&&(Y.scrollTop+=Ee),ge<ue&&(Y.scrollTop-=Ee),g.value=J,c.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${g.value}`)};return _h(f,()=>{S.value&&R()}),n.onMounted(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${g.value}`),h=c.value.ref.hasAttribute("readonly")}),t({highlightedIndex:g,activated:w,loading:C,inputRef:c,popperRef:u,suggestions:m,handleSelect:U,handleKeyEnter:L,focus:H,blur:j,close:R,highlight:re}),(J,Y)=>(n.openBlock(),n.createBlock(n.unref(Xt),{ref_key:"popperRef",ref:u,visible:n.unref(S),placement:J.placement,"fallback-placements":["bottom","top"],"popper-class":[n.unref(l).e("popper"),J.popperClass],teleported:J.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${n.unref(l).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:_,onShow:T,onHide:P},{content:n.withCtx(()=>[n.createElementVNode("div",{ref_key:"regionRef",ref:d,class:n.normalizeClass([n.unref(l).b("suggestion"),n.unref(l).is("loading",n.unref(E))]),style:n.normalizeStyle({[J.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[n.createVNode(n.unref(bo),{id:n.unref(b),tag:"ul","wrap-class":n.unref(l).be("suggestion","wrap"),"view-class":n.unref(l).be("suggestion","list"),role:"listbox"},{default:n.withCtx(()=>[n.unref(E)?(n.openBlock(),n.createElementBlock("li",Sq,[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(l).is("loading"))},{default:n.withCtx(()=>[n.createVNode(n.unref(Or))]),_:1},8,["class"])])):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(m.value,(q,te)=>(n.openBlock(),n.createElementBlock("li",{id:`${n.unref(b)}-item-${te}`,key:te,class:n.normalizeClass({highlighted:g.value===te}),role:"option","aria-selected":g.value===te,onClick:ue=>U(q)},[n.renderSlot(J.$slots,"default",{item:q},()=>[n.createTextVNode(n.toDisplayString(q[J.valueKey]),1)])],10,Eq))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:n.withCtx(()=>[n.createElementVNode("div",{ref_key:"listboxRef",ref:f,class:n.normalizeClass([n.unref(l).b(),J.$attrs.class]),style:n.normalizeStyle(n.unref(k)),role:"combobox","aria-haspopup":"listbox","aria-expanded":n.unref(S),"aria-owns":n.unref(b),"data-test-name":"autocomplete","data-test-variant":"","data-test-state":""},[n.createVNode(n.unref(hn),n.mergeProps({ref_key:"inputRef",ref:c},n.unref(a),{"model-value":J.modelValue,"prefix-icon":J.prefixIcon,"suffix-icon":J.suffixIcon,"prefix-class":J.prefixClass,"suffix-class":J.suffixClass,"input-class":J.inputClass,"prepend-class":J.prependClass,"append-class":J.appendClass,large:J.large,small:J.small,rounded:J.rounded,onInput:O,onChange:F,onFocus:M,onBlur:z,onClear:B,onKeydown:[Y[0]||(Y[0]=n.withKeys(n.withModifiers(q=>re(g.value-1),["prevent"]),["up"])),Y[1]||(Y[1]=n.withKeys(n.withModifiers(q=>re(g.value+1),["prevent"]),["down"])),n.withKeys(L,["enter"]),n.withKeys(R,["tab"]),n.withKeys(W,["esc"])],onMousedown:I}),n.createSlots({_:2},[J.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(J.$slots,"prepend")]),key:"0"}:void 0,J.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(J.$slots,"append")]),key:"1"}:void 0,J.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(J.$slots,"prefix")]),key:"2"}:void 0,J.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(J.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","prefix-icon","suffix-icon","prefix-class","suffix-class","input-class","prepend-class","append-class","large","small","rounded","onKeydown"])],14,kq)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var _q=Q(Nq,[["__file","autocomplete.vue"]]);const D4=Ne(_q),R4=ne({size:{type:[Number],default:40},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Je},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:K(String),default:"cover"},name:{type:String,default:""},colorId:{type:String,default:""},circle:Boolean,gradient:Boolean}),L4={error:e=>e instanceof Event},Tq=["data-test-variant"],Aq=["src","alt","srcset"],xq={key:2},Mq=n.defineComponent({name:"BAvatar"}),Pq=n.defineComponent({...Mq,props:R4,emits:L4,setup(e,{emit:t}){const o=e,r=G("avatar"),a=n.ref(!1),i=u=>{let f=1,h=0;if(!u)return 1;do f=u.charCodeAt(h)+((f<<5)-f),h++;while(h<u.length);return Math.abs(f)%8},s=n.computed(()=>{if(o.name.length>0){const u=o.name.split(" ");return u.length>1?u.slice(0,2).map(f=>f.charAt(0)).join("").toUpperCase():o.name.slice(0,2).toUpperCase()}return""}),l=n.computed(()=>{const{size:u}=o,f=["#d90429","#023047","#219ebc","#ffbe0b","#fb5607","#3a86ff","#ff006e","#ffbe0b"],h=["linear-gradient(0.9deg, #ff5f6d 0%, #ffc371 100%)","linear-gradient(155.94deg, #fbda61 15.44%, #ff8a1e 78.58%)","linear-gradient(153.79deg, #ffd705 16.49%, #68c121 83.51%)","linear-gradient(153.79deg, #a1ff8b 16.49%, #3f93ff 83.51%)","linear-gradient(338.56deg, #9358f7 14.1%, #10d7e2 85.9%)","linear-gradient(153.79deg, #7570ff 16.49%, #cf36ad 83.51%)","linear-gradient(153.79deg, #ff56da 16.49%, #ff1b1b 83.51%)","linear-gradient(180deg, #ff5959 0%, #ff7a00 100%)"],p=`${f[i(o.colorId||o.name)]}`,m=`${h[i(o.colorId||o.name)]}`;return Se(u)?r.cssVarBlock({size:Ot(u)||"","bg-color":(o.src||o.srcSet)&&!a.value?"transparent":o.gradient?m:p}):void 0}),c=n.computed(()=>({objectFit:o.fit}));n.watch(()=>o.src,()=>a.value=!1);function d(u){a.value=!0,t("error",u)}return(u,f)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).is("circle",u.circle)]),style:n.normalizeStyle(n.unref(l)),"data-test-name":"avatar","data-test-variant":[u.circle&&"circle"].join("-"),"data-test-state":""},[(u.src||u.srcSet)&&!a.value?(n.openBlock(),n.createElementBlock("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:n.normalizeStyle(n.unref(c)),onError:d},null,44,Aq)):u.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass(n.unref(r).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u.icon)))]),_:1},8,["class"])):u.name?(n.openBlock(),n.createElementBlock("span",xq,n.toDisplayString(n.unref(s)),1)):n.renderSlot(u.$slots,"default",{key:3},()=>[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(r).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(hK))))]),_:1},8,["class"])])],14,Tq))}});var vq=Q(Pq,[["__file","avatar.vue"]]);const V4=Ne(vq),F4={visibilityHeight:{type:Number,default:240},target:{type:String,default:""},right:{type:Number,default:24},bottom:{type:Number,default:24}},z4={click:e=>e instanceof MouseEvent},Oq=["data-test-variant","onClick"],H4="BBacktop",Iq=n.defineComponent({name:H4}),Dq=n.defineComponent({...Iq,props:F4,emits:z4,setup(e,{emit:t}){const o=e,r=G("backtop"),a=n.shallowRef(),i=n.shallowRef(),s=n.ref(!1),l=n.computed(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`})),c=()=>{if(!a.value)return;const h=Date.now(),p=a.value.scrollTop,m=()=>{if(!a.value)return;const g=(Date.now()-h)/500;g<1?(a.value.scrollTop=p*(1-Qj(g)),requestAnimationFrame(m)):a.value.scrollTop=0};requestAnimationFrame(m)},d=()=>{a.value&&(s.value=a.value.scrollTop>=o.visibilityHeight)},u=h=>{c(),t("click",h)},f=oC(d,300);return Xe(i,"scroll",f),n.onMounted(()=>{i.value=document,a.value=document.documentElement,o.target&&(a.value=document.querySelector(o.target)??void 0,a.value||vt(H4,`target is not existed: ${o.target}`),i.value=a.value)}),(h,p)=>(n.openBlock(),n.createBlock(n.Transition,{name:`${n.unref(r).namespace.value}-fade-in`},{default:n.withCtx(()=>[s.value?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(n.unref(l)),class:n.normalizeClass([n.unref(r).b(),n.unref(r).is("custom",Boolean(h.$slots.default))]),"data-test-name":"backtop","data-test-variant":[Boolean(h.$slots.default)&&"custom"].join("-"),"data-test-state":"",onClick:n.withModifiers(u,["stop"])},[n.renderSlot(h.$slots,"default",{},()=>[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(r).e("icon"))},{default:n.withCtx(()=>[n.createVNode(n.unref(gC))]),_:1},8,["class"])])],14,Oq)):n.createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Rq=Q(Dq,[["__file","backtop.vue"]]);const W4=Ne(Rq),K4=ne({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},contentClass:{type:String,default:""}}),Lq=["textContent"],Vq=n.defineComponent({name:"BBadge"}),Fq=n.defineComponent({...Vq,props:K4,setup(e,{expose:t}){const o=e,r=G("badge"),a=n.computed(()=>o.isDot?"":Se(o.value)&&Se(o.max)?o.max<o.value?`${o.max}+`:`${o.value}`:`${o.value}`);return t({content:a}),(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(r).b()),"data-test-name":"badge","data-test-variant":"","data-test-state":""},[n.renderSlot(i.$slots,"default"),n.createVNode(n.Transition,{name:`${n.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("sup",{class:n.normalizeClass([n.unref(r).e("content"),n.unref(r).em("content",i.type),n.unref(r).is("fixed",!!i.$slots.default),n.unref(r).is("dot",i.isDot),i.contentClass]),textContent:n.toDisplayString(n.unref(a))},null,10,Lq),[[n.vShow,!i.hidden&&(n.unref(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var zq=Q(Fq,[["__file","badge.vue"]]);const Pp=Ne(zq),j4=ne({separator:{type:String,default:"/"},separatorIcon:{type:Je,default:""}}),Hq=n.defineComponent({name:"BBreadcrumb"}),Wq=n.defineComponent({...Hq,props:j4,setup(e){const t=e,o=G("breadcrumb"),r=n.ref();return n.provide(zh,t),n.onMounted(()=>{const a=r.value.querySelectorAll(`.${o.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"breadcrumb",ref:r,class:n.normalizeClass(n.unref(o).b()),"aria-label":"Breadcrumb",role:"navigation","data-test-name":"breadcrumb","data-test-variant":"","data-test-state":""},[n.renderSlot(a.$slots,"default")],2))}});var Kq=Q(Wq,[["__file","breadcrumb.vue"]]);const U4=ne({to:{type:K([String,Object]),default:""},replace:{type:Boolean,default:!1}}),jq=n.defineComponent({name:"BBreadcrumbItem"}),Uq=n.defineComponent({...jq,props:U4,setup(e){const t=e,o=n.getCurrentInstance(),r=n.inject(zh,void 0),a=G("breadcrumb"),{separator:i,separatorIcon:s}=n.toRefs(r),l=o.appContext.config.globalProperties.$router,c=n.ref(),d=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(u,f)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(a).e("item")),"data-test-name":"breadcrumb-item","data-test-variant":"","data-test-state":""},[n.createElementVNode("span",{ref_key:"link",ref:c,class:n.normalizeClass([n.unref(a).e("inner"),n.unref(a).is("link",!!u.to)]),role:"link",onClick:d},[n.renderSlot(u.$slots,"default")],2),n.unref(s)?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(a).e("separator")),size:10},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(s))))]),_:1},8,["class"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(n.unref(a).e("separator")),role:"presentation"},n.toDisplayString(n.unref(i)),3))],2))}});var G4=Q(Uq,[["__file","breadcrumb-item.vue"]]);const Y4=Ne(Kq,{BreadcrumbItem:G4}),q4=Ge(G4),vp=["default","primary","secondary","ghost","danger","semi-danger",""],Z4=["button","submit","reset"],hd=ne({size:It,disabled:Boolean,type:{type:String,values:vp,default:""},prefixIcon:{type:Je,default:""},suffixIcon:{type:Je,default:""},icon:{type:Je,default:""},nativeType:{type:String,values:Z4,default:"button"},loading:Boolean,loadingIcon:{type:Je,default:()=>Or},dark:Boolean,primary:Boolean,secondary:Boolean,ghost:Boolean,danger:Boolean,semiDanger:Boolean,rounded:Boolean,autofocus:Boolean,xlarge:Boolean,large:Boolean,small:Boolean,xsmall:Boolean,xxsmall:Boolean,tag:{type:String,default:"button"}}),X4={click:e=>e instanceof MouseEvent},Gq=n.defineComponent({name:"BButton"}),Yq=n.defineComponent({...Gq,props:hd,emits:X4,setup(e,{expose:t,emit:o}){const r=e,a=n.inject(Hh,void 0),i=G("button"),s=At(n.computed(()=>r.xlarge&&"xlarge"||r.large&&"large"||r.small&&"small"||r.xsmall&&"xsmall"||r.xxsmall&&"xxsmall"||r.size||a?.size)),l=ho(),c=n.ref(),d=n.computed(()=>r.primary&&"primary"||r.secondary&&"secondary"||r.ghost&&"ghost"||r.danger&&"danger"||r.semiDanger&&"semi-danger"||r.type||a?.type||""),u=n.computed(()=>r.rounded||a?.rounded),f=h=>{o("click",h)};return t({ref:c,size:s,type:d,disabled:l,rounded:u}),(h,p)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),{ref_key:"_ref",ref:c,class:n.normalizeClass([n.unref(i).b(),n.unref(i).m(n.unref(d)),n.unref(i).m(n.unref(s)),n.unref(i).is("disabled",n.unref(l)),n.unref(i).is("loading",h.loading),n.unref(i).is("rounded",n.unref(u)),n.unref(i).is("icon",Boolean(h.icon||h.$slots.icon))]),"aria-disabled":n.unref(l)||h.loading,disabled:n.unref(l)||h.loading,autofocus:h.autofocus,type:h.nativeType,"data-test-name":Boolean(h.icon||h.$slots.icon)?"button-icon":"button","data-test-variant":n.unref(d),"data-test-state":"",onClick:f},{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass(n.unref(i).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):n.createCommentVNode("v-if",!0),h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[h.prefixIcon||h.$slots.prefixIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0},{default:n.withCtx(()=>[h.prefixIcon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.prefixIcon),{key:0})):n.renderSlot(h.$slots,"prefixIcon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,[n.renderSlot(h.$slots,"default")]),h.suffixIcon||h.$slots.suffixIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:1},{default:n.withCtx(()=>[h.suffixIcon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.suffixIcon),{key:0})):n.renderSlot(h.$slots,"suffixIcon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0)],64))]),_:3},8,["class","aria-disabled","disabled","autofocus","type","data-test-name","data-test-variant"]))}});var qq=Q(Yq,[["__file","button.vue"]]);const Zq={size:{...hd.size,default:"small"},type:{...hd.type,default:"ghost"},rounded:Boolean,compact:Boolean},Xq=n.defineComponent({name:"BButtonGroup"}),Jq=n.defineComponent({...Xq,props:Zq,setup(e){const t=e;n.provide(Hh,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type"),rounded:n.toRef(t,"rounded")}));const o=G("button");return(r,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(o).b("group"),n.unref(o).bm("group",r.size),n.unref(o).is("rounded",r.rounded),n.unref(o).is("compact",r.compact)]),"data-test-name":"button-group","data-test-variant":"","data-test-state":""},[n.renderSlot(r.$slots,"default")],2))}});var J4=Q(Jq,[["__file","button-group.vue"]]);const ve=Ne(qq,{ButtonGroup:J4}),Op=Ge(J4);var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Q4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){var o=1e3,r=6e4,a=36e5,i="millisecond",s="second",l="minute",c="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var O=["th","st","nd","rd"],I=v%100;return"["+v+(O[(I-20)%10]||O[I]||O[0])+"]"}},C=function(v,O,I){var F=String(v);return!F||F.length>=O?v:""+Array(O+1-F.length).join(I)+v},b={s:C,z:function(v){var O=-v.utcOffset(),I=Math.abs(O),F=Math.floor(I/60),M=I%60;return(O<=0?"+":"-")+C(F,2,"0")+":"+C(M,2,"0")},m:function v(O,I){if(O.date()<I.date())return-v(I,O);var F=12*(I.year()-O.year())+(I.month()-O.month()),M=O.clone().add(F,f),z=I-M<0,B=O.clone().add(F+(z?-1:1),f);return+(-(F+(I-M)/(z?M-B:B-M))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:f,y:p,w:u,d,D:m,h:c,m:l,s,ms:i,Q:h}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},k="en",S={};S[k]=$;var E=function(v){return v instanceof P},N=function v(O,I,F){var M;if(!O)return k;if(typeof O=="string"){var z=O.toLowerCase();S[z]&&(M=z),I&&(S[z]=I,M=z);var B=O.split("-");if(!M&&B.length>1)return v(B[0])}else{var L=O.name;S[L]=O,M=L}return!F&&M&&(k=M),M||!F&&k},_=function(v,O){if(E(v))return v.clone();var I=typeof O=="object"?O:{};return I.date=v,I.args=arguments,new P(I)},T=b;T.l=N,T.i=E,T.w=function(v,O){return _(v,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var P=function(){function v(I){this.$L=N(I.locale,null,!0),this.parse(I)}var O=v.prototype;return O.parse=function(I){this.$d=function(F){var M=F.date,z=F.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var B=M.match(y);if(B){var L=B[2]-1||0,W=(B[7]||"0").substring(0,3);return z?new Date(Date.UTC(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,W)):new Date(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,W)}}return new Date(M)}(I),this.$x=I.x||{},this.init()},O.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},O.$utils=function(){return T},O.isValid=function(){return this.$d.toString()!==g},O.isSame=function(I,F){var M=_(I);return this.startOf(F)<=M&&M<=this.endOf(F)},O.isAfter=function(I,F){return _(I)<this.startOf(F)},O.isBefore=function(I,F){return this.endOf(F)<_(I)},O.$g=function(I,F,M){return T.u(I)?this[F]:this.set(M,I)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(I,F){var M=this,z=!!T.u(F)||F,B=T.p(I),L=function(Y,q){var te=T.w(M.$u?Date.UTC(M.$y,q,Y):new Date(M.$y,q,Y),M);return z?te:te.endOf(d)},W=function(Y,q){return T.w(M.toDate()[Y].apply(M.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(q)),M)},R=this.$W,H=this.$M,j=this.$D,U="set"+(this.$u?"UTC":"");switch(B){case p:return z?L(1,0):L(31,11);case f:return z?L(1,H):L(0,H+1);case u:var re=this.$locale().weekStart||0,J=(R<re?R+7:R)-re;return L(z?j-J:j+(6-J),H);case d:case m:return W(U+"Hours",0);case c:return W(U+"Minutes",1);case l:return W(U+"Seconds",2);case s:return W(U+"Milliseconds",3);default:return this.clone()}},O.endOf=function(I){return this.startOf(I,!1)},O.$set=function(I,F){var M,z=T.p(I),B="set"+(this.$u?"UTC":""),L=(M={},M[d]=B+"Date",M[m]=B+"Date",M[f]=B+"Month",M[p]=B+"FullYear",M[c]=B+"Hours",M[l]=B+"Minutes",M[s]=B+"Seconds",M[i]=B+"Milliseconds",M)[z],W=z===d?this.$D+(F-this.$W):F;if(z===f||z===p){var R=this.clone().set(m,1);R.$d[L](W),R.init(),this.$d=R.set(m,Math.min(this.$D,R.daysInMonth())).$d}else L&&this.$d[L](W);return this.init(),this},O.set=function(I,F){return this.clone().$set(I,F)},O.get=function(I){return this[T.p(I)]()},O.add=function(I,F){var M,z=this;I=Number(I);var B=T.p(F),L=function(H){var j=_(z);return T.w(j.date(j.date()+Math.round(H*I)),z)};if(B===f)return this.set(f,this.$M+I);if(B===p)return this.set(p,this.$y+I);if(B===d)return L(1);if(B===u)return L(7);var W=(M={},M[l]=r,M[c]=a,M[s]=o,M)[B]||1,R=this.$d.getTime()+I*W;return T.w(R,this)},O.subtract=function(I,F){return this.add(-1*I,F)},O.format=function(I){var F=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var z=I||"YYYY-MM-DDTHH:mm:ssZ",B=T.z(this),L=this.$H,W=this.$m,R=this.$M,H=M.weekdays,j=M.months,U=function(q,te,ue,ge){return q&&(q[te]||q(F,z))||ue[te].slice(0,ge)},re=function(q){return T.s(L%12||12,q,"0")},J=M.meridiem||function(q,te,ue){var ge=q<12?"AM":"PM";return ue?ge.toLowerCase():ge},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:T.s(R+1,2,"0"),MMM:U(M.monthsShort,R,j,3),MMMM:U(j,R),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:U(M.weekdaysMin,this.$W,H,2),ddd:U(M.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(L),HH:T.s(L,2,"0"),h:re(1),hh:re(2),a:J(L,W,!0),A:J(L,W,!1),m:String(W),mm:T.s(W,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:B};return z.replace(w,function(q,te){return te||Y[q]||B.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(I,F,M){var z,B=T.p(F),L=_(I),W=(L.utcOffset()-this.utcOffset())*r,R=this-L,H=T.m(this,L);return H=(z={},z[p]=H/12,z[f]=H,z[h]=H/3,z[u]=(R-W)/6048e5,z[d]=(R-W)/864e5,z[c]=R/a,z[l]=R/r,z[s]=R/o,z)[B]||R,M?H:T.a(H)},O.daysInMonth=function(){return this.endOf(f).$D},O.$locale=function(){return S[this.$L]},O.locale=function(I,F){if(!I)return this.$L;var M=this.clone(),z=N(I,F,!0);return z&&(M.$L=z),M},O.clone=function(){return T.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},v}(),x=P.prototype;return _.prototype=x,[["$ms",i],["$s",s],["$m",l],["$H",c],["$W",d],["$M",f],["$y",p],["$D",m]].forEach(function(v){x[v[1]]=function(O){return this.$g(O,v[0],v[1])}}),_.extend=function(v,O){return v.$i||(v(O,P,_),v.$i=!0),_},_.locale=N,_.isDayjs=E,_.unix=function(v){return _(1e3*v)},_.en=S[k],_.Ls=S,_.p={},_})})(Q4);var xe=Q4.exports,e8={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r,a){var i=r.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,h,p,m,g){var y=f.name?f:f.$locale(),w=s(y[h]),$=s(y[p]),C=w||$.map(function(k){return k.slice(0,m)});if(!g)return C;var b=y.weekStart;return C.map(function(k,S){return C[(S+(b||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,y){return g||y.slice(1)})}(f.formats[h.toUpperCase()])},u=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):l(f,"months")},monthsShort:function(h){return h?h.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):l(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return u.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return l(c(),"months")},a.monthsShort=function(){return l(c(),"monthsShort","months",3)},a.weekdays=function(f){return l(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}})})(e8);var t8=e8.exports,n8={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(y){this[g]=+y}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var w=y.match(/([+-]|\d\d)/g),$=60*w[1]+(+w[2]||0);return $===0?0:w[0]==="+"?-$:$}(g)}],f=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(g,y){var w,$=l.meridiem;if($){for(var C=1;C<=24;C+=1)if(g.indexOf($(C,0,y))>-1){w=C>12;break}}else w=g===(y?"pm":"PM");return w},p={A:[s,function(g){this.afternoon=h(g,!1)}],a:[s,function(g){this.afternoon=h(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[s,function(g){var y=l.ordinal,w=g.match(/\d+/);if(this.day=w[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===g&&(this.day=$)}],M:[i,d("month")],MM:[a,d("month")],MMM:[s,function(g){var y=f("months"),w=(f("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[s,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=c(g)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function m(g){var y,w;y=g,w=l&&l.formats;for(var $=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,T,P){var x=P&&P.toUpperCase();return T||w[P]||o[P]||w[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,O,I){return O||I.slice(1)})})).match(r),C=$.length,b=0;b<C;b+=1){var k=$[b],S=p[k],E=S&&S[0],N=S&&S[1];$[b]=N?{regex:E,parser:N}:k.replace(/^\[|\]$/g,"")}return function(_){for(var T={},P=0,x=0;P<C;P+=1){var v=$[P];if(typeof v=="string")x+=v.length;else{var O=v.regex,I=v.parser,F=_.slice(x),M=O.exec(F)[0];I.call(T,M),_=_.replace(M,"")}}return function(z){var B=z.afternoon;if(B!==void 0){var L=z.hours;B?L<12&&(z.hours+=12):L===12&&(z.hours=0),delete z.afternoon}}(T),T}}return function(g,y,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var $=y.prototype,C=$.parse;$.parse=function(b){var k=b.date,S=b.utc,E=b.args;this.$u=S;var N=E[1];if(typeof N=="string"){var _=E[2]===!0,T=E[3]===!0,P=_||T,x=E[2];T&&(x=E[2]),l=this.$locale(),!_&&x&&(l=w.Ls[x]),this.$d=function(F,M,z){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*F);var B=m(M)(F),L=B.year,W=B.month,R=B.day,H=B.hours,j=B.minutes,U=B.seconds,re=B.milliseconds,J=B.zone,Y=new Date,q=R||(L||W?1:Y.getDate()),te=L||Y.getFullYear(),ue=0;L&&!W||(ue=W>0?W-1:Y.getMonth());var ge=H||0,Ee=j||0,Te=U||0,ye=re||0;return J?new Date(Date.UTC(te,ue,q,ge,Ee,Te,ye+60*J.offset*1e3)):z?new Date(Date.UTC(te,ue,q,ge,Ee,Te,ye)):new Date(te,ue,q,ge,Ee,Te,ye)}catch{return new Date("")}}(k,N,S),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),P&&k!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var v=N.length,O=1;O<=v;O+=1){E[1]=N[O-1];var I=w.apply(this,E);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}O===v&&(this.$d=new Date(""))}else C.call(this,b)}}})})(n8);var Ip=n8.exports;const Dp=["hours","minutes","seconds"],pd="HH:mm:ss",Sa="YYYY-MM-DD",o8={date:Sa,dates:Sa,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Sa} ${pd}`,monthrange:"YYYY-MM",daterange:Sa,datetimerange:`${Sa} ${pd}`},md=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],fr=e=>Array.from(Array.from({length:e}).keys()),r8=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Rp=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Lp=function(e,t){const o=Ps(e),r=Ps(t);return o&&r?e.getTime()===t.getTime():!o&&!r?e===t:!1},Vp=function(e,t){const o=Me(e),r=Me(t);return o&&r?e.length!==t.length?!1:e.every((a,i)=>Lp(a,t[i])):!o&&!r?Lp(e,t):!1},Fp=function(e,t,o){const r=Kn(t)||t==="x"?xe(e).locale(o):xe(e,t).locale(o);return r.isValid()?r:void 0},zp=function(e,t,o){return Kn(t)?e:t==="x"?+e:xe(e).locale(o).format(t)},gd=(e,t)=>{const o=[],r=t?.();for(let a=0;a<e;a++)o.push(r?.includes(a)??!1);return o},a8=ne({disabledHours:{type:K(Function)},disabledMinutes:{type:K(Function)},disabledSeconds:{type:K(Function)}}),i8=ne({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),yd=ne({id:{type:K([Array,String])},name:{type:K([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:K([String,Object]),default:fi},editable:{type:Boolean,default:!0},suffixIcon:{type:K([String,Object]),default:""},size:It,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:K(Object),default:()=>({})},modelValue:{type:K([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"\u2014"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:K([Date,Array])},defaultTime:{type:K([Date,Array])},isRange:{type:Boolean,default:!1},...a8,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:K([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),Qq=["id","name","placeholder","value","disabled","readonly"],eZ=["id","name","placeholder","value","disabled","readonly"],tZ=n.defineComponent({name:"Picker"}),nZ=n.defineComponent({...tZ,props:yd,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:o}){const r=e,{lang:a}=He(),i=G("date"),s=G("input"),l=G("range"),c=n.inject("BPopperOptions",{}),d=n.ref(),u=n.ref(),f=n.ref(!1),h=n.ref(!1),p=n.ref(null);let m=!1,g=!1;n.watch(f,V=>{V?p.value=r.modelValue:(ye.value=null,n.nextTick(()=>{y(r.modelValue)}))});const y=(V,Z)=>{(Z||!Vp(V,p.value))&&o("change",V)},w=V=>{if(!Vp(r.modelValue,V)){let Z;Me(V)?Z=V.map(he=>zp(he,r.valueFormat,a.value)):V&&(Z=zp(V,r.valueFormat,a.value)),o("update:modelValue",V&&Z,a.value)}},$=V=>{o("keydown",V)},C=n.computed(()=>{if(u.value){const V=ue.value?u.value:u.value.$el;return Array.from(V.querySelectorAll("input"))}return[]}),b=(V,Z,he)=>{const be=C.value;!be.length||(!he||he==="min"?(be[0].setSelectionRange(V,Z),be[0].focus()):he==="max"&&(be[1].setSelectionRange(V,Z),be[1].focus()))},k=()=>{v(!0,!0),n.nextTick(()=>{g=!1})},S=(V="",Z=!1)=>{Z||k(),f.value=Z;let he;Me(V)?he=V.map(be=>be.toDate()):he=V&&V.toDate(),ye.value=null,w(he)},E=()=>{h.value=!0},N=()=>{o("visible-change",!0)},_=V=>{V?.key===de.esc&&v(!0,!0)},T=()=>{h.value=!1,g=!1,o("visible-change",!1)},P=()=>{f.value=!0},x=()=>{f.value=!1},v=(V=!0,Z=!1)=>{g=Z;const[he,be]=n.unref(C);let Ze=he;!V&&ue.value&&(Ze=be),Ze&&Ze.focus()},O=V=>{r.readonly||M.value||f.value||g||(f.value=xt(V?.relatedTarget),o("focus",V))};let I;const F=V=>{const Z=async()=>{setTimeout(()=>{I===Z&&(!(d.value?.isFocusInsideContent()&&!m)&&C.value.filter(he=>he.contains(document.activeElement)).length===0&&(oe(),f.value=!1,o("blur",V)),m=!1)},0)};I=Z,Z()},M=n.computed(()=>r.disabled),z=n.computed(()=>{let V;if(re.value?$e.value.getDefaultValue&&(V=$e.value.getDefaultValue()):Me(r.modelValue)?V=r.modelValue.map(Z=>Fp(Z,r.valueFormat,a.value)):V=Fp(r.modelValue,r.valueFormat,a.value),$e.value.getRangeAvailableTime){const Z=$e.value.getRangeAvailableTime(V);Bn(Z,V)||(V=Z,w(Me(V)?V.map(he=>he.toDate()):V.toDate()))}return Me(V)&&V.some(Z=>!Z)&&(V=[]),V}),B=n.computed(()=>{if(!$e.value.panelReady)return"";const V=me(z.value);return Me(ye.value)?[ye.value[0]||V&&V[0]||"",ye.value[1]||V&&V[1]||""]:ye.value!==null?ye.value:!W.value&&re.value||!f.value&&re.value?"":V?R.value?V.join(", "):V:""}),L=n.computed(()=>r.type.includes("time")),W=n.computed(()=>r.type.startsWith("time")),R=n.computed(()=>r.type==="dates"),H=n.computed(()=>r.suffixIcon||(L.value?bC:yH)),j=n.ref(!1),U=V=>{r.readonly||M.value||j.value&&(V.stopPropagation(),k(),w(null),y(null,!0),j.value=!1,f.value=!1,$e.value.handleClear&&$e.value.handleClear())},re=n.computed(()=>{const{modelValue:V}=r;return!V||Me(V)&&!V.filter(Boolean).length}),J=async()=>{r.readonly||M.value||(f.value=!0)},Y=()=>{r.readonly||M.value||!re.value&&r.clearable&&(j.value=!0)},q=()=>{j.value=!1},te=V=>{(V.touches[0].target?.tagName!=="INPUT"||C.value.includes(document.activeElement))&&(f.value=!0)},ue=n.computed(()=>r.type.includes("range")),ge=At(),Ee=n.computed(()=>n.unref(d)?.popperRef?.contentRef),Te=n.computed(()=>n.unref(ue)?n.unref(u):n.unref(u)?.$el);_h(Te,V=>{const Z=n.unref(Ee),he=n.unref(Te);Z&&(V.target===Z||V.composedPath().includes(Z))||V.target===he||V.composedPath().includes(he)||(f.value=!1)});const ye=n.ref(null),oe=()=>{if(ye.value){const V=se(B.value);V&&ee(V)&&(w(Me(V)?V.map(Z=>Z.toDate()):V.toDate()),ye.value=null)}ye.value===""&&(w(null),y(null),ye.value=null)},se=V=>V?$e.value.parseUserInput(V):null,me=V=>V?$e.value.formatToString(V):null,ee=V=>$e.value.isValidValue(V),le=async V=>{if(r.readonly||M.value)return;const{code:Z}=V;if($(V),Z===de.esc){f.value===!0&&(f.value=!1,V.preventDefault(),V.stopPropagation());return}if(Z===de.down&&($e.value.handleFocusPicker&&(V.preventDefault(),V.stopPropagation()),f.value===!1&&(f.value=!0,await n.nextTick()),$e.value.handleFocusPicker)){$e.value.handleFocusPicker();return}if(Z===de.tab){m=!0;return}if(Z===de.enter||Z===de.numpadEnter){(ye.value===null||ye.value===""||ee(se(B.value)))&&(oe(),f.value=!1),V.stopPropagation();return}if(ye.value){V.stopPropagation();return}$e.value.handleKeydownInput&&$e.value.handleKeydownInput(V)},Ce=V=>{ye.value=V,f.value||(f.value=!0)},X=V=>{const Z=V.target;ye.value?ye.value=[Z.value,ye.value[1]]:ye.value=[Z.value,null]},ie=V=>{const Z=V.target;ye.value?ye.value=[ye.value[0],Z.value]:ye.value=[null,Z.value]},we=()=>{const V=ye.value,Z=se(V&&V[0]),he=n.unref(z);if(Z&&Z.isValid()){ye.value=[me(Z),B.value?.[1]||null];const be=[Z,he&&(he[1]||null)];ee(be)&&(w(be),ye.value=null)}},fe=()=>{const V=n.unref(ye),Z=se(V&&V[1]),he=n.unref(z);if(Z&&Z.isValid()){ye.value=[n.unref(B)?.[0]||null,me(Z)];const be=[he&&he[0],Z];ee(be)&&(w(be),ye.value=null)}},$e=n.ref({}),ce=V=>{$e.value[V[0]]=V[1],$e.value.panelReady=!0},ke=V=>{o("calendar-change",V)},Ae=(V,Z,he)=>{o("panel-change",V,Z,he)};return n.provide("EP_PICKER_BASE",{props:r}),t({focus:v,handleFocusInput:O,handleBlurInput:F,handleOpen:P,handleClose:x,onPick:S}),(V,Z)=>(n.openBlock(),n.createBlock(n.unref(Xt),n.mergeProps({ref_key:"refPopper",ref:d,visible:f.value,effect:"light",pure:"",trigger:"click"},V.$attrs,{role:"dialog",teleported:"",transition:`${n.unref(i).namespace.value}-zoom-in-top`,"popper-class":[`${n.unref(i).namespace.value}-picker__popper`,V.popperClass],"popper-options":n.unref(c),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:E,onShow:N,onHide:T}),{default:n.withCtx(()=>[n.unref(ue)?(n.openBlock(),n.createElementBlock("div",{key:1,ref_key:"inputRef",ref:u,class:n.normalizeClass([n.unref(i).b("editor"),n.unref(i).bm("editor",V.type),n.unref(s).e("wrapper"),n.unref(i).is("disabled",n.unref(M)),n.unref(i).is("active",f.value),n.unref(l).b("editor"),n.unref(ge)?n.unref(l).bm("editor",n.unref(ge)):"",V.$attrs.class]),style:n.normalizeStyle(V.$attrs.style),onClick:O,onMouseenter:Y,onMouseleave:q,onTouchstart:te,onKeydown:le},[n.createElementVNode("input",{id:V.id&&V.id[0],autocomplete:"off",name:V.name&&V.name[0],placeholder:V.startPlaceholder,value:n.unref(B)&&n.unref(B)[0],disabled:n.unref(M),readonly:!V.editable||V.readonly,class:n.normalizeClass(n.unref(l).b("input")),onMousedown:J,onInput:X,onChange:we,onFocus:O,onBlur:F},null,42,Qq),n.renderSlot(V.$slots,"range-separator",{},()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(l).b("separator"))},n.toDisplayString(V.rangeSeparator),3)]),n.createElementVNode("input",{id:V.id&&V.id[1],autocomplete:"off",name:V.name&&V.name[1],placeholder:V.endPlaceholder,value:n.unref(B)&&n.unref(B)[1],disabled:n.unref(M),readonly:!V.editable||V.readonly,class:n.normalizeClass(n.unref(l).b("input")),onMousedown:J,onFocus:O,onBlur:F,onInput:ie,onChange:fe},null,42,eZ),V.clearIcon&&j.value?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(s).e("icon"),n.unref(l).e("close-icon")]),onClick:U},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(V.clearIcon)))]),_:1},8,["class"])):n.unref(H)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass([n.unref(s).e("icon"),n.unref(l).e("icon")]),onMousedown:n.withModifiers(J,["prevent"]),onTouchstart:te},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(H))))]),_:1},8,["class","onMousedown"])):n.createCommentVNode("v-if",!0)],38)):(n.openBlock(),n.createBlock(n.unref(hn),{key:0,id:V.id,ref_key:"inputRef",ref:u,"container-role":"combobox","model-value":n.unref(B),name:V.name,size:n.unref(ge),disabled:n.unref(M),placeholder:V.placeholder,class:n.normalizeClass([n.unref(i).b("editor"),n.unref(i).bm("editor",V.type),n.unref(i).is("focus",f.value),V.$attrs.class]),style:n.normalizeStyle(V.$attrs.style),readonly:!V.editable||V.readonly||n.unref(R)||V.type==="week",label:V.label,tabindex:V.tabindex,"suffix-class":"is-action",onInput:Ce,onFocus:O,onBlur:F,onKeydown:le,onChange:oe,onMousedown:J,onMouseenter:Y,onMouseleave:q,onTouchstart:te,onClick:Z[0]||(Z[0]=n.withModifiers(()=>{},["stop"]))},{suffix:n.withCtx(()=>[j.value&&V.clearIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(`${n.unref(s).e("icon")} clear-icon`),onClick:n.withModifiers(U,["stop"])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(V.clearIcon)))]),_:1},8,["class","onClick"])):n.unref(H)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass(n.unref(s).e("icon")),onClick:n.withModifiers(J,["stop"]),onTouchstart:te},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(H))))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex"]))]),content:n.withCtx(()=>[n.renderSlot(V.$slots,"default",{visible:f.value,actualVisible:h.value,parsedValue:n.unref(z),format:V.format,unlinkPanels:V.unlinkPanels,type:V.type,defaultValue:V.defaultValue,onPick:S,onSelectRange:b,onSetPickerOption:ce,onCalendarChange:ke,onPanelChange:Ae,onKeydown:_,onMousedown:Z[1]||(Z[1]=n.withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Hp=Q(nZ,[["__file","picker.vue"]]);const oZ=ne({...i8,datetimeRole:String,parsedValue:{type:K(Object)},hideActions:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}}),s8=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:o})=>{const r=(s,l,c,d)=>{const u={hour:e,minute:t,second:o};let f=s;return["hour","minute","second"].forEach(h=>{if(u[h]){let p;const m=u[h];switch(h){case"minute":{p=m(f.hour(),l,d);break}case"second":{p=m(f.hour(),f.minute(),l,d);break}default:{p=m(l,d);break}}if(p?.length&&!p.includes(f[h]())){const g=c?0:p.length-1;f=f[h](p[g])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([s,l])=>{a[s]=l}}},Wp=e=>{const t=(r,a)=>r||a,o=r=>r!==!0;return e.map(t).filter(o)},l8=(e,t,o)=>({getHoursList:(s,l)=>gd(24,e&&(()=>e?.(s,l))),getMinutesList:(s,l,c)=>gd(60,t&&(()=>t?.(s,l,c))),getSecondsList:(s,l,c,d)=>gd(60,o&&(()=>o?.(s,l,c,d)))}),c8=(e,t,o)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=l8(e,t,o);return{getAvailableHours:(d,u)=>Wp(r(d,u)),getAvailableMinutes:(d,u,f)=>Wp(a(d,u,f)),getAvailableSeconds:(d,u,f,h)=>Wp(i(d,u,f,h))}},d8=e=>{const t=n.ref(e.parsedValue);return n.watch(()=>e.visible,o=>{o||(t.value=e.parsedValue)}),t},Hr=new Map;let u8;Re&&(document.addEventListener("mousedown",e=>u8=e),document.addEventListener("mouseup",e=>{for(const t of Hr.values())for(const{documentHandler:o}of t)o(e,u8)}));function f8(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:ar(t.arg)&&o.push(t.arg),function(r,a){const i=t.instance.popperRef,s=r.target,l=a?.target,c=!t||!t.instance,d=!s||!l,u=e.contains(s)||e.contains(l),f=e===s,h=o.length&&o.some(m=>m?.contains(s))||o.length&&o.includes(l),p=i&&(i.contains(s)||i.contains(l));c||d||u||f||h||p||t.value(r,a)}}const Bi={beforeMount(e,t){Hr.has(e)||Hr.set(e,[]),Hr.get(e).push({documentHandler:f8(e,t),bindingFn:t.value})},updated(e,t){Hr.has(e)||Hr.set(e,[]);const o=Hr.get(e),r=o.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:f8(e,t),bindingFn:t.value};r>=0?o.splice(r,1,a):o.push(a)},unmounted(e){Hr.delete(e)}},rZ=100,aZ=600,Ea={beforeMount(e,t){const o=t.value,{interval:r=rZ,delay:a=aZ}=nt(o)?{}:o;let i,s;const l=()=>nt(o)?o():o.handler(),c=()=>{s&&(clearTimeout(s),s=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",d=>{d.button===0&&(c(),l(),document.addEventListener("mouseup",()=>c(),{once:!0}),s=setTimeout(()=>{i=setInterval(()=>{l()},r)},a))})}},Kp="_trap-focus-children",Ba=[],h8=e=>{if(Ba.length===0)return;const t=Ba[Ba.length-1][Kp];if(t.length>0&&e.code===de.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const o=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&o&&(e.preventDefault(),t[t.length-1].focus()),a&&!o&&(e.preventDefault(),t[0].focus())}},p8={beforeMount(e){e[Kp]=qb(e),Ba.push(e),Ba.length<=1&&document.addEventListener("keydown",h8)},updated(e){n.nextTick(()=>{e[Kp]=qb(e)})},unmounted(){Ba.shift(),Ba.length===0&&document.removeEventListener("keydown",h8)}};var m8=!1,Na,jp,Up,bd,Cd,g8,wd,Gp,Yp,qp,y8,Zp,Xp,b8,C8;function gn(){if(!m8){m8=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Zp=/\b(iPhone|iP[ao]d)/.exec(e),Xp=/\b(iP[ao]d)/.exec(e),qp=/Android/i.exec(e),b8=/FBAN\/\w+;/i.exec(e),C8=/Mobile/i.exec(e),y8=!!/Win64/.exec(e),t){Na=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Na&&document&&document.documentMode&&(Na=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);g8=r?parseFloat(r[1])+4:Na,jp=t[2]?parseFloat(t[2]):NaN,Up=t[3]?parseFloat(t[3]):NaN,bd=t[4]?parseFloat(t[4]):NaN,bd?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Cd=t&&t[1]?parseFloat(t[1]):NaN):Cd=NaN}else Na=jp=Up=Cd=bd=NaN;if(o){if(o[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);wd=a?parseFloat(a[1].replace("_",".")):!0}else wd=!1;Gp=!!o[2],Yp=!!o[3]}else wd=Gp=Yp=!1}}var Jp={ie:function(){return gn()||Na},ieCompatibilityMode:function(){return gn()||g8>Na},ie64:function(){return Jp.ie()&&y8},firefox:function(){return gn()||jp},opera:function(){return gn()||Up},webkit:function(){return gn()||bd},safari:function(){return Jp.webkit()},chrome:function(){return gn()||Cd},windows:function(){return gn()||Gp},osx:function(){return gn()||wd},linux:function(){return gn()||Yp},iphone:function(){return gn()||Zp},mobile:function(){return gn()||Zp||Xp||qp||C8},nativeApp:function(){return gn()||b8},android:function(){return gn()||qp},ipad:function(){return gn()||Xp}},iZ=Jp,$d=!!(typeof window<"u"&&window.document&&window.document.createElement),sZ={canUseDOM:$d,canUseWorkers:typeof Worker<"u",canUseEventListeners:$d&&!!(window.addEventListener||window.attachEvent),canUseViewport:$d&&!!window.screen,isInWorker:!$d},w8=sZ,$8;w8.canUseDOM&&($8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function lZ(e,t){if(!w8.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var a=document.createElement("div");a.setAttribute(o,"return;"),r=typeof a[o]=="function"}return!r&&$8&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var cZ=lZ,k8=10,S8=40,E8=800;function B8(e){var t=0,o=0,r=0,a=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*k8,a=o*k8,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=S8,a*=S8):(r*=E8,a*=E8)),r&&!t&&(t=r<1?-1:1),a&&!o&&(o=a<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:a}}B8.getEventType=function(){return iZ.firefox()?"DOMMouseScroll":cZ("wheel")?"wheel":"mousewheel"};var dZ=B8;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const uZ=function(e,t){if(e&&e.addEventListener){const o=function(r){const a=dZ(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",o,{passive:!0})}},N8={beforeMount(e,t){uZ(e,t.value)}},fZ=ne({role:{type:String,required:!0},spinnerDate:{type:K(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:K(String),default:""},...a8}),hZ=["onClick"],pZ=["onMouseenter"];var Qp=Q(n.defineComponent({__name:"basic-time-spinner",props:fZ,emits:["change","select-range","set-option"],setup(e,{emit:t}){const o=e,r=G("time"),{getHoursList:a,getMinutesList:i,getSecondsList:s}=l8(o.disabledHours,o.disabledMinutes,o.disabledSeconds);let l=!1;const c=n.ref(),d=n.ref(),u=n.ref(),f=n.ref(),h={hours:d,minutes:u,seconds:f},p=n.computed(()=>o.showSeconds?Dp:Dp.slice(0,2)),m=n.computed(()=>{const{spinnerDate:B}=o,L=B.hour(),W=B.minute(),R=B.second();return{hours:L,minutes:W,seconds:R}}),g=n.computed(()=>{const{hours:B,minutes:L}=n.unref(m);return{hours:a(o.role),minutes:i(B,o.role),seconds:s(B,L,o.role)}}),y=n.computed(()=>{const{hours:B,minutes:L,seconds:W}=n.unref(m);return{hours:md(B,23),minutes:md(L,59),seconds:md(W,59)}}),w=Zt(B=>{l=!1,b(B)},200),$=B=>{if(!!!o.amPmMode)return"";const W=o.amPmMode==="A";let R=B<12?" am":" pm";return W&&(R=R.toUpperCase()),R},C=B=>{let L;switch(B){case"hours":L=[0,2];break;case"minutes":L=[3,5];break;case"seconds":L=[6,8];break}const[W,R]=L;t("select-range",W,R),c.value=B},b=B=>{E(B,n.unref(m)[B])},k=()=>{b("hours"),b("minutes"),b("seconds")},S=B=>B.querySelector(`.${r.namespace.value}-scrollbar__wrap`),E=(B,L)=>{if(o.arrowControl)return;const W=n.unref(h[B]);W&&W.$el&&(S(W.$el).scrollTop=Math.max(0,L*N(B)))},N=B=>n.unref(h[B])?.$el.querySelector("li").offsetHeight||0,_=()=>{P(1)},T=()=>{P(-1)},P=B=>{c.value||C("hours");const L=c.value,W=n.unref(m)[L],R=c.value==="hours"?24:60,H=x(L,W,B,R);v(L,H),E(L,H),n.nextTick(()=>C(L))},x=(B,L,W,R)=>{let H=(L+W+R)%R;const j=n.unref(g)[B];for(;j[H]&&H!==L;)H=(H+W+R)%R;return H},v=(B,L)=>{if(n.unref(g)[B][L])return;const{hours:H,minutes:j,seconds:U}=n.unref(m);let re;switch(B){case"hours":re=o.spinnerDate.hour(L).minute(j).second(U);break;case"minutes":re=o.spinnerDate.hour(H).minute(L).second(U);break;case"seconds":re=o.spinnerDate.hour(H).minute(j).second(L);break}t("change",re)},O=(B,{value:L,disabled:W})=>{W||(v(B,L),C(B),E(B,L))},I=B=>{l=!0,w(B);const L=Math.min(Math.round((S(n.unref(h[B]).$el).scrollTop-(F(B)*.5-10)/N(B)+3)/N(B)),B==="hours"?23:59);v(B,L)},F=B=>n.unref(h[B]).$el.offsetHeight,M=()=>{const B=L=>{const W=n.unref(h[L]);W&&W.$el&&(S(W.$el).onscroll=()=>{I(L)})};B("hours"),B("minutes"),B("seconds")};n.onMounted(()=>{n.nextTick(()=>{!o.arrowControl&&M(),k(),o.role==="start"&&C("hours")})});const z=(B,L)=>{h[L].value=B};return t("set-option",[`${o.role}_scrollDown`,P]),t("set-option",[`${o.role}_emitSelectRange`,C]),n.watch(()=>o.spinnerDate,()=>{l||k()}),(B,L)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(r).b("spinner"),{"has-seconds":B.showSeconds}])},[B.arrowControl?n.createCommentVNode("v-if",!0):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(n.unref(p),W=>(n.openBlock(),n.createBlock(n.unref(bo),{key:W,ref_for:!0,ref:R=>z(R,W),class:n.normalizeClass(n.unref(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":n.unref(r).be("spinner","list"),noresize:"",tag:"ul","bar-size":2,onMouseenter:R=>C(W),onMousemove:R=>b(W)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(g)[W],(R,H)=>(n.openBlock(),n.createElementBlock("li",{key:H,class:n.normalizeClass([n.unref(r).be("spinner","item"),n.unref(r).is("active",H===n.unref(m)[W]),n.unref(r).is("disabled",R)]),onClick:j=>O(W,{value:H,disabled:R})},[W==="hours"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(("0"+(B.amPmMode?H%12||12:H)).slice(-2))+n.toDisplayString($(H)),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(("0"+H).slice(-2)),1)],64))],10,hZ))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),B.arrowControl?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(n.unref(p),W=>(n.openBlock(),n.createElementBlock("div",{key:W,class:n.normalizeClass([n.unref(r).be("spinner","wrapper"),n.unref(r).is("arrow")]),onMouseenter:R=>C(W)},[n.withDirectives((n.openBlock(),n.createBlock(n.unref(pe),{class:n.normalizeClass(["action-up",n.unref(r).be("spinner","arrow")])},{default:n.withCtx(()=>[n.createVNode(n.unref(mC))]),_:1},8,["class"])),[[n.unref(Ea),T]]),n.withDirectives((n.openBlock(),n.createBlock(n.unref(pe),{class:n.normalizeClass(["action-down",n.unref(r).be("spinner","arrow")])},{default:n.withCtx(()=>[n.createVNode(n.unref(di))]),_:1},8,["class"])),[[n.unref(Ea),_]]),n.createElementVNode("ul",{class:n.normalizeClass(n.unref(r).be("spinner","list"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(y)[W],(R,H)=>(n.openBlock(),n.createElementBlock("li",{key:H,class:n.normalizeClass([n.unref(r).be("spinner","item"),n.unref(r).is("active",R===n.unref(m)[W]),n.unref(r).is("disabled",n.unref(g)[W][R])])},[typeof R=="number"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[W==="hours"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(("0"+(B.amPmMode?R%12||12:R)).slice(-2))+n.toDisplayString($(R)),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(("0"+R).slice(-2)),1)],64))],64)):n.createCommentVNode("v-if",!0)],2))),128))],2)],42,pZ))),128)):n.createCommentVNode("v-if",!0)],2))}}),[["__file","basic-time-spinner.vue"]]),el=Q(n.defineComponent({__name:"panel-time-pick",props:oZ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=n.inject("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:s,disabledSeconds:l,defaultValue:c}=r.props,{getAvailableHours:d,getAvailableMinutes:u,getAvailableSeconds:f}=c8(i,s,l),h=G("time"),{t:p,lang:m}=He(),g=n.ref([0,2]),y=d8(o),w=n.computed(()=>Vt(o.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),$=n.computed(()=>o.format.includes("ss")),C=n.computed(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),b=z=>{const B=xe(z).locale(m.value),L=O(B);return B.isSame(L)},k=()=>{t("pick",y.value,!1)},S=(z=!1,B=!1)=>{B||t("pick",o.parsedValue,z)},E=z=>{if(!o.visible)return;const B=O(z).millisecond(0);t("pick",B,!0)},N=(z,B)=>{t("select-range",z,B),g.value=[z,B]},_=z=>{const B=[0,3].concat($.value?[6]:[]),L=["hours","minutes"].concat($.value?["seconds"]:[]),R=(B.indexOf(g.value[0])+z+B.length)%B.length;P.start_emitSelectRange(L[R])},T=z=>{const B=z.code,{left:L,right:W,up:R,down:H}=de;if([L,W].includes(B)){_(B===L?-1:1),z.preventDefault();return}if([R,H].includes(B)){const j=B===R?-1:1;P.start_scrollDown(j),z.preventDefault();return}},{timePickerOptions:P,onSetOption:x,getAvailableTime:v}=s8({getAvailableHours:d,getAvailableMinutes:u,getAvailableSeconds:f}),O=z=>v(z,o.datetimeRole||"",!0),I=z=>z?xe(z,o.format).locale(m.value):null,F=z=>z?z.format(o.format):null,M=()=>xe(c).locale(m.value);return t("set-picker-option",["isValidValue",b]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["parseUserInput",I]),t("set-picker-option",["handleKeydownInput",T]),t("set-picker-option",["getRangeAvailableTime",O]),t("set-picker-option",["getDefaultValue",M]),(z,B)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(w)},{default:n.withCtx(()=>[z.actualVisible||z.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(h).b("panel"),n.unref(h).is("disabled",z.disabled)])},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(h).be("panel","content"),{"has-seconds":n.unref($)}])},[n.createVNode(Qp,{ref:"spinner",role:z.datetimeRole||"start","arrow-control":n.unref(a),"show-seconds":n.unref($),"am-pm-mode":n.unref(C),"spinner-date":z.parsedValue,"disabled-hours":n.unref(i),"disabled-minutes":n.unref(s),"disabled-seconds":n.unref(l),onChange:E,onSetOption:n.unref(x),onSelectRange:N},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),z.hideActions?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(h).be("panel","footer"))},[n.createVNode(n.unref(ve),{small:"",class:n.normalizeClass([n.unref(h).be("panel","btn"),"cancel"]),onClick:k},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)("b.datepicker.cancel")),1)]),_:1},8,["class"]),n.createVNode(n.unref(ve),{small:"",primary:"",class:n.normalizeClass([n.unref(h).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=L=>S())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)("b.datepicker.confirm")),1)]),_:1},8,["class"])],2))],2)):n.createCommentVNode("v-if",!0)]),_:1},8,["name"]))}}),[["__file","panel-time-pick.vue"]]);const mZ=ne({...i8,parsedValue:{type:K(Array)}});var gZ=Q(n.defineComponent({__name:"panel-time-range",props:mZ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=(q,te)=>{const ue=[];for(let ge=q;ge<=te;ge++)ue.push(ge);return ue},{t:a,lang:i}=He(),s=G("time"),l=G("picker"),c=n.inject("EP_PICKER_BASE"),{arrowControl:d,disabledHours:u,disabledMinutes:f,disabledSeconds:h,defaultValue:p}=c.props,m=n.computed(()=>o.parsedValue[0]),g=n.computed(()=>o.parsedValue[1]),y=d8(o),w=()=>{t("pick",y.value,!1)},$=n.computed(()=>o.format.includes("ss")),C=n.computed(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),b=(q=!1)=>{t("pick",[m.value,g.value],q)},k=q=>{N(q.millisecond(0),g.value)},S=q=>{N(m.value,q.millisecond(0))},E=q=>{const te=q.map(ge=>xe(ge).locale(i.value)),ue=B(te);return te[0].isSame(ue[0])&&te[1].isSame(ue[1])},N=(q,te)=>{t("pick",[q,te],!0)},_=n.computed(()=>m.value>g.value),T=n.ref([0,2]),P=(q,te)=>{t("select-range",q,te,"min"),T.value=[q,te]},x=n.computed(()=>$.value?11:8),v=(q,te)=>{t("select-range",q,te,"max");const ue=n.unref(x);T.value=[q+ue,te+ue]},O=q=>{const te=$.value?[0,3,6,11,14,17]:[0,3,8,11],ue=["hours","minutes"].concat($.value?["seconds"]:[]),Ee=(te.indexOf(T.value[0])+q+te.length)%te.length,Te=te.length/2;Ee<Te?H.start_emitSelectRange(ue[Ee]):H.end_emitSelectRange(ue[Ee-Te])},I=q=>{const te=q.code,{left:ue,right:ge,up:Ee,down:Te}=de;if([ue,ge].includes(te)){O(te===ue?-1:1),q.preventDefault();return}if([Ee,Te].includes(te)){const ye=te===Ee?-1:1,oe=T.value[0]<x.value?"start":"end";H[`${oe}_scrollDown`](ye),q.preventDefault();return}},F=(q,te)=>{const ue=u?u(q):[],ge=q==="start",Te=(te||(ge?g.value:m.value)).hour(),ye=ge?r(Te+1,23):r(0,Te-1);return vc(ue,ye)},M=(q,te,ue)=>{const ge=f?f(q,te):[],Ee=te==="start",Te=ue||(Ee?g.value:m.value),ye=Te.hour();if(q!==ye)return ge;const oe=Te.minute(),se=Ee?r(oe+1,59):r(0,oe-1);return vc(ge,se)},z=(q,te,ue,ge)=>{const Ee=h?h(q,te,ue):[],Te=ue==="start",ye=ge||(Te?g.value:m.value),oe=ye.hour(),se=ye.minute();if(q!==oe||te!==se)return Ee;const me=ye.second(),ee=Te?r(me+1,59):r(0,me-1);return vc(Ee,ee)},B=([q,te])=>[j(q,"start",!0,te),j(te,"end",!1,q)],{getAvailableHours:L,getAvailableMinutes:W,getAvailableSeconds:R}=c8(F,M,z),{timePickerOptions:H,getAvailableTime:j,onSetOption:U}=s8({getAvailableHours:L,getAvailableMinutes:W,getAvailableSeconds:R}),re=q=>q?Me(q)?q.map(te=>xe(te,o.format).locale(i.value)):xe(q,o.format).locale(i.value):null,J=q=>q?Me(q)?q.map(te=>te.format(o.format)):q.format(o.format):null,Y=()=>{if(Me(p))return p.map(te=>xe(te).locale(i.value));const q=xe(p).locale(i.value);return[q,q.add(60,"m")]};return t("set-picker-option",["formatToString",J]),t("set-picker-option",["parseUserInput",re]),t("set-picker-option",["isValidValue",E]),t("set-picker-option",["handleKeydownInput",I]),t("set-picker-option",["getDefaultValue",Y]),t("set-picker-option",["getRangeAvailableTime",B]),(q,te)=>q.actualVisible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(s).b("range-picker"),n.unref(l).b("panel")])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("range-picker","content"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("range-picker","cell"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("range-picker","header"))},n.toDisplayString(n.unref(a)("b.datepicker.startTime")),3),n.createElementVNode("div",{class:n.normalizeClass([n.unref(s).be("range-picker","body"),n.unref(s).be("panel","content"),n.unref(s).is("arrow",n.unref(d)),{"has-seconds":n.unref($)}])},[n.createVNode(Qp,{ref:"minSpinner",role:"start","show-seconds":n.unref($),"am-pm-mode":n.unref(C),"arrow-control":n.unref(d),"spinner-date":n.unref(m),"disabled-hours":F,"disabled-minutes":M,"disabled-seconds":z,onChange:k,onSetOption:n.unref(U),onSelectRange:P},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("range-picker","cell"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("range-picker","header"))},n.toDisplayString(n.unref(a)("b.datepicker.endTime")),3),n.createElementVNode("div",{class:n.normalizeClass([n.unref(s).be("range-picker","body"),n.unref(s).be("panel","content"),n.unref(s).is("arrow",n.unref(d)),{"has-seconds":n.unref($)}])},[n.createVNode(Qp,{ref:"maxSpinner",role:"end","show-seconds":n.unref($),"am-pm-mode":n.unref(C),"arrow-control":n.unref(d),"spinner-date":n.unref(g),"disabled-hours":F,"disabled-minutes":M,"disabled-seconds":z,onChange:S,onSetOption:n.unref(U),onSelectRange:v},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).be("panel","footer"))},[n.createVNode(n.unref(ve),{small:"",class:n.normalizeClass([n.unref(s).be("panel","btn"),"cancel"]),onClick:te[0]||(te[0]=ue=>w())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)("b.datepicker.cancel")),1)]),_:1},8,["class"]),n.createVNode(n.unref(ve),{small:"",primary:"",class:n.normalizeClass([n.unref(s).be("panel","btn"),"confirm"]),disabled:n.unref(_),onClick:te[1]||(te[1]=ue=>b())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)("b.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)],2)):n.createCommentVNode("v-if",!0)}}),[["__file","panel-time-range.vue"]]);xe.extend(Ip);var yZ=n.defineComponent({name:"BTimePicker",install:null,props:{...yd,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const o=n.ref(),[r,a]=e.isRange?["timerange",gZ]:["time",el],i=s=>t.emit("update:modelValue",s);return n.provide("BPopperOptions",e.popperOptions),t.expose({focus:s=>{o.value?.handleFocusInput(s)},blur:s=>{o.value?.handleBlurInput(s)},handleOpen:()=>{o.value?.handleOpen()},handleClose:()=>{o.value?.handleClose()}}),()=>{const s=e.format??pd;return n.createVNode(Hp,n.mergeProps(e,{ref:o,type:r,format:s,"data-test-name":"time-picker","onUpdate:modelValue":i}),{default:l=>n.createVNode(a,l,null)})}}});const kd=yZ;kd.install=e=>{e.component(kd.name,kd)};const _8=kd,bZ=(e,t)=>{const o=e.subtract(1,"month").endOf("month").date();return fr(t).map((r,a)=>o-(t-a-1))},CZ=e=>{const t=e.daysInMonth();return fr(t).map((o,r)=>r+1)},wZ=e=>fr(e.length/7).map(t=>{const o=t*7;return e.slice(o,o+7)}),$Z=ne({selectedDay:{type:K(Object)},range:{type:K(Array)},date:{type:K(Object),required:!0},hideHeader:{type:Boolean}}),kZ={pick:e=>it(e)},SZ={key:0},EZ=["onClick"],BZ=n.defineComponent({name:"DateTable"}),NZ=n.defineComponent({...BZ,props:$Z,emits:kZ,setup(e,{expose:t,emit:o}){const r=e;xe.extend(t8);const{t:a,lang:i}=He(),s=G("calendar-table"),l=G("calendar-day"),c=xe().locale(i.value),d=xe().localeData().firstDayOfWeek(),u=n.computed(()=>!!r.range&&!!r.range.length),f=n.computed(()=>{let w=[];if(u.value){const[$,C]=r.range,b=fr(C.date()-$.date()+1).map(E=>({text:$.date()+E,type:"current"}));let k=b.length%7;k=k===0?0:7-k;const S=fr(k).map((E,N)=>({text:N+1,type:"next"}));w=b.concat(S)}else{const $=r.date.startOf("month").day(),C=bZ(r.date,($-d+7)%7).map(E=>({text:E,type:"prev"})),b=CZ(r.date).map(E=>({text:E,type:"current"}));w=[...C,...b];const k=7-(w.length%7||7),S=fr(k).map((E,N)=>({text:N+1,type:"next"}));w=w.concat(S)}return wZ(w)}),h=n.computed(()=>{const w=d;return w===0?Kc.map($=>a(`b.datepicker.weeks.${$}`)):Kc.slice(w).concat(Kc.slice(0,w)).map($=>a(`b.datepicker.weeks.${$}`))}),p=(w,$)=>{switch($){case"prev":return r.date.startOf("month").subtract(1,"month").date(w);case"next":return r.date.startOf("month").add(1,"month").date(w);case"current":return r.date.date(w)}},m=({text:w,type:$})=>{const C=[$];if($==="current"){const b=p(w,$);b.isSame(r.selectedDay,"day")&&C.push(l.is("selected")),b.isSame(c,"day")&&C.push(l.is("today"))}return C},g=({text:w,type:$})=>{const C=p(w,$);o("pick",C)},y=({text:w,type:$})=>{const C=p(w,$);return{isSelected:C.isSame(r.selectedDay),type:`${$}-month`,day:C.format("YYYY-MM-DD"),date:C.toDate()}};return t({getFormattedDate:p}),(w,$)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass([n.unref(s).b(),n.unref(s).is("range",n.unref(u))]),cellspacing:"0",cellpadding:"0"},[w.hideHeader?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("thead",SZ,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(h),C=>(n.openBlock(),n.createElementBlock("th",{key:C},n.toDisplayString(C),1))),128))])),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(f),(C,b)=>(n.openBlock(),n.createElementBlock("tr",{key:b,class:n.normalizeClass({[n.unref(s).e("row")]:!0,[n.unref(s).em("row","hide-border")]:b===0&&w.hideHeader})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(C,(k,S)=>(n.openBlock(),n.createElementBlock("td",{key:S,class:n.normalizeClass(m(k)),onClick:E=>g(k)},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(l).b())},[n.renderSlot(w.$slots,"date-cell",{data:y(k)},()=>[n.createElementVNode("span",null,n.toDisplayString(k.text),1)])],2)],10,EZ))),128))],2))),128))])],2))}});var T8=Q(NZ,[["__file","date-table.vue"]]);const _Z=e=>Me(e)&&e.length===2&&e.every(t=>Ps(t)),A8=ne({modelValue:{type:Date},range:{type:K(Array),validator:_Z}}),x8={[Pe]:e=>Ps(e),[_n]:e=>Ps(e)},TZ="BCalendar",AZ=n.defineComponent({name:TZ}),xZ=n.defineComponent({...AZ,props:A8,emits:x8,setup(e,{expose:t,emit:o}){const r=e,a=G("calendar"),{t:i,lang:s}=He(),l=n.ref(),c=xe().locale(s.value),d=n.computed({get(){return r.modelValue?f.value:l.value},set(b){if(!b)return;l.value=b;const k=b.toDate();o(_n,k),o(Pe,k)}}),u=n.computed(()=>{if(!r.range)return[];const b=r.range.map(E=>xe(E).locale(s.value)),[k,S]=b;return k.isAfter(S)?[]:k.isSame(S,"month")?w(k,S):k.add(1,"month").month()!==S.month()?[]:w(k,S)}),f=n.computed(()=>r.modelValue?xe(r.modelValue).locale(s.value):d.value?d.value:u.value.length?u.value[0][0]:c),h=n.computed(()=>f.value.subtract(1,"month").date(1)),p=n.computed(()=>f.value.add(1,"month").date(1)),m=n.computed(()=>f.value.subtract(1,"year").date(1)),g=n.computed(()=>f.value.add(1,"year").date(1)),y=n.computed(()=>{const b=`b.datepicker.month${f.value.format("M")}`;return`${f.value.year()} ${i("b.datepicker.year")} ${i(b)}`}),w=(b,k)=>{const S=b.startOf("week"),E=k.endOf("week"),N=S.get("month"),_=E.get("month");if(N===_)return[[S,E]];if(N+1===_){const T=S.endOf("month"),P=E.startOf("month"),v=T.isSame(P,"week")?P.add(1,"week"):P;return[[S,T],[v.startOf("week"),E]]}else if(N+2===_||(N+1)%11===_){const T=S.endOf("month"),P=S.add(1,"month").startOf("month"),x=T.isSame(P,"week")?P.add(1,"week"):P,v=x.endOf("month"),O=E.startOf("month"),I=v.isSame(O,"week")?O.add(1,"week"):O;return[[S,T],[x.startOf("week"),v],[I.startOf("week"),E]]}else return[]},$=b=>{d.value=b},C=b=>{let k;b==="prev-month"?k=h.value:b==="next-month"?k=p.value:b==="prev-year"?k=m.value:b==="next-year"?k=g.value:k=c,!k.isSame(f.value,"day")&&$(k)};return t({selectedDay:d,pickDay:$,selectDate:C,calculateValidatedDateRange:w}),(b,k)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a).b()),"data-test-name":"calendar","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("header"))},[n.renderSlot(b.$slots,"header",{date:n.unref(y)},()=>[n.createElementVNode("h4",{class:n.normalizeClass(n.unref(a).e("title"))},n.toDisplayString(n.unref(y)),3),n.unref(u).length===0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).e("button-group"))},[n.createVNode(n.unref(Op),{compact:""},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",onClick:k[0]||(k[0]=S=>C("prev-month"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("b.datepicker.prevMonth")),1)]),_:1}),n.createVNode(n.unref(ve),{ghost:"",onClick:k[1]||(k[1]=S=>C("today"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("b.datepicker.today")),1)]),_:1}),n.createVNode(n.unref(ve),{ghost:"",onClick:k[2]||(k[2]=S=>C("next-month"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("b.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):n.createCommentVNode("v-if",!0)])],2),n.unref(u).length===0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).e("body"))},[n.createVNode(T8,{date:n.unref(f),"selected-day":n.unref(d),onPick:$},n.createSlots({_:2},[b.$slots["date-cell"]||b.$slots.dateCell?{name:"date-cell",fn:n.withCtx(S=>[b.$slots["date-cell"]?n.renderSlot(b.$slots,"date-cell",n.normalizeProps(n.mergeProps({key:0},S))):n.renderSlot(b.$slots,"dateCell",n.normalizeProps(n.mergeProps({key:1},S)))]),key:"0"}:void 0]),1032,["date","selected-day"])],2)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(a).e("body"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),(S,E)=>(n.openBlock(),n.createBlock(T8,{key:E,date:S[0],"selected-day":n.unref(d),range:S,"hide-header":E!==0,onPick:$},n.createSlots({_:2},[b.$slots["date-cell"]||b.$slots.dateCell?{name:"date-cell",fn:n.withCtx(N=>[b.$slots["date-cell"]?n.renderSlot(b.$slots,"date-cell",n.normalizeProps(n.mergeProps({key:0},N))):n.renderSlot(b.$slots,"dateCell",n.normalizeProps(n.mergeProps({key:1},N)))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header"]))),128))],2))],2))}});var MZ=Q(xZ,[["__file","calendar.vue"]]);const M8=Ne(MZ),P8=ne({header:{type:String,default:""},footer:{type:String,default:""},headerClass:{type:String,default:""},footerClass:{type:String,default:""},bodyClass:{type:String,default:""},bodyStyle:{type:K([String,Object,Array]),default:""},shadow:{type:String,values:["hover","never","lv1","lv2","lv3"],default:"lv1"},bordered:Boolean}),PZ=n.defineComponent({name:"BCard"}),vZ=n.defineComponent({...PZ,props:P8,setup(e){const t=G("card");return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(t).b(),n.unref(t).is(`${o.shadow}-shadow`),n.unref(t).is("bordered",o.bordered)]),"data-test-name":"card","data-test-variant":"","data-test-state":""},[o.$slots.header||o.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(t).e("header"),o.headerClass])},[n.renderSlot(o.$slots,"header",{},()=>[n.createTextVNode(n.toDisplayString(o.header),1)])],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass([n.unref(t).e("body"),o.bodyClass]),style:n.normalizeStyle(o.bodyStyle)},[n.renderSlot(o.$slots,"default")],6),o.$slots.footer||o.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(t).e("footer"),o.footerClass])},[n.renderSlot(o.$slots,"footer",{},()=>[n.createTextVNode(n.toDisplayString(o.footer),1)])],2)):n.createCommentVNode("v-if",!0)],2))}});var OZ=Q(vZ,[["__file","card.vue"]]);const v8=Ne(OZ),O8=ne({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},card:Boolean,vertical:Boolean}),I8={change:(e,t)=>[e,t].every(Se)},IZ=["onMouseenter","onMouseleave"],DZ=["onMouseenter","onClick"],RZ={key:0},D8=300,LZ=n.defineComponent({name:"BCarousel"}),VZ=n.defineComponent({...LZ,props:O8,emits:I8,setup(e,{expose:t,emit:o}){const r=e,a=G("carousel"),{children:i,addChild:s,removeChild:l}=N3(n.getCurrentInstance(),"BCarouselItem"),c=n.ref(-1),d=n.ref(null),u=n.ref(!1),f=n.ref(),{direction:h,isSwiping:p}=JF(f),m=n.computed(()=>r.arrow!=="never"&&!n.unref(C)),g=n.computed(()=>i.value.some(R=>R.props.label.toString().length>0)),y=n.computed(()=>{const R=[a.b(),a.m(r.vertical&&"vertical"||r.direction)];return n.unref($)&&R.push(a.m("card")),R}),w=n.computed(()=>{const R=[a.e("indicators"),a.em("indicators",r.vertical&&"vertical"||r.direction)];return g.value&&R.push(a.em("indicators","labels")),(r.indicatorPosition==="outside"||n.unref($))&&R.push(a.em("indicators","outside")),R}),$=n.computed(()=>r.type==="card"||r.card),C=n.computed(()=>r.direction==="vertical"||r.vertical),b=Pr(R=>{_(R)},D8,{trailing:!0}),k=Pr(R=>{M(R)},D8);function S(){d.value&&(clearInterval(d.value),d.value=null)}function E(){r.interval<=0||!r.autoplay||d.value||(d.value=setInterval(()=>N(),r.interval))}const N=()=>{c.value<i.value.length-1?c.value=c.value+1:r.loop&&(c.value=0)};function _(R){if(De(R)){const U=i.value.filter(re=>re.props.name===R);U.length>0&&(R=i.value.indexOf(U[0]))}if(R=Number(R),Number.isNaN(R)||R!==Math.floor(R))return;const H=i.value.length,j=c.value;R<0?c.value=r.loop?H-1:0:R>=H?c.value=r.loop?0:H-1:c.value=R,j===c.value&&T(j),L()}function T(R){i.value.forEach((H,j)=>{H.translateItem(j,c.value,R)})}function P(R,H){const j=n.unref(i),U=j.length;if(U===0||!R.states.inStage)return!1;const re=H+1,J=H-1,Y=U-1,q=j[Y].states.active,te=j[0].states.active,ue=j[re]?.states?.active,ge=j[J]?.states?.active;return H===Y&&te||ue?"left":H===0&&q||ge?"right":!1}function x(){u.value=!0,r.pauseOnHover&&S()}function v(){u.value=!1,E()}function O(R){n.unref(C)||i.value.forEach((H,j)=>{R===P(H,j)&&(H.states.hover=!0)})}function I(){n.unref(C)||i.value.forEach(R=>{R.states.hover=!1})}function F(R){c.value=R}function M(R){r.trigger==="hover"&&R!==c.value&&(c.value=R)}function z(){_(c.value-1)}function B(){_(c.value+1)}function L(){S(),E()}n.watch(()=>c.value,(R,H)=>{T(H),H>-1&&o("change",R,H)}),n.watch(()=>r.autoplay,R=>{R?E():S()}),n.watch(()=>r.loop,()=>{_(c.value)}),n.watch(()=>r.interval,()=>{L()}),n.watch(()=>i.value,()=>{i.value.length>0&&_(r.initialIndex)}),n.watch(()=>p.value,R=>{R?S():L()}),n.watch(()=>h.value,R=>{R==="LEFT"&&B(),R==="RIGHT"&&z()});const W=n.shallowRef();return n.onMounted(()=>{W.value=an(f.value,()=>{T()}),E()}),n.onBeforeUnmount(()=>{S(),f.value&&W.value&&W.value.stop()}),n.provide(Wh,{root:f,isCardType:$,isVertical:C,items:i,loop:r.loop,addItem:s,removeItem:l,setActiveItem:_}),t({setActiveItem:_,prev:z,next:B}),(R,H)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"root",ref:f,class:n.normalizeClass(n.unref(y)),"data-test-name":"carousel","data-test-variant":"","data-test-state":"",onMouseenter:n.withModifiers(x,["stop"]),onMouseleave:n.withModifiers(v,["stop"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("container")),style:n.normalizeStyle({height:R.height})},[n.unref(m)?(n.openBlock(),n.createBlock(n.Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("button",{type:"button",class:n.normalizeClass([n.unref(a).e("arrow"),n.unref(a).em("arrow","left")]),onMouseenter:H[0]||(H[0]=j=>O("left")),onMouseleave:I,onClick:H[1]||(H[1]=n.withModifiers(j=>n.unref(b)(c.value-1),["stop"]))},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[n.createVNode(n.unref(Os))]),_:1})],34),[[n.vShow,(R.arrow==="always"||u.value)&&(r.loop||c.value>0)]])]),_:1})):n.createCommentVNode("v-if",!0),n.unref(m)?(n.openBlock(),n.createBlock(n.Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("button",{type:"button",class:n.normalizeClass([n.unref(a).e("arrow"),n.unref(a).em("arrow","right")]),onMouseenter:H[2]||(H[2]=j=>O("right")),onMouseleave:I,onClick:H[3]||(H[3]=n.withModifiers(j=>n.unref(b)(c.value+1),["stop"]))},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[n.createVNode(n.unref(Is))]),_:1})],34),[[n.vShow,(R.arrow==="always"||u.value)&&(r.loop||c.value<n.unref(i).length-1)]])]),_:1})):n.createCommentVNode("v-if",!0),n.renderSlot(R.$slots,"default")],6),R.indicatorPosition!=="none"?(n.openBlock(),n.createElementBlock("ul",{key:0,class:n.normalizeClass(n.unref(w))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),(j,U)=>(n.openBlock(),n.createElementBlock("li",{key:U,class:n.normalizeClass([n.unref(a).e("indicator"),n.unref(a).em("indicator",R.vertical&&"vertical"||R.direction),n.unref(a).is("active",U===c.value)]),onMouseenter:re=>n.unref(k)(U),onClick:n.withModifiers(re=>F(U),["stop"])},[n.createElementVNode("button",{class:n.normalizeClass(n.unref(a).e("button"))},[n.unref(g)?(n.openBlock(),n.createElementBlock("span",RZ,n.toDisplayString(j.props.label),1)):n.createCommentVNode("v-if",!0)],2)],42,DZ))),128))],2)):n.createCommentVNode("v-if",!0)],42,IZ))}});var FZ=Q(VZ,[["__file","carousel.vue"]]);const R8=ne({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Sd=.83,zZ=n.defineComponent({name:"BCarouselItem"}),HZ=n.defineComponent({...zZ,props:R8,setup(e){const t=e,o=G("carousel"),r=n.inject(Wh),a=n.getCurrentInstance(),i=n.ref(!1),s=n.ref(0),l=n.ref(1),c=n.ref(!1),d=n.ref(!1),u=n.ref(!1),f=n.ref(!1),{isCardType:h,isVertical:p}=r,m=n.computed(()=>{const k=`${`translate${n.unref(p)?"Y":"X"}`}(${n.unref(s)}px)`,S=`scale(${n.unref(l)})`;return{transform:[k,S].join(" ")}});function g(b,k,S){const E=S-1,N=k-1,_=k+1,T=S/2;return k===0&&b===E?-1:k===E&&b===0?S:b<N&&k-b>=T?S+1:b>_&&b-k>=T?-2:b}function y(b,k){const S=r.root.value?.offsetWidth||0;return u.value?S*((2-Sd)*(b-k)+1)/4:b<k?-(1+Sd)*S/4:(3+Sd)*S/4}function w(b,k,S){const E=r.root.value;return E?((S?E.offsetHeight:E.offsetWidth)||0)*(b-k):0}const $=(b,k,S)=>{const E=n.unref(h),N=r.items.value.length??Number.NaN,_=b===k;!E&&!Vt(S)&&(f.value=_||b===S),!_&&N>2&&r.loop&&(b=g(b,k,N));const T=n.unref(p);c.value=_,E?(u.value=Math.round(Math.abs(b-k))<=1,s.value=y(b,k),l.value=n.unref(c)?1:Sd):s.value=w(b,k,T),d.value=!0};function C(){if(r&&n.unref(h)){const b=r.items.value.findIndex(({uid:k})=>k===a.uid);r.setActiveItem(b)}}return n.onMounted(()=>{r.addItem({props:t,states:n.reactive({hover:i,translate:s,scale:l,active:c,ready:d,inStage:u,animating:f}),uid:a.uid,translateItem:$})}),n.onUnmounted(()=>{r.removeItem(a.uid)}),(b,k)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(o).e("item"),n.unref(o).is("active",c.value),n.unref(o).is("in-stage",u.value),n.unref(o).is("hover",i.value),n.unref(o).is("animating",f.value),{[n.unref(o).em("item","card")]:n.unref(h)}]),style:n.normalizeStyle(n.unref(m)),"data-test-name":"carousel-item","data-test-variant":"","data-test-state":"",onClick:C},[n.unref(h)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o).e("mask"))},null,2)),[[n.vShow,!c.value]]):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default")],6)),[[n.vShow,d.value]])}});var L8=Q(HZ,[["__file","carousel-item.vue"]]);const V8=Ne(FZ,{CarouselItem:L8}),F8=Ge(L8),em={modelValue:{type:[Number,String,Boolean],default:void 0},value:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},label:{type:String,default:""},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},size:It,tabindex:[String,Number],sub:{type:String,default:""},icon:{type:Je},large:Boolean,small:Boolean,plain:Boolean,vertical:Boolean},tm={[Pe]:e=>De(e)||Se(e)||Pt(e),change:e=>De(e)||Se(e)||Pt(e)},WZ=({model:e,isChecked:t})=>{const o=n.inject(Rs,void 0),r=n.computed(()=>{const i=o?.max?.value,s=o?.min?.value;return!Vt(i)&&e.value.length>=i&&!t.value||!Vt(s)&&e.value.length<=s&&t.value});return{isDisabled:ho(n.computed(()=>o?.disabled.value||r.value)),isLimitDisabled:r}},KZ=(e,{model:t,isLimitExceeded:o,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const{emit:s}=n.getCurrentInstance();function l(f){return f===e.trueValue||f===!0?e.trueValue??!0:e.falseValue??!1}function c(f,h){s("change",l(f),h)}function d(f){if(o.value)return;const h=f.target;s("change",l(h.checked),f)}async function u(f){o.value||!r.value&&!a.value&&i.value&&(f.composedPath().some(m=>m.tagName==="LABEL")||(t.value=l([!1,e.falseValue].includes(t.value)),await n.nextTick(),c(t.value,f)))}return{handleChange:d,onClickRoot:u}},jZ=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),r=n.inject(Rs,void 0),a=n.computed(()=>Vt(r)===!1),i=n.ref(!1);return{model:n.computed({get(){return a.value?r?.modelValue?.value:e.modelValue??t.value},set(l){a.value&&Me(l)?(i.value=r?.max?.value!==void 0&&l.length>r?.max.value,i.value===!1&&r?.changeEvent?.(l)):(o(Pe,l),t.value=l)}}),isGroup:a,isLimitExceeded:i}},UZ=(e,t,{model:o})=>{const r=n.inject(Rs,void 0),a=n.ref(!1),i=n.computed(()=>{const h=o.value;return Pt(h)?h:Me(h)?h.map(n.toRaw).includes(e.value):h!=null?h===e.trueValue:!!h}),s=r?.large,l=r?.small,c=r?.vertical,d=At(n.computed(()=>s?.value&&"large"||l?.value&&"small"||r?.size?.value),{prop:!0}),u=At(n.computed(()=>s?.value&&"large"||l?.value&&"small"||r?.size?.value)),f=n.computed(()=>!!(t.default||e.label));return{checkboxButtonSize:d,isChecked:i,isFocused:a,checkboxSize:u,hasOwnLabel:f,large:s,small:l,vertical:c}},GZ=(e,{model:t})=>{function o(){Me(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueValue||!0}e.checked&&o()},z8=(e,t)=>{const{formItem:o}=mo(),{model:r,isGroup:a,isLimitExceeded:i}=jZ(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:u,large:f,small:h,vertical:p}=UZ(e,t,{model:r}),{isDisabled:m}=WZ({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:y}=cr(e,{formItemContext:o,disableIdGeneration:u,disableIdManagement:a}),{handleChange:w,onClickRoot:$}=KZ(e,{model:r,isLimitExceeded:i,hasOwnLabel:u,isDisabled:m,isLabeledByFormItem:y}),C=n.computed(()=>c?.value!=="default"&&c?.value||e.size);return GZ(e,{model:r}),{inputId:g,isLabeledByFormItem:y,isChecked:l,isDisabled:m,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:u,model:r,handleChange:w,onClickRoot:$,size:C,large:f,small:h,vertical:p}},YZ=["tabindex","role","aria-checked"],qZ=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],ZZ=["id","aria-hidden","disabled","value","name","tabindex"],XZ=n.defineComponent({name:"BCheckbox"}),JZ=n.defineComponent({...XZ,props:em,emits:tm,setup(e){const t=e,o=n.useSlots(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:u,handleChange:f,onClickRoot:h}=z8(t,o),p=G("checkbox");return(m,g)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(a)?"span":"label"),{class:n.normalizeClass([n.unref(p).b(),n.unref(p).m(n.unref(c)),n.unref(p).is("disabled",n.unref(s)),n.unref(p).is("icon",Boolean(m.icon||m.$slots.icon)),n.unref(p).is("checked",n.unref(i)),n.unref(p).is("indeterminate",m.indeterminate),n.unref(p).is("plain",m.plain)]),"aria-controls":m.indeterminate?m.controls:null,"data-test-name":"checkbox","data-test-variant":"","data-test-state":"",onClick:n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([n.unref(p).e("input"),n.unref(p).is("disabled",n.unref(s)),n.unref(p).is("checked",n.unref(i)),n.unref(p).is("indeterminate",m.indeterminate),n.unref(p).is("focus",n.unref(l))]),tabindex:m.indeterminate?0:void 0,role:m.indeterminate?"checkbox":void 0,"aria-checked":m.indeterminate?"mixed":void 0},[m.trueValue||m.falseValue?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(r),"onUpdate:modelValue":g[0]||(g[0]=y=>n.isRef(u)?u.value=y:null),class:n.normalizeClass(n.unref(p).e("original")),type:"checkbox","aria-hidden":m.indeterminate?"true":"false",name:m.name,tabindex:m.tabindex,disabled:n.unref(s),"true-value":m.trueValue,"false-value":m.falseValue,onChange:g[1]||(g[1]=(...y)=>n.unref(f)&&n.unref(f)(...y)),onFocus:g[2]||(g[2]=y=>l.value=!0),onBlur:g[3]||(g[3]=y=>l.value=!1)},null,42,qZ)),[[n.vModelCheckbox,n.unref(u)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(r),"onUpdate:modelValue":g[4]||(g[4]=y=>n.isRef(u)?u.value=y:null),class:n.normalizeClass(n.unref(p).e("original")),type:"checkbox","aria-hidden":m.indeterminate?"true":"false",disabled:n.unref(s),value:m.value,name:m.name,tabindex:m.tabindex,onChange:g[5]||(g[5]=(...y)=>n.unref(f)&&n.unref(f)(...y)),onFocus:g[6]||(g[6]=y=>l.value=!0),onBlur:g[7]||(g[7]=y=>l.value=!1)},null,42,ZZ)),[[n.vModelCheckbox,n.unref(u)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(p).e("inner"))},null,2)],10,YZ),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass([n.unref(p).e("label"),n.unref(p).is("has-sub",Boolean(m.$slots.sub||m.sub)),n.unref(p).is("has-icon",Boolean(m.$slots.icon||m.icon))])},[m.$slots.icon||m.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,size:40,class:n.normalizeClass(n.unref(p).e("icon"))},{default:n.withCtx(()=>[n.renderSlot(m.$slots,"icon",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(m.icon)))])]),_:3},8,["class"])):n.createCommentVNode("v-if",!0),n.renderSlot(m.$slots,"default"),m.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(m.label),1)],64)),m.$slots.sub||m.sub?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(p).e("sub"))},[n.renderSlot(m.$slots,"sub",{},()=>[n.createTextVNode(n.toDisplayString(m.sub),1)])],2)):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var QZ=Q(JZ,[["__file","checkbox.vue"]]);const eX=["name","tabindex","disabled","true-value","false-value"],tX=["name","tabindex","disabled","value"],nX=n.defineComponent({name:"BCheckboxButton"}),oX=n.defineComponent({...nX,props:em,emits:tm,setup(e){const t=e,o=n.useSlots(),{isFocused:r,isChecked:a,isDisabled:i,size:s,model:l,vertical:c,handleChange:d}=z8(t,o),u=G("checkbox");return(f,h)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(u).b("button"),n.unref(u).bm("button",n.unref(s)),n.unref(u).is("disabled",n.unref(i)),n.unref(u).is("checked",n.unref(a)),n.unref(u).is("focus",n.unref(r)),n.unref(u).is("vertical",n.unref(c))]),"data-test-name":"checkbox-button","data-test-variant":"","data-test-state":""},[f.trueValue||f.falseValue?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":h[0]||(h[0]=p=>n.isRef(l)?l.value=p:null),class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:n.unref(i),"true-value":f.trueValue,"false-value":f.falseValue,onChange:h[1]||(h[1]=(...p)=>n.unref(d)&&n.unref(d)(...p)),onFocus:h[2]||(h[2]=p=>r.value=!0),onBlur:h[3]||(h[3]=p=>r.value=!1)},null,42,eX)),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":h[4]||(h[4]=p=>n.isRef(l)?l.value=p:null),class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:n.unref(i),value:f.value,onChange:h[5]||(h[5]=(...p)=>n.unref(d)&&n.unref(d)(...p)),onFocus:h[6]||(h[6]=p=>r.value=!0),onBlur:h[7]||(h[7]=p=>r.value=!1)},null,42,tX)),[[n.vModelCheckbox,n.unref(l)]]),f.$slots.default||f.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner"))},[n.renderSlot(f.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(f.label),1)])],2)):n.createCommentVNode("v-if",!0)],2))}});var H8=Q(oX,[["__file","checkbox-button.vue"]]);const W8=ne({modelValue:{type:K(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:It,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},large:Boolean,small:Boolean,vertical:Boolean}),K8={[Pe]:e=>Me(e),change:e=>Me(e)},rX=n.defineComponent({name:"BCheckboxGroup"}),aX=n.defineComponent({...rX,props:W8,emits:K8,setup(e,{emit:t}){const o=e,r=G("checkbox"),{formItem:a}=mo(),{inputId:i}=cr(o,{formItemContext:a}),s=async c=>{t(Pe,c),await n.nextTick(),t("change",c)},l=n.computed({get(){return o.modelValue},set(c){s(c)}});return n.provide(Rs,{...Po(n.toRefs(o),["size","min","max","disabled","large","small","vertical"]),modelValue:l,changeEvent:s}),(c,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.tag),{id:n.unref(i),class:n.normalizeClass([n.unref(r).b("group"),n.unref(r).is("vertical",c.vertical)]),role:"group","data-test-name":"checkbox-group","data-test-variant":"","data-test-state":""},{default:n.withCtx(()=>[n.renderSlot(c.$slots,"default")]),_:3},8,["id","class"]))}});var j8=Q(aX,[["__file","checkbox-group.vue"]]);const xn=Ne(QZ,{CheckboxButton:H8,CheckboxGroup:j8}),U8=Ge(H8),nm=Ge(j8),om=ne({size:It,disabled:Boolean,name:{type:String,default:""},value:{type:[String,Number,Boolean],default:""},label:{type:String,default:""},icon:{type:Je,default:""},large:Boolean,small:Boolean,plain:Boolean}),G8=ne({...om,modelValue:{type:[String,Number,Boolean],default:""},sub:{type:String,default:""}}),rm={[Pe]:e=>De(e)||Se(e)||Pt(e),[ct]:e=>De(e)||Se(e)||Pt(e)},Y8=(e,t)=>{const o=n.ref(),r=n.inject(qh,void 0),a=n.computed(()=>!!r),i=n.computed({get(){return a.value?r.modelValue:e.modelValue},set(p){a.value?r.changeEvent(p):t&&t(Pe,p),o.value.checked=e.modelValue===e.label}}),s=At(n.computed(()=>r?.large&&"large"||r?.small&&"small"||r?.size)),l=r?.large,c=r?.small,d=ho(n.computed(()=>r?.disabled)),u=n.ref(!1),f=n.computed(()=>d.value||a.value&&i.value!==e.label?-1:0),h=r?.segment;return{radioRef:o,isGroup:a,radioGroup:r,focus:u,size:s,disabled:d,tabIndex:f,modelValue:i,large:l,small:c,segment:h}},iX=["value","name","disabled"],sX=n.defineComponent({name:"BRadio"}),lX=n.defineComponent({...sX,props:G8,emits:rm,setup(e,{emit:t}){const o=e,r=G("radio"),{radioRef:a,radioGroup:i,focus:s,size:l,disabled:c,modelValue:d}=Y8(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(f,h)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).is("disabled",n.unref(c)),n.unref(r).is("focus",n.unref(s)),n.unref(r).is("icon",Boolean(f.icon||f.$slots.icon)),n.unref(r).is("checked",n.unref(d)===f.value),n.unref(r).is("plain",f.plain),n.unref(r).m(n.unref(l))]),"data-test-name":"radio","data-test-variant":"","data-test-state":""},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(r).e("input"),n.unref(r).is("disabled",n.unref(c)),n.unref(r).is("checked",n.unref(d)===f.value)])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>n.isRef(d)?d.value=p:null),class:n.normalizeClass(n.unref(r).e("original")),value:f.value,name:f.name||n.unref(i)?.name,disabled:n.unref(c),type:"radio",onFocus:h[1]||(h[1]=p=>s.value=!0),onBlur:h[2]||(h[2]=p=>s.value=!1),onChange:u},null,42,iX),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass([n.unref(r).e("label"),n.unref(r).is("has-sub",Boolean(f.$slots.sub||f.sub)),n.unref(r).is("has-icon",Boolean(f.$slots.icon||f.icon))]),onKeydown:h[3]||(h[3]=n.withModifiers(()=>{},["stop"]))},[f.$slots.icon||f.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,size:40,class:n.normalizeClass(n.unref(r).e("icon"))},{default:n.withCtx(()=>[n.renderSlot(f.$slots,"icon",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.icon)))])]),_:3},8,["class"])):n.createCommentVNode("v-if",!0),n.renderSlot(f.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(f.label),1)]),f.$slots.sub||f.sub?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(n.unref(r).e("sub"))},[n.renderSlot(f.$slots,"sub",{},()=>[n.createTextVNode(n.toDisplayString(f.sub),1)])],2)):n.createCommentVNode("v-if",!0)],34)],2))}});var cX=Q(lX,[["__file","radio.vue"]]);const q8=ne({...om,segment:{type:Boolean,default:!1}}),dX=["value","name","disabled"],uX=n.defineComponent({name:"BRadioButton"}),fX=n.defineComponent({...uX,props:q8,setup(e){const t=e,o=G("radio"),{radioRef:r,focus:a,size:i,disabled:s,modelValue:l,radioGroup:c,segment:d}=Y8(t);return(u,f)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b(n.unref(d)?"segment":"button"),n.unref(o).is("active",n.unref(l)===u.value),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(a)),n.unref(o).bm(n.unref(d)?"segment":"button",n.unref(i)),n.unref(o).is("vertical",n.unref(c)?.vertical)]),"data-test-name":"radio-button","data-test-variant":"","data-test-state":""},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>n.isRef(l)?l.value=h:null),class:n.normalizeClass(n.unref(o).be(n.unref(d)?"segment":"button","original-radio")),value:u.value,type:"radio",name:u.name||n.unref(c)?.name,disabled:n.unref(s),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1)},null,42,dX),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be(n.unref(d)?"segment":"button","inner")),onKeydown:f[3]||(f[3]=n.withModifiers(()=>{},["stop"]))},[Boolean(u.icon)?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,size:u.large&&24||u.small&&16||20},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u.icon)))]),_:1},8,["size"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])])],34)],2))}});var Z8=Q(fX,[["__file","radio-button.vue"]]);const X8=ne({id:{type:String,default:void 0},size:It,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:void 0},large:Boolean,small:Boolean,vertical:Boolean,segment:Boolean}),J8=rm,hX=["id"],pX=n.defineComponent({name:"BRadioGroup"}),mX=n.defineComponent({...pX,props:X8,emits:J8,setup(e,{emit:t}){const o=e,r=G("radio"),a=po(),i=n.ref(),{formItem:s}=mo(),{inputId:l}=cr(o,{formItemContext:s}),c=u=>{t(Pe,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=i.value.querySelectorAll("[type=radio]"),f=u[0];!Array.from(u).some(h=>h.checked)&&f&&(f.tabIndex=0)});const d=n.computed(()=>o.name||a.value);return n.provide(qh,n.reactive({...n.toRefs(o),changeEvent:c,name:d})),(u,f)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:i,class:n.normalizeClass([n.unref(r).b("group"),n.unref(r).is("vertical",u.vertical),n.unref(r).is("segment",u.segment),n.unref(r).bm("group",u.size)]),role:"radiogroup","data-test-name":"radio-group","data-test-variant":"","data-test-state":""},[n.renderSlot(u.$slots,"default")],10,hX))}});var Q8=Q(mX,[["__file","radio-group.vue"]]);const am=Ne(cX,{RadioButton:Z8,RadioGroup:Q8}),e6=Ge(Q8),t6=Ge(Z8);var gX=n.defineComponent({name:"NodeContent",setup(){return{ns:G("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:o}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=o;return n.h("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const Ed=Symbol(),yX=n.defineComponent({name:"BCascaderNode",components:{BCheckbox:xn,BRadio:am,NodeContent:gX,BIcon:pe,Check:uo,Loading:Or,ActionRight:ui},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const o=n.inject(Ed),r=G("cascader-node"),a=n.computed(()=>o.isHoverMenu),i=n.computed(()=>o.config.multiple),s=n.computed(()=>o.config.checkStrictly),l=n.computed(()=>o.checkedNodes[0]?.uid),c=n.computed(()=>e.node.isDisabled),d=n.computed(()=>e.node.isLeaf),u=n.computed(()=>s.value&&!d.value||!c.value),f=n.computed(()=>p(o.expandingNode)),h=n.computed(()=>s.value&&o.checkedNodes.some(p)),p=S=>{const{level:E,uid:N}=e.node;return S?.pathNodes[E-1]?.uid===N},m=()=>{f.value||o.expandNode(e.node)},g=S=>{const{node:E}=e;S!==E.checked&&o.handleCheckChange(E,S)},y=()=>{o.lazyLoad(e.node,()=>{d.value||m()})},w=S=>{!a.value||($(),!d.value&&t("expand",S))},$=()=>{const{node:S}=e;!u.value||S.loading||(S.loaded?m():y())},C=()=>{a.value&&!d.value||(d.value&&!c.value&&!s.value&&!i.value?k(!0):$())},b=S=>{s.value?(g(S),e.node.loaded&&m()):k(S)},k=S=>{e.node.loaded?(g(S),!s.value&&m()):y()};return{panel:o,isHoverMenu:a,multiple:i,checkStrictly:s,checkedNodeId:l,isDisabled:c,isLeaf:d,expandable:u,inExpandingPath:f,inCheckedPath:h,ns:r,handleHoverExpand:w,handleExpand:$,handleClick:C,handleCheck:k,handleSelectCheck:b}}}),bX=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],CX=n.createElementVNode("span",null,null,-1);function wX(e,t,o,r,a,i){const s=n.resolveComponent("b-checkbox"),l=n.resolveComponent("b-radio"),c=n.resolveComponent("check"),d=n.resolveComponent("b-icon"),u=n.resolveComponent("node-content"),f=n.resolveComponent("loading"),h=n.resolveComponent("action-right");return n.openBlock(),n.createElementBlock("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:n.normalizeClass([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),"data-test-name":"cascader-node","data-test-variant":"","data-test-state":"",onMouseenter:t[2]||(t[2]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onFocus:t[3]||(t[3]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onClick:t[4]||(t[4]=(...p)=>e.handleClick&&e.handleClick(...p))},[n.createCommentVNode(" prefix "),e.multiple?(n.openBlock(),n.createBlock(s,{key:0,plain:"","model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(n.openBlock(),n.createBlock(l,{key:1,plain:"","model-value":e.checkedNodeId,value:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},{default:n.withCtx(()=>[n.createCommentVNode(`
        Add an empty element to avoid render label,
        do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
      `),CX]),_:1},8,["model-value","value","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(n.openBlock(),n.createBlock(d,{key:2,class:n.normalizeClass(e.ns.e("prefix"))},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.createCommentVNode(" content "),n.createVNode(u),n.createCommentVNode(" postfix "),e.isLeaf?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[e.node.loading?(n.openBlock(),n.createBlock(d,{key:0,class:n.normalizeClass([e.ns.is("loading"),e.ns.e("postfix")])},{default:n.withCtx(()=>[n.createVNode(f)]),_:1},8,["class"])):(n.openBlock(),n.createBlock(d,{key:1,class:n.normalizeClass(["action-right",e.ns.e("postfix")])},{default:n.withCtx(()=>[n.createVNode(h)]),_:1},8,["class"]))],64))],42,bX)}var $X=Q(yX,[["render",wX],["__file","node.vue"]]);const kX=n.defineComponent({name:"BCascaderMenu",components:{Loading:Or,BIcon:pe,BScrollbar:bo,BCascaderNode:$X},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=n.getCurrentInstance(),o=G("cascader-menu"),{t:r}=He(),a=Ds();let i=null,s=null;const l=n.inject(Ed),c=n.ref(null),d=n.computed(()=>!e.nodes.length),u=n.computed(()=>!l.initialLoaded),f=n.computed(()=>`cascader-menu-${a}-${e.index}`),h=y=>{i=y.target},p=y=>{if(!(!l.isHoverMenu||!i||!c.value))if(i.contains(y.target)){m();const w=t.vnode.el,{left:$}=w.getBoundingClientRect(),{offsetWidth:C,offsetHeight:b}=w,k=y.clientX-$,S=i.offsetTop,E=S+i.offsetHeight;c.value.innerHTML=`
          <path style="pointer-events: auto;" fill="transparent" d="M${k} ${S} L${C} 0 V${S} Z" />
          <path style="pointer-events: auto;" fill="transparent" d="M${k} ${E} L${C} ${b} V${E} Z" />
        `}else s||(s=window.setTimeout(g,l.config.hoverThreshold))},m=()=>{!s||(clearTimeout(s),s=null)},g=()=>{!c.value||(c.value.innerHTML="",m())};return{ns:o,panel:l,hoverZone:c,isEmpty:d,isLoading:u,menuId:f,t:r,handleExpand:h,handleMouseMove:p,clearHoverZone:g}}});function SX(e,t,o,r,a,i){const s=n.resolveComponent("b-cascader-node"),l=n.resolveComponent("loading"),c=n.resolveComponent("b-icon"),d=n.resolveComponent("b-scrollbar");return n.openBlock(),n.createBlock(d,{key:e.menuId,tag:"ul",role:"menu",class:n.normalizeClass(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],"data-test-name":"cascader-menu","data-test-variant":"","data-test-state":"",onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.nodes,u=>(n.openBlock(),n.createBlock(s,{key:u.uid,node:u,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.e("empty-text"))},[n.createVNode(c,{size:"14",class:n.normalizeClass(e.ns.is("loading"))},{default:n.withCtx(()=>[n.createVNode(l)]),_:1},8,["class"]),n.createTextVNode(" "+n.toDisplayString(e.t("b.cascader.loading")),1)],2)):e.isEmpty?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.e("empty-text"))},n.toDisplayString(e.t("b.cascader.noData")),3)):e.panel?.isHoverMenu?(n.openBlock(),n.createElementBlock("svg",{key:2,ref:"hoverZone",class:n.normalizeClass(e.ns.e("hover-zone"))},null,2)):n.createCommentVNode("v-if",!0)]),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var EX=Q(kX,[["render",SX],["__file","menu.vue"]]);let BX=0;const NX=e=>{const t=[e];let{parent:o}=e;for(;o;)t.unshift(o),o=o.parent;return t};class Bd{constructor(t,o,r,a=!1){this.data=t,this.config=o,this.parent=r,this.root=a,this.uid=BX++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:s,children:l}=o,c=t[l],d=NX(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[s],this.pathNodes=d,this.pathValues=d.map(u=>u.value),this.pathLabels=d.map(u=>u.label),this.childrenData=c,this.children=(c||[]).map(u=>new Bd(u,o,this)),this.loaded=!o.lazy||this.isLeaf||!Kn(c)}get isDisabled(){const{data:t,parent:o,config:r}=this,{disabled:a,checkStrictly:i}=r;return(nt(a)?a(t,this):!!t[a])||!i&&o?.isDisabled}get isLeaf(){const{data:t,config:o,childrenData:r,loaded:a}=this,{lazy:i,leaf:s}=o,l=nt(s)?s(t,this):t[s];return Vt(l)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:o,children:r}=this,a=new Bd(t,this.config,this);return Array.isArray(o)?o.push(t):this.childrenData=[t],r.push(a),a}calcText(t,o){const r=t?this.pathLabels.join(o):this.label;return this.text=r,r}broadcast(t,...o){const r=`onParent${jn(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...o),a[r]&&a[r](...o))})}emit(t,...o){const{parent:r}=this,a=`onChild${jn(t)}`;r&&(r[a]&&r[a](...o),r.emit(t,...o))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,o=t.filter(a=>!a.isDisabled),r=o.length?o.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const o=this.children.length,r=this.children.reduce((a,i)=>{const s=i.checked?1:i.indeterminate?.5:0;return a+s},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==o&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:o,multiple:r}=this.config;o||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}var im=Bd;const sm=(e,t)=>e.reduce((o,r)=>(r.isLeaf?o.push(r):(!t&&o.push(r),o=o.concat(sm(r.children,t))),o),[]);class n6{constructor(t,o){this.config=o;const r=(t||[]).map(a=>new im(a,this.config));this.nodes=r,this.allNodes=sm(r,!1),this.leafNodes=sm(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,o){const r=o?o.appendChild(t):new im(t,this.config);o||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,o){t.forEach(r=>this.appendNode(r,o))}getNodeByValue(t,o=!1){return!t&&t!==0?null:this.getFlattedNodes(o).find(a=>Bn(a.value,t)||Bn(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>Bn(t.value,r)&&t.level===a)||null}}const lm={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},o6={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:mt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},r6=e=>n.computed(()=>({...o6,...e.props})),a6=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},_X=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Zb(e)&&e.click()},TX=(e,t)=>{const o=t.slice(0),r=o.map(i=>i.uid),a=e.reduce((i,s)=>{const l=r.indexOf(s.uid);return l>-1&&(i.push(s),o.splice(l,1),r.splice(l,1)),i},[]);return a.push(...o),a},AX=n.defineComponent({name:"BCascaderPanel",components:{BCascaderMenu:EX},props:{...lm,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Pe,ct,"close","expand-change"],setup(e,{emit:t,slots:o}){let r=!1;const a=G("cascader"),i=r6(e);let s=null;const l=n.ref(!0),c=n.ref([]),d=n.ref(null),u=n.ref([]),f=n.ref(null),h=n.ref([]),p=n.computed(()=>i.value.expandTrigger==="hover"),m=n.computed(()=>e.renderLabel||o.default),g=()=>{const{options:x}=e,v=i.value;r=!1,s=new n6(x,v),u.value=[s.getNodes()],v.lazy&&Kn(e.options)?(l.value=!1,y(void 0,O=>{O&&(s=new n6(O,v),u.value=[s.getNodes()]),l.value=!0,N(!1,!0)})):N(!1,!0)},y=(x,v)=>{const O=i.value;x=x||new im({},O,void 0,!0),x.loading=!0;const I=F=>{const M=x,z=M.root?null:M;F&&s?.appendNodes(F,z),M.loading=!1,M.loaded=!0,M.childrenData=M.childrenData||[],v&&v(F)};O.lazyLoad(x,I)},w=(x,v)=>{const{level:O}=x,I=u.value.slice(0,O);let F;x.isLeaf?F=x.pathNodes[O-2]:(F=x,I.push(x.children)),f.value?.uid!==F?.uid&&(f.value=x,u.value=I,!v&&t("expand-change",x?.pathValues||[]))},$=(x,v,O=!0)=>{const{checkStrictly:I,multiple:F}=i.value,M=h.value[0];r=!0,!F&&M?.doCheck(!1),x.doCheck(v),E(),O&&!F&&!I&&t("close"),!O&&!F&&!I&&C(x)},C=x=>{!x||(x=x.parent,C(x),x&&w(x))},b=x=>s?.getFlattedNodes(x),k=x=>b(x)?.filter(v=>v.checked!==!1),S=()=>{h.value.forEach(x=>x.doCheck(!1)),E()},E=()=>{const{checkStrictly:x,multiple:v}=i.value,O=h.value,I=k(!x),F=TX(O,I),M=F.map(z=>z.valueByOption);h.value=F,d.value=v?M:M[0]??null},N=(x=!1,v=!1)=>{const{modelValue:O}=e,{lazy:I,multiple:F,checkStrictly:M}=i.value,z=!M;if(!(!l.value||r||!v&&Bn(O,d.value)))if(I&&!x){const L=TC(eb(lr(O))).map(W=>s?.getNodeByValue(W)).filter(W=>!!W&&!W.loaded&&!W.loading);L.length?L.forEach(W=>{y(W,()=>N(!1,v))}):N(!0,v)}else{const B=F?lr(O):[O],L=TC(B.map(W=>s?.getNodeByValue(W,z)));_(L,v),d.value=O}},_=(x,v=!0)=>{const{checkStrictly:O}=i.value,I=h.value,F=x.filter(B=>!!B&&(O||B.isLeaf)),M=s?.getSameNode(f.value),z=v&&M||F[0];z?z.pathNodes.forEach(B=>w(B,!0)):f.value=null,I.forEach(B=>B.doCheck(!1)),F.forEach(B=>B.doCheck(!0)),h.value=F,n.nextTick(T)},T=()=>{!Re||c.value.forEach(x=>{const v=x?.$el;if(v){const O=v.querySelector(`.${a.namespace.value}-scrollbar__wrap`),I=v.querySelector(`.${a.b("node")}.${a.is("active")}`)||v.querySelector(`.${a.b("node")}.in-active-path`);pC(O,I)}})},P=x=>{const v=x.target,{code:O}=x;switch(O){case de.up:case de.down:{x.preventDefault();const I=O===de.up?-1:1;Ic(Xb(v,I,`.${a.b("node")}[tabindex="-1"]`));break}case de.left:{x.preventDefault();const F=c.value[a6(v)-1]?.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Ic(F);break}case de.right:{x.preventDefault();const F=c.value[a6(v)+1]?.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Ic(F);break}case de.enter:_X(v);break}};return n.provide(Ed,n.reactive({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:p,initialLoaded:l,renderLabelFn:m,lazyLoad:y,expandNode:w,handleCheckChange:$})),n.watch([i,()=>e.options],g,{deep:!0,immediate:!0}),n.watch(()=>e.modelValue,()=>{r=!1,N()}),n.watch(d,x=>{Bn(x,e.modelValue)||(t(Pe,x),t(ct,x))}),n.onBeforeUpdate(()=>c.value=[]),n.onMounted(()=>!Kn(e.modelValue)&&N()),{ns:a,menuList:c,menus:u,checkedNodes:h,handleKeyDown:P,handleCheckChange:$,getFlattedNodes:b,getCheckedNodes:k,clearCheckedNodes:S,calculateCheckedValue:E,scrollToExpandingNode:T}}});function xX(e,t,o,r,a,i){const s=n.resolveComponent("b-cascader-menu");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("panel"),e.ns.is("bordered",e.border)]),"data-test-name":"cascader-panel","data-test-variant":"","data-test-state":"",onKeydown:t[0]||(t[0]=(...l)=>e.handleKeyDown&&e.handleKeyDown(...l))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus,(l,c)=>(n.openBlock(),n.createBlock(s,{key:c,ref_for:!0,ref:d=>e.menuList[c]=d,index:c,nodes:[...l]},null,8,["index","nodes"]))),128))],34)}var Nd=Q(AX,[["render",xX],["__file","index.vue"]]);Nd.install=e=>{e.component(Nd.name,Nd)};const i6=Nd,s6=i6,_d=ne({closable:Boolean,type:{type:String,values:["success","info","warning","danger","teal","green","yellow","orange","blue","red",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:ba,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),l6={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},MX=n.defineComponent({name:"BTag"}),PX=n.defineComponent({...MX,props:_d,emits:l6,setup(e,{emit:t}){const o=e,r=At(),a=G("tag"),i=n.computed(()=>{const{type:c,hit:d,effect:u,closable:f,round:h}=o;return[a.b(),a.is("closable",f),a.m(c),a.m(r.value),a.m(u),a.is("hit",d),a.is("round",h)]}),s=c=>{t("close",c)},l=c=>{t("click",c)};return(c,d)=>c.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle({backgroundColor:c.color}),"data-test-name":"tag","data-test-variant":"","data-test-state":"",onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(c.$slots,"default")],2),c.closable?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(Nn))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(a).namespace.value}-zoom-in-center`,appear:""},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle({backgroundColor:c.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(c.$slots,"default")],2),c.closable?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(Nn))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var vX=Q(PX,[["__file","tag.vue"]]);const Ni=Ne(vX),OX=36,IX={large:44,default:36,small:32},DX={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:o}=e;["right","left","bottom","top"].includes(o)||(t.arrow.x=35)},requires:["arrow"]}]},RX="BCascader",LX=n.defineComponent({name:RX,components:{BCascaderPanel:i6,BInput:hn,BTooltip:Xt,BScrollbar:bo,BTag:Ni,BIcon:pe,Clear:fi,Check:uo,ActionDown:di},directives:{Clickoutside:Bi},props:{...lm,size:{type:String,validator:hi},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:Ft.teleported,tagType:{..._d.type,default:"info"},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:[Pe,ct,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let o=0,r=0;const a=G("cascader"),i=G("input"),{t:s}=He(),{form:l,formItem:c}=mo(),d=n.ref(null),u=n.ref(null),f=n.ref(null),h=n.ref(null),p=n.ref(null),m=n.ref(!1),g=n.ref(!1),y=n.ref(!1),w=n.ref(""),$=n.ref(""),C=n.ref([]),b=n.ref([]),k=n.ref([]),S=n.ref(!1),E=n.computed(()=>e.disabled||l?.disabled),N=n.computed(()=>e.placeholder||s("b.cascader.placeholder")),_=At(),T=n.computed(()=>["small"].includes(_.value)?"small":"default"),P=n.computed(()=>!!e.props.multiple),x=n.computed(()=>!e.filterable||P.value),v=n.computed(()=>P.value?$.value:w.value),O=n.computed(()=>h.value?.checkedNodes||[]),I=n.computed(()=>!e.clearable||E.value||y.value||!g.value?!1:!!O.value.length),F=n.computed(()=>{const{showAllLevels:ee,separator:le}=e,Ce=O.value;return Ce.length?P.value?" ":Ce[0].calcText(ee,le):""}),M=n.computed({get(){return e.modelValue},set(ee){t(Pe,ee),t(ct,ee),e.validateEvent&&c?.validate("change").catch(le=>void 0)}}),z=n.computed(()=>d.value?.popperRef?.contentRef),B=ee=>{E.value||(ee=ee??!m.value,ee!==m.value&&(m.value=ee,u.value?.input?.setAttribute("aria-expanded",`${ee}`),ee?(L(),n.nextTick(h.value?.scrollToExpandingNode)):e.filterable&&Ee(),t("visible-change",ee)))},L=()=>{n.nextTick(()=>{d.value?.updatePopper()})},W=()=>{y.value=!1},R=ee=>{const{showAllLevels:le,separator:Ce}=e;return{node:ee,key:ee.uid,text:ee.calcText(le,Ce),hitState:!1,closable:!E.value&&!ee.isDisabled,isCollapseTag:!1}},H=ee=>{const le=ee.node;le.doCheck(!1),h.value?.calculateCheckedValue(),t("remove-tag",le.valueByOption)},j=()=>{if(!P.value)return;const ee=O.value,le=[],Ce=[];if(ee.forEach(X=>Ce.push(R(X))),b.value=Ce,ee.length){const[X,...ie]=ee,we=ie.length;le.push(R(X)),we&&(e.collapseTags?le.push({key:-1,text:`+ ${we}`,closable:!1,isCollapseTag:!0}):ie.forEach(fe=>le.push(R(fe))))}C.value=le},U=()=>{const{filterMethod:ee,showAllLevels:le,separator:Ce}=e,X=h.value?.getFlattedNodes(!e.props.checkStrictly)?.filter(ie=>ie.isDisabled?!1:(ie.calcText(le,Ce),ee(ie,v.value)));P.value&&(C.value.forEach(ie=>{ie.hitState=!1}),b.value.forEach(ie=>{ie.hitState=!1})),y.value=!0,k.value=X,L()},re=()=>{let ee;y.value&&p.value?ee=p.value.$el.querySelector(`.${a.e("suggestion-item")}`):ee=h.value?.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`),ee&&(ee.focus(),!y.value&&ee.click())},J=()=>{const ee=u.value?.input,le=f.value,Ce=p.value?.$el;if(!(!Re||!ee)){if(Ce){const X=Ce.querySelector(`.${a.e("suggestion-list")}`);X.style.minWidth=`${ee.offsetWidth}px`}if(le){const{offsetHeight:X}=le,ie=C.value.length>0?`${Math.max(X+6,o)}px`:`${o}px`;ee.style.height=ie,L()}}},Y=ee=>h.value?.getCheckedNodes(ee),q=ee=>{L(),t("expand-change",ee)},te=ee=>{const le=ee.target?.value;if(ee.type==="compositionend")S.value=!1,n.nextTick(()=>me(le));else{const Ce=le[le.length-1]||"";S.value=!jc(Ce)}},ue=ee=>{if(!S.value)switch(ee.code){case de.enter:B();break;case de.down:B(!0),n.nextTick(re),ee.preventDefault();break;case de.esc:m.value===!0&&(ee.preventDefault(),ee.stopPropagation(),B(!1));break;case de.tab:B(!1);break}},ge=()=>{h.value?.clearCheckedNodes(),!m.value&&e.filterable&&Ee(),B(!1)},Ee=()=>{const{value:ee}=F;w.value=ee,$.value=ee},Te=ee=>{const{checked:le}=ee;P.value?h.value?.handleCheckChange(ee,!le,!1):(!le&&h.value?.handleCheckChange(ee,!0,!1),B(!1))},ye=ee=>{const le=ee.target,{code:Ce}=ee;switch(Ce){case de.up:case de.down:{const X=Ce===de.up?-1:1;Ic(Xb(le,X,`.${a.e("suggestion-item")}[tabindex="-1"]`));break}case de.enter:le.click();break}},oe=()=>{const ee=C.value,le=ee[ee.length-1];r=$.value?0:r+1,!(!le||!r||e.collapseTags&&ee.length>1)&&(le.hitState?H(le):le.hitState=!0)},se=Zt(()=>{const{value:ee}=v;if(!ee)return;const le=e.beforeFilter(ee);Mh(le)?le.then(U).catch(()=>{}):le!==!1?U():W()},e.debounce),me=(ee,le)=>{!m.value&&B(!0),!le?.isComposing&&(ee?se():W())};return n.watch(y,L),n.watch([O,E],j),n.watch(C,()=>{n.nextTick(()=>J())}),n.watch(F,ee=>w.value=ee,{immediate:!0}),n.onMounted(()=>{const ee=u.value?.$el;o=ee?.offsetHeight||IX[_.value]||OX,an(ee,J)}),{popperOptions:DX,tooltipRef:d,popperPaneRef:z,input:u,tagWrapper:f,panel:h,suggestionPanel:p,popperVisible:m,inputHover:g,inputPlaceholder:N,filtering:y,presentText:F,checkedValue:M,inputValue:w,searchInputValue:$,presentTags:C,allPresentTags:b,suggestions:k,isDisabled:E,isOnComposition:S,realSize:_,tagSize:T,multiple:P,readonly:x,clearBtnVisible:I,nsCascader:a,nsInput:i,t:s,togglePopperVisible:B,hideSuggestionPanel:W,deleteTag:H,focusFirstNode:re,getCheckedNodes:Y,handleExpandChange:q,handleKeyDown:ue,handleComposition:te,handleClear:ge,handleSuggestionClick:Te,handleSuggestionKeyDown:ye,handleDelete:oe,handleInput:me}}}),VX={key:0},FX=["placeholder"],zX=["onClick"];function HX(e,t,o,r,a,i){const s=n.resolveComponent("Clear"),l=n.resolveComponent("b-icon"),c=n.resolveComponent("action-down"),d=n.resolveComponent("b-input"),u=n.resolveComponent("b-tag"),f=n.resolveComponent("b-tooltip"),h=n.resolveComponent("b-cascader-panel"),p=n.resolveComponent("check"),m=n.resolveComponent("b-scrollbar"),g=n.resolveDirective("clickoutside");return n.openBlock(),n.createBlock(f,{ref:"tooltipRef",visible:e.popperVisible,teleported:e.teleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:n.normalizeStyle(e.$attrs.style),"data-test-name":"cascader","data-test-variant":"","data-test-state":"",onClick:t[11]||(t[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:t[12]||(t[12]=(...y)=>e.handleKeyDown&&e.handleKeyDown(...y)),onMouseenter:t[13]||(t[13]=y=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=y=>e.inputHover=!1)},[n.createVNode(d,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=y=>e.inputValue=y),placeholder:e.searchInputValue?"":e.inputPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:n.normalizeClass(e.nsCascader.is("focus",e.popperVisible)),"suffix-class":"is-action",onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=y=>e.$emit("focus",y)),onBlur:t[3]||(t[3]=y=>e.$emit("blur",y)),onInput:e.handleInput},{suffix:n.withCtx(()=>[e.clearBtnVisible?(n.openBlock(),n.createBlock(l,{key:"clear",class:n.normalizeClass([e.nsInput.e("icon"),"icon-clear"]),onClick:n.withModifiers(e.handleClear,["stop"])},{default:n.withCtx(()=>[n.createVNode(s)]),_:1},8,["class","onClick"])):(n.openBlock(),n.createBlock(l,{key:"action-down",class:n.normalizeClass([e.nsInput.e("icon"),"icon-action-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=n.withModifiers(y=>e.togglePopperVisible(),["stop"]))},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"tagWrapper",class:n.normalizeClass(e.nsCascader.e("tags"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.presentTags,y=>(n.openBlock(),n.createBlock(u,{key:y.key,type:e.tagType,size:e.tagSize,hit:y.hitState,closable:y.closable,"disable-transitions":"",onClose:w=>e.deleteTag(y)},{default:n.withCtx(()=>[y.isCollapseTag===!1?(n.openBlock(),n.createElementBlock("span",VX,n.toDisplayString(y.text),1)):(n.openBlock(),n.createBlock(f,{key:1,teleported:!1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(y.text),1)]),content:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.nsCascader.e("collapse-tags"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.allPresentTags.slice(1),(w,$)=>(n.openBlock(),n.createElementBlock("div",{key:$,class:n.normalizeClass(e.nsCascader.e("collapse-tag"))},[(n.openBlock(),n.createBlock(u,{key:w.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:w.hitState,closable:w.closable,"disable-transitions":"",onClose:C=>e.deleteTag(w)},{default:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(w.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=y=>e.searchInputValue=y),type:"text",class:n.normalizeClass(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=y=>e.handleInput(e.searchInputValue,y)),onClick:t[6]||(t[6]=n.withModifiers(y=>e.togglePopperVisible(!0),["stop"])),onKeydown:t[7]||(t[7]=n.withKeys((...y)=>e.handleDelete&&e.handleDelete(...y),["delete"])),onCompositionstart:t[8]||(t[8]=(...y)=>e.handleComposition&&e.handleComposition(...y)),onCompositionupdate:t[9]||(t[9]=(...y)=>e.handleComposition&&e.handleComposition(...y)),onCompositionend:t[10]||(t[10]=(...y)=>e.handleComposition&&e.handleComposition(...y))},null,42,FX)),[[n.vModelText,e.searchInputValue]]):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0)],38)),[[g,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:n.withCtx(()=>[n.withDirectives(n.createVNode(h,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=y=>e.checkedValue=y),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=y=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[n.vShow,!e.filtering]]),e.filterable?n.withDirectives((n.openBlock(),n.createBlock(m,{key:0,ref:"suggestionPanel",tag:"ul",class:n.normalizeClass(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:n.withCtx(()=>[e.suggestions.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.suggestions,y=>(n.openBlock(),n.createElementBlock("li",{key:y.uid,class:n.normalizeClass([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",y.checked)]),tabindex:-1,onClick:w=>e.handleSuggestionClick(y)},[n.createElementVNode("span",null,n.toDisplayString(y.text),1),y.checked?(n.openBlock(),n.createBlock(l,{key:0},{default:n.withCtx(()=>[n.createVNode(p)]),_:1})):n.createCommentVNode("v-if",!0)],10,zX))),128)):n.renderSlot(e.$slots,"empty",{key:1},()=>[n.createElementVNode("li",{class:n.normalizeClass(e.nsCascader.e("empty-text"))},n.toDisplayString(e.t("b.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[n.vShow,e.filtering]]):n.createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var Td=Q(LX,[["render",HX],["__file","index.vue"]]);Td.install=e=>{e.component(Td.name,Td)};const c6=Td;function tl(e){return e+.5|0}const Wr=(e,t,o)=>Math.max(Math.min(e,o),t);function nl(e){return Wr(tl(e*2.55),0,255)}function Kr(e){return Wr(tl(e*255),0,255)}function hr(e){return Wr(tl(e/2.55)/100,0,1)}function d6(e){return Wr(tl(e*100),0,100)}const Xn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},cm=[..."0123456789ABCDEF"],WX=e=>cm[e&15],KX=e=>cm[(e&240)>>4]+cm[e&15],Ad=e=>(e&240)>>4===(e&15),jX=e=>Ad(e.r)&&Ad(e.g)&&Ad(e.b)&&Ad(e.a);function UX(e){var t=e.length,o;return e[0]==="#"&&(t===4||t===5?o={r:255&Xn[e[1]]*17,g:255&Xn[e[2]]*17,b:255&Xn[e[3]]*17,a:t===5?Xn[e[4]]*17:255}:(t===7||t===9)&&(o={r:Xn[e[1]]<<4|Xn[e[2]],g:Xn[e[3]]<<4|Xn[e[4]],b:Xn[e[5]]<<4|Xn[e[6]],a:t===9?Xn[e[7]]<<4|Xn[e[8]]:255})),o}const GX=(e,t)=>e<255?t(e):"";function YX(e){var t=jX(e)?WX:KX;return e?"#"+t(e.r)+t(e.g)+t(e.b)+GX(e.a,t):void 0}const qX=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function u6(e,t,o){const r=t*Math.min(o,1-o),a=(i,s=(i+e/30)%12)=>o-r*Math.max(Math.min(s-3,9-s,1),-1);return[a(0),a(8),a(4)]}function ZX(e,t,o){const r=(a,i=(a+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function XX(e,t,o){const r=u6(e,1,.5);let a;for(t+o>1&&(a=1/(t+o),t*=a,o*=a),a=0;a<3;a++)r[a]*=1-t-o,r[a]+=t;return r}function JX(e,t,o,r,a){return e===a?(t-o)/r+(t<o?6:0):t===a?(o-e)/r+2:(e-t)/r+4}function dm(e){const o=e.r/255,r=e.g/255,a=e.b/255,i=Math.max(o,r,a),s=Math.min(o,r,a),l=(i+s)/2;let c,d,u;return i!==s&&(u=i-s,d=l>.5?u/(2-i-s):u/(i+s),c=JX(o,r,a,u,i),c=c*60+.5),[c|0,d||0,l]}function um(e,t,o,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,o,r)).map(Kr)}function fm(e,t,o){return um(u6,e,t,o)}function QX(e,t,o){return um(XX,e,t,o)}function eJ(e,t,o){return um(ZX,e,t,o)}function f6(e){return(e%360+360)%360}function tJ(e){const t=qX.exec(e);let o=255,r;if(!t)return;t[5]!==r&&(o=t[6]?nl(+t[5]):Kr(+t[5]));const a=f6(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=QX(a,i,s):t[1]==="hsv"?r=eJ(a,i,s):r=fm(a,i,s),{r:r[0],g:r[1],b:r[2],a:o}}function nJ(e,t){var o=dm(e);o[0]=f6(o[0]+t),o=fm(o),e.r=o[0],e.g=o[1],e.b=o[2]}function oJ(e){if(!e)return;const t=dm(e),o=t[0],r=d6(t[1]),a=d6(t[2]);return e.a<255?`hsla(${o}, ${r}%, ${a}%, ${hr(e.a)})`:`hsl(${o}, ${r}%, ${a}%)`}const h6={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},p6={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function rJ(){const e={},t=Object.keys(p6),o=Object.keys(h6);let r,a,i,s,l;for(r=0;r<t.length;r++){for(s=l=t[r],a=0;a<o.length;a++)i=o[a],l=l.replace(i,h6[i]);i=parseInt(p6[s],16),e[l]=[i>>16&255,i>>8&255,i&255]}return e}let xd;function aJ(e){xd||(xd=rJ(),xd.transparent=[0,0,0,0]);const t=xd[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const iJ=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function sJ(e){const t=iJ.exec(e);let o=255,r,a,i;if(!!t){if(t[7]!==r){const s=+t[7];o=t[8]?nl(s):Wr(s*255,0,255)}return r=+t[1],a=+t[3],i=+t[5],r=255&(t[2]?nl(r):Wr(r,0,255)),a=255&(t[4]?nl(a):Wr(a,0,255)),i=255&(t[6]?nl(i):Wr(i,0,255)),{r,g:a,b:i,a:o}}}function lJ(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${hr(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const hm=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,_i=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function cJ(e,t,o){const r=_i(hr(e.r)),a=_i(hr(e.g)),i=_i(hr(e.b));return{r:Kr(hm(r+o*(_i(hr(t.r))-r))),g:Kr(hm(a+o*(_i(hr(t.g))-a))),b:Kr(hm(i+o*(_i(hr(t.b))-i))),a:e.a+o*(t.a-e.a)}}function Md(e,t,o){if(e){let r=dm(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*o,t===0?360:1)),r=fm(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function m6(e,t){return e&&Object.assign(t||{},e)}function g6(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Kr(e[3]))):(t=m6(e,{r:0,g:0,b:0,a:1}),t.a=Kr(t.a)),t}function dJ(e){return e.charAt(0)==="r"?sJ(e):tJ(e)}class ol{constructor(t){if(t instanceof ol)return t;const o=typeof t;let r;o==="object"?r=g6(t):o==="string"&&(r=UX(t)||aJ(t)||dJ(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=m6(this._rgb);return t&&(t.a=hr(t.a)),t}set rgb(t){this._rgb=g6(t)}rgbString(){return this._valid?lJ(this._rgb):void 0}hexString(){return this._valid?YX(this._rgb):void 0}hslString(){return this._valid?oJ(this._rgb):void 0}mix(t,o){if(t){const r=this.rgb,a=t.rgb;let i;const s=o===i?.5:o,l=2*s-1,c=r.a-a.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;i=1-d,r.r=255&d*r.r+i*a.r+.5,r.g=255&d*r.g+i*a.g+.5,r.b=255&d*r.b+i*a.b+.5,r.a=s*r.a+(1-s)*a.a,this.rgb=r}return this}interpolate(t,o){return t&&(this._rgb=cJ(this._rgb,t._rgb,o)),this}clone(){return new ol(this.rgb)}alpha(t){return this._rgb.a=Kr(t),this}clearer(t){const o=this._rgb;return o.a*=1-t,this}greyscale(){const t=this._rgb,o=tl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=o,this}opaquer(t){const o=this._rgb;return o.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Md(this._rgb,2,t),this}darken(t){return Md(this._rgb,2,-t),this}saturate(t){return Md(this._rgb,1,t),this}desaturate(t){return Md(this._rgb,1,-t),this}rotate(t){return nJ(this._rgb,t),this}}/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function pr(){}const uJ=(()=>{let e=0;return()=>e++})();function Qe(e){return e===null||typeof e>"u"}function bt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function qe(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Bt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Mn(e,t){return Bt(e)?e:t}function Ke(e,t){return typeof e>"u"?t:e}const fJ=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,y6=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function gt(e,t,o){if(e&&typeof e.call=="function")return e.apply(o,t)}function dt(e,t,o,r){let a,i,s;if(bt(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(o,e[a],a);else for(a=0;a<i;a++)t.call(o,e[a],a);else if(qe(e))for(s=Object.keys(e),i=s.length,a=0;a<i;a++)t.call(o,e[s[a]],s[a])}function Pd(e,t){let o,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(o=0,r=e.length;o<r;++o)if(a=e[o],i=t[o],a.datasetIndex!==i.datasetIndex||a.index!==i.index)return!1;return!0}function vd(e){if(bt(e))return e.map(vd);if(qe(e)){const t=Object.create(null),o=Object.keys(e),r=o.length;let a=0;for(;a<r;++a)t[o[a]]=vd(e[o[a]]);return t}return e}function b6(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function hJ(e,t,o,r){if(!b6(e))return;const a=t[e],i=o[e];qe(a)&&qe(i)?rl(a,i,r):t[e]=vd(i)}function rl(e,t,o){const r=bt(t)?t:[t],a=r.length;if(!qe(e))return e;o=o||{};const i=o.merger||hJ;let s;for(let l=0;l<a;++l){if(s=r[l],!qe(s))continue;const c=Object.keys(s);for(let d=0,u=c.length;d<u;++d)i(c[d],e,s,o)}return e}function al(e,t){return rl(e,t,{merger:pJ})}function pJ(e,t,o){if(!b6(e))return;const r=t[e],a=o[e];qe(r)&&qe(a)?al(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=vd(a))}const C6={"":e=>e,x:e=>e.x,y:e=>e.y};function mJ(e){const t=e.split("."),o=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(o.push(r),r="");return o}function gJ(e){const t=mJ(e);return o=>{for(const r of t){if(r==="")break;o=o&&o[r]}return o}}function jr(e,t){return(C6[t]||(C6[t]=gJ(t)))(e)}function pm(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Jn=e=>typeof e<"u",Ur=e=>typeof e=="function",w6=(e,t)=>{if(e.size!==t.size)return!1;for(const o of e)if(!t.has(o))return!1;return!0};function yJ(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const kt=Math.PI,Ct=2*kt,bJ=Ct+kt,Od=Number.POSITIVE_INFINITY,CJ=kt/180,Nt=kt/2,_a=kt/4,$6=kt*2/3,Gr=Math.log10,Fo=Math.sign;function il(e,t,o){return Math.abs(e-t)<o}function k6(e){const t=Math.round(e);e=il(e,t,e/1e3)?t:e;const o=Math.pow(10,Math.floor(Gr(e))),r=e/o;return(r<=1?1:r<=2?2:r<=5?5:10)*o}function wJ(e){const t=[],o=Math.sqrt(e);let r;for(r=1;r<o;r++)e%r===0&&(t.push(r),t.push(e/r));return o===(o|0)&&t.push(o),t.sort((a,i)=>a-i).pop(),t}function Ti(e){return!isNaN(parseFloat(e))&&isFinite(e)}function $J(e,t){const o=Math.round(e);return o-t<=e&&o+t>=e}function S6(e,t,o){let r,a,i;for(r=0,a=e.length;r<a;r++)i=e[r][o],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function wo(e){return e*(kt/180)}function mm(e){return e*(180/kt)}function E6(e){if(!Bt(e))return;let t=1,o=0;for(;Math.round(e*t)/t!==e;)t*=10,o++;return o}function B6(e,t){const o=t.x-e.x,r=t.y-e.y,a=Math.sqrt(o*o+r*r);let i=Math.atan2(r,o);return i<-.5*kt&&(i+=Ct),{angle:i,distance:a}}function gm(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function kJ(e,t){return(e-t+bJ)%Ct-kt}function Pn(e){return(e%Ct+Ct)%Ct}function sl(e,t,o,r){const a=Pn(e),i=Pn(t),s=Pn(o),l=Pn(i-a),c=Pn(s-a),d=Pn(a-i),u=Pn(a-s);return a===i||a===s||r&&i===s||l>c&&d<u}function zt(e,t,o){return Math.max(t,Math.min(o,e))}function SJ(e){return zt(e,-32768,32767)}function mr(e,t,o,r=1e-6){return e>=Math.min(t,o)-r&&e<=Math.max(t,o)+r}function ym(e,t,o){o=o||(s=>e[s]<t);let r=e.length-1,a=0,i;for(;r-a>1;)i=a+r>>1,o(i)?a=i:r=i;return{lo:a,hi:r}}const gr=(e,t,o,r)=>ym(e,o,r?a=>{const i=e[a][t];return i<o||i===o&&e[a+1][t]===o}:a=>e[a][t]<o),EJ=(e,t,o)=>ym(e,o,r=>e[r][t]>=o);function BJ(e,t,o){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>o;)a--;return r>0||a<e.length?e.slice(r,a):e}const N6=["push","pop","shift","splice","unshift"];function NJ(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),N6.forEach(o=>{const r="_onData"+pm(o),a=e[o];Object.defineProperty(e,o,{configurable:!0,enumerable:!1,value(...i){const s=a.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function _6(e,t){const o=e._chartjs;if(!o)return;const r=o.listeners,a=r.indexOf(t);a!==-1&&r.splice(a,1),!(r.length>0)&&(N6.forEach(i=>{delete e[i]}),delete e._chartjs)}function T6(e){const t=new Set;let o,r;for(o=0,r=e.length;o<r;++o)t.add(e[o]);return t.size===r?e:Array.from(t)}const A6=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function x6(e,t){let o=[],r=!1;return function(...a){o=a,r||(r=!0,A6.call(window,()=>{r=!1,e.apply(t,o)}))}}function _J(e,t){let o;return function(...r){return t?(clearTimeout(o),o=setTimeout(e,t,r)):e.apply(this,r),t}}const bm=e=>e==="start"?"left":e==="end"?"right":"center",Jt=(e,t,o)=>e==="start"?t:e==="end"?o:(t+o)/2,TJ=(e,t,o,r)=>e===(r?"left":"right")?o:e==="center"?(t+o)/2:t;function M6(e,t,o){const r=t.length;let a=0,i=r;if(e._sorted){const{iScale:s,_parsed:l}=e,c=s.axis,{min:d,max:u,minDefined:f,maxDefined:h}=s.getUserBounds();f&&(a=zt(Math.min(gr(l,s.axis,d).lo,o?r:gr(t,c,s.getPixelForValue(d)).lo),0,r-1)),h?i=zt(Math.max(gr(l,s.axis,u,!0).hi+1,o?0:gr(t,c,s.getPixelForValue(u),!0).hi+1),a,r)-a:i=r-a}return{start:a,count:i}}function P6(e){const{xScale:t,yScale:o,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:o.min,ymax:o.max};if(!r)return e._scaleRanges=a,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==o.min||r.ymax!==o.max;return Object.assign(r,a),i}const Id=e=>e===0||e===1,v6=(e,t,o)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ct/o)),O6=(e,t,o)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ct/o)+1,ll={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Nt)+1,easeOutSine:e=>Math.sin(e*Nt),easeInOutSine:e=>-.5*(Math.cos(kt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Id(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Id(e)?e:v6(e,.075,.3),easeOutElastic:e=>Id(e)?e:O6(e,.075,.3),easeInOutElastic(e){return Id(e)?e:e<.5?.5*v6(e*2,.1125,.45):.5+.5*O6(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ll.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?ll.easeInBounce(e*2)*.5:ll.easeOutBounce(e*2-1)*.5+.5};function I6(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function D6(e){return I6(e)?e:new ol(e)}function Cm(e){return I6(e)?e:new ol(e).saturate(.5).darken(.1).hexString()}const AJ=["x","y","borderWidth","radius","tension"],xJ=["color","borderColor","backgroundColor"];function MJ(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:xJ},numbers:{type:"number",properties:AJ}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function PJ(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const R6=new Map;function vJ(e,t){t=t||{};const o=e+JSON.stringify(t);let r=R6.get(o);return r||(r=new Intl.NumberFormat(e,t),R6.set(o,r)),r}function cl(e,t,o){return vJ(t,o).format(e)}const L6={values(e){return bt(e)?e:""+e},numeric(e,t,o){if(e===0)return"0";const r=this.chart.options.locale;let a,i=e;if(o.length>1){const d=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(d<1e-4||d>1e15)&&(a="scientific"),i=OJ(e,o)}const s=Gr(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:a,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),cl(e,r,c)},logarithmic(e,t,o){if(e===0)return"0";const r=o[t].significand||e/Math.pow(10,Math.floor(Gr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*o.length?L6.numeric.call(this,e,t,o):""}};function OJ(e,t){let o=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(o)>=1&&e!==Math.floor(e)&&(o=e-Math.floor(e)),o}var dl={formatters:L6};function IJ(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,o)=>o.lineWidth,tickColor:(t,o)=>o.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:dl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ta=Object.create(null),wm=Object.create(null);function ul(e,t){if(!t)return e;const o=t.split(".");for(let r=0,a=o.length;r<a;++r){const i=o[r];e=e[i]||(e[i]=Object.create(null))}return e}function $m(e,t,o){return typeof t=="string"?rl(ul(e,t),o):rl(ul(e,""),t)}class DJ{constructor(t,o){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,a)=>Cm(a.backgroundColor),this.hoverBorderColor=(r,a)=>Cm(a.borderColor),this.hoverColor=(r,a)=>Cm(a.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(o)}set(t,o){return $m(this,t,o)}get(t){return ul(this,t)}describe(t,o){return $m(wm,t,o)}override(t,o){return $m(Ta,t,o)}route(t,o,r,a){const i=ul(this,t),s=ul(this,r),l="_"+o;Object.defineProperties(i,{[l]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const c=this[l],d=s[a];return qe(c)?Object.assign({},d,c):Ke(c,d)},set(c){this[l]=c}}})}apply(t){t.forEach(o=>o(this))}}var _t=new DJ({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[MJ,PJ,IJ]);function RJ(e){return!e||Qe(e.size)||Qe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Dd(e,t,o,r,a){let i=t[a];return i||(i=t[a]=e.measureText(a).width,o.push(a)),i>r&&(r=i),r}function LJ(e,t,o,r){r=r||{};let a=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const l=o.length;let c,d,u,f,h;for(c=0;c<l;c++)if(f=o[c],f!=null&&bt(f)!==!0)s=Dd(e,a,i,s,f);else if(bt(f))for(d=0,u=f.length;d<u;d++)h=f[d],h!=null&&!bt(h)&&(s=Dd(e,a,i,s,h));e.restore();const p=i.length/2;if(p>o.length){for(c=0;c<p;c++)delete a[i[c]];i.splice(0,p)}return s}function Aa(e,t,o){const r=e.currentDevicePixelRatio,a=o!==0?Math.max(o/2,.5):0;return Math.round((t-a)*r)/r+a}function V6(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function km(e,t,o,r){F6(e,t,o,r,null)}function F6(e,t,o,r,a){let i,s,l,c,d,u,f,h;const p=t.pointStyle,m=t.rotation,g=t.radius;let y=(m||0)*CJ;if(p&&typeof p=="object"&&(i=p.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(o,r),e.rotate(y),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),p){default:a?e.ellipse(o,r,a/2,g,0,0,Ct):e.arc(o,r,g,0,Ct),e.closePath();break;case"triangle":u=a?a/2:g,e.moveTo(o+Math.sin(y)*u,r-Math.cos(y)*g),y+=$6,e.lineTo(o+Math.sin(y)*u,r-Math.cos(y)*g),y+=$6,e.lineTo(o+Math.sin(y)*u,r-Math.cos(y)*g),e.closePath();break;case"rectRounded":d=g*.516,c=g-d,s=Math.cos(y+_a)*c,f=Math.cos(y+_a)*(a?a/2-d:c),l=Math.sin(y+_a)*c,h=Math.sin(y+_a)*(a?a/2-d:c),e.arc(o-f,r-l,d,y-kt,y-Nt),e.arc(o+h,r-s,d,y-Nt,y),e.arc(o+f,r+l,d,y,y+Nt),e.arc(o-h,r+s,d,y+Nt,y+kt),e.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*g,u=a?a/2:c,e.rect(o-u,r-c,2*u,2*c);break}y+=_a;case"rectRot":f=Math.cos(y)*(a?a/2:g),s=Math.cos(y)*g,l=Math.sin(y)*g,h=Math.sin(y)*(a?a/2:g),e.moveTo(o-f,r-l),e.lineTo(o+h,r-s),e.lineTo(o+f,r+l),e.lineTo(o-h,r+s),e.closePath();break;case"crossRot":y+=_a;case"cross":f=Math.cos(y)*(a?a/2:g),s=Math.cos(y)*g,l=Math.sin(y)*g,h=Math.sin(y)*(a?a/2:g),e.moveTo(o-f,r-l),e.lineTo(o+f,r+l),e.moveTo(o+h,r-s),e.lineTo(o-h,r+s);break;case"star":f=Math.cos(y)*(a?a/2:g),s=Math.cos(y)*g,l=Math.sin(y)*g,h=Math.sin(y)*(a?a/2:g),e.moveTo(o-f,r-l),e.lineTo(o+f,r+l),e.moveTo(o+h,r-s),e.lineTo(o-h,r+s),y+=_a,f=Math.cos(y)*(a?a/2:g),s=Math.cos(y)*g,l=Math.sin(y)*g,h=Math.sin(y)*(a?a/2:g),e.moveTo(o-f,r-l),e.lineTo(o+f,r+l),e.moveTo(o+h,r-s),e.lineTo(o-h,r+s);break;case"line":s=a?a/2:Math.cos(y)*g,l=Math.sin(y)*g,e.moveTo(o-s,r-l),e.lineTo(o+s,r+l);break;case"dash":e.moveTo(o,r),e.lineTo(o+Math.cos(y)*(a?a/2:g),r+Math.sin(y)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function fl(e,t,o){return o=o||.5,!t||e&&e.x>t.left-o&&e.x<t.right+o&&e.y>t.top-o&&e.y<t.bottom+o}function Rd(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ld(e){e.restore()}function VJ(e,t,o,r,a){if(!t)return e.lineTo(o.x,o.y);if(a==="middle"){const i=(t.x+o.x)/2;e.lineTo(i,t.y),e.lineTo(i,o.y)}else a==="after"!=!!r?e.lineTo(t.x,o.y):e.lineTo(o.x,t.y);e.lineTo(o.x,o.y)}function FJ(e,t,o,r){if(!t)return e.lineTo(o.x,o.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?o.cp2x:o.cp1x,r?o.cp2y:o.cp1y,o.x,o.y)}function xa(e,t,o,r,a,i={}){const s=bt(t)?t:[t],l=i.strokeWidth>0&&i.strokeColor!=="";let c,d;for(e.save(),e.font=a.string,zJ(e,i),c=0;c<s.length;++c)d=s[c],i.backdrop&&WJ(e,i.backdrop),l&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Qe(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(d,o,r,i.maxWidth)),e.fillText(d,o,r,i.maxWidth),HJ(e,o,r,d,i),r+=a.lineHeight;e.restore()}function zJ(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Qe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function HJ(e,t,o,r,a){if(a.strikethrough||a.underline){const i=e.measureText(r),s=t-i.actualBoundingBoxLeft,l=t+i.actualBoundingBoxRight,c=o-i.actualBoundingBoxAscent,d=o+i.actualBoundingBoxDescent,u=a.strikethrough?(c+d)/2:d;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(s,u),e.lineTo(l,u),e.stroke()}}function WJ(e,t){const o=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=o}function hl(e,t){const{x:o,y:r,w:a,h:i,radius:s}=t;e.arc(o+s.topLeft,r+s.topLeft,s.topLeft,-Nt,kt,!0),e.lineTo(o,r+i-s.bottomLeft),e.arc(o+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,kt,Nt,!0),e.lineTo(o+a-s.bottomRight,r+i),e.arc(o+a-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Nt,0,!0),e.lineTo(o+a,r+s.topRight),e.arc(o+a-s.topRight,r+s.topRight,s.topRight,0,-Nt,!0),e.lineTo(o+s.topLeft,r)}const KJ=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,jJ=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UJ(e,t){const o=(""+e).match(KJ);if(!o||o[1]==="normal")return t*1.2;switch(e=+o[2],o[3]){case"px":return e;case"%":e/=100;break}return t*e}const GJ=e=>+e||0;function Sm(e,t){const o={},r=qe(t),a=r?Object.keys(t):t,i=qe(e)?r?s=>Ke(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of a)o[s]=GJ(i(s));return o}function z6(e){return Sm(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ma(e){return Sm(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Qt(e){const t=z6(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Dt(e,t){e=e||{},t=t||_t.font;let o=Ke(e.size,t.size);typeof o=="string"&&(o=parseInt(o,10));let r=Ke(e.style,t.style);r&&!(""+r).match(jJ)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:Ke(e.family,t.family),lineHeight:UJ(Ke(e.lineHeight,t.lineHeight),o),size:o,style:r,weight:Ke(e.weight,t.weight),string:""};return a.string=RJ(a),a}function pl(e,t,o,r){let a=!0,i,s,l;for(i=0,s=e.length;i<s;++i)if(l=e[i],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),a=!1),o!==void 0&&bt(l)&&(l=l[o%l.length],a=!1),l!==void 0))return r&&!a&&(r.cacheable=!1),l}function YJ(e,t,o){const{min:r,max:a}=e,i=y6(t,(a-r)/2),s=(l,c)=>o&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(a,i)}}function Yr(e,t){return Object.assign(Object.create(e),t)}function Em(e,t=[""],o=e,r,a=()=>e[0]){Jn(r)||(r=U6("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:a,override:s=>Em([s,...e],t,o,r)};return new Proxy(i,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return W6(s,l,()=>nQ(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return G6(s).includes(l)},ownKeys(s){return G6(s)},set(s,l,c){const d=s._storage||(s._storage=a());return s[l]=d[l]=c,delete s._keys,!0}})}function Ai(e,t,o,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:o,_stack:new Set,_descriptors:H6(e,r),setContext:i=>Ai(e,i,o,r),override:i=>Ai(e.override(i),t,o,r)};return new Proxy(a,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,l){return W6(i,s,()=>ZJ(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,l){return e[s]=l,delete i[s],!0}})}function H6(e,t={scriptable:!0,indexable:!0}){const{_scriptable:o=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:o,indexable:r,isScriptable:Ur(o)?o:()=>o,isIndexable:Ur(r)?r:()=>r}}const qJ=(e,t)=>e?e+pm(t):t,Bm=(e,t)=>qe(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function W6(e,t,o){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=o();return e[t]=r,r}function ZJ(e,t,o){const{_proxy:r,_context:a,_subProxy:i,_descriptors:s}=e;let l=r[t];return Ur(l)&&s.isScriptable(t)&&(l=XJ(t,l,e,o)),bt(l)&&l.length&&(l=JJ(t,l,e,s.isIndexable)),Bm(t,l)&&(l=Ai(l,a,i&&i[t],s)),l}function XJ(e,t,o,r){const{_proxy:a,_context:i,_subProxy:s,_stack:l}=o;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,s||r),l.delete(e),Bm(e,t)&&(t=Nm(a._scopes,a,e,t)),t}function JJ(e,t,o,r){const{_proxy:a,_context:i,_subProxy:s,_descriptors:l}=o;if(Jn(i.index)&&r(e))t=t[i.index%t.length];else if(qe(t[0])){const c=t,d=a._scopes.filter(u=>u!==c);t=[];for(const u of c){const f=Nm(d,a,e,u);t.push(Ai(f,i,s&&s[e],l))}}return t}function K6(e,t,o){return Ur(e)?e(t,o):e}const QJ=(e,t)=>e===!0?t:typeof e=="string"?jr(t,e):void 0;function eQ(e,t,o,r,a){for(const i of t){const s=QJ(o,i);if(s){e.add(s);const l=K6(s._fallback,o,a);if(Jn(l)&&l!==o&&l!==r)return l}else if(s===!1&&Jn(r)&&o!==r)return null}return!1}function Nm(e,t,o,r){const a=t._rootScopes,i=K6(t._fallback,o,r),s=[...e,...a],l=new Set;l.add(r);let c=j6(l,s,o,i||o,r);return c===null||Jn(i)&&i!==o&&(c=j6(l,s,i,c,r),c===null)?!1:Em(Array.from(l),[""],a,i,()=>tQ(t,o,r))}function j6(e,t,o,r,a){for(;o;)o=eQ(e,t,o,r,a);return o}function tQ(e,t,o){const r=e._getTarget();t in r||(r[t]={});const a=r[t];return bt(a)&&qe(o)?o:a||{}}function nQ(e,t,o,r){let a;for(const i of t)if(a=U6(qJ(i,e),o),Jn(a))return Bm(e,a)?Nm(o,r,e,a):a}function U6(e,t){for(const o of t){if(!o)continue;const r=o[e];if(Jn(r))return r}}function G6(e){let t=e._keys;return t||(t=e._keys=oQ(e._scopes)),t}function oQ(e){const t=new Set;for(const o of e)for(const r of Object.keys(o).filter(a=>!a.startsWith("_")))t.add(r);return Array.from(t)}function Y6(e,t,o,r){const{iScale:a}=e,{key:i="r"}=this._parsing,s=new Array(r);let l,c,d,u;for(l=0,c=r;l<c;++l)d=l+o,u=t[d],s[l]={r:a.parse(jr(u,i),d)};return s}const rQ=Number.EPSILON||1e-14,xi=(e,t)=>t<e.length&&!e[t].skip&&e[t],q6=e=>e==="x"?"y":"x";function aQ(e,t,o,r){const a=e.skip?t:e,i=t,s=o.skip?t:o,l=gm(i,a),c=gm(s,i);let d=l/(l+c),u=c/(l+c);d=isNaN(d)?0:d,u=isNaN(u)?0:u;const f=r*d,h=r*u;return{previous:{x:i.x-f*(s.x-a.x),y:i.y-f*(s.y-a.y)},next:{x:i.x+h*(s.x-a.x),y:i.y+h*(s.y-a.y)}}}function iQ(e,t,o){const r=e.length;let a,i,s,l,c,d=xi(e,0);for(let u=0;u<r-1;++u)if(c=d,d=xi(e,u+1),!(!c||!d)){if(il(t[u],0,rQ)){o[u]=o[u+1]=0;continue}a=o[u]/t[u],i=o[u+1]/t[u],l=Math.pow(a,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),o[u]=a*s*t[u],o[u+1]=i*s*t[u])}}function sQ(e,t,o="x"){const r=q6(o),a=e.length;let i,s,l,c=xi(e,0);for(let d=0;d<a;++d){if(s=l,l=c,c=xi(e,d+1),!l)continue;const u=l[o],f=l[r];s&&(i=(u-s[o])/3,l[`cp1${o}`]=u-i,l[`cp1${r}`]=f-i*t[d]),c&&(i=(c[o]-u)/3,l[`cp2${o}`]=u+i,l[`cp2${r}`]=f+i*t[d])}}function lQ(e,t="x"){const o=q6(t),r=e.length,a=Array(r).fill(0),i=Array(r);let s,l,c,d=xi(e,0);for(s=0;s<r;++s)if(l=c,c=d,d=xi(e,s+1),!!c){if(d){const u=d[t]-c[t];a[s]=u!==0?(d[o]-c[o])/u:0}i[s]=l?d?Fo(a[s-1])!==Fo(a[s])?0:(a[s-1]+a[s])/2:a[s-1]:a[s]}iQ(e,a,i),sQ(e,i,t)}function Vd(e,t,o){return Math.max(Math.min(e,o),t)}function cQ(e,t){let o,r,a,i,s,l=fl(e[0],t);for(o=0,r=e.length;o<r;++o)s=i,i=l,l=o<r-1&&fl(e[o+1],t),i&&(a=e[o],s&&(a.cp1x=Vd(a.cp1x,t.left,t.right),a.cp1y=Vd(a.cp1y,t.top,t.bottom)),l&&(a.cp2x=Vd(a.cp2x,t.left,t.right),a.cp2y=Vd(a.cp2y,t.top,t.bottom)))}function dQ(e,t,o,r,a){let i,s,l,c;if(t.spanGaps&&(e=e.filter(d=>!d.skip)),t.cubicInterpolationMode==="monotone")lQ(e,a);else{let d=r?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)l=e[i],c=aQ(d,l,e[Math.min(i+1,s-(r?0:1))%s],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}t.capBezierPoints&&cQ(e,o)}function Z6(){return typeof window<"u"&&typeof document<"u"}function _m(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Fd(e,t,o){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[o])):r=e,r}const zd=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function uQ(e,t){return zd(e).getPropertyValue(t)}const fQ=["top","right","bottom","left"];function Pa(e,t,o){const r={};o=o?"-"+o:"";for(let a=0;a<4;a++){const i=fQ[a];r[i]=parseFloat(e[t+"-"+i+o])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const hQ=(e,t,o)=>(e>0||t>0)&&(!o||!o.shadowRoot);function pQ(e,t){const o=e.touches,r=o&&o.length?o[0]:e,{offsetX:a,offsetY:i}=r;let s=!1,l,c;if(hQ(a,i,e.target))l=a,c=i;else{const d=t.getBoundingClientRect();l=r.clientX-d.left,c=r.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function va(e,t){if("native"in e)return e;const{canvas:o,currentDevicePixelRatio:r}=t,a=zd(o),i=a.boxSizing==="border-box",s=Pa(a,"padding"),l=Pa(a,"border","width"),{x:c,y:d,box:u}=pQ(e,o),f=s.left+(u&&l.left),h=s.top+(u&&l.top);let{width:p,height:m}=t;return i&&(p-=s.width+l.width,m-=s.height+l.height),{x:Math.round((c-f)/p*o.width/r),y:Math.round((d-h)/m*o.height/r)}}function mQ(e,t,o){let r,a;if(t===void 0||o===void 0){const i=_m(e);if(!i)t=e.clientWidth,o=e.clientHeight;else{const s=i.getBoundingClientRect(),l=zd(i),c=Pa(l,"border","width"),d=Pa(l,"padding");t=s.width-d.width-c.width,o=s.height-d.height-c.height,r=Fd(l.maxWidth,i,"clientWidth"),a=Fd(l.maxHeight,i,"clientHeight")}}return{width:t,height:o,maxWidth:r||Od,maxHeight:a||Od}}const Hd=e=>Math.round(e*10)/10;function gQ(e,t,o,r){const a=zd(e),i=Pa(a,"margin"),s=Fd(a.maxWidth,e,"clientWidth")||Od,l=Fd(a.maxHeight,e,"clientHeight")||Od,c=mQ(e,t,o);let{width:d,height:u}=c;if(a.boxSizing==="content-box"){const h=Pa(a,"border","width"),p=Pa(a,"padding");d-=p.width+h.width,u-=p.height+h.height}return d=Math.max(0,d-i.width),u=Math.max(0,r?d/r:u-i.height),d=Hd(Math.min(d,s,c.maxWidth)),u=Hd(Math.min(u,l,c.maxHeight)),d&&!u&&(u=Hd(d/2)),(t!==void 0||o!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,d=Hd(Math.floor(u*r))),{width:d,height:u}}function X6(e,t,o){const r=t||1,a=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==a||s.width!==i?(e.currentDevicePixelRatio=r,s.height=a,s.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const yQ=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function J6(e,t){const o=uQ(e,t),r=o&&o.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Oa(e,t,o,r){return{x:e.x+o*(t.x-e.x),y:e.y+o*(t.y-e.y)}}function bQ(e,t,o,r){return{x:e.x+o*(t.x-e.x),y:r==="middle"?o<.5?e.y:t.y:r==="after"?o<1?e.y:t.y:o>0?t.y:e.y}}function CQ(e,t,o,r){const a={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=Oa(e,a,o),l=Oa(a,i,o),c=Oa(i,t,o),d=Oa(s,l,o),u=Oa(l,c,o);return Oa(d,u,o)}const wQ=function(e,t){return{x(o){return e+e+t-o},setWidth(o){t=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,r){return o-r},leftForLtr(o,r){return o-r}}},$Q=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Mi(e,t,o){return e?wQ(t,o):$Q()}function Q6(e,t){let o,r;(t==="ltr"||t==="rtl")&&(o=e.canvas.style,r=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",t,"important"),e.prevTextDirection=r)}function e5(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t5(e){return e==="angle"?{between:sl,compare:kJ,normalize:Pn}:{between:mr,compare:(t,o)=>t-o,normalize:t=>t}}function n5({start:e,end:t,count:o,loop:r,style:a}){return{start:e%o,end:t%o,loop:r&&(t-e+1)%o===0,style:a}}function kQ(e,t,o){const{property:r,start:a,end:i}=o,{between:s,normalize:l}=t5(r),c=t.length;let{start:d,end:u,loop:f}=e,h,p;if(f){for(d+=c,u+=c,h=0,p=c;h<p&&s(l(t[d%c][r]),a,i);++h)d--,u--;d%=c,u%=c}return u<d&&(u+=c),{start:d,end:u,loop:f,style:e.style}}function o5(e,t,o){if(!o)return[e];const{property:r,start:a,end:i}=o,s=t.length,{compare:l,between:c,normalize:d}=t5(r),{start:u,end:f,loop:h,style:p}=kQ(e,t,o),m=[];let g=!1,y=null,w,$,C;const b=()=>c(a,C,w)&&l(a,C)!==0,k=()=>l(i,w)===0||c(i,C,w),S=()=>g||b(),E=()=>!g||k();for(let N=u,_=u;N<=f;++N)$=t[N%s],!$.skip&&(w=d($[r]),w!==C&&(g=c(w,a,i),y===null&&S()&&(y=l(w,a)===0?N:_),y!==null&&E()&&(m.push(n5({start:y,end:N,loop:h,count:s,style:p})),y=null),_=N,C=w));return y!==null&&m.push(n5({start:y,end:f,loop:h,count:s,style:p})),m}function r5(e,t){const o=[],r=e.segments;for(let a=0;a<r.length;a++){const i=o5(r[a],e.points,t);i.length&&o.push(...i)}return o}function SQ(e,t,o,r){let a=0,i=t-1;if(o&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,o&&(i+=a);i>a&&e[i%t].skip;)i--;return i%=t,{start:a,end:i}}function EQ(e,t,o,r){const a=e.length,i=[];let s=t,l=e[t],c;for(c=t+1;c<=o;++c){const d=e[c%a];d.skip||d.stop?l.skip||(r=!1,i.push({start:t%a,end:(c-1)%a,loop:r}),t=s=d.stop?c:null):(s=c,l.skip&&(t=c)),l=d}return s!==null&&i.push({start:t%a,end:s%a,loop:r}),i}function BQ(e,t){const o=e.points,r=e.options.spanGaps,a=o.length;if(!a)return[];const i=!!e._loop,{start:s,end:l}=SQ(o,a,i,r);if(r===!0)return a5(e,[{start:s,end:l,loop:i}],o,t);const c=l<s?l+a:l,d=!!e._fullLoop&&s===0&&l===a-1;return a5(e,EQ(o,s,c,d),o,t)}function a5(e,t,o,r){return!r||!r.setContext||!o?t:NQ(e,t,o,r)}function NQ(e,t,o,r){const a=e._chart.getContext(),i=i5(e.options),{_datasetIndex:s,options:{spanGaps:l}}=e,c=o.length,d=[];let u=i,f=t[0].start,h=f;function p(m,g,y,w){const $=l?-1:1;if(m!==g){for(m+=c;o[m%c].skip;)m-=$;for(;o[g%c].skip;)g+=$;m%c!==g%c&&(d.push({start:m%c,end:g%c,loop:y,style:w}),u=w,f=g%c)}}for(const m of t){f=l?f:m.start;let g=o[f%c],y;for(h=f+1;h<=m.end;h++){const w=o[h%c];y=i5(r.setContext(Yr(a,{type:"segment",p0:g,p1:w,p0DataIndex:(h-1)%c,p1DataIndex:h%c,datasetIndex:s}))),_Q(y,u)&&p(f,h-1,m.loop,u),g=w,u=y}f<h-1&&p(f,h-1,m.loop,u)}return d}function i5(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function _Q(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
 * Chart.js v4.2.1
 * https://www.chartjs.org
 * (c) 2023 Chart.js Contributors
 * Released under the MIT License
 */var TQ=Object.defineProperty,AQ=(e,t,o)=>t in e?TQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_e=(e,t,o)=>(AQ(e,typeof t!="symbol"?t+"":t,o),o);class xQ{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,o,r,a){const i=o.listeners[a],s=o.duration;i.forEach(l=>l({chart:t,initial:o.initial,numSteps:s,currentStep:Math.min(r-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=A6.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let o=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(i[s]=i[i.length-1],i.pop());l&&(a.draw(),this._notify(a,r,t,"progress")),i.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),o+=i.length}),this._lastDate=t,o===0&&(this._running=!1)}_getAnims(t){const o=this._charts;let r=o.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(t,r)),r}listen(t,o,r){this._getAnims(t).listeners[o].push(r)}add(t,o){!o||!o.length||this._getAnims(t).items.push(...o)}has(t){return this._getAnims(t).items.length>0}start(t){const o=this._charts.get(t);!o||(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const o=this._charts.get(t);return!(!o||!o.running||!o.items.length)}stop(t){const o=this._charts.get(t);if(!o||!o.items.length)return;const r=o.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();o.items=[],this._notify(t,o,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var zo=new xQ;const s5="transparent",MQ={boolean(e,t,o){return o>.5?t:e},color(e,t,o){const r=D6(e||s5),a=r.valid&&D6(t||s5);return a&&a.valid?a.mix(r,o).hexString():t},number(e,t,o){return e+(t-e)*o}};class l5{constructor(t,o,r,a){const i=o[r];a=pl([t.to,a,i,t.from]);const s=pl([t.from,i,a]);this._active=!0,this._fn=t.fn||MQ[t.type||typeof s],this._easing=ll[t.easing]||ll.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=o,this._prop=r,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(t,o,r){if(this._active){this._notify(!1);const a=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=pl([t.to,o,a,t.from]),this._from=pl([t.from,a,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const o=t-this._start,r=this._duration,a=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||o<r),!this._active){this._target[a]=l,this._notify(!0);return}if(o<0){this._target[a]=i;return}c=o/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[a]=this._fn(i,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((o,r)=>{t.push({res:o,rej:r})})}_notify(t){const o=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][o]()}}class Tm{constructor(t,o){this._chart=t,this._properties=new Map,this.configure(o)}configure(t){if(!qe(t))return;const o=Object.keys(_t.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const i=t[a];if(!qe(i))return;const s={};for(const l of o)s[l]=i[l];(bt(i.properties)&&i.properties||[a]).forEach(l=>{(l===a||!r.has(l))&&r.set(l,s)})})}_animateOptions(t,o){const r=o.options,a=vQ(t,r);if(!a)return[];const i=this._createAnimations(a,r);return r.$shared&&PQ(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,o){const r=this._properties,a=[],i=t.$animations||(t.$animations={}),s=Object.keys(o),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){a.push(...this._animateOptions(t,o));continue}const u=o[d];let f=i[d];const h=r.get(d);if(f)if(h&&f.active()){f.update(h,u,l);continue}else f.cancel();if(!h||!h.duration){t[d]=u;continue}i[d]=f=new l5(h,t,d,u),a.push(f)}return a}update(t,o){if(this._properties.size===0){Object.assign(t,o);return}const r=this._createAnimations(t,o);if(r.length)return zo.add(this._chart,r),!0}}function PQ(e,t){const o=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const i=e[r[a]];i&&i.active()&&o.push(i.wait())}return Promise.all(o)}function vQ(e,t){if(!t)return;let o=e.options;if(!o){e.options=t;return}return o.$shared&&(e.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function c5(e,t){const o=e&&e.options||{},r=o.reverse,a=o.min===void 0?t:0,i=o.max===void 0?t:0;return{start:r?i:a,end:r?a:i}}function OQ(e,t,o){if(o===!1)return!1;const r=c5(e,o),a=c5(t,o);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function IQ(e){let t,o,r,a;return qe(e)?(t=e.top,o=e.right,r=e.bottom,a=e.left):t=o=r=a=e,{top:t,right:o,bottom:r,left:a,disabled:e===!1}}function d5(e,t){const o=[],r=e._getSortedDatasetMetas(t);let a,i;for(a=0,i=r.length;a<i;++a)o.push(r[a].index);return o}function u5(e,t,o,r={}){const a=e.keys,i=r.mode==="single";let s,l,c,d;if(t!==null){for(s=0,l=a.length;s<l;++s){if(c=+a[s],c===o){if(r.all)continue;break}d=e.values[c],Bt(d)&&(i||t===0||Fo(t)===Fo(d))&&(t+=d)}return t}}function DQ(e){const t=Object.keys(e),o=new Array(t.length);let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r],o[r]={x:i,y:e[i]};return o}function f5(e,t){const o=e&&e.options.stacked;return o||o===void 0&&t.stack!==void 0}function RQ(e,t,o){return`${e.id}.${t.id}.${o.stack||o.type}`}function LQ(e){const{min:t,max:o,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?o:Number.POSITIVE_INFINITY}}function VQ(e,t,o){const r=e[t]||(e[t]={});return r[o]||(r[o]={})}function h5(e,t,o,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const i=e[a.index];if(o&&i>0||!o&&i<0)return a.index}return null}function p5(e,t){const{chart:o,_cachedMeta:r}=e,a=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,d=s.axis,u=RQ(i,s,r),f=t.length;let h;for(let p=0;p<f;++p){const m=t[p],{[c]:g,[d]:y}=m,w=m._stacks||(m._stacks={});h=w[d]=VQ(a,u,g),h[l]=y,h._top=h5(h,s,!0,r.type),h._bottom=h5(h,s,!1,r.type);const $=h._visualValues||(h._visualValues={});$[l]=y}}function Am(e,t){const o=e.scales;return Object.keys(o).filter(r=>o[r].axis===t).shift()}function FQ(e,t){return Yr(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function zQ(e,t,o){return Yr(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:o,index:t,mode:"default",type:"data"})}function ml(e,t){const o=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const a of t){const i=a._stacks;if(!i||i[r]===void 0||i[r][o]===void 0)return;delete i[r][o],i[r]._visualValues!==void 0&&i[r]._visualValues[o]!==void 0&&delete i[r]._visualValues[o]}}}const xm=e=>e==="reset"||e==="none",m5=(e,t)=>t?e:Object.assign({},e),HQ=(e,t,o)=>e&&!t.hidden&&t._stacked&&{keys:d5(o,!0),values:null};class Qn{constructor(t,o){this.chart=t,this._ctx=t.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=f5(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ml(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,o=this._cachedMeta,r=this.getDataset(),a=(f,h,p,m)=>f==="x"?h:f==="r"?m:p,i=o.xAxisID=Ke(r.xAxisID,Am(t,"x")),s=o.yAxisID=Ke(r.yAxisID,Am(t,"y")),l=o.rAxisID=Ke(r.rAxisID,Am(t,"r")),c=o.indexAxis,d=o.iAxisID=a(c,i,s,l),u=o.vAxisID=a(c,s,i,l);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(l),o.iScale=this.getScaleForId(d),o.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const o=this._cachedMeta;return t===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&_6(this._data,this),t._stacked&&ml(t)}_dataCheck(){const t=this.getDataset(),o=t.data||(t.data=[]),r=this._data;if(qe(o))this._data=DQ(o);else if(r!==o){if(r){_6(r,this);const a=this._cachedMeta;ml(a),a._parsed=[]}o&&Object.isExtensible(o)&&NJ(o,this),this._syncList=[],this._data=o}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const o=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const i=o._stacked;o._stacked=f5(o.vScale,o),o.stack!==r.stack&&(a=!0,ml(o),o.stack=r.stack),this._resyncElements(t),(a||i!==o._stacked)&&p5(this,o._parsed)}configure(){const t=this.chart.config,o=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),o,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,o){const{_cachedMeta:r,_data:a}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=t===0&&o===a.length?!0:r._sorted,d=t>0&&r._parsed[t-1],u,f,h;if(this._parsing===!1)r._parsed=a,r._sorted=!0,h=a;else{bt(a[t])?h=this.parseArrayData(r,a,t,o):qe(a[t])?h=this.parseObjectData(r,a,t,o):h=this.parsePrimitiveData(r,a,t,o);const p=()=>f[l]===null||d&&f[l]<d[l];for(u=0;u<o;++u)r._parsed[u+t]=f=h[u],c&&(p()&&(c=!1),d=f);r._sorted=c}s&&p5(this,h)}parsePrimitiveData(t,o,r,a){const{iScale:i,vScale:s}=t,l=i.axis,c=s.axis,d=i.getLabels(),u=i===s,f=new Array(a);let h,p,m;for(h=0,p=a;h<p;++h)m=h+r,f[h]={[l]:u||i.parse(d[m],m),[c]:s.parse(o[m],m)};return f}parseArrayData(t,o,r,a){const{xScale:i,yScale:s}=t,l=new Array(a);let c,d,u,f;for(c=0,d=a;c<d;++c)u=c+r,f=o[u],l[c]={x:i.parse(f[0],u),y:s.parse(f[1],u)};return l}parseObjectData(t,o,r,a){const{xScale:i,yScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(a);let u,f,h,p;for(u=0,f=a;u<f;++u)h=u+r,p=o[h],d[u]={x:i.parse(jr(p,l),h),y:s.parse(jr(p,c),h)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,o,r){const a=this.chart,i=this._cachedMeta,s=o[t.axis],l={keys:d5(a,!0),values:o._stacks[t.axis]._visualValues};return u5(l,s,i.index,{mode:r})}updateRangeFromParsed(t,o,r,a){const i=r[o.axis];let s=i===null?NaN:i;const l=a&&r._stacks[o.axis];a&&l&&(a.values=l,s=u5(a,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,o){const r=this._cachedMeta,a=r._parsed,i=r._sorted&&t===r.iScale,s=a.length,l=this._getOtherScale(t),c=HQ(o,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=LQ(l);let h,p;function m(){p=a[h];const g=p[l.axis];return!Bt(p[t.axis])||u>g||f<g}for(h=0;h<s&&!(!m()&&(this.updateRangeFromParsed(d,t,p,c),i));++h);if(i){for(h=s-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(d,t,p,c);break}}return d}getAllParsedValues(t){const o=this._cachedMeta._parsed,r=[];let a,i,s;for(a=0,i=o.length;a<i;++a)s=o[a][t.axis],Bt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const o=this._cachedMeta,r=o.iScale,a=o.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:a?""+a.getLabelForValue(i[a.axis]):""}}_update(t){const o=this._cachedMeta;this.update(t||"default"),o._clip=IQ(Ke(this.options.clip,OQ(o.xScale,o.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,o=this.chart,r=this._cachedMeta,a=r.data||[],i=o.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||a.length-l,d=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,i,l,c),u=l;u<l+c;++u){const f=a[u];f.hidden||(f.active&&d?s.push(f):f.draw(t,i))}for(u=0;u<s.length;++u)s[u].draw(t,i)}getStyle(t,o){const r=o?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,o,r){const a=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=zQ(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=a.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=FQ(this.chart.getContext(),this.index)),i.dataset=a,i.index=i.datasetIndex=this.index;return i.active=!!o,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,o){return this._resolveElementOptions(this.dataElementType.id,o,t)}_resolveElementOptions(t,o="default",r){const a=o==="active",i=this._cachedDataOpts,s=t+"-"+o,l=i[s],c=this.enableOptionSharing&&Jn(r);if(l)return m5(l,c);const d=this.chart.config,u=d.datasetElementScopeKeys(this._type,t),f=a?[`${t}Hover`,"hover",t,""]:[t,""],h=d.getOptionScopes(this.getDataset(),u),p=Object.keys(_t.elements[t]),m=()=>this.getContext(r,a,o),g=d.resolveNamedOptions(h,p,m,f);return g.$shared&&(g.$shared=c,i[s]=Object.freeze(m5(g,c))),g}_resolveAnimations(t,o,r){const a=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,l=i[s];if(l)return l;let c;if(a.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,o),h=u.getOptionScopes(this.getDataset(),f);c=u.createResolver(h,this.getContext(t,r,o))}const d=new Tm(a,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(d)),d}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,o){return!o||xm(t)||this.chart._animationsDisabled}_getSharedOptions(t,o){const r=this.resolveDataElementOptions(t,o),a=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(o,i)||i!==a;return this.updateSharedOptions(i,o,r),{sharedOptions:i,includeOptions:s}}updateElement(t,o,r,a){xm(a)?Object.assign(t,r):this._resolveAnimations(o,a).update(t,r)}updateSharedOptions(t,o,r){t&&!xm(o)&&this._resolveAnimations(void 0,o).update(t,r)}_setStyle(t,o,r,a){t.active=a;const i=this.getStyle(o,a);this._resolveAnimations(o,r,a).update(t,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(t,o,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,o,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const o=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const a=r.length,i=o.length,s=Math.min(i,a);s&&this.parse(0,s),i>a?this._insertElements(a,i-a,t):i<a&&this._removeElements(i,a-i)}_insertElements(t,o,r=!0){const a=this._cachedMeta,i=a.data,s=t+o;let l;const c=d=>{for(d.length+=o,l=d.length-1;l>=s;l--)d[l]=d[l-o]};for(c(i),l=t;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(a._parsed),this.parse(t,o),r&&this.updateElements(i,t,o,"reset")}updateElements(t,o,r,a){}_removeElements(t,o){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,o);r._stacked&&ml(r,a)}r.data.splice(t,o)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[o,r,a]=t;this[o](r,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,o){o&&this._sync(["_removeElements",t,o]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}_e(Qn,"defaults",{}),_e(Qn,"datasetElementType",null),_e(Qn,"dataElementType",null);function WQ(e,t){if(!e._cache.$bar){const o=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,i=o.length;a<i;a++)r=r.concat(o[a].controller.getAllParsedValues(e));e._cache.$bar=T6(r.sort((a,i)=>a-i))}return e._cache.$bar}function KQ(e){const t=e.iScale,o=WQ(t,e.type);let r=t._length,a,i,s,l;const c=()=>{s===32767||s===-32768||(Jn(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(a=0,i=o.length;a<i;++a)s=t.getPixelForValue(o[a]),c();for(l=void 0,a=0,i=t.ticks.length;a<i;++a)s=t.getPixelForTick(a),c();return r}function jQ(e,t,o,r){const a=o.barThickness;let i,s;return Qe(a)?(i=t.min*o.categoryPercentage,s=o.barPercentage):(i=a*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}function UQ(e,t,o,r){const a=t.pixels,i=a[e];let s=e>0?a[e-1]:null,l=e<a.length-1?a[e+1]:null;const c=o.categoryPercentage;s===null&&(s=i-(l===null?t.end-t.start:l-i)),l===null&&(l=i+i-s);const d=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:o.barPercentage,start:d}}function GQ(e,t,o,r){const a=o.parse(e[0],r),i=o.parse(e[1],r),s=Math.min(a,i),l=Math.max(a,i);let c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),t[o.axis]=d,t._custom={barStart:c,barEnd:d,start:a,end:i,min:s,max:l}}function g5(e,t,o,r){return bt(e)?GQ(e,t,o,r):t[o.axis]=o.parse(e,r),t}function y5(e,t,o,r){const a=e.iScale,i=e.vScale,s=a.getLabels(),l=a===i,c=[];let d,u,f,h;for(d=o,u=o+r;d<u;++d)h=t[d],f={},f[a.axis]=l||a.parse(s[d],d),c.push(g5(h,f,i,d));return c}function Mm(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function YQ(e,t,o){return e!==0?Fo(e):(t.isHorizontal()?1:-1)*(t.min>=o?1:-1)}function qQ(e){let t,o,r,a,i;return e.horizontal?(t=e.base>e.x,o="left",r="right"):(t=e.base<e.y,o="bottom",r="top"),t?(a="end",i="start"):(a="start",i="end"),{start:o,end:r,reverse:t,top:a,bottom:i}}function ZQ(e,t,o,r){let a=t.borderSkipped;const i={};if(!a){e.borderSkipped=i;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:d,bottom:u}=qQ(e);a==="middle"&&o&&(e.enableBorderRadius=!0,(o._top||0)===r?a=d:(o._bottom||0)===r?a=u:(i[b5(u,s,l,c)]=!0,a=d)),i[b5(a,s,l,c)]=!0,e.borderSkipped=i}function b5(e,t,o,r){return r?(e=XQ(e,t,o),e=C5(e,o,t)):e=C5(e,t,o),e}function XQ(e,t,o){return e===t?o:e===o?t:e}function C5(e,t,o){return e==="start"?t:e==="end"?o:e}function JQ(e,{inflateAmount:t},o){e.inflateAmount=t==="auto"?o===1?.33:0:t}class Pi extends Qn{parsePrimitiveData(t,o,r,a){return y5(t,o,r,a)}parseArrayData(t,o,r,a){return y5(t,o,r,a)}parseObjectData(t,o,r,a){const{iScale:i,vScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=i.axis==="x"?l:c,u=s.axis==="x"?l:c,f=[];let h,p,m,g;for(h=r,p=r+a;h<p;++h)g=o[h],m={},m[i.axis]=i.parse(jr(g,d),h),f.push(g5(jr(g,u),m,s,h));return f}updateRangeFromParsed(t,o,r,a){super.updateRangeFromParsed(t,o,r,a);const i=r._custom;i&&o===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const o=this._cachedMeta,{iScale:r,vScale:a}=o,i=this.getParsed(t),s=i._custom,l=Mm(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(i[a.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,t)}updateElements(t,o,r,a){const i=a==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(o,a);for(let p=o;p<o+r;p++){const m=this.getParsed(p),g=i||Qe(m[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(p),y=this._calculateBarIndexPixels(p,u),w=(m._stacks||{})[l.axis],$={horizontal:d,base:g.base,enableBorderRadius:!w||Mm(m._custom)||s===w._top||s===w._bottom,x:d?g.head:y.center,y:d?y.center:g.head,height:d?y.size:Math.abs(g.size),width:d?Math.abs(g.size):y.size};h&&($.options=f||this.resolveDataElementOptions(p,t[p].active?"active":a));const C=$.options||t[p].options;ZQ($,C,w,s),JQ($,C,u.ratio),this.updateElement(t[p],p,$,a)}}_getStacks(t,o){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=r.options.stacked,s=[],l=c=>{const d=c.controller.getParsed(o),u=d&&d[c.vScale.axis];if(Qe(u)||isNaN(u))return!0};for(const c of a)if(!(o!==void 0&&l(c))&&((i===!1||s.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,o,r){const a=this._getStacks(t,r),i=o!==void 0?a.indexOf(o):-1;return i===-1?a.length-1:i}_getRuler(){const t=this.options,o=this._cachedMeta,r=o.iScale,a=[];let i,s;for(i=0,s=o.data.length;i<s;++i)a.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=t.barThickness;return{min:l||KQ(o),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:o,_stacked:r,index:a},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(t),d=c._custom,u=Mm(d);let f=c[o.axis],h=0,p=r?this.applyStack(o,c,r):f,m,g;p!==f&&(h=p-f,p=f),u&&(f=d.barStart,p=d.barEnd-d.barStart,f!==0&&Fo(f)!==Fo(d.barEnd)&&(h=0),h+=f);const y=!Qe(i)&&!u?i:h;let w=o.getPixelForValue(y);if(this.chart.getDataVisibility(t)?m=o.getPixelForValue(h+p):m=w,g=m-w,Math.abs(g)<s){g=YQ(g,o,l)*s,f===l&&(w-=g/2);const $=o.getPixelForDecimal(0),C=o.getPixelForDecimal(1),b=Math.min($,C),k=Math.max($,C);w=Math.max(Math.min(w,k),b),m=w+g,r&&!u&&(c._stacks[o.axis]._visualValues[a]=o.getValueForPixel(m)-o.getValueForPixel(w))}if(w===o.getPixelForValue(l)){const $=Fo(g)*o.getLineWidthForValue(l)/2;w+=$,g-=$}return{size:g,base:w,head:m,center:m+g/2}}_calculateBarIndexPixels(t,o){const r=o.scale,a=this.options,i=a.skipNull,s=Ke(a.maxBarThickness,1/0);let l,c;if(o.grouped){const d=i?this._getStackCount(t):o.stackCount,u=a.barThickness==="flex"?UQ(t,o,a,d):jQ(t,o,a,d),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);l=u.start+u.chunk*f+u.chunk/2,c=Math.min(s,u.chunk*u.ratio)}else l=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(s,o.min*o.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,o=t.vScale,r=t.data,a=r.length;let i=0;for(;i<a;++i)this.getParsed(i)[o.axis]!==null&&r[i].draw(this._ctx)}}_e(Pi,"id","bar"),_e(Pi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),_e(Pi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class vi extends Qn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,o,r,a){const i=super.parsePrimitiveData(t,o,r,a);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(t,o,r,a){const i=super.parseArrayData(t,o,r,a);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=Ke(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(t,o,r,a){const i=super.parseObjectData(t,o,r,a);for(let s=0;s<i.length;s++){const l=o[r+s];i[s]._custom=Ke(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let o=0;for(let r=t.length-1;r>=0;--r)o=Math.max(o,t[r].size(this.resolveDataElementOptions(r))/2);return o>0&&o}getLabelAndValue(t){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=o,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y),d=s._custom;return{label:r[t]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(t){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,t)}updateElements(t,o,r,a){const i=a==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(o,a),u=s.axis,f=l.axis;for(let h=o;h<o+r;h++){const p=t[h],m=!i&&this.getParsed(h),g={},y=g[u]=i?s.getPixelForDecimal(.5):s.getPixelForValue(m[u]),w=g[f]=i?l.getBasePixel():l.getPixelForValue(m[f]);g.skip=isNaN(y)||isNaN(w),d&&(g.options=c||this.resolveDataElementOptions(h,p.active?"active":a),i&&(g.options.radius=0)),this.updateElement(p,h,g,a)}}resolveDataElementOptions(t,o){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,o);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const i=a.radius;return o!=="active"&&(a.radius=0),a.radius+=Ke(r&&r._custom,i),a}}_e(vi,"id","bubble"),_e(vi,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),_e(vi,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function QQ(e,t,o){let r=1,a=1,i=0,s=0;if(t<Ct){const l=e,c=l+t,d=Math.cos(l),u=Math.sin(l),f=Math.cos(c),h=Math.sin(c),p=(C,b,k)=>sl(C,l,c,!0)?1:Math.max(b,b*o,k,k*o),m=(C,b,k)=>sl(C,l,c,!0)?-1:Math.min(b,b*o,k,k*o),g=p(0,d,f),y=p(Nt,u,h),w=m(kt,d,f),$=m(kt+Nt,u,h);r=(g-w)/2,a=(y-$)/2,i=-(g+w)/2,s=-(y+$)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:s}}class yr extends Qn{constructor(t,o){super(t,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,o){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let i=c=>+r[c];if(qe(r[t])){const{key:c="value"}=this._parsing;i=d=>+jr(r[d],c)}let s,l;for(s=t,l=t+o;s<l;++s)a._parsed[s]=i(s)}}_getRotation(){return wo(this.options.rotation-90)}_getCircumference(){return wo(this.options.circumference)}_getRotationExtents(){let t=Ct,o=-Ct;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,i=a._getRotation(),s=a._getCircumference();t=Math.min(t,i),o=Math.max(o,i+s)}return{rotation:t,circumference:o-t}}update(t){const o=this.chart,{chartArea:r}=o,a=this._cachedMeta,i=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(fJ(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:m,offsetY:g}=QQ(f,u,c),y=(r.width-s)/h,w=(r.height-s)/p,$=Math.max(Math.min(y,w)/2,0),C=y6(this.options.radius,$),b=Math.max(C*c,0),k=(C-b)/this._getVisibleDatasetWeightTotal();this.offsetX=m*C,this.offsetY=g*C,a.total=this.calculateTotal(),this.outerRadius=C-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*d,0),this.updateElements(i,0,i.length,t)}_circumference(t,o){const r=this.options,a=this._cachedMeta,i=this._getCircumference();return o&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*i/Ct)}updateElements(t,o,r,a){const i=a==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,h=i&&d.animateScale,p=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:g,includeOptions:y}=this._getSharedOptions(o,a);let w=this._getRotation(),$;for($=0;$<o;++$)w+=this._circumference($,i);for($=o;$<o+r;++$){const C=this._circumference($,i),b=t[$],k={x:u+this.offsetX,y:f+this.offsetY,startAngle:w,endAngle:w+C,circumference:C,outerRadius:m,innerRadius:p};y&&(k.options=g||this.resolveDataElementOptions($,b.active?"active":a)),w+=C,this.updateElement(b,$,k,a)}}calculateTotal(){const t=this._cachedMeta,o=t.data;let r=0,a;for(a=0;a<o.length;a++){const i=t._parsed[a];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(a)&&!o[a].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const o=this._cachedMeta.total;return o>0&&!isNaN(t)?Ct*(Math.abs(t)/o):0}getLabelAndValue(t){const o=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=cl(o._parsed[t],r.options.locale);return{label:a[t]||"",value:i}}getMaxBorderWidth(t){let o=0;const r=this.chart;let a,i,s,l,c;if(!t){for(a=0,i=r.data.datasets.length;a<i;++a)if(r.isDatasetVisible(a)){s=r.getDatasetMeta(a),t=s.data,l=s.controller;break}}if(!t)return 0;for(a=0,i=t.length;a<i;++a)c=l.resolveDataElementOptions(a),c.borderAlign!=="inner"&&(o=Math.max(o,c.borderWidth||0,c.hoverBorderWidth||0));return o}getMaxOffset(t){let o=0;for(let r=0,a=t.length;r<a;++r){const i=this.resolveDataElementOptions(r);o=Math.max(o,i.offset||0,i.hoverOffset||0)}return o}_getRingWeightOffset(t){let o=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(o+=this._getRingWeight(r));return o}_getRingWeight(t){return Math.max(Ke(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}_e(yr,"id","doughnut"),_e(yr,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),_e(yr,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"}),_e(yr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:o,color:r}}=e.legend.options;return t.labels.map((a,i)=>{const l=e.getDatasetMeta(0).controller.getStyle(i);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,o){o.chart.toggleDataVisibility(t.index),o.chart.update()}}}});class Oi extends Qn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const o=this._cachedMeta,{dataset:r,data:a=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:l,count:c}=M6(o,a,s);this._drawStart=l,this._drawCount=c,P6(o)&&(l=0,c=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=a;const d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:d},t),this.updateElements(a,l,c,t)}updateElements(t,o,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(o,a),h=s.axis,p=l.axis,{spanGaps:m,segment:g}=this.options,y=Ti(m)?m:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||i||a==="none",$=o+r,C=t.length;let b=o>0&&this.getParsed(o-1);for(let k=0;k<C;++k){const S=t[k],E=w?S:{};if(k<o||k>=$){E.skip=!0;continue}const N=this.getParsed(k),_=Qe(N[p]),T=E[h]=s.getPixelForValue(N[h],k),P=E[p]=i||_?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,N,c):N[p],k);E.skip=isNaN(T)||isNaN(P)||_,E.stop=k>0&&Math.abs(N[h]-b[h])>y,g&&(E.parsed=N,E.raw=d.data[k]),f&&(E.options=u||this.resolveDataElementOptions(k,S.active?"active":a)),w||this.updateElement(S,k,E,a),b=N}}getMaxOverflow(){const t=this._cachedMeta,o=t.dataset,r=o.options&&o.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const i=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}_e(Oi,"id","line"),_e(Oi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),_e(Oi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ia extends Qn{constructor(t,o){super(t,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const o=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=cl(o._parsed[t].r,r.options.locale);return{label:a[t]||"",value:i}}parseObjectData(t,o,r,a){return Y6.bind(this)(t,o,r,a)}update(t){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,t)}getMinMax(){const t=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const i=this.getParsed(a).r;!isNaN(i)&&this.chart.getDataVisibility(a)&&(i<o.min&&(o.min=i),i>o.max&&(o.max=i))}),o}_updateRadius(){const t=this.chart,o=t.chartArea,r=t.options,a=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(a/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,o,r,a){const i=a==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,u=d.xCenter,f=d.yCenter,h=d.getIndexAngle(0)-.5*kt;let p=h,m;const g=360/this.countVisibleElements();for(m=0;m<o;++m)p+=this._computeAngle(m,a,g);for(m=o;m<o+r;m++){const y=t[m];let w=p,$=p+this._computeAngle(m,a,g),C=s.getDataVisibility(m)?d.getDistanceFromCenterForValue(this.getParsed(m).r):0;p=$,i&&(c.animateScale&&(C=0),c.animateRotate&&(w=$=h));const b={x:u,y:f,innerRadius:0,outerRadius:C,startAngle:w,endAngle:$,options:this.resolveDataElementOptions(m,y.active?"active":a)};this.updateElement(y,m,b,a)}}countVisibleElements(){const t=this._cachedMeta;let o=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&o++}),o}_computeAngle(t,o,r){return this.chart.getDataVisibility(t)?wo(this.resolveDataElementOptions(t,o).angle||r):0}}_e(Ia,"id","polarArea"),_e(Ia,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),_e(Ia,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:o,color:r}}=e.legend.options;return t.labels.map((a,i)=>{const l=e.getDatasetMeta(0).controller.getStyle(i);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,o){o.chart.toggleDataVisibility(t.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class gl extends yr{}_e(gl,"id","pie"),_e(gl,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ii extends Qn{getLabelAndValue(t){const o=this._cachedMeta.vScale,r=this.getParsed(t);return{label:o.getLabels()[t],value:""+o.getLabelForValue(r[o.axis])}}parseObjectData(t,o,r,a){return Y6.bind(this)(t,o,r,a)}update(t){const o=this._cachedMeta,r=o.dataset,a=o.data||[],i=o.iScale.getLabels();if(r.points=a,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===a.length,options:s};this.updateElement(r,void 0,l,t)}this.updateElements(a,0,a.length,t)}updateElements(t,o,r,a){const i=this._cachedMeta.rScale,s=a==="reset";for(let l=o;l<o+r;l++){const c=t[l],d=this.resolveDataElementOptions(l,c.active?"active":a),u=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:u.x,h=s?i.yCenter:u.y,p={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:d};this.updateElement(c,l,p,a)}}}_e(Ii,"id","radar"),_e(Ii,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),_e(Ii,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Di extends Qn{getLabelAndValue(t){const o=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=o,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[t]||"",value:"("+l+", "+c+")"}}update(t){const o=this._cachedMeta,{data:r=[]}=o,a=this.chart._animationsDisabled;let{start:i,count:s}=M6(o,r,a);if(this._drawStart=i,this._drawCount=s,P6(o)&&(i=0,s=r.length),this.options.showLine){const{dataset:l,_dataset:c}=o;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const d=this.resolveDatasetElementOptions(t);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!a,options:d},t)}this.updateElements(r,i,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,o,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,u=this.resolveDataElementOptions(o,a),f=this.getSharedOptions(u),h=this.includeOptions(a,f),p=s.axis,m=l.axis,{spanGaps:g,segment:y}=this.options,w=Ti(g)?g:Number.POSITIVE_INFINITY,$=this.chart._animationsDisabled||i||a==="none";let C=o>0&&this.getParsed(o-1);for(let b=o;b<o+r;++b){const k=t[b],S=this.getParsed(b),E=$?k:{},N=Qe(S[m]),_=E[p]=s.getPixelForValue(S[p],b),T=E[m]=i||N?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[m],b);E.skip=isNaN(_)||isNaN(T)||N,E.stop=b>0&&Math.abs(S[p]-C[p])>w,y&&(E.parsed=S,E.raw=d.data[b]),h&&(E.options=f||this.resolveDataElementOptions(b,k.active?"active":a)),$||this.updateElement(k,b,E,a),C=S}this.updateSharedOptions(f,a,u)}getMaxOverflow(){const t=this._cachedMeta,o=t.data||[];if(!this.options.showLine){let l=0;for(let c=o.length-1;c>=0;--c)l=Math.max(l,o[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!o.length)return a;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(a,i,s)/2}}_e(Di,"id","scatter"),_e(Di,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),_e(Di,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var w5=Object.freeze({__proto__:null,BarController:Pi,BubbleController:vi,DoughnutController:yr,LineController:Oi,PolarAreaController:Ia,PieController:gl,RadarController:Ii,ScatterController:Di});function Da(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Pm{static override(t){Object.assign(Pm.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return Da()}parse(){return Da()}format(){return Da()}add(){return Da()}diff(){return Da()}startOf(){return Da()}endOf(){return Da()}}var $5={_date:Pm};function eee(e,t,o,r){const{controller:a,data:i,_sorted:s}=e,l=a._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&s&&i.length){const c=l._reversePixels?EJ:gr;if(r){if(a._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(t);if(u){const f=c(i,t,o-u),h=c(i,t,o+u);return{lo:f.lo,hi:h.hi}}}}else return c(i,t,o)}return{lo:0,hi:i.length-1}}function yl(e,t,o,r,a){const i=e.getSortedVisibleDatasetMetas(),s=o[t];for(let l=0,c=i.length;l<c;++l){const{index:d,data:u}=i[l],{lo:f,hi:h}=eee(i[l],t,s,a);for(let p=f;p<=h;++p){const m=u[p];m.skip||r(m,d,p)}}}function tee(e){const t=e.indexOf("x")!==-1,o=e.indexOf("y")!==-1;return function(r,a){const i=t?Math.abs(r.x-a.x):0,s=o?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function vm(e,t,o,r,a){const i=[];return!a&&!e.isPointInArea(t)||yl(e,o,t,function(l,c,d){!a&&!fl(l,e.chartArea,0)||l.inRange(t.x,t.y,r)&&i.push({element:l,datasetIndex:c,index:d})},!0),i}function nee(e,t,o,r){let a=[];function i(s,l,c){const{startAngle:d,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:f}=B6(s,{x:t.x,y:t.y});sl(f,d,u)&&a.push({element:s,datasetIndex:l,index:c})}return yl(e,o,t,i),a}function oee(e,t,o,r,a,i){let s=[];const l=tee(o);let c=Number.POSITIVE_INFINITY;function d(u,f,h){const p=u.inRange(t.x,t.y,a);if(r&&!p)return;const m=u.getCenterPoint(a);if(!(!!i||e.isPointInArea(m))&&!p)return;const y=l(t,m);y<c?(s=[{element:u,datasetIndex:f,index:h}],c=y):y===c&&s.push({element:u,datasetIndex:f,index:h})}return yl(e,o,t,d),s}function Om(e,t,o,r,a,i){return!i&&!e.isPointInArea(t)?[]:o==="r"&&!r?nee(e,t,o,a):oee(e,t,o,r,a,i)}function k5(e,t,o,r,a){const i=[],s=o==="x"?"inXRange":"inYRange";let l=!1;return yl(e,o,t,(c,d,u)=>{c[s](t[o],a)&&(i.push({element:c,datasetIndex:d,index:u}),l=l||c.inRange(t.x,t.y,a))}),r&&!l?[]:i}var S5={evaluateInteractionItems:yl,modes:{index(e,t,o,r){const a=va(t,e),i=o.axis||"x",s=o.includeInvisible||!1,l=o.intersect?vm(e,a,i,r,s):Om(e,a,i,!1,r,s),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(d=>{const u=l[0].index,f=d.data[u];f&&!f.skip&&c.push({element:f,datasetIndex:d.index,index:u})}),c):[]},dataset(e,t,o,r){const a=va(t,e),i=o.axis||"xy",s=o.includeInvisible||!1;let l=o.intersect?vm(e,a,i,r,s):Om(e,a,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,d=e.getDatasetMeta(c).data;l=[];for(let u=0;u<d.length;++u)l.push({element:d[u],datasetIndex:c,index:u})}return l},point(e,t,o,r){const a=va(t,e),i=o.axis||"xy",s=o.includeInvisible||!1;return vm(e,a,i,r,s)},nearest(e,t,o,r){const a=va(t,e),i=o.axis||"xy",s=o.includeInvisible||!1;return Om(e,a,i,o.intersect,r,s)},x(e,t,o,r){const a=va(t,e);return k5(e,a,"x",o.intersect,r)},y(e,t,o,r){const a=va(t,e);return k5(e,a,"y",o.intersect,r)}}};const E5=["left","top","right","bottom"];function bl(e,t){return e.filter(o=>o.pos===t)}function B5(e,t){return e.filter(o=>E5.indexOf(o.pos)===-1&&o.box.axis===t)}function Cl(e,t){return e.sort((o,r)=>{const a=t?r:o,i=t?o:r;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function ree(e){const t=[];let o,r,a,i,s,l;for(o=0,r=(e||[]).length;o<r;++o)a=e[o],{position:i,options:{stack:s,stackWeight:l=1}}=a,t.push({index:o,box:a,pos:i,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&i+s,stackWeight:l});return t}function aee(e){const t={};for(const o of e){const{stack:r,pos:a,stackWeight:i}=o;if(!r||!E5.includes(a))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function iee(e,t){const o=aee(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let i,s,l;for(i=0,s=e.length;i<s;++i){l=e[i];const{fullSize:c}=l.box,d=o[l.stack],u=d&&l.stackWeight/d.weight;l.horizontal?(l.width=u?u*r:c&&t.availableWidth,l.height=a):(l.width=r,l.height=u?u*a:c&&t.availableHeight)}return o}function see(e){const t=ree(e),o=Cl(t.filter(d=>d.box.fullSize),!0),r=Cl(bl(t,"left"),!0),a=Cl(bl(t,"right")),i=Cl(bl(t,"top"),!0),s=Cl(bl(t,"bottom")),l=B5(t,"x"),c=B5(t,"y");return{fullSize:o,leftAndTop:r.concat(i),rightAndBottom:a.concat(c).concat(s).concat(l),chartArea:bl(t,"chartArea"),vertical:r.concat(a).concat(c),horizontal:i.concat(s).concat(l)}}function N5(e,t,o,r){return Math.max(e[o],t[o])+Math.max(e[r],t[r])}function _5(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function lee(e,t,o,r){const{pos:a,box:i}=o,s=e.maxPadding;if(!qe(a)){o.size&&(e[a]-=o.size);const f=r[o.stack]||{size:0,count:1};f.size=Math.max(f.size,o.horizontal?i.height:i.width),o.size=f.size/f.count,e[a]+=o.size}i.getPadding&&_5(s,i.getPadding());const l=Math.max(0,t.outerWidth-N5(s,e,"left","right")),c=Math.max(0,t.outerHeight-N5(s,e,"top","bottom")),d=l!==e.w,u=c!==e.h;return e.w=l,e.h=c,o.horizontal?{same:d,other:u}:{same:u,other:d}}function cee(e){const t=e.maxPadding;function o(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=o("top"),e.x+=o("left"),o("right"),o("bottom")}function dee(e,t){const o=t.maxPadding;function r(a){const i={left:0,top:0,right:0,bottom:0};return a.forEach(s=>{i[s]=Math.max(t[s],o[s])}),i}return r(e?["left","right"]:["top","bottom"])}function wl(e,t,o,r){const a=[];let i,s,l,c,d,u;for(i=0,s=e.length,d=0;i<s;++i){l=e[i],c=l.box,c.update(l.width||t.w,l.height||t.h,dee(l.horizontal,t));const{same:f,other:h}=lee(t,o,l,r);d|=f&&a.length,u=u||h,c.fullSize||a.push(l)}return d&&wl(a,t,o,r)||u}function Wd(e,t,o,r,a){e.top=o,e.left=t,e.right=t+r,e.bottom=o+a,e.width=r,e.height=a}function T5(e,t,o,r){const a=o.padding;let{x:i,y:s}=t;for(const l of e){const c=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/d.weight||1;if(l.horizontal){const f=t.w*u,h=d.size||c.height;Jn(d.start)&&(s=d.start),c.fullSize?Wd(c,a.left,s,o.outerWidth-a.right-a.left,h):Wd(c,t.left+d.placed,s,f,h),d.start=s,d.placed+=f,s=c.bottom}else{const f=t.h*u,h=d.size||c.width;Jn(d.start)&&(i=d.start),c.fullSize?Wd(c,i,a.top,h,o.outerHeight-a.bottom-a.top):Wd(c,i,t.top+d.placed,h,f),d.start=i,d.placed+=f,i=c.right}}t.x=i,t.y=s}var jt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(o){t.draw(o)}}]},e.boxes.push(t)},removeBox(e,t){const o=e.boxes?e.boxes.indexOf(t):-1;o!==-1&&e.boxes.splice(o,1)},configure(e,t,o){t.fullSize=o.fullSize,t.position=o.position,t.weight=o.weight},update(e,t,o,r){if(!e)return;const a=Qt(e.options.layout.padding),i=Math.max(t-a.width,0),s=Math.max(o-a.height,0),l=see(e.boxes),c=l.vertical,d=l.horizontal;dt(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=c.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:o,padding:a,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},a);_5(h,Qt(r));const p=Object.assign({maxPadding:h,w:i,h:s,x:a.left,y:a.top},a),m=iee(c.concat(d),f);wl(l.fullSize,p,f,m),wl(c,p,f,m),wl(d,p,f,m)&&wl(c,p,f,m),cee(p),T5(l.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,T5(l.rightAndBottom,p,f,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},dt(l.chartArea,g=>{const y=g.box;Object.assign(y,e.chartArea),y.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Im{acquireContext(t,o){}releaseContext(t){return!1}addEventListener(t,o,r){}removeEventListener(t,o,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,o,r,a){return o=Math.max(0,o||t.width),r=r||t.height,{width:o,height:Math.max(0,a?Math.floor(o/a):r)}}isAttached(t){return!0}updateConfig(t){}}class A5 extends Im{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Kd="$chartjs",uee={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},x5=e=>e===null||e==="";function fee(e,t){const o=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Kd]={initial:{height:r,width:a,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",x5(a)){const i=J6(e,"width");i!==void 0&&(e.width=i)}if(x5(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=J6(e,"height");i!==void 0&&(e.height=i)}return e}const M5=yQ?{passive:!0}:!1;function hee(e,t,o){e.addEventListener(t,o,M5)}function pee(e,t,o){e.canvas.removeEventListener(t,o,M5)}function mee(e,t){const o=uee[e.type]||e.type,{x:r,y:a}=va(e,t);return{type:o,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function jd(e,t){for(const o of e)if(o===t||o.contains(t))return!0}function gee(e,t,o){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||jd(l.addedNodes,r),s=s&&!jd(l.removedNodes,r);s&&o()});return a.observe(document,{childList:!0,subtree:!0}),a}function yee(e,t,o){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||jd(l.removedNodes,r),s=s&&!jd(l.addedNodes,r);s&&o()});return a.observe(document,{childList:!0,subtree:!0}),a}const $l=new Map;let P5=0;function v5(){const e=window.devicePixelRatio;e!==P5&&(P5=e,$l.forEach((t,o)=>{o.currentDevicePixelRatio!==e&&t()}))}function bee(e,t){$l.size||window.addEventListener("resize",v5),$l.set(e,t)}function Cee(e){$l.delete(e),$l.size||window.removeEventListener("resize",v5)}function wee(e,t,o){const r=e.canvas,a=r&&_m(r);if(!a)return;const i=x6((l,c)=>{const d=a.clientWidth;o(l,c),d<a.clientWidth&&o()},window),s=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,u=c.contentRect.height;d===0&&u===0||i(d,u)});return s.observe(a),bee(e,i),s}function Dm(e,t,o){o&&o.disconnect(),t==="resize"&&Cee(e)}function $ee(e,t,o){const r=e.canvas,a=x6(i=>{e.ctx!==null&&o(mee(i,e))},e);return hee(r,t,a),a}class O5 extends Im{acquireContext(t,o){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(fee(t,o),r):null}releaseContext(t){const o=t.canvas;if(!o[Kd])return!1;const r=o[Kd].initial;["height","width"].forEach(i=>{const s=r[i];Qe(s)?o.removeAttribute(i):o.setAttribute(i,s)});const a=r.style||{};return Object.keys(a).forEach(i=>{o.style[i]=a[i]}),o.width=o.width,delete o[Kd],!0}addEventListener(t,o,r){this.removeEventListener(t,o);const a=t.$proxies||(t.$proxies={}),s={attach:gee,detach:yee,resize:wee}[o]||$ee;a[o]=s(t,o,r)}removeEventListener(t,o){const r=t.$proxies||(t.$proxies={}),a=r[o];if(!a)return;({attach:Dm,detach:Dm,resize:Dm}[o]||pee)(t,o,a),r[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,o,r,a){return gQ(t,o,r,a)}isAttached(t){const o=_m(t);return!!(o&&o.isConnected)}}function I5(e){return!Z6()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?A5:O5}class eo{constructor(){_e(this,"active",!1)}tooltipPosition(t){const{x:o,y:r}=this.getProps(["x","y"],t);return{x:o,y:r}}hasValue(){return Ti(this.x)&&Ti(this.y)}getProps(t,o){const r=this.$animations;if(!o||!r)return this;const a={};return t.forEach(i=>{a[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),a}}_e(eo,"defaults",{}),_e(eo,"defaultRoutes");function kee(e,t){const o=e.options.ticks,r=See(e),a=Math.min(o.maxTicksLimit||r,r),i=o.major.enabled?Bee(t):[],s=i.length,l=i[0],c=i[s-1],d=[];if(s>a)return Nee(t,d,i,s/a),d;const u=Eee(i,t,a);if(s>0){let f,h;const p=s>1?Math.round((c-l)/(s-1)):null;for(Ud(t,d,u,Qe(p)?0:l-p,l),f=0,h=s-1;f<h;f++)Ud(t,d,u,i[f],i[f+1]);return Ud(t,d,u,c,Qe(p)?t.length:c+p),d}return Ud(t,d,u),d}function See(e){const t=e.options.offset,o=e._tickSize(),r=e._length/o+(t?0:1),a=e._maxLength/o;return Math.floor(Math.min(r,a))}function Eee(e,t,o){const r=_ee(e),a=t.length/o;if(!r)return Math.max(a,1);const i=wJ(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>a)return c}return Math.max(a,1)}function Bee(e){const t=[];let o,r;for(o=0,r=e.length;o<r;o++)e[o].major&&t.push(o);return t}function Nee(e,t,o,r){let a=0,i=o[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===i&&(t.push(e[s]),a++,i=o[a*r])}function Ud(e,t,o,r,a){const i=Ke(r,0),s=Math.min(Ke(a,e.length),e.length);let l=0,c,d,u;for(o=Math.ceil(o),a&&(c=a-r,o=c/Math.floor(c/o)),u=i;u<0;)l++,u=Math.round(i+l*o);for(d=Math.max(i,0);d<s;d++)d===u&&(t.push(e[d]),l++,u=Math.round(i+l*o))}function _ee(e){const t=e.length;let o,r;if(t<2)return!1;for(r=e[0],o=1;o<t;++o)if(e[o]-e[o-1]!==r)return!1;return r}const Tee=e=>e==="left"?"right":e==="right"?"left":e,D5=(e,t,o)=>t==="top"||t==="left"?e[t]+o:e[t]-o,R5=(e,t)=>Math.min(t||e,e);function L5(e,t){const o=[],r=e.length/t,a=e.length;let i=0;for(;i<a;i+=r)o.push(e[Math.floor(i)]);return o}function Aee(e,t,o){const r=e.ticks.length,a=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,l=1e-6;let c=e.getPixelForTick(a),d;if(!(o&&(r===1?d=Math.max(c-i,s-c):t===0?d=(e.getPixelForTick(1)-c)/2:d=(c-e.getPixelForTick(a-1))/2,c+=a<t?d:-d,c<i-l||c>s+l)))return c}function xee(e,t){dt(e,o=>{const r=o.gc,a=r.length/2;let i;if(a>t){for(i=0;i<a;++i)delete o.data[r[i]];r.splice(0,a)}})}function kl(e){return e.drawTicks?e.tickLength:0}function V5(e,t){if(!e.display)return 0;const o=Dt(e.font,t),r=Qt(e.padding);return(bt(e.text)?e.text.length:1)*o.lineHeight+r.height}function Mee(e,t){return Yr(e,{scale:t,type:"scale"})}function Pee(e,t,o){return Yr(e,{tick:o,index:t,type:"tick"})}function vee(e,t,o){let r=bm(e);return(o&&t!=="right"||!o&&t==="right")&&(r=Tee(r)),r}function Oee(e,t,o,r){const{top:a,left:i,bottom:s,right:l,chart:c}=e,{chartArea:d,scales:u}=c;let f=0,h,p,m;const g=s-a,y=l-i;if(e.isHorizontal()){if(p=Jt(r,i,l),qe(o)){const w=Object.keys(o)[0],$=o[w];m=u[w].getPixelForValue($)+g-t}else o==="center"?m=(d.bottom+d.top)/2+g-t:m=D5(e,o,t);h=l-i}else{if(qe(o)){const w=Object.keys(o)[0],$=o[w];p=u[w].getPixelForValue($)-y+t}else o==="center"?p=(d.left+d.right)/2-y+t:p=D5(e,o,t);m=Jt(r,s,a),f=o==="left"?-Nt:Nt}return{titleX:p,titleY:m,maxWidth:h,rotation:f}}class qr extends eo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,o){return t}getUserBounds(){let{_userMin:t,_userMax:o,_suggestedMin:r,_suggestedMax:a}=this;return t=Mn(t,Number.POSITIVE_INFINITY),o=Mn(o,Number.NEGATIVE_INFINITY),r=Mn(r,Number.POSITIVE_INFINITY),a=Mn(a,Number.NEGATIVE_INFINITY),{min:Mn(t,r),max:Mn(o,a),minDefined:Bt(t),maxDefined:Bt(o)}}getMinMax(t){let{min:o,max:r,minDefined:a,maxDefined:i}=this.getUserBounds(),s;if(a&&i)return{min:o,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,t),a||(o=Math.min(o,s.min)),i||(r=Math.max(r,s.max));return o=i&&o>r?r:o,r=a&&o>r?o:r,{min:Mn(o,Mn(r,o)),max:Mn(r,Mn(o,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){gt(this.options.beforeUpdate,[this])}update(t,o,r){const{beginAtZero:a,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=o,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=YJ(this,i,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?L5(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=kee(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,o,r;this.isHorizontal()?(o=this.left,r=this.right):(o=this.top,r=this.bottom,t=!t),this._startPixel=o,this._endPixel=r,this._reversePixels=t,this._length=r-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){gt(this.options.afterUpdate,[this])}beforeSetDimensions(){gt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){gt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),gt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){gt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const o=this.options.ticks;let r,a,i;for(r=0,a=t.length;r<a;r++)i=t[r],i.label=gt(o.callback,[i.value,r,t],this)}afterTickToLabelConversion(){gt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){gt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,o=t.ticks,r=R5(this.ticks.length,t.ticks.maxTicksLimit),a=o.minRotation||0,i=o.maxRotation;let s=a,l,c,d;if(!this._isVisible()||!o.display||a>=i||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,p=zt(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:p/(r-1),f+6>l&&(l=p/(r-(t.offset?.5:1)),c=this.maxHeight-kl(t.grid)-o.padding-V5(t.title,this.chart.options.font),d=Math.sqrt(f*f+h*h),s=mm(Math.min(Math.asin(zt((u.highest.height+6)/l,-1,1)),Math.asin(zt(c/d,-1,1))-Math.asin(zt(h/d,-1,1)))),s=Math.max(a,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){gt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){gt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:o,options:{ticks:r,title:a,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=V5(a,o.options.font);if(l?(t.width=this.maxWidth,t.height=kl(i)+c):(t.height=this.maxHeight,t.width=kl(i)+c),r.display&&this.ticks.length){const{first:d,last:u,widest:f,highest:h}=this._getLabelSizes(),p=r.padding*2,m=wo(this.labelRotation),g=Math.cos(m),y=Math.sin(m);if(l){const w=r.mirror?0:y*f.width+g*h.height;t.height=Math.min(this.maxHeight,t.height+w+p)}else{const w=r.mirror?0:g*f.width+y*h.height;t.width=Math.min(this.maxWidth,t.width+w+p)}this._calculatePadding(d,u,y,g)}}this._handleMargins(),l?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,o,r,a){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;c?d?(h=a*t.width,p=r*o.height):(h=r*t.height,p=a*o.width):i==="start"?p=o.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,p=o.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-f+s)*this.width/(this.width-f),0)}else{let u=o.height/2,f=t.height/2;i==="start"?(u=0,f=t.height):i==="end"&&(u=o.height,f=0),this.paddingTop=u+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){gt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:o}=this.options;return o==="top"||o==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let o,r;for(o=0,r=t.length;o<r;o++)Qe(t[o].label)&&(t.splice(o,1),r--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const o=this.options.ticks.sampleSize;let r=this.ticks;o<r.length&&(r=L5(r,o)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,o,r){const{ctx:a,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(o/R5(o,r));let d=0,u=0,f,h,p,m,g,y,w,$,C,b,k;for(f=0;f<o;f+=c){if(m=t[f].label,g=this._resolveTickFontOptions(f),a.font=y=g.string,w=i[y]=i[y]||{data:{},gc:[]},$=g.lineHeight,C=b=0,!Qe(m)&&!bt(m))C=Dd(a,w.data,w.gc,C,m),b=$;else if(bt(m))for(h=0,p=m.length;h<p;++h)k=m[h],!Qe(k)&&!bt(k)&&(C=Dd(a,w.data,w.gc,C,k),b+=$);s.push(C),l.push(b),d=Math.max(C,d),u=Math.max(b,u)}xee(i,o);const S=s.indexOf(d),E=l.indexOf(u),N=_=>({width:s[_]||0,height:l[_]||0});return{first:N(0),last:N(o-1),widest:N(S),highest:N(E),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,o){return NaN}getValueForPixel(t){}getPixelForTick(t){const o=this.ticks;return t<0||t>o.length-1?null:this.getPixelForValue(o[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const o=this._startPixel+t*this._length;return SJ(this._alignToPixels?Aa(this.chart,o,0):o)}getDecimalForPixel(t){const o=(t-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:o}=this;return t<0&&o<0?o:t>0&&o>0?t:0}getContext(t){const o=this.ticks||[];if(t>=0&&t<o.length){const r=o[t];return r.$context||(r.$context=Pee(this.getContext(),t,r))}return this.$context||(this.$context=Mee(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,o=wo(this.labelRotation),r=Math.abs(Math.cos(o)),a=Math.abs(Math.sin(o)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*a?l/r:c/a:c*a<l*r?c/r:l/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const o=this.axis,r=this.chart,a=this.options,{grid:i,position:s,border:l}=a,c=i.offset,d=this.isHorizontal(),f=this.ticks.length+(c?1:0),h=kl(i),p=[],m=l.setContext(this.getContext()),g=m.display?m.width:0,y=g/2,w=function(F){return Aa(r,F,g)};let $,C,b,k,S,E,N,_,T,P,x,v;if(s==="top")$=w(this.bottom),E=this.bottom-h,_=$-y,P=w(t.top)+y,v=t.bottom;else if(s==="bottom")$=w(this.top),P=t.top,v=w(t.bottom)-y,E=$+y,_=this.top+h;else if(s==="left")$=w(this.right),S=this.right-h,N=$-y,T=w(t.left)+y,x=t.right;else if(s==="right")$=w(this.left),T=t.left,x=w(t.right)-y,S=$+y,N=this.left+h;else if(o==="x"){if(s==="center")$=w((t.top+t.bottom)/2+.5);else if(qe(s)){const F=Object.keys(s)[0],M=s[F];$=w(this.chart.scales[F].getPixelForValue(M))}P=t.top,v=t.bottom,E=$+y,_=E+h}else if(o==="y"){if(s==="center")$=w((t.left+t.right)/2);else if(qe(s)){const F=Object.keys(s)[0],M=s[F];$=w(this.chart.scales[F].getPixelForValue(M))}S=$-y,N=S-h,T=t.left,x=t.right}const O=Ke(a.ticks.maxTicksLimit,f),I=Math.max(1,Math.ceil(f/O));for(C=0;C<f;C+=I){const F=this.getContext(C),M=i.setContext(F),z=l.setContext(F),B=M.lineWidth,L=M.color,W=z.dash||[],R=z.dashOffset,H=M.tickWidth,j=M.tickColor,U=M.tickBorderDash||[],re=M.tickBorderDashOffset;b=Aee(this,C,c),b!==void 0&&(k=Aa(r,b,B),d?S=N=T=x=k:E=_=P=v=k,p.push({tx1:S,ty1:E,tx2:N,ty2:_,x1:T,y1:P,x2:x,y2:v,width:B,color:L,borderDash:W,borderDashOffset:R,tickWidth:H,tickColor:j,tickBorderDash:U,tickBorderDashOffset:re}))}return this._ticksLength=f,this._borderValue=$,p}_computeLabelItems(t){const o=this.axis,r=this.options,{position:a,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:u,mirror:f}=i,h=kl(r.grid),p=h+u,m=f?-u:p,g=-wo(this.labelRotation),y=[];let w,$,C,b,k,S,E,N,_,T,P,x,v="middle";if(a==="top")S=this.bottom-m,E=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+m,E=this._getXAxisLabelAlignment();else if(a==="left"){const I=this._getYAxisLabelAlignment(h);E=I.textAlign,k=I.x}else if(a==="right"){const I=this._getYAxisLabelAlignment(h);E=I.textAlign,k=I.x}else if(o==="x"){if(a==="center")S=(t.top+t.bottom)/2+p;else if(qe(a)){const I=Object.keys(a)[0],F=a[I];S=this.chart.scales[I].getPixelForValue(F)+p}E=this._getXAxisLabelAlignment()}else if(o==="y"){if(a==="center")k=(t.left+t.right)/2-p;else if(qe(a)){const I=Object.keys(a)[0],F=a[I];k=this.chart.scales[I].getPixelForValue(F)}E=this._getYAxisLabelAlignment(h).textAlign}o==="y"&&(c==="start"?v="top":c==="end"&&(v="bottom"));const O=this._getLabelSizes();for(w=0,$=l.length;w<$;++w){C=l[w],b=C.label;const I=i.setContext(this.getContext(w));N=this.getPixelForTick(w)+i.labelOffset,_=this._resolveTickFontOptions(w),T=_.lineHeight,P=bt(b)?b.length:1;const F=P/2,M=I.color,z=I.textStrokeColor,B=I.textStrokeWidth;let L=E;s?(k=N,E==="inner"&&(w===$-1?L=this.options.reverse?"left":"right":w===0?L=this.options.reverse?"right":"left":L="center"),a==="top"?d==="near"||g!==0?x=-P*T+T/2:d==="center"?x=-O.highest.height/2-F*T+T:x=-O.highest.height+T/2:d==="near"||g!==0?x=T/2:d==="center"?x=O.highest.height/2-F*T:x=O.highest.height-P*T,f&&(x*=-1),g!==0&&!I.showLabelBackdrop&&(k+=T/2*Math.sin(g))):(S=N,x=(1-P)*T/2);let W;if(I.showLabelBackdrop){const R=Qt(I.backdropPadding),H=O.heights[w],j=O.widths[w];let U=x-R.top,re=0-R.left;switch(v){case"middle":U-=H/2;break;case"bottom":U-=H;break}switch(E){case"center":re-=j/2;break;case"right":re-=j;break}W={left:re,top:U,width:j+R.width,height:H+R.height,color:I.backdropColor}}y.push({label:b,font:_,textOffset:x,options:{rotation:g,color:M,strokeColor:z,strokeWidth:B,textAlign:L,textBaseline:v,translation:[k,S],backdrop:W}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:o}=this.options;if(-wo(this.labelRotation))return t==="top"?"left":"right";let a="center";return o.align==="start"?a="left":o.align==="end"?a="right":o.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:o,ticks:{crossAlign:r,mirror:a,padding:i}}=this.options,s=this._getLabelSizes(),l=t+i,c=s.widest.width;let d,u;return o==="left"?a?(u=this.right+i,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u+=c)):(u=this.right-l,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u=this.left)):o==="right"?a?(u=this.left+i,r==="near"?d="right":r==="center"?(d="center",u-=c/2):(d="left",u-=c)):(u=this.left+l,r==="near"?d="left":r==="center"?(d="center",u+=c/2):(d="right",u=this.right)):d="right",{textAlign:d,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:o},left:r,top:a,width:i,height:s}=this;o&&(t.save(),t.fillStyle=o,t.fillRect(r,a,i,s),t.restore())}getLineWidthForValue(t){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const a=this.ticks.findIndex(i=>i.value===t);return a>=0?o.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const o=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const l=(c,d,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(o.display)for(i=0,s=a.length;i<s;++i){const c=a[i];o.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),o.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:o,options:{border:r,grid:a}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=a.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,u,f,h;this.isHorizontal()?(d=Aa(t,this.left,s)-s/2,u=Aa(t,this.right,l)+l/2,f=h=c):(f=Aa(t,this.top,s)-s/2,h=Aa(t,this.bottom,l)+l/2,d=u=c),o.save(),o.lineWidth=i.width,o.strokeStyle=i.color,o.beginPath(),o.moveTo(d,f),o.lineTo(u,h),o.stroke(),o.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Rd(r,a);const i=this.getLabelItems(t);for(const s of i){const l=s.options,c=s.font,d=s.label,u=s.textOffset;xa(r,d,0,u,c,l)}a&&Ld(r)}drawTitle(){const{ctx:t,options:{position:o,title:r,reverse:a}}=this;if(!r.display)return;const i=Dt(r.font),s=Qt(r.padding),l=r.align;let c=i.lineHeight/2;o==="bottom"||o==="center"||qe(o)?(c+=s.bottom,bt(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:d,titleY:u,maxWidth:f,rotation:h}=Oee(this,c,o,l);xa(t,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:h,textAlign:vee(l,o,a),textBaseline:"middle",translation:[d,u]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,o=t.ticks&&t.ticks.z||0,r=Ke(t.grid&&t.grid.z,-1),a=Ke(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==qr.prototype.draw?[{z:o,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const o=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let i,s;for(i=0,s=o.length;i<s;++i){const l=o[i];l[r]===this.id&&(!t||l.type===t)&&a.push(l)}return a}_resolveTickFontOptions(t){const o=this.options.ticks.setContext(this.getContext(t));return Dt(o.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Gd{constructor(t,o,r){this.type=t,this.scope=o,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const o=Object.getPrototypeOf(t);let r;Ree(o)&&(r=this.register(o));const a=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in a||(a[i]=t,Iee(t,s,r),this.override&&_t.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const o=this.items,r=t.id,a=this.scope;r in o&&delete o[r],a&&r in _t[a]&&(delete _t[a][r],this.override&&delete Ta[r])}}function Iee(e,t,o){const r=rl(Object.create(null),[o?_t.get(o):{},_t.get(t),e.defaults]);_t.set(t,r),e.defaultRoutes&&Dee(t,e.defaultRoutes),e.descriptors&&_t.describe(t,e.descriptors)}function Dee(e,t){Object.keys(t).forEach(o=>{const r=o.split("."),a=r.pop(),i=[e].concat(r).join("."),s=t[o].split("."),l=s.pop(),c=s.join(".");_t.route(i,a,c,l)})}function Ree(e){return"id"in e&&"defaults"in e}class Lee{constructor(){this.controllers=new Gd(Qn,"datasets",!0),this.elements=new Gd(eo,"elements"),this.plugins=new Gd(Object,"plugins"),this.scales=new Gd(qr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,o,r){[...o].forEach(a=>{const i=r||this._getRegistryForType(a);r||i.isForType(a)||i===this.plugins&&a.id?this._exec(t,i,a):dt(a,s=>{const l=r||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,o,r){const a=pm(t);gt(r["before"+a],[],r),o[t](r),gt(r["after"+a],[],r)}_getRegistryForType(t){for(let o=0;o<this._typedRegistries.length;o++){const r=this._typedRegistries[o];if(r.isForType(t))return r}return this.plugins}_get(t,o,r){const a=o.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var $o=new Lee;class Vee{constructor(){this._init=[]}notify(t,o,r,a){o==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=a?this._descriptors(t).filter(a):this._descriptors(t),s=this._notify(i,t,o,r);return o==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,o,r,a){a=a||{};for(const i of t){const s=i.plugin,l=s[r],c=[o,a,i.options];if(gt(l,c,s)===!1&&a.cancelable)return!1}return!0}invalidate(){Qe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),o}_createDescriptors(t,o){const r=t&&t.config,a=Ke(r.options&&r.options.plugins,{}),i=Fee(r);return a===!1&&!o?[]:Hee(t,i,a,o)}_notifyStateChanges(t){const o=this._oldCache||[],r=this._cache,a=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(a(o,r),t,"stop"),this._notify(a(r,o),t,"start")}}function Fee(e){const t={},o=[],r=Object.keys($o.plugins.items);for(let i=0;i<r.length;i++)o.push($o.getPlugin(r[i]));const a=e.plugins||[];for(let i=0;i<a.length;i++){const s=a[i];o.indexOf(s)===-1&&(o.push(s),t[s.id]=!0)}return{plugins:o,localIds:t}}function zee(e,t){return!t&&e===!1?null:e===!0?{}:e}function Hee(e,{plugins:t,localIds:o},r,a){const i=[],s=e.getContext();for(const l of t){const c=l.id,d=zee(r[c],a);d!==null&&i.push({plugin:l,options:Wee(e.config,{plugin:l,local:o[c]},d,s)})}return i}function Wee(e,{plugin:t,local:o},r,a){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return o&&t.defaults&&s.push(t.defaults),e.createResolver(s,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Rm(e,t){const o=_t.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||o.indexAxis||"x"}function Kee(e,t){let o=e;return e==="_index_"?o=t:e==="_value_"&&(o=t==="x"?"y":"x"),o}function jee(e,t){return e===t?"_index_":"_value_"}function Uee(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Yd(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||Uee(t.position)||e.length>1&&Yd(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Gee(e,t){const o=Ta[e.type]||{scales:{}},r=t.scales||{},a=Rm(e.type,t),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!qe(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Yd(s,l),d=jee(c,a),u=o.scales||{};i[s]=al(Object.create(null),[{axis:c},l,u[c],u[d]])}),e.data.datasets.forEach(s=>{const l=s.type||e.type,c=s.indexAxis||Rm(l,t),u=(Ta[l]||{}).scales||{};Object.keys(u).forEach(f=>{const h=Kee(f,c),p=s[h+"AxisID"]||h;i[p]=i[p]||Object.create(null),al(i[p],[{axis:h},r[p],u[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];al(l,[_t.scales[l.type],_t.scale])}),i}function F5(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=Gee(e,t)}function z5(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Yee(e){return e=e||{},e.data=z5(e.data),F5(e),e}const H5=new Map,W5=new Set;function qd(e,t){let o=H5.get(e);return o||(o=t(),H5.set(e,o),W5.add(o)),o}const Sl=(e,t,o)=>{const r=jr(t,o);r!==void 0&&e.add(r)};class qee{constructor(t){this._config=Yee(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=z5(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),F5(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return qd(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,o){return qd(`${t}.transition.${o}`,()=>[[`datasets.${t}.transitions.${o}`,`transitions.${o}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,o){return qd(`${t}-${o}`,()=>[[`datasets.${t}.elements.${o}`,`datasets.${t}`,`elements.${o}`,""]])}pluginScopeKeys(t){const o=t.id,r=this.type;return qd(`${r}-plugin-${o}`,()=>[[`plugins.${o}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,o){const r=this._scopeCache;let a=r.get(t);return(!a||o)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,o,r){const{options:a,type:i}=this,s=this._cachedScopes(t,r),l=s.get(o);if(l)return l;const c=new Set;o.forEach(u=>{t&&(c.add(t),u.forEach(f=>Sl(c,t,f))),u.forEach(f=>Sl(c,a,f)),u.forEach(f=>Sl(c,Ta[i]||{},f)),u.forEach(f=>Sl(c,_t,f)),u.forEach(f=>Sl(c,wm,f))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),W5.has(o)&&s.set(o,d),d}chartOptionScopes(){const{options:t,type:o}=this;return[t,Ta[o]||{},_t.datasets[o]||{},{type:o},_t,wm]}resolveNamedOptions(t,o,r,a=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=K5(this._resolverCache,t,a);let c=s;if(Xee(s,o)){i.$shared=!1,r=Ur(r)?r():r;const d=this.createResolver(t,r,l);c=Ai(s,r,d)}for(const d of o)i[d]=c[d];return i}createResolver(t,o,r=[""],a){const{resolver:i}=K5(this._resolverCache,t,r);return qe(o)?Ai(i,o,void 0,a):i}}function K5(e,t,o){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=o.join();let i=r.get(a);return i||(i={resolver:Em(t,o),subPrefixes:o.filter(l=>!l.toLowerCase().includes("hover"))},r.set(a,i)),i}const Zee=e=>qe(e)&&Object.getOwnPropertyNames(e).reduce((t,o)=>t||Ur(e[o]),!1);function Xee(e,t){const{isScriptable:o,isIndexable:r}=H6(e);for(const a of t){const i=o(a),s=r(a),l=(s||i)&&e[a];if(i&&(Ur(l)||Zee(l))||s&&bt(l))return!0}return!1}var Jee="4.2.1";const Qee=["top","bottom","left","right","chartArea"];function j5(e,t){return e==="top"||e==="bottom"||Qee.indexOf(e)===-1&&t==="x"}function U5(e,t){return function(o,r){return o[e]===r[e]?o[t]-r[t]:o[e]-r[e]}}function G5(e){const t=e.chart,o=t.options.animation;t.notifyPlugins("afterRender"),gt(o&&o.onComplete,[e],t)}function ete(e){const t=e.chart,o=t.options.animation;gt(o&&o.onProgress,[e],t)}function Y5(e){return Z6()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Zd={},q5=e=>{const t=Y5(e);return Object.values(Zd).filter(o=>o.canvas===t).pop()};function tte(e,t,o){const r=Object.keys(e);for(const a of r){const i=+a;if(i>=t){const s=e[a];delete e[a],(o>0||i>t)&&(e[i+o]=s)}}}function nte(e,t,o,r){return!o||e.type==="mouseout"?null:r?t:e}function ote(e){const{xScale:t,yScale:o}=e;if(t&&o)return{left:t.left,right:t.right,top:o.top,bottom:o.bottom}}class Ho{static register(...t){$o.add(...t),Z5()}static unregister(...t){$o.remove(...t),Z5()}constructor(t,o){const r=this.config=new qee(o),a=Y5(t),i=q5(a);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||I5(a)),this.platform.updateConfig(r);const l=this.platform.acquireContext(a,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,u=c&&c.width;if(this.id=uJ(),this.ctx=l,this.canvas=c,this.width=u,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Vee,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_J(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],Zd[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}zo.listen(this,"complete",G5),zo.listen(this,"progress",ete),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:o},width:r,height:a,_aspectRatio:i}=this;return Qe(t)?o&&i?i:a?r/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return $o}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():X6(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return V6(this.canvas,this.ctx),this}stop(){return zo.stop(this),this}resize(t,o){zo.running(this)?this._resizeBeforeDraw={width:t,height:o}:this._resize(t,o)}_resize(t,o){const r=this.options,a=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,t,o,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,X6(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),gt(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};dt(o,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,o=t.scales,r=this.scales,a=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const l=o[s],c=Yd(s,l),d=c==="r",u=c==="x";return{options:l,dposition:d?"chartArea":u?"bottom":"left",dtype:d?"radialLinear":u?"category":"linear"}}))),dt(i,s=>{const l=s.options,c=l.id,d=Yd(c,l),u=Ke(l.type,s.dtype);(l.position===void 0||j5(l.position,d)!==j5(s.dposition))&&(l.position=s.dposition),a[c]=!0;let f=null;if(c in r&&r[c].type===u)f=r[c];else{const h=$o.getScale(u);f=new h({id:c,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),dt(a,(s,l)=>{s||delete r[l]}),dt(r,s=>{jt.configure(this,s,s.options),jt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,o=this.data.datasets.length,r=t.length;if(t.sort((a,i)=>a.index-i.index),r>o){for(let a=o;a<r;++a)this._destroyDatasetMeta(a);t.splice(o,r-o)}this._sortedMetasets=t.slice(0).sort(U5("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:o}}=this;t.length>o.length&&delete this._stacks,t.forEach((r,a)=>{o.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],o=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=o.length;r<a;r++){const i=o[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||Rm(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=$o.getController(l),{datasetElementType:d,dataElementType:u}=_t.datasets[l];Object.assign(c,{dataElementType:$o.getElement(u),datasetElementType:d&&$o.getElement(d)}),s.controller=new c(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){dt(this.data.datasets,(t,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const o=this.config;o.update();const r=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,u=this.data.datasets.length;d<u;d++){const{controller:f}=this.getDatasetMeta(d),h=!a&&i.indexOf(f)===-1;f.buildOrUpdateElements(h),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),a||dt(i,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(U5("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){dt(this.scales,t=>{jt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,o=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!w6(o,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,o=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:i}of o){const s=r==="_removeElements"?-i:i;tte(t,a,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const o=this.data.datasets.length,r=i=>new Set(t.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),a=r(0);for(let i=1;i<o;i++)if(!w6(a,r(i)))return;return Array.from(a).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;jt.update(this,this.width,this.height,t);const o=this.chartArea,r=o.width<=0||o.height<=0;this._layers=[],dt(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,i)=>{a._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let o=0,r=this.data.datasets.length;o<r;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,r=this.data.datasets.length;o<r;++o)this._updateDataset(o,Ur(t)?t({datasetIndex:o}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,o){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(o),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(zo.has(this)?this.attached&&!zo.running(this)&&zo.start(this):(this.draw(),G5({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resize(r,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(t=0;t<o.length&&o[t].z<=0;++t)o[t].draw(this.chartArea);for(this._drawDatasets();t<o.length;++t)o[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const o=this._sortedMetasets,r=[];let a,i;for(a=0,i=o.length;a<i;++a){const s=o[a];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let o=t.length-1;o>=0;--o)this._drawDataset(t[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const o=this.ctx,r=t._clip,a=!r.disabled,i=ote(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(a&&Rd(o,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),a&&Ld(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return fl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,o,r,a){const i=S5.modes[o];return typeof i=="function"?i(this,t,r,a):[]}getDatasetMeta(t){const o=this.data.datasets[t],r=this._metasets;let a=r.filter(i=>i&&i._dataset===o).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:t,_dataset:o,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Yr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const o=this.data.datasets[t];if(!o)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!o.hidden}setDatasetVisibility(t,o){const r=this.getDatasetMeta(t);r.hidden=!o}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,o,r){const a=r?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,a);Jn(o)?(i.data[o].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?a:void 0))}hide(t,o){this._updateVisibility(t,o,!1)}show(t,o){this._updateVisibility(t,o,!0)}_destroyDatasetMeta(t){const o=this._metasets[t];o&&o.controller&&o.controller._destroy(),delete this._metasets[t]}_stop(){let t,o;for(this.stop(),zo.remove(this),t=0,o=this.data.datasets.length;t<o;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:o}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),V6(t,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),delete Zd[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,o=this.platform,r=(i,s)=>{o.addEventListener(this,i,s),t[i]=s},a=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};dt(this.options.events,i=>r(i,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,o=this.platform,r=(c,d)=>{o.addEventListener(this,c,d),t[c]=d},a=(c,d)=>{t[c]&&(o.removeEventListener(this,c,d),delete t[c])},i=(c,d)=>{this.canvas&&this.resize(c,d)};let s;const l=()=>{a("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,a("resize",i),this._stop(),this._resize(0,0),r("attach",l)},o.isAttached(this.canvas)?l():s()}unbindEvents(){dt(this._listeners,(t,o)=>{this.platform.removeEventListener(this,o,t)}),this._listeners={},dt(this._responsiveListeners,(t,o)=>{this.platform.removeEventListener(this,o,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,o,r){const a=r?"set":"remove";let i,s,l,c;for(o==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){s=t[l];const d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const o=this._active||[],r=t.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!Pd(r,o)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,o))}notifyPlugins(t,o,r){return this._plugins.notify(this,t,o,r)}isPluginEnabled(t){return this._plugins._cache.filter(o=>o.plugin.id===t).length===1}_updateHoverStyles(t,o,r){const a=this.options.hover,i=(c,d)=>c.filter(u=>!d.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),s=i(o,t),l=r?t:i(t,o);s.length&&this.updateHoverStyle(s,a.mode,!1),l.length&&a.mode&&this.updateHoverStyle(l,a.mode,!0)}_eventHandler(t,o){const r={event:t,replay:o,cancelable:!0,inChartArea:this.isPointInArea(t)},a=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const i=this._handleEvent(t,o,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(i||r.changed)&&this.render(),this}_handleEvent(t,o,r){const{_active:a=[],options:i}=this,s=o,l=this._getActiveElements(t,a,r,s),c=yJ(t),d=nte(t,this._lastEvent,r,c);r&&(this._lastEvent=null,gt(i.onHover,[t,l,this],this),c&&gt(i.onClick,[t,l,this],this));const u=!Pd(l,a);return(u||o)&&(this._active=l,this._updateHoverStyles(l,a,o)),this._lastEvent=d,u}_getActiveElements(t,o,r,a){if(t.type==="mouseout")return[];if(!r)return o;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,a)}}_e(Ho,"defaults",_t),_e(Ho,"instances",Zd),_e(Ho,"overrides",Ta),_e(Ho,"registry",$o),_e(Ho,"version",Jee),_e(Ho,"getChart",q5);function Z5(){return dt(Ho.instances,e=>e._plugins.invalidate())}function rte(e,t,o){const{startAngle:r,pixelMargin:a,x:i,y:s,outerRadius:l,innerRadius:c}=t;let d=a/l;e.beginPath(),e.arc(i,s,l,r-d,o+d),c>a?(d=a/c,e.arc(i,s,c,o+d,r-d,!0)):e.arc(i,s,a,o+Nt,r-Nt),e.closePath(),e.clip()}function ate(e){return Sm(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ite(e,t,o,r){const a=ate(e.options.borderRadius),i=(o-t)/2,s=Math.min(i,r*t/2),l=c=>{const d=(o-Math.min(i,c))*r/2;return zt(c,0,Math.min(i,d))};return{outerStart:l(a.outerStart),outerEnd:l(a.outerEnd),innerStart:zt(a.innerStart,0,s),innerEnd:zt(a.innerEnd,0,s)}}function Ri(e,t,o,r){return{x:o+e*Math.cos(t),y:r+e*Math.sin(t)}}function Xd(e,t,o,r,a,i){const{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:u}=t,f=Math.max(t.outerRadius+r+o-d,0),h=u>0?u+r+o+d:0;let p=0;const m=a-c;if(r){const I=u>0?u-r:0,F=f>0?f-r:0,M=(I+F)/2,z=M!==0?m*M/(M+r):m;p=(m-z)/2}const g=Math.max(.001,m*f-o/kt)/f,y=(m-g)/2,w=c+y+p,$=a-y-p,{outerStart:C,outerEnd:b,innerStart:k,innerEnd:S}=ite(t,h,f,$-w),E=f-C,N=f-b,_=w+C/E,T=$-b/N,P=h+k,x=h+S,v=w+k/P,O=$-S/x;if(e.beginPath(),i){const I=(_+T)/2;if(e.arc(s,l,f,_,I),e.arc(s,l,f,I,T),b>0){const B=Ri(N,T,s,l);e.arc(B.x,B.y,b,T,$+Nt)}const F=Ri(x,$,s,l);if(e.lineTo(F.x,F.y),S>0){const B=Ri(x,O,s,l);e.arc(B.x,B.y,S,$+Nt,O+Math.PI)}const M=($-S/h+(w+k/h))/2;if(e.arc(s,l,h,$-S/h,M,!0),e.arc(s,l,h,M,w+k/h,!0),k>0){const B=Ri(P,v,s,l);e.arc(B.x,B.y,k,v+Math.PI,w-Nt)}const z=Ri(E,w,s,l);if(e.lineTo(z.x,z.y),C>0){const B=Ri(E,_,s,l);e.arc(B.x,B.y,C,w-Nt,_)}}else{e.moveTo(s,l);const I=Math.cos(_)*f+s,F=Math.sin(_)*f+l;e.lineTo(I,F);const M=Math.cos(T)*f+s,z=Math.sin(T)*f+l;e.lineTo(M,z)}e.closePath()}function ste(e,t,o,r,a){const{fullCircles:i,startAngle:s,circumference:l}=t;let c=t.endAngle;if(i){Xd(e,t,o,r,c,a);for(let d=0;d<i;++d)e.fill();isNaN(l)||(c=s+(l%Ct||Ct))}return Xd(e,t,o,r,c,a),e.fill(),c}function lte(e,t,o,r,a){const{fullCircles:i,startAngle:s,circumference:l,options:c}=t,{borderWidth:d,borderJoinStyle:u}=c,f=c.borderAlign==="inner";if(!d)return;f?(e.lineWidth=d*2,e.lineJoin=u||"round"):(e.lineWidth=d,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){Xd(e,t,o,r,h,a);for(let p=0;p<i;++p)e.stroke();isNaN(l)||(h=s+(l%Ct||Ct))}f&&rte(e,t,h),i||(Xd(e,t,o,r,h,a),e.stroke())}class El extends eo{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,o,r){const a=this.getProps(["x","y"],r),{angle:i,distance:s}=B6(a,{x:t,y:o}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,m=Ke(f,c-l)>=Ct||sl(i,l,c),g=mr(s,d+h,u+h);return m&&g}getCenterPoint(t){const{x:o,y:r,startAngle:a,endAngle:i,innerRadius:s,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:c,spacing:d}=this.options,u=(a+i)/2,f=(s+l+d+c)/2;return{x:o+Math.cos(u)*f,y:r+Math.sin(u)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:o,circumference:r}=this,a=(o.offset||0)/4,i=(o.spacing||0)/2,s=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=r>Ct?Math.floor(r/Ct):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(kt,r||0)),d=a*c;t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,ste(t,this,d,i,s),lte(t,this,d,i,s),t.restore()}}_e(El,"id","arc"),_e(El,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),_e(El,"defaultRoutes",{backgroundColor:"backgroundColor"});function X5(e,t,o=t){e.lineCap=Ke(o.borderCapStyle,t.borderCapStyle),e.setLineDash(Ke(o.borderDash,t.borderDash)),e.lineDashOffset=Ke(o.borderDashOffset,t.borderDashOffset),e.lineJoin=Ke(o.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ke(o.borderWidth,t.borderWidth),e.strokeStyle=Ke(o.borderColor,t.borderColor)}function cte(e,t,o){e.lineTo(o.x,o.y)}function dte(e){return e.stepped?VJ:e.tension||e.cubicInterpolationMode==="monotone"?FJ:cte}function J5(e,t,o={}){const r=e.length,{start:a=0,end:i=r-1}=o,{start:s,end:l}=t,c=Math.max(a,s),d=Math.min(i,l),u=a<s&&i<s||a>l&&i>l;return{count:r,start:c,loop:t.loop,ilen:d<c&&!u?r+d-c:d-c}}function ute(e,t,o,r){const{points:a,options:i}=t,{count:s,start:l,loop:c,ilen:d}=J5(a,o,r),u=dte(i);let{move:f=!0,reverse:h}=r||{},p,m,g;for(p=0;p<=d;++p)m=a[(l+(h?d-p:p))%s],!m.skip&&(f?(e.moveTo(m.x,m.y),f=!1):u(e,g,m,h,i.stepped),g=m);return c&&(m=a[(l+(h?d:0))%s],u(e,g,m,h,i.stepped)),!!c}function fte(e,t,o,r){const a=t.points,{count:i,start:s,ilen:l}=J5(a,o,r),{move:c=!0,reverse:d}=r||{};let u=0,f=0,h,p,m,g,y,w;const $=b=>(s+(d?l-b:b))%i,C=()=>{g!==y&&(e.lineTo(u,y),e.lineTo(u,g),e.lineTo(u,w))};for(c&&(p=a[$(0)],e.moveTo(p.x,p.y)),h=0;h<=l;++h){if(p=a[$(h)],p.skip)continue;const b=p.x,k=p.y,S=b|0;S===m?(k<g?g=k:k>y&&(y=k),u=(f*u+b)/++f):(C(),e.lineTo(b,k),m=S,f=0,g=y=k),w=k}C()}function Lm(e){const t=e.options,o=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!o?fte:ute}function hte(e){return e.stepped?bQ:e.tension||e.cubicInterpolationMode==="monotone"?CQ:Oa}function pte(e,t,o,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,o,r)&&a.closePath()),X5(e,t.options),e.stroke(a)}function mte(e,t,o,r){const{segments:a,options:i}=t,s=Lm(t);for(const l of a)X5(e,i,l.style),e.beginPath(),s(e,t,l,{start:o,end:o+r-1})&&e.closePath(),e.stroke()}const gte=typeof Path2D=="function";function yte(e,t,o,r){gte&&!t.options.segment?pte(e,t,o,r):mte(e,t,o,r)}class br extends eo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,o){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;dQ(this._points,r,t,a,o),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=BQ(this,this.options.segment))}first(){const t=this.segments,o=this.points;return t.length&&o[t[0].start]}last(){const t=this.segments,o=this.points,r=t.length;return r&&o[t[r-1].end]}interpolate(t,o){const r=this.options,a=t[o],i=this.points,s=r5(this,{property:o,start:a,end:a});if(!s.length)return;const l=[],c=hte(r);let d,u;for(d=0,u=s.length;d<u;++d){const{start:f,end:h}=s[d],p=i[f],m=i[h];if(p===m){l.push(p);continue}const g=Math.abs((a-p[o])/(m[o]-p[o])),y=c(p,m,g,r.stepped);y[o]=t[o],l.push(y)}return l.length===1?l[0]:l}pathSegment(t,o,r){return Lm(this)(t,this,o,r)}path(t,o,r){const a=this.segments,i=Lm(this);let s=this._loop;o=o||0,r=r||this.points.length-o;for(const l of a)s&=i(t,this,l,{start:o,end:o+r-1});return!!s}draw(t,o,r,a){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),yte(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}_e(br,"id","line"),_e(br,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),_e(br,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),_e(br,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Q5(e,t,o,r){const a=e.options,{[o]:i}=e.getProps([o],r);return Math.abs(t-i)<a.radius+a.hitRadius}class Bl extends eo{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,o,r){const a=this.options,{x:i,y:s}=this.getProps(["x","y"],r);return Math.pow(t-i,2)+Math.pow(o-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(t,o){return Q5(this,t,"x",o)}inYRange(t,o){return Q5(this,t,"y",o)}getCenterPoint(t){const{x:o,y:r}=this.getProps(["x","y"],t);return{x:o,y:r}}size(t){t=t||this.options||{};let o=t.radius||0;o=Math.max(o,o&&t.hoverRadius||0);const r=o&&t.borderWidth||0;return(o+r)*2}draw(t,o){const r=this.options;this.skip||r.radius<.1||!fl(this,o,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,km(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}_e(Bl,"id","point"),_e(Bl,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),_e(Bl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function e9(e,t){const{x:o,y:r,base:a,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let l,c,d,u,f;return e.horizontal?(f=s/2,l=Math.min(o,a),c=Math.max(o,a),d=r-f,u=r+f):(f=i/2,l=o-f,c=o+f,d=Math.min(r,a),u=Math.max(r,a)),{left:l,top:d,right:c,bottom:u}}function Zr(e,t,o,r){return e?0:zt(t,o,r)}function bte(e,t,o){const r=e.options.borderWidth,a=e.borderSkipped,i=z6(r);return{t:Zr(a.top,i.top,0,o),r:Zr(a.right,i.right,0,t),b:Zr(a.bottom,i.bottom,0,o),l:Zr(a.left,i.left,0,t)}}function Cte(e,t,o){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,i=Ma(a),s=Math.min(t,o),l=e.borderSkipped,c=r||qe(a);return{topLeft:Zr(!c||l.top||l.left,i.topLeft,0,s),topRight:Zr(!c||l.top||l.right,i.topRight,0,s),bottomLeft:Zr(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:Zr(!c||l.bottom||l.right,i.bottomRight,0,s)}}function wte(e){const t=e9(e),o=t.right-t.left,r=t.bottom-t.top,a=bte(e,o/2,r/2),i=Cte(e,o/2,r/2);return{outer:{x:t.left,y:t.top,w:o,h:r,radius:i},inner:{x:t.left+a.l,y:t.top+a.t,w:o-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,i.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(a.b,a.r))}}}}function Vm(e,t,o,r){const a=t===null,i=o===null,l=e&&!(a&&i)&&e9(e,r);return l&&(a||mr(t,l.left,l.right))&&(i||mr(o,l.top,l.bottom))}function $te(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function kte(e,t){e.rect(t.x,t.y,t.w,t.h)}function Fm(e,t,o={}){const r=e.x!==o.x?-t:0,a=e.y!==o.y?-t:0,i=(e.x+e.w!==o.x+o.w?t:0)-r,s=(e.y+e.h!==o.y+o.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+s,radius:e.radius}}class Nl extends eo{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:o,options:{borderColor:r,backgroundColor:a}}=this,{inner:i,outer:s}=wte(this),l=$te(s.radius)?hl:kte;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),l(t,Fm(s,o,i)),t.clip(),l(t,Fm(i,-o,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Fm(i,o)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,o,r){return Vm(this,t,o,r)}inXRange(t,o){return Vm(this,t,null,o)}inYRange(t,o){return Vm(this,null,t,o)}getCenterPoint(t){const{x:o,y:r,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(o+a)/2:o,y:i?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}_e(Nl,"id","bar"),_e(Nl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),_e(Nl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var t9=Object.freeze({__proto__:null,ArcElement:El,LineElement:br,PointElement:Bl,BarElement:Nl});const zm=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],n9=zm.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function o9(e){return zm[e%zm.length]}function r9(e){return n9[e%n9.length]}function Ste(e,t){return e.borderColor=o9(t),e.backgroundColor=r9(t),++t}function Ete(e,t){return e.backgroundColor=e.data.map(()=>o9(t++)),t}function Bte(e,t){return e.backgroundColor=e.data.map(()=>r9(t++)),t}function Nte(e){let t=0;return(o,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof yr?t=Ete(o,t):a instanceof Ia?t=Bte(o,t):a&&(t=Ste(o,t))}}function a9(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function _te(e){return e&&(e.borderColor||e.backgroundColor)}var i9={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,o){if(!o.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:i}=a;if(!o.forceOverride&&(a9(r)||_te(a)||i&&a9(i)))return;const s=Nte(e);r.forEach(s)}};function Tte(e,t,o,r,a){const i=a.samples||r;if(i>=o)return e.slice(t,t+o);const s=[],l=(o-2)/(i-2);let c=0;const d=t+o-1;let u=t,f,h,p,m,g;for(s[c++]=e[u],f=0;f<i-2;f++){let y=0,w=0,$;const C=Math.floor((f+1)*l)+1+t,b=Math.min(Math.floor((f+2)*l)+1,o)+t,k=b-C;for($=C;$<b;$++)y+=e[$].x,w+=e[$].y;y/=k,w/=k;const S=Math.floor(f*l)+1+t,E=Math.min(Math.floor((f+1)*l)+1,o)+t,{x:N,y:_}=e[u];for(p=m=-1,$=S;$<E;$++)m=.5*Math.abs((N-y)*(e[$].y-_)-(N-e[$].x)*(w-_)),m>p&&(p=m,h=e[$],g=$);s[c++]=h,u=g}return s[c++]=e[d],s}function Ate(e,t,o,r){let a=0,i=0,s,l,c,d,u,f,h,p,m,g;const y=[],w=t+o-1,$=e[t].x,b=e[w].x-$;for(s=t;s<t+o;++s){l=e[s],c=(l.x-$)/b*r,d=l.y;const k=c|0;if(k===u)d<m?(m=d,f=s):d>g&&(g=d,h=s),a=(i*a+l.x)/++i;else{const S=s-1;if(!Qe(f)&&!Qe(h)){const E=Math.min(f,h),N=Math.max(f,h);E!==p&&E!==S&&y.push({...e[E],x:a}),N!==p&&N!==S&&y.push({...e[N],x:a})}s>0&&S!==p&&y.push(e[S]),y.push(l),u=k,i=0,m=g=d,f=h=p=s}}return y}function s9(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function l9(e){e.data.datasets.forEach(t=>{s9(t)})}function xte(e,t){const o=t.length;let r=0,a;const{iScale:i}=e,{min:s,max:l,minDefined:c,maxDefined:d}=i.getUserBounds();return c&&(r=zt(gr(t,i.axis,s).lo,0,o-1)),d?a=zt(gr(t,i.axis,l).hi+1,r,o)-r:a=o-r,{start:r,count:a}}var c9={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,o)=>{if(!o.enabled){l9(e);return}const r=e.width;e.data.datasets.forEach((a,i)=>{const{_data:s,indexAxis:l}=a,c=e.getDatasetMeta(i),d=s||a.data;if(pl([l,e.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const u=e.scales[c.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:f,count:h}=xte(c,d);const p=o.threshold||4*r;if(h<=p){s9(a);return}Qe(s)&&(a._data=d,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let m;switch(o.algorithm){case"lttb":m=Tte(d,f,h,r,o);break;case"min-max":m=Ate(d,f,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}a._decimated=m})},destroy(e){l9(e)}};function Mte(e,t,o){const r=e.segments,a=e.points,i=t.points,s=[];for(const l of r){let{start:c,end:d}=l;d=Wm(c,d,a);const u=Hm(o,a[c],a[d],l.loop);if(!t.segments){s.push({source:l,target:u,start:a[c],end:a[d]});continue}const f=r5(t,u);for(const h of f){const p=Hm(o,i[h.start],i[h.end],h.loop),m=o5(l,a,p);for(const g of m)s.push({source:g,target:h,start:{[o]:d9(u,p,"start",Math.max)},end:{[o]:d9(u,p,"end",Math.min)}})}}return s}function Hm(e,t,o,r){if(r)return;let a=t[e],i=o[e];return e==="angle"&&(a=Pn(a),i=Pn(i)),{property:e,start:a,end:i}}function Pte(e,t){const{x:o=null,y:r=null}=e||{},a=t.points,i=[];return t.segments.forEach(({start:s,end:l})=>{l=Wm(s,l,a);const c=a[s],d=a[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:d.x,y:r})):o!==null&&(i.push({x:o,y:c.y}),i.push({x:o,y:d.y}))}),i}function Wm(e,t,o){for(;t>e;t--){const r=o[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function d9(e,t,o,r){return e&&t?r(e[o],t[o]):e?e[o]:t?t[o]:0}function u9(e,t){let o=[],r=!1;return bt(e)?(r=!0,o=e):o=Pte(e,t),o.length?new br({points:o,options:{tension:0},_loop:r,_fullLoop:r}):null}function f9(e){return e&&e.fill!==!1}function vte(e,t,o){let a=e[t].fill;const i=[t];let s;if(!o)return a;for(;a!==!1&&i.indexOf(a)===-1;){if(!Bt(a))return a;if(s=e[a],!s)return!1;if(s.visible)return a;i.push(a),a=s.fill}return!1}function Ote(e,t,o){const r=Lte(e);if(qe(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return Bt(a)&&Math.floor(a)===a?Ite(r[0],t,a,o):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ite(e,t,o,r){return(e==="-"||e==="+")&&(o=t+o),o===t||o<0||o>=r?!1:o}function Dte(e,t){let o=null;return e==="start"?o=t.bottom:e==="end"?o=t.top:qe(e)?o=t.getPixelForValue(e.value):t.getBasePixel&&(o=t.getBasePixel()),o}function Rte(e,t,o){let r;return e==="start"?r=o:e==="end"?r=t.options.reverse?t.min:t.max:qe(e)?r=e.value:r=t.getBaseValue(),r}function Lte(e){const t=e.options,o=t.fill;let r=Ke(o&&o.target,o);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Vte(e){const{scale:t,index:o,line:r}=e,a=[],i=r.segments,s=r.points,l=Fte(t,o);l.push(u9({x:null,y:t.bottom},r));for(let c=0;c<i.length;c++){const d=i[c];for(let u=d.start;u<=d.end;u++)zte(a,s[u],l)}return new br({points:a,options:{}})}function Fte(e,t){const o=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const i=r[a];if(i.index===t)break;i.hidden||o.unshift(i.dataset)}return o}function zte(e,t,o){const r=[];for(let a=0;a<o.length;a++){const i=o[a],{first:s,last:l,point:c}=Hte(i,t,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(e.push(c),!l)break}}e.push(...r)}function Hte(e,t,o){const r=e.interpolate(t,o);if(!r)return{};const a=r[o],i=e.segments,s=e.points;let l=!1,c=!1;for(let d=0;d<i.length;d++){const u=i[d],f=s[u.start][o],h=s[u.end][o];if(mr(a,f,h)){l=a===f,c=a===h;break}}return{first:l,last:c,point:r}}class h9{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,o,r){const{x:a,y:i,radius:s}=this;return o=o||{start:0,end:Ct},t.arc(a,i,s,o.end,o.start,!0),!r.bounds}interpolate(t){const{x:o,y:r,radius:a}=this,i=t.angle;return{x:o+Math.cos(i)*a,y:r+Math.sin(i)*a,angle:i}}}function Wte(e){const{chart:t,fill:o,line:r}=e;if(Bt(o))return Kte(t,o);if(o==="stack")return Vte(e);if(o==="shape")return!0;const a=jte(e);return a instanceof h9?a:u9(a,r)}function Kte(e,t){const o=e.getDatasetMeta(t);return o&&e.isDatasetVisible(t)?o.dataset:null}function jte(e){return(e.scale||{}).getPointPositionForValue?Gte(e):Ute(e)}function Ute(e){const{scale:t={},fill:o}=e,r=Dte(o,t);if(Bt(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function Gte(e){const{scale:t,fill:o}=e,r=t.options,a=t.getLabels().length,i=r.reverse?t.max:t.min,s=Rte(o,t,i),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,i);return new h9({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(s)})}for(let c=0;c<a;++c)l.push(t.getPointPositionForValue(c,s));return l}function Km(e,t,o){const r=Wte(t),{line:a,scale:i,axis:s}=t,l=a.options,c=l.fill,d=l.backgroundColor,{above:u=d,below:f=d}=c||{};r&&a.points.length&&(Rd(e,o),Yte(e,{line:a,target:r,above:u,below:f,area:o,scale:i,axis:s}),Ld(e))}function Yte(e,t){const{line:o,target:r,above:a,below:i,area:s,scale:l}=t,c=o._loop?"angle":t.axis;e.save(),c==="x"&&i!==a&&(p9(e,r,s.top),m9(e,{line:o,target:r,color:a,scale:l,property:c}),e.restore(),e.save(),p9(e,r,s.bottom)),m9(e,{line:o,target:r,color:i,scale:l,property:c}),e.restore()}function p9(e,t,o){const{segments:r,points:a}=t;let i=!0,s=!1;e.beginPath();for(const l of r){const{start:c,end:d}=l,u=a[c],f=a[Wm(c,d,a)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(u.x,o),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,l,{move:s}),s?e.closePath():e.lineTo(f.x,o)}e.lineTo(t.first().x,o),e.closePath(),e.clip()}function m9(e,t){const{line:o,target:r,property:a,color:i,scale:s}=t,l=Mte(o,r,a);for(const{source:c,target:d,start:u,end:f}of l){const{style:{backgroundColor:h=i}={}}=c,p=r!==!0;e.save(),e.fillStyle=h,qte(e,s,p&&Hm(a,u,f)),e.beginPath();const m=!!o.pathSegment(e,c);let g;if(p){m?e.closePath():g9(e,r,f,a);const y=!!r.pathSegment(e,d,{move:m,reverse:!0});g=m&&y,g||g9(e,r,u,a)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function qte(e,t,o){const{top:r,bottom:a}=t.chart.chartArea,{property:i,start:s,end:l}=o||{};i==="x"&&(e.beginPath(),e.rect(s,r,l-s,a-r),e.clip())}function g9(e,t,o,r){const a=t.interpolate(o,r);a&&e.lineTo(a.x,a.y)}var y9={id:"filler",afterDatasetsUpdate(e,t,o){const r=(e.data.datasets||[]).length,a=[];let i,s,l,c;for(s=0;s<r;++s)i=e.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof br&&(c={visible:e.isDatasetVisible(s),index:s,fill:Ote(l,s,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,a.push(c);for(s=0;s<r;++s)c=a[s],!(!c||c.fill===!1)&&(c.fill=vte(a,s,o.propagate))},beforeDraw(e,t,o){const r=o.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=a.length-1;s>=0;--s){const l=a[s].$filler;!l||(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Km(e.ctx,l,i))}},beforeDatasetsDraw(e,t,o){if(o.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const i=r[a].$filler;f9(i)&&Km(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,o){const r=t.meta.$filler;!f9(r)||o.drawTime!=="beforeDatasetDraw"||Km(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const b9=(e,t)=>{let{boxHeight:o=t,boxWidth:r=t}=e;return e.usePointStyle&&(o=Math.min(o,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:o,itemHeight:Math.max(t,o)}},Zte=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class C9 extends eo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,o,r){this.maxWidth=t,this.maxHeight=o,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let o=gt(t.generateLabels,[this.chart],this)||[];t.filter&&(o=o.filter(r=>t.filter(r,this.chart.data))),t.sort&&(o=o.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:t,ctx:o}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=Dt(r.font),i=a.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=b9(r,i);let d,u;o.font=a.string,this.isHorizontal()?(d=this.maxWidth,u=this._fitRows(s,i,l,c)+10):(u=this.maxHeight,d=this._fitCols(s,a,l,c)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,o,r,a){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],u=a+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,p=-u;return this.legendItems.forEach((m,g)=>{const y=r+o/2+i.measureText(m.text).width;(g===0||d[d.length-1]+y+2*l>s)&&(f+=u,d[d.length-(g>0?0:1)]=0,p+=u,h++),c[g]={left:0,top:p,row:h,width:y,height:a},d[d.length-1]+=y+l}),f}_fitCols(t,o,r,a){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],u=s-t;let f=l,h=0,p=0,m=0,g=0;return this.legendItems.forEach((y,w)=>{const{itemWidth:$,itemHeight:C}=Xte(r,o,i,y,a);w>0&&p+C+2*l>u&&(f+=h+l,d.push({width:h,height:p}),m+=h+l,g++,h=p=0),c[w]={left:m,top:p,col:g,width:$,height:C},h=Math.max(h,$),p+=C+l}),f+=h,d.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:r,labels:{padding:a},rtl:i}}=this,s=Mi(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=Jt(r,this.left+a,this.right-this.lineWidths[l]);for(const d of o)l!==d.row&&(l=d.row,c=Jt(r,this.left+a,this.right-this.lineWidths[l])),d.top+=this.top+t+a,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+a}else{let l=0,c=Jt(r,this.top+t+a,this.bottom-this.columnSizes[l].height);for(const d of o)d.col!==l&&(l=d.col,c=Jt(r,this.top+t+a,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+a,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Rd(t,this),this._draw(),Ld(t)}}_draw(){const{options:t,columnSizes:o,lineWidths:r,ctx:a}=this,{align:i,labels:s}=t,l=_t.color,c=Mi(t.rtl,this.left,this.width),d=Dt(s.font),{padding:u}=s,f=d.size,h=f/2;let p;this.drawTitle(),a.textAlign=c.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=d.string;const{boxWidth:m,boxHeight:g,itemHeight:y}=b9(s,f),w=function(S,E,N){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;a.save();const _=Ke(N.lineWidth,1);if(a.fillStyle=Ke(N.fillStyle,l),a.lineCap=Ke(N.lineCap,"butt"),a.lineDashOffset=Ke(N.lineDashOffset,0),a.lineJoin=Ke(N.lineJoin,"miter"),a.lineWidth=_,a.strokeStyle=Ke(N.strokeStyle,l),a.setLineDash(Ke(N.lineDash,[])),s.usePointStyle){const T={radius:g*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:_},P=c.xPlus(S,m/2),x=E+h;F6(a,T,P,x,s.pointStyleWidth&&m)}else{const T=E+Math.max((f-g)/2,0),P=c.leftForLtr(S,m),x=Ma(N.borderRadius);a.beginPath(),Object.values(x).some(v=>v!==0)?hl(a,{x:P,y:T,w:m,h:g,radius:x}):a.rect(P,T,m,g),a.fill(),_!==0&&a.stroke()}a.restore()},$=function(S,E,N){xa(a,N.text,S,E+y/2,d,{strikethrough:N.hidden,textAlign:c.textAlign(N.textAlign)})},C=this.isHorizontal(),b=this._computeTitleHeight();C?p={x:Jt(i,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:p={x:this.left+u,y:Jt(i,this.top+b+u,this.bottom-o[0].height),line:0},Q6(this.ctx,t.textDirection);const k=y+u;this.legendItems.forEach((S,E)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const N=a.measureText(S.text).width,_=c.textAlign(S.textAlign||(S.textAlign=s.textAlign)),T=m+h+N;let P=p.x,x=p.y;c.setWidth(this.width),C?E>0&&P+T+u>this.right&&(x=p.y+=k,p.line++,P=p.x=Jt(i,this.left+u,this.right-r[p.line])):E>0&&x+k>this.bottom&&(P=p.x=P+o[p.line].width+u,p.line++,x=p.y=Jt(i,this.top+b+u,this.bottom-o[p.line].height));const v=c.x(P);if(w(v,x,S),P=TJ(_,P+m+h,C?P+T:this.right,t.rtl),$(c.x(P),x,S),C)p.x+=T+u;else if(typeof S.text!="string"){const O=d.lineHeight;p.y+=w9(S,O)}else p.y+=k}),e5(this.ctx,t.textDirection)}drawTitle(){const t=this.options,o=t.title,r=Dt(o.font),a=Qt(o.padding);if(!o.display)return;const i=Mi(t.rtl,this.left,this.width),s=this.ctx,l=o.position,c=r.size/2,d=a.top+c;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+d,f=Jt(t.align,f,this.right-h);else{const m=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=d+Jt(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const p=Jt(l,f,f+h);s.textAlign=i.textAlign(bm(l)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=r.string,xa(s,o.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,o=Dt(t.font),r=Qt(t.padding);return t.display?o.lineHeight+r.height:0}_getLegendItemAt(t,o){let r,a,i;if(mr(t,this.left,this.right)&&mr(o,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(a=i[r],mr(t,a.left,a.left+a.width)&&mr(o,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const o=this.options;if(!ene(t.type,o))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,i=Zte(a,r);a&&!i&&gt(o.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&gt(o.onHover,[t,r,this],this)}else r&&gt(o.onClick,[t,r,this],this)}}function Xte(e,t,o,r,a){const i=Jte(r,e,t,o),s=Qte(a,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}function Jte(e,t,o,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((i,s)=>i.length>s.length?i:s)),t+o.size/2+r.measureText(a).width}function Qte(e,t,o){let r=e;return typeof t.text!="string"&&(r=w9(t,o)),r}function w9(e,t){const o=e.text?e.text.length+.5:0;return t*o}function ene(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var $9={id:"legend",_element:C9,start(e,t,o){const r=e.legend=new C9({ctx:e.ctx,options:o,chart:e});jt.configure(e,r,o),jt.addBox(e,r)},stop(e){jt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,o){const r=e.legend;jt.configure(e,r,o),r.options=o},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,o){const r=t.datasetIndex,a=o.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:o,pointStyle:r,textAlign:a,color:i,useBorderRadius:s,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(o?0:void 0),u=Qt(d.borderWidth);return{text:t[c.index].label,fillStyle:d.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:a||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class jm extends eo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,o){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=o;const a=bt(r.text)?r.text.length:1;this._padding=Qt(r.padding);const i=a*Dt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:o,left:r,bottom:a,right:i,options:s}=this,l=s.align;let c=0,d,u,f;return this.isHorizontal()?(u=Jt(l,r,i),f=o+t,d=i-r):(s.position==="left"?(u=r+t,f=Jt(l,a,o),c=kt*-.5):(u=i-t,f=Jt(l,o,a),c=kt*.5),d=a-o),{titleX:u,titleY:f,maxWidth:d,rotation:c}}draw(){const t=this.ctx,o=this.options;if(!o.display)return;const r=Dt(o.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(i);xa(t,o.text,0,0,r,{color:o.color,maxWidth:c,rotation:d,textAlign:bm(o.align),textBaseline:"middle",translation:[s,l]})}}function tne(e,t){const o=new jm({ctx:e.ctx,options:t,chart:e});jt.configure(e,o,t),jt.addBox(e,o),e.titleBlock=o}var k9={id:"title",_element:jm,start(e,t,o){tne(e,o)},stop(e){const t=e.titleBlock;jt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,o){const r=e.titleBlock;jt.configure(e,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jd=new WeakMap;var S9={id:"subtitle",start(e,t,o){const r=new jm({ctx:e.ctx,options:o,chart:e});jt.configure(e,r,o),jt.addBox(e,r),Jd.set(e,r)},stop(e){jt.removeBox(e,Jd.get(e)),Jd.delete(e)},beforeUpdate(e,t,o){const r=Jd.get(e);jt.configure(e,r,o),r.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _l={average(e){if(!e.length)return!1;let t,o,r=0,a=0,i=0;for(t=0,o=e.length;t<o;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r+=l.x,a+=l.y,++i}}return{x:r/i,y:a/i}},nearest(e,t){if(!e.length)return!1;let o=t.x,r=t.y,a=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=e.length;i<s;++i){const c=e[i].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),u=gm(t,d);u<a&&(a=u,l=c)}}if(l){const c=l.tooltipPosition();o=c.x,r=c.y}return{x:o,y:r}}};function Wo(e,t){return t&&(bt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Cr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function nne(e,t){const{element:o,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(a);return{chart:e,label:s,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:l,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:o}}function E9(e,t){const o=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:s,boxHeight:l}=t,c=Dt(t.bodyFont),d=Dt(t.titleFont),u=Dt(t.footerFont),f=i.length,h=a.length,p=r.length,m=Qt(t.padding);let g=m.height,y=0,w=r.reduce((b,k)=>b+k.before.length+k.lines.length+k.after.length,0);if(w+=e.beforeBody.length+e.afterBody.length,f&&(g+=f*d.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),w){const b=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;g+=p*b+(w-p)*c.lineHeight+(w-1)*t.bodySpacing}h&&(g+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let $=0;const C=function(b){y=Math.max(y,o.measureText(b).width+$)};return o.save(),o.font=d.string,dt(e.title,C),o.font=c.string,dt(e.beforeBody.concat(e.afterBody),C),$=t.displayColors?s+2+t.boxPadding:0,dt(r,b=>{dt(b.before,C),dt(b.lines,C),dt(b.after,C)}),$=0,o.font=u.string,dt(e.footer,C),o.restore(),y+=m.width,{width:y,height:g}}function one(e,t){const{y:o,height:r}=t;return o<r/2?"top":o>e.height-r/2?"bottom":"center"}function rne(e,t,o,r){const{x:a,width:i}=r,s=o.caretSize+o.caretPadding;if(e==="left"&&a+i+s>t.width||e==="right"&&a-i-s<0)return!0}function ane(e,t,o,r){const{x:a,width:i}=o,{width:s,chartArea:{left:l,right:c}}=e;let d="center";return r==="center"?d=a<=(l+c)/2?"left":"right":a<=i/2?d="left":a>=s-i/2&&(d="right"),rne(d,e,t,o)&&(d="center"),d}function B9(e,t,o){const r=o.yAlign||t.yAlign||one(e,o);return{xAlign:o.xAlign||t.xAlign||ane(e,t,o,r),yAlign:r}}function ine(e,t){let{x:o,width:r}=e;return t==="right"?o-=r:t==="center"&&(o-=r/2),o}function sne(e,t,o){let{y:r,height:a}=e;return t==="top"?r+=o:t==="bottom"?r-=a+o:r-=a/2,r}function N9(e,t,o,r){const{caretSize:a,caretPadding:i,cornerRadius:s}=e,{xAlign:l,yAlign:c}=o,d=a+i,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:p}=Ma(s);let m=ine(t,l);const g=sne(t,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,h)+a:l==="right"&&(m+=Math.max(f,p)+a),{x:zt(m,0,r.width-t.width),y:zt(g,0,r.height-t.height)}}function Qd(e,t,o){const r=Qt(o.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function _9(e){return Wo([],Cr(e))}function lne(e,t,o){return Yr(e,{tooltip:t,tooltipItems:o,type:"tooltip"})}function T9(e,t){const o=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return o?e.override(o):e}const A9={beforeTitle:pr,title(e){if(e.length>0){const t=e[0],o=t.chart.data.labels,r=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return o[t.dataIndex]}return""},afterTitle:pr,beforeBody:pr,beforeLabel:pr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const o=e.formattedValue;return Qe(o)||(t+=o),t},labelColor(e){const o=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const o=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:pr,afterBody:pr,beforeFooter:pr,footer:pr,afterFooter:pr};function yn(e,t,o,r){const a=e[t].call(o,r);return typeof a>"u"?A9[t].call(o,r):a}class Um extends eo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const o=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&o.options.animation&&r.animations,i=new Tm(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=lne(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,o){const{callbacks:r}=o,a=yn(r,"beforeTitle",this,t),i=yn(r,"title",this,t),s=yn(r,"afterTitle",this,t);let l=[];return l=Wo(l,Cr(a)),l=Wo(l,Cr(i)),l=Wo(l,Cr(s)),l}getBeforeBody(t,o){return _9(yn(o.callbacks,"beforeBody",this,t))}getBody(t,o){const{callbacks:r}=o,a=[];return dt(t,i=>{const s={before:[],lines:[],after:[]},l=T9(r,i);Wo(s.before,Cr(yn(l,"beforeLabel",this,i))),Wo(s.lines,yn(l,"label",this,i)),Wo(s.after,Cr(yn(l,"afterLabel",this,i))),a.push(s)}),a}getAfterBody(t,o){return _9(yn(o.callbacks,"afterBody",this,t))}getFooter(t,o){const{callbacks:r}=o,a=yn(r,"beforeFooter",this,t),i=yn(r,"footer",this,t),s=yn(r,"afterFooter",this,t);let l=[];return l=Wo(l,Cr(a)),l=Wo(l,Cr(i)),l=Wo(l,Cr(s)),l}_createItems(t){const o=this._active,r=this.chart.data,a=[],i=[],s=[];let l=[],c,d;for(c=0,d=o.length;c<d;++c)l.push(nne(this.chart,o[c]));return t.filter&&(l=l.filter((u,f,h)=>t.filter(u,f,h,r))),t.itemSort&&(l=l.sort((u,f)=>t.itemSort(u,f,r))),dt(l,u=>{const f=T9(t.callbacks,u);a.push(yn(f,"labelColor",this,u)),i.push(yn(f,"labelPointStyle",this,u)),s.push(yn(f,"labelTextColor",this,u))}),this.labelColors=a,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(t,o){const r=this.options.setContext(this.getContext()),a=this._active;let i,s=[];if(!a.length)this.opacity!==0&&(i={opacity:0});else{const l=_l[r.position].call(this,a,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=E9(this,r),d=Object.assign({},l,c),u=B9(this.chart,r,d),f=N9(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(t,o,r,a){const i=this.getCaretPosition(t,r,a);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(t,o,r){const{xAlign:a,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Ma(l),{x:h,y:p}=t,{width:m,height:g}=o;let y,w,$,C,b,k;return i==="center"?(b=p+g/2,a==="left"?(y=h,w=y-s,C=b+s,k=b-s):(y=h+m,w=y+s,C=b-s,k=b+s),$=y):(a==="left"?w=h+Math.max(c,u)+s:a==="right"?w=h+m-Math.max(d,f)-s:w=this.caretX,i==="top"?(C=p,b=C-s,y=w-s,$=w+s):(C=p+g,b=C+s,y=w+s,$=w-s),k=C),{x1:y,x2:w,x3:$,y1:C,y2:b,y3:k}}drawTitle(t,o,r){const a=this.title,i=a.length;let s,l,c;if(i){const d=Mi(r.rtl,this.x,this.width);for(t.x=Qd(this,r.titleAlign,r),o.textAlign=d.textAlign(r.titleAlign),o.textBaseline="middle",s=Dt(r.titleFont),l=r.titleSpacing,o.fillStyle=r.titleColor,o.font=s.string,c=0;c<i;++c)o.fillText(a[c],d.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+l,c+1===i&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,o,r,a,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d,boxPadding:u}=i,f=Dt(i.bodyFont),h=Qd(this,"left",i),p=a.x(h),m=c<f.lineHeight?(f.lineHeight-c)/2:0,g=o.y+m;if(i.usePointStyle){const y={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},w=a.leftForLtr(p,d)+d/2,$=g+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,km(t,y,w,$),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,km(t,y,w,$)}else{t.lineWidth=qe(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const y=a.leftForLtr(p,d-u),w=a.leftForLtr(a.xPlus(p,1),d-u-2),$=Ma(s.borderRadius);Object.values($).some(C=>C!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,hl(t,{x:y,y:g,w:d,h:c,radius:$}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),hl(t,{x:w,y:g+1,w:d-2,h:c-2,radius:$}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(y,g,d,c),t.strokeRect(y,g,d,c),t.fillStyle=s.backgroundColor,t.fillRect(w,g+1,d-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,o,r){const{body:a}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,f=Dt(r.bodyFont);let h=f.lineHeight,p=0;const m=Mi(r.rtl,this.x,this.width),g=function(N){o.fillText(N,m.x(t.x+p),t.y+h/2),t.y+=h+i},y=m.textAlign(s);let w,$,C,b,k,S,E;for(o.textAlign=s,o.textBaseline="middle",o.font=f.string,t.x=Qd(this,y,r),o.fillStyle=r.bodyColor,dt(this.beforeBody,g),p=l&&y!=="right"?s==="center"?d/2+u:d+2+u:0,b=0,S=a.length;b<S;++b){for(w=a[b],$=this.labelTextColors[b],o.fillStyle=$,dt(w.before,g),C=w.lines,l&&C.length&&(this._drawColorBox(o,t,b,m,r),h=Math.max(f.lineHeight,c)),k=0,E=C.length;k<E;++k)g(C[k]),h=f.lineHeight;dt(w.after,g)}p=0,h=f.lineHeight,dt(this.afterBody,g),t.y-=i}drawFooter(t,o,r){const a=this.footer,i=a.length;let s,l;if(i){const c=Mi(r.rtl,this.x,this.width);for(t.x=Qd(this,r.footerAlign,r),t.y+=r.footerMarginTop,o.textAlign=c.textAlign(r.footerAlign),o.textBaseline="middle",s=Dt(r.footerFont),o.fillStyle=r.footerColor,o.font=s.string,l=0;l<i;++l)o.fillText(a[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,o,r,a){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=t,{width:d,height:u}=r,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Ma(a.cornerRadius);o.fillStyle=a.backgroundColor,o.strokeStyle=a.borderColor,o.lineWidth=a.borderWidth,o.beginPath(),o.moveTo(l+f,c),s==="top"&&this.drawCaret(t,o,r,a),o.lineTo(l+d-h,c),o.quadraticCurveTo(l+d,c,l+d,c+h),s==="center"&&i==="right"&&this.drawCaret(t,o,r,a),o.lineTo(l+d,c+u-m),o.quadraticCurveTo(l+d,c+u,l+d-m,c+u),s==="bottom"&&this.drawCaret(t,o,r,a),o.lineTo(l+p,c+u),o.quadraticCurveTo(l,c+u,l,c+u-p),s==="center"&&i==="left"&&this.drawCaret(t,o,r,a),o.lineTo(l,c+f),o.quadraticCurveTo(l,c,l+f,c),o.closePath(),o.fill(),a.borderWidth>0&&o.stroke()}_updateAnimationTarget(t){const o=this.chart,r=this.$animations,a=r&&r.x,i=r&&r.y;if(a||i){const s=_l[t.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=E9(this,t),c=Object.assign({},s,this._size),d=B9(o,t,c),u=N9(t,c,d,o);(a._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const o=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(o);const a={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Qt(o.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,a,o),Q6(t,o.textDirection),i.y+=s.top,this.drawTitle(i,t,o),this.drawBody(i,t,o),this.drawFooter(i,t,o),e5(t,o.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,o){const r=this._active,a=t.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Pd(r,a),s=this._positionChanged(a,o);(i||s)&&(this._active=a,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,o,r=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,i=this._active||[],s=this._getActiveElements(t,i,o,r),l=this._positionChanged(s,t),c=o||!Pd(s,i)||l;return c&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,o))),c}_getActiveElements(t,o,r,a){const i=this.options;if(t.type==="mouseout")return[];if(!a)return o;const s=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(t,o){const{caretX:r,caretY:a,options:i}=this,s=_l[i.position].call(this,t,o);return s!==!1&&(r!==s.x||a!==s.y)}}_e(Um,"positioners",_l);var x9={id:"tooltip",_element:Um,positioners:_l,afterInit(e,t,o){o&&(e.tooltip=new Um({chart:e,options:o}))},beforeUpdate(e,t,o){e.tooltip&&e.tooltip.initialize(o)},reset(e,t,o){e.tooltip&&e.tooltip.initialize(o)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const o={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",o)}},afterEvent(e,t){if(e.tooltip){const o=t.replay;e.tooltip.handleEvent(t.event,o,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:A9},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},M9=Object.freeze({__proto__:null,Colors:i9,Decimation:c9,Filler:y9,Legend:$9,SubTitle:S9,Title:k9,Tooltip:x9});const cne=(e,t,o,r)=>(typeof t=="string"?(o=e.push(t)-1,r.unshift({index:o,label:t})):isNaN(t)&&(o=null),o);function dne(e,t,o,r){const a=e.indexOf(t);if(a===-1)return cne(e,t,o,r);const i=e.lastIndexOf(t);return a!==i?o:a}const une=(e,t)=>e===null?null:zt(Math.round(e),0,t);function P9(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class eu extends qr{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const o=this._addedLabels;if(o.length){const r=this.getLabels();for(const{index:a,label:i}of o)r[a]===i&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,o){if(Qe(t))return null;const r=this.getLabels();return o=isFinite(o)&&r[o]===t?o:dne(r,t,Ke(o,t),this._addedLabels),une(o,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:o}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),o||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,o=this.max,r=this.options.offset,a=[];let i=this.getLabels();i=t===0&&o===i.length-1?i:i.slice(t,o+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=o;s++)a.push({value:s});return a}getLabelForValue(t){return P9.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const o=this.ticks;return t<0||t>o.length-1?null:this.getPixelForValue(o[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}_e(eu,"id","category"),_e(eu,"defaults",{ticks:{callback:P9}});function fne(e,t){const o=[],{bounds:a,step:i,min:s,max:l,precision:c,count:d,maxTicks:u,maxDigits:f,includeBounds:h}=e,p=i||1,m=u-1,{min:g,max:y}=t,w=!Qe(s),$=!Qe(l),C=!Qe(d),b=(y-g)/(f+1);let k=k6((y-g)/m/p)*p,S,E,N,_;if(k<1e-14&&!w&&!$)return[{value:g},{value:y}];_=Math.ceil(y/k)-Math.floor(g/k),_>m&&(k=k6(_*k/m/p)*p),Qe(c)||(S=Math.pow(10,c),k=Math.ceil(k*S)/S),a==="ticks"?(E=Math.floor(g/k)*k,N=Math.ceil(y/k)*k):(E=g,N=y),w&&$&&i&&$J((l-s)/i,k/1e3)?(_=Math.round(Math.min((l-s)/k,u)),k=(l-s)/_,E=s,N=l):C?(E=w?s:E,N=$?l:N,_=d-1,k=(N-E)/_):(_=(N-E)/k,il(_,Math.round(_),k/1e3)?_=Math.round(_):_=Math.ceil(_));const T=Math.max(E6(k),E6(E));S=Math.pow(10,Qe(c)?T:c),E=Math.round(E*S)/S,N=Math.round(N*S)/S;let P=0;for(w&&(h&&E!==s?(o.push({value:s}),E<s&&P++,il(Math.round((E+P*k)*S)/S,s,v9(s,b,e))&&P++):E<s&&P++);P<_;++P)o.push({value:Math.round((E+P*k)*S)/S});return $&&h&&N!==l?o.length&&il(o[o.length-1].value,l,v9(l,b,e))?o[o.length-1].value=l:o.push({value:l}):(!$||N===l)&&o.push({value:N}),o}function v9(e,t,{horizontal:o,minRotation:r}){const a=wo(r),i=(o?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class tu extends qr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,o){return Qe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:o,maxDefined:r}=this.getUserBounds();let{min:a,max:i}=this;const s=c=>a=o?a:c,l=c=>i=r?i:c;if(t){const c=Fo(a),d=Fo(i);c<0&&d<0?l(0):c>0&&d>0&&s(0)}if(a===i){let c=i===0?1:Math.abs(i*.05);l(i+c),t||s(a-c)}this.min=a,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:o,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),o=o||11),o&&(a=Math.min(o,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,o=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,s=fne(a,i);return t.bounds==="ticks"&&S6(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let o=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-o)/Math.max(t.length-1,1)/2;o-=a,r+=a}this._startValue=o,this._endValue=r,this._valueRange=r-o}getLabelForValue(t){return cl(t,this.chart.options.locale,this.options.ticks.format)}}class nu extends tu{determineDataLimits(){const{min:t,max:o}=this.getMinMax(!0);this.min=Bt(t)?t:0,this.max=Bt(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),o=t?this.width:this.height,r=wo(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}_e(nu,"id","linear"),_e(nu,"defaults",{ticks:{callback:dl.formatters.numeric}});const Tl=e=>Math.floor(Gr(e)),Ra=(e,t)=>Math.pow(10,Tl(e)+t);function O9(e){return e/Math.pow(10,Tl(e))===1}function I9(e,t,o){const r=Math.pow(10,o),a=Math.floor(e/r);return Math.ceil(t/r)-a}function hne(e,t){const o=t-e;let r=Tl(o);for(;I9(e,t,r)>10;)r++;for(;I9(e,t,r)<10;)r--;return Math.min(r,Tl(e))}function pne(e,{min:t,max:o}){t=Mn(e.min,t);const r=[],a=Tl(t);let i=hne(t,o),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=a>i?Math.pow(10,a):0,d=Math.round((t-c)*s)/s,u=Math.floor((t-c)/l/10)*l*10;let f=Math.floor((d-u)/Math.pow(10,i)),h=Mn(e.min,Math.round((c+u+f*Math.pow(10,i))*s)/s);for(;h<o;)r.push({value:h,major:O9(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),h=Math.round((c+u+f*Math.pow(10,i))*s)/s;const p=Mn(e.max,h);return r.push({value:p,major:O9(p),significand:f}),r}class ou extends qr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,o){const r=tu.prototype.parse.apply(this,[t,o]);if(r===0){this._zero=!0;return}return Bt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:o}=this.getMinMax(!0);this.min=Bt(t)?Math.max(0,t):null,this.max=Bt(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Bt(this._userMin)&&(this.min=t===Ra(this.min,0)?Ra(this.min,-1):Ra(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:o}=this.getUserBounds();let r=this.min,a=this.max;const i=l=>r=t?r:l,s=l=>a=o?a:l;r===a&&(r<=0?(i(1),s(10)):(i(Ra(r,-1)),s(Ra(a,1)))),r<=0&&i(Ra(a,-1)),a<=0&&s(Ra(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,o={min:this._userMin,max:this._userMax},r=pne(o,this);return t.bounds==="ticks"&&S6(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":cl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Gr(t),this._valueRange=Gr(this.max)-Gr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Gr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const o=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+o*this._valueRange)}}_e(ou,"id","logarithmic"),_e(ou,"defaults",{ticks:{callback:dl.formatters.logarithmic,major:{enabled:!0}}});function Gm(e){const t=e.ticks;if(t.display&&e.display){const o=Qt(t.backdropPadding);return Ke(t.font&&t.font.size,_t.font.size)+o.height}return 0}function mne(e,t,o){return o=bt(o)?o:[o],{w:LJ(e,t.string,o),h:o.length*t.lineHeight}}function D9(e,t,o,r,a){return e===r||e===a?{start:t-o/2,end:t+o/2}:e<r||e>a?{start:t-o,end:t}:{start:t,end:t+o}}function gne(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},o=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?kt/i:0;for(let c=0;c<i;c++){const d=s.setContext(e.getPointLabelContext(c));a[c]=d.padding;const u=e.getPointPosition(c,e.drawingArea+a[c],l),f=Dt(d.font),h=mne(e.ctx,f,e._pointLabels[c]);r[c]=h;const p=Pn(e.getIndexAngle(c)+l),m=Math.round(mm(p)),g=D9(m,u.x,h.w,0,180),y=D9(m,u.y,h.h,90,270);yne(o,t,p,g,y)}e.setCenterPoint(t.l-o.l,o.r-t.r,t.t-o.t,o.b-t.b),e._pointLabelItems=bne(e,r,a)}function yne(e,t,o,r,a){const i=Math.abs(Math.sin(o)),s=Math.abs(Math.cos(o));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),a.start<t.t?(c=(t.t-a.start)/s,e.t=Math.min(e.t,t.t-c)):a.end>t.b&&(c=(a.end-t.b)/s,e.b=Math.max(e.b,t.b+c))}function bne(e,t,o){const r=[],a=e._pointLabels.length,i=e.options,s=Gm(i)/2,l=e.drawingArea,c=i.pointLabels.centerPointLabels?kt/a:0;for(let d=0;d<a;d++){const u=e.getPointPosition(d,l+s+o[d],c),f=Math.round(mm(Pn(u.angle+Nt))),h=t[d],p=$ne(u.y,h.h,f),m=Cne(f),g=wne(u.x,h.w,m);r.push({x:u.x,y:p,textAlign:m,left:g,top:p,right:g+h.w,bottom:p+h.h})}return r}function Cne(e){return e===0||e===180?"center":e<180?"left":"right"}function wne(e,t,o){return o==="right"?e-=t:o==="center"&&(e-=t/2),e}function $ne(e,t,o){return o===90||o===270?e-=t/2:(o>270||o<90)&&(e-=t),e}function kne(e,t){const{ctx:o,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const i=r.setContext(e.getPointLabelContext(a)),s=Dt(i.font),{x:l,y:c,textAlign:d,left:u,top:f,right:h,bottom:p}=e._pointLabelItems[a],{backdropColor:m}=i;if(!Qe(m)){const g=Ma(i.borderRadius),y=Qt(i.backdropPadding);o.fillStyle=m;const w=u-y.left,$=f-y.top,C=h-u+y.width,b=p-f+y.height;Object.values(g).some(k=>k!==0)?(o.beginPath(),hl(o,{x:w,y:$,w:C,h:b,radius:g}),o.fill()):o.fillRect(w,$,C,b)}xa(o,e._pointLabels[a],l,c+s.lineHeight/2,s,{color:i.color,textAlign:d,textBaseline:"middle"})}}function R9(e,t,o,r){const{ctx:a}=e;if(o)a.arc(e.xCenter,e.yCenter,t,0,Ct);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=e.getPointPosition(s,t),a.lineTo(i.x,i.y)}}function Sne(e,t,o,r,a){const i=e.ctx,s=t.circular,{color:l,lineWidth:c}=t;!s&&!r||!l||!c||o<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),R9(e,o,s,r),i.closePath(),i.stroke(),i.restore())}function Ene(e,t,o){return Yr(e,{label:o,index:t,type:"pointLabel"})}class Li extends tu{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Qt(Gm(this.options)/2),o=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+o/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(o,r)/2)}determineDataLimits(){const{min:t,max:o}=this.getMinMax(!1);this.min=Bt(t)&&!isNaN(t)?t:0,this.max=Bt(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Gm(this.options))}generateTickLabels(t){tu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((o,r)=>{const a=gt(this.options.pointLabels.callback,[o,r],this);return a||a===0?a:""}).filter((o,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?gne(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,o,r,a){this.xCenter+=Math.floor((t-o)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,o,r,a))}getIndexAngle(t){const o=Ct/(this._pointLabels.length||1),r=this.options.startAngle||0;return Pn(t*o+wo(r))}getDistanceFromCenterForValue(t){if(Qe(t))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*o:(t-this.min)*o}getValueForDistanceFromCenter(t){if(Qe(t))return NaN;const o=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(t){const o=this._pointLabels||[];if(t>=0&&t<o.length){const r=o[t];return Ene(this.getContext(),t,r)}}getPointPosition(t,o,r=0){const a=this.getIndexAngle(t)-Nt+r;return{x:Math.cos(a)*o+this.xCenter,y:Math.sin(a)*o+this.yCenter,angle:a}}getPointPositionForValue(t,o){return this.getPointPosition(t,this.getDistanceFromCenterForValue(o))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:o,top:r,right:a,bottom:i}=this._pointLabelItems[t];return{left:o,top:r,right:a,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:o}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),R9(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,o=this.options,{angleLines:r,grid:a,border:i}=o,s=this._pointLabels.length;let l,c,d;if(o.pointLabels.display&&kne(this,s),a.display&&this.ticks.forEach((u,f)=>{if(f!==0){c=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),p=a.setContext(h),m=i.setContext(h);Sne(this,p,c,s,m)}}),r.display){for(t.save(),l=s-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=u;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),d=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,o=this.options,r=o.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!o.reverse)return;const d=r.setContext(this.getContext(c)),u=Dt(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){t.font=u.string,s=t.measureText(l.label).width,t.fillStyle=d.backdropColor;const f=Qt(d.backdropPadding);t.fillRect(-s/2-f.left,-i-u.size/2-f.top,s+f.width,u.size+f.height)}xa(t,l.label,0,-i,u,{color:d.color})}),t.restore()}drawTitle(){}}_e(Li,"id","radialLinear"),_e(Li,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:dl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),_e(Li,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),_e(Li,"descriptors",{angleLines:{_fallback:"grid"}});const ru={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bn=Object.keys(ru);function Bne(e,t){return e-t}function L9(e,t){if(Qe(t))return null;const o=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Bt(s)||(s=typeof r=="string"?o.parse(s,r):o.parse(s)),s===null?null:(a&&(s=a==="week"&&(Ti(i)||i===!0)?o.startOf(s,"isoWeek",i):o.startOf(s,a)),+s)}function V9(e,t,o,r){const a=bn.length;for(let i=bn.indexOf(e);i<a-1;++i){const s=ru[bn[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((o-t)/(l*s.size))<=r)return bn[i]}return bn[a-1]}function Nne(e,t,o,r,a){for(let i=bn.length-1;i>=bn.indexOf(o);i--){const s=bn[i];if(ru[s].common&&e._adapter.diff(a,r,s)>=t-1)return s}return bn[o?bn.indexOf(o):0]}function _ne(e){for(let t=bn.indexOf(e)+1,o=bn.length;t<o;++t)if(ru[bn[t]].common)return bn[t]}function F9(e,t,o){if(!o)e[t]=!0;else if(o.length){const{lo:r,hi:a}=ym(o,t),i=o[r]>=t?o[r]:o[a];e[i]=!0}}function Tne(e,t,o,r){const a=e._adapter,i=+a.startOf(t[0].value,r),s=t[t.length-1].value;let l,c;for(l=i;l<=s;l=+a.add(l,1,r))c=o[l],c>=0&&(t[c].major=!0);return t}function z9(e,t,o){const r=[],a={},i=t.length;let s,l;for(s=0;s<i;++s)l=t[s],a[l]=s,r.push({value:l,major:!1});return i===0||!o?r:Tne(e,r,a,o)}class Vi extends qr{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,o={}){const r=t.time||(t.time={}),a=this._adapter=new $5._date(t.adapters.date);a.init(o),al(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=o.normalized}parse(t,o){return t===void 0?null:L9(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,o=this._adapter,r=t.time.unit||"day";let{min:a,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(a=Math.min(a,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),a=Bt(a)&&!isNaN(a)?a:+o.startOf(Date.now(),r),i=Bt(i)&&!isNaN(i)?i:+o.endOf(Date.now(),r)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(o=t[0],r=t[t.length-1]),{min:o,max:r}}buildTicks(){const t=this.options,o=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const i=this.min,s=this.max,l=BJ(a,i,s);return this._unit=o.unit||(r.autoSkip?V9(o.minUnit,this.min,this.max,this._getLabelCapacity(i)):Nne(this,l.length,o.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:_ne(this._unit),this.initOffsets(a),t.reverse&&l.reverse(),z9(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let o=0,r=0,a,i;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?o=1-a:o=(this.getDecimalForValue(t[1])-a)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;o=zt(o,0,s),r=zt(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const t=this._adapter,o=this.min,r=this.max,a=this.options,i=a.time,s=i.unit||V9(i.minUnit,o,r,this._getLabelCapacity(o)),l=Ke(a.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,d=Ti(c)||c===!0,u={};let f=o,h,p;if(d&&(f=+t.startOf(f,"isoWeek",c)),f=+t.startOf(f,d?"day":s),t.diff(r,o,s)>1e5*l)throw new Error(o+" and "+r+" are too far apart with stepSize of "+l+" "+s);const m=a.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;h<r;h=+t.add(h,l,s),p++)F9(u,h,m);return(h===r||a.bounds==="ticks"||p===1)&&F9(u,h,m),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(t){const o=this._adapter,r=this.options.time;return r.tooltipFormat?o.format(t,r.tooltipFormat):o.format(t,r.displayFormats.datetime)}format(t,o){const a=this.options.time.displayFormats,i=this._unit,s=o||a[i];return this._adapter.format(t,s)}_tickFormatFunction(t,o,r,a){const i=this.options,s=i.ticks.callback;if(s)return gt(s,[t,o,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],f=d&&l[d],h=r[o],p=d&&f&&h&&h.major;return this._adapter.format(t,a||(p?f:u))}generateTickLabels(t){let o,r,a;for(o=0,r=t.length;o<r;++o)a=t[o],a.label=this._tickFormatFunction(a.value,o,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const o=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((o.start+r)*o.factor)}getValueForPixel(t){const o=this._offsets,r=this.getDecimalForPixel(t)/o.factor-o.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const o=this.options.ticks,r=this.ctx.measureText(t).width,a=wo(this.isHorizontal()?o.maxRotation:o.minRotation),i=Math.cos(a),s=Math.sin(a),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(t){const o=this.options.time,r=o.displayFormats,a=r[o.unit]||r.millisecond,i=this._tickFormatFunction(t,0,z9(this,[t],this._majorUnit),a),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],o,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(o=0,r=a.length;o<r;++o)t=t.concat(a[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let o,r;if(t.length)return t;const a=this.getLabels();for(o=0,r=a.length;o<r;++o)t.push(L9(this,a[o]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return T6(t.sort(Bne))}}_e(Vi,"id","time"),_e(Vi,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function au(e,t,o){let r=0,a=e.length-1,i,s,l,c;o?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=gr(e,"pos",t)),{pos:i,time:l}=e[r],{pos:s,time:c}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=gr(e,"time",t)),{time:i,pos:l}=e[r],{time:s,pos:c}=e[a]);const d=s-i;return d?l+(c-l)*(t-i)/d:l}class iu extends Vi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(t);this._minPos=au(o,this.min),this._tableRange=au(o,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:o,max:r}=this,a=[],i=[];let s,l,c,d,u;for(s=0,l=t.length;s<l;++s)d=t[s],d>=o&&d<=r&&a.push(d);if(a.length<2)return[{time:o,pos:0},{time:r,pos:1}];for(s=0,l=a.length;s<l;++s)u=a[s+1],c=a[s-1],d=a[s],Math.round((u+c)/2)!==d&&i.push({time:d,pos:s/(l-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const o=this.getDataTimestamps(),r=this.getLabelTimestamps();return o.length&&r.length?t=this.normalize(o.concat(r)):t=o.length?o:r,t=this._cache.all=t,t}getDecimalForValue(t){return(au(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const o=this._offsets,r=this.getDecimalForPixel(t)/o.factor-o.end;return au(this._table,r*this._tableRange+this._minPos,!0)}}_e(iu,"id","timeseries"),_e(iu,"defaults",Vi.defaults);var H9=Object.freeze({__proto__:null,CategoryScale:eu,LinearScale:nu,LogarithmicScale:ou,RadialLinearScale:Li,TimeScale:Vi,TimeSeriesScale:iu});const Ane=[w5,t9,M9,H9];/*!
 * Chart.js v4.2.1
 * https://www.chartjs.org
 * (c) 2023 Chart.js Contributors
 * Released under the MIT License
 */var Xr=Object.freeze({__proto__:null,Animation:l5,Animations:Tm,ArcElement:El,BarController:Pi,BarElement:Nl,BasePlatform:Im,BasicPlatform:A5,BubbleController:vi,CategoryScale:eu,Chart:Ho,Colors:i9,DatasetController:Qn,Decimation:c9,DomPlatform:O5,DoughnutController:yr,Element:eo,Filler:y9,Interaction:S5,Legend:$9,LineController:Oi,LineElement:br,LinearScale:nu,LogarithmicScale:ou,PieController:gl,PointElement:Bl,PolarAreaController:Ia,RadarController:Ii,RadialLinearScale:Li,Scale:qr,ScatterController:Di,SubTitle:S9,TimeScale:Vi,TimeSeriesScale:iu,Title:k9,Tooltip:x9,_adapters:$5,_detectPlatform:I5,animator:zo,controllers:w5,elements:t9,layouts:jt,plugins:M9,registerables:Ane,registry:$o,scales:H9,Ticks:dl,defaults:_t});const W9={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},xne={type:{type:String,required:!0},...W9},Mne=n.version[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Fi(e){return n.isProxy(e)?n.toRaw(e):e}function Pne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return n.isProxy(t)?new Proxy(e,{}):e}function vne(e,t){const o=e.options;o&&t&&Object.assign(o,t)}function K9(e,t){e.labels=t}function j9(e,t,o){const r=[];e.datasets=t.map(a=>{const i=e.datasets.find(s=>s[o]===a[o]);return!i||!a.data||r.includes(i)?{...a}:(r.push(i),Object.assign(i,a),i)})}function One(e,t){const o={labels:[],datasets:[]};return K9(o,e.labels),j9(o,e.datasets,t),o}const Ine=n.defineComponent({props:xne,setup(e,t){let{expose:o}=t;const r=n.ref(null),a=n.shallowRef(null);o({chart:a});const i=()=>{if(!r.value)return;const{type:c,data:d,options:u,plugins:f,datasetIdKey:h}=e,p=One(d,h),m=Pne(p,d);a.value=new Ho(r.value,{type:c,data:m,options:{...u},plugins:f})},s=()=>{const c=n.toRaw(a.value);c&&(c.destroy(),a.value=null)},l=c=>{c.update(e.updateMode)};return n.onMounted(i),n.onBeforeUnmount(s),n.watch([()=>e.options,()=>e.data],(c,d)=>{let[u,f]=c,[h,p]=d;const m=n.toRaw(a.value);if(!m)return;let g=!1;if(u){const y=Fi(u),w=Fi(h);y&&y!==w&&(vne(m,y),g=!0)}if(f){const y=Fi(f.labels),w=Fi(p.labels),$=Fi(f.datasets),C=Fi(p.datasets);y!==w&&(K9(m.config.data,y),g=!0),$&&$!==C&&(j9(m.config.data,$,e.datasetIdKey),g=!0)}g&&l(m)},{deep:!0}),()=>n.h("canvas",{ref:r})}});function Jr(e,t){return Ho.register(t),n.defineComponent({props:W9,setup(o,r){let{expose:a}=r;const i=n.shallowRef(null),s=l=>{i.value=l?.chart};return a({chart:i}),()=>n.h(Ine,Mne({ref:s},{type:e,...o}))}})}const Dne=Jr("bar",Pi),Rne=Jr("doughnut",yr),Lne=Jr("line",Oi),Vne=Jr("pie",gl),Fne=Jr("polarArea",Ia),zne=Jr("radar",Ii),Hne=Jr("bubble",vi),Wne=Jr("scatter",Di),Cn=["#A268FF","#FF7777","#FFCC68","#00C2EE","#679BFF","#00EE98","#BAC3CF","#505D6F"],su=["rgba(162, 104, 255, 0.1)","rgba(255, 119, 119, 0.1)","rgba(255, 204, 104, 0.1)","rgba(0, 194, 238, 0.1)","rgba(103, 155, 255, 0.1)","rgba(0, 238, 152, 0.1)","rgba(186, 195, 207, 0.1)","rgba(80, 93, 111, 0.1)"],Ym=["rgba(162, 104, 255, 0.2)","rgba(255, 119, 119, 0.2)","rgba(255, 204, 104, 0.2)","rgba(0, 194, 238, 0.2)","rgba(103, 155, 255, 0.2)","rgba(0, 238, 152, 0.2)","rgba(186, 195, 207, 0.2)","rgba(80, 93, 111, 0.2)"],U9=["rgba(162, 104, 255, 0.7)","rgba(255, 119, 119, 0.7)","rgba(255, 204, 104, 0.7)","rgba(0, 194, 238, 0.7)","rgba(103, 155, 255, 0.7)","rgba(0, 238, 152, 0.7)","rgba(186, 195, 207, 0.7)","rgba(80, 93, 111, 0.7)"],Al=[[{offset:0,color:"#FFC371"},{offset:1,color:"#FF5F6D"}],[{offset:.7858,color:"#FF8A1E"},{offset:.1544,color:"#FBDA61"}],[{offset:.8351,color:"#68C121"},{offset:.1649,color:"#FFD705"}],[{offset:.1649,color:"#A1FF8B"},{offset:.8351,color:"#3F93FF"}],[{offset:.141,color:"#10D7E2"},{offset:.859,color:"#9358F7"}],[{offset:.1649,color:"#7570FF"},{offset:.8351,color:"#CF36AD"}],[{offset:.1649,color:"#FF56DA"},{offset:.8351,color:"#FF1B1B"}],[{offset:0,color:"#FF5959"},{offset:1,color:"#FF7A00"}]],zi=e=>Cn[e.datasetIndex%Cn.length],Kne=e=>su[e.datasetIndex%Cn.length],G9=e=>Ym[e.datasetIndex%Cn.length],qm=e=>U9[e.datasetIndex%Cn.length],jne=e=>Cn[e%Cn.length],Y9=(e,t)=>{let o=null;const{chart:r}=e,{ctx:a,chartArea:i}=r;if(!!i)return o||(o=a.createLinearGradient(0,0,0,i.height),Al[t%Al.length].forEach(s=>{o.addColorStop(s.offset,s.color)})),o},lu=(e,t,o=void 0)=>{let r;const{chart:a}=e,{ctx:i,chartArea:s}=a;if(!!s)return r||(r=i.createLinearGradient(0,0,0,s.height),r.addColorStop(0,Cn[t%Cn.length]),r.addColorStop(1,o||su[t%Cn.length])),r};function Une(e,t=0){const o=e.chart.chartArea;let r,a;const i=new Map;if(!o)return;const s=o.right-o.left,l=o.bottom-o.top;(r!==s||a!==l)&&i.clear();let c=i.get(t);if(!c){r=s,a=l;const d=(o.left+o.right)/2,u=(o.top+o.bottom)/2,f=Math.min((o.right-o.left)/2,(o.bottom-o.top)/2);c=e.chart.ctx.createRadialGradient(d,u,0,d,u,f),Al[t%Al.length].forEach(p=>{c.addColorStop(p.offset,p.color)}),i.set(t,c)}return c}function Zm(e,t=0,o=void 0){const r=e.chart.chartArea;let a,i;const s=new Map;if(!r)return;const l=r.right-r.left,c=r.bottom-r.top;(a!==l||i!==c)&&s.clear();let d=s.get(t);if(!d){a=l,i=c;const u=(r.left+r.right)/2,f=(r.top+r.bottom)/2,h=Math.min((r.right-r.left)/2,(r.bottom-r.top)/2);d=e.chart.ctx.createRadialGradient(u,f,0,u,f,h),d.addColorStop(0,o||su[t%Cn.length]),d.addColorStop(1,Ym[t%Cn.length]),s.set(t,d)}return d}const Gne=e=>Y9(e,e.datasetIndex),Yne=e=>Une(e,e.dataIndex),qne=e=>lu(e,e.datasetIndex),Zne=e=>lu(e,e.datasetIndex,"rgba(0,0,0,0)"),q9=e=>lu(e,e.datasetIndex,"rgba(255,255,255,0)"),Z9=e=>Zm(e,e.datasetIndex),Xne=e=>Zm(e,e.datasetIndex,"rgba(0,0,0,0)"),Jne=e=>Zm(e,e.datasetIndex,"rgba(255,255,255,0)"),wr=e=>({responsive:!0,maintainAspectRatio:!0,color:"#333333",font:{family:"'Inter', sans-serif",weight:"600",size:12,lineHeight:1.33333333},scales:{x:{beginAtZero:!0,ticks:{display:!!["bar","line","bubble","scatter"].includes(e),padding:8},grid:{display:!1,drawTicks:!1},border:{display:!1,dash:[2,2],color:"#eaeaea"}},y:{beginAtZero:!0,ticks:{display:!!["bar","line","bubble","scatter"].includes(e),padding:8},grid:{display:!!["bar","line","bubble","scatter"].includes(e),drawTicks:!1},border:{display:!1,dash:[2,2],color:"#eaeaea"}}},plugins:{legend:{display:e!=="polar",labels:{boxWidth:12,boxHeight:12,usePointStyle:!0,pointStyle:"rectRounded",padding:24}}},elements:{bar:e==="bar"?{borderSkipped:!1,borderRadius:4,backgroundColor:zi}:{},line:e==="line"?{borderColor:zi,backgroundColor:q9,borderWidth:1,tension:.33,fill:"start"}:e==="radar"?{tension:0,backgroundColor:G9,borderColor:zi,borderWidth:1}:{},point:["line","radar"].includes(e)?{borderColor:"rgba(255,255,255,0.7)",radius:4,backgroundColor:zi}:["bubble","scatter"].includes(e)?{hoverBorderColor:"rgba(255,255,255,0.7)",backgroundColor:zi}:{},arc:["donut","pie"].includes(e)?{borderWidth:2,borderRadius:6,borderColor:"#ffffff",hoverBorderColor:"#ffffff",backgroundColor:Cn,hoverOffset:4}:["polar","radar"].includes(e)?{borderWidth:1,borderColor:qm,backgroundColor:Z9,hoverBackgroundColor:qm}:{}}});var Qne=Object.freeze({__proto__:null,flatColors:zi,opaqueColors:Kne,opaqueColors2:G9,opaqueColors7:qm,getFlatColor:jne,getGradientColor:Y9,getOpaqueGradientColor:lu,gradientColors:Gne,radialGradientColors:Yne,opaqueGradientColors:qne,opaqueDarkGradientColors:Zne,opaqueLightGradientColors:q9,opaqueRadialGradientColors:Z9,opaqueDarkRadialGradientColors:Xne,opaqueLightRadialGradientColors:Jne,getChartDefaultOptions:wr,CHART_COLORS:Cn,CHART_GRADIENTS:Al,CHART_COLOR_OPAQUE_1:su,CHART_COLOR_OPAQUE_2:Ym,CHART_COLOR_OPAQUE_7:U9});const eoe=n.defineComponent({name:"BBarChart"}),toe=n.defineComponent({...eoe,props:{datasetIdKey:{type:String,default:"label"},width:{type:Number,default:480},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})},updateMode:{type:String,default:void 0}},setup(e){const t=e,{BarElement:o,CategoryScale:r,Chart:a,Legend:i,LinearScale:s,Title:l,Tooltip:c}=Xr;a.register(l,c,i,o,r,s);const d=rr(wr("bar")),u=n.computed(()=>t.chartOptions.indexAxis==="y"),f=n.computed(()=>t.chartOptions.scales?.x?.stacked??t.chartOptions.scales?.y?.stacked??!1),h=n.computed(()=>so(so(d,{elements:f.value?{bar:{borderSkipped:"middle"}}:{},scales:{x:{grid:{display:u.value}},y:{grid:{display:!u.value}}}}),t.chartOptions));return(p,m)=>(n.openBlock(),n.createBlock(n.unref(Dne),{options:n.unref(h),data:e.chartData,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,"update-mode":e.updateMode,width:e.width,height:e.height,"data-test-name":"bar-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","dataset-id-key","plugins","update-mode","width","height"]))}});var cu=Q(toe,[["__file","bar-chart.vue"]]);const noe=n.defineComponent({name:"BLineChart"}),ooe=n.defineComponent({...noe,props:{chartId:{type:String,default:"line-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:480},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{CategoryScale:o,Chart:r,Filler:a,Legend:i,LineElement:s,LinearScale:l,PointElement:c,Title:d,Tooltip:u}=Xr;r.register(d,u,i,s,l,o,c,a);const f=rr(wr("line")),h=n.computed(()=>so(f,t.chartOptions));return(p,m)=>(n.openBlock(),n.createBlock(n.unref(Lne),{options:n.unref(h),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"line-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var Xm=Q(ooe,[["__file","line-chart.vue"]]);const roe=n.defineComponent({name:"BBubbleChart"}),aoe=n.defineComponent({...roe,props:{chartId:{type:String,default:"bubble-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:480},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{Chart:o,Legend:r,LinearScale:a,PointElement:i,Title:s,Tooltip:l}=Xr;o.register(s,l,r,i,a);const c=rr(wr("bubble")),d=n.computed(()=>so(c,t.chartOptions));return(u,f)=>(n.openBlock(),n.createBlock(n.unref(Hne),{options:n.unref(d),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"bubble-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var Jm=Q(aoe,[["__file","bubble-chart.vue"]]);const ioe=n.defineComponent({name:"BDonutChart"}),soe=n.defineComponent({...ioe,props:{chartId:{type:String,default:"donut-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:240},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{ArcElement:o,CategoryScale:r,Chart:a,Legend:i,Title:s,Tooltip:l}=Xr;a.register(s,l,i,o,r);const c=rr(wr("donut")),d=n.computed(()=>so(c,t.chartOptions));return(u,f)=>(n.openBlock(),n.createBlock(n.unref(Rne),{options:n.unref(d),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"donut-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var du=Q(soe,[["__file","donut-chart.vue"]]);const loe=n.defineComponent({name:"BPieChart"}),coe=n.defineComponent({...loe,props:{chartId:{type:String,default:"pie-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:240},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{ArcElement:o,CategoryScale:r,Chart:a,Legend:i,Title:s,Tooltip:l}=Xr;a.register(s,l,i,o,r);const c=rr(wr("pie")),d=n.computed(()=>so(so(c,{cutout:"72%"}),t.chartOptions));return(u,f)=>(n.openBlock(),n.createBlock(n.unref(Vne),{options:n.unref(d),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"pie-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var Qm=Q(coe,[["__file","pie-chart.vue"]]);const doe=n.defineComponent({name:"BPolarAreaChart"}),uoe=n.defineComponent({...doe,props:{chartId:{type:String,default:"polar-area-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:240},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{ArcElement:o,Chart:r,Legend:a,RadialLinearScale:i,Title:s,Tooltip:l}=Xr;r.register(s,l,a,o,i);const c=rr(wr("polar")),d=n.computed(()=>so(c,t.chartOptions));return(u,f)=>(n.openBlock(),n.createBlock(n.unref(Fne),{options:n.unref(d),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"polar-area-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var e1=Q(uoe,[["__file","polar-area-chart.vue"]]);const foe=n.defineComponent({name:"BRadarChart"}),hoe=n.defineComponent({...foe,props:{chartId:{type:String,default:"radar-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:240},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{Chart:o,Legend:r,LineElement:a,PointElement:i,RadialLinearScale:s,Title:l,Tooltip:c}=Xr;o.register(l,c,r,i,s,a);const d=rr(wr("radar")),u=n.computed(()=>so(d,t.chartOptions));return(f,h)=>(n.openBlock(),n.createBlock(n.unref(zne),{options:n.unref(u),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"radar-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var t1=Q(hoe,[["__file","radar-chart.vue"]]);const poe=n.defineComponent({name:"BScatterChart"}),moe=n.defineComponent({...poe,props:{chartId:{type:String,default:"scatter-chart"},datasetIdKey:{type:String,default:"label"},width:{type:Number,default:480},height:{type:Number,default:240},plugins:{type:Array,default:()=>[]},chartData:{type:Object,default:()=>({datasets:[]})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!0})}},setup(e){const t=e,{CategoryScale:o,Chart:r,Legend:a,LineElement:i,LinearScale:s,PointElement:l,Title:c,Tooltip:d}=Xr;r.register(c,d,a,i,o,s,l);const u=rr(wr("scatter")),f=n.computed(()=>so(u,t.chartOptions));return(h,p)=>(n.openBlock(),n.createBlock(n.unref(Wne),{options:n.unref(f),data:e.chartData,"chart-id":e.chartId,"dataset-id-key":e.datasetIdKey,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":"scatter-chart","data-test-variant":"","data-test-state":""},null,8,["options","data","chart-id","dataset-id-key","plugins","width","height"]))}});var n1=Q(moe,[["__file","scatter-chart.vue"]]);const goe=n.defineComponent({name:"BChart"}),yoe=n.defineComponent({...goe,props:{chartType:{type:String,default:"bar"},chartData:{type:Object,default:()=>({})},chartOptions:{type:Object,default:()=>({responsive:!0,maintainAspectRatio:!1})},chartId:{type:String,default:"b-chart"},width:{type:Number,default:400},height:{type:Number,default:400},plugins:{type:Array,default:()=>[]}},setup(e){const t=e,o=n.computed(()=>{switch(t.chartType){case"bar":return cu;case"bubble":return Jm;case"donut":return du;case"doughnut":return du;case"line":return Xm;case"pie":return Qm;case"polar-area":return e1;case"radar":return t1;case"scatter":return n1;default:return cu}});return(r,a)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(o)),{"chart-id":e.chartId,"chart-options":e.chartOptions,"chart-data":e.chartData,plugins:e.plugins,width:e.width,height:e.height,"data-test-name":`${n.unref(o)}-chart`,"data-test-variant":"","data-test-state":""},null,8,["chart-id","chart-options","chart-data","plugins","width","height","data-test-name"]))}});var boe=Q(yoe,[["__file","index.vue"]]);const X9=Ne(boe,{BarChart:cu,LineChart:Xm,BubbleChart:Jm,PieChart:Qm,PolarAreaChart:e1,DonutChart:du,RadarChart:t1,ScatterChart:n1}),J9=Ge(cu),Q9=Ge(Xm),ew=Ge(Jm),tw=Ge(Qm),nw=Ge(e1),ow=Ge(du),rw=Ge(t1),aw=Ge(n1),Coe=Qne,iw=ne({checked:{type:Boolean,default:!1}}),sw={"update:checked":e=>Pt(e),[ct]:e=>Pt(e)},woe=n.defineComponent({name:"BCheckTag"}),$oe=n.defineComponent({...woe,props:iw,emits:sw,setup(e,{emit:t}){const o=e,r=G("check-tag"),a=()=>{const i=!o.checked;t(ct,i),t("update:checked",i)};return(i,s)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).is("checked",i.checked)]),"data-test-name":"check-tag","data-test-variant":"","data-test-state":"",onClick:a},[n.renderSlot(i.$slots,"default")],2))}});var koe=Q($oe,[["__file","check-tag.vue"]]);const lw=Ne(koe),cw=ne({tag:{type:String,default:"div"},span:{type:[Number,String],default:0},offset:{type:Number,default:0},order:{type:[Number,String],default:0},xs:{type:K([Number,String,Object]),default:()=>st({})},sm:{type:K([Number,String,Object]),default:()=>st({})},md:{type:K([Number,String,Object]),default:()=>st({})},lg:{type:K([Number,String,Object]),default:()=>st({})},xl:{type:K([Number,String,Object]),default:()=>st({})},xxl:{type:K([Number,String,Object]),default:()=>st({})}}),Soe=n.defineComponent({name:"BCol"}),Eoe=n.defineComponent({...Soe,props:cw,setup(e){const t=e,{gutter:o}=n.inject(Zh,{gutter:n.computed(()=>6)}),r=G("col"),a=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value*2}px`),s}),i=n.computed(()=>{const s=[];return["span","offset","order"].forEach(d=>{const u=t[d];d==="span"?t[d]===0?s.push(r.b()):s.push(r.b(`${t[d]}`)):u>0&&s.push(r.b(`${d}-${t[d]}`))}),["xs","sm","md","lg","xl","xxl"].forEach(d=>{Se(t[d])||De(t[d])?+t[d]==0?s.push(r.b(`${d}`)):s.push(r.b(`${d}-${t[d]}`)):it(t[d])&&Object.entries(t[d]).forEach(([u,f])=>{s.push(u!=="span"?r.b(`${d}-${u}-${f}`):r.b(`${d}-${f}`))})}),o.value&&s.push(r.is("guttered")),s});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass([n.unref(r).b(),n.unref(i)]),style:n.normalizeStyle(n.unref(a)),"data-test-name":"col","data-test-variant":"","data-test-state":""},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Boe=Q(Eoe,[["__file","col.vue"]]);const lt=Ne(Boe),o1=e=>typeof Se(e),dw=ne({accordion:Boolean,modelValue:{type:K([Array,String,Number]),default:()=>st([])}}),uw={[Pe]:o1,[ct]:o1},Noe=n.defineComponent({name:"BCollapse"}),_oe=n.defineComponent({...Noe,props:dw,emits:uw,setup(e,{expose:t,emit:o}){const r=e,a=G("collapse"),i=n.ref(gc(r.modelValue)),s=c=>{i.value=c;const d=r.accordion?i.value[0]:i.value;o(Pe,d),o(ct,d)},l=c=>{if(r.accordion)s([(i.value[0]||i.value[0]===0)&&i.value[0]===c?"":c]);else{const d=[...i.value],u=d.indexOf(c);u>-1?d.splice(u,1):d.push(c),s(d)}};return n.watch(()=>r.modelValue,()=>i.value=gc(r.modelValue),{deep:!0}),n.provide(Kh,{activeNames:i,handleItemClick:l}),t({activeNames:i,setActiveNames:s}),(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a).b()),role:"tablist","aria-multiselectable":"true","data-test-name":"collapse","data-test-variant":"","data-test-state":""},[n.renderSlot(c.$slots,"default")],2))}});var Toe=Q(_oe,[["__file","collapse.vue"]]);const Aoe=n.defineComponent({name:"BCollapseTransition"}),xoe=n.defineComponent({...Aoe,setup(e){const t=G("collapse-transition"),o={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,a)=>(n.openBlock(),n.createBlock(n.Transition,n.mergeProps({name:n.unref(t).b()},n.toHandlers(o)),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},16,["name"]))}});var uu=Q(xoe,[["__file","collapse-transition.vue"]]);uu.install=e=>{e.component(uu.name,uu)};const fu=uu,fw=fu,hw=ne({title:{type:String,default:""},name:{type:K([String,Number]),default:()=>Ds()},disabled:Boolean}),Moe=["aria-expanded","aria-controls","aria-describedby"],Poe=["id","tabindex","onKeypress"],voe=["id","aria-hidden","aria-labelledby"],Ooe=n.defineComponent({name:"BCollapseItem"}),Ioe=n.defineComponent({...Ooe,props:hw,setup(e,{expose:t}){const o=e,r=n.inject(Kh),a=G("collapse"),i=n.ref(!1),s=n.ref(!1),l=n.ref(Ds()),c=n.computed(()=>r?.activeNames.value.includes(o.name)),d=()=>{setTimeout(()=>{s.value?s.value=!1:i.value=!0},50)},u=()=>{o.disabled||(r?.handleItemClick(o.name),i.value=!1,s.value=!0)},f=()=>{r?.handleItemClick(o.name)};return t({isActive:c}),(h,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(a).b("item"),n.unref(a).is("active",n.unref(c)),n.unref(a).is("disabled",h.disabled)]),"data-test-name":"collapse-item","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{role:"tab","aria-expanded":n.unref(c),"aria-controls":n.unref(a).b(`content-${l.value}`),"aria-describedby":n.unref(a).b(`content-${l.value}`)},[n.createElementVNode("div",{id:n.unref(a).b(`head-${l.value}`),class:n.normalizeClass([n.unref(a).be("item","header"),n.unref(a).is("active",n.unref(c)),{focusing:i.value&&!h.disabled}]),role:"button",tabindex:h.disabled?-1:0,onClick:u,onKeypress:n.withKeys(n.withModifiers(f,["stop","prevent"]),["space","enter"]),onFocus:d,onBlur:p[0]||(p[0]=m=>i.value=!1)},[n.renderSlot(h.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(h.title),1)]),n.createVNode(n.unref(pe),{class:n.normalizeClass([n.unref(a).be("item","arrow"),n.unref(a).is("active",n.unref(c))]),size:12},{default:n.withCtx(()=>[n.createVNode(n.unref(Is))]),_:1},8,["class"])],42,Poe)],8,Moe),n.createVNode(n.unref(fu),null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{id:n.unref(a).b(`content-${l.value}`),class:n.normalizeClass(n.unref(a).be("item","wrap")),role:"tabpanel","aria-hidden":!n.unref(c),"aria-labelledby":n.unref(a).b(`head-${l.value}`)},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).be("item","content"))},[n.renderSlot(h.$slots,"default")],2)],10,voe),[[n.vShow,n.unref(c)]])]),_:3})],2))}});var pw=Q(Ioe,[["__file","collapse-item.vue"]]);const mw=Ne(Toe,{CollapseItem:pw}),gw=Ge(pw);let r1=!1;function xl(e,t){if(!Re)return;const o=function(i){t.drag?.(i)},r=function(i){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,r1=!1,t.end?.(i)},a=function(i){r1||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),document.addEventListener("touchmove",o),document.addEventListener("touchend",r),r1=!0,t.start?.(i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const Doe=n.defineComponent({name:"BColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=G("color-alpha-slider"),o=n.getCurrentInstance(),r=n.shallowRef(),a=n.shallowRef(),i=n.ref(0),s=n.ref(0),l=n.ref();n.watch(()=>e.color.get("alpha"),()=>{p()}),n.watch(()=>e.color.value,()=>{p()});function c(){if(!r.value||e.vertical)return 0;const m=o.vnode.el,g=e.color.get("alpha");return m?Math.round(g*(m.offsetWidth-r.value.offsetWidth/2)/100):0}function d(){if(!r.value)return 0;const m=o.vnode.el;if(!e.vertical)return 0;const g=e.color.get("alpha");return m?Math.round(g*(m.offsetHeight-r.value.offsetHeight/2)/100):0}function u(){if(e.color&&e.color.value){const{r:m,g,b:y}=e.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${g}, ${y}, 0) 0%, rgba(${m}, ${g}, ${y}, 1) 100%)`}return""}function f(m){m.target!==r.value&&h(m)}function h(m){if(!a.value||!r.value)return;const y=o.vnode.el.getBoundingClientRect(),{clientX:w,clientY:$}=xh(m);if(e.vertical){let C=$-y.top;C=Math.max(r.value.offsetHeight/2,C),C=Math.min(C,y.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((C-r.value.offsetHeight/2)/(y.height-r.value.offsetHeight)*100))}else{let C=w-y.left;C=Math.max(r.value.offsetWidth/2,C),C=Math.min(C,y.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((C-r.value.offsetWidth/2)/(y.width-r.value.offsetWidth)*100))}}function p(){i.value=c(),s.value=d(),l.value=u()}return n.onMounted(()=>{if(!a.value||!r.value)return;const m={drag:g=>{h(g)},end:g=>{h(g)}};xl(a.value,m),xl(r.value,m),p()}),{thumb:r,bar:a,thumbLeft:i,thumbTop:s,background:l,handleClick:f,update:p,ns:t}}});function Roe(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[n.createElementVNode("div",{ref:"bar",class:n.normalizeClass(e.ns.e("bar")),style:n.normalizeStyle({background:e.background}),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,6),n.createElementVNode("div",{ref:"thumb",class:n.normalizeClass(e.ns.e("thumb")),style:n.normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var yw=Q(Doe,[["render",Roe],["__file","alpha-slider.vue"]]);const Loe=n.defineComponent({name:"BColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=G("color-hue-slider"),o=n.getCurrentInstance(),r=n.ref(),a=n.ref(),i=n.ref(0),s=n.ref(0),l=n.computed(()=>e.color.get("hue"));n.watch(()=>l.value,()=>{h()});function c(p){p.target!==r.value&&d(p)}function d(p){if(!a.value||!r.value)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:y,clientY:w}=xh(p);let $;if(e.vertical){let C=w-g.top;C=Math.min(C,g.height-r.value.offsetHeight/2),C=Math.max(r.value.offsetHeight/2,C),$=Math.round((C-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let C=y-g.left;C=Math.min(C,g.width-r.value.offsetWidth/2),C=Math.max(r.value.offsetWidth/2,C),$=Math.round((C-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}e.color.set("hue",$)}function u(){if(!r.value)return 0;const p=o.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return p?Math.round(m*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const p=o.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return p?Math.round(m*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function h(){i.value=u(),s.value=f()}return n.onMounted(()=>{if(!a.value||!r.value)return;const p={drag:m=>{d(m)},end:m=>{d(m)}};xl(a.value,p),xl(r.value,p),h()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:s,hueValue:l,handleClick:c,update:h,ns:t}}});function Voe(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[n.createElementVNode("div",{ref:"bar",class:n.normalizeClass(e.ns.e("bar")),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,2),n.createElementVNode("div",{ref:"thumb",class:n.normalizeClass(e.ns.e("thumb")),style:n.normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var bw=Q(Loe,[["render",Voe],["__file","hue-slider.vue"]]);const Cw=ne({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:It,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:K(Array)},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),ww={[Pe]:e=>De(e)||xt(e),[ct]:e=>De(e)||xt(e),activeChange:e=>De(e)||xt(e)},a1=Symbol("colorPickerContextKey"),$w=function(e,t,o){return[e,t*o/((e=(2-t)*o)<1?e:2-e)||0,e/2]},Foe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},zoe=function(e){return typeof e=="string"&&e.includes("%")},Hi=function(e,t){Foe(e)&&(e="100%");const o=zoe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},kw={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hu=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),o=e%16;return`${kw[t]||t}${kw[o]||o}`},Sw=function({r:e,g:t,b:o}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${hu(e)}${hu(t)}${hu(o)}`},i1={A:10,B:11,C:12,D:13,E:14,F:15},La=function(e){return e.length===2?(i1[e[0].toUpperCase()]||+e[0])*16+(i1[e[1].toUpperCase()]||+e[1]):i1[e[1].toUpperCase()]||+e[1]},Hoe=function(e,t,o){t=t/100,o=o/100;let r=t;const a=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,r*=a<=1?a:2-a;const i=(o+t)/2,s=o===0?2*r/(a+r):2*t/(o+t);return{h:e,s:s*100,v:i*100}},Ew=(e,t,o)=>{e=Hi(e,255),t=Hi(t,255),o=Hi(o,255);const r=Math.max(e,t,o),a=Math.min(e,t,o);let i;const s=r,l=r-a,c=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:{i=(t-o)/l+(t<o?6:0);break}case t:{i=(o-e)/l+2;break}case o:{i=(e-t)/l+4;break}}i/=6}return{h:i*360,s:c*100,v:s*100}},Ml=function(e,t,o){e=Hi(e,360)*6,t=Hi(t,100),o=Hi(o,100);const r=Math.floor(e),a=e-r,i=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=r%6,d=[o,s,i,i,l,o][c],u=[l,o,o,s,i,i][c],f=[i,i,l,o,o,s][c];return{r:Math.round(d*255),g:Math.round(u*255),b:Math.round(f*255)}};class Pl{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const o in t)Kt(t,o)&&(this[o]=t[o]);t.value?this.fromString(t.value):this.doOnChange()}set(t,o){if(arguments.length===1&&typeof t=="object"){for(const r in t)Kt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=o,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Ml(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const o=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:s}=Hoe(r[0],r[1],r[2]);o(a,i,s)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&o(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:s}=Ew(r[0],r[1],r[2]);o(a,i,s)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,s;r.length===3?(a=La(r[0]+r[0]),i=La(r[1]+r[1]),s=La(r[2]+r[2])):(r.length===6||r.length===8)&&(a=La(r.slice(0,2)),i=La(r.slice(2,4)),s=La(r.slice(4,6))),r.length===8?this._alpha=La(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:l,s:c,v:d}=Ew(a,i,s);o(l,c,d)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const s=$w(t,o/100,r/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(o)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Sw(Ml(t,o,r))}${hu(a*255/100)}`;break}default:{const{r:s,g:l,b:c}=Ml(t,o,r);this.value=`rgba(${s}, ${l}, ${c}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const s=$w(t,o/100,r/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(o)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:s,g:l,b:c}=Ml(t,o,r);this.value=`rgb(${s}, ${l}, ${c})`;break}default:this.value=Sw(Ml(t,o,r))}}}const Woe=n.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=G("color-predefine"),{currentColor:o}=n.inject(a1),r=n.ref(i(e.colors,e.color));n.watch(()=>o.value,s=>{const l=new Pl;l.fromString(s),r.value.forEach(c=>{c.selected=l.compare(c)})}),n.watchEffect(()=>{r.value=i(e.colors,e.color)});function a(s){e.color.fromString(e.colors[s])}function i(s,l){return s.map(c=>{const d=new Pl;return d.enableAlpha=!0,d.format="rgba",d.fromString(c),d.selected=d.value===l.value,d})}return{rgbaColors:r,handleSelect:a,ns:t}}}),Koe=["onClick"];function joe(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.ns.b())},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("colors"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rgbaColors,(s,l)=>(n.openBlock(),n.createElementBlock("div",{key:e.colors[l],class:n.normalizeClass([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:c=>e.handleSelect(l)},[n.createElementVNode("div",{style:n.normalizeStyle({backgroundColor:s.value})},null,4)],10,Koe))),128))],2)],2)}var Bw=Q(Woe,[["render",joe],["__file","predefine.vue"]]);const Uoe=n.defineComponent({name:"BSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=G("color-svpanel"),o=n.getCurrentInstance(),r=n.ref(0),a=n.ref(0),i=n.ref("hsl(0, 100%, 50%)"),s=n.computed(()=>{const d=e.color.get("hue"),u=e.color.get("value");return{hue:d,value:u}});function l(){const d=e.color.get("saturation"),u=e.color.get("value"),f=o.vnode.el,{clientWidth:h,clientHeight:p}=f;a.value=d*h/100,r.value=(100-u)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(d){const f=o.vnode.el.getBoundingClientRect(),{clientX:h,clientY:p}=xh(d);let m=h-f.left,g=p-f.top;m=Math.max(0,m),m=Math.min(m,f.width),g=Math.max(0,g),g=Math.min(g,f.height),a.value=m,r.value=g,e.color.set({saturation:m/f.width*100,value:100-g/f.height*100})}return n.watch(()=>s.value,()=>{l()}),n.onMounted(()=>{xl(o.vnode.el,{drag:d=>{c(d)},end:d=>{c(d)}}),l()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:s,handleDrag:c,update:l,ns:t}}}),Goe=[n.createElementVNode("div",null,null,-1)];function Yoe(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.ns.b()),style:n.normalizeStyle({backgroundColor:e.background})},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("white"))},null,2),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("black"))},null,2),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("cursor")),style:n.normalizeStyle({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Goe,6)],6)}var Nw=Q(Uoe,[["render",Yoe],["__file","sv-panel.vue"]]);const qoe=["id","aria-label","aria-description","tabindex","onKeydown"],Zoe=n.defineComponent({name:"BColorPicker",components:{BAlphaSlider:yw,BPredefine:Bw,BHueSlider:bw,BSvPanel:Nw}}),Xoe=n.defineComponent({...Zoe,props:Cw,emits:ww,setup(e,{expose:t,emit:o}){const r=e,{t:a}=He(),i=G("color"),{formItem:s}=mo(),l=At(),c=ho(),{inputId:d,isLabeledByFormItem:u}=cr(r,{formItemContext:s}),f=n.ref(),h=n.ref(),p=n.ref(),m=n.ref();let g=!0;const y=n.reactive(new Pl({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),w=n.ref(!1),$=n.ref(!1),C=n.ref(""),b=n.computed(()=>!r.modelValue&&!$.value?"transparent":E(y,r.showAlpha)),k=n.computed(()=>!r.modelValue&&!$.value?"":y.value),S=n.computed(()=>u.value?void 0:r.label||a("b.colorpicker.defaultLabel"));function E(F,M){if(!(F instanceof Pl))throw new TypeError("color should be instance of _color Class");const{r:z,g:B,b:L}=F.toRgb();return M?`rgba(${z}, ${B}, ${L}, ${F.get("alpha")/100})`:`rgb(${z}, ${B}, ${L})`}function N(F){w.value=F}const _=Zt(N,100);function T(){_(!1),P()}function P(){n.nextTick(()=>{r.modelValue?y.fromString(r.modelValue):(y.value="",n.nextTick(()=>{$.value=!1}))})}function x(){c.value||_(!w.value)}function v(){y.fromString(C.value)}function O(){const F=y.value;o(Pe,F),o("change",F),_(!1),n.nextTick(()=>{const M=new Pl({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});y.compare(M)||P()})}function I(){_(!1),o(Pe,null),o("change",null),P()}return n.onMounted(()=>{r.modelValue&&(C.value=k.value)}),n.watch(()=>r.modelValue,F=>{F?F&&F!==y.value&&(g=!1,y.fromString(F)):$.value=!1}),n.watch(()=>k.value,F=>{C.value=F,g&&o("activeChange",F),g=!0}),n.watch(()=>y.value,()=>{!r.modelValue&&!$.value&&($.value=!0)}),n.watch(()=>w.value,()=>{n.nextTick(()=>{f.value?.update(),h.value?.update(),p.value?.update()})}),n.provide(a1,{currentColor:k}),t({color:y}),(F,M)=>(n.openBlock(),n.createBlock(n.unref(Xt),{ref_key:"popper",ref:m,visible:w.value,"onUpdate:visible":M[1]||(M[1]=z=>w.value=z),"fallback-placements":["bottom","top","right","left"],offset:12,"gpu-acceleration":!1,"popper-class":[n.unref(i).be("picker","panel"),n.unref(i).b("dropdown"),F.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"b-zoom-in-top",persistent:"","data-test-name":"color-picker-panel"},{content:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",{class:n.normalizeClass(n.unref(i).be("dropdown","main-wrapper"))},[n.createVNode(bw,{ref_key:"hue",ref:f,class:"hue-slider",color:n.unref(y),vertical:""},null,8,["color"]),n.createVNode(Nw,{ref:"svPanel",color:n.unref(y)},null,8,["color"])],2),F.showAlpha?(n.openBlock(),n.createBlock(yw,{key:0,ref_key:"alpha",ref:p,color:n.unref(y)},null,8,["color"])):n.createCommentVNode("v-if",!0),F.predefine?(n.openBlock(),n.createBlock(Bw,{key:1,ref:"predefine",color:n.unref(y),colors:F.predefine},null,8,["color","colors"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(i).be("dropdown","btns"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).be("dropdown","value"))},[n.createVNode(n.unref(hn),{modelValue:C.value,"onUpdate:modelValue":M[0]||(M[0]=z=>C.value=z),"validate-event":!1,size:"small",onKeyup:n.withKeys(v,["enter"]),onBlur:v},null,8,["modelValue","onKeyup"])],2),n.createVNode(n.unref(ve),{class:n.normalizeClass(n.unref(i).be("dropdown","btn")),small:"",onClick:I},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)("b.colorpicker.clear")),1)]),_:1},8,["class"]),n.createVNode(n.unref(ve),{small:"",primary:"",class:n.normalizeClass(n.unref(i).be("dropdown","btn")),onClick:O},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)("b.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[n.unref(Bi),T]])]),default:n.withCtx(()=>[n.createElementVNode("div",{id:n.unref(d),class:n.normalizeClass([n.unref(i).b("picker"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).bm("picker",n.unref(l))]),role:"button","aria-label":n.unref(S),"aria-description":n.unref(a)("b.colorpicker.description",{color:F.modelValue}),tabindex:F.tabindex,"data-test-name":"color-picker","data-test-variant":"","data-test-state":"",onKeydown:n.withKeys(x,["enter"])},[n.unref(c)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(i).be("picker","mask"))},null,2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).be("picker","trigger"),n.unref(i).is("focus",w.value)]),onClick:x},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).be("picker","color"),n.unref(i).is("alpha",F.showAlpha)])},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).be("picker","color-inner")),style:n.normalizeStyle({backgroundColor:n.unref(b)})},[n.withDirectives(n.createVNode(n.unref(pe),{class:n.normalizeClass([n.unref(i).be("picker","icon"),n.unref(i).is("icon-arrow-down")])},{default:n.withCtx(()=>[n.createVNode(n.unref(di))]),_:1},8,["class"]),[[n.vShow,F.modelValue||$.value]]),!F.modelValue&&!$.value?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(i).be("picker","empty"),n.unref(i).is("icon-close")])},{default:n.withCtx(()=>[n.createVNode(n.unref(Nn))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],6)],2)],2)],42,qoe)]),_:1},8,["visible","popper-class"]))}});var Joe=Q(Xoe,[["__file","color-picker.vue"]]);const _w=Ne(Joe),pu={},Tw=ne({a11y:{type:Boolean,default:!0},locale:{type:K(Object)},size:It,button:{type:K(Object)},table:{type:K(Object),default(){return{sort:{ascending:"ascending",descending:"descending"}}}},experimentalFeatures:{type:K(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:K(Object)},zIndex:Number,namespace:{type:String,default:"b"}}),Qoe=n.defineComponent({name:"BConfigProvider",props:Tw,setup(e,{slots:t}){n.watch(()=>e.message,r=>{Object.assign(pu,r??{})},{immediate:!0,deep:!0});const o=np(e);return()=>n.renderSlot(t,"default",{config:o?.value})}}),Aw=Ne(Qoe),ere=n.defineComponent({name:"BContainer"}),tre=n.defineComponent({...ere,props:{direction:{type:String},offCanvas:Boolean,asideWidth:[String,Number],headerHeight:[String,Number]},setup(e){const t=e,o=n.useSlots(),r=G("container"),a=n.computed(()=>{let s={};return t.asideWidth&&(s={...s,...r.cssVarBlock({"aside-width":Se(t.asideWidth)?`${t.asideWidth}px`:t.asideWidth})}),t.headerHeight&&(s={...s,...r.cssVarBlock({"header-height":Se(t.headerHeight)?`${t.headerHeight}px`:t.headerHeight})}),s}),i=n.computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:o&&o.default?o.default().some(l=>{const c=l.type.name;return c==="BHeader"||c==="BFooter"}):!1);return(s,l)=>(n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).is("vertical",n.unref(i)),n.unref(r).is("off-canvas",e.offCanvas)]),style:n.normalizeStyle(n.unref(a)),"data-test-name":"container"},[n.renderSlot(s.$slots,"default")],6))}});var nre=Q(tre,[["__file","container.vue"]]);const ore=n.defineComponent({name:"BAside"}),rre=n.defineComponent({...ore,props:{width:{type:String,default:null}},setup(e){const t=e,o=G("aside"),r=n.computed(()=>t.width?o.cssVarBlock({width:t.width}):{});return(a,i)=>(n.openBlock(),n.createElementBlock("aside",{class:n.normalizeClass(n.unref(o).b()),style:n.normalizeStyle(n.unref(r)),"data-test-name":"aside"},[n.renderSlot(a.$slots,"default")],6))}});var xw=Q(rre,[["__file","aside.vue"]]);const are=n.defineComponent({name:"BFooter"}),ire=n.defineComponent({...are,props:{height:{type:String,default:null}},setup(e){const t=e,o=G("footer"),r=n.computed(()=>t.height?o.cssVarBlock({height:t.height}):{});return(a,i)=>(n.openBlock(),n.createElementBlock("footer",{class:n.normalizeClass(n.unref(o).b()),style:n.normalizeStyle(n.unref(r)),"data-test-name":"footer","data-test-variant":"","data-test-state":""},[n.renderSlot(a.$slots,"default")],6))}});var Mw=Q(ire,[["__file","footer.vue"]]);const sre=n.defineComponent({name:"BHeader"}),lre=n.defineComponent({...sre,props:{height:{type:[String,Number],default:null},shadow:Boolean,border:Boolean,fixed:Boolean},setup(e){const t=e,o=G("header"),r=G("header-wrapper"),a=n.computed(()=>t.height?o.cssVarBlock({height:Se(t.height)?`${t.height}px`:t.height}):{});return(i,s)=>(n.openBlock(),n.createElementBlock("header",{class:n.normalizeClass(n.unref(r).b()),style:n.normalizeStyle(n.unref(a)),"data-test-name":"header"},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(o).b(),n.unref(o).is("shadow",e.shadow),n.unref(o).is("border",e.border),n.unref(o).is("fixed",e.fixed),i.$attrs.class])},[n.renderSlot(i.$slots,"default")],2)],6))}});var Pw=Q(lre,[["__file","header.vue"]]);const cre=n.defineComponent({name:"BMain"}),dre=n.defineComponent({...cre,props:{fluid:Boolean},setup(e){const t=G("main");return(o,r)=>(n.openBlock(),n.createElementBlock("main",{class:n.normalizeClass([n.unref(t).b(),n.unref(t).is("fluid",e.fluid)]),"data-test-name":"main"},[n.renderSlot(o.$slots,"default")],2))}});var vw=Q(dre,[["__file","main.vue"]]);const ure=n.defineComponent({name:"BSpacer"}),fre=n.defineComponent({...ure,props:{width:{type:[Number,String],default:0},height:{type:[Number,String],default:0}},setup(e){const t=e,o=G("spacer"),r=n.computed(()=>{let a={};return t.width&&(a={...a,width:Se(t.width)?`${t.width}px`:t.width}),t.height&&(a={...a,height:Se(t.height)?`${t.height}px`:t.height}),a});return(a,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(o).b()]),style:n.normalizeStyle(n.unref(r)),"data-test-name":"spacer","data-test-variant":"","data-test-state":""},[n.renderSlot(a.$slots,"default")],6))}});var Ow=Q(fre,[["__file","spacer.vue"]]);const Iw=Ne(nre,{Aside:xw,Footer:Mw,Header:Pw,Main:vw,Spacer:Ow}),Dw=Ge(xw),Rw=Ge(Mw),Lw=Ge(Pw),Vw=Ge(vw),Ko=Ge(Ow);var Fw={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r){var a=r.prototype,i=a.format;a.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var d=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(Fw);var hre=Fw.exports,zw={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){var o="week",r="year";return function(a,i,s){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(d),f=s(this).endOf(o);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(d).startOf(o).subtract(1,"millisecond"),p=this.diff(h,o,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(zw);var pre=zw.exports,Hw={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),s=this.year();return i===1&&a===11?s+1:a===0&&i>=52?s-1:s}}})})(Hw);var mre=Hw.exports,Ww={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r,a){r.prototype.dayOfYear=function(i){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?s:this.add(i-s,"day")}}})})(Ww);var gre=Ww.exports,Kw={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(Kw);var yre=Kw.exports,jw={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(ur,function(){return function(o,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(jw);var bre=jw.exports;const Cre=ne({type:{type:K(String),default:"date"}}),Uw=["start","center","end","space-around","space-between","space-evenly"],Gw=["start","center","end"],Yw=ne({tag:{type:String,default:"div"},gutter:{type:[Number,String],default:6},justify:{type:String,values:Uw,default:"start"},items:{type:String,values:Gw,default:"start"}}),wre=n.defineComponent({name:"BRow"}),$re=n.defineComponent({...wre,props:Yw,setup(e){const t=e,o=G("row"),r=n.computed(()=>De(t.gutter)?Number.parseInt(`${t.gutter}`):t.gutter);n.provide(Zh,{gutter:r});const a=n.computed(()=>{const i={};return t.gutter&&(i.marginRight=i.marginLeft=`-${r.value*2}px`),i});return(i,s)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.tag),{class:n.normalizeClass([n.unref(o).b(),n.unref(o).is(`justify-${t.justify}`,i.justify!=="start"),n.unref(o).is(`items-${t.items}`,i.items!=="start")]),style:n.normalizeStyle(n.unref(a)),"data-test-name":"row","data-test-variant":"","data-test-state":""},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default")]),_:3},8,["class","style"]))}});var kre=Q($re,[["__file","row.vue"]]);const to=Ne(kre),Sre=["date","dates","year","month","week","range"],s1=ne({disabledDate:{type:K(Function)},date:{type:K(Object),required:!0},minDate:{type:K(Object)},maxDate:{type:K(Object)},parsedValue:{type:K([Object,Array])},rangeState:{type:K(Object),default:()=>({endDate:null,selecting:!1})}}),qw=ne({type:{type:K(String),required:!0,values:BC}}),Zw=ne({unlinkPanels:Boolean,parsedValue:{type:K(Array)}}),Xw=e=>({type:String,values:Sre,default:e}),Ere=ne({...qw,parsedValue:{type:K([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Bre=ne({...s1,cellClassName:{type:K(Function)},showWeekNumber:Boolean,selectionMode:Xw("date")}),l1=e=>{if(!Me(e))return!1;const[t,o]=e;return xe.isDayjs(t)&&xe.isDayjs(o)&&t.isSameOrBefore(o)},Jw=(e,{lang:t,unit:o,unlinkPanels:r})=>{let a;if(Me(e)){let[i,s]=e.map(l=>xe(l).locale(t));return r||(s=i.add(1,o)),[i,s]}else e?a=xe(e):a=xe();return a=a.locale(t),[a,a.add(1,o)]},Nre=(e,t,{columnIndexOffset:o,startDate:r,nextEndDate:a,now:i,unit:s,relativeDateGetter:l,setCellMetadata:c,setRowMetadata:d})=>{for(let u=0;u<e.row;u++){const f=t[u];for(let h=0;h<e.column;h++){let p=f[h+o];p||(p={row:u,column:h,type:"normal",inRange:!1,start:!1,end:!1});const m=u*e.column+h,g=l(m);p.dayjs=g,p.date=g.toDate(),p.timestamp=g.valueOf(),p.type="normal",p.inRange=!!(r&&g.isSameOrAfter(r,s)&&a&&g.isSameOrBefore(a,s))||!!(r&&g.isSameOrBefore(r,s)&&a&&g.isSameOrAfter(a,s)),r?.isSameOrAfter(a)?(p.start=!!a&&g.isSame(a,s),p.end=r&&g.isSame(r,s)):(p.start=!!r&&g.isSame(r,s),p.end=!!a&&g.isSame(a,s)),g.isSame(i,s)&&(p.type="today"),c?.(p,{rowIndex:u,columnIndex:h}),f[h+o]=p}d?.(f)}},_re=ne({cell:{type:K(Object)}});var Tre=n.defineComponent({name:"BDatePickerCell",props:_re,setup(e){const t=G("date-table-cell"),{slots:o}=n.inject(qc);return()=>{const{cell:r}=e;if(o.default){const a=o.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return n.createVNode("div",{class:t.b()},[n.createVNode("span",{class:t.e("text")},[r?.text])])}}});const Are=["aria-label"],xre={key:0,scope:"col"},Mre=["aria-label"],Pre=["aria-current","aria-selected","tabindex"];var c1=Q(n.defineComponent({__name:"basic-date-table",props:Bre,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const r=e,a=G("date-table"),{t:i,lang:s}=He(),l=n.ref(),c=n.ref(),d=n.ref(),u=n.ref(),f=n.ref([[],[],[],[],[],[]]);let h=!1;const p=r.date.$locale().weekStart||7,m=r.date.locale("en").localeData().weekdaysShort().map(R=>R.toLowerCase()),g=n.computed(()=>p>3?7-p:-p),y=n.computed(()=>{const R=r.date.startOf("month");return R.subtract(R.day()||7,"day")}),w=n.computed(()=>m.concat(m).slice(p,p+7)),$=n.computed(()=>Sf(N.value).some(R=>R.isCurrent)),C=n.computed(()=>{const R=r.date.startOf("month"),H=R.day()||7,j=R.daysInMonth(),U=R.subtract(1,"month").daysInMonth();return{startOfMonthDay:H,dateCountOfMonth:j,dateCountOfLastMonth:U}}),b=n.computed(()=>r.selectionMode==="dates"?lr(r.parsedValue):[]),k=(R,{count:H,rowIndex:j,columnIndex:U})=>{const{startOfMonthDay:re,dateCountOfMonth:J,dateCountOfLastMonth:Y}=n.unref(C),q=n.unref(g);if(j>=0&&j<=1){const te=re+q<0?7+re+q:re+q;if(U+j*7>=te)return R.text=H,!0;R.text=Y-(te-U%7)+1+j*7,R.type="prev-month"}else return H<=J?R.text=H:(R.text=H-J,R.type="next-month"),!0;return!1},S=(R,{columnIndex:H,rowIndex:j},U)=>{const{disabledDate:re,cellClassName:J}=r,Y=n.unref(b),q=k(R,{count:U,rowIndex:j,columnIndex:H}),te=R.dayjs.toDate();return R.selected=Y.find(ue=>ue.valueOf()===R.dayjs.valueOf()),R.isSelected=!!R.selected,R.isCurrent=P(R),R.disabled=re?.(te),R.customClass=J?.(te),q},E=R=>{if(r.selectionMode==="week"){const[H,j]=r.showWeekNumber?[1,7]:[0,6],U=W(R[H+1]);R[H].inRange=U,R[H].start=U,R[j].inRange=U,R[j].end=U}},N=n.computed(()=>{const{minDate:R,maxDate:H,rangeState:j,showWeekNumber:U}=r,re=g.value,J=f.value,Y="day";let q=1;if(U)for(let te=0;te<6;te++)J[te][0]||(J[te][0]={type:"week",text:y.value.add(te*7+1,Y).week()});return Nre({row:6,column:7},J,{startDate:R,columnIndexOffset:U?1:0,nextEndDate:j.endDate||H||j.selecting&&R||null,now:xe().locale(n.unref(s)).startOf(Y),unit:Y,relativeDateGetter:te=>y.value.add(te-re,Y),setCellMetadata:(...te)=>{S(...te,q)&&(q+=1)},setRowMetadata:E}),J});n.watch(()=>r.date,async()=>{l.value?.contains(document.activeElement)&&(await n.nextTick(),c.value?.focus())});const _=async()=>{c.value?.focus()},T=(R="")=>["normal","today"].includes(R),P=R=>r.selectionMode==="date"&&T(R.type)&&x(R,r.parsedValue),x=(R,H)=>H?xe(H).locale(s.value).isSame(r.date.date(Number(R.text)),"day"):!1,v=R=>{const H=[];return T(R.type)&&!R.disabled?(H.push("available"),R.type==="today"&&H.push("today")):H.push(R.type),P(R)&&H.push("current"),R.inRange&&(T(R.type)||r.selectionMode==="week")&&(H.push("in-range"),R.start&&H.push("start-date"),R.end&&H.push("end-date")),R.disabled&&H.push("disabled"),R.selected&&H.push("selected"),R.customClass&&H.push(R.customClass),H.join(" ")},O=(R,H)=>{const j=R*7+(H-(r.showWeekNumber?1:0))-g.value;return y.value.add(j,"day")},I=R=>{if(!r.rangeState.selecting)return;let H=R.target;if(H.tagName==="SPAN"&&(H=H.parentNode?.parentNode),H.tagName==="DIV"&&(H=H.parentNode),H.tagName!=="TD")return;const j=H.parentNode.rowIndex-1,U=H.cellIndex;N.value[j][U].disabled||(j!==d.value||U!==u.value)&&(d.value=j,u.value=U,o("changerange",{selecting:!0,endDate:O(j,U)}))},F=R=>!$.value&&R?.text===1&&R.type==="normal"||R.isCurrent,M=R=>{h||$.value||r.selectionMode!=="date"||L(R,!0)},z=R=>{!R.target.closest("td")||(h=!0)},B=R=>{!R.target.closest("td")||(h=!1)},L=(R,H=!1)=>{const j=R.target.closest("td");if(!j)return;const U=j.parentNode.rowIndex-1,re=j.cellIndex,J=N.value[U][re];if(J.disabled||J.type==="week")return;const Y=O(U,re);if(r.selectionMode==="range")!r.rangeState.selecting||!r.minDate?(o("pick",{minDate:Y,maxDate:null}),o("select",!0)):(Y>=r.minDate?o("pick",{minDate:r.minDate,maxDate:Y}):o("pick",{minDate:Y,maxDate:r.minDate}),o("select",!1));else if(r.selectionMode==="date")o("pick",Y,H);else if(r.selectionMode==="week"){const q=Y.week(),te=`${Y.year()}w${q}`;o("pick",{year:Y.year(),week:q,value:te,date:Y.startOf("week")})}else if(r.selectionMode==="dates"){const q=J.selected?lr(r.parsedValue).filter(te=>te?.valueOf()!==Y.valueOf()):lr(r.parsedValue).concat([Y]);o("pick",q)}},W=R=>{if(r.selectionMode!=="week")return!1;let H=r.date.startOf("day");if(R.type==="prev-month"&&(H=H.subtract(1,"month")),R.type==="next-month"&&(H=H.add(1,"month")),H=H.date(Number.parseInt(R.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const j=(r.parsedValue.day()-p+7)%7-1;return r.parsedValue.subtract(j,"day").isSame(H,"day")}return!1};return t({focus:_}),(R,H)=>(n.openBlock(),n.createElementBlock("table",{role:"grid","aria-label":n.unref(i)("b.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:n.normalizeClass([n.unref(a).b(),{"is-week-mode":R.selectionMode==="week"}]),onClick:L,onMousemove:I,onMousedown:z,onMouseup:B},[n.createElementVNode("tbody",{ref_key:"tbodyRef",ref:l},[n.createElementVNode("tr",null,[R.showWeekNumber?(n.openBlock(),n.createElementBlock("th",xre,n.toDisplayString(n.unref(i)("b.datepicker.week")),1)):n.createCommentVNode("v-if",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(w),(j,U)=>(n.openBlock(),n.createElementBlock("th",{key:U,scope:"col","aria-label":n.unref(i)("b.datepicker.weeksFull."+j)},n.toDisplayString(n.unref(i)("b.datepicker.weeks."+j)),9,Mre))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(N),(j,U)=>(n.openBlock(),n.createElementBlock("tr",{key:U,class:n.normalizeClass([n.unref(a).e("row"),{current:W(j[1])}])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(j,(re,J)=>(n.openBlock(),n.createElementBlock("td",{key:`${U}.${J}`,ref_for:!0,ref:Y=>F(re)&&(c.value=Y),class:n.normalizeClass(v(re)),"aria-current":re.isCurrent?"date":void 0,"aria-selected":re.isCurrent,tabindex:F(re)?0:-1,onFocus:M},[n.createVNode(n.unref(Tre),{cell:re},null,8,["cell"])],42,Pre))),128))],2))),128))],512)],42,Are))}}),[["__file","basic-date-table.vue"]]);const vre=ne({...s1,selectionMode:Xw("month")}),Ore=["aria-label"],Ire=["aria-selected","aria-label","tabindex","onKeydown"];var d1=Q(n.defineComponent({__name:"basic-month-table",props:vre,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const r=e,a=(b,k,S)=>{const E=xe().locale(S).startOf("month").month(k).year(b),N=E.daysInMonth();return fr(N).map(_=>E.add(_,"day").toDate())},i=G("month-table"),{t:s,lang:l}=He(),c=n.ref(),d=n.ref(),u=n.ref(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),f=n.ref([[],[],[]]),h=n.ref(),p=n.ref(),m=n.computed(()=>{const b=f.value,k=xe().locale(l.value).startOf("month");for(let S=0;S<3;S++){const E=b[S];for(let N=0;N<4;N++){const _=E[N]||(E[N]={row:S,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});_.type="normal";const T=S*4+N,P=r.date.startOf("year").month(T),x=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;_.inRange=!!(r.minDate&&P.isSameOrAfter(r.minDate,"month")&&x&&P.isSameOrBefore(x,"month"))||!!(r.minDate&&P.isSameOrBefore(r.minDate,"month")&&x&&P.isSameOrAfter(x,"month")),r.minDate?.isSameOrAfter(x)?(_.start=!!(x&&P.isSame(x,"month")),_.end=r.minDate&&P.isSame(r.minDate,"month")):(_.start=!!(r.minDate&&P.isSame(r.minDate,"month")),_.end=!!(x&&P.isSame(x,"month"))),k.isSame(P)&&(_.type="today"),_.text=T,_.disabled=r.disabledDate?.(P.toDate())||!1}}return b}),g=()=>{d.value?.focus()},y=b=>{const k={},S=r.date.year(),E=new Date,N=b.text;return k.disabled=r.disabledDate?a(S,N,l.value).every(r.disabledDate):!1,k.current=lr(r.parsedValue).findIndex(_=>xe.isDayjs(_)&&_.year()===S&&_.month()===N)>=0,k.today=E.getFullYear()===S&&E.getMonth()===N,b.inRange&&(k["in-range"]=!0,b.start&&(k["start-date"]=!0),b.end&&(k["end-date"]=!0)),k},w=b=>{const k=r.date.year(),S=b.text;return lr(r.date).findIndex(E=>E.year()===k&&E.month()===S)>=0},$=b=>{if(!r.rangeState.selecting)return;let k=b.target;if(k.tagName==="A"&&(k=k.parentNode?.parentNode),k.tagName==="DIV"&&(k=k.parentNode),k.tagName!=="TD")return;const S=k.parentNode.rowIndex,E=k.cellIndex;m.value[S][E].disabled||(S!==h.value||E!==p.value)&&(h.value=S,p.value=E,o("changerange",{selecting:!0,endDate:r.date.startOf("year").month(S*4+E)}))},C=b=>{const k=b.target?.closest("td");if(k?.tagName!=="TD"||lo(k,"disabled"))return;const S=k.cellIndex,N=k.parentNode.rowIndex*4+S,_=r.date.startOf("year").month(N);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&_>=r.minDate?o("pick",{minDate:r.minDate,maxDate:_}):o("pick",{minDate:_,maxDate:r.minDate}),o("select",!1)):(o("pick",{minDate:_,maxDate:null}),o("select",!0)):o("pick",N)};return n.watch(()=>r.date,async()=>{c.value?.contains(document.activeElement)&&(await n.nextTick(),d.value?.focus())}),t({focus:g}),(b,k)=>(n.openBlock(),n.createElementBlock("table",{role:"grid","aria-label":n.unref(s)("b.datepicker.monthTablePrompt"),class:n.normalizeClass(n.unref(i).b()),onClick:C,onMousemove:$},[n.createElementVNode("tbody",{ref_key:"tbodyRef",ref:c},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(m),(S,E)=>(n.openBlock(),n.createElementBlock("tr",{key:E},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(S,(N,_)=>(n.openBlock(),n.createElementBlock("td",{key:_,ref_for:!0,ref:T=>w(N)&&(d.value=T),class:n.normalizeClass(y(N)),"aria-selected":`${w(N)}`,"aria-label":n.unref(s)(`b.datepicker.month${+N.text+1}`),tabindex:w(N)?0:-1,onKeydown:[n.withKeys(n.withModifiers(C,["prevent","stop"]),["space"]),n.withKeys(n.withModifiers(C,["prevent","stop"]),["enter"])]},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).e("cell")])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("cell-text")])},n.toDisplayString(n.unref(s)("b.datepicker.months."+u.value[N.text])),3)],2)],42,Ire))),128))]))),128))],512)],42,Ore))}}),[["__file","basic-month-table.vue"]]);const{date:Dre,disabledDate:Rre,parsedValue:Lre}=s1,Vre=ne({date:Dre,disabledDate:Rre,parsedValue:Lre}),Fre=["aria-label"],zre=["aria-selected","tabindex","onKeydown"],Hre={class:"cell"},Wre={key:1};var Kre=Q(n.defineComponent({__name:"basic-year-table",props:Vre,emits:["pick"],setup(e,{expose:t,emit:o}){const r=e,a=(g,y)=>{const w=xe(String(g)).locale(y).startOf("year"),C=w.endOf("year").dayOfYear();return fr(C).map(b=>w.add(b,"day").toDate())},i=G("year-table"),{t:s,lang:l}=He(),c=n.ref(),d=n.ref(),u=n.computed(()=>Math.floor(r.date.year()/10)*10),f=()=>{d.value?.focus()},h=g=>{const y={},w=xe().locale(l.value);return y.disabled=r.disabledDate?a(g,l.value).every(r.disabledDate):!1,y.current=lr(r.parsedValue).findIndex($=>$.year()===g)>=0,y.today=w.year()===g,y},p=g=>g===u.value&&r.date.year()<u.value&&r.date.year()>u.value+9||lr(r.date).findIndex(y=>y.year()===g)>=0,m=g=>{const w=g.target.closest("td");if(w&&w.textContent){if(lo(w,"disabled"))return;const $=w.textContent||w.innerText;o("pick",Number($))}};return n.watch(()=>r.date,async()=>{c.value?.contains(document.activeElement)&&(await n.nextTick(),d.value?.focus())}),t({focus:f}),(g,y)=>(n.openBlock(),n.createElementBlock("table",{role:"grid","aria-label":n.unref(s)("b.datepicker.yearTablePrompt"),class:n.normalizeClass(n.unref(i).b()),onClick:m},[n.createElementVNode("tbody",{ref_key:"tbodyRef",ref:c},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(3,(w,$)=>n.createElementVNode("tr",{key:$},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(4,(C,b)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:$+"_"+b},[$*4+b<10?(n.openBlock(),n.createElementBlock("td",{key:0,ref_for:!0,ref:k=>p(n.unref(u)+$*4+b)&&(d.value=k),class:n.normalizeClass(["available",h(n.unref(u)+$*4+b)]),"aria-selected":`${p(n.unref(u)+$*4+b)}`,tabindex:p(n.unref(u)+$*4+b)?0:-1,onKeydown:[n.withKeys(n.withModifiers(m,["prevent","stop"]),["space"]),n.withKeys(n.withModifiers(m,["prevent","stop"]),["enter"])]},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).e("cell")])},[n.createElementVNode("span",Hre,n.toDisplayString(n.unref(u)+$*4+b),1)],2)],42,zre)):(n.openBlock(),n.createElementBlock("td",Wre))],64))),64))])),64))],512)],10,Fre))}}),[["__file","basic-year-table.vue"]]);const jre=["onClick"];var Ure=Q(n.defineComponent({__name:"panel-date-pick",props:Ere,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const o=e,r=(X,ie,we)=>!0,a=G("picker-panel"),i=G("date-picker"),s=n.useAttrs(),l=n.useSlots(),{t:c,lang:d}=He(),u=n.inject("EP_PICKER_BASE"),f=n.inject(Vs),{shortcuts:h,disabledDate:p,cellClassName:m,defaultTime:g,arrowControl:y}=u.props,w=n.toRef(u.props,"defaultValue"),$=n.ref(),C=n.ref(xe().locale(d.value)),b=n.computed(()=>xe(g).locale(d.value)),k=n.computed(()=>C.value.month()),S=n.computed(()=>C.value.year()),E=n.ref([]),N=n.ref(null),_=n.ref(null),T=X=>E.value.length>0?r(X,E.value,o.format||"HH:mm:ss"):!0,P=X=>g&&!te.value?b.value.year(X.year()).month(X.month()).date(X.date()):U.value?X.millisecond(0):X.startOf("day"),x=(X,...ie)=>{if(!X)t("pick",X,...ie);else if(Me(X)){const we=X.map(P);t("pick",we,...ie)}else t("pick",P(X),...ie);N.value=null,_.value=null},v=(X,ie)=>{if(B.value==="date"){X=X;let we=o.parsedValue?o.parsedValue.year(X.year()).month(X.month()).date(X.date()):X;T(we)||(we=E.value[0][0].year(X.year()).month(X.month()).date(X.date())),C.value=we,x(we,U.value||ie)}else B.value==="week"?x(X.date):B.value==="dates"&&x(X,!0)},O=X=>{const ie=X?"add":"subtract";C.value=C.value[ie](1,"month"),Ce("month")},I=X=>{const ie=C.value,we=X?"add":"subtract";C.value=F.value==="year"?ie[we](10,"year"):ie[we](1,"year"),Ce("year")},F=n.ref("date"),M=n.computed(()=>{const X=c("b.datepicker.year");if(F.value==="year"){const ie=Math.floor(S.value/10)*10;return X?`${ie} ${X} - ${ie+9} ${X}`:`${ie} - ${ie+9}`}return`${S.value} ${X}`}),z=X=>{const ie=nt(X.value)?X.value():X.value;if(ie){x(xe(ie).locale(d.value));return}X.onClick&&X.onClick({attrs:s,slots:l,emit:t})},B=n.computed(()=>{const{type:X}=o;return["week","month","year","dates"].includes(X)?X:"date"}),L=n.computed(()=>B.value==="date"?F.value:B.value),W=n.computed(()=>!!h.length),R=async X=>{C.value=C.value.startOf("month").month(X),B.value==="month"?x(C.value,!1):(F.value="date",["month","year","date","week"].includes(B.value)&&(x(C.value,!0),await n.nextTick(),me())),Ce("month")},H=async X=>{B.value==="year"?(C.value=C.value.startOf("year").year(X),x(C.value,!1)):(C.value=C.value.year(X),F.value="month",["month","year","date","week"].includes(B.value)&&(x(C.value,!0),await n.nextTick(),me())),Ce("year")},j=async X=>{F.value=X,await n.nextTick(),me()},U=n.computed(()=>o.type==="datetime"||o.type==="datetimerange"),re=n.computed(()=>U.value||B.value==="dates"),J=()=>{if(B.value==="dates")x(o.parsedValue);else{let X=o.parsedValue;if(!X){const ie=xe(g).locale(d.value),we=se();X=ie.year(we.year()).month(we.month()).date(we.date())}C.value=X,x(X)}},Y=()=>{const ie=xe().locale(d.value).toDate();(!p||!p(ie))&&T(ie)&&(C.value=xe().locale(d.value),x(C.value))},q=n.computed(()=>Rp(o.format)),te=n.computed(()=>{if(_.value)return _.value;if(!(!o.parsedValue&&!w.value))return(o.parsedValue||C.value).format(q.value)}),ue=n.ref(!1),ge=X=>({hour:X.hour(),minute:X.minute(),second:X.second(),year:X.year(),month:X.month(),date:X.date()}),Ee=(X,ie,we)=>{const{hour:fe,minute:$e,second:ce}=ge(X),ke=o.parsedValue?o.parsedValue.hour(fe).minute($e).second(ce):X;C.value=ke,x(C.value,!0),we||(ue.value=ie)},Te=X=>xe.isDayjs(X)&&X.isValid()&&(p?!p(X.toDate()):!0),ye=X=>B.value==="dates"?X.map(ie=>ie.format(o.format)):X.format(o.format),oe=X=>xe(X,o.format).locale(d.value),se=()=>{const X=xe(w.value).locale(d.value);if(!w.value){const ie=b.value;return xe().hour(ie.hour()).minute(ie.minute()).second(ie.second()).locale(d.value)}return X},me=async()=>{["week","month","year","date"].includes(B.value)&&($.value?.focus(),B.value==="week"&&le(de.down))},ee=X=>{const{code:ie}=X;[de.up,de.down,de.left,de.right,de.home,de.end,de.pageUp,de.pageDown].includes(ie)&&(le(ie),X.stopPropagation(),X.preventDefault()),[de.enter,de.space].includes(ie)&&N.value===null&&_.value===null&&(X.preventDefault(),x(C.value,!1))},le=X=>{const{up:ie,down:we,left:fe,right:$e,home:ce,end:ke,pageUp:Ae,pageDown:V}=de,Z={year:{[ie]:-4,[we]:4,[fe]:-1,[$e]:1,offset:(be,Ze)=>be.setFullYear(be.getFullYear()+Ze)},month:{[ie]:-4,[we]:4,[fe]:-1,[$e]:1,offset:(be,Ze)=>be.setMonth(be.getMonth()+Ze)},week:{[ie]:-1,[we]:1,[fe]:-1,[$e]:1,offset:(be,Ze)=>be.setDate(be.getDate()+Ze*7)},date:{[ie]:-7,[we]:7,[fe]:-1,[$e]:1,[ce]:be=>-be.getDay(),[ke]:be=>-be.getDay()+6,[Ae]:be=>-new Date(be.getFullYear(),be.getMonth(),0).getDate(),[V]:be=>new Date(be.getFullYear(),be.getMonth()+1,0).getDate(),offset:(be,Ze)=>be.setDate(be.getDate()+Ze)}},he=C.value.toDate();for(;Math.abs(C.value.diff(he,"year",!0))<1;){const be=Z[L.value];if(!be)return;if(be.offset(he,nt(be[X])?be[X](he):be[X]??0),p&&p(he))break;const Ze=xe(he).locale(d.value);C.value=Ze,t("pick",Ze,!0);break}},Ce=X=>{t("panel-change",C.value.toDate(),X,F.value)};return n.watch(()=>B.value,X=>{if(["month","year"].includes(X)){F.value=X;return}F.value="date"},{immediate:!0}),n.watch(()=>F.value,()=>{f?.updatePopper()}),n.watch(()=>w.value,X=>{X&&(C.value=se())},{immediate:!0}),n.watch(()=>o.parsedValue,X=>{if(X){if(B.value==="dates"||Array.isArray(X))return;C.value=X}else C.value=se()},{immediate:!0}),t("set-picker-option",["isValidValue",Te]),t("set-picker-option",["formatToString",ye]),t("set-picker-option",["parseUserInput",oe]),t("set-picker-option",["handleFocusPicker",me]),(X,ie)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(a).b(),n.unref(i).b(),{"has-sidebar":X.$slots.sidebar||n.unref(W),"has-time":n.unref(U)}])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("body-wrapper"))},[n.renderSlot(X.$slots,"sidebar",{class:n.normalizeClass(n.unref(a).e("sidebar"))}),n.unref(W)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).e("sidebar"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(h),(we,fe)=>(n.openBlock(),n.createElementBlock("button",{key:fe,type:"button",class:n.normalizeClass(n.unref(a).e("shortcut")),onClick:$e=>z(we)},n.toDisplayString(we.text),11,jre))),128))],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("body"))},[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass([n.unref(i).e("header")])},[n.createVNode(n.unref(to),{gutter:1,items:"center",class:n.normalizeClass([n.unref(i).e("year-header")])},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"","aria-label":n.unref(c)("b.datepicker.prevYear"),class:n.normalizeClass(n.unref(a).e("icon-btn")),icon:n.unref(co),onClick:ie[0]||(ie[0]=we=>I(!1))},null,8,["aria-label","class","icon"])]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass(n.unref(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ie[1]||(ie[1]=n.withKeys(we=>j("year"),["enter"])),onClick:ie[2]||(ie[2]=we=>j("year"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(M)),1)]),_:1},8,["class"])]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"","aria-label":n.unref(c)("b.datepicker.nextYear"),class:n.normalizeClass(n.unref(a).e("icon-btn")),icon:n.unref(Un),onClick:ie[3]||(ie[3]=we=>I(!0))},null,8,["aria-label","class","icon"])]),_:1})]),_:1},8,["class"]),F.value==="date"?(n.openBlock(),n.createBlock(n.unref(to),{key:0,gutter:1,items:"center",class:n.normalizeClass([n.unref(i).e("month-header")])},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"","aria-label":n.unref(c)("b.datepicker.prevMonth"),icon:n.unref(co),onClick:ie[4]||(ie[4]=we=>O(!1))},null,8,["aria-label","icon"])]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"","aria-live":"polite",tabindex:"0",class:n.normalizeClass([n.unref(i).e("header-label")]),onKeydown:ie[5]||(ie[5]=n.withKeys(we=>j("month"),["enter"])),onClick:ie[6]||(ie[6]=we=>j("month"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)(`b.datepicker.month${n.unref(k)+1}`)),1)]),_:1},8,["class"])]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"","aria-label":n.unref(c)("b.datepicker.nextMonth"),class:n.normalizeClass(n.unref(a).e("icon-btn")),icon:n.unref(Un),onClick:ie[7]||(ie[7]=we=>O(!0))},null,8,["aria-label","class","icon"])]),_:1})]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2),[[n.vShow,F.value!=="time"]]),n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("content")),onKeydown:ee},[F.value==="date"?(n.openBlock(),n.createBlock(c1,{key:0,ref_key:"currentViewRef",ref:$,"selection-mode":n.unref(B),date:C.value,"parsed-value":X.parsedValue,"disabled-date":n.unref(p),"cell-class-name":n.unref(m),onPick:v},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):n.createCommentVNode("v-if",!0),F.value==="year"?(n.openBlock(),n.createBlock(Kre,{key:1,ref_key:"currentViewRef",ref:$,date:C.value,"disabled-date":n.unref(p),"parsed-value":X.parsedValue,onPick:H},null,8,["date","disabled-date","parsed-value"])):n.createCommentVNode("v-if",!0),F.value==="month"?(n.openBlock(),n.createBlock(d1,{key:2,ref_key:"currentViewRef",ref:$,date:C.value,"parsed-value":X.parsedValue,"disabled-date":n.unref(p),onPick:R},null,8,["date","parsed-value","disabled-date"])):n.createCommentVNode("v-if",!0)],34)],2),n.unref(U)?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(i).e("time-panel"))},[n.createVNode(n.unref(el),{visible:"","hide-actions":"",format:n.unref(q),"time-arrow-control":n.unref(y),"parsed-value":C.value,onPick:Ee},null,8,["format","time-arrow-control","parsed-value"])],2)):n.createCommentVNode("v-if",!0)],2),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("footer"))},[n.createVNode(n.unref(to),{gutter:2,justify:"end"},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(ve),{small:"",onClick:Y},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)("b.datepicker.now")),1)]),_:1},512),[[n.vShow,n.unref(B)!=="dates"]])]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{small:"",primary:"",onClick:J},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)("b.datepicker.confirm")),1)]),_:1})]),_:1})]),_:1})],2),[[n.vShow,n.unref(re)&&F.value==="date"]])],2))}}),[["__file","panel-date-pick.vue"]]);const Gre=ne({...qw,...Zw}),Yre=e=>{const{emit:t}=n.getCurrentInstance(),o=n.useAttrs(),r=n.useSlots();return i=>{const s=nt(i.value)?i.value():i.value;if(s){t("pick",[xe(s[0]).locale(e.value),xe(s[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:o,slots:r,emit:t})}},Qw=(e,{defaultValue:t,leftDate:o,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:s}=n.getCurrentInstance(),{pickerNs:l}=n.inject(qc),c=G("date-range-picker"),{t:d,lang:u}=He(),f=Yre(u),h=n.ref(),p=n.ref(),m=n.ref({endDate:null,selecting:!1}),g=C=>{m.value=C},y=(C=!1)=>{const b=n.unref(h),k=n.unref(p);l1([b,k])&&s("pick",[b,k],C)},w=C=>{m.value.selecting=C,C||(m.value.endDate=null)},$=()=>{const[C,b]=Jw(n.unref(t),{lang:n.unref(u),unit:a,unlinkPanels:e.unlinkPanels});h.value=void 0,p.value=void 0,o.value=C,r.value=b};return n.watch(t,C=>{C&&$()},{immediate:!0}),n.watch(()=>e.parsedValue,C=>{if(Me(C)&&C.length===2){const[b,k]=C;h.value=b,o.value=b,p.value=k,i(n.unref(h),n.unref(p))}else $()},{immediate:!0}),{minDate:h,maxDate:p,rangeState:m,lang:u,ppNs:l,drpNs:c,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:f,onSelect:w,t:d}},qre=["onClick"],mu="month";var Zre=Q(n.defineComponent({__name:"panel-date-range",props:Gre,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const o=e,r=n.inject("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:s,defaultTime:l,arrowControl:c,clearable:d}=r.props,u=n.toRef(r.props,"shortcuts"),f=n.toRef(r.props,"defaultValue"),{lang:h}=He(),p=n.ref(xe().locale(h.value)),m=n.ref(xe().locale(h.value).add(1,mu)),{minDate:g,maxDate:y,rangeState:w,ppNs:$,drpNs:C,handleChangeRange:b,handleRangeConfirm:k,handleShortcutClick:S,onSelect:E,t:N}=Qw(o,{defaultValue:f,leftDate:p,rightDate:m,unit:mu,onParsedValueChanged:we}),_=n.ref({min:null,max:null}),T=n.ref({min:null,max:null}),P=n.computed(()=>p.value.year()),x=n.computed(()=>N(`b.datepicker.month${p.value.month()+1}`)),v=n.computed(()=>m.value.year()),O=n.computed(()=>N(`b.datepicker.month${m.value.month()+1}`)),I=n.computed(()=>p.value.year()),F=n.computed(()=>p.value.month()),M=n.computed(()=>m.value.year()),z=n.computed(()=>m.value.month()),B=n.computed(()=>!!u.value.length);n.computed(()=>_.value.min!==null?_.value.min:g.value?g.value.format(W.value):""),n.computed(()=>_.value.max!==null?_.value.max:y.value||g.value?(y.value||g.value).format(W.value):""),n.computed(()=>T.value.min!==null?T.value.min:g.value?g.value.format(L.value):""),n.computed(()=>T.value.max!==null?T.value.max:y.value||g.value?(y.value||g.value).format(L.value):"");const L=n.computed(()=>Rp(s)),W=n.computed(()=>r8(s)),R=()=>{p.value=p.value.subtract(1,"year"),o.unlinkPanels||(m.value=p.value.add(1,"month")),te("year")},H=()=>{p.value=p.value.subtract(1,"month"),o.unlinkPanels||(m.value=p.value.add(1,"month")),te("month")},j=()=>{o.unlinkPanels?m.value=m.value.add(1,"year"):(p.value=p.value.add(1,"year"),m.value=p.value.add(1,"month")),te("year")},U=()=>{o.unlinkPanels?m.value=m.value.add(1,"month"):(p.value=p.value.add(1,"month"),m.value=p.value.add(1,"month")),te("month")},re=()=>{p.value=p.value.add(1,"year"),te("year")},J=()=>{p.value=p.value.add(1,"month"),te("month")},Y=()=>{m.value=m.value.subtract(1,"year"),te("year")},q=()=>{m.value=m.value.subtract(1,"month"),te("month")},te=fe=>{t("panel-change",[p.value.toDate(),m.value.toDate()],fe)},ue=n.computed(()=>{const fe=(F.value+1)%12,$e=F.value+1>=12?1:0;return o.unlinkPanels&&new Date(I.value+$e,fe)<new Date(M.value,z.value)}),ge=n.computed(()=>o.unlinkPanels&&M.value*12+z.value-(I.value*12+F.value+1)>=12),Ee=n.computed(()=>!(g.value&&y.value&&!w.value.selecting&&l1([g.value,y.value]))),Te=n.computed(()=>o.type==="datetime"||o.type==="datetimerange"),ye=(fe,$e)=>{if(!!fe)return l?xe(l[$e]||l).locale(h.value).year(fe.year()).month(fe.month()).date(fe.date()):fe},oe=(fe,$e=!0)=>{const ce=fe.minDate,ke=fe.maxDate,Ae=ye(ce,0),V=ye(ke,1);y.value===V&&g.value===Ae||(t("calendar-change",[ce.toDate(),ke&&ke.toDate()]),y.value=V,g.value=Ae,!(!$e||Te.value)&&k())},se=n.ref(!1),me=n.ref(!1),ee=(fe,$e,ce)=>{T.value.min||(fe&&(p.value=fe,g.value=(g.value||p.value).hour(fe.hour()).minute(fe.minute()).second(fe.second())),ce||(se.value=$e),(!y.value||y.value.isBefore(g.value))&&(y.value=g.value,m.value=fe))},le=(fe,$e,ce)=>{T.value.max||(fe&&(m.value=fe,y.value=(y.value||m.value).hour(fe.hour()).minute(fe.minute()).second(fe.second())),ce||(me.value=$e),y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},Ce=()=>{p.value=Jw(n.unref(f),{lang:n.unref(h),unit:"month",unlinkPanels:o.unlinkPanels})[0],m.value=p.value.add(1,"month"),t("pick",null)},X=fe=>Me(fe)?fe.map($e=>$e.format(s)):fe.format(s),ie=fe=>Me(fe)?fe.map($e=>xe($e,s).locale(h.value)):xe(fe,s).locale(h.value);function we(fe,$e){if(o.unlinkPanels&&$e){const ce=fe?.year()||0,ke=fe?.month()||0,Ae=$e.year(),V=$e.month();m.value=ce===Ae&&ke===V?$e.add(1,mu):$e}else m.value=p.value.add(1,mu),$e&&(m.value=m.value.hour($e.hour()).minute($e.minute()).second($e.second()))}return t("set-picker-option",["isValidValue",l1]),t("set-picker-option",["parseUserInput",ie]),t("set-picker-option",["formatToString",X]),t("set-picker-option",["handleClear",Ce]),(fe,$e)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref($).b(),n.unref(C).b(),{"has-sidebar":fe.$slots.sidebar||n.unref(B),"has-time":n.unref(Te)}])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref($).e("body-wrapper"))},[n.renderSlot(fe.$slots,"sidebar",{class:n.normalizeClass(n.unref($).e("sidebar"))}),n.unref(B)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref($).e("sidebar"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),(ce,ke)=>(n.openBlock(),n.createElementBlock("button",{key:ke,type:"button",class:n.normalizeClass(n.unref($).e("shortcut")),onClick:Ae=>n.unref(S)(ce)},n.toDisplayString(ce.text),11,qre))),128))],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref($).e("body"))},[n.createElementVNode("div",{class:n.normalizeClass([[n.unref($).e("content"),n.unref(C).e("content")],"is-left"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("header"))},[n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(C).e("year-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref($).e("icon-btn"),"arrow-left"]),icon:n.unref(co),onClick:R},null,8,["class","icon"])]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(C).e("header-label"))},n.toDisplayString(n.unref(P)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[fe.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(ge),class:n.normalizeClass([[n.unref($).e("icon-btn"),{"is-disabled":!n.unref(ge)}],"arrow-right"]),icon:n.unref(Un),onClick:re},null,8,["disabled","class","icon"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1})]),_:1},8,["class"]),n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(C).e("month-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref($).e("icon-btn"),"arrow-left"]),icon:n.unref(co),onClick:H},null,8,["class","icon"])]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(C).e("header-label"))},n.toDisplayString(n.unref(x)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[fe.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(ue),class:n.normalizeClass([[n.unref($).e("icon-btn"),{"is-disabled":!n.unref(ue)}],"arrow-right"]),icon:n.unref(Un),onClick:J},null,8,["disabled","class","icon"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1})]),_:1},8,["class"])],2),n.createVNode(c1,{"selection-mode":"range",date:p.value,"min-date":n.unref(g),"max-date":n.unref(y),"range-state":n.unref(w),"disabled-date":n.unref(a),"cell-class-name":n.unref(i),onChangerange:n.unref(b),onPick:oe,onSelect:n.unref(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),n.createElementVNode("div",{class:n.normalizeClass([[n.unref($).e("content"),n.unref(C).e("content")],"is-right"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("header"))},[n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(C).e("year-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[fe.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(ge),class:n.normalizeClass([[n.unref($).e("icon-btn"),{"is-disabled":!n.unref(ge)}],"arrow-left"]),icon:n.unref(co),onClick:Y},null,8,["disabled","class","icon"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(C).e("header-label"))},n.toDisplayString(n.unref(v)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref($).e("icon-btn"),"arrow-right"]),icon:n.unref(Un),onClick:j},null,8,["class","icon"])]),_:1})]),_:1},8,["class"]),n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(C).e("month-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[fe.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(ue),class:n.normalizeClass([[n.unref($).e("icon-btn"),{"is-disabled":!n.unref(ue)}],"arrow-left"]),icon:n.unref(co),onClick:q},null,8,["disabled","class","icon"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(C).e("header-label"))},n.toDisplayString(n.unref(O)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref($).e("icon-btn"),"arrow-right"]),icon:n.unref(Un),onClick:U},null,8,["class","icon"])]),_:1})]),_:1},8,["class"])],2),n.createVNode(c1,{"selection-mode":"range",date:m.value,"min-date":n.unref(g),"max-date":n.unref(y),"range-state":n.unref(w),"disabled-date":n.unref(a),"cell-class-name":n.unref(i),onChangerange:n.unref(b),onPick:oe,onSelect:n.unref(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2),n.unref(Te)?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(C).e("time-panel"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("time-panel-header"))},n.toDisplayString(n.unref(N)("b.datepicker.startTime")),3),n.unref(Ee)?(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:160,height:192},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("time-panel-message"))},n.toDisplayString(n.unref(N)("b.datepicker.timePanelEmptyMessage")),3)]),_:1})):(n.openBlock(),n.createBlock(n.unref(el),{key:0,visible:"","hide-actions":"",format:n.unref(L),"datetime-role":"start","time-arrow-control":n.unref(c),"parsed-value":p.value,onPick:ee},null,8,["format","time-arrow-control","parsed-value"])),n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("time-panel-header"))},n.toDisplayString(n.unref(N)("b.datepicker.endTime")),3),n.unref(Ee)?(n.openBlock(),n.createBlock(n.unref(Ko),{key:3,width:160,height:192},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(C).e("time-panel-message"))},n.toDisplayString(n.unref(N)("b.datepicker.timePanelEmptyMessage")),3)]),_:1})):(n.openBlock(),n.createBlock(n.unref(el),{key:2,visible:"","hide-actions":"",format:n.unref(L),"datetime-role":"end","time-arrow-control":n.unref(c),"parsed-value":m.value,onPick:le},null,8,["format","time-arrow-control","parsed-value"]))],2)):n.createCommentVNode("v-if",!0)],2),n.unref(Te)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref($).e("footer"),n.unref(C).e("footer")])},[n.createVNode(n.unref(to),{gutter:2,justify:"end"},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.unref(d)?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,small:"",class:n.normalizeClass(n.unref($).e("link-btn")),onClick:Ce},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(N)("b.datepicker.clear")),1)]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{primary:"",small:"",class:n.normalizeClass(n.unref($).e("link-btn")),disabled:n.unref(Ee),onClick:$e[0]||($e[0]=ce=>n.unref(k)(!1))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(N)("b.datepicker.confirm")),1)]),_:1},8,["class","disabled"])]),_:1})]),_:1})],2)):n.createCommentVNode("v-if",!0)],2))}}),[["__file","panel-date-range.vue"]]);const Xre=ne({...Zw}),Jre=["pick","set-picker-option"],Qre=({unlinkPanels:e,leftDate:t,rightDate:o})=>{const{t:r}=He(),a=()=>{t.value=t.value.subtract(1,"year"),e||(o.value=o.value.subtract(1,"year"))},i=()=>{e||(t.value=t.value.add(1,"year")),o.value=o.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},l=()=>{o.value=o.value.subtract(1,"year")},c=n.computed(()=>`${t.value.year()} ${r("b.datepicker.year")}`),d=n.computed(()=>`${o.value.year()} ${r("b.datepicker.year")}`),u=n.computed(()=>t.value.year()),f=n.computed(()=>o.value.year()===t.value.year()?t.value.year()+1:o.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:s,rightPrevYear:l,leftLabel:c,rightLabel:d,leftYear:u,rightYear:f}},eae=["onClick"],gu="year",tae=n.defineComponent({name:"DatePickerMonthRange"}),nae=n.defineComponent({...tae,props:Xre,emits:Jre,setup(e,{emit:t}){const o=e,{lang:r}=He(),a=n.inject("EP_PICKER_BASE"),{shortcuts:i,disabledDate:s,format:l}=a.props,c=n.toRef(a.props,"defaultValue"),d=n.ref(xe().locale(r.value)),u=n.ref(xe().locale(r.value).add(1,gu)),{minDate:f,maxDate:h,rangeState:p,ppNs:m,drpNs:g,handleChangeRange:y,handleRangeConfirm:w,handleShortcutClick:$,onSelect:C}=Qw(o,{defaultValue:c,leftDate:d,rightDate:u,unit:gu,onParsedValueChanged:F}),b=n.computed(()=>!!i.length),{leftPrevYear:k,rightNextYear:S,leftNextYear:E,rightPrevYear:N,leftLabel:_,rightLabel:T,leftYear:P,rightYear:x}=Qre({unlinkPanels:n.toRef(o,"unlinkPanels"),leftDate:d,rightDate:u}),v=n.computed(()=>o.unlinkPanels&&x.value>P.value+1),O=(M,z=!0)=>{const B=M.minDate,L=M.maxDate;h.value===L&&f.value===B||(h.value=L,f.value=B,z&&w())},I=M=>M.map(z=>z.format(l));function F(M,z){if(o.unlinkPanels&&z){const B=M?.year()||0,L=z.year();u.value=B===L?z.add(1,gu):z}else u.value=d.value.add(1,gu)}return t("set-picker-option",["formatToString",I]),(M,z)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(m).b(),n.unref(g).b(),{"has-sidebar":Boolean(M.$slots.sidebar)||n.unref(b)}])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(m).e("body-wrapper"))},[n.renderSlot(M.$slots,"sidebar",{class:n.normalizeClass(n.unref(m).e("sidebar"))}),n.unref(b)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(m).e("sidebar"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),(B,L)=>(n.openBlock(),n.createElementBlock("button",{key:L,type:"button",class:n.normalizeClass(n.unref(m).e("shortcut")),onClick:W=>n.unref($)(B)},n.toDisplayString(B.text),11,eae))),128))],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(m).e("body"))},[n.createElementVNode("div",{class:n.normalizeClass([[n.unref(m).e("content"),n.unref(g).e("content")],"is-left"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(g).e("header"))},[n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(g).e("year-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref(m).e("icon-btn"),"arrow-left"]),icon:n.unref(co),onClick:n.unref(k)},null,8,["class","icon","onClick"])]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(g).e("header-label"))},n.toDisplayString(n.unref(_)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[M.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(v),class:n.normalizeClass([[n.unref(m).e("icon-btn"),{[n.unref(m).is("disabled")]:!n.unref(v)}],"arrow-right"]),icon:n.unref(Un),onClick:n.unref(E)},null,8,["disabled","class","icon","onClick"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1})]),_:1},8,["class"])],2),n.createVNode(d1,{"selection-mode":"range",date:d.value,"min-date":n.unref(f),"max-date":n.unref(h),"range-state":n.unref(p),"disabled-date":n.unref(s),onChangerange:n.unref(y),onPick:O,onSelect:n.unref(C)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),n.createElementVNode("div",{class:n.normalizeClass([[n.unref(m).e("content"),n.unref(g).e("content")],"is-right"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(g).e("header"))},[n.createVNode(n.unref(to),{gutter:1,class:n.normalizeClass(n.unref(g).e("year-header"))},{default:n.withCtx(()=>[n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[M.unlinkPanels?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:"",small:"",disabled:!n.unref(v),class:n.normalizeClass([[n.unref(m).e("icon-btn"),{"is-disabled":!n.unref(v)}],"arrow-left"]),icon:n.unref(co),onClick:n.unref(N)},null,8,["disabled","class","icon","onClick"])):(n.openBlock(),n.createBlock(n.unref(Ko),{key:1,width:32}))]),_:1}),n.createVNode(n.unref(lt),null,{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(g).e("header-label"))},n.toDisplayString(n.unref(T)),3)]),_:1}),n.createVNode(n.unref(lt),{span:"auto"},{default:n.withCtx(()=>[n.createVNode(n.unref(ve),{ghost:"",small:"",class:n.normalizeClass([n.unref(m).e("icon-btn"),"arrow-right"]),icon:n.unref(Un),onClick:n.unref(S)},null,8,["class","icon","onClick"])]),_:1})]),_:1},8,["class"])],2),n.createVNode(d1,{"selection-mode":"range",date:u.value,"min-date":n.unref(f),"max-date":n.unref(h),"range-state":n.unref(p),"disabled-date":n.unref(s),onChangerange:n.unref(y),onPick:O,onSelect:n.unref(C)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var oae=Q(nae,[["__file","panel-month-range.vue"]]);const rae=function(e){switch(e){case"daterange":case"datetimerange":return Zre;case"monthrange":return oae;default:return Ure}};xe.extend(t8),xe.extend(hre),xe.extend(Ip),xe.extend(pre),xe.extend(mre),xe.extend(gre),xe.extend(yre),xe.extend(bre);var aae=n.defineComponent({name:"BDatePicker",install:null,props:{...yd,...Cre},emits:["update:modelValue"],setup(e,{expose:t,emit:o,slots:r}){const a=G("picker-panel");n.provide("BPopperOptions",n.reactive(n.toRef(e,"popperOptions"))),n.provide(qc,{slots:r,pickerNs:a});const i=n.ref();t({focus:(c=!0)=>{i.value?.focus(c)},handleOpen:()=>{i.value?.handleOpen()},handleClose:()=>{i.value?.handleClose()}});const l=c=>{o("update:modelValue",c)};return()=>{const c=e.format??(o8[e.type]||Sa),d=rae(e.type);return n.createVNode(Hp,n.mergeProps(e,{format:c,type:e.type,ref:i,"data-test-name":"date-picker","onUpdate:modelValue":l}),{default:u=>n.createVNode(d,u,null),"range-separator":r["range-separator"]})}}});const yu=aae;yu.install=e=>{e.component(yu.name,yu)};const e$=yu,u1="bDescriptions";var vl=n.defineComponent({name:"BDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:n.inject(u1,{})}},render(){const e=Xj(this.cell),{border:t,direction:o}=this.descriptions,r=o==="vertical",a=this.cell?.children?.label?.()||e.label,i=this.cell?.children?.default?.(),s=e.span,l=e.align?`is-${e.align}`:"",c=e.labelAlign?`is-${e.labelAlign}`:l,d=e.className,u=e.labelClassName,f={width:Ot(e.width),minWidth:Ot(e.minWidth)},h=G("descriptions");switch(this.type){case"label":return n.h(this.tag,{style:f,class:[h.e("cell"),h.e("label"),h.is("bordered-label",t),h.is("vertical-label",r),c,u],colSpan:r?s:1},a);case"content":return n.h(this.tag,{style:f,class:[h.e("cell"),h.e("content"),h.is("bordered-content",t),h.is("vertical-content",r),l,d],colSpan:r?s:s*2-1},i);default:return n.h("td",{style:f,class:[h.e("cell"),l],colSpan:s},[n.h("span",{class:[h.e("label"),u]},a),n.h("span",{class:[h.e("content"),d]},i)])}}});const iae=ne({row:{type:Array,default:()=>[]}}),sae={key:1},lae=n.defineComponent({name:"BDescriptionsRow"}),cae=n.defineComponent({...lae,props:iae,setup(e){const t=n.inject(u1,{});return(o,r)=>n.unref(t).direction==="vertical"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.row,(a,i)=>(n.openBlock(),n.createBlock(n.unref(vl),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.row,(a,i)=>(n.openBlock(),n.createBlock(n.unref(vl),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(n.openBlock(),n.createElementBlock("tr",sae,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.row,(a,i)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`tr3-${i}`},[n.unref(t).border?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(n.unref(vl),{cell:a,tag:"td",type:"label"},null,8,["cell"]),n.createVNode(n.unref(vl),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(n.openBlock(),n.createBlock(n.unref(vl),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var dae=Q(cae,[["__file","descriptions-row.vue"]]);const t$=ne({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:It,title:{type:String,default:""},extra:{type:String,default:""}}),uae=n.defineComponent({name:"BDescriptions"}),fae=n.defineComponent({...uae,props:t$,setup(e){const t=e,o=G("descriptions"),r=At(),a=n.useSlots();n.provide(u1,t);const i=n.computed(()=>[o.b(),o.m(r.value)]),s=(c,d,u,f=!1)=>(c.props||(c.props={}),d>u&&(c.props.span=u),f&&(c.props.span=d),c),l=()=>{const c=pi(a.default?.()).filter(p=>p?.type?.name==="BDescriptionsItem"),d=[];let u=[],f=t.column,h=0;return c.forEach((p,m)=>{const g=p.props?.span||1;if(m<c.length-1&&(h+=g>f?f:g),m===c.length-1){const y=t.column-h%t.column;u.push(s(p,y,f,!0)),d.push(u);return}g<f?(f-=g,u.push(p)):(u.push(s(p,g,f)),d.push(u),f=t.column,u=[])}),d};return(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(i)),"data-test-name":"description","data-test-variant":"","data-test-state":""},[c.title||c.extra||c.$slots.title||c.$slots.extra?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o).e("header"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(o).e("title"))},[n.renderSlot(c.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(c.title),1)])],2),n.createElementVNode("div",{class:n.normalizeClass(n.unref(o).e("extra"))},[n.renderSlot(c.$slots,"extra",{},()=>[n.createTextVNode(n.toDisplayString(c.extra),1)])],2)],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(o).e("body"))},[n.createElementVNode("table",{class:n.normalizeClass([n.unref(o).e("table"),n.unref(o).is("bordered",c.border)])},[n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l(),(u,f)=>(n.openBlock(),n.createBlock(dae,{key:f,row:u},null,8,["row"]))),128))])],2)],2)],2))}});var hae=Q(fae,[["__file","description.vue"]]),n$=n.defineComponent({name:"BDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const o$=Ne(hae,{DescriptionsItem:n$}),r$=Ge(n$),a$=ne({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:K([String,Array,Object])},zIndex:{type:K([String,Number])}}),i$={click:e=>e instanceof MouseEvent};var pae=n.defineComponent({name:"BOverlay",props:a$,emits:i$,setup(e,{slots:t,emit:o}){const r=G("overlay"),a=c=>{o("click",c)},{onClick:i,onMousedown:s,onMouseup:l}=Qc(e.customMaskEvent?void 0:a);return()=>e.mask?n.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},dataTestName:"overlay",onClick:i,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],Gn.STYLE|Gn.CLASS|Gn.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"},dataTestName:"overlay"},[n.renderSlot(t,"default")])}});const bu=pae,s$=ne({center:{type:Boolean,default:!1},closeIcon:{type:Je,default:""},modalClass:{type:String,default:""},containerClass:{type:String,default:""},bodyClass:{type:String,default:""},headerClass:{type:String,default:""},footerClass:{type:String,default:""},draggable:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},scrollableHeight:{type:[String,Number],default:""},scrollableMaxHeight:{type:[String,Number],default:""},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),mae={close:()=>!0,scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Se)},gae=["id"],yae=n.defineComponent({name:"BDialogContent"}),bae=n.defineComponent({...yae,props:s$,emits:mae,setup(e,{emit:t}){const o=e,{t:r}=He(),{Close:a}=SC,{dialogRef:i,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(Uh),{focusTrapRef:u}=n.inject(Tp),f=Wc(u,i),h=n.computed(()=>o.draggable);return op(i,s,h),(p,m)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(f),class:n.normalizeClass([n.unref(c).b(),n.unref(c).is("fullscreen",p.fullscreen),n.unref(c).is("draggable",n.unref(h)),{[n.unref(c).m("center")]:p.center},p.containerClass]),style:n.normalizeStyle(n.unref(d)),tabindex:"-1",onClick:m[2]||(m[2]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),p.headerClass])},[n.renderSlot(p.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading",class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(p.title),3)]),p.showClose?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,small:"",ghost:"","aria-label":n.unref(r)("b.dialog.close"),icon:p.closeIcon||n.unref(a),onClick:m[0]||(m[0]=g=>p.$emit("close"))},null,8,["aria-label","icon"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass([n.unref(c).e("body"),p.bodyClass])},[p.scrollable?(n.openBlock(),n.createBlock(n.unref(bo),{key:0,height:p.scrollableHeight,"max-height":p.scrollableMaxHeight,onScroll:m[1]||(m[1]=g=>t("scroll",g))},{default:n.withCtx(()=>[n.renderSlot(p.$slots,"default")]),_:3},8,["height","max-height"])):n.renderSlot(p.$slots,"default",{key:1})],10,gae),p.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass([n.unref(c).e("footer"),p.footerClass])},[n.renderSlot(p.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var Cae=Q(bae,[["__file","dialog-content.vue"]]);const f1=ne({...s$,appendToBody:{type:Boolean,default:!1},beforeClose:{type:K(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},size:It,xsmall:{type:Boolean,default:!1},small:{type:Boolean,default:!1},large:{type:Boolean,default:!1},xlarge:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}),h1={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Pe]:e=>Pt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0,scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Se)},p1=(e,t)=>{const r=n.getCurrentInstance().emit,{nextZIndex:a}=Do();let i="";const s=po(),l=po(),c=n.ref(!1),d=n.ref(!1),u=n.ref(!1),f=n.ref(e.zIndex||a());let h,p;const m=Tn("namespace",Hs),g=n.computed(()=>{const x={},v=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(x[`${v}-margin-top`]=e.top),e.width?x[`${v}-width`]=Ot(e.width):x[`${v}-width`]=(e.xsmall||e.size==="xsmall")&&"400px"||(e.small||e.size==="small")&&"560px"||(e.large||e.size==="large")&&"880px"||(e.xlarge||e.size==="xlarge")&&"1040px"||"720px"),x});function y(){r("opened")}function w(){r("closed"),r(Pe,!1),e.destroyOnClose&&(u.value=!1)}function $(){r("close")}function C(){p?.(),h?.(),e.openDelay&&e.openDelay>0?{stop:h}=ga(()=>E(),e.openDelay):E()}function b(){h?.(),p?.(),e.closeDelay&&e.closeDelay>0?{stop:p}=ga(()=>N(),e.closeDelay):N()}function k(){function x(v){v||(d.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(x):b()}function S(){e.closeOnClickModal&&k()}function E(){!Re||(c.value=!0)}function N(){c.value=!1}function _(){r("openAutoFocus")}function T(){r("closeAutoFocus")}e.lockScroll&&ap(c);function P(){e.closeOnPressEscape&&k()}return n.watch(()=>e.modelValue,x=>{x?(d.value=!1,C(),u.value=!0,f.value=e.zIndex?f.value++:a(),n.nextTick(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):c.value&&b()}),n.watch(()=>e.fullscreen,x=>{!t.value||(x?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),n.onMounted(()=>{e.modelValue&&(c.value=!0,u.value=!0,C())}),{afterEnter:y,afterLeave:w,beforeLeave:$,handleClose:k,onModalClick:S,close:b,doClose:N,onOpenAutoFocus:_,onCloseAutoFocus:T,onCloseRequested:P,titleId:s,bodyId:l,closed:d,style:g,rendered:u,visible:c,zIndex:f}},wae=["aria-label","aria-labelledby","aria-describedby"],$ae=n.defineComponent({name:"BDialog"}),kae=n.defineComponent({...$ae,props:f1,emits:h1,setup(e,{expose:t,emit:o}){const r=e,a=Ms(),i=G("dialog"),s=n.ref(),l=n.ref(),c=n.ref(),{visible:d,titleId:u,bodyId:f,style:h,rendered:p,zIndex:m,afterEnter:g,afterLeave:y,beforeLeave:w,handleClose:$,onModalClick:C,onOpenAutoFocus:b,onCloseAutoFocus:k,onCloseRequested:S}=p1(r,s);n.provide(Uh,{dialogRef:s,headerRef:l,bodyId:f,ns:i,rendered:p,style:h});const E=Qc(C),N=n.computed(()=>r.draggable&&!r.fullscreen);return t({visible:d,dialogContentRef:c}),(_,T)=>{const P=n.resolveDirective("loading");return n.unref(a)?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"body",disabled:!_.appendToBody},[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(g),onAfterLeave:n.unref(y),onBeforeLeave:n.unref(w),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(bu),{"custom-mask-event":"",mask:_.modal,"z-index":n.unref(m),"overlay-class":_.modalClass},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":_.title||void 0,"aria-labelledby":_.title?void 0:n.unref(u),"aria-describedby":n.unref(f),class:n.normalizeClass([`${n.unref(i).namespace.value}-overlay-dialog`,n.unref(i).is("center",_.center),n.unref(i).is("fullscreen",_.fullscreen)]),"data-test-name":"dialog","data-test-variant":"","data-test-state":"",onClick:T[1]||(T[1]=(...x)=>n.unref(E).onClick&&n.unref(E).onClick(...x)),onMousedown:T[2]||(T[2]=(...x)=>n.unref(E).onMousedown&&n.unref(E).onMousedown(...x)),onMouseup:T[3]||(T[3]=(...x)=>n.unref(E).onMouseup&&n.unref(E).onMouseup(...x))},[n.createVNode(n.unref(ud),{loop:"",trapped:n.unref(d),"focus-start-el":"container",onFocusAfterTrapped:n.unref(b),onFocusAfterReleased:n.unref(k),onReleaseRequested:n.unref(S)},{default:n.withCtx(()=>[n.unref(p)?n.withDirectives((n.openBlock(),n.createBlock(Cae,{key:0,ref_key:"dialogContentRef",ref:c,"container-class":[_.containerClass,_.loading?"overflow-hidden":""].join(" "),"body-class":_.bodyClass,"header-class":_.headerClass,"footer-class":_.footerClass,center:_.center,"close-icon":_.closeIcon,draggable:n.unref(N),scrollable:_.scrollable,"scrollable-height":_.scrollableHeight,"scrollable-max-height":_.scrollableMaxHeight,fullscreen:_.fullscreen,"show-close":_.showClose,style:n.normalizeStyle(n.unref(h)),title:_.title,onClose:n.unref($),onScroll:T[0]||(T[0]=x=>o("scroll",x))},n.createSlots({header:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{close:n.unref($),titleId:n.unref(u),titleClass:n.unref(i).e("title")})]),default:n.withCtx(()=>[n.renderSlot(_.$slots,"default")]),_:2},[_.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(_.$slots,"footer")]),key:"0"}:void 0]),1032,["container-class","body-class","header-class","footer-class","center","close-icon","draggable","scrollable","scrollable-height","scrollable-max-height","fullscreen","show-close","style","title","onClose"])),[[P,_.loading]]):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,wae)]),_:3},8,["mask","z-index","overlay-class"]),[[n.vShow,n.unref(d)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])):n.createCommentVNode("v-if",!0)}}});var Sae=Q(kae,[["__file","dialog.vue"]]);const l$=Ne(Sae),c$=ne({contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:K(String),default:"solid"},noSpacing:Boolean,vertical:Boolean}),Eae=n.defineComponent({name:"BDivider"}),Bae=n.defineComponent({...Eae,props:c$,setup(e){const t=e,o=G("divider"),r=n.computed(()=>o.cssVar({"border-style":t.borderStyle}));return(a,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(o).b(),n.unref(o).m(a.vertical?"vertical":"horizontal"),n.unref(o).is("no-spacing",a.noSpacing)]),style:n.normalizeStyle(n.unref(r)),role:"separator","data-test-name":"divider"},[a.$slots.default&&!a.vertical?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(o).e("text"),n.unref(o).is(a.contentPosition)])},[n.renderSlot(a.$slots,"default")],2)):n.createCommentVNode("v-if",!0)],6))}});var Nae=Q(Bae,[["__file","divider.vue"]]);const m1=Ne(Nae),d$=ne({...f1,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},width:{type:[String,Number],default:"30%"},height:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),u$=h1,_ae=n.defineComponent({name:"BDrawer",components:{BOverlay:bu,BFocusTrap:ud,BButton:ve},props:d$,emits:u$,setup(e){const t=n.ref(),o=n.ref(),r=G("drawer"),{t:a}=He(),i=Ms(),s=n.computed(()=>e.direction==="rtl"||e.direction==="ltr"),l=n.computed(()=>Ot(s.value?e.width:e.height));return{...p1(e,t),drawerRef:t,focusStartRef:o,isHorizontal:s,drawerSize:l,ns:r,t:a,Close:Nn,isClient:i}}}),Tae=["aria-label","aria-labelledby","aria-describedby"],Aae=["id"],xae=["id"];function Mae(e,t,o,r,a,i){const s=n.resolveComponent("b-button"),l=n.resolveComponent("b-focus-trap"),c=n.resolveComponent("b-overlay");return e.isClient?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"body",disabled:!e.appendToBody},[n.createVNode(n.Transition,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:n.withCtx(()=>[n.createVNode(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:n.normalizeClass([e.ns.b(),e.direction,e.visible&&"open",e.containerClass]),style:n.normalizeStyle(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog","data-test-name":"drawer","data-test-variant":"","data-test-state":"",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("span",{ref:"focusStartRef",class:n.normalizeClass(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(n.openBlock(),n.createElementBlock("header",{key:0,class:n.normalizeClass(e.ns.e("header"))},[n.renderSlot(e.$slots,"header",{close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[n.createElementVNode("h4",{id:e.titleId,role:"heading",class:n.normalizeClass(e.ns.e("title"))},n.toDisplayString(e.title),11,Aae)]),e.showClose?(n.openBlock(),n.createBlock(s,{key:0,small:"",ghost:"","aria-label":e.t("b.drawer.close"),icon:e.Close,onClick:e.handleClose},null,8,["aria-label","icon","onClick"])):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),e.rendered?(n.openBlock(),n.createElementBlock("div",{key:1,id:e.bodyId,class:n.normalizeClass(e.ns.e("body"))},[n.renderSlot(e.$slots,"default")],10,xae)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.ns.e("footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],14,Tae)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])):n.createCommentVNode("v-if",!0)}var Pae=Q(_ae,[["render",Mae],["__file","drawer.vue"]]);const f$=Ne(Pae),vae=n.defineComponent({inheritAttrs:!1});function Oae(e,t,o,r,a,i){return n.renderSlot(e.$slots,"default")}var Iae=Q(vae,[["render",Oae],["__file","collection.vue"]]);const Dae=n.defineComponent({name:"BCollectionItem",inheritAttrs:!1});function Rae(e,t,o,r,a,i){return n.renderSlot(e.$slots,"default")}var Lae=Q(Dae,[["render",Rae],["__file","collection-item.vue"]]);const h$="data-b-collection-item",p$=e=>{const t=`B${e}Collection`,o=`${t}Item`,r=Symbol(t),a=Symbol(o),i={...Iae,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const u=n.unref(l);if(!u)return[];const f=Array.from(u.querySelectorAll(`[${h$}]`));return[...c.values()].sort((p,m)=>f.indexOf(p.ref)-f.indexOf(m.ref))};n.provide(r,{itemMap:c,getItems:d,collectionRef:l})}},s={...Lae,name:o,setup(l,{attrs:c}){const d=n.ref(null),u=n.inject(r,void 0);n.provide(a,{collectionItemRef:d}),n.onMounted(()=>{const f=n.unref(d);f&&u.itemMap.set(f,{ref:f,...c})}),n.onBeforeUnmount(()=>{const f=n.unref(d);u.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,BCollection:i,BCollectionItem:s}},Vae=ne({style:{type:K([String,Array,Object])},currentTabId:{type:K(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:K(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{BCollection:Fae,BCollectionItem:zae,COLLECTION_INJECTION_KEY:g1,COLLECTION_ITEM_INJECTION_KEY:Hae}=p$("RovingFocusGroup"),y1=Symbol("bRovingFocusGroup"),m$=Symbol("bRovingFocusGroupItem"),Wae={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Kae=(e,t)=>{if(t!=="rtl")return e;switch(e){case de.right:return de.left;case de.left:return de.right;default:return e}},jae=(e,t,o)=>{const r=Kae(e.key,o);if(!(t==="vertical"&&[de.left,de.right].includes(r))&&!(t==="horizontal"&&[de.up,de.down].includes(r)))return Wae[r]},Uae=(e,t)=>e.map((o,r)=>e[(r+t)%e.length]),b1=e=>{const{activeElement:t}=document;for(const o of e)if(o===t||(o.focus(),t!==document.activeElement))return},g$="currentTabIdChange",y$="rovingFocusGroup.entryFocus",Gae={bubbles:!1,cancelable:!0},Yae=n.defineComponent({name:"BRovingFocusGroupImpl",inheritAttrs:!1,props:Vae,emits:[g$,"entryFocus"],setup(e,{emit:t}){const o=n.ref((e.currentTabId||e.defaultCurrentTabId)??null),r=n.ref(!1),a=n.ref(!1),i=n.ref(null),{getItems:s}=n.inject(g1,void 0),l=n.computed(()=>[{outline:"none"},e.style]),c=m=>{t(g$,m)},d=()=>{r.value=!0},u=pt(m=>{e.onMousedown?.(m)},()=>{a.value=!0}),f=pt(m=>{e.onFocus?.(m)},m=>{const g=!n.unref(a),{target:y,currentTarget:w}=m;if(y===w&&g&&!n.unref(r)){const $=new Event(y$,Gae);if(w?.dispatchEvent($),!$.defaultPrevented){const C=s().filter(N=>N.focusable),b=C.find(N=>N.active),k=C.find(N=>N.id===n.unref(o)),E=[b,k,...C].filter(Boolean).map(N=>N.ref);b1(E)}}a.value=!1}),h=pt(m=>{e.onBlur?.(m)},()=>{r.value=!1}),p=(...m)=>{t("entryFocus",...m)};n.provide(y1,{currentTabbedId:n.readonly(o),loop:n.toRef(e,"loop"),tabIndex:n.computed(()=>n.unref(r)?-1:0),rovingFocusGroupRef:i,rovingFocusGroupRootStyle:l,orientation:n.toRef(e,"orientation"),dir:n.toRef(e,"dir"),onItemFocus:c,onItemShiftTab:d,onBlur:h,onFocus:f,onMousedown:u}),n.watch(()=>e.currentTabId,m=>{o.value=m??null}),Xe(i,y$,p)}});function qae(e,t,o,r,a,i){return n.renderSlot(e.$slots,"default")}var Zae=Q(Yae,[["render",qae],["__file","roving-focus-group-impl.vue"]]);const Xae=n.defineComponent({name:"BRovingFocusGroup",components:{BFocusGroupCollection:Fae,BRovingFocusGroupImpl:Zae}});function Jae(e,t,o,r,a,i){const s=n.resolveComponent("b-roving-focus-group-impl"),l=n.resolveComponent("b-focus-group-collection");return n.openBlock(),n.createBlock(l,null,{default:n.withCtx(()=>[n.createVNode(s,n.normalizeProps(n.guardReactiveProps(e.$attrs)),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)]),_:3})}var Qae=Q(Xae,[["render",Jae],["__file","roving-focus-group.vue"]]);const eie=n.defineComponent({components:{BRovingFocusCollectionItem:zae},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:o,loop:r,onItemFocus:a,onItemShiftTab:i}=n.inject(y1,void 0),{getItems:s}=n.inject(g1,void 0),l=po(),c=n.ref(null),d=pt(p=>{t("mousedown",p)},p=>{e.focusable?a(n.unref(l)):p.preventDefault()}),u=pt(p=>{t("focus",p)},()=>{a(n.unref(l))}),f=pt(p=>{t("keydown",p)},p=>{const{key:m,shiftKey:g,target:y,currentTarget:w}=p;if(m===de.tab&&g){i();return}if(y!==w)return;const $=jae(p);if($){p.preventDefault();let b=s().filter(k=>k.focusable).map(k=>k.ref);switch($){case"last":{b.reverse();break}case"prev":case"next":{$==="prev"&&b.reverse();const k=b.indexOf(w);b=r.value?Uae(b,k+1):b.slice(k+1);break}}n.nextTick(()=>{b1(b)})}}),h=n.computed(()=>o.value===n.unref(l));return n.provide(m$,{rovingFocusGroupItemRef:c,tabIndex:n.computed(()=>n.unref(h)?0:-1),handleMousedown:d,handleFocus:u,handleKeydown:f}),{id:l,handleKeydown:f,handleFocus:u,handleMousedown:d}}});function tie(e,t,o,r,a,i){const s=n.resolveComponent("b-roving-focus-collection-item");return n.openBlock(),n.createBlock(s,{id:e.id,focusable:e.focusable,active:e.active},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var nie=Q(eie,[["render",tie],["__file","roving-focus-item.vue"]]);const Ol=ne({trigger:Si.trigger,effect:{...Ft.effect,default:"light"},type:{type:K(String)},placement:{type:K(String),default:"bottom"},popperOptions:{type:K(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:K([Number,String]),default:0},maxHeight:{type:K([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:K(Object)},rounded:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},semiDanger:{type:Boolean,default:!1}}),C1=ne({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Je}}),b$=ne({onKeydown:{type:K(Function)}}),C$=[de.down,de.pageDown,de.home],w1=[de.up,de.pageUp,de.end],w$=[...C$,...w1],{BCollection:$$,BCollectionItem:k$,COLLECTION_INJECTION_KEY:S$,COLLECTION_ITEM_INJECTION_KEY:E$}=p$("Dropdown"),Il=Symbol("BDropdown"),{ButtonGroup:oie}=ve,rie=n.defineComponent({name:"BDropdown",components:{BButton:ve,BDivider:m1,BButtonGroup:oie,BScrollbar:bo,BDropdownCollection:$$,BTooltip:Xt,BRovingFocusGroup:Qae,BOnlyChild:Y3},props:Ol,emits:["visible-change","click","command"],setup(e,{emit:t}){const o=n.getCurrentInstance(),r=G("dropdown"),{t:a}=He(),i=n.ref(),s=n.ref(),l=n.ref(null),c=n.ref(null),d=n.ref(null),u=n.ref(null),f=n.ref(!1),h=[de.enter,de.space,de.down],p=n.computed(()=>({maxHeight:Ot(e.maxHeight)})),m=n.computed(()=>[r.m(b.value)]),g=po().value,y=n.computed(()=>e.id||g);function w(){$()}function $(){l.value?.onClose()}function C(){l.value?.onOpen()}const b=At();function k(...I){t("command",...I)}function S(){}function E(){n.unref(c)?.focus(),u.value=null}function N(I){u.value=I}function _(I){f.value||(I.preventDefault(),I.stopImmediatePropagation())}function T(){t("visible-change",!0)}function P(I){I?.type==="keydown"&&c.value.focus()}function x(){t("visible-change",!1)}return n.provide(Il,{contentRef:c,role:n.computed(()=>e.role),triggerId:y,isUsingKeyboard:f,onItemEnter:S,onItemLeave:E}),n.provide("BDropdown",{instance:o,dropdownSize:b,handleClick:w,commandHandler:k,trigger:n.toRef(e,"trigger"),hideOnClick:n.toRef(e,"hideOnClick")}),{t:a,ns:r,scrollbar:d,wrapStyle:p,dropdownTriggerKls:m,dropdownSize:b,triggerId:y,triggerKeys:h,currentTabId:u,handleCurrentTabIdChange:N,handlerMainButtonClick:I=>{t("click",I)},handleEntryFocus:_,handleClose:$,handleOpen:C,handleBeforeShowTooltip:T,handleShowTooltip:P,handleBeforeHideTooltip:x,onFocusAfterTrapped:I=>{I.preventDefault(),c.value?.focus?.({preventScroll:!0})},popperRef:l,contentRef:c,triggeringElementRef:i,referenceElementRef:s,ActionDown:di}}});function aie(e,t,o,r,a,i){const s=n.resolveComponent("b-dropdown-collection"),l=n.resolveComponent("b-roving-focus-group"),c=n.resolveComponent("b-scrollbar"),d=n.resolveComponent("b-only-child"),u=n.resolveComponent("b-tooltip"),f=n.resolveComponent("b-button"),h=n.resolveComponent("b-button-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b(),e.ns.m(e.dropdownSize),e.ns.is("disabled",e.disabled)]),"data-test-name":"dropdown","data-test-variant":"","data-test-state":""},[n.createVNode(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":e.referenceElementRef?.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},n.createSlots({content:n.withCtx(()=>[n.createVNode(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:n.withCtx(()=>[n.createVNode(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:n.withCtx(()=>[n.createVNode(d,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(n.openBlock(),n.createBlock(h,{key:0,compact:"",size:e.dropdownSize||"default"},{default:n.withCtx(()=>[n.createVNode(f,n.mergeProps({ref:"referenceElementRef"},e.buttonProps,{type:e.type,primary:e.primary,secondary:e.secondary,ghost:e.ghost,danger:e.danger,"semi-danger":e.semiDanger,rounded:e.rounded,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16,["type","primary","secondary","ghost","danger","semi-danger","rounded","disabled","tabindex","onClick"]),n.createVNode(f,n.mergeProps({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",type:e.type,primary:e.primary,secondary:e.secondary,ghost:e.ghost,danger:e.danger,"semi-danger":e.semiDanger,rounded:e.rounded,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("b.dropdown.toggleDropdown"),icon:e.ActionDown}),null,16,["id","type","primary","secondary","ghost","danger","semi-danger","rounded","class","disabled","tabindex","aria-label","icon"])]),_:3},8,["size"])):n.createCommentVNode("v-if",!0)],2)}var iie=Q(rie,[["render",aie],["__file","dropdown.vue"]]);const sie=n.defineComponent({name:"DropdownItemImpl",components:{BIcon:pe},props:C1,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const o=G("dropdown"),{role:r}=n.inject(Il,void 0),{collectionItemRef:a}=n.inject(E$,void 0),{collectionItemRef:i}=n.inject(Hae,void 0),{rovingFocusGroupItemRef:s,tabIndex:l,handleFocus:c,handleKeydown:d,handleMousedown:u}=n.inject(m$,void 0),f=Wc(a,i,s),h=n.computed(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),p=pt(m=>{const{code:g}=m;if(g===de.enter||g===de.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},d);return{ns:o,itemRef:f,dataset:{[h$]:""},role:h,tabIndex:l,handleFocus:c,handleKeydown:p,handleMousedown:u}}}),lie=["aria-disabled","tabindex","role"];function cie(e,t,o,r,a,i){const s=n.resolveComponent("b-icon");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.divided?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):n.createCommentVNode("v-if",!0),n.createElementVNode("li",n.mergeProps({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(n.openBlock(),n.createBlock(s,{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.icon)))]),_:1})):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default")],16,lie)],64)}var die=Q(sie,[["render",cie],["__file","dropdown-item-impl.vue"]]);const B$=()=>{const e=n.inject("BDropdown",{}),t=n.computed(()=>e?.dropdownSize);return{BDropdown:e,_BDropdownSize:t}},uie=n.defineComponent({name:"BDropdownItem",components:{BDropdownCollectionItem:k$,BRovingFocusItem:nie,BDropdownItemImpl:die},inheritAttrs:!1,props:C1,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:o}){const{BDropdown:r}=B$(),a=n.getCurrentInstance(),i=n.ref(null),s=n.computed(()=>n.unref(i)?.textContent??""),{onItemEnter:l,onItemLeave:c}=n.inject(Il,void 0),d=pt(p=>(t("pointermove",p),p.defaultPrevented),Jb(p=>{e.disabled?c(p):(l(p),p.defaultPrevented||p.currentTarget?.focus())})),u=pt(p=>(t("pointerleave",p),p.defaultPrevented),Jb(p=>{c(p)})),f=pt(p=>(t("click",p),p.type!=="keydown"&&p.defaultPrevented),p=>{if(e.disabled){p.stopImmediatePropagation();return}r?.hideOnClick?.value&&r.handleClick?.(),r.commandHandler?.(e.command,a,p)}),h=n.computed(()=>({...e,...o}));return{handleClick:f,handlePointerMove:d,handlePointerLeave:u,textContent:s,propsAndAttrs:h}}});function fie(e,t,o,r,a,i){const s=n.resolveComponent("b-dropdown-item-impl"),l=n.resolveComponent("b-roving-focus-item"),c=n.resolveComponent("b-dropdown-collection-item");return n.openBlock(),n.createBlock(c,{disabled:e.disabled,"text-value":e.textValue??e.textContent},{default:n.withCtx(()=>[n.createVNode(l,{focusable:!e.disabled},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var N$=Q(uie,[["render",fie],["__file","dropdown-item.vue"]]);const hie=n.defineComponent({name:"BDropdownMenu",props:b$,setup(e){const t=G("dropdown"),{_BDropdownSize:o}=B$(),r=o.value,{focusTrapRef:a,onKeydown:i}=n.inject(Tp,void 0),{contentRef:s,role:l,triggerId:c}=n.inject(Il,void 0),{collectionRef:d,getItems:u}=n.inject(S$,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:p,onBlur:m,onFocus:g,onMousedown:y}=n.inject(y1,void 0),{collectionRef:w}=n.inject(g1,void 0),$=n.computed(()=>[t.b("menu"),t.bm("menu",r?.value)]),C=Wc(s,d,a,f,w),b=pt(S=>{e.onKeydown?.(S)},S=>{const{currentTarget:E,code:N,target:_}=S;if(E.contains(_),de.tab===N&&S.stopImmediatePropagation(),S.preventDefault(),_!==n.unref(s)||!w$.includes(N))return;const P=u().filter(x=>!x.disabled).map(x=>x.ref);w1.includes(N)&&P.reverse(),b1(P)});return{size:r,rovingFocusGroupRootStyle:h,tabIndex:p,dropdownKls:$,role:l,triggerId:c,dropdownListWrapperRef:C,handleKeydown:S=>{b(S),i(S)},onBlur:m,onFocus:g,onMousedown:y}}}),pie=["role","aria-labelledby"];function mie(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("ul",{ref:e.dropdownListWrapperRef,class:n.normalizeClass(e.dropdownKls),style:n.normalizeStyle(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,"data-test-name":"dropdown-menu","data-test-variant":"","data-test-state":"",onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=(...s)=>e.handleKeydown&&e.handleKeydown(...s)),onMousedown:t[3]||(t[3]=(...s)=>e.onMousedown&&e.onMousedown(...s))},[n.renderSlot(e.$slots,"default")],46,pie)}var _$=Q(hie,[["render",mie],["__file","dropdown-menu.vue"]]);const T$=Ne(iie,{DropdownItem:N$,DropdownMenu:_$}),A$=Ge(N$),x$=Ge(_$);let gie=0;const yie=n.defineComponent({name:"ImgEmpty",setup(){return{ns:G("empty"),id:++gie}}}),bie={xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 650 512"},Cie=[n.createStaticVNode('<path fill="#dbe8ec" d="M596.45208,244.76815V226.577a13.07946,13.07946,0,0,0-13.07946-13.07946h-46.166a13.07945,13.07945,0,0,1-13.07945-13.07945V182.22692a13.07945,13.07945,0,0,1,13.07945-13.07945h1.45764A13.07945,13.07945,0,0,0,551.7437,156.068V137.87685a13.07945,13.07945,0,0,0-13.07945-13.07945H166.75711a13.07945,13.07945,0,0,0-13.07946,13.07945V156.068a13.07945,13.07945,0,0,0,13.07946,13.07945h0a13.07945,13.07945,0,0,1,13.07945,13.07945v18.19116a13.07945,13.07945,0,0,1-13.07945,13.07945H116.17772A13.07945,13.07945,0,0,0,103.09827,226.577v18.19116a13.07945,13.07945,0,0,0,13.07945,13.07945h19.84659a13.07945,13.07945,0,0,1,13.07945,13.07945V289.1183a13.07945,13.07945,0,0,1-13.07945,13.07945h-.048a13.07945,13.07945,0,0,0-13.07946,13.07945v18.19108a13.07945,13.07945,0,0,0,13.07946,13.07945h2.87138a13.07945,13.07945,0,0,1,13.07945,13.07945v18.19125a13.07945,13.07945,0,0,1-13.07945,13.07945H91.72322a13.07945,13.07945,0,0,0-13.07945,13.07945V422.1685A13.07945,13.07945,0,0,0,91.72322,435.248h453.963a13.07945,13.07945,0,0,0,13.07945-13.07945V403.97733a13.07945,13.07945,0,0,0-13.07945-13.07945H534.34572a13.07945,13.07945,0,0,1-13.07946-13.07945V359.62718a13.07945,13.07945,0,0,1,13.07946-13.07945h26.73985A13.07945,13.07945,0,0,0,574.165,333.46828V315.2772a13.07945,13.07945,0,0,0-13.07945-13.07945h-8.11162A13.07945,13.07945,0,0,1,539.8945,289.1183V270.92705a13.07945,13.07945,0,0,1,13.07945-13.07945h30.39867A13.07945,13.07945,0,0,0,596.45208,244.76815Z"></path><path fill="#b9d4db" d="M426.33375,137.87353a29.54017,29.54017,0,0,1-29.51385,29.5269H286.53459a22.75616,22.75616,0,0,1-4.83773-44.99256,26.2542,26.2542,0,0,1,26.16185-24.52338,25.48181,25.48181,0,0,1,7.93618,1.2679,41.42545,41.42545,0,0,1,77.11377,9.49993,29.47753,29.47753,0,0,1,33.42509,29.22121Zm0,0"></path><path fill="#e59413" d="M436.63273,374.64289l-214.7486-.35354a12.98768,12.98768,0,0,1-12.99869-12.97666l-25.76523-140.081A12.98768,12.98768,0,0,1,196.09687,208.233H315.13876c.59774-.0005,29.51124,36.75919,30.08761,36.83689,8.03129,1.0826,129.33906,23.82087,126.1699,31.27943L449.60939,361.6442A12.98769,12.98769,0,0,1,436.63273,374.64289Z"></path><path fill="#409cb5" d="M198.14953 332.52963h61.84313V268.13994H188.923a10.25857 10.25857 0 00-10.039 12.3698l9.22651 43.87254A10.25858 10.25858 0 00198.14953 332.52963zM283.36412 237.37332a164.72184 164.72184 0 013.21728-34.355A132.82562 132.82562 0 01297.59849 170.241a101.76807 101.76807 0 018.99268-14.88257 75.39454 75.39454 0 0111.793-12.877 58.27987 58.27987 0 0114.86817-9.37158 45.26931 45.26931 0 0134.78613-.34741 58.87842 58.87842 0 0115.2085 9.14478 76.408 76.408 0 0112.21045 12.77563 103.13394 103.13394 0 019.42871 14.87646A134.72837 134.72837 0 01416.767 202.54544a167.35745 167.35745 0 014.01758 34.82788h-6a161.7466 161.7466 0 00-3.1504-33.72461 129.86941 129.86941 0 00-10.75634-32.04419 98.81841 98.81841 0 00-8.71875-14.44458 72.48477 72.48477 0 00-11.32422-12.38159 55.32645 55.32645 0 00-14.07178-8.89087 42.27027 42.27027 0 00-32.519-.34741 55.86 55.86 0 00-14.4126 8.66406 73.37805 73.37805 0 00-11.74121 12.28027 100.062 100.062 0 00-9.15527 14.43824 131.70045 131.70045 0 00-11.62012 32.25341A164.30693 164.30693 0 00283.36412 237.37332z"></path><path fill="#f9ae2b" d="M443.59485,374.45479l-221.82951.18809a12.98768,12.98768,0,0,1-12.99868-12.97666l35.77376-147.11916a12.98768,12.98768,0,0,1,12.97666-12.99869l73.77255-.06255a12.98767,12.98767,0,0,1,10.6346,5.51645L354.3264,239.2244a12.98767,12.98767,0,0,0,10.63461,5.51645l114.42229-.08832A12.98769,12.98769,0,0,1,492.382,257.62919L456.57151,361.4561A12.98768,12.98768,0,0,1,443.59485,374.45479Z"></path><line x1="274.279" x2="444.404" y1="272.241" y2="272.241" fill="none" stroke="#ee781d" stroke-miterlimit="10" stroke-width="5"></line><line x1="259.993" x2="430.118" y1="305.988" y2="305.988" fill="none" stroke="#ee781d" stroke-miterlimit="10" stroke-width="5"></line><line x1="242.226" x2="412.351" y1="340.905" y2="340.905" fill="none" stroke="#ee781d" stroke-miterlimit="10" stroke-width="5"></line><path fill="#409cb5" d="M375.48255,308.94887,418.192,272.8522a2.56465,2.56465,0,0,1,4.22014,1.95877v4.682a2.56464,2.56464,0,0,0,2.56464,2.56464h59.06339l49.85671-6.95885v71.348H424.97674a2.56464,2.56464,0,0,0-2.56464,2.56464v3.48071a2.56465,2.56465,0,0,1-4.35377,1.83752l-42.70941-41.58446A2.56465,2.56465,0,0,1,375.48255,308.94887Z"></path><path fill="#3086a3" d="M484.04007,282.05741h42.898a6.95873,6.95873,0,0,0,6.95873-6.95873v0a6.95873,6.95873,0,0,0-6.95873-6.95873H488.75677Z"></path><path fill="#409cb5" d="M432.80366,223.47575a40.44393,40.44393,0,0,1-2.71729,4.792c-.9873,1.51587-2.04053,2.96607-3.12988,4.37964-1.09131,1.41187-2.23487,2.77173-3.40967,4.09986-1.17529,1.32788-2.39844,2.60791-3.64111,3.86816l-2.11621,2.14551L415.664,240.6154c-1.24561-1.25732-2.46875-2.53735-3.646-3.86328-1.17285-1.33032-2.32226-2.68433-3.41064-4.09888-1.09034-1.41284-2.14307-2.86328-3.1294-4.38013a40.06672,40.06672,0,0,1-2.7124-4.79736,40.01165,40.01165,0,0,1,4.79736,2.71216c1.51709.98633,2.96729,2.03906,4.38037,3.12939,1.41456,1.08838,2.76856,2.2378,4.09864,3.41065,1.32617,1.17724,2.606,2.40039,3.86328,3.646H415.664c1.26025-1.24291,2.54052-2.46606,3.86816-3.64111,1.32813-1.175,2.688-2.3186,4.09961-3.40991,1.41406-1.08936,2.86377-2.14233,4.37988-3.12964A40.43085,40.43085,0,0,1,432.80366,223.47575Z"></path><path fill="#b9d4db" d="M294.20792,167.40043h15.12s52.74-25.71775,33.48-42.45775S294.20792,167.40043,294.20792,167.40043Z"></path><path fill="none" stroke="#409cb5" stroke-miterlimit="10" stroke-width="2" d="M256.58792 137.87353H217.76665a9 9 0 00-9 9v11.52691a9 9 0 01-9 9H131.66791a9 9 0 00-9 9v10.82226a9 9 0 01-9 9h-17.28a9 9 0 01-9-9v-23.04a9 9 0 00-9-9h-15.84a9 9 0 00-9 9V206.26a9 9 0 009 9h0a9 9 0 019 9v22.56a9 9 0 009 9h9.36a9 9 0 019 9v1.27873a9 9 0 009 9h57.24M426.33375 137.87353h32.9427a7.91147 7.91147 0 007.91147-7.91147V84.66352a7.91148 7.91148 0 017.91147-7.91147h29.53706a7.91147 7.91147 0 017.91147 7.91147v85.239a7.91148 7.91148 0 007.91147 7.91147h15.49706a7.91146 7.91146 0 017.91147 7.91146v7.84891a7.91146 7.91146 0 01-7.91147 7.91147H484.81939a7.91148 7.91148 0 00-7.91147 7.91147v4.06787a7.91148 7.91148 0 007.91147 7.91147h86.77706a7.91146 7.91146 0 017.91147 7.91146v35.04185a7.91147 7.91147 0 01-7.91147 7.91147H560.41939a7.91147 7.91147 0 00-7.91147 7.91146v0a7.91148 7.91148 0 007.91147 7.91147h20.89706a7.91146 7.91146 0 017.91147 7.91147v19.41539a7.91147 7.91147 0 01-7.91147 7.91147H533.89684"></path><circle cx="95.22" cy="354.65" r="17.074" fill="#b9d4db"></circle><circle cx="110.053" cy="381.889" r="5.469" fill="#b9d4db"></circle><circle cx="141.351" cy="374.105" r="10.826" fill="#b9d4db"></circle><circle cx="133.456" cy="342.369" r="9.839" fill="#b9d4db"></circle><circle cx="535.448" cy="125.787" r="17.074" fill="#b9d4db"></circle><circle cx="529.983" cy="156.318" r="5.469" fill="#b9d4db"></circle><circle cx="559.271" cy="169.822" r="10.826" fill="#b9d4db"></circle><circle cx="572.962" cy="140.122" r="9.839" fill="#b9d4db"></circle><circle cx="498.263" cy="379.979" r="17.074" fill="#b9d4db"></circle><circle cx="481.188" cy="415.589" r="5.469" fill="#b9d4db"></circle><circle cx="515.338" cy="421.058" r="10.826" fill="#b9d4db"></circle><circle cx="531.081" cy="389.818" r="9.839" fill="#b9d4db"></circle><path fill="none" stroke="#409cb5" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" d="M93.46105 131.1824c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M93.46105 141.68051c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M93.46105 152.17862c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M556.37068 337.5755c4.14747 0 4.14747 6 8.29494 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M556.37068 348.07361c4.14747 0 4.14747 6 8.29494 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M556.37068 358.57172c4.14747 0 4.14747 6 8.29494 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M239.99627 391.73489c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M239.99627 402.233c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6M239.99627 412.7311c4.14748 0 4.14748 6 8.295 6 4.14616 0 4.14616-6 8.29232-6 4.149 0 4.149 6 8.298 6s4.149-6 8.298-6"></path>',26)];function wie(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("svg",bie,Cie)}var $ie=Q(yie,[["render",wie],["__file","img-empty.vue"]]);const M$={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},kie=["src"],Sie=n.defineComponent({name:"BEmpty"}),Eie=n.defineComponent({...Sie,props:M$,setup(e){const t=e,{t:o}=He(),r=G("empty"),a=n.computed(()=>t.description||o("b.table.emptyText")),i=n.computed(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(s,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(r).b()),"data-test-name":"empty","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("image")),style:n.normalizeStyle(n.unref(i))},[s.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:s.image,ondragstart:"return false"},null,8,kie)):n.renderSlot(s.$slots,"image",{key:1},()=>[n.createVNode($ie)])],6),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("description"))},[s.$slots.description?n.renderSlot(s.$slots,"description",{key:0}):(n.openBlock(),n.createElementBlock("p",{key:1,class:n.normalizeClass(n.unref(r).e("empty-message"))},n.toDisplayString(n.unref(a)),3))],2),s.$slots.default?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("bottom"))},[n.renderSlot(s.$slots,"default")],2)):n.createCommentVNode("v-if",!0)],2))}});var Bie=Q(Eie,[["__file","empty.vue"]]);const $1=Ne(Bie),Nie="BForm",_ie=n.defineComponent({name:Nie}),Tie=n.defineComponent({..._ie,setup(e){const t=G("form"),o=n.computed(()=>[t.b()]);return(r,a)=>(n.openBlock(),n.createElementBlock("form",{class:n.normalizeClass(n.unref(o)),"data-test-name":"form","data-test-variant":"","data-test-state":""},[n.renderSlot(r.$slots,"default")],2))}});var Aie=Q(Tie,[["__file","form.vue"]]);const P$=ne({label:String,required:Boolean,optional:Boolean,error:{type:[String,Boolean],default:!1},helpText:String,value:{type:[String,Number,Boolean,Object],default:""},size:{type:String,values:ba},topless:Boolean}),xie={key:0},Mie={key:1,style:{color:"var(--b-color-red-4)"}},Pie=n.defineComponent({name:"BFormItem"}),vie=n.defineComponent({...Pie,props:P$,setup(e,{expose:t}){const o=e,r=At(void 0,{formItem:!1}),a=G("form-item"),i=n.ref(!1),s=n.ref(),{t:l}=He(),c=n.computed(()=>[a.b(),a.m(r.value),a.is("error",!!o.error),a.is("focused",i.value),a.is("topless",o.topless)]),d=n.computed(()=>[a.e("label"),a.is("optional",o.optional),a.is("required",o.required)]),u=h=>i.value=h,f=n.reactive({...n.toRefs(o),$el:s,size:r,setFocused:u});return n.provide(Ir,f),t({size:r,focused:i}),(h,p)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"formItemRef",ref:s,class:n.normalizeClass(n.unref(c)),"data-test-name":"form-item","data-test-variant":"","data-test-state":""},[h.label||h.$slots.label?(n.openBlock(),n.createElementBlock("label",{key:0,class:n.normalizeClass(n.unref(d))},[n.renderSlot(h.$slots,"label",{label:h.label},()=>[n.createTextVNode(n.toDisplayString(h.label)+" ",1),h.optional?(n.openBlock(),n.createElementBlock("span",xie,n.toDisplayString(n.unref(l)("b.formItem.optional")),1)):n.createCommentVNode("v-if",!0),h.required?(n.openBlock(),n.createElementBlock("span",Mie,"*")):n.createCommentVNode("v-if",!0)])],2)):n.createCommentVNode("v-if",!0),n.renderSlot(h.$slots,"default",{},()=>[n.createElementVNode("p",{class:n.normalizeClass(n.unref(a).e("value"))},n.toDisplayString(h.value),3)]),h.error?(n.openBlock(),n.createElementBlock("p",{key:1,class:n.normalizeClass(n.unref(a).e("error"))},[n.createVNode(n.unref(pe),{size:14},{default:n.withCtx(()=>[n.createVNode(n.unref(Vc))]),_:1}),n.createElementVNode("span",null,n.toDisplayString(h.error),1)],2)):h.helpText?(n.openBlock(),n.createElementBlock("p",{key:2,class:n.normalizeClass(n.unref(a).e("help-text"))},[n.createVNode(n.unref(pe),{size:14},{default:n.withCtx(()=>[n.createVNode(n.unref(Fc))]),_:1}),n.createElementVNode("span",null,n.toDisplayString(h.helpText),1)],2)):n.createCommentVNode("v-if",!0)],2))}});var v$=Q(vie,[["__file","form-item.vue"]]);const Oie=n.defineComponent({name:"BDataValue"}),Iie=n.defineComponent({...Oie,setup(e){const t=G("form-item");return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(t).e("value"))},[n.renderSlot(o.$slots,"default")],2))}});var O$=Q(Iie,[["__file","data-value.vue"]]);const I$=Ne(Aie,{FormItem:v$,DataValue:O$}),k1=Ge(v$),Die=Ge(O$),D$=ne({urlList:{type:K(Array),default:()=>st([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),R$={close:()=>!0,switch:e=>Se(e)},Rie=["src"],Lie=n.defineComponent({name:"BImageViewer"}),Vie=n.defineComponent({...Lie,props:D$,emits:R$,setup(e,{expose:t,emit:o}){const r=e,a={CONTAIN:{name:"contain",icon:n.markRaw(Tj)},ORIGINAL:{name:"original",icon:n.markRaw(kj)}},i=Lh()?"DOMMouseScroll":"mousewheel",{t:s}=He(),l=G("image-viewer"),{nextZIndex:c}=Do(),d=Ms(),u=n.ref(),f=n.ref([]),h=n.effectScope(),p=n.ref(!0),m=n.ref(r.initialIndex),g=n.shallowRef(a.CONTAIN),y=n.ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),w=n.computed(()=>{const{urlList:B}=r;return B.length<=1}),$=n.computed(()=>m.value===0),C=n.computed(()=>m.value===r.urlList.length-1),b=n.computed(()=>r.urlList[m.value]),k=n.computed(()=>{const{scale:B,deg:L,offsetX:W,offsetY:R,enableTransition:H}=y.value;let j=W/B,U=R/B;switch(L%360){case 90:case-270:[j,U]=[U,-j];break;case 180:case-180:[j,U]=[-j,-U];break;case 270:case-90:[j,U]=[-U,j];break}const re={transform:`scale(${B}) rotate(${L}deg) translate(${j}px, ${U}px)`,transition:H?"transform .3s":""};return g.value.name===a.CONTAIN.name&&(re.maxWidth=re.maxHeight="100%"),re}),S=n.computed(()=>VF(r.zIndex)?r.zIndex:c());function E(){_(),o("close")}function N(){const B=Pr(W=>{switch(W.code){case de.esc:r.closeOnPressEscape&&E();break;case de.space:O();break;case de.left:F();break;case de.up:z("zoomIn");break;case de.right:M();break;case de.down:z("zoomOut");break}}),L=Pr(W=>{(W.wheelDelta?W.wheelDelta:-W.detail)>0?z("zoomIn",{zoomRate:1.2,enableTransition:!1}):z("zoomOut",{zoomRate:1.2,enableTransition:!1})});h.run(()=>{Xe(document,"keydown",B),Xe(document,i,L)})}function _(){h.stop()}function T(){p.value=!1}function P(B){p.value=!1,B.target.alt=s("b.image.error")}function x(B){if(p.value||B.button!==0||!u.value)return;y.value.enableTransition=!1;const{offsetX:L,offsetY:W}=y.value,R=B.pageX,H=B.pageY,j=Pr(re=>{y.value={...y.value,offsetX:L+re.pageX-R,offsetY:W+re.pageY-H}}),U=Xe(document,"mousemove",j);Xe(document,"mouseup",()=>{U()}),B.preventDefault()}function v(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function O(){if(p.value)return;const B=vs(a),L=Object.values(a),W=g.value.name,H=(L.findIndex(j=>j.name===W)+1)%B.length;g.value=a[B[H]],v()}function I(B){const L=r.urlList.length;m.value=(B+L)%L}function F(){$.value&&!r.infinite||I(m.value-1)}function M(){C.value&&!r.infinite||I(m.value+1)}function z(B,L={}){if(p.value)return;const{zoomRate:W,rotateDeg:R,enableTransition:H}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...L};switch(B){case"zoomOut":y.value.scale>.2&&(y.value.scale=Number.parseFloat((y.value.scale/W).toFixed(3)));break;case"zoomIn":y.value.scale<7&&(y.value.scale=Number.parseFloat((y.value.scale*W).toFixed(3)));break;case"clockwise":y.value.deg+=R;break;case"anticlockwise":y.value.deg-=R;break}y.value.enableTransition=H}return n.watch(b,()=>{n.nextTick(()=>{f.value[0]?.complete||(p.value=!0)})}),n.watch(m,B=>{v(),o("switch",B)}),n.onMounted(()=>{N(),u.value?.focus?.()}),t({setActiveItem:I}),(B,L)=>n.unref(d)?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"body",disabled:!B.teleported},[n.createVNode(n.Transition,{name:"viewer-fade",appear:""},{default:n.withCtx(()=>[n.createElementVNode("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:n.normalizeClass(n.unref(l).e("wrapper")),style:n.normalizeStyle({zIndex:n.unref(S)}),"data-test-name":"image-viewer","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(l).e("mask")),onClick:L[0]||(L[0]=n.withModifiers(W=>B.hideOnClickModal&&E(),["self"]))},null,2),n.createCommentVNode(" CLOSE "),n.createElementVNode("span",{class:n.normalizeClass([n.unref(l).e("btn"),n.unref(l).e("close")]),onClick:E},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[n.createVNode(n.unref(Nn))]),_:1})],2),n.createCommentVNode(" ARROW "),n.unref(w)?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(l).e("btn"),n.unref(l).e("prev"),n.unref(l).is("disabled",!B.infinite&&n.unref($))]),onClick:F},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[n.createVNode(n.unref(co))]),_:1})],2),n.createElementVNode("span",{class:n.normalizeClass([n.unref(l).e("btn"),n.unref(l).e("next"),n.unref(l).is("disabled",!B.infinite&&n.unref(C))]),onClick:M},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[n.createVNode(n.unref(Un))]),_:1})],2)],64)),n.createCommentVNode(" ACTIONS "),n.createElementVNode("div",{class:n.normalizeClass([n.unref(l).e("btn"),n.unref(l).e("actions")])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(l).e("actions__inner"))},[n.createVNode(n.unref(pe),{onClick:L[1]||(L[1]=W=>z("zoomOut"))},{default:n.withCtx(()=>[n.createVNode(n.unref(Kj))]),_:1}),n.createVNode(n.unref(pe),{onClick:L[2]||(L[2]=W=>z("zoomIn"))},{default:n.withCtx(()=>[n.createVNode(n.unref($C))]),_:1}),n.createCommentVNode(` <i :class="ns.e('actions__divider')" /> `),n.createVNode(n.unref(pe),{onClick:O},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(g).icon)))]),_:1}),n.createCommentVNode(` <i :class="ns.e('actions__divider')" /> `),n.createVNode(n.unref(pe),{onClick:L[3]||(L[3]=W=>z("anticlockwise"))},{default:n.withCtx(()=>[n.createVNode(n.unref(BK))]),_:1}),n.createVNode(n.unref(pe),{onClick:L[4]||(L[4]=W=>z("clockwise"))},{default:n.withCtx(()=>[n.createVNode(n.unref(MK))]),_:1})],2)],2),n.createCommentVNode(" CANVAS "),n.createElementVNode("div",{class:n.normalizeClass(n.unref(l).e("canvas"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(B.urlList,(W,R)=>n.withDirectives((n.openBlock(),n.createElementBlock("img",{ref_for:!0,ref:H=>f.value[R]=H,key:W,src:W,style:n.normalizeStyle(n.unref(k)),class:n.normalizeClass(n.unref(l).e("img")),onLoad:T,onError:P,onMousedown:x},null,46,Rie)),[[n.vShow,R===m.value]])),128))],2),n.renderSlot(B.$slots,"default")],6)]),_:3})],8,["disabled"])):n.createCommentVNode("v-if",!0)}});var Fie=Q(Vie,[["__file","image-viewer.vue"]]);const S1=Ne(Fie),L$=ne({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:K([String,Object])},previewSrcList:{type:K(Array),default:()=>st([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),V$={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Se(e),close:()=>!0,show:()=>!0},zie=["src","loading"],Hie={key:0},Wie=n.defineComponent({name:"BImage",inheritAttrs:!1}),Kie=n.defineComponent({...Wie,props:L$,emits:V$,setup(e,{emit:t}){const o=e;let r="";const{t:a}=He(),i=G("image"),s=n.useAttrs(),l=Uc(),c=n.ref(),d=n.ref(!1),u=n.ref(!0),f=n.ref(!1),h=n.ref(),p=n.ref(),m=Re&&"loading"in HTMLImageElement.prototype;let g,y;const w=n.computed(()=>s.style),$=n.computed(()=>{const{fit:M}=o;return Re&&M?{objectFit:M}:{}}),C=n.computed(()=>{const{previewSrcList:M}=o;return Array.isArray(M)&&M.length>0}),b=n.computed(()=>{const{previewSrcList:M,initialIndex:z}=o;let B=z;return z>M.length-1&&(B=0),B}),k=n.computed(()=>o.loading==="eager"?!1:!m&&o.loading==="lazy"||o.lazy),S=()=>{!Re||(u.value=!0,d.value=!1,c.value=o.src)};function E(M){u.value=!1,d.value=!1,t("load",M)}function N(M){u.value=!1,d.value=!0,t("error",M)}function _(){sz(h.value,p.value)&&(S(),x())}const T=oC(_,200);async function P(){if(!Re)return;await n.nextTick();const{scrollContainer:M}=o;ar(M)?p.value=M:De(M)&&M!==""?p.value=document.querySelector(M)??void 0:h.value&&(p.value=Oh(h.value)),p.value&&(g=Xe(p,"scroll",T),setTimeout(()=>_(),100))}function x(){!Re||!p.value||!T||(g?.(),p.value=void 0)}function v(M){if(!!M.ctrlKey){if(M.deltaY<0)return M.preventDefault(),!1;if(M.deltaY>0)return M.preventDefault(),!1}}function O(){!C.value||(y=Xe("wheel",v,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function I(){y?.(),document.body.style.overflow=r,f.value=!1,t("close")}function F(M){t("switch",M)}return n.watch(()=>o.src,()=>{k.value?(u.value=!0,d.value=!1,x(),P()):S()}),n.onMounted(()=>{k.value?P():S()}),(M,z)=>{const B=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",{ref_key:"container",ref:h,class:n.normalizeClass([n.unref(i).b(),M.$attrs.class]),style:n.normalizeStyle(n.unref(w)),"data-test-name":"image","data-test-variant":"","data-test-state":""},[c.value!==void 0&&!d.value?(n.openBlock(),n.createElementBlock("img",n.mergeProps({key:0},n.unref(l),{src:c.value,loading:M.loading,style:n.unref($),class:[n.unref(i).e("inner"),n.unref(C)&&n.unref(i).e("preview"),u.value&&n.unref(i).is("loading")],onClick:O,onLoad:E,onError:N}),null,16,zie)):n.createCommentVNode("v-if",!0),u.value||d.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(i).e("wrapper"))},[u.value?n.renderSlot(M.$slots,"placeholder",{key:0},()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(n.unref(i).e("placeholder"))},null,2),[[B,u.value]])]):d.value?n.renderSlot(M.$slots,"error",{key:1},()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(i).e("error"))},n.toDisplayString(n.unref(a)("b.image.error")),3)]):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.unref(C)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[f.value?(n.openBlock(),n.createBlock(n.unref(S1),{key:0,"z-index":M.zIndex,"initial-index":n.unref(b),infinite:M.infinite,"url-list":M.previewSrcList,"hide-on-click-modal":M.hideOnClickModal,teleported:M.previewTeleported,"close-on-press-escape":M.closeOnPressEscape,onClose:I,onSwitch:F},{default:n.withCtx(()=>[M.$slots.viewer?(n.openBlock(),n.createElementBlock("div",Hie,[n.renderSlot(M.$slots,"viewer")])):n.createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):n.createCommentVNode("v-if",!0)],64)):n.createCommentVNode("v-if",!0)],6)}}});var jie=Q(Kie,[["__file","image.vue"]]);const F$=Ne(jie),z$=ne({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:It,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Se(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),H$={[ct]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[_n]:e=>Se(e)||xt(e),[Pe]:e=>Se(e)||xt(e)},Uie=n.defineComponent({name:"BNumericInput"}),Gie=n.defineComponent({...Uie,props:z$,emits:H$,setup(e,{expose:t,emit:o}){const r=e,{t:a}=He(),i=G("numeric-input"),s=n.ref(),l=n.reactive({currentValue:r.modelValue,userInput:null}),c=n.computed(()=>Se(r.modelValue)&&w(r.modelValue,-1)<r.min),d=n.computed(()=>Se(r.modelValue)&&w(r.modelValue)>r.max),u=n.computed(()=>{const x=y(r.step);return Vt(r.precision)?Math.max(y(r.modelValue),x):(x>r.precision,r.precision)}),f=n.computed(()=>r.controls&&r.controlsPosition==="right"),h=At(),p=ho(),m=n.computed(()=>{if(l.userInput!==null)return l.userInput;let x=l.currentValue;if(xt(x))return"";if(Se(x)){if(Number.isNaN(x))return"";Vt(r.precision)||(x=x.toFixed(r.precision))}return x}),g=(x,v)=>{if(Vt(v)&&(v=u.value),v===0)return Math.round(x);let O=String(x);const I=O.indexOf(".");if(I===-1||!O.replace(".","").split("")[I+v])return x;const z=O.length;return O.charAt(z-1)==="5"&&(O=`${O.slice(0,Math.max(0,z-1))}6`),Number.parseFloat(Number(O).toFixed(v))},y=x=>{if(xt(x))return 0;const v=x.toString(),O=v.indexOf(".");let I=0;return O!==-1&&(I=v.length-O-1),I},w=(x,v=1)=>Se(x)?g(x+r.step*v):l.currentValue,$=()=>{if(p.value||d.value)return;const x=r.modelValue||0,v=w(x);k(v)},C=()=>{if(p.value||c.value)return;const x=r.modelValue||0,v=w(x,-1);k(v)},b=(x,v)=>{const{max:O,min:I,step:F,precision:M,stepStrictly:z,valueOnClear:B}=r;let L=Number(x);if(xt(x)||Number.isNaN(L))return null;if(x===""){if(B===null)return null;L=De(B)?{min:I,max:O}[B]:B}return z&&(L=Math.round(L/F)*F),Vt(M)||(L=g(L,M)),(L>O||L<I)&&(L=L>O?O:I,v&&o("update:modelValue",L)),L},k=x=>{const v=l.currentValue,O=b(x);v!==O&&(l.userInput=null,o("update:modelValue",O),o("input",O),o("change",O,v),l.currentValue=O)},S=x=>l.userInput=x,E=x=>{const v=x!==""?Number(x):"";(Se(v)&&!Number.isNaN(v)||x==="")&&k(v),l.userInput=null},N=()=>{s.value?.focus?.()},_=()=>{s.value?.blur?.()},T=x=>{o("focus",x)},P=x=>{o("blur",x)};return n.watch(()=>r.modelValue,x=>{l.currentValue=b(x,!0),l.userInput=null},{immediate:!0}),n.onMounted(()=>{const{min:x,max:v,modelValue:O}=r,I=s.value?.input;if(I.setAttribute("role","spinbutton"),Number.isFinite(v)?I.setAttribute("aria-valuemax",String(v)):I.removeAttribute("aria-valuemax"),Number.isFinite(x)?I.setAttribute("aria-valuemin",String(x)):I.removeAttribute("aria-valuemin"),I.setAttribute("aria-valuenow",String(l.currentValue)),I.setAttribute("aria-disabled",String(p.value)),!Se(O)&&O!=null){let F=Number(O);Number.isNaN(F)&&(F=null),o("update:modelValue",F)}}),n.onUpdated(()=>{s.value?.input?.setAttribute("aria-valuenow",`${l.currentValue}`)}),t({focus:N,blur:_}),(x,v)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).m(n.unref(h)),n.unref(i).is("disabled",n.unref(p)),n.unref(i).is("without-controls",!x.controls),n.unref(i).is("controls-right",n.unref(f))]),"data-test-name":"numeric-input","data-test-variant":"","data-test-state":"",onDragstart:v[0]||(v[0]=n.withModifiers(()=>{},["prevent"]))},[n.createVNode(n.unref(hn),{id:x.id,ref_key:"input",ref:s,type:"number",step:x.step,"model-value":n.unref(m),placeholder:x.placeholder,disabled:n.unref(p),size:n.unref(h),max:x.max,min:x.min,name:x.name,label:x.label,"validate-event":!1,"prefix-class":"is-button","suffix-class":"is-button",onKeydown:[n.withKeys(n.withModifiers($,["prevent"]),["up"]),n.withKeys(n.withModifiers(C,["prevent"]),["down"])],onBlur:P,onFocus:T,onInput:S,onChange:E},n.createSlots({_:2},[x.controls&&!n.unref(f)?{name:"prefix",fn:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(ve),{ghost:"",small:n.unref(h)==="large",xsmall:!["large","small"].includes(n.unref(h)),xxsmall:n.unref(h)==="small",disabled:n.unref(p),"aria-label":n.unref(a)("b.numericInput.decrease"),class:n.normalizeClass([n.unref(i).e("decrease"),n.unref(i).is("disabled",n.unref(c))]),icon:n.unref(uW),onKeydown:n.withKeys(C,["enter"])},null,8,["small","xsmall","xxsmall","disabled","aria-label","class","icon","onKeydown"]),[[n.unref(Ea),C]])]),key:"0"}:void 0,x.controls?{name:"suffix",fn:n.withCtx(()=>[n.unref(f)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(i).e("controls-right"))},[n.withDirectives(n.createVNode(n.unref(ve),{ghost:"",xsmall:n.unref(h)==="large",xxsmall:n.unref(h)!=="large",disabled:n.unref(p),"aria-label":n.unref(a)("b.numericInput.increase"),class:n.normalizeClass([n.unref(i).e("increase"),n.unref(i).is("disabled",n.unref(d))]),icon:n.unref(gC),onKeydown:n.withKeys($,["enter"])},null,8,["xsmall","xxsmall","disabled","aria-label","class","icon","onKeydown"]),[[n.unref(Ea),$]]),n.withDirectives(n.createVNode(n.unref(ve),{ghost:"",xsmall:n.unref(h)==="large",xxsmall:n.unref(h)!=="large",disabled:n.unref(p),"aria-label":n.unref(a)("b.numericInput.decrease"),class:n.normalizeClass([n.unref(i).e("decrease"),n.unref(i).is("disabled",n.unref(c))]),icon:n.unref(TH),onKeydown:n.withKeys(C,["enter"])},null,8,["xsmall","xxsmall","disabled","aria-label","class","icon","onKeydown"]),[[n.unref(Ea),C]])],2)):n.withDirectives((n.openBlock(),n.createBlock(n.unref(ve),{key:1,ghost:"",small:n.unref(h)==="large",xsmall:!["large","small"].includes(n.unref(h)),xxsmall:n.unref(h)==="small",disabled:n.unref(p),"aria-label":n.unref(a)("b.numericInput.increase"),class:n.normalizeClass([n.unref(i).e("increase"),n.unref(i).is("disabled",n.unref(d))]),icon:n.unref(yC),onKeydown:n.withKeys($,["enter"])},null,8,["small","xsmall","xxsmall","disabled","aria-label","class","icon","onKeydown"])),[[n.unref(Ea),$]])]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var Yie=Q(Gie,[["__file","numeric-input.vue"]]);const E1=Ne(Yie),W$=ne({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Je}}),K$={click:e=>e instanceof MouseEvent},qie=["href"],Zie=n.defineComponent({name:"BLink"}),Xie=n.defineComponent({...Zie,props:W$,emits:K$,setup(e,{emit:t}){const o=e,r=G("link");function a(i){o.disabled||t("click",i)}return(i,s)=>(n.openBlock(),n.createElementBlock("a",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).m(i.type),n.unref(r).is("disabled",i.disabled),n.unref(r).is("underline",i.underline&&!i.disabled)]),href:i.disabled||!i.href?void 0:i.href,"data-test-name":"link","data-test-variant":"","data-test-state":"",onClick:a},[i.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.icon)))]),_:1})):n.createCommentVNode("v-if",!0),i.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(n.unref(r).e("inner"))},[n.renderSlot(i.$slots,"default")],2)):n.createCommentVNode("v-if",!0),i.$slots.icon?n.renderSlot(i.$slots,"icon",{key:2}):n.createCommentVNode("v-if",!0)],10,qie))}});var Jie=Q(Xie,[["__file","link.vue"]]);const j$=Ne(Jie),Qie=n.createElementVNode("div",null,"Deprecated component",-1),ese=n.defineComponent({name:"BLottie"}),tse=n.defineComponent({...ese,setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(` <lottie-player
    autoplay
    loop
    :src="src"
    :style="computedStyle"
    :class="[ns.b()]"
    data-test-name="lottie"
    data-test-variant=""
    data-test-state=""
  /> `),Qie],2112))}});var nse=Q(tse,[["__file","lottie.vue"]]);const ose=ne({src:{type:String,default:""},mode:{type:String,default:"normal"},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},controls:{type:Boolean,default:!1},width:{type:Number,default:240},height:{type:Number,default:240}}),U$=Ne(nse);class rse{constructor(t,o){this.parent=t,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",r=>{let a=!1;switch(r.code){case de.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case de.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case de.tab:{Oc(t,"mouseleave");break}case de.enter:case de.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}}var ase=rse;class ise{constructor(t,o){this.domNode=t,this.submenu=null,this.submenu=null,this.init(o)}init(t){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${t}-menu`);o&&(this.submenu=new ase(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let o=!1;switch(t.code){case de.down:{Oc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case de.up:{Oc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case de.tab:{Oc(t.currentTarget,"mouseleave");break}case de.enter:case de.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}}var sse=ise;class lse{constructor(t,o){this.domNode=t,this.init(o)}init(t){const o=this.domNode.childNodes;Array.from(o).forEach(r=>{r.nodeType===1&&new sse(r,t)})}}var cse=lse;const dse=n.defineComponent({name:"BMenuCollapseTransition",setup(){const e=G("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,r){Oo(o,`${e.namespace.value}-opacity-transition`),o.style.opacity="1",r()},onAfterEnter(o){fn(o,`${e.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),lo(o,e.m("collapse"))?(fn(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Oo(o,e.m("collapse"))):(Oo(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),fn(o,e.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){Oo(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function use(e,t,o,r,a,i){return n.openBlock(),n.createBlock(n.Transition,n.mergeProps({mode:"out-in"},e.listeners),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}var fse=Q(dse,[["render",use],["__file","menu-collapse-transition.vue"]]);function G$(e,t){const o=n.computed(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="BMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:n.computed(()=>{let a=e.parent;for(;a&&!["BMenu","BSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:o}}function Ut(e,t){hse(e)&&(e="100%");var o=pse(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Cu(e){return Math.min(1,Math.max(0,e))}function hse(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function pse(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Y$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Va(e){return e.length===1?"0"+e:String(e)}function mse(e,t,o){return{r:Ut(e,255)*255,g:Ut(t,255)*255,b:Ut(o,255)*255}}function q$(e,t,o){e=Ut(e,255),t=Ut(t,255),o=Ut(o,255);var r=Math.max(e,t,o),a=Math.min(e,t,o),i=0,s=0,l=(r+a)/2;if(r===a)s=0,i=0;else{var c=r-a;switch(s=l>.5?c/(2-r-a):c/(r+a),r){case e:i=(t-o)/c+(t<o?6:0);break;case t:i=(o-e)/c+2;break;case o:i=(e-t)/c+4;break}i/=6}return{h:i,s,l}}function B1(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function gse(e,t,o){var r,a,i;if(e=Ut(e,360),t=Ut(t,100),o=Ut(o,100),t===0)a=o,i=o,r=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;r=B1(l,s,e+1/3),a=B1(l,s,e),i=B1(l,s,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Z$(e,t,o){e=Ut(e,255),t=Ut(t,255),o=Ut(o,255);var r=Math.max(e,t,o),a=Math.min(e,t,o),i=0,s=r,l=r-a,c=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(t-o)/l+(t<o?6:0);break;case t:i=(o-e)/l+2;break;case o:i=(e-t)/l+4;break}i/=6}return{h:i,s:c,v:s}}function yse(e,t,o){e=Ut(e,360)*6,t=Ut(t,100),o=Ut(o,100);var r=Math.floor(e),a=e-r,i=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=r%6,d=[o,s,i,i,l,o][c],u=[l,o,o,s,i,i][c],f=[i,i,l,o,o,s][c];return{r:d*255,g:u*255,b:f*255}}function X$(e,t,o,r){var a=[Va(Math.round(e).toString(16)),Va(Math.round(t).toString(16)),Va(Math.round(o).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function bse(e,t,o,r,a){var i=[Va(Math.round(e).toString(16)),Va(Math.round(t).toString(16)),Va(Math.round(o).toString(16)),Va(Cse(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Cse(e){return Math.round(parseFloat(e)*255).toString(16)}function J$(e){return vn(e)/255}function vn(e){return parseInt(e,16)}function wse(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var N1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function $se(e){var t={r:0,g:0,b:0},o=1,r=null,a=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Ese(e)),typeof e=="object"&&($r(e.r)&&$r(e.g)&&$r(e.b)?(t=mse(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$r(e.h)&&$r(e.s)&&$r(e.v)?(r=wu(e.s),a=wu(e.v),t=yse(e.h,r,a),s=!0,l="hsv"):$r(e.h)&&$r(e.s)&&$r(e.l)&&(r=wu(e.s),i=wu(e.l),t=gse(e.h,r,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Y$(o),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var kse="[-\\+]?\\d+%?",Sse="[-\\+]?\\d*\\.\\d+%?",Qr="(?:".concat(Sse,")|(?:").concat(kse,")"),_1="[\\s|\\(]+(".concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")\\s*\\)?"),T1="[\\s|\\(]+(".concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")[,|\\s]+(").concat(Qr,")\\s*\\)?"),ko={CSS_UNIT:new RegExp(Qr),rgb:new RegExp("rgb"+_1),rgba:new RegExp("rgba"+T1),hsl:new RegExp("hsl"+_1),hsla:new RegExp("hsla"+T1),hsv:new RegExp("hsv"+_1),hsva:new RegExp("hsva"+T1),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ese(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(N1[e])e=N1[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=ko.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=ko.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=ko.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=ko.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=ko.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=ko.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=ko.hex8.exec(e),o?{r:vn(o[1]),g:vn(o[2]),b:vn(o[3]),a:J$(o[4]),format:t?"name":"hex8"}:(o=ko.hex6.exec(e),o?{r:vn(o[1]),g:vn(o[2]),b:vn(o[3]),format:t?"name":"hex"}:(o=ko.hex4.exec(e),o?{r:vn(o[1]+o[1]),g:vn(o[2]+o[2]),b:vn(o[3]+o[3]),a:J$(o[4]+o[4]),format:t?"name":"hex8"}:(o=ko.hex3.exec(e),o?{r:vn(o[1]+o[1]),g:vn(o[2]+o[2]),b:vn(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function $r(e){return Boolean(ko.CSS_UNIT.exec(String(e)))}var Bse=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=wse(t)),this.originalInput=t;var a=$se(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=o.format)!==null&&r!==void 0?r:a.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,r,a,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Y$(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Z$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Z$(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(o,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=q$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=q$(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(o,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),X$(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),bse(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(r,")"):"rgba(".concat(t,", ").concat(o,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(Ut(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(Ut(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+X$(this.r,this.g,this.b,!1),o=0,r=Object.entries(N1);o<r.length;o++){var a=r[o],i=a[0],s=a[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var o=Boolean(t);t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!o&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=Cu(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=Cu(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=Cu(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=Cu(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),r=(o.h+t)%360;return o.h=r<0?360+r:r,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var r=this.toRgb(),a=new e(t).toRgb(),i=o/100,s={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var r=this.toHsl(),a=360/o,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),r=o.h,a=o.s,i=o.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:a,v:i})),i=(i+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),r=new e(t).toRgb(),a=o.a+r.a*(1-o.a);return new e({r:(o.r*o.a+r.r*r.a*(1-o.a))/a,g:(o.g*o.a+r.g*r.a*(1-o.a))/a,b:(o.b*o.a+r.b*r.a*(1-o.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),r=o.h,a=[this],i=360/t,s=1;s<t;s++)a.push(new e({h:(r+s*i)%360,s:o.s,l:o.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Nse(e){return n.computed(()=>{const o=e.backgroundColor;return o?new Bse(o).shade(20).toString():""})}const Q$=(e,t)=>{const o=G("menu");return n.computed(()=>o.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Nse(e).value||"","active-color":e.activeTextColor||"",level:`${t}`,width:e.width||""}))},e7=ne({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Je},expandOpenIcon:{type:Je},collapseCloseIcon:{type:Je},collapseOpenIcon:{type:Je}}),A1="BSubMenu";var x1=n.defineComponent({name:A1,props:e7,setup(e,{slots:t,expose:o}){const r=n.getCurrentInstance(),{indexPath:a,parentMenu:i}=G$(r,n.computed(()=>e.index)),s=G("menu"),l=G("sub-menu"),c=n.inject("rootMenu");c||vt(A1,"can not inject root menu");const d=n.inject(`subMenu:${i.value.uid}`);d||vt(A1,"can not inject sub menu");const u=n.ref({}),f=n.ref({});let h;const p=n.ref(!1),m=n.ref(),g=n.ref(null),y=n.computed(()=>P.value==="horizontal"&&$.value?"bottom-start":"right-start"),w=n.computed(()=>P.value==="horizontal"&&$.value||P.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:di:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:ui),$=n.computed(()=>d.level===0),C=n.computed(()=>e.popperAppendToBody===void 0?$.value:Boolean(e.popperAppendToBody)),b=n.computed(()=>c.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),k=n.computed(()=>P.value==="horizontal"&&$.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),S=n.computed(()=>c.openedMenus.includes(e.index)),E=n.computed(()=>{let B=!1;return Object.values(u.value).forEach(L=>{L.active&&(B=!0)}),Object.values(f.value).forEach(L=>{L.active&&(B=!0)}),B}),N=n.computed(()=>c.props.backgroundColor||""),_=n.computed(()=>c.props.activeTextColor||""),T=n.computed(()=>c.props.textColor||""),P=n.computed(()=>c.props.mode),x=n.reactive({index:e.index,indexPath:a,active:E}),v=n.computed(()=>P.value!=="horizontal"?{color:T.value}:{borderBottomColor:E.value?c.props.activeTextColor?_.value:"":"transparent",color:E.value?_.value:T.value}),O=()=>g.value?.popperRef?.popperInstanceRef?.destroy(),I=B=>{B||O()},F=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:a.value,active:E.value})},M=(B,L=e.showTimeout)=>{B.type!=="focus"&&(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled||(d.mouseInChild.value=!0,h?.(),{stop:h}=ga(()=>{c.openMenu(e.index,a.value)},L),C.value&&i.value.vnode.el?.dispatchEvent(new MouseEvent("mouseenter"))))},z=(B=!1)=>{c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||(h?.(),d.mouseInChild.value=!1,{stop:h}=ga(()=>!p.value&&c.closeMenu(e.index,a.value),e.hideTimeout),C.value&&B&&r.parent?.type.name==="BSubMenu"&&d.handleMouseleave?.(!0))};n.watch(()=>c.props.collapse,B=>I(Boolean(B)));{const B=W=>{f.value[W.index]=W},L=W=>{delete f.value[W.index]};n.provide(`subMenu:${r.uid}`,{addSubMenu:B,removeSubMenu:L,handleMouseleave:z,mouseInChild:p,level:d.level+1})}return o({opened:S}),n.onMounted(()=>{c.addSubMenu(x),d.addSubMenu(x)}),n.onBeforeUnmount(()=>{d.removeSubMenu(x),c.removeSubMenu(x)}),()=>{const B=[t.title?.(),n.h(pe,{class:l.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>De(w.value)?n.h(r.appContext.components[w.value]):n.h(w.value)})],L=Q$(c.props,d.level+1),W=c.isMenuPopup?n.h(Xt,{ref:g,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:y.value,teleported:C.value,fallbackPlacements:k.value,transition:b.value,gpuAcceleration:!1},{content:()=>n.h("div",{class:[s.m(P.value),s.m("popup-container"),e.popperClass],onMouseenter:R=>M(R,100),onMouseleave:()=>z(!0),onFocus:R=>M(R,100)},[n.h("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${y.value}`)],style:L.value,dataTestName:"submenu"},[t.default?.()])]),default:()=>n.h("div",{class:l.e("title"),style:[v.value,{backgroundColor:N.value}],onClick:F},B)}):n.h(n.Fragment,{},[n.h("div",{class:l.e("title"),style:[v.value,{backgroundColor:N.value}],ref:m,onClick:F},B),n.h(fu,{},{default:()=>n.withDirectives(n.h("ul",{role:"menu",class:[s.b(),s.m("inline")],style:L.value},[t.default?.()]),[[n.vShow,S.value]])})]);return n.h("li",{class:[l.b(),l.is("active",E.value),l.is("opened",S.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:M,onMouseleave:()=>z(!0),onFocus:M},[W])}}});const t7=ne({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:K(Array),default:()=>st([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,width:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),M1=e=>Array.isArray(e)&&e.every(t=>De(t)),n7={close:(e,t)=>De(e)&&M1(t),open:(e,t)=>De(e)&&M1(t),select:(e,t,o,r)=>De(e)&&M1(t)&&it(o)&&(r===void 0||r instanceof Promise)};var _se=n.defineComponent({name:"BMenu",props:t7,emits:n7,setup(e,{emit:t,slots:o,expose:r}){const a=n.getCurrentInstance(),i=a.appContext.config.globalProperties.$router,s=n.ref(),l=G("menu"),c=G("sub-menu"),d=n.ref(-1),u=n.ref(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=n.ref(e.defaultActive),h=n.ref({}),p=n.ref({}),m=n.computed(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),g=()=>{const T=f.value&&h.value[f.value];if(!T||e.mode==="horizontal"||e.collapse)return;T.indexPath.forEach(x=>{const v=p.value[x];v&&y(x,v.indexPath)})},y=(T,P)=>{u.value.includes(T)||(e.uniqueOpened&&(u.value=u.value.filter(x=>P.includes(x))),u.value.push(T),t("open",T,P))},w=(T,P)=>{const x=u.value.indexOf(T);x!==-1&&u.value.splice(x,1),t("close",T,P)},$=({index:T,indexPath:P})=>{u.value.includes(T)?w(T,P):y(T,P)},C=T=>{(e.mode==="horizontal"||e.collapse)&&(u.value=[]);const{index:P,indexPath:x}=T;if(!(P===void 0||x===void 0))if(e.router&&i){const v=T.route||P,O=i.push(v).then(I=>(I||(f.value=P),I));t("select",P,x,{index:P,indexPath:x,route:v},O)}else f.value=P,t("select",P,x,{index:P,indexPath:x})},b=T=>{const P=h.value,x=P[T]||f.value&&P[f.value]||P[e.defaultActive];x?f.value=x.index:f.value=T},k=()=>{if(!s.value)return-1;const T=Array.from(s.value?.childNodes??[]).filter(M=>M.nodeName!=="#text"||M.nodeValue),P=64,x=Number.parseInt(getComputedStyle(s.value).paddingLeft,10),v=Number.parseInt(getComputedStyle(s.value).paddingRight,10),O=s.value.clientWidth-x-v;let I=0,F=0;return T.forEach((M,z)=>{I+=M.offsetWidth||0,I<=O-P&&(F=z+1)}),F===T.length?-1:F},S=(T,P=33.34)=>{let x;return()=>{x&&clearTimeout(x),x=setTimeout(()=>{T()},P)}};let E=!0;const N=()=>{const T=()=>{d.value=-1,n.nextTick(()=>{d.value=k()})};E?T():S(T)(),E=!1};n.watch(()=>e.defaultActive,T=>{h.value[T]||(f.value=""),b(T)}),n.watch(()=>e.collapse,T=>{T&&(u.value=[])}),n.watch(h.value,g);let _;n.watchEffect(()=>{e.mode==="horizontal"&&e.ellipsis?_=an(s,N).stop:_?.()});{const T=O=>{p.value[O.index]=O},P=O=>{delete p.value[O.index]},x=O=>{h.value[O.index]=O},v=O=>{delete h.value[O.index]};n.provide("rootMenu",n.reactive({props:e,openedMenus:u,items:h,subMenus:p,activeIndex:f,isMenuPopup:m,addMenuItem:x,removeMenuItem:v,addSubMenu:T,removeSubMenu:P,openMenu:y,closeMenu:w,handleMenuItemClick:C,handleSubMenuClick:$})),n.provide(`subMenu:${a.uid}`,{addSubMenu:T,removeSubMenu:P,mouseInChild:n.ref(!1),level:0})}return n.onMounted(()=>{e.mode==="horizontal"&&new cse(a.vnode.el,l.namespace.value)}),r({open:P=>{const{indexPath:x}=p.value[P];x.forEach(v=>y(v,x))},close:w,handleResize:N}),()=>{let T=o.default?.()??[];const P=[];if(e.mode==="horizontal"&&s.value){const O=pi(T),I=d.value===-1?O:O.slice(0,d.value),F=d.value===-1?[]:O.slice(d.value);F?.length&&e.ellipsis&&(T=I,P.push(n.h(x1,{index:"sub-menu-more",class:c.e("hide-arrow")},{title:()=>n.h(pe,{class:c.e("icon-more")},{default:()=>n.h(sK)}),default:()=>F})))}const x=Q$(e,0),v=n.h("ul",{key:String(e.collapse),role:"menubar",ref:s,style:x.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse},dataTestName:"menu"},[...T,...P]);return e.collapseTransition&&e.mode==="vertical"?n.h(fse,()=>v):v}}});const o7=ne({index:{type:K([String,null]),default:null},route:{type:K([String,Object])},disabled:Boolean}),r7={click:e=>De(e.index)&&Array.isArray(e.indexPath)},P1="BMenuItem",Tse=n.defineComponent({name:P1,components:{BTooltip:Xt},props:o7,emits:r7,setup(e,{emit:t}){const o=n.getCurrentInstance(),r=n.inject("rootMenu"),a=G("menu"),i=G("menu-item");r||vt(P1,"can not inject root menu");const{parentMenu:s,indexPath:l}=G$(o,n.toRef(e,"index")),c=n.inject(`subMenu:${s.value.uid}`);c||vt(P1,"can not inject sub menu");const d=n.computed(()=>e.index===r.activeIndex),u=n.reactive({index:e.index,indexPath:l,active:d}),f=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",u))};return n.onMounted(()=>{c.addSubMenu(u),r.addMenuItem(u)}),n.onBeforeUnmount(()=>{c.removeSubMenu(u),r.removeMenuItem(u)}),{Effect:j3,parentMenu:s,rootMenu:r,active:d,nsMenu:a,nsMenuItem:i,handleClick:f}}});function Ase(e,t,o,r,a,i){const s=n.resolveComponent("b-tooltip");return n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1","data-test-name":"menu-item","data-test-variant":"","data-test-state":"",onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.parentMenu.type.name==="BMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(n.openBlock(),n.createBlock(s,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:n.withCtx(()=>[n.renderSlot(e.$slots,"title")]),default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.nsMenu.be("tooltip","trigger"))},[n.renderSlot(e.$slots,"default")],2)]),_:3},8,["effect"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"title")],64))],2)}var a7=Q(Tse,[["render",Ase],["__file","menu-item.vue"]]);const i7={title:String},xse="BMenuItemGroup",Mse=n.defineComponent({name:xse,props:i7,setup(){return{ns:G("menu-item-group")}}});function Pse(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass(e.ns.b()),"data-test-name":"menu-item-group","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("title"))},[e.$slots.title?n.renderSlot(e.$slots,"title",{key:1}):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.title),1)],64))],2),n.createElementVNode("ul",null,[n.renderSlot(e.$slots,"default")])],2)}var s7=Q(Mse,[["render",Pse],["__file","menu-item-group.vue"]]);const l7=ne({collapsed:Boolean}),vse=n.defineComponent({name:"BMenuToggle"}),Ose=n.defineComponent({...vse,props:l7,setup(e){const t=G("menu-toggle");return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(t).b()),"data-test-name":"menu-toggle","data-test-variant":"","data-test-state":""},[n.createVNode(n.unref(pe),null,{default:n.withCtx(()=>[o.collapsed?(n.openBlock(),n.createBlock(n.unref(Is),{key:0})):(n.openBlock(),n.createBlock(n.unref(Os),{key:1}))]),_:1})],2))}});var c7=Q(Ose,[["__file","menu-toggle.vue"]]);const d7=Ne(_se,{MenuItem:a7,MenuItemGroup:s7,SubMenu:x1,MenuToggle:c7}),u7=Ge(a7),f7=Ge(s7),Ise=Ge(x1),h7=Ge(c7),p7=ne({icon:{type:Je,default:()=>Os},title:String,content:{type:String,default:""}}),m7={back:()=>!0},Dse=n.defineComponent({name:"BPageHeader"}),Rse=n.defineComponent({...Dse,props:p7,emits:m7,setup(e,{emit:t}){const{t:o}=He(),r=G("page-header");function a(){t("back")}return(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(r).b()),"data-test-name":"page-header","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("left")),onClick:a},[i.icon||i.$slots.icon?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("icon"))},[n.renderSlot(i.$slots,"icon",{},()=>[i.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.icon)))]),_:1})):n.createCommentVNode("v-if",!0)])],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("title"))},[n.renderSlot(i.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(i.title||n.unref(o)("b.pageHeader.title")),1)])],2)],2),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(i.$slots,"content",{},()=>[n.createTextVNode(n.toDisplayString(i.content),1)])],2)],2))}});var Lse=Q(Rse,[["__file","page-header.vue"]]);const g7=Ne(Lse),Vse=ne({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},background:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),Fse={click:e=>e instanceof MouseEvent},zse=n.defineComponent({name:"BPaginationPrev"}),Hse=n.defineComponent({...zse,props:Vse,emits:Fse,setup(e){const t=e,o=n.computed(()=>t.disabled||t.currentPage<=1);return(r,a)=>r.prevText?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:!r.background,small:"",disabled:n.unref(o),"aria-disabled":n.unref(o),onClick:a[0]||(a[0]=i=>r.$emit("click",i))},{default:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(r.prevText),1)]),_:1},8,["ghost","disabled","aria-disabled"])):(n.openBlock(),n.createBlock(n.unref(ve),{key:1,ghost:!r.background,small:"",disabled:n.unref(o),"aria-disabled":n.unref(o),icon:n.unref(co),onClick:a[1]||(a[1]=i=>r.$emit("click",i))},null,8,["ghost","disabled","aria-disabled","icon"]))}});var Wse=Q(Hse,[["__file","prev.vue"]]);const Kse=ne({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},background:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),jse=n.defineComponent({name:"BPaginationNext"}),Use=n.defineComponent({...jse,props:Kse,emits:["click"],setup(e){const t=e,o=n.computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,a)=>r.nextText?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,ghost:!r.background,small:"",disabled:n.unref(o),"aria-disabled":n.unref(o),onClick:a[0]||(a[0]=i=>r.$emit("click",i))},{default:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(r.nextText),1)]),_:1},8,["ghost","disabled","aria-disabled"])):(n.openBlock(),n.createBlock(n.unref(ve),{key:1,ghost:!r.background,small:"",disabled:n.unref(o),"aria-disabled":n.unref(o),icon:n.unref(Un),onClick:a[1]||(a[1]=i=>r.$emit("click",i))},null,8,["ghost","disabled","aria-disabled","icon"]))}});var Gse=Q(Use,[["__file","next.vue"]]);const v1="BSelectGroup",Dl="BSelect";function Yse(e,t){const o=n.inject(Dl),r=n.inject(v1,{disabled:!1}),a=n.computed(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=n.computed(()=>o.props.multiple?f(o.props.modelValue,e.value):h(e.value,o.props.modelValue)),s=n.computed(()=>{if(o.props.multiple){const g=o.props.modelValue||[];return!i.value&&g.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),l=n.computed(()=>e.label||(a.value?"":e.value)),c=n.computed(()=>e.value||e.label||""),d=n.computed(()=>e.disabled||t.groupDisabled||s.value),u=n.getCurrentInstance(),f=(g=[],y)=>{if(a.value){const w=o.props.valueKey;return g&&g.some($=>rt($,w)===rt(y,w))}else return g&&g.includes(y)},h=(g,y)=>{if(a.value){const{valueKey:w}=o.props;return rt(g,w)===rt(y,w)}else return g===y},p=()=>{!e.disabled&&!r.disabled&&(o.hoverIndex=o.optionsArray.indexOf(u.proxy))};n.watch(()=>l.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,y)=>{const{remote:w,valueKey:$}=o.props;if(!e.created&&!w){if($&&typeof g=="object"&&typeof y=="object"&&g[$]===y[$])return;o.setSelected()}}),n.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=n.toRaw(o);return n.watch(m,g=>{const{query:y}=n.unref(g),w=new RegExp(gz(y),"i");t.visible=w.test(l.value)||e.created,t.visible||o.filteredOptionsCount--}),{select:o,currentLabel:l,currentValue:c,itemSelected:i,isDisabled:d,hoverItem:p}}const qse=n.defineComponent({name:"BOption",componentName:"BOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=G("select"),o=n.reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:a,isDisabled:i,select:s,hoverItem:l}=Yse(e,o),{visible:c,hover:d}=n.toRefs(o),u=n.getCurrentInstance().proxy;s.onOptionCreate(u),n.onBeforeUnmount(()=>{const h=u.value,{selected:p}=s,g=(s.props.multiple?p:[p]).some(y=>y.value===u.value);n.nextTick(()=>{s.cachedOptions.get(h)===u&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,u)});function f(){e.disabled!==!0&&o.groupDisabled!==!0&&s.handleOptionSelect(u,!0)}return{ns:t,currentLabel:r,itemSelected:a,isDisabled:i,select:s,hoverItem:l,visible:c,hover:d,selectOptionClick:f,states:o}}});function Zse(e,t,o,r,a,i){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),"data-test-name":"option","data-test-variant":"","data-test-state":"",onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=n.withModifiers((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],34)),[[n.vShow,e.visible]])}var O1=Q(qse,[["render",Zse],["__file","option.vue"]]);const Xse=n.defineComponent({name:"BSelectDropdown",componentName:"BSelectDropdown",setup(){const e=n.inject(Dl),t=G("select"),o=n.computed(()=>e.props.popperClass),r=n.computed(()=>e.props.multiple),a=n.computed(()=>e.props.fitInputWidth),i=n.ref("");function s(){i.value=`${e.selectWrapper?.offsetWidth}px`}return n.onMounted(()=>{s(),an(e.selectWrapper,s)}),{ns:t,minWidth:i,popperClass:o,isMultiple:r,isFitInputWidth:a}}});function Jse(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth}),"data-test-name":"select-dropdown","data-test-variant":"","data-test-state":""},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([e.ns.e("header")])},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.ns.e("footer")])},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Qse=Q(Xse,[["render",Jse],["__file","select-dropdown.vue"]]);function ele(e){const{t}=He();return n.reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("b.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const tle=(e,t,o)=>{const{t:r}=He(),a=G("select"),i=n.ref(null),s=n.ref(null),l=n.ref(null),c=n.ref(null),d=n.ref(null),u=n.ref(null),f=n.ref(-1),h=n.shallowRef({query:""}),p=n.shallowRef(""),m=n.inject(Gh,{}),g=n.inject(Ir,{}),y=n.computed(()=>!e.filterable||e.multiple||!t.visible),w=n.computed(()=>e.disabled||m.disabled),$=n.computed(()=>{const V=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!w.value&&t.inputHovering&&V}),C=n.computed(()=>e.suffixIcon),b=n.computed(()=>a.is("reverse",C.value&&t.visible)),k=n.computed(()=>e.remote?300:0),S=n.computed(()=>e.loading?e.loadingText||r("b.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("b.select.noMatch"):t.options.size===0?e.noDataText||r("b.select.noData"):null),E=n.computed(()=>Array.from(t.options.values())),N=n.computed(()=>Array.from(t.cachedOptions.values())),_=n.computed(()=>{const V=E.value.filter(Z=>!Z.created).some(Z=>Z.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!V}),T=At(),P=n.computed(()=>["small"].includes(T.value)?"small":"default"),x=n.computed({get(){return t.visible&&S.value!==!1},set(V){t.visible=V}});n.watch([()=>w.value,()=>T.value,()=>m.size],()=>{n.nextTick(()=>{v()})}),n.watch(()=>e.placeholder,V=>{t.cachedPlaceHolder=t.currentPlaceholder=V}),n.watch(()=>e.modelValue,(V,Z)=>{e.multiple&&(v(),V&&V.length>0||s.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",O(t.query))),M(),e.filterable&&!e.multiple&&(t.inputLength=20),Bn(V,Z)||g.validate?.("change").catch(he=>void 0)},{flush:"post",deep:!0}),n.watch(()=>t.visible,V=>{V?(l.value?.updatePopper?.(),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?s.value?.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),O(t.query),!e.multiple&&!e.remote&&(h.value.query="",n.triggerRef(h),n.triggerRef(p)))):(s.value&&s.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,B(),n.nextTick(()=>{s.value&&s.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),o.emit("visible-change",V)}),n.watch(()=>t.options.entries(),()=>{if(!Re)return;l.value?.updatePopper?.(),e.multiple&&v();const V=d.value?.querySelectorAll("input")||[];Array.from(V).includes(document.activeElement)||M(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&F()},{flush:"post"}),n.watch(()=>t.hoverIndex,V=>{typeof V=="number"&&V>-1&&(f.value=E.value[V]||{}),E.value.forEach(Z=>{Z.hover=f.value===Z})});const v=()=>{e.collapseTags&&!e.filterable||n.nextTick(()=>{if(!i.value)return;const V=i.value.$el.querySelector("input"),Z=c.value,he=Yj(T.value||m.size);V.style.height=`${t.selected.length===0?he:Math.max(Z?Z.clientHeight+(Z.clientHeight>he?6:0):0,he)}px`,t.tagInMultiLine=Number.parseFloat(V.style.height)>=he,t.visible&&S.value!==!1&&l.value?.updatePopper?.()})},O=V=>{if(!(t.previousQuery===V||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=V;return}t.previousQuery=V,n.nextTick(()=>{t.visible&&l.value?.updatePopper?.()}),t.hoverIndex=-1,e.multiple&&e.filterable&&n.nextTick(()=>{const Z=s.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Z):Z,I(),v()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(V)):typeof e.filterMethod=="function"?(e.filterMethod(V),n.triggerRef(p)):(t.filteredOptionsCount=t.optionsCount,h.value.query=V,n.triggerRef(h),n.triggerRef(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&F()}},I=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=s.value.value?"":t.cachedPlaceHolder)},F=()=>{const V=E.value.filter(be=>be.visible&&!be.disabled&&!be.states.groupDisabled),Z=V.find(be=>be.created),he=V[0];t.hoverIndex=te(E.value,Z||he)},M=()=>{if(e.multiple)t.selectedLabel="";else{const Z=z(e.modelValue);Z.props?.created?(t.createdLabel=Z.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Z.currentLabel,t.selected=Z,e.filterable&&(t.query=t.selectedLabel);return}const V=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Z=>{V.push(z(Z))}),t.selected=V,n.nextTick(()=>{v()})},z=V=>{let Z;const he=Ph(V).toLowerCase()==="object",be=Ph(V).toLowerCase()==="null",Ze=Ph(V).toLowerCase()==="undefined";for(let Dn=t.cachedOptions.size-1;Dn>=0;Dn--){const qo=N.value[Dn];if(he?rt(qo.value,e.valueKey)===rt(V,e.valueKey):qo.value===V){Z={value:V,currentLabel:qo.currentLabel,isDisabled:qo.isDisabled};break}}if(Z)return Z;const en=he?V.label:!be&&!Ze?V:"",In={value:V,currentLabel:en};return e.multiple&&(In.hitState=!1),In},B=()=>{setTimeout(()=>{const V=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Z=>E.value.findIndex(he=>rt(he,V)===rt(Z,V)))):t.hoverIndex=-1:t.hoverIndex=E.value.findIndex(Z=>ce(Z)===ce(t.selected))},300)},L=()=>{W(),l.value?.updatePopper?.(),e.multiple&&!e.filterable&&v()},W=()=>{t.inputWidth=i.value?.$el.getBoundingClientRect().width},R=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,O(t.query))},H=Zt(()=>{R()},k.value),j=Zt(V=>{O(V.target.value)},k.value),U=V=>{Bn(e.modelValue,V)||o.emit(ct,V)},re=V=>{if(V.target.value.length<=0&&!oe()){const Z=e.modelValue.slice();Z.pop(),o.emit(Pe,Z),U(Z)}V.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},J=(V,Z)=>{const he=t.selected.indexOf(Z);if(he>-1&&!w.value){const be=e.modelValue.slice();be.splice(he,1),o.emit(Pe,be),U(be),o.emit("remove-tag",Z.value)}V.stopPropagation()},Y=V=>{V.stopPropagation();const Z=e.multiple?[]:"";if(typeof Z!="string")for(const he of t.selected)he.isDisabled&&Z.push(he.value);o.emit(Pe,Z),U(Z),t.visible=!1,o.emit("clear")},q=(V,Z)=>{if(e.multiple){const he=(e.modelValue||[]).slice(),be=te(he,V.value);be>-1?he.splice(be,1):(e.multipleLimit<=0||he.length<e.multipleLimit)&&he.push(V.value),o.emit(Pe,he),U(he),V.created&&(t.query="",O(""),t.inputLength=20),e.filterable&&s.value?.focus()}else o.emit(Pe,V.value),U(V.value),t.visible=!1;t.isSilentBlur=Z,ue(),!t.visible&&n.nextTick(()=>{ge(V)})},te=(V=[],Z)=>{if(!it(Z))return V.indexOf(Z);const he=e.valueKey;let be=-1;return V.some((Ze,en)=>rt(Ze,he)===rt(Z,he)?(be=en,!0):!1),be},ue=()=>{t.softFocus=!0;const V=s.value||i.value;V&&V?.focus()},ge=V=>{const Z=Array.isArray(V)?V[0]:V;let he=null;if(Z?.value){const be=E.value.filter(Ze=>Ze.value===Z.value);be.length>0&&(he=be[0].$el)}if(l.value&&he){const be=l.value?.popperRef?.contentRef?.querySelector?.(`.${a.be("dropdown","wrap")}`);be&&pC(be,he)}u.value?.handleScroll()},Ee=V=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(V.value,V),t.cachedOptions.set(V.value,V)},Te=(V,Z)=>{t.options.get(V)===Z&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(V))},ye=V=>{V.code!==de.backspace&&oe(!1),t.inputLength=s.value.value.length*15+20,v()},oe=V=>{if(!Array.isArray(t.selected))return;const Z=t.selected[t.selected.length-1];if(!!Z)return V===!0||V===!1?(Z.hitState=V,V):(Z.hitState=!Z.hitState,Z.hitState)},se=V=>{const Z=V.target.value;if(V.type==="compositionend")t.isOnComposition=!1,n.nextTick(()=>O(Z));else{const he=Z[Z.length-1]||"";t.isOnComposition=!jc(he)}},me=()=>{n.nextTick(()=>ge(t.selected))},ee=V=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),o.emit("focus",V))},le=()=>{t.visible=!1,i.value?.blur()},Ce=V=>{n.nextTick(()=>{t.isSilentBlur?t.isSilentBlur=!1:o.emit("blur",V)}),t.softFocus=!1},X=V=>{Y(V)},ie=()=>{t.visible=!1},we=V=>{t.visible&&(V.preventDefault(),V.stopPropagation(),t.visible=!1)},fe=()=>{e.automaticDropdown||w.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&(s.value||i.value)?.focus())},$e=()=>{t.visible?E.value[t.hoverIndex]&&q(E.value[t.hoverIndex],void 0):fe()},ce=V=>it(V.value)?rt(V.value,e.valueKey):V.value,ke=n.computed(()=>E.value.filter(V=>V.visible).every(V=>V.disabled)),Ae=V=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ke.value){V==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):V==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Z=E.value[t.hoverIndex];(Z.disabled===!0||Z.states.groupDisabled===!0||!Z.visible)&&Ae(V),n.nextTick(()=>ge(f.value))}};return{optionsArray:E,selectSize:T,handleResize:L,debouncedOnInputChange:H,debouncedQueryChange:j,deletePrevTag:re,deleteTag:J,deleteSelected:Y,handleOptionSelect:q,scrollToOption:ge,readonly:y,resetInputHeight:v,showClose:$,iconComponent:C,iconReverse:b,showNewOption:_,collapseTagSize:P,setSelected:M,managePlaceholder:I,selectDisabled:w,emptyText:S,toggleLastOptionHitState:oe,resetInputState:ye,handleComposition:se,onOptionCreate:Ee,onOptionDestroy:Te,handleMenuEnter:me,handleFocus:ee,blur:le,handleBlur:Ce,handleClearClick:X,handleClose:ie,handleKeydownEscape:we,toggleMenu:fe,selectOption:$e,getValueKey:ce,navigateOptions:Ae,dropMenuVisible:x,queryChange:h,groupQueryChange:p,reference:i,input:s,tooltipRef:l,tags:c,selectWrapper:d,scrollbar:u}},y7="BSelect",nle=n.defineComponent({name:y7,componentName:y7,components:{BInput:hn,BSelectMenu:Qse,BOption:O1,BTag:Ni,BScrollbar:bo,BTooltip:Xt,BIcon:pe},directives:{ClickOutside:Bi},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:hi},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Ft.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Je,default:fi},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Je,default:di},tagType:{..._d.type,default:"info"},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:$a,default:"bottom-start"}},emits:[Pe,ct,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const o=G("select"),r=G("input"),{t:a}=He(),i=ele(e),{optionsArray:s,selectSize:l,readonly:c,handleResize:d,collapseTagSize:u,debouncedOnInputChange:f,debouncedQueryChange:h,deletePrevTag:p,deleteTag:m,deleteSelected:g,handleOptionSelect:y,scrollToOption:w,setSelected:$,resetInputHeight:C,managePlaceholder:b,showClose:k,selectDisabled:S,iconComponent:E,iconReverse:N,showNewOption:_,emptyText:T,toggleLastOptionHitState:P,resetInputState:x,handleComposition:v,onOptionCreate:O,onOptionDestroy:I,handleMenuEnter:F,handleFocus:M,blur:z,handleBlur:B,handleClearClick:L,handleClose:W,handleKeydownEscape:R,toggleMenu:H,selectOption:j,getValueKey:U,navigateOptions:re,dropMenuVisible:J,reference:Y,input:q,tooltipRef:te,tags:ue,selectWrapper:ge,scrollbar:Ee,queryChange:Te,groupQueryChange:ye,handleMouseEnter:oe,handleMouseLeave:se}=tle(e,i,t),{focus:me}=AC(Y),{inputWidth:ee,selected:le,inputLength:Ce,filteredOptionsCount:X,visible:ie,softFocus:we,selectedLabel:fe,hoverIndex:$e,query:ce,inputHovering:ke,currentPlaceholder:Ae,menuVisibleOnFocus:V,isOnComposition:Z,isSilentBlur:he,options:be,cachedOptions:Ze,optionsCount:en,prefixWidth:In,tagInMultiLine:Dn}=n.toRefs(i),qo=n.computed(()=>{const ae=[o.b()],Oe=n.unref(l);return Oe&&ae.push(o.m(Oe)),e.disabled&&ae.push(o.m("disabled")),ae}),Ya=n.computed(()=>({maxWidth:`${n.unref(ee)-32}px`,width:"100%"})),ln=n.computed(()=>({maxWidth:`${n.unref(ee)>123?n.unref(ee)-123:n.unref(ee)-75}px`}));n.provide(Dl,n.reactive({props:e,options:be,optionsArray:s,cachedOptions:Ze,optionsCount:en,filteredOptionsCount:X,hoverIndex:$e,handleOptionSelect:y,onOptionCreate:O,onOptionDestroy:I,selectWrapper:ge,selected:le,setSelected:$,queryChange:Te,groupQueryChange:ye})),n.onMounted(()=>{i.cachedPlaceHolder=Ae.value=e.placeholder||a("b.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Ae.value=""),an(ge,d),e.remote&&e.multiple&&C(),n.nextTick(()=>{const ae=Y.value&&Y.value.$el;if(!!ae&&(ee.value=ae.getBoundingClientRect().width,t.slots.prefix)){const Oe=ae.querySelector(`.${r.e("prefix")}`);In.value=Math.max(Oe.getBoundingClientRect().width+5,30)}}),$()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Pe,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Pe,"");const qa=n.computed(()=>te.value?.popperRef?.contentRef);return{tagInMultiLine:Dn,prefixWidth:In,selectSize:l,readonly:c,handleResize:d,collapseTagSize:u,debouncedOnInputChange:f,debouncedQueryChange:h,deletePrevTag:p,deleteTag:m,deleteSelected:g,handleOptionSelect:y,scrollToOption:w,inputWidth:ee,selected:le,inputLength:Ce,filteredOptionsCount:X,visible:ie,softFocus:we,selectedLabel:fe,hoverIndex:$e,query:ce,inputHovering:ke,currentPlaceholder:Ae,menuVisibleOnFocus:V,isOnComposition:Z,isSilentBlur:he,options:be,resetInputHeight:C,managePlaceholder:b,showClose:k,selectDisabled:S,iconComponent:E,iconReverse:N,showNewOption:_,emptyText:T,toggleLastOptionHitState:P,resetInputState:x,handleComposition:v,handleMenuEnter:F,handleFocus:M,blur:z,handleBlur:B,handleClearClick:L,handleClose:W,handleKeydownEscape:R,toggleMenu:H,selectOption:j,getValueKey:U,navigateOptions:re,dropMenuVisible:J,focus:me,reference:Y,input:q,tooltipRef:te,popperPaneRef:qa,tags:ue,selectWrapper:ge,scrollbar:Ee,wrapperKls:qo,selectTagsStyle:Ya,nsSelect:o,tagTextStyle:ln,handleMouseEnter:oe,handleMouseLeave:se}}}),ole=["disabled","autocomplete"];function rle(e,t,o,r,a,i){const s=n.resolveComponent("b-tag"),l=n.resolveComponent("b-tooltip"),c=n.resolveComponent("b-icon"),d=n.resolveComponent("b-input"),u=n.resolveComponent("b-option"),f=n.resolveComponent("b-scrollbar"),h=n.resolveComponent("b-select-menu"),p=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectWrapper",class:n.normalizeClass(e.wrapperKls),"data-test-name":"select","data-test-variant":"","data-test-state":"",onMouseenter:t[22]||(t[22]=(...m)=>e.handleMouseEnter&&e.handleMouseEnter(...m)),onMouseleave:t[23]||(t[23]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m)),onClick:t[24]||(t[24]=n.withModifiers((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[n.createVNode(l,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=m=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=m=>e.inputHovering=!1)},[e.multiple?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"tags",class:n.normalizeClass(e.nsSelect.e("tags")),style:n.normalizeStyle(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[n.createVNode(s,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=m=>e.deleteTag(m,e.selected[0]))},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle(e.tagTextStyle)},n.toDisplayString(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(n.openBlock(),n.createBlock(s,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:n.withCtx(()=>[e.collapseTagsTooltip?(n.openBlock(),n.createBlock(l,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+n.toDisplayString(e.selected.length-1),3)]),content:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.nsSelect.e("collapse-tags"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.selected.slice(1),(m,g)=>(n.openBlock(),n.createElementBlock("div",{key:g,class:n.normalizeClass(e.nsSelect.e("collapse-tag"))},[(n.openBlock(),n.createBlock(s,{key:e.getValueKey(m),class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},n.toDisplayString(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+n.toDisplayString(e.selected.length-1),3))]),_:1},8,["size","type"])):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.createCommentVNode(" <div> "),e.collapseTags?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.Transition,{key:1,onAfterLeave:e.resetInputHeight},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.selected,m=>(n.openBlock(),n.createBlock(s,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},n.toDisplayString(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),n.createCommentVNode(" </div> "),e.filterable?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=m=>e.query=m),type:"text",class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[3]||(t[3]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[4]||(t[4]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[5]||(t[5]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[6]||(t[6]=n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=n.withKeys((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[9]||(t[9]=n.withKeys(n.withModifiers((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[10]||(t[10]=n.withKeys((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[11]||(t[11]=n.withKeys(m=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[14]||(t[14]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[15]||(t[15]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,ole)),[[n.vModelText,e.query]]):n.createCommentVNode("v-if",!0)],6)):n.createCommentVNode("v-if",!0),n.createVNode(d,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=m=>e.selectedLabel=m),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,large:e.large,small:e.small,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:n.normalizeClass([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,"suffix-class":"is-action",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=n.withKeys(m=>e.visible=!1,["tab"]))]},n.createSlots({suffix:n.withCtx(()=>[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.selected?{name:"content",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"selected",{value:e.selected.value,label:e.selectedLabel})]),key:"1"}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","large","small","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:n.withCtx(()=>[n.createVNode(h,null,n.createSlots({default:n.withCtx(()=>[n.withDirectives(n.createVNode(f,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(u,{key:0,value:e.query,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[n.vShow,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.$slots.empty?n.renderSlot(e.$slots,"empty",{key:0}):(n.openBlock(),n.createElementBlock("p",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},n.toDisplayString(e.emptyText),3))],64)):n.createCommentVNode("v-if",!0)]),_:2},[e.$slots.dropdownHeader?{name:"header",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"dropdownHeader")]),key:"0"}:void 0,e.$slots.dropdownFooter?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"dropdownFooter")]),key:"1"}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],34)),[[p,e.handleClose,e.popperPaneRef]])}var ale=Q(nle,[["render",rle],["__file","select.vue"]]);const ile=n.defineComponent({name:"BOptionGroup",componentName:"BOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=G("select"),o=n.ref(!0),r=n.getCurrentInstance(),a=n.ref([]);n.provide(v1,n.reactive({...n.toRefs(e)}));const i=n.inject(Dl);n.onMounted(()=>{a.value=s(r.subTree)});const s=c=>{const d=[];return Array.isArray(c.children)&&c.children.forEach(u=>{u.type&&u.type.name==="BOption"&&u.component&&u.component.proxy?d.push(u.component.proxy):u.children?.length&&d.push(...s(u))}),d},{groupQueryChange:l}=n.toRaw(i);return n.watch(l,()=>{o.value=a.value.some(c=>c.visible===!0)},{flush:"post"}),{visible:o,ns:t}}});function sle(e,t,o,r,a,i){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{class:n.normalizeClass(e.ns.be("group","wrap")),"data-test-name":"option-group","data-test-variant":"","data-test-state":""},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var b7=Q(ile,[["render",sle],["__file","option-group.vue"]]);const jo=Ne(ale,{Option:O1,OptionGroup:b7}),Fa=Ge(O1),C7=Ge(b7),I1=()=>n.inject(Yh,{}),lle=ne({pageSize:{type:Number,required:!0},pageSizes:{type:K(Array),default:()=>st([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:It}),cle=n.defineComponent({name:"BPaginationSizes"}),dle=n.defineComponent({...cle,props:lle,emits:["page-size-change"],setup(e,{emit:t}){const o=e,r=G("pagination"),a=I1(),i=n.ref(o.pageSize);n.watch(()=>o.pageSizes,(c,d)=>{if(!Bn(c,d)&&Array.isArray(c)){const u=c.includes(o.pageSize)?o.pageSize:o.pageSizes[0];t("page-size-change",u)}}),n.watch(()=>o.pageSize,c=>{i.value=c});const s=n.computed(()=>o.pageSizes);function l(c){c!==i.value&&(i.value=c,a.handleSizeChange?.(Number(c)))}return(c,d)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(r).e("sizes"))},[n.createVNode(n.unref(jo),{"model-value":i.value,disabled:c.disabled,"popper-class":c.popperClass,size:"small",onChange:l},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),u=>(n.openBlock(),n.createBlock(n.unref(Fa),{key:u,value:u,label:u},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class"])],2))}});var ule=Q(dle,[["__file","sizes.vue"]]);const fle=ne({size:It}),hle=["disabled"],ple=n.defineComponent({name:"BPaginationJumper"}),mle=n.defineComponent({...ple,props:fle,setup(e){const{t}=He(),o=G("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:s}=I1(),l=n.ref(),c=n.computed(()=>l.value??i?.value);function d(f){l.value=+f}function u(f){f=Math.trunc(+f),s?.(+f),l.value=void 0}return(f,h)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).e("jump")),disabled:n.unref(a)},[n.createElementVNode("span",null,n.toDisplayString(n.unref(t)("b.pagination.goto")),1),n.createVNode(n.unref(hn),{size:"small",class:n.normalizeClass([n.unref(o).e("editor"),n.unref(o).is("in-pagination")]),min:1,max:n.unref(r),disabled:n.unref(a),"model-value":n.unref(c),type:"number","onUpdate:modelValue":d,onChange:u},null,8,["class","max","disabled","model-value"]),n.createTextVNode(" "+n.toDisplayString(n.unref(t)("b.pagination.pageClassifier")),1)],10,hle))}});var gle=Q(mle,[["__file","jumper.vue"]]);const yle=ne({total:{type:Number,default:1e3},current:{type:Number,default:1},sizes:{type:Number,default:10}}),ble=["disabled"],Cle=n.defineComponent({name:"BPaginationTotal"}),wle=n.defineComponent({...Cle,props:yle,setup(e){const{t}=He(),o=G("pagination"),{disabled:r}=I1();return(a,i)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(o).e("total")),disabled:n.unref(r)},n.toDisplayString(n.unref(t)("b.pagination.total",{first:(a.current-1)*a.sizes+1,last:a.current*a.sizes>a.total?a.total:a.current*a.sizes,total:a.total})),11,ble))}});var $le=Q(wle,[["__file","total.vue"]]);const kle=ne({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean,background:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),Sle=["onKeyup"],Ele=n.defineComponent({name:"BPaginationPager"}),Ble=n.defineComponent({...Ele,props:kle,emits:["change"],setup(e,{emit:t}){const o=e,r=G("pager"),a=n.ref(!1),i=n.ref(!1),s=n.ref(!1),l=n.ref(!1),c=n.ref(!1),d=n.ref(!1),u=n.computed(()=>{const y=o.pagerCount,w=(y-1)/2,$=Number(o.currentPage),C=Number(o.pageCount);let b=!1,k=!1;C>y&&($>y-w&&(b=!0),$<C-w&&(k=!0));const S=[];if(b&&!k){const E=C-(y-2);for(let N=E;N<C;N++)S.push(N)}else if(!b&&k)for(let E=2;E<y;E++)S.push(E);else if(b&&k){const E=Math.floor(y/2)-1;for(let N=$-E;N<=$+E;N++)S.push(N)}else for(let E=2;E<C;E++)S.push(E);return S}),f=n.computed(()=>o.disabled?-1:0);n.watchEffect(()=>{const y=(o.pagerCount-1)/2;a.value=!1,i.value=!1,o.pageCount>o.pagerCount&&(o.currentPage>o.pagerCount-y&&(a.value=!0),o.currentPage<o.pageCount-y&&(i.value=!0))});function h(y=!1){o.disabled||(y?s.value=!0:l.value=!0)}function p(y=!1){y?c.value=!0:d.value=!0}function m(y){const w=y.target;if(w.tagName.toLowerCase()==="button"&&Array.from(w.classList).includes("number")){const $=Number(w.textContent);$!==o.currentPage&&t("change",$)}else w.tagName.toLowerCase()==="button"&&Array.from(w.classList).includes("more")&&g(y)}function g(y){const w=y.target;if(w.tagName.toLowerCase()==="div"||o.disabled)return;let $=Number(w.textContent);const C=o.pageCount,b=o.currentPage,k=o.pagerCount-2;w.className.includes("more")&&(w.className.includes("quickprev")?$=b-k:w.className.includes("quicknext")&&($=b+k)),Number.isNaN(+$)||($<1&&($=1),$>C&&($=C)),$!==b&&t("change",$)}return(y,w)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(r).b()),onClick:g,onKeyup:n.withKeys(m,["enter"])},[y.pageCount>0?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,small:"",ghost:!y.background,disabled:y.disabled,active:y.currentPage===1,"aria-current":y.currentPage===1,class:n.normalizeClass([[n.unref(r).is("active",y.currentPage===1),n.unref(r).is("disabled",y.disabled)],"number"]),tabindex:n.unref(f)},{default:n.withCtx(()=>[n.createTextVNode(" 1 ")]),_:1},8,["ghost","disabled","active","aria-current","class","tabindex"])):n.createCommentVNode("v-if",!0),a.value?(n.openBlock(),n.createBlock(n.unref(ve),{key:1,small:"",ghost:!y.background,class:n.normalizeClass(["more","btn-quickprev",n.unref(r).is("disabled",y.disabled)]),icon:n.unref(Os),disabled:y.disabled,tabindex:n.unref(f),onMouseenter:w[0]||(w[0]=$=>h(!0)),onMouseleave:w[1]||(w[1]=$=>s.value=!1),onFocus:w[2]||(w[2]=$=>p(!0)),onBlur:w[3]||(w[3]=$=>c.value=!1)},null,8,["ghost","class","icon","disabled","tabindex"])):n.createCommentVNode("v-if",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),$=>(n.openBlock(),n.createBlock(n.unref(ve),{key:$,small:"",ghost:!y.background,disabled:y.disabled,active:y.currentPage===$,class:n.normalizeClass([[n.unref(r).is("active",y.currentPage===$),n.unref(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===$,tabindex:n.unref(f)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString($),1)]),_:2},1032,["ghost","disabled","active","class","aria-current","tabindex"]))),128)),i.value?(n.openBlock(),n.createBlock(n.unref(ve),{key:2,small:"",ghost:!y.background,disabled:y.disabled,class:n.normalizeClass(["more","btn-quicknext",n.unref(r).is("disabled",y.disabled)]),icon:n.unref(Is),tabindex:n.unref(f),onMouseenter:w[4]||(w[4]=$=>h()),onMouseleave:w[5]||(w[5]=$=>l.value=!1),onFocus:w[6]||(w[6]=$=>p()),onBlur:w[7]||(w[7]=$=>d.value=!1)},null,8,["ghost","disabled","class","icon","tabindex"])):n.createCommentVNode("v-if",!0),y.pageCount>1?(n.openBlock(),n.createBlock(n.unref(ve),{key:3,small:"",ghost:!y.background,disabled:y.disabled,active:y.currentPage===y.pageCount,class:n.normalizeClass([[n.unref(r).is("active",y.currentPage===y.pageCount),n.unref(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===y.pageCount,tabindex:n.unref(f)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.pageCount),1)]),_:1},8,["ghost","disabled","active","class","aria-current","tabindex"])):n.createCommentVNode("v-if",!0)],42,Sle))}});var Nle=Q(Ble,[["__file","pager.vue"]]);const Gt=e=>typeof e!="number",w7=ne({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["sizes","total","->","pager"].join(", ")},pageSizes:{type:K(Array),default:()=>st([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),$7={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},k7="BPagination";var _le=n.defineComponent({name:k7,props:w7,emits:$7,setup(e,{emit:t,slots:o}){const{t:r}=He(),a=G("pagination"),i=n.getCurrentInstance().vnode.props||{},s="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,l="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,c=n.computed(()=>{if(Gt(e.total)&&Gt(e.pageCount)||!Gt(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(Gt(e.pageCount)){if(!Gt(e.total)&&!Gt(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),d=n.ref(Gt(e.defaultPageSize)?10:e.defaultPageSize),u=n.ref(Gt(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=n.computed({get(){return Gt(e.pageSize)?d.value:e.pageSize},set(C){Gt(e.pageSize)&&(d.value=C),l&&(t("update:page-size",C),t("size-change",C))}}),h=n.computed(()=>{let C=0;return Gt(e.pageCount)?Gt(e.total)||(C=Math.max(1,Math.ceil(e.total/f.value))):C=e.pageCount,C}),p=n.computed({get(){return Gt(e.currentPage)?u.value:e.currentPage},set(C){let b=C;C<1?b=1:C>h.value&&(b=h.value),Gt(e.currentPage)&&(u.value=b),s&&(t("update:current-page",b),t("current-change",b))}});n.watch(h,C=>{p.value>C&&(p.value=C)});function m(C){p.value=C}function g(C){f.value=C;const b=h.value;p.value>b&&(p.value=b)}function y(){e.disabled||(p.value-=1,t("prev-click",p.value))}function w(){e.disabled||(p.value+=1,t("next-click",p.value))}function $(C,b){C&&(C.props||(C.props={}),C.props.class=[C.props.class,b].join(" "))}return n.provide(Yh,{pageCount:h,disabled:n.computed(()=>e.disabled),currentPage:p,changeEvent:m,handleSizeChange:g}),()=>{if(!c.value)return r("b.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const C=[],b=[],k=n.h("div",{class:a.e("rightwrapper")},b),S={prev:n.h(Wse,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,onClick:y,background:e.background}),jumper:n.h(gle,{size:e.small?"small":"default"}),pager:n.h(Nle,{currentPage:p.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled,background:e.background}),next:n.h(Gse,{disabled:e.disabled,currentPage:p.value,pageCount:h.value,nextText:e.nextText,onClick:w,background:e.background}),sizes:n.h(ule,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:o?.default?.()??null,total:n.h($le,{total:Gt(e.total)?0:e.total,current:Gt(e.currentPage)?1:e.currentPage,sizes:Gt(e.pageSize)?10:e.pageSize})},E=e.layout.split(",").map(_=>_.trim());let N=!1;return E.forEach(_=>{if(_==="->"){N=!0;return}N?b.push(S[_]):C.push(S[_])}),$(C[0],a.is("first")),$(C[C.length-1],a.is("last")),N&&b.length>0&&($(b[0],a.is("first")),$(b[b.length-1],a.is("last")),C.push(k)),n.h("div",{role:"pagination","aria-label":"pagination",class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}],dataTestName:"pagination"},C)}}});const S7=Ne(_le),Tle=[...vp],E7=ne({title:String,confirmButtonText:String,cancelButtonText:String,cancelButtonType:{type:String,values:Tle,default:"default"},icon:{type:Je,default:CK},iconColor:{type:String,default:"#646464"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:K(Function)},onCancel:{type:K(Function)},teleported:Ft.teleported,persistent:Ft.persistent,width:{type:[String,Number],default:240}}),Ale=n.defineComponent({name:"BPopconfirm"}),xle=n.defineComponent({...Ale,props:E7,setup(e){const t=e,{t:o}=He(),r=G("popconfirm"),a=n.ref(),i=()=>{a.value?.onClose?.()},s=n.computed(()=>({width:Ot(t.width)})),l=f=>{t.onConfirm?.(f),i()},c=f=>{t.onCancel?.(f),i()},d=n.computed(()=>t.confirmButtonText||o("b.popconfirm.confirmButtonText")),u=n.computed(()=>t.cancelButtonText||o("b.popconfirm.cancelButtonText"));return(f,h)=>(n.openBlock(),n.createBlock(n.unref(Xt),n.mergeProps({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},f.$attrs,{"popper-class":`${n.unref(r).namespace.value}-popover`,"popper-style":n.unref(s),teleported:f.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":f.hideAfter,persistent:f.persistent}),{content:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).b()),"data-test-name":"popconfirm","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("main"))},[!f.hideIcon&&f.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(r).e("icon")),size:24,style:n.normalizeStyle({color:f.iconColor})},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.icon)))]),_:1},8,["class","style"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(f.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(f.title),1)])],2)],2),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("action"))},[n.createVNode(n.unref(ve),{small:"",ghost:f.cancelButtonType==="ghost",onClick:c},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["ghost"]),n.createVNode(n.unref(ve),{small:"",primary:"",onClick:l},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})],2)],2)]),default:n.withCtx(()=>[f.$slots.reference?n.renderSlot(f.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Mle=Q(xle,[["__file","popconfirm.vue"]]);const B7=Ne(Mle);var Ple={countrySelector:{placeholder:"Country code",error:"Choose country",searchPlaceholder:"Search the country"},phoneInput:{placeholder:"Phone number",example:"Example:"}},Rl={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-246-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-489]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([3-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-3]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))|9(?:399[0-2]|4790|76(?:2[27]|3[0-37]|9\\d)))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,0,["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-6]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:47220[01]|5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|4[46]))|57200))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10,13],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:(?:(?:26|63)9|80\\d)\\d\\d|93980)\\d{4}",[9],0,"0",0,0,0,0,"269|63|9398"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Ll(e,t){var o=Array.prototype.slice.call(t);return o.push(Rl),e.apply(this,o)}function D1(e){return D1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D1(e)}function N7(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vle(e,t,o){return t&&N7(e.prototype,t),o&&N7(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ile(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}function Dle(e){var t=T7();return function(){var r=Fl(e),a;if(t){var i=Fl(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Rle(this,a)}}function Rle(e,t){if(t&&(D1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _7(e)}function _7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R1(e){var t=typeof Map=="function"?new Map:void 0;return R1=function(r){if(r===null||!Lle(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return $u(r,arguments,Fl(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Vl(a,r)},R1(e)}function $u(e,t,o){return T7()?$u=Reflect.construct:$u=function(a,i,s){var l=[null];l.push.apply(l,i);var c=Function.bind.apply(a,l),d=new c;return s&&Vl(d,s.prototype),d},$u.apply(null,arguments)}function T7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lle(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vl(e,t){return Vl=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},Vl(e,t)}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},Fl(e)}var ea=function(e){Ile(o,e);var t=Dle(o);function o(r){var a;return Ole(this,o),a=t.call(this,r),Object.setPrototypeOf(_7(a),o.prototype),a.name=a.constructor.name,a}return vle(o)}(R1(Error)),L1=2,A7=17,x7=3,no="0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9",Vle="-\u2010-\u2015\u2212\u30FC\uFF0D",Fle="\uFF0F/",zle="\uFF0E.",M7=" \xA0\xAD\u200B\u2060\u3000",Hle="()\uFF08\uFF09\uFF3B\uFF3D\\[\\]",Wle="~\u2053\u223C\uFF5E",On="".concat(Vle).concat(Fle).concat(zle).concat(M7).concat(Hle).concat(Wle),zl="+\uFF0B";function P7(e,t){e=e.split("-"),t=t.split("-");for(var o=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(o[a]),s=Number(r[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function ku(e){return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function Su(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v7(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eu(e,t,o){return t&&v7(e.prototype,t),o&&v7(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kle="1.2.0",jle="1.7.35",O7=" ext. ",Ule=/^\d+$/,Rt=function(){function e(t){Su(this,e),Zle(t),this.metadata=t,R7.call(this,t)}return Eu(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(o){return o!=="001"})}},{key:"getCountryMetadata",value:function(o){return this.metadata.countries[o]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(o){return this.getCountryMetadata(o)!==void 0}},{key:"hasCallingCode",value:function(o){if(this.getCountryCodesForCallingCode(o))return!0;if(this.nonGeographic()){if(this.nonGeographic()[o])return!0}else{var r=this.countryCallingCodes()[o];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(o){return this.nonGeographic()?!!this.nonGeographic()[o]:!this.getCountryCodesForCallingCode(o)}},{key:"country",value:function(o){return this.selectNumberingPlan(o)}},{key:"selectNumberingPlan",value:function(o,r){if(o&&Ule.test(o)&&(r=o,o=null),o&&o!=="001"){if(!this.hasCountry(o))throw new Error("Unknown country: ".concat(o));this.numberingPlan=new I7(this.getCountryMetadata(o),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new I7(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(o){var r=this.countryCallingCodes()[o];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(o){var r=this.getCountryCodesForCallingCode(o);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(o){var r=this.getCountryCodeForCallingCode(o);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var a=this.nonGeographic()[o];if(a)return a}else{var i=this.countryCallingCodes()[o];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(o){return this.numberingPlan.type(o)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(o){return this.selectNumberingPlan(o)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),I7=function(){function e(t,o){Su(this,e),this.globalMetadataObject=o,this.metadata=t,R7.call(this,o.metadata)}return Eu(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(o){return o[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var o=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(a){return new Gle(a,o)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(o){return o[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(o){if(this.hasTypes()&&D7(this.types(),o))return new qle(D7(this.types(),o),this)}},{key:"ext",value:function(){return this.v1||this.v2?O7:this.metadata[13]||O7}}]),e}(),Gle=function(){function e(t,o){Su(this,e),this._format=t,this.metadata=o}return Eu(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Yle.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Yle=/^\(?\$1\)?$/,qle=function(){function e(t,o){Su(this,e),this.type=t,this.metadata=o}return Eu(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function D7(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Zle(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!V1(e)||!V1(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(V1(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Xle(e)+": "+e,"."))}var V1=function(t){return ku(t)==="object"},Xle=function(t){return ku(t)};function Bu(e,t){if(t=new Rt(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function F1(e,t){return t.countries[e]!==void 0}function R7(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?P7(t,Kle)===-1?this.v2=!0:P7(t,jle)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var Jle=";ext=",Wi=function(t){return"([".concat(no,"]{1,").concat(t,"})")};function z1(e){var t="20",o="15",r="9",a="6",i="[ \xA0\\t,]*",s="[:\\.\uFF0E]?[ \xA0\\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)",d="(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)",u="[- ]+",f="[ \xA0\\t]*",h="(?:,{2}|;)",p=Jle+Wi(t),m=i+c+s+Wi(t)+l,g=i+d+s+Wi(r)+l,y=u+Wi(a)+"#",w=f+h+s+Wi(o)+l,$=f+"(?:,)+"+s+Wi(r)+l;return p+"|"+m+"|"+g+"|"+y+"|"+w+"|"+$}var Qle="["+no+"]{"+L1+"}",ece="["+zl+"]{0,1}(?:["+On+"]*["+no+"]){3,}["+On+no+"]*",tce=new RegExp("^["+zl+"]{0,1}(?:["+On+"]*["+no+"]){1,2}$","i"),L7=ece+"(?:"+z1()+")?",nce=new RegExp("^"+Qle+"$|^"+L7+"$","i");function V7(e){return e.length>=L1&&nce.test(e)}function oce(e){return tce.test(e)}var F7=new RegExp("(?:"+z1()+")$","i");function rce(e){var t=e.search(F7);if(t<0)return{};for(var o=e.slice(0,t),r=e.match(F7),a=1;a<r.length;){if(r[a])return{number:o,ext:r[a]};a++}}function ace(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=ice(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ice(e,t){if(!!e){if(typeof e=="string")return z7(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return z7(e,t)}}function z7(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var sce={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uFF10":"0","\uFF11":"1","\uFF12":"2","\uFF13":"3","\uFF14":"4","\uFF15":"5","\uFF16":"6","\uFF17":"7","\uFF18":"8","\uFF19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9"};function H7(e){return sce[e]}function Hl(e){for(var t="",o=ace(e.split("")),r;!(r=o()).done;){var a=r.value,i=H7(a);i&&(t+=i)}return t}function lce(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=cce(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cce(e,t){if(!!e){if(typeof e=="string")return W7(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return W7(e,t)}}function W7(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function K7(e){for(var t="",o=lce(e.split("")),r;!(r=o()).done;){var a=r.value;t+=dce(a,t)||""}return t}function dce(e,t){return e==="+"?t?void 0:"+":H7(e)}function uce(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=fce(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fce(e,t){if(!!e){if(typeof e=="string")return j7(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return j7(e,t)}}function j7(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function hce(e,t){for(var o=e.slice(),r=uce(t),a;!(a=r()).done;){var i=a.value;e.indexOf(i)<0&&o.push(i)}return o.sort(function(s,l){return s-l})}function Nu(e,t){return U7(e,void 0,t)}function U7(e,t,o){var r=o.type(t),a=r&&r.possibleLengths()||o.possibleLengths();if(!a)return"IS_POSSIBLE";if(t==="FIXED_LINE_OR_MOBILE"){if(!o.type("FIXED_LINE"))return U7(e,"MOBILE",o);var i=o.type("MOBILE");i&&(a=hce(a,i.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var s=e.length,l=a[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function pce(e,t,o){if(t===void 0&&(t={}),o=new Rt(o),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!o.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));o.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");o.selectNumberingPlan(e.countryCallingCode)}}if(o.possibleLengths())return G7(e.phone||e.nationalNumber,o);if(e.countryCallingCode&&o.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function G7(e,t){switch(Nu(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function mce(e,t){return bce(e)||yce(e,t)||Y7(e,t)||gce()}function gce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yce(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],a=!0,i=!1,s,l;try{for(o=o.call(e);!(a=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw l}}return r}}function bce(e){if(Array.isArray(e))return e}function Cce(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Y7(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y7(e,t){if(!!e){if(typeof e=="string")return q7(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return q7(e,t)}}function q7(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function wce(e){var t,o;e=e.replace(/^tel:/,"tel=");for(var r=Cce(e.split(";")),a;!(a=r()).done;){var i=a.value,s=i.split("="),l=mce(s,2),c=l[0],d=l[1];switch(c){case"tel":t=d;break;case"ext":o=d;break;case"phone-context":d[0]==="+"&&(t=d+t);break}}if(!V7(t))return{};var u={number:t};return o&&(u.ext=o),u}function $ce(e){var t=e.number,o=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(o?";ext="+o:"")}function kr(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function kce(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Sce(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sce(e,t){if(!!e){if(typeof e=="string")return Z7(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Z7(e,t)}}function Z7(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var Ece=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function H1(e,t,o){if(t=t||{},!!e.country){o=new Rt(o),o.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(!!kr(r,o.nationalNumberPattern())){if(W1(r,"FIXED_LINE",o))return o.type("MOBILE")&&o.type("MOBILE").pattern()===""||!o.type("MOBILE")||W1(r,"MOBILE",o)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=kce(Ece),i;!(i=a()).done;){var s=i.value;if(W1(r,s,o))return s}}}}function W1(e,t,o){return t=o.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:kr(e,t.pattern())}function _u(e,t,o){if(t=t||{},o=new Rt(o),!e.country)return!1;if(o.selectNumberingPlan(e.country,e.countryCallingCode),o.hasTypes())return H1(e,t,o.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return kr(r,o.nationalNumberPattern())}function Bce(e,t,o){var r=new Rt(o),a=r.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return Nce(t,i,o)}):[]}function Nce(e,t,o){var r=new Rt(o);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}function X7(e){return e.replace(new RegExp("[".concat(On,"]+"),"g")," ").trim()}var J7=/(\$\d)/;function Q7(e,t,o){var r=o.useInternationalFormat,a=o.withNationalPrefix;o.carrierCode,o.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(J7,t.nationalPrefixFormattingRule()):t.format());return r?X7(i):i}var _ce=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Tce(e,t,o){var r=new Rt(o);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(_ce.test(r.IDDPrefix()))return r.IDDPrefix()}function Ace(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=xce(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xce(e,t){if(!!e){if(typeof e=="string")return ek(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ek(e,t)}}function ek(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function tk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function nk(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?tk(Object(o),!0).forEach(function(r){Mce(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Mce(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ok={formatExtension:function(t,o,r){return"".concat(t).concat(r.ext()).concat(o)}};function Pce(e,t,o,r){if(o?o=nk(nk({},ok),o):o=ok,r=new Rt(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=r.countryCallingCode(),i=o.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Tu(i,e.carrierCode,"NATIONAL",r,o),K1(s,e.ext,r,o.formatExtension)):"";case"INTERNATIONAL":return i?(s=Tu(i,null,"INTERNATIONAL",r,o),s="+".concat(a," ").concat(s),K1(s,e.ext,r,o.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return $ce({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!o.fromCountry)return;var l=Oce(i,e.carrierCode,a,o.fromCountry,r);return K1(l,e.ext,r,o.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Tu(e,t,o,r,a){var i=vce(r.formats(),e);return i?Q7(e,i,{useInternationalFormat:o==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function vce(e,t){for(var o=Ace(e),r;!(r=o()).done;){var a=r.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(kr(t,a.pattern()))return a}}function K1(e,t,o,r){return t?r(e,t,o):e}function Oce(e,t,o,r,a){var i=Bu(r,a.metadata);if(i===o){var s=Tu(e,t,"NATIONAL",a);return o==="1"?o+" "+s:s}var l=Tce(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(o," ").concat(Tu(e,null,"INTERNATIONAL",a))}function rk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function ak(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?rk(Object(o),!0).forEach(function(r){Ice(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Ice(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ik(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rce(e,t,o){return t&&ik(e.prototype,t),o&&ik(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var Au=function(){function e(t,o,r){if(Dce(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!o)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var a=new Rt(r);Lce(t)&&(this.country=t,a.country(t),t=a.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=o,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}return Rce(e,[{key:"setExt",value:function(o){this.ext=o}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Bce(this.countryCallingCode,this.nationalNumber,this.metadata)}},{key:"isPossible",value:function(){return pce(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return _u(this,{v2:!0},this.metadata)}},{key:"isNonGeographic",value:function(){var o=new Rt(this.metadata);return o.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(o){return this.number===o.number&&this.ext===o.ext}},{key:"getType",value:function(){return H1(this,{v2:!0},this.metadata)}},{key:"format",value:function(o,r){return Pce(this,o,r?ak(ak({},r),{},{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(o){return this.format("NATIONAL",o)}},{key:"formatInternational",value:function(o){return this.format("INTERNATIONAL",o)}},{key:"getURI",value:function(o){return this.format("RFC3966",o)}}]),e}(),Lce=function(t){return/^[A-Z]{2}$/.test(t)},Vce=new RegExp("(["+no+"])");function sk(e,t,o,r){if(!!t){var a=new Rt(r);a.selectNumberingPlan(t,o);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(Vce);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function j1(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var o=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=o.exec(e);if(r){var a,i,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)a=e.replace(o,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var c=r[0];a=e.slice(c.length),l&&(i=r[1])}var d;if(l){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function U1(e,t){var o=j1(e,t),r=o.carrierCode,a=o.nationalNumber;if(a!==e){if(!Fce(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!zce(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function Fce(e,t,o){return!(kr(e,o.nationalNumberPattern())&&!kr(t,o.nationalNumberPattern()))}function zce(e,t){switch(Nu(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function lk(e,t,o,r){var a=t?Bu(t,r):o;if(e.indexOf(a)===0){r=new Rt(r),r.selectNumberingPlan(t,o);var i=e.slice(a.length),s=U1(i,r),l=s.nationalNumber,c=U1(e,r),d=c.nationalNumber;if(!kr(d,r.nationalNumberPattern())&&kr(l,r.nationalNumberPattern())||Nu(d,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function ck(e,t,o,r){if(!e)return{};if(e[0]!=="+"){var a=sk(e,t,o,r);if(a&&a!==e)e="+"+a;else{if(t||o){var i=lk(e,t,o,r),s=i.countryCallingCode,l=i.number;if(s)return{countryCallingCode:s,number:l}}return{number:e}}}if(e[1]==="0")return{};r=new Rt(r);for(var c=2;c-1<=x7&&c<=e.length;){var d=e.slice(1,c);if(r.hasCallingCode(d))return r.selectNumberingPlan(d),{countryCallingCode:d,number:e.slice(c)};c++}return{}}function Hce(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Wce(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wce(e,t){if(!!e){if(typeof e=="string")return dk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return dk(e,t)}}function dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Kce(e,t,o){o=new Rt(o);for(var r=Hce(e),a;!(a=r()).done;){var i=a.value;if(o.country(i),o.leadingDigits()){if(t&&t.search(o.leadingDigits())===0)return i}else if(H1({phone:t,country:i},void 0,o.metadata))return i}}function uk(e,t,o){var r=o.getCountryCodesForCallingCode(e);if(!!r)return r.length===1?r[0]:Kce(r,t,o.metadata)}var jce=250,Uce=new RegExp("["+zl+no+"]"),Gce=new RegExp("[^"+no+"#]+$");function G1(e,t,o){if(t=t||{},o=new Rt(o),t.defaultCountry&&!o.hasCountry(t.defaultCountry))throw t.v2?new ea("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=qce(e,t.v2,t.extract),a=r.number,i=r.ext,s=r.error;if(!a){if(t.v2)throw s==="TOO_SHORT"?new ea("TOO_SHORT"):new ea("NOT_A_NUMBER");return{}}var l=Xce(a,t.defaultCountry,t.defaultCallingCode,o),c=l.country,d=l.nationalNumber,u=l.countryCallingCode,f=l.carrierCode;if(!o.hasSelectedNumberingPlan()){if(t.v2)throw new ea("INVALID_COUNTRY");return{}}if(!d||d.length<L1){if(t.v2)throw new ea("TOO_SHORT");return{}}if(d.length>A7){if(t.v2)throw new ea("TOO_LONG");return{}}if(t.v2){var h=new Au(u,d,o.metadata);return c&&(h.country=c),f&&(h.carrierCode=f),i&&(h.ext=i),h}var p=(t.extended?o.hasSelectedNumberingPlan():c)?kr(d,o.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:p,possible:p?!0:!!(t.extended===!0&&o.possibleLengths()&&G7(d,o)),phone:d,ext:i}:p?Zce(c,d,i):{}}function Yce(e,t,o){if(!!e){if(e.length>jce){if(o)throw new ea("TOO_LONG");return}if(t===!1)return e;var r=e.search(Uce);if(!(r<0))return e.slice(r).replace(Gce,"")}}function qce(e,t,o){if(e&&e.indexOf("tel:")===0)return wce(e);var r=Yce(e,o,t);if(!r)return{};if(!V7(r))return oce(r)?{error:"TOO_SHORT"}:{};var a=rce(r);return a.ext?a:{number:r}}function Zce(e,t,o){var r={country:e,phone:t};return o&&(r.ext=o),r}function Xce(e,t,o,r){var a=ck(K7(e),t,o,r.metadata),i=a.countryCallingCode,s=a.number,l;if(i)r.selectNumberingPlan(i);else if(s&&(t||o))r.selectNumberingPlan(t,o),t&&(l=t),i=o||Bu(t,r.metadata);else return{};if(!s)return{countryCallingCode:i};var c=U1(K7(s),r),d=c.nationalNumber,u=c.carrierCode,f=uk(i,d,r);return f&&(l=f,f==="001"||r.country(l)),{country:l,countryCallingCode:i,nationalNumber:d,carrierCode:u}}function fk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function hk(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?fk(Object(o),!0).forEach(function(r){Jce(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):fk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Jce(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Qce(e,t,o){return G1(e,hk(hk({},t),{},{v2:!0}),o)}function Y1(e){return Y1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y1(e)}function pk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function ede(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?pk(Object(o),!0).forEach(function(r){tde(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function tde(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function nde(e,t){return ide(e)||ade(e,t)||rde(e,t)||ode()}function ode(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rde(e,t){if(!!e){if(typeof e=="string")return mk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mk(e,t)}}function mk(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function ade(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],a=!0,i=!1,s,l;try{for(o=o.call(e);!(a=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw l}}return r}}function ide(e){if(Array.isArray(e))return e}function sde(e){var t=Array.prototype.slice.call(e),o=nde(t,4),r=o[0],a=o[1],i=o[2],s=o[3],l,c,d;if(typeof r=="string")l=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(c=i,d=s):(c=void 0,d=i),a&&(c=ede({defaultCountry:a},c));else if(lde(a))i?(c=a,d=i):d=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:c,metadata:d}}var lde=function(t){return Y1(t)==="object"};function gk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function yk(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?gk(Object(o),!0).forEach(function(r){cde(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):gk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function cde(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function dde(e,t,o){t&&t.defaultCountry&&!F1(t.defaultCountry,o)&&(t=yk(yk({},t),{},{defaultCountry:void 0}));try{return Qce(e,t,o)}catch(r){if(!(r instanceof ea))throw r}}function ude(){var e=sde(arguments),t=e.text,o=e.options,r=e.metadata;return dde(t,o,r)}function bk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ck(e,t,o){return t&&bk(e.prototype,t),o&&bk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function wk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $k=Ck(function e(t,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wk(this,e),this.key=t,this.value=o,this.next=r,this.prev=a}),fde=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;wk(this,e),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}return Ck(e,[{key:"put",value:function(o,r){if(this.ensureLimit(),!this.head)this.head=this.tail=new $k(o,r);else{var a=new $k(o,r,this.head);this.head.prev=a,this.head=a}this.cache[o]=this.head,this.size++}},{key:"get",value:function(o){if(this.cache[o]){var r=this.cache[o].value;return this.remove(o),this.put(o,r),r}console.log("Item not available in cache for key ".concat(o))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(o){var r=this.cache[o];r.prev!==null?r.prev.next=r.next:this.head=r.next,r.next!==null?r.next.prev=r.prev:this.tail=r.prev,delete this.cache[o],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}]),e}();function hde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pde(e,t,o){return t&&kk(e.prototype,t),o&&kk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var mde=function(){function e(t){hde(this,e),this.cache=new fde(t)}return pde(e,[{key:"getPatternForRegExp",value:function(o){var r=this.cache.get(o);return r||(r=new RegExp("^"+o),this.cache.put(o,r)),r}}]),e}();function Wl(e,t){if(e<0||t<=0||t<e)throw new TypeError;return"{".concat(e,",").concat(t,"}")}function q1(e,t){var o=t.search(e);return o>=0?t.slice(0,o):t}function gde(e,t){return e.indexOf(t)===0}function yde(e,t){return e.indexOf(t,e.length-t.length)===e.length-t.length}var Sk=" \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000",Ki="[".concat(Sk,"]"),bde="[^".concat(Sk,"]"),Cde="0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19",wde="0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19",$de="[".concat(wde,"]"),Ek="A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",kde="[".concat(Ek,"]"),Sde=new RegExp(kde),Ede="$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20B9\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6",Bde="[".concat(Ede,"]"),Nde=new RegExp(Bde),_de="\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u08FE\u0900-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1DC0-\u1DE6\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE26",Tde="[".concat(_de,"]"),Ade=new RegExp(Tde),xde="\0-\x7F",Mde="\x80-\xFF",Pde="\u0100-\u017F",vde="\u1E00-\u1EFF",Ode="\u0180-\u024F",Ide="\u0300-\u036F",Dde=new RegExp("["+xde+Mde+Pde+vde+Ode+Ide+"]");function Bk(e){return!Sde.test(e)&&!Ade.test(e)?!1:Dde.test(e)}function Nk(e){return e==="%"||Nde.test(e)}function Rde(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Lde(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lde(e,t){if(!!e){if(typeof e=="string")return _k(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _k(e,t)}}function _k(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var Vde={POSSIBLE:function(t,o,r){return!0},VALID:function(t,o,r){return!(!_u(t,void 0,r)||!Z1(t,o.toString()))},STRICT_GROUPING:function(t,o,r,a){var i=o.toString();return!_u(t,void 0,r)||!Z1(t,i)||Ak(t,i)||!Tk(t)?!1:xk(t,o,r,zde,a)},EXACT_GROUPING:function(t,o,r,a){var i=o.toString();return!_u(t,void 0,r)||!Z1(t,i)||Ak(t,i)||!Tk(t)?!1:xk(t,o,r,Fde,a)}};function Z1(e,t,o){for(var r=0;r<t.length-1;r++){var a=t.charAt(r);if(a==="x"||a==="X"){var i=t.charAt(r+1);if(i==="x"||i==="X"){if(r++,util.isNumberMatch(e,t.substring(r))!=MatchType.NSN_MATCH)return!1}else if(Hl(t.substring(r))!==e.ext)return!1}}return!0}function Tk(e,t){if(e.getCountryCodeSource()!="FROM_DEFAULT_COUNTRY")return!0;var o=util.getRegionCodeForCountryCode(e.getCountryCode()),r=util.getMetadataForRegion(o);if(r==null)return!0;var a=util.getNationalSignificantNumber(e),i=util.chooseFormattingPatternForNumber(r.numberFormats(),a);if(i&&i.getNationalPrefixFormattingRule().length>0){if(i.getNationalPrefixOptionalWhenFormatting()||PhoneNumberUtil.formattingRuleHasFirstGroupOnly(i.getNationalPrefixFormattingRule()))return!0;var s=PhoneNumberUtil.normalizeDigitsOnly(e.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(s,r,null)}return!0}function Ak(e,t){var o=t.indexOf("/");if(o<0)return!1;var r=t.indexOf("/",o+1);if(r<0)return!1;var a=e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||e.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN;return a&&PhoneNumberUtil.normalizeDigitsOnly(t.substring(0,o))===String(e.getCountryCode())?t.slice(r+1).indexOf("/")>=0:!0}function xk(e,t,o,r,a){var i=normalizeDigits(t,!0),s=Mk(o,e,null);if(r(o,e,i,s))return!0;var l=MetadataManager.getAlternateFormatsForCountry(e.getCountryCode()),c=util.getNationalSignificantNumber(e);if(l)for(var d=Rde(l.numberFormats()),u;!(u=d()).done;){var f=u.value;if(f.leadingDigitsPatterns().length>0){var h=a.getPatternForRegExp("^"+f.leadingDigitsPatterns()[0]);if(!h.test(c))continue}if(s=Mk(o,e,f),r(o,e,i,s))return!0}return!1}function Mk(e,t,o){if(o){var r=util.getNationalSignificantNumber(t);return util.formatNsnUsingPattern(r,o,"RFC3966",e).split("-")}var a=formatNumber(t,"RFC3966",e),i=a.indexOf(";");i<0&&(i=a.length);var s=a.indexOf("-")+1;return a.slice(s,i).split("-")}function Fde(e,t,o,r){var a=o.split(NON_DIGITS_PATTERN),i=t.hasExtension()?a.length-2:a.length-1;if(a.length==1||a[i].contains(util.getNationalSignificantNumber(t)))return!0;for(var s=r.length-1;s>0&&i>=0;){if(a[i]!==r[s])return!1;s--,i--}return i>=0&&yde(a[i],r[0])}function zde(e,t,o,r){var a=0;if(t.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var i=String(t.getCountryCode());a=o.indexOf(i)+i.length()}for(var s=0;s<r.length;s++){if(a=o.indexOf(r[s],a),a<0)return!1;if(a+=r[s].length(),s==0&&a<o.length()){var l=util.getRegionCodeForCountryCode(t.getCountryCode());if(util.getNddPrefixForRegion(l,!0)!=null&&Character.isDigit(o.charAt(a))){var c=util.getNationalSignificantNumber(t);return gde(o.slice(a-r[s].length),c)}}}return o.slice(a).contains(t.getExtension())}var Hde=/[\\/] *x/;function Pk(e){return q1(Hde,e)}var Wde=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,Kde=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,jde=/^:[0-5]\d/;function vk(e,t,o){if(Wde.test(e))return!1;if(Kde.test(e)){var r=o.slice(t+e.length);if(jde.test(r))return!1}return!0}var xu="(\\[\uFF08\uFF3B",X1=")\\]\uFF09\uFF3D",Mu="[^".concat(xu).concat(X1,"]"),Ok="[".concat(xu).concat(zl,"]"),Ude=new RegExp("^"+Ok),Gde=Wl(0,3),Yde=new RegExp("^(?:["+xu+"])?(?:"+Mu+"+["+X1+"])?"+Mu+"+(?:["+xu+"]"+Mu+"+["+X1+"])"+Gde+Mu+"*$"),qde=/\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;function Ik(e,t,o,r){if(!(!Yde.test(e)||qde.test(e))){if(r!=="POSSIBLE"){if(t>0&&!Ude.test(e)){var a=o[t-1];if(Nk(a)||Bk(a))return!1}var i=t+e.length;if(i<o.length){var s=o[i];if(Nk(s)||Bk(s))return!1}}return!0}}function Zde(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Xde(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xde(e,t){if(!!e){if(typeof e=="string")return Dk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Dk(e,t)}}function Dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Rk(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r)}return o}function Lk(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Rk(Object(o),!0).forEach(function(r){Jde(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rk(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Jde(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Qde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eue(e,t,o){return t&&Vk(e.prototype,t),o&&Vk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var tue=z1(),nue=["\\/+(.*)/","(\\([^(]*)","(?:".concat(Ki,"-|-").concat(Ki,")").concat(Ki,"*(.+)"),"[\u2012-\u2015\uFF0D]".concat(Ki,"*(.+)"),"\\.+".concat(Ki,"*([^.]+)"),"".concat(Ki,"+(").concat(bde,"+)")],oue=Wl(0,2),rue=Wl(0,4),Fk=A7+x7,aue=Wl(0,Fk),zk="[".concat(On,"]")+rue,Hk=$de+Wl(1,Fk),iue="(?:"+Ok+zk+")"+oue+Hk+"(?:"+zk+Hk+")"+aue+"(?:"+tue+")?",Wk=new RegExp("[^".concat(Cde).concat(Ek,"#]+$")),sue=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Kk=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(Qde(this,e),o=Lk(Lk({},o),{},{defaultCallingCode:o.defaultCallingCode,defaultCountry:o.defaultCountry&&F1(o.defaultCountry,r)?o.defaultCountry:void 0,leniency:o.leniency||o.extended?"POSSIBLE":"VALID",maxTries:o.maxTries||sue}),!o.leniency)throw new TypeError("`Leniency` not supplied");if(o.maxTries<0)throw new TypeError("`maxTries` not supplied");if(this.text=t,this.options=o,this.metadata=r,this.leniency=Vde[o.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(o.leniency,"."));this.maxTries=o.maxTries,this.PATTERN=new RegExp(iue,"ig"),this.state="NOT_READY",this.searchIndex=0,this.regExpCache=new mde(32)}return eue(e,[{key:"find",value:function(){for(var o;this.maxTries>0&&(o=this.PATTERN.exec(this.text))!==null;){var r=o[0],a=o.index;if(r=Pk(r),vk(r,a,this.text)){var i=this.parseAndVerify(r,a,this.text)||this.extractInnerMatch(r,a,this.text);if(i){if(this.options.v2){var s=new Au(i.country||i.countryCallingCode,i.phone,this.metadata);return i.ext&&(s.ext=i.ext),{startsAt:i.startsAt,endsAt:i.endsAt,number:s}}return i}}this.maxTries--}}},{key:"extractInnerMatch",value:function(o,r,a){for(var i=Zde(nue),s;!(s=i()).done;)for(var l=s.value,c=!0,d=void 0,u=new RegExp(l,"g");this.maxTries>0&&(d=u.exec(o))!==null;){if(c){var f=q1(Wk,o.slice(0,d.index)),h=this.parseAndVerify(f,r,a);if(h)return h;this.maxTries--,c=!1}var p=q1(Wk,d[1]),m=o.indexOf(p,d.index),g=this.parseAndVerify(p,r+m,a);if(g)return g;this.maxTries--}}},{key:"parseAndVerify",value:function(o,r,a){if(!!Ik(o,r,a,this.options.leniency)){var i=G1(o,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(!!i.possible&&this.leniency(i,o,this.metadata,this.regExpCache)){var s={startsAt:r,endsAt:r+o.length,phone:i.phone};return i.country&&i.country!=="001"?s.country=i.country:s.countryCallingCode=i.countryCallingCode,i.ext&&(s.ext=i.ext),s}}}},{key:"hasNext",value:function(){return this.state==="NOT_READY"&&(this.lastMatch=this.find(),this.lastMatch?this.state="READY":this.state="DONE"),this.state==="READY"}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var o=this.lastMatch;return this.lastMatch=null,this.state="NOT_READY",o}}]),e}();function lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cue(e,t,o){return t&&jk(e.prototype,t),o&&jk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var due=function(){function e(t){var o=t.onCountryChange,r=t.onCallingCodeChange;lue(this,e),this.onCountryChange=o,this.onCallingCodeChange=r}return cue(e,[{key:"reset",value:function(o){var r=o.country,a=o.callingCode;this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,a)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(o){for(var r=0,a=Object.keys(o);r<a.length;r++){var i=a[r];this[i]=o[i]}}},{key:"initCountryAndCallingCode",value:function(o,r){this.setCountry(o),this.setCallingCode(r)}},{key:"setCountry",value:function(o){this.country=o,this.onCountryChange(o)}},{key:"setCallingCode",value:function(o){this.callingCode=o,this.onCallingCodeChange(o,this.country)}},{key:"startInternationalNumber",value:function(o,r){this.international=!0,this.initCountryAndCallingCode(o,r)}},{key:"appendDigits",value:function(o){this.digits+=o}},{key:"appendNationalSignificantNumberDigits",value:function(o){this.nationalSignificantNumber+=o}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function uue(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=fue(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fue(e,t){if(!!e){if(typeof e=="string")return Uk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Uk(e,t)}}function Uk(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}var So="x",J1=new RegExp(So);function Pu(e,t){if(t<1)return"";for(var o="";t>1;)t&1&&(o+=e),t>>=1,e+=e;return o+e}function Gk(e,t){return e[t]===")"&&t++,hue(e.slice(0,t))}function hue(e){for(var t=[],o=0;o<e.length;)e[o]==="("?t.push(o):e[o]===")"&&t.pop(),o++;var r=0,a="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var l=s[i];a+=e.slice(r,l),r=l+1}return a}function pue(e,t,o){for(var r=uue(o.split("")),a;!(a=r()).done;){var i=a.value;if(e.slice(t+1).search(J1)<0)return;t=e.search(J1),e=e.replace(J1,i)}return[e,t]}function mue(e,t,o){var r=o.metadata,a=o.shouldTryNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix,s=new RegExp("^(?:".concat(t.pattern(),")$"));if(s.test(e.nationalSignificantNumber))return yue(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function gue(e,t){return Nu(e,t)==="IS_POSSIBLE"}function yue(e,t,o){var r=o.metadata,a=o.shouldTryNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var s=Yk(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(s)return s}return Yk(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function Yk(e,t,o){var r=o.metadata,a=o.useNationalPrefixFormattingRule,i=o.getSeparatorAfterNationalPrefix,s=Q7(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:r});if(a||(e.nationalPrefix?s=e.nationalPrefix+i(t)+s:e.complexPrefixBeforeNationalSignificantNumber&&(s=e.complexPrefixBeforeNationalSignificantNumber+" "+s)),bue(s,e))return s}function bue(e,t){return Hl(e)===t.getNationalDigits()}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wue(e,t,o){return t&&qk(e.prototype,t),o&&qk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var $ue=function(){function e(){Cue(this,e)}return wue(e,[{key:"parse",value:function(o){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(o),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],a=r.branches,i=r.instructions;if(a)return{op:"|",args:a.concat([Q1(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(o){this.context.push(o)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(o){if(!o)throw new Error("Pattern is required");var r=o.match(Eue);if(!r){if(Sue.test(o))throw new Error("Illegal characters found in a pattern: ".concat(o));this.getContext().instructions=this.getContext().instructions.concat(o.split(""));return}var a=r[1],i=o.slice(0,r.index),s=o.slice(r.index+a.length);switch(a){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var l=this.getContext(),c=l.branches;c.push(Q1(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:c});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(Q1(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:kue(i)});break;default:throw new Error("Unknown operator: ".concat(a))}s&&this.parsePattern(s)}}]),e}();function kue(e){for(var t=[],o=0;o<e.length;){if(e[o]==="-"){if(o===0||o===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[o-1].charCodeAt(0)+1,a=e[o+1].charCodeAt(0)-1,i=r;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[o]);o++}return t}var Sue=/[\(\)\[\]\?\:\|]/,Eue=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Q1(e){return e.length===1?e[0]:e}function Zk(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Bue(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bue(e,t){if(!!e){if(typeof e=="string")return Xk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Xk(e,t)}}function Xk(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Nue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jk(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _ue(e,t,o){return t&&Jk(e.prototype,t),o&&Jk(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var Tue=function(){function e(t){Nue(this,e),this.matchTree=new $ue().parse(t)}return _ue(e,[{key:"match",value:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!o)throw new Error("String is required");var i=e0(o.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e}();function e0(e,t,o){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?o&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var s=t[i],l=e0(a,s,o&&i===t.length-1);if(l){if(l.overflow)return l;if(l.match){if(a=a.slice(l.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(l.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
`.concat(JSON.stringify(l,null,2)))}}else return;i++}return o?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var c,d=Zk(t.args),u;!(u=d()).done;){var f=u.value,h=e0(e,f,o);if(h){if(h.overflow)return h;if(h.match)return{match:!0,matchedChars:h.matchedChars};if(h.partialMatch)c=!0;else throw new Error(`Unsupported match result:
`.concat(JSON.stringify(h,null,2)))}}return c?{partialMatch:!0}:void 0;case"[]":for(var p=Zk(t.args),m;!(m=p()).done;){var g=m.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:o?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Qk(e,t){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Aue(e))||t&&e&&typeof e.length=="number"){o&&(e=o);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aue(e,t){if(!!e){if(typeof e=="string")return eS(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tS(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mue(e,t,o){return t&&tS(e.prototype,t),o&&tS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var t0="9",Pue=15,vue=Pu(t0,Pue),Oue=/[- ]/,Iue=function(){return/\[([^\[\]])*\]/g},Due=function(){return/\d(?=[^,}][^,}])/g},Rue=new RegExp("["+On+"]*\\$1["+On+"]*(\\$\\d["+On+"]*)*$"),nS=3,Lue=function(){function e(t){t.state;var o=t.metadata;xue(this,e),this.metadata=o,this.resetFormat()}return Mue(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(o,r){this.resetFormat(),o?(this.isNANP=o.callingCode()==="1",this.matchingFormats=o.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(o,r){var a=this;if(gue(r.nationalSignificantNumber,this.metadata))for(var i=Qk(this.matchingFormats),s;!(s=i()).done;){var l=s.value,c=mue(r,l,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(u){return a.shouldTryNationalPrefixFormattingRule(u,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(u){return a.getSeparatorAfterNationalPrefix(u)}});if(c)return this.resetFormat(),this.chosenFormat=l,this.setNationalNumberTemplate(c.replace(/\d/g,So),r),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(So),c}return this.formatNationalNumberWithNextDigits(o,r)}},{key:"formatNationalNumberWithNextDigits",value:function(o,r){var a=this.chosenFormat,i=this.chooseFormat(r);if(i)return i===a?this.formatNextNationalNumberDigits(o):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(o){var r=this,a=o.nationalSignificantNumber,i=o.nationalPrefix,s=o.international,l=a,c=l.length-nS;c<0&&(c=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,s,i)&&r.formatMatches(d,l,c)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(o,r,a){return!(a&&!o.usesNationalPrefix()&&!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!a&&o.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(o,r,a){var i=o.leadingDigitsPatterns().length;if(i===0)return!0;a=Math.min(a,i-1);var s=o.leadingDigitsPatterns()[a];if(r.length<nS)try{return new Tue(s).match(r,{allowOverflow:!0})!==void 0}catch(l){return console.error(l),!0}return new RegExp("^(".concat(s,")")).test(r)}},{key:"getFormatFormat",value:function(o,r){return r?o.internationalFormat():o.format()}},{key:"chooseFormat",value:function(o){for(var r=this,a=function(){var d=s.value;return r.chosenFormat===d?"break":Rue.test(r.getFormatFormat(d,o.international))?r.createTemplateForFormat(d,o)?(r.chosenFormat=d,"break"):(r.matchingFormats=r.matchingFormats.filter(function(u){return u!==d}),"continue"):"continue"},i=Qk(this.matchingFormats.slice()),s;!(s=i()).done;){var l=a();if(l==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(o,r){if(!(o.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(o,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(o){return this.isNANP||o&&o.nationalPrefixFormattingRule()&&Oue.test(o.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(o,r){var a=o.IDDPrefix,i=o.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(o){if(!!this.template){for(var r=-1,a=0,i=o.international?this.getInternationalPrefixBeforeCountryCallingCode(o,{spacing:!1}):"";a<i.length+o.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(So,r+1),a++;return Gk(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(o,r){this.nationalNumberTemplate=o,this.populatedNationalNumberTemplate=o,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,So)+Pu(So,r.callingCode.length)+" "+o:this.template=o}},{key:"getTemplateForFormat",value:function(o,r){var a=r.nationalSignificantNumber,i=r.international,s=r.nationalPrefix,l=r.complexPrefixBeforeNationalSignificantNumber,c=o.pattern();c=c.replace(Iue(),"\\d").replace(Due(),"\\d");var d=vue.match(c)[0];if(!(a.length>d.length)){var u=new RegExp("^"+c+"$"),f=a.replace(/\d/g,t0);u.test(f)&&(d=f);var h=this.getFormatFormat(o,i),p;if(this.shouldTryNationalPrefixFormattingRule(o,{international:i,nationalPrefix:s})){var m=h.replace(J7,o.nationalPrefixFormattingRule());if(Hl(o.nationalPrefixFormattingRule())===(s||"")+Hl("$1")&&(h=m,p=!0,s))for(var g=s.length;g>0;)h=h.replace(/\d/,So),g--}var y=d.replace(new RegExp(c),h).replace(new RegExp(t0,"g"),So);return p||(l?y=Pu(So,l.length)+" "+y:s&&(y=Pu(So,s.length)+this.getSeparatorAfterNationalPrefix(o)+y)),i&&(y=X7(y)),y}}},{key:"formatNextNationalNumberDigits",value:function(o){var r=pue(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,o);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],Gk(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(o,r){var a=r.international,i=r.nationalPrefix;if(o.nationalPrefixFormattingRule()){var s=o.usesNationalPrefix();if(s&&i||!s&&!a)return!0}}}]),e}();function oS(e,t){return Hue(e)||zue(e,t)||Fue(e,t)||Vue()}function Vue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fue(e,t){if(!!e){if(typeof e=="string")return rS(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return rS(e,t)}}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function zue(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],a=!0,i=!1,s,l;try{for(o=o.call(e);!(a=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw l}}return r}}function Hue(e){if(Array.isArray(e))return e}function Wue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aS(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kue(e,t,o){return t&&aS(e.prototype,t),o&&aS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var jue="["+On+no+"]+",Uue=new RegExp("^"+jue+"$","i"),Gue="(?:["+zl+"]["+On+no+"]*|["+On+no+"]+)",Yue=new RegExp("[^"+On+no+"]+.*$"),que=/[^\d\[\]]/,Zue=function(){function e(t){var o=t.defaultCountry,r=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;Wue(this,e),this.defaultCountry=o,this.defaultCallingCode=r,this.metadata=a,this.onNationalSignificantNumberChange=i}return Kue(e,[{key:"input",value:function(o,r){var a=Que(o),i=oS(a,2),s=i[0],l=i[1],c=Hl(s),d;return l&&(r.digits||(r.startInternationalNumber(),c||(d=!0))),c&&this.inputDigits(c,r),{digits:c,justLeadingPlus:d}}},{key:"inputDigits",value:function(o,r){var a=r.digits,i=a.length<3&&a.length+o.length>=3;if(r.appendDigits(o),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(o);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(o){var r=o.international,a=o.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(o){var r=ck("+"+o.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return o.setCallingCode(a),o.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(o){if(o){this.hasSelectedNumberingPlan=!0;var r=o._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&que.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(o,r){if(!!this.hasSelectedNumberingPlan){var a=j1(o,this.metadata),i=a.nationalPrefix,s=a.nationalNumber,l=a.carrierCode;if(s!==o)return this.onExtractedNationalNumber(i,l,s,o,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(o,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(o,a);if(!!this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=j1(o,this.metadata),s=i.nationalPrefix,l=i.nationalNumber,c=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(s,c,l,o,a),!0}}},{key:"onExtractedNationalNumber",value:function(o,r,a,i,s){var l,c,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){c=!0;var u=i.slice(0,d);u!==o&&(l=u)}s({nationalPrefix:o,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(o){if(this.extractAnotherNationalSignificantNumber(o.getNationalDigits(),o.nationalSignificantNumber,function(r){return o.update(r)}))return!0;if(this.extractIddPrefix(o))return this.extractCallingCodeAndNationalSignificantNumber(o),!0;if(this.fixMissingPlus(o))return this.extractCallingCodeAndNationalSignificantNumber(o),!0}},{key:"extractIddPrefix",value:function(o){var r=o.international,a=o.IDDPrefix,i=o.digits;if(o.nationalSignificantNumber,!(r||a)){var s=sk(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==i)return o.update({IDDPrefix:i.slice(0,i.length-s.length)}),this.startInternationalNumber(o,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(o){if(!o.international){var r=lk(o.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return o.update({missingPlus:!0}),this.startInternationalNumber(o,{country:o.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(o,r){var a=r.country,i=r.callingCode;o.startInternationalNumber(a,i),o.nationalSignificantNumber&&(o.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(o){this.extractCountryCallingCode(o)&&this.extractNationalSignificantNumber(o.getNationalDigits(),function(r){return o.update(r)})}}]),e}();function Xue(e){var t=e.search(Gue);if(!(t<0)){e=e.slice(t);var o;return e[0]==="+"&&(o=!0,e=e.slice(1)),e=e.replace(Yue,""),o&&(e="+"+e),e}}function Jue(e){var t=Xue(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function Que(e){var t=Jue(e),o=oS(t,2),r=o[0],a=o[1];return Uue.test(r)||(r=""),[r,a]}function n0(e){return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n0(e)}function efe(e,t){return rfe(e)||ofe(e,t)||nfe(e,t)||tfe()}function tfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nfe(e,t){if(!!e){if(typeof e=="string")return iS(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return iS(e,t)}}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function ofe(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],a=!0,i=!1,s,l;try{for(o=o.call(e);!(a=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw l}}return r}}function rfe(e){if(Array.isArray(e))return e}function afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sS(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ife(e,t,o){return t&&sS(e.prototype,t),o&&sS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var lS=function(){function e(t,o){afe(this,e),this.metadata=new Rt(o);var r=this.getCountryAndCallingCode(t),a=efe(r,2),i=a[0],s=a[1];this.defaultCountry=i,this.defaultCallingCode=s,this.reset()}return ife(e,[{key:"getCountryAndCallingCode",value:function(o){var r,a;return o&&(n0(o)==="object"?(r=o.defaultCountry,a=o.defaultCallingCode):r=o),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,a]}},{key:"input",value:function(o){var r=this.parser.input(o,this.state),a=r.digits,i=r.justLeadingPlus;if(i)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(a,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var l=this.state.getNationalDigits();l&&(s=this.formatter.format(l,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var o=this;return this.state=new due({onCountryChange:function(a){o.country=a},onCallingCodeChange:function(a,i){o.metadata.selectNumberingPlan(i,a),o.formatter.reset(o.metadata.numberingPlan,o.state),o.parser.reset(o.metadata.numberingPlan)}}),this.formatter=new Lue({state:this.state,metadata:this.metadata}),this.parser=new Zue({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){o.determineTheCountryIfNeeded(),o.formatter.reset(o.metadata.numberingPlan,o.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var o=this.state.digits;if(o)return this._getCountry()}},{key:"_getCountry",value:function(){var o=this.state.country;return o}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(o){var r=this;if(this.isInternational()){var a=function(l){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!l})+l},i=this.state.callingCode;return a(i?o?"".concat(i," ").concat(o):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return o}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var o=this.state,r=o.nationalSignificantNumber,a=o.complexPrefixBeforeNationalSignificantNumber,i=o.nationalPrefix,s=r,l=a||i;return l&&(s=l+s),s}},{key:"getNonFormattedNumber",value:function(){var o=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(o?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var o=this.getNonFormattedNumber();if(o)return o.replace(/[\+\d]/g,So)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var o=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(o);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(uk(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var o=this.state,r=o.digits,a=o.callingCode,i=o.country,s=o.nationalSignificantNumber;if(!!r){if(this.isInternational())return a?"+"+a+s:"+"+r;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+s}}}},{key:"getNumber",value:function(){var o=this.state,r=o.nationalSignificantNumber,a=o.carrierCode,i=o.callingCode,s=this._getCountry();if(!!r&&!(!s&&!i)){var l=new Au(s||i,r,this.metadata.metadata);return a&&(l.carrierCode=a),l}}},{key:"isPossible",value:function(){var o=this.getNumber();return o?o.isPossible():!1}},{key:"isValid",value:function(){var o=this.getNumber();return o?o.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function sfe(e){return new Rt(e).getCountries()}function lfe(e,t,o){if(t[e])return new Au(e,t[e],o)}function cfe(){return Ll(ude,arguments)}function o0(e,t){return Kk.call(this,e,t,Rl)}o0.prototype=Object.create(Kk.prototype,{}),o0.prototype.constructor=o0;function vu(e){return lS.call(this,e,Rl)}vu.prototype=Object.create(lS.prototype,{}),vu.prototype.constructor=vu;function dfe(){return Ll(F1,arguments)}function ufe(){return Ll(sfe,arguments)}function ffe(){return Ll(Bu,arguments)}function r0(){return Rt.call(this,Rl)}r0.prototype=Object.create(Rt.prototype,{}),r0.prototype.constructor=r0;function hfe(){return Ll(lfe,arguments)}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cS(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mfe(e,t,o){return t&&cS(e.prototype,t),o&&cS(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var gfe=new RegExp("^["+M7+"]+"),yfe=new RegExp("["+On+"]+$"),dS=function(){function e(t,o,r){pfe(this,e),this.text=t,this.options=o||{},this.metadata=r,this.state="NOT_READY",this.regexp=new RegExp(L7,"ig")}return mfe(e,[{key:"find",value:function(){var o=this.regexp.exec(this.text);if(!!o){var r=o[0],a=o.index;r=r.replace(gfe,""),a+=o[0].length-r.length,r=r.replace(yfe,""),r=Pk(r);var i=this.parseCandidate(r,a);return i||this.find()}}},{key:"parseCandidate",value:function(o,r){if(!!vk(o,r,this.text)&&!!Ik(o,r,this.text,this.options.extended?"POSSIBLE":"VALID")){var a=G1(o,this.options,this.metadata);if(!!a.phone)return a.startsAt=r,a.endsAt=r+o.length,a}}},{key:"hasNext",value:function(){return this.state==="NOT_READY"&&(this.last_match=this.find(),this.last_match?this.state="READY":this.state="DONE"),this.state==="READY"}},{key:"next",value:function(){if(!this.hasNext())throw new Error("No next element");var o=this.last_match;return this.last_match=null,this.state="NOT_READY",o}}]),e}();function a0(e,t){dS.call(this,e,t,Rl)}a0.prototype=Object.create(dS.prototype,{}),a0.prototype.constructor=a0;const bfe={AC:"Ascension Island",AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas (the)",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia (Plurinational State of)",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory (the)",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",CV:"Cabo Verde",KH:"Cambodia",CM:"Cameroon",CA:"Canada",KY:"Cayman Islands (the)",CF:"Central African Republic (the)",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands (the)",CO:"Colombia",KM:"Comoros (the)",CD:"Congo (the Democratic Republic of the)",CG:"Congo (the)",CK:"Cook Islands (the)",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Cura\xE7ao",CY:"Cyprus",CZ:"Czechia",CI:"C\xF4te d'Ivoire",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic (the)",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",SZ:"Eswatini",ET:"Ethiopia",FK:"Falkland Islands (the) [Malvinas]",FO:"Faroe Islands (the)",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia (the)",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",VA:"Holy See (the)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran (Islamic Republic of)",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (the Democratic People's Republic of)",KR:"Korea (the Republic of)",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic (the)",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands (the)",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia (Federated States of)",MD:"Moldova (the Republic of)",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands (the)",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger (the)",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands (the)",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines (the)",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",MK:"Republic of North Macedonia",RO:"Romania",RU:"Russian Federation (the)",RW:"Rwanda",RE:"R\xE9union",BL:"Saint Barth\xE9lemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan (the)",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TA:"Tajikistan",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands (the)",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates (the)",GB:"United Kingdom of Great Britain and Northern Ireland (the)",US:"United States of America (the)",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela (Bolivarian Republic of)",VN:"Viet Nam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",XK:"Kosovo",ZM:"Zambia",ZW:"Zimbabwe",AX:"\xC5land Islands"};function Cfe(e,t){return{...bfe,...t}[e]}const wfe=/^[\d ().-]+$/,$fe=/^[^a-z]+$/i;let i0;async function kfe(){const{default:e}=await Promise.resolve().then(function(){return L2e});return i0=e,i0}function Sfe(e){return hfe(e,i0)}function Efe(e){if(!e)return;const t=$fe.test(e),o=wfe.test(e);return!t&&!o?e.replace(/[^\d.]/g,""):e}function Bfe(e){const t=[],o=ufe();for(const r of o){const a=Cfe(r,e);if(a)try{const i=ffe(r);t.push({iso2:r,dialCode:i,name:a})}catch(i){console.error(`[MazPhoneNumberInput](getCountryCallingCode) ${i}`)}}return t}function Nfe(){try{if(typeof window>"u")return;const e=window.navigator.language;if(!e)return;let t=e.slice(3,7).toUpperCase();return t===""&&(t=e.slice(0,2).toUpperCase()),t==="EN"&&(t="US"),t==="JA"&&(t="JP"),t}catch(e){throw new Error(`[MazPhoneNumberInput](browserLocale) ${e}`)}}function uS(e){try{const t=dfe(e);return t||console.error(`[MazPhoneNumberInput](isCountryAvailable) The code country "${e}" is not available`),t}catch(t){throw new Error(`[MazPhoneNumberInput](isCountryAvailable) ${t}`)}}const fS=(e,t)=>{try{if(!t)return{isValid:!1,countryCode:e};const o=cfe(t,e);return{isValid:o?.isValid()??!1,isPossible:o?.isPossible(),countryCode:o?.country,countryCallingCode:o?.countryCallingCode,nationalNumber:o?.nationalNumber,type:o?.getType(),formatInternational:o?.formatInternational(),formatNational:o?.formatNational(),uri:o?.getURI(),e164:o?.format("E.164"),rfc3966:o?.format("RFC3966")}}catch(o){throw new Error(`[MazPhoneNumberInput](getResultsFromPhoneNumber) ${o}`)}};function hS(e,t){try{return t?e?new vu(e).input(t):t:void 0}catch(o){throw new Error(`[MazPhoneNumberInput](getAsYouTypeFormat) ${o}`)}}async function _fe(){try{const e=await fetch("https://ipwho.is"),{country_code:t}=await e.json();return t}catch(e){throw new Error(`[MazPhoneNumberInput](fetchCountryCode) ${e}`)}}function Tfe(e){return!!e}const Afe=({componentName:e,instance:t,providedId:o})=>({instanceId:n.computed(()=>o??`${e}-${t?.uid}`)}),pS=ne({id:{type:String,default:void 0},size:It,disabled:Boolean,type:{type:String,default:"phone"},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Je,default:""},suffixClass:{type:String,default:""},prependClass:{type:String,default:""},appendClass:{type:String,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:K([Object,Array,String]),default:()=>st({})},inputClass:{type:String,default:""},rounded:{type:Boolean,default:!1},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1},modelValue:{type:String,validator:e=>typeof e=="string"||e===void 0,default:void 0},defaultPhoneNumber:{type:String,default:void 0},defaultCountryCode:{type:String,default:void 0,validator:e=>uS(e)},preferredCountries:{type:Array,default:void 0},ignoredCountries:{type:Array,default:void 0},onlyCountries:{type:Array,default:void 0},translations:{type:Object,default:void 0},noFlags:{type:Boolean,default:!1},noExample:{type:Boolean,default:!1},noUseBrowserLocale:{type:Boolean,default:!1},fetchCountry:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1},showCodeOnList:{type:Boolean,default:!1},customCountriesList:{type:Object,default:void 0},showCountriesFilter:{type:Boolean,default:!0}}),mS={[Pe]:e=>De(e)||Vt(e),input:e=>De(e),change:e=>De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent,countryCode:e=>De(e),update:e=>it(e)},xfe={class:"b-flag__wrapper"},Mfe={class:"b-flag__wrapper"},Pfe=n.defineComponent({name:"BPhoneInput",components:{BInput:hn,BSelect:jo,BOption:Fa}}),vfe=n.defineComponent({...Pfe,props:pS,emits:mS,setup(e,{emit:t}){const o=e,r=G("phone-input"),a=n.getCurrentInstance(),{instanceId:i}=Afe({componentName:"BInput",instance:a,providedId:o.id}),s=n.ref({}),l=n.ref(),c=n.ref(),d=n.ref(),u=n.ref(!1),f=n.ref(!1),h=n.ref(),p=n.ref(),m=n.ref();n.onBeforeMount(async()=>{try{if(c.value=o.modelValue??o.defaultPhoneNumber,o.defaultCountryCode&&M(o.defaultCountryCode),o.fetchCountry){const B=await _fe();B&&M(B)}v(c.value)}catch(B){throw new Error(`[BPhoneInput](onBeforeMount) ${B}`)}try{!o.noExample&&!u.value&&(await kfe(),u.value=!0)}catch{throw new Error("[BPhoneInput](onBeforeMount) while loading phone number examples file")}}),n.onMounted(()=>{try{if(!o.defaultCountryCode&&!o.noUseBrowserLocale&&!l.value){const B=Nfe();B&&M(B)}if(o.defaultCountryCode&&o.fetchCountry)throw String("Do not use 'fetch-country' and 'default-country-code' options in the same time");if(o.defaultCountryCode&&o.noUseBrowserLocale)throw String("If you use a 'default-country-code', do not use 'no-use-browser-locale' options")}catch(B){console.warn(`[BPhoneInput](mounted) ${B}`)}});const g=n.computed(()=>Bfe(o.customCountriesList)),y=n.computed(()=>({...Ple,...o.translations})),w=n.ref(""),$=n.computed(()=>s.value?.isValid),C=n.computed(()=>g.value?.filter(B=>!o.ignoredCountries?.includes(B.iso2))),b=n.computed(()=>(o.onlyCountries||o.preferredCountries)?.map(L=>C.value?.find(W=>W.iso2.includes(L)))),k=n.computed(()=>C.value?.filter(B=>!o.preferredCountries?.includes(B.iso2))),S=n.computed(()=>o.preferredCountries?[...b.value??[],...k.value??[]]:o.onlyCountries?b.value:C.value),E=n.computed(()=>S.value?.map(B=>B?{...B,dialCode:`+${B.dialCode}`}:void 0).filter(B=>B?.name.toLowerCase().includes(w.value.toLowerCase())).filter(Tfe)),N=n.computed(()=>{if(o.placeholder)return o.placeholder;const B=y.value.phoneInput.placeholder;if(o.noExample||!u.value)return B;{const L=T();return $.value||!L?B:`${y.value.phoneInput.example} ${L}`}});n.watch(()=>o.modelValue,(B,L)=>{B!==L&&O(B)}),n.watch(()=>o.defaultPhoneNumber,(B,L)=>{B!==L&&O(B)}),n.watch(()=>o.defaultCountryCode,(B,L)=>{B&&B!==L&&(M(B),O())});const _=B=>{h.value=B.key;const L=B.target;d.value=L?.selectionStart},T=()=>{try{const B=l.value?Sfe(l.value):void 0;return B?B.formatNational():void 0}catch(B){throw new Error(`[BPhoneInput](getPhoneNumberExample) ${B}`)}},P=()=>{s.value&&s.value.countryCode&&l.value!==s.value.countryCode&&M(s.value.countryCode)},x=B=>{B=Efe(B);const L=h.value==="Backspace",R=(B?B.charAt(B.length-1):"")===")";return L&&R&&(B=B?.trim().slice(0,-2)),B},v=(B,L)=>{s.value=fS(l.value,B),L||P(),t("update",s.value)},O=(B=o.modelValue,L)=>{try{v(B,L),I(B)}catch(W){throw new Error(`[BPhoneInput](emitsValueAndResults) ${W}`)}},I=B=>{c.value=x(B);const{isValid:L,e164:W,formatNational:R}=fS(l.value,B),H=c.value&&B&&c.value?.length>B?.length,j=B&&d.value?d.value+1>=B.length:!0,U=!H&&j||L;if(l.value){const J=c.value?.includes("+");c.value=R&&J?R:U?hS(l.value,c.value):c.value}const re=L?W:c.value;re!==o.modelValue&&t("update:modelValue",re)},F=()=>{f.value=!0,l.value&&(c.value=hS(l.value,c.value))},M=(B,L=!1)=>{try{uS(B)&&(l.value=B,t("countryCode",B),O(o.modelValue,!0)),L&&(z(),c.value&&c.value.includes("+")&&(c.value=void 0))}catch(W){throw new Error(`[BPhoneInput](setCountryCode) ${W}`)}},z=()=>{try{m.value?.$el.querySelector("input")?.focus()}catch(B){throw new Error(`[BPhoneInput](focusPhoneNumberInput) ${B}`)}};return(B,L)=>(n.openBlock(),n.createBlock(n.unref(hn),n.mergeProps({id:n.unref(i),ref_key:"PhoneNumberInput",ref:m,"model-value":c.value,placeholder:n.unref(N),disabled:B.disabled},B.$attrs,{size:B.size,large:B.large,small:B.small,type:"tel",clearable:"","prefix-class":"is-select",class:[n.unref(r).b(),n.unref(r).is("no-flags",B.noFlags),n.unref(r).is("focus",f.value)],"data-test-name":"phone-input","data-test-variant":"","data-test-state":"",onFocus:L[4]||(L[4]=W=>f.value=!0),onBlur:F,"onUpdate:modelValue":L[5]||(L[5]=W=>O(W)),onKeydown:L[6]||(L[6]=W=>_(W))}),{prefix:n.withCtx(()=>[!B.noCountrySelector&&n.unref(E)?(n.openBlock(),n.createBlock(n.unref(jo),{key:0,ref_key:"CountrySelector",ref:p,class:n.normalizeClass([n.unref(r).e("select"),n.unref(r).is("no-country-code",!l.value)]),"model-value":l.value,disabled:B.disabled,size:B.size,large:B.large,small:B.small,placeholder:"","onUpdate:modelValue":L[2]||(L[2]=W=>M(W,!0)),onFocus:L[3]||(L[3]=W=>f.value=!0)},n.createSlots({default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(E),W=>(n.openBlock(),n.createBlock(n.unref(Fa),{key:W.iso2,value:W.iso2,class:n.normalizeClass(n.unref(r).e("select-option"))},{default:n.withCtx(()=>[n.createElementVNode("span",Mfe,[!B.noFlags&&typeof W.iso2=="string"?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["b-flag",[`b-flag-${W.iso2.toLowerCase()}`]])},null,2)):n.createCommentVNode("v-if",!0)]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("select-option-name"))},n.toDisplayString(W.name),3),B.showCodeOnList?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r).e("select-option-code"))}," ("+n.toDisplayString(W.dialCode)+") ",3)):n.createCommentVNode("v-if",!0)]),_:2},1032,["value","class"]))),128))]),_:2},[l.value&&!B.noFlags&&!B.noCountrySelector?{name:"selected",fn:n.withCtx(({value:W})=>[n.createElementVNode("div",xfe,[n.createElementVNode("div",{class:n.normalizeClass(["b-flag",`b-flag-${W.toLowerCase()}`])},null,2)])]),key:"0"}:void 0,B.showCountriesFilter?{name:"dropdownHeader",fn:n.withCtx(()=>[n.createVNode(n.unref(hn),{modelValue:w.value,"onUpdate:modelValue":L[0]||(L[0]=W=>w.value=W),small:"",placeholder:"Filter by name",onFocus:L[1]||(L[1]=W=>f.value=!0)},null,8,["modelValue"])]),key:"1"}:void 0]),1032,["class","model-value","disabled","size","large","small"])):n.createCommentVNode("v-if",!0)]),_:1},16,["id","model-value","placeholder","disabled","size","large","small","class"]))}});var Ofe=Q(vfe,[["__file","phone-input.vue"]]);const gS=Ne(Ofe),yS=ne({trigger:Si.trigger,placement:Ol.placement,disabled:Si.disabled,visible:Ft.visible,transition:Ft.transition,popperOptions:Ol.popperOptions,tabindex:Ol.tabindex,content:Ft.content,popperStyle:Ft.popperStyle,popperClass:Ft.popperClass,enterable:{...Ft.enterable,default:!0},effect:{...Ft.effect,default:"light"},teleported:Ft.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),bS={"update:visible":e=>Pt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Ife="onUpdate:visible",Dfe=n.defineComponent({name:"BPopover"}),Rfe=n.defineComponent({...Dfe,props:yS,emits:bS,setup(e,{expose:t,emit:o}){const r=e,a=n.computed(()=>r[Ife]),i=G("popover"),s=n.ref(),l=n.computed(()=>n.unref(s)?.popperRef),c=n.computed(()=>[{width:Ot(r.width)},r.popperStyle]),d=n.computed(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),u=n.computed(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{s.value?.hide()},h=()=>{o("before-enter")},p=()=>{o("before-leave")},m=()=>{o("after-enter")},g=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:f}),(y,w)=>(n.openBlock(),n.createBlock(n.unref(Xt),n.mergeProps({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":n.unref(u),"data-test-name":"popover","data-test-variant":"","data-test-state":"","onUpdate:visible":n.unref(a),onBeforeShow:h,onBeforeHide:p,onShow:m,onHide:g}),{content:n.withCtx(()=>[y.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(i).e("title")),role:"title"},n.toDisplayString(y.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(y.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(y.content),1)])]),default:n.withCtx(()=>[y.$slots.reference?n.renderSlot(y.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Lfe=Q(Rfe,[["__file","popover.vue"]]);const CS=(e,t)=>{const r=(t.arg||t.value)?.popperRef;r&&(r.triggerRef=e)};var Vfe={mounted(e,t){CS(e,t)},updated(e,t){CS(e,t)}};const s0=Gj(Vfe,"popover"),wS=Ne(Lfe,{directive:s0}),$S=ne({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:K(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:K([String,Array,Function]),default:""},format:{type:K(Function),default:e=>`${e}%`}}),Ffe=["aria-valuenow"],zfe={viewBox:"0 0 100 100"},Hfe=["d","stroke","stroke-width"],Wfe=["d","stroke","opacity","stroke-linecap","stroke-width"],Kfe={key:0},jfe=n.defineComponent({name:"BProgress"}),Ufe=n.defineComponent({...jfe,props:$S,setup(e){const t=e,o={success:"var(--b-color-green-3)",exception:"var(--b-color-red-3)",warning:"var(--b-color-orange-3)",default:"var(--b-color-primary-3)"},r=G("progress"),a=n.computed(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:$(t.percentage)})),i=n.computed(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=n.computed(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),l=n.computed(()=>{const C=s.value,b=t.type==="dashboard";return`
          M 50 50
          m 0 ${b?"":"-"}${C}
          a ${C} ${C} 0 1 1 0 ${b?"-":""}${C*2}
          a ${C} ${C} 0 1 1 0 ${b?"":"-"}${C*2}
          `}),c=n.computed(()=>2*Math.PI*s.value),d=n.computed(()=>t.type==="dashboard"?.75:1),u=n.computed(()=>`${-1*c.value*(1-d.value)/2}px`),f=n.computed(()=>({strokeDasharray:`${c.value*d.value}px, ${c.value}px`,strokeDashoffset:u.value})),h=n.computed(()=>({strokeDasharray:`${c.value*d.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=n.computed(()=>{let C;return t.color?C=$(t.percentage):C=o[t.status]||o.default,C}),m=n.computed(()=>t.status==="warning"?Hc:t.type==="line"?t.status==="success"?uo:fi:t.status==="success"?uo:Nn),g=n.computed(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=n.computed(()=>t.format(t.percentage));function w(C){const b=100/C.length;return C.map((S,E)=>De(S)?{color:S,percentage:(E+1)*b}:S).sort((S,E)=>S.percentage-E.percentage)}const $=C=>{const{color:b}=t;if(nt(b))return b(C);if(De(b))return b;{const k=w(b);for(const S of k)if(S.percentage>C)return S.color;return k[k.length-1]?.color}};return(C,b)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).m(C.type),n.unref(r).is(C.status),{[n.unref(r).m("without-text")]:!C.showText,[n.unref(r).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100","data-test-name":"progress","data-test-variant":"","data-test-state":""},[C.type==="line"?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).b("bar"))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).be("bar","outer")),style:n.normalizeStyle({height:`${C.strokeWidth}px`})},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(r).be("bar","inner"),{[n.unref(r).bem("bar","inner","indeterminate")]:C.indeterminate}]),style:n.normalizeStyle(n.unref(a))},[(C.showText||C.$slots.default)&&C.textInside?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).be("bar","innerText"))},[n.renderSlot(C.$slots,"default",{percentage:C.percentage},()=>[n.createElementVNode("span",null,n.toDisplayString(n.unref(y)),1)])],2)):n.createCommentVNode("v-if",!0)],6)],6)],2)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(r).b("circle")),style:n.normalizeStyle({height:`${C.width}px`,width:`${C.width}px`})},[(n.openBlock(),n.createElementBlock("svg",zfe,[n.createElementVNode("path",{class:n.normalizeClass(n.unref(r).be("circle","track")),d:n.unref(l),stroke:`var(${n.unref(r).cssVarName("color-neutral-3")}, #e5e9f2)`,"stroke-width":n.unref(i),fill:"none",style:n.normalizeStyle(n.unref(f))},null,14,Hfe),n.createElementVNode("path",{class:n.normalizeClass(n.unref(r).be("circle","path")),d:n.unref(l),stroke:n.unref(p),fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":n.unref(i),style:n.normalizeStyle(n.unref(h))},null,14,Wfe)]))],6)),(C.showText||C.$slots.default)&&!C.textInside?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(n.unref(r).e("text")),style:n.normalizeStyle({fontSize:`${n.unref(g)}px`})},[n.renderSlot(C.$slots,"default",{percentage:C.percentage},()=>[C.status?(n.openBlock(),n.createBlock(n.unref(pe),{key:1},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(m))))]),_:1})):(n.openBlock(),n.createElementBlock("span",Kfe,n.toDisplayString(n.unref(y)),1))])],6)):n.createCommentVNode("v-if",!0)],10,Ffe))}});var Gfe=Q(Ufe,[["__file","progress.vue"]]);const l0=Ne(Gfe),kS=ne({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:K([Array,Object]),default:()=>st(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:K([Array,Object]),default:()=>[zc,zc,zc]},voidIcon:{type:Je,default:()=>gj},disabledVoidIcon:{type:Je,default:()=>zc},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:K(Array),default:()=>st(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:hi},label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),SS={[ct]:e=>Se(e),[Pe]:e=>Se(e)},Yfe=["id","aria-label","aria-valuenow","aria-valuetext","aria-valuemax"],qfe=["onMousemove","onClick"],Zfe=n.defineComponent({name:"BRate"}),Xfe=n.defineComponent({...Zfe,props:kS,emits:SS,setup(e,{expose:t,emit:o}){const r=e;function a(I,F){const M=L=>it(L),z=Object.keys(F).map(L=>+L).filter(L=>{const W=F[L];return(M(W)?W.excluded:!1)?I<L:I<=L}).sort((L,W)=>L-W),B=F[z[0]];return M(B)&&B.value||B}const i=n.inject(Ir,void 0),s=At(),l=G("rate"),{inputId:c,isLabeledByFormItem:d}=cr(r,{formItemContext:i}),u=n.ref(r.modelValue),f=n.ref(-1),h=n.ref(!0),p=n.computed(()=>[l.b(),l.m(s.value)]),m=n.computed(()=>r.disabled),g=n.computed(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":C.value})),y=n.computed(()=>{let I="";return r.showScore?I=r.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${r.modelValue}`:`${u.value}`):r.showText&&(I=r.texts[Math.ceil(u.value)-1]),I}),w=n.computed(()=>r.modelValue*100-Math.floor(r.modelValue)*100),$=n.computed(()=>Me(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),C=n.computed(()=>{const I=a(u.value,$.value);return it(I)?"":I}),b=n.computed(()=>{let I="";return m.value?I=`${w.value}%`:r.allowHalf&&(I="50%"),{color:C.value,width:I}}),k=n.computed(()=>{let I=Me(r.icons)?[...r.icons]:{...r.icons};return I=n.markRaw(I),Me(I)?{[r.lowThreshold]:I[0],[r.highThreshold]:{value:I[1],excluded:!0},[r.max]:I[2]}:I}),S=n.computed(()=>a(r.modelValue,k.value)),E=n.computed(()=>m.value?De(r.disabledVoidIcon)?r.disabledVoidIcon:n.markRaw(r.disabledVoidIcon):De(r.voidIcon)?r.voidIcon:n.markRaw(r.voidIcon)),N=n.computed(()=>a(u.value,k.value));function _(I){const F=m.value&&w.value>0&&I-1<r.modelValue&&I>r.modelValue,M=r.allowHalf&&h.value&&I-.5<=u.value&&I>u.value;return F||M}function T(I){r.clearable&&I===r.modelValue&&(I=0),o(Pe,I),r.modelValue!==I&&o("change",I)}function P(I){m.value||(r.allowHalf&&h.value?T(u.value):T(I))}function x(I){if(m.value)return;let F=u.value;const M=I.code;return M===de.up||M===de.right?(r.allowHalf?F+=.5:F+=1,I.stopPropagation(),I.preventDefault()):(M===de.left||M===de.down)&&(r.allowHalf?F-=.5:F-=1,I.stopPropagation(),I.preventDefault()),F=F<0?0:F,F=F>r.max?r.max:F,o(Pe,F),o("change",F),F}function v(I,F){if(!m.value){if(r.allowHalf){let M=F.target;lo(M,l.e("item"))&&(M=M.querySelector(`.${l.e("icon")}`)),(M.clientWidth===0||lo(M,l.e("decimal")))&&(M=M.parentNode),h.value=F.offsetX*2<=M.clientWidth,u.value=h.value?I-.5:I}else u.value=I;f.value=I}}function O(){m.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),u.value=r.modelValue,f.value=-1)}return n.watch(()=>r.modelValue,I=>{u.value=I,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||o(Pe,0),t({setCurrentValue:v,resetCurrentValue:O}),(I,F)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(c),class:n.normalizeClass([n.unref(p),n.unref(l).is("disabled",n.unref(m))]),role:"slider","aria-label":n.unref(d)?void 0:I.label||"rating","aria-valuenow":u.value,"aria-valuetext":n.unref(y)||void 0,"aria-valuemin":"0","aria-valuemax":I.max,tabindex:"0",style:n.normalizeStyle(n.unref(g)),"data-test-name":"rate","data-test-variant":"","data-test-state":"",onKeydown:x},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(I.max,(M,z)=>(n.openBlock(),n.createElementBlock("span",{key:z,class:n.normalizeClass(n.unref(l).e("item")),onMousemove:B=>v(M,B),onMouseleave:O,onClick:B=>P(M)},[n.createVNode(n.unref(pe),{class:n.normalizeClass([n.unref(l).e("icon"),{hover:f.value===M},n.unref(l).is("active",M<=u.value)])},{default:n.withCtx(()=>[_(M)?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(N)),null,null,512)),[[n.vShow,M<=u.value]]),n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(E)),null,null,512)),[[n.vShow,!(M<=u.value)]])],64)),_(M)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,style:n.normalizeStyle(n.unref(b)),class:n.normalizeClass([n.unref(l).e("icon"),n.unref(l).e("decimal")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(S))))]),_:1},8,["style","class"])):n.createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,qfe))),128)),I.showText||I.showScore?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(l).e("text"))},n.toDisplayString(n.unref(y)),3)):n.createCommentVNode("v-if",!0)],46,Yfe))}});var Jfe=Q(Xfe,[["__file","rate.vue"]]);const ES=Ne(Jfe),za={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},c0={[za.success]:uo,[za.warning]:Hc,[za.error]:Nn,[za.info]:Fc},BS=ne({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Qfe=n.defineComponent({name:"BResult"}),ehe=n.defineComponent({...Qfe,props:BS,setup(e){const t=e,o=G("result"),r=n.computed(()=>{const a=t.icon,i=a&&za[a]?za[a]:"icon-info",s=c0[i]||c0["icon-info"];return{class:i,component:s}});return(a,i)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b()),"data-test-name":"result","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(o).e("icon"))},[n.renderSlot(a.$slots,"icon",{},()=>[n.unref(r).component?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(r).component),{key:0,class:n.normalizeClass(n.unref(r).class)},null,8,["class"])):n.createCommentVNode("v-if",!0)])],2),a.title||a.$slots.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o).e("title"))},[n.renderSlot(a.$slots,"title",{},()=>[n.createElementVNode("p",null,n.toDisplayString(a.title),1)])],2)):n.createCommentVNode("v-if",!0),a.subTitle||a.$slots["sub-title"]?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(o).e("subtitle"))},[n.renderSlot(a.$slots,"sub-title",{},()=>[n.createElementVNode("p",null,n.toDisplayString(a.subTitle),1)])],2)):n.createCommentVNode("v-if",!0),a.$slots.extra?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(n.unref(o).e("extra"))},[n.renderSlot(a.$slots,"extra")],2)):n.createCommentVNode("v-if",!0)],2))}});var the=Q(ehe,[["__file","result.vue"]]);const NS=Ne(the);var _S=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function nhe(e,t){return!!(e===t||_S(e)&&_S(t))}function ohe(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(!nhe(e[o],t[o]))return!1;return!0}function rhe(e,t){t===void 0&&(t=ohe);var o=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(o&&o.lastThis===this&&t(a,o.lastArgs))return o.lastResult;var s=e.apply(this,a);return o={lastResult:s,lastArgs:a,lastThis:this},s}return r.clear=function(){o=null},r}const TS=()=>{const t=n.getCurrentInstance().proxy.$props;return n.computed(()=>{const o=(r,a,i)=>({});return t.perfMode?$s(o):rhe(o)})},d0=50,Ou="itemRendered",Iu="scroll",ji="forward",Du="backward",oo="auto",Ru="smart",Kl="start",Uo="center",jl="end",Ui="horizontal",u0="vertical",ahe="ltr",Gi="rtl",Lu="negative",AS="positive-ascending",f0="positive-descending",ihe={[Ui]:"left",[u0]:"top"},she=20,lhe={[Ui]:"deltaX",[u0]:"deltaY"};var che=({atEndEdge:e,atStartEdge:t,layout:o},r)=>{let a,i=0;const s=c=>c<0&&t.value||c>0&&e.value;return{hasReachedEdge:s,onWheel:c=>{Fh(a);const d=c[lhe[o.value]];s(i)&&s(i+d)||(i+=d,Lh()||c.preventDefault(),a=Vh(()=>{r(i),i=0}))}}};const h0=fo({type:K([Number,Function]),required:!0}),p0=fo({type:Number}),m0=fo({type:Number,default:2}),dhe=fo({type:String,values:["ltr","rtl"],default:"ltr"}),g0=fo({type:Number,default:0}),Vu=fo({type:Number,required:!0}),xS=fo({type:String,values:["horizontal","vertical"],default:u0}),y0=ne({className:{type:String,default:""},containerElement:{type:K([String,Object]),default:"div"},data:{type:K(Array),default:()=>st([])},direction:dhe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:K([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),b0=ne({cache:m0,estimatedItemSize:p0,layout:xS,initScrollOffset:g0,total:Vu,itemSize:h0,...y0}),C0={type:Number,default:6},MS={type:Number,default:0},PS={type:Number,default:2},ta=ne({columnCache:m0,columnWidth:h0,estimatedColumnWidth:p0,estimatedRowHeight:p0,initScrollLeft:g0,initScrollTop:g0,itemKey:{type:K(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:m0,rowHeight:h0,totalColumn:Vu,totalRow:Vu,hScrollbarSize:C0,vScrollbarSize:C0,scrollbarStartGap:MS,scrollbarEndGap:PS,...y0}),w0=ne({alwaysOn:Boolean,class:String,layout:xS,total:Vu,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:C0,startGap:MS,endGap:PS,visible:Boolean}),Ha=(e,t)=>e<t?ji:Du,Ul=e=>e===ahe||e===Gi||e===Ui,vS=e=>e===Gi;let Yi=null;function Fu(e=!1){if(Yi===null||e){const t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Yi=f0:(t.scrollLeft=1,t.scrollLeft===0?Yi=Lu:Yi=AS),document.body.removeChild(t),Yi}return Yi}function uhe({move:e,size:t,bar:o},r){const a={},i=`translate${o.axis}(${e}px)`;return a[o.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}var $0=n.defineComponent({name:"BVirtualScrollBar",props:w0,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const o=n.computed(()=>e.startGap+e.endGap),r=G("virtual-scrollbar"),a=G("scrollbar"),i=n.ref(),s=n.ref();let l=null,c=null;const d=n.reactive({isDragging:!1,traveled:0}),u=n.computed(()=>gp[e.layout]),f=n.computed(()=>e.clientSize-n.unref(o)),h=n.computed(()=>({position:"absolute",width:`${Ui===e.layout?f.value:e.scrollbarSize}px`,height:`${Ui===e.layout?e.scrollbarSize:f.value}px`,[ihe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=n.computed(()=>{const S=e.ratio,E=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*E/100;const N=E/3;return Math.floor(Math.min(Math.max(S*E,she),N))}),m=n.computed(()=>{if(!Number.isFinite(p.value))return{display:"none"};const S=`${p.value}px`;return uhe({bar:u.value,size:S,move:d.traveled},e.layout)}),g=n.computed(()=>Math.floor(e.clientSize-p.value-n.unref(o))),y=()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",C);const S=n.unref(s);!S||(c=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",b),S.addEventListener("touchend",C))},w=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",C),document.onselectstart=c,c=null;const S=n.unref(s);!S||(S.removeEventListener("touchmove",b),S.removeEventListener("touchend",C))},$=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(d.isDragging=!0,d[u.value.axis]=S.currentTarget[u.value.offset]-(S[u.value.client]-S.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),y())},C=()=>{d.isDragging=!1,d[u.value.axis]=0,t("stop-move"),w()},b=S=>{const{isDragging:E}=d;if(!E||!s.value||!i.value)return;const N=d[u.value.axis];if(!N)return;Fh(l);const _=(i.value.getBoundingClientRect()[u.value.direction]-S[u.value.client])*-1,T=s.value[u.value.offset]-N,P=_-T;l=Vh(()=>{d.traveled=Math.max(e.startGap,Math.min(P,g.value)),t("scroll",P,g.value)})},k=S=>{const E=Math.abs(S.target.getBoundingClientRect()[u.value.direction]-S[u.value.client]),N=s.value[u.value.offset]/2,_=E-N;d.traveled=Math.max(0,Math.min(_,g.value)),t("scroll",_,g.value)};return n.watch(()=>e.scrollFrom,S=>{d.isDragging||(d.traveled=Math.ceil(S*g.value))}),n.onBeforeUnmount(()=>{w()}),()=>n.h("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||d.isDragging)&&"always-on"],style:h.value,onMousedown:n.withModifiers(k,["stop","prevent"]),onTouchstartPrevent:$},n.h("div",{ref:s,class:a.e("thumb"),style:m.value,onMousedown:$},[]))}}),OS=({name:e,getOffset:t,getItemSize:o,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:s,initCache:l,clearCache:c,validateProps:d})=>n.defineComponent({name:e??"BVirtualList",props:b0,emits:[Ou,Iu],setup(u,{emit:f,expose:h}){d(u);const p=n.getCurrentInstance(),m=G("vl"),g=n.ref(l(u,p)),y=TS(),w=n.ref(),$=n.ref(),C=n.ref(),b=n.ref({isScrolling:!1,scrollDir:"forward",scrollOffset:Se(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),k=n.computed(()=>{const{total:H,cache:j}=u,{isScrolling:U,scrollDir:re,scrollOffset:J}=n.unref(b);if(H===0)return[0,0,0,0];const Y=i(u,J,n.unref(g)),q=s(u,Y,J,n.unref(g)),te=!U||re===Du?Math.max(1,j):1,ue=!U||re===ji?Math.max(1,j):1;return[Math.max(0,Y-te),Math.max(0,Math.min(H-1,q+ue)),Y,q]}),S=n.computed(()=>a(u,n.unref(g))),E=n.computed(()=>Ul(u.layout)),N=n.computed(()=>[{position:"relative",[`overflow-${E.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:Se(u.height)?`${u.height}px`:u.height,width:Se(u.width)?`${u.width}px`:u.width},u.style]),_=n.computed(()=>{const H=n.unref(S),j=n.unref(E);return{height:j?"100%":`${H}px`,pointerEvents:n.unref(b).isScrolling?"none":void 0,width:j?`${H}px`:"100%"}}),T=n.computed(()=>E.value?u.width:u.height),{onWheel:P}=che({atStartEdge:n.computed(()=>b.value.scrollOffset<=0),atEndEdge:n.computed(()=>b.value.scrollOffset>=S.value),layout:n.computed(()=>u.layout)},H=>{C.value.onMouseUp?.(),M(Math.min(b.value.scrollOffset+H,S.value-T.value))}),x=()=>{const{total:H}=u;if(H>0){const[J,Y,q,te]=n.unref(k);f(Ou,J,Y,q,te)}const{scrollDir:j,scrollOffset:U,updateRequested:re}=n.unref(b);f(Iu,j,U,re)},v=H=>{const{clientHeight:j,scrollHeight:U,scrollTop:re}=H.currentTarget,J=n.unref(b);if(J.scrollOffset===re)return;const Y=Math.max(0,Math.min(re,U-j));b.value={...J,isScrolling:!0,scrollDir:Ha(J.scrollOffset,Y),scrollOffset:Y,updateRequested:!1},n.nextTick(L)},O=H=>{const{clientWidth:j,scrollLeft:U,scrollWidth:re}=H.currentTarget,J=n.unref(b);if(J.scrollOffset===U)return;const{direction:Y}=u;let q=U;if(Y===Gi)switch(Fu()){case Lu:{q=-U;break}case f0:{q=re-j-U;break}}q=Math.max(0,Math.min(q,re-j)),b.value={...J,isScrolling:!0,scrollDir:Ha(J.scrollOffset,q),scrollOffset:q,updateRequested:!1},n.nextTick(L)},I=H=>{n.unref(E)?O(H):v(H),x()},F=(H,j)=>{const U=(S.value-T.value)/j*H;M(Math.min(S.value-T.value,U))},M=H=>{H=Math.max(H,0),H!==n.unref(b).scrollOffset&&(b.value={...n.unref(b),scrollOffset:H,scrollDir:Ha(n.unref(b).scrollOffset,H),updateRequested:!0},n.nextTick(L))},z=(H,j=oo)=>{const{scrollOffset:U}=n.unref(b);H=Math.max(0,Math.min(H,u.total-1)),M(t(u,H,j,U,n.unref(g)))},B=H=>{const{direction:j,itemSize:U,layout:re}=u,J=y.value(c&&U,c&&re,c&&j);let Y;if(Kt(J,String(H)))Y=J[H];else{const q=r(u,H,n.unref(g)),te=o(u,H,n.unref(g)),ue=n.unref(E),ge=j===Gi,Ee=ue?q:0;J[H]=Y={position:"absolute",left:ge?void 0:`${Ee}px`,right:ge?`${Ee}px`:void 0,top:ue?0:`${q}px`,height:ue?"100%":`${te}px`,width:ue?`${te}px`:"100%"}}return Y},L=()=>{b.value.isScrolling=!1,n.nextTick(()=>{y.value(-1,null,null)})},W=()=>{const H=w.value;H&&(H.scrollTop=0)};n.onMounted(()=>{if(!Re)return;const{initScrollOffset:H}=u,j=n.unref(w);Se(H)&&j&&(n.unref(E)?j.scrollLeft=H:j.scrollTop=H),x()}),n.onUpdated(()=>{const{direction:H,layout:j}=u,{scrollOffset:U,updateRequested:re}=n.unref(b),J=n.unref(w);if(re&&J)if(j===Ui)if(H===Gi)switch(Fu()){case"negative":{J.scrollLeft=-U;break}case"positive-ascending":{J.scrollLeft=U;break}default:{const{clientWidth:Y,scrollWidth:q}=J;J.scrollLeft=q-Y-U;break}}else J.scrollLeft=U;else J.scrollTop=U});const R={ns:m,clientSize:T,estimatedTotalSize:S,windowStyle:N,windowRef:w,innerRef:$,innerStyle:_,itemsToRender:k,scrollbarRef:C,states:b,getItemStyle:B,onScroll:I,onScrollbarScroll:F,onWheel:P,scrollTo:M,scrollToItem:z,resetScrollTop:W};return h({windowRef:w,innerRef:$,getItemStyleCache:y,scrollTo:M,scrollToItem:z,resetScrollTop:W,states:b}),R},render(u){const{$slots:f,className:h,clientSize:p,containerElement:m,data:g,getItemStyle:y,innerElement:w,itemsToRender:$,innerStyle:C,layout:b,total:k,onScroll:S,onScrollbarScroll:E,onWheel:N,states:_,useIsScrolling:T,windowStyle:P,ns:x}=u,[v,O]=$,I=n.resolveDynamicComponent(m),F=n.resolveDynamicComponent(w),M=[];if(k>0)for(let W=v;W<=O;W++)M.push(f.default?.({data:g,key:W,index:W,isScrolling:T?_.isScrolling:void 0,style:y(W)}));const z=[n.h(F,{style:C,ref:"innerRef"},De(F)?M:{default:()=>M})],B=n.h($0,{ref:"scrollbarRef",clientSize:p,layout:b,onScroll:E,ratio:p*100/this.estimatedTotalSize,scrollFrom:_.scrollOffset/(this.estimatedTotalSize-p),total:k}),L=n.h(I,{class:["b-vl__window",h],style:P,onScroll:S,onWheel:N,ref:"windowRef",key:0},De(I)?[z]:{default:()=>[z]});return n.h("div",{key:0,class:[x.e("wrapper"),_.scrollbarAlwaysOn?"always-on":""]},[L,B])}}),k0=OS({name:"BFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:o,layout:r,width:a},i,s,l)=>{const c=Ul(r)?a:e,d=Math.max(0,t*o-c),u=Math.min(d,i*o),f=Math.max(0,(i+1)*o-c);switch(s===Ru&&(l>=f-c&&l<=u+c?s=oo:s=Uo),s){case Kl:return u;case jl:return f;case Uo:{const h=Math.round(f+(u-f)/2);return h<Math.ceil(c/2)?0:h>d+Math.floor(c/2)?d:h}case oo:default:return l>=f&&l<=u?l:l<f?f:u}},getStartIndexForOffset:({total:e,itemSize:t},o)=>Math.max(0,Math.min(e-1,Math.floor(o/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:o,layout:r,width:a},i,s)=>{const l=i*o,c=Ul(r)?a:e,d=Math.ceil((c+s-l)/o);return Math.max(0,Math.min(t-1,i+d-1))},initCache(){},clearCache:!0,validateProps(){}});const qi=(e,t,o)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:i}=o;if(t>i){let s=0;if(i>=0){const l=a[i];s=l.offset+l.size}for(let l=i+1;l<=t;l++){const c=r(l);a[l]={offset:s,size:c},s+=c}o.lastVisitedIndex=t}return a[t]},fhe=(e,t,o)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=o?IS(e,t,0,a,o):hhe(e,t,Math.max(0,a),o)},IS=(e,t,o,r,a)=>{for(;o<=r;){const i=o+Math.floor((r-o)/2),s=qi(e,i,t).offset;if(s===a)return i;s<a?o=i+1:s>a&&(r=i-1)}return Math.max(0,o-1)},hhe=(e,t,o,r)=>{const{total:a}=e;let i=1;for(;o<a&&qi(e,o,t).offset<r;)o+=i,i*=2;return IS(e,t,Math.floor(o/2),Math.min(o,a-1),r)},DS=({total:e},{items:t,estimatedItemSize:o,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const l=t[r];a=l.offset+l.size}const s=(e-r-1)*o;return a+s};var RS=OS({name:"BDynamicSizeList",getItemOffset:(e,t,o)=>qi(e,t,o).offset,getItemSize:(e,t,{items:o})=>o[t].size,getEstimatedTotalSize:DS,getOffset:(e,t,o,r,a)=>{const{height:i,layout:s,width:l}=e,c=Ul(s)?l:i,d=qi(e,t,a),u=DS(e,a),f=Math.max(0,Math.min(u-c,d.offset)),h=Math.max(0,d.offset-c+d.size);switch(o===Ru&&(r>=h-c&&r<=f+c?o=oo:o=Uo),o){case Kl:return f;case jl:return h;case Uo:return Math.round(h+(f-h)/2);case oo:default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:(e,t,o)=>fhe(e,o,t),getStopIndexForStartIndex:(e,t,o,r)=>{const{height:a,total:i,layout:s,width:l}=e,c=Ul(s)?l:a,d=qi(e,t,r),u=o+c;let f=d.offset+d.size,h=t;for(;h<i-1&&f<u;)h++,f+=qi(e,h,r).size;return h},initCache({estimatedItemSize:e=d0},t){const o={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return o.clearCacheAfterIndex=(r,a=!0)=>{o.lastVisitedIndex=Math.min(o.lastVisitedIndex,r-1),t.exposed?.getItemStyleCache(-1),a&&t.proxy?.$forceUpdate()},o},clearCache:!1,validateProps:({itemSize:e})=>{}});const phe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:o,atYStartEdge:r},a)=>{let i=null,s=0,l=0;const c=(u,f)=>{const h=u<0&&t.value||u>0&&e.value,p=f<0&&r.value||f>0&&o.value;return h&&p};return{hasReachedEdge:c,onWheel:u=>{Fh(i);let f=u.deltaX,h=u.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,u.shiftKey&&h!==0&&(f=h,h=0),!(c(s,l)&&c(s+f,l+h))&&(s+=f,l+=h,Lh()||u.preventDefault(),i=Vh(()=>{a(s,l),s=0,l=0}))}}};var LS=({name:e,clearCache:t,getColumnPosition:o,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:s,getColumnOffset:l,getRowOffset:c,getRowPosition:d,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:p,validateProps:m})=>n.defineComponent({name:e??"BVirtualList",props:ta,emits:[Ou,Iu],setup(g,{emit:y,expose:w,slots:$}){const C=G("vl");m(g);const b=n.getCurrentInstance(),k=n.ref(h(g,b));p?.(b,k);const S=n.ref(),E=n.ref(),N=n.ref(),_=n.ref(null),T=n.ref({isScrolling:!1,scrollLeft:Se(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:Se(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ji,yAxisScrollDir:ji}),P=TS(),x=n.computed(()=>Number.parseInt(`${g.height}`,10)),v=n.computed(()=>Number.parseInt(`${g.width}`,10)),O=n.computed(()=>{const{totalColumn:se,totalRow:me,columnCache:ee}=g,{isScrolling:le,xAxisScrollDir:Ce,scrollLeft:X}=n.unref(T);if(se===0||me===0)return[0,0,0,0];const ie=r(g,X,n.unref(k)),we=a(g,ie,X,n.unref(k)),fe=!le||Ce===Du?Math.max(1,ee):1,$e=!le||Ce===ji?Math.max(1,ee):1;return[Math.max(0,ie-fe),Math.max(0,Math.min(se-1,we+$e)),ie,we]}),I=n.computed(()=>{const{totalColumn:se,totalRow:me,rowCache:ee}=g,{isScrolling:le,yAxisScrollDir:Ce,scrollTop:X}=n.unref(T);if(se===0||me===0)return[0,0,0,0];const ie=u(g,X,n.unref(k)),we=f(g,ie,X,n.unref(k)),fe=!le||Ce===Du?Math.max(1,ee):1,$e=!le||Ce===ji?Math.max(1,ee):1;return[Math.max(0,ie-fe),Math.max(0,Math.min(me-1,we+$e)),ie,we]}),F=n.computed(()=>i(g,n.unref(k))),M=n.computed(()=>s(g,n.unref(k))),z=n.computed(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:Se(g.height)?`${g.height}px`:g.height,width:Se(g.width)?`${g.width}px`:g.width},g.style??{}]),B=n.computed(()=>{const se=`${n.unref(M)}px`;return{height:`${n.unref(F)}px`,pointerEvents:n.unref(T).isScrolling?"none":void 0,width:se}}),L=()=>{const{totalColumn:se,totalRow:me}=g;if(se>0&&me>0){const[we,fe,$e,ce]=n.unref(O),[ke,Ae,V,Z]=n.unref(I);y(Ou,{columnCacheStart:we,columnCacheEnd:fe,rowCacheStart:ke,rowCacheEnd:Ae,columnVisibleStart:$e,columnVisibleEnd:ce,rowVisibleStart:V,rowVisibleEnd:Z})}const{scrollLeft:ee,scrollTop:le,updateRequested:Ce,xAxisScrollDir:X,yAxisScrollDir:ie}=n.unref(T);y(Iu,{xAxisScrollDir:X,scrollLeft:ee,yAxisScrollDir:ie,scrollTop:le,updateRequested:Ce})},W=se=>{const{clientHeight:me,clientWidth:ee,scrollHeight:le,scrollLeft:Ce,scrollTop:X,scrollWidth:ie}=se.currentTarget,we=n.unref(T);if(we.scrollTop===X&&we.scrollLeft===Ce)return;let fe=Ce;if(vS(g.direction))switch(Fu()){case Lu:fe=-Ce;break;case f0:fe=ie-ee-Ce;break}T.value={...we,isScrolling:!0,scrollLeft:fe,scrollTop:Math.max(0,Math.min(X,le-me)),updateRequested:!0,xAxisScrollDir:Ha(we.scrollLeft,fe),yAxisScrollDir:Ha(we.scrollTop,X)},n.nextTick(()=>Y()),q(),L()},R=(se,me)=>{const ee=n.unref(x),le=(F.value-ee)/me*se;U({scrollTop:Math.min(F.value-ee,le)})},H=(se,me)=>{const ee=n.unref(v),le=(M.value-ee)/me*se;U({scrollLeft:Math.min(M.value-ee,le)})},{onWheel:j}=phe({atXStartEdge:n.computed(()=>T.value.scrollLeft<=0),atXEndEdge:n.computed(()=>T.value.scrollLeft>=M.value),atYStartEdge:n.computed(()=>T.value.scrollTop<=0),atYEndEdge:n.computed(()=>T.value.scrollTop>=F.value)},(se,me)=>{E.value?.onMouseUp?.(),E.value?.onMouseUp?.();const ee=n.unref(v),le=n.unref(x);U({scrollLeft:Math.min(T.value.scrollLeft+se,M.value-ee),scrollTop:Math.min(T.value.scrollTop+me,F.value-le)})}),U=({scrollLeft:se=T.value.scrollLeft,scrollTop:me=T.value.scrollTop})=>{se=Math.max(se,0),me=Math.max(me,0);const ee=n.unref(T);me===ee.scrollTop&&se===ee.scrollLeft||(T.value={...ee,xAxisScrollDir:Ha(ee.scrollLeft,se),yAxisScrollDir:Ha(ee.scrollTop,me),scrollLeft:se,scrollTop:me,updateRequested:!0},n.nextTick(()=>Y()),q(),L())},re=(se=0,me=0,ee=oo)=>{const le=n.unref(T);me=Math.max(0,Math.min(me,g.totalColumn-1)),se=Math.max(0,Math.min(se,g.totalRow-1));const Ce=hC(C.namespace.value),X=n.unref(k),ie=i(g,X),we=s(g,X);U({scrollLeft:l(g,me,ee,le.scrollLeft,X,we>g.width?Ce:0),scrollTop:c(g,se,ee,le.scrollTop,X,ie>g.height?Ce:0)})},J=(se,me)=>{const{columnWidth:ee,direction:le,rowHeight:Ce}=g,X=P.value(t&&ee,t&&Ce,t&&le),ie=`${se},${me}`;if(Kt(X,ie))return X[ie];{const[,we]=o(g,me,n.unref(k)),fe=n.unref(k),$e=vS(le),[ce,ke]=d(g,se,fe),[Ae]=o(g,me,fe);return X[ie]={position:"absolute",left:$e?void 0:`${we}px`,right:$e?`${we}px`:void 0,top:`${ke}px`,height:`${ce}px`,width:`${Ae}px`},X[ie]}},Y=()=>{T.value.isScrolling=!1,n.nextTick(()=>{P.value(-1,null,null)})};n.onMounted(()=>{if(!Re)return;const{initScrollLeft:se,initScrollTop:me}=g,ee=n.unref(S);ee&&(Se(se)&&(ee.scrollLeft=se),Se(me)&&(ee.scrollTop=me)),L()});const q=()=>{const{direction:se}=g,{scrollLeft:me,scrollTop:ee,updateRequested:le}=n.unref(T),Ce=n.unref(S);if(le&&Ce){if(se===Gi)switch(Fu()){case Lu:{Ce.scrollLeft=-me;break}case AS:{Ce.scrollLeft=me;break}default:{const{clientWidth:X,scrollWidth:ie}=Ce;Ce.scrollLeft=ie-X-me;break}}else Ce.scrollLeft=Math.max(0,me);Ce.scrollTop=Math.max(0,ee)}},{resetAfterColumnIndex:te,resetAfterRowIndex:ue,resetAfter:ge}=b.proxy;w({windowRef:S,innerRef:_,getItemStyleCache:P,scrollTo:U,scrollToItem:re,states:T,resetAfterColumnIndex:te,resetAfterRowIndex:ue,resetAfter:ge});const Ee=()=>{const{scrollbarAlwaysOn:se,scrollbarStartGap:me,scrollbarEndGap:ee,totalColumn:le,totalRow:Ce}=g,X=n.unref(v),ie=n.unref(x),we=n.unref(M),fe=n.unref(F),{scrollLeft:$e,scrollTop:ce}=n.unref(T),ke=n.h($0,{ref:E,alwaysOn:se,startGap:me,endGap:ee,class:C.e("horizontal"),clientSize:X,layout:"horizontal",onScroll:H,ratio:X*100/we,scrollFrom:$e/(we-X),total:Ce,visible:!0}),Ae=n.h($0,{ref:N,alwaysOn:se,startGap:me,endGap:ee,class:C.e("vertical"),clientSize:ie,layout:"vertical",onScroll:R,ratio:ie*100/fe,scrollFrom:ce/(fe-ie),total:le,visible:!0});return{horizontalScrollbar:ke,verticalScrollbar:Ae}},Te=()=>{const[se,me]=n.unref(O),[ee,le]=n.unref(I),{data:Ce,totalColumn:X,totalRow:ie,useIsScrolling:we,itemKey:fe}=g,$e=[];if(ie>0&&X>0)for(let ce=ee;ce<=le;ce++)for(let ke=se;ke<=me;ke++)$e.push($.default?.({columnIndex:ke,data:Ce,key:fe({columnIndex:ke,data:Ce,rowIndex:ce}),isScrolling:we?n.unref(T).isScrolling:void 0,style:J(ce,ke),rowIndex:ce}));return $e},ye=()=>{const se=n.resolveDynamicComponent(g.innerElement),me=Te();return[n.h(se,{style:n.unref(B),ref:_},De(se)?me:{default:()=>me})]};return()=>{const se=n.resolveDynamicComponent(g.containerElement),{horizontalScrollbar:me,verticalScrollbar:ee}=Ee(),le=ye();return n.h("div",{key:0,class:C.e("wrapper")},[n.h(se,{class:g.className,style:n.unref(z),onScroll:W,onWheel:j,ref:S},De(se)?le:{default:()=>le}),me,ee])}}}),VS=LS({name:"BFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:o},r,a,i,s,l)=>{o=Number(o);const c=Math.max(0,e*t-o),d=Math.min(c,r*t),u=Math.max(0,r*t-o+l+t);switch(a==="smart"&&(i>=u-o&&i<=d+o?a=oo:a=Uo),a){case Kl:return d;case jl:return u;case Uo:{const f=Math.round(u+(d-u)/2);return f<Math.ceil(o/2)?0:f>c+Math.floor(o/2)?c:f}case oo:default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getRowOffset:({rowHeight:e,height:t,totalRow:o},r,a,i,s,l)=>{t=Number(t);const c=Math.max(0,o*e-t),d=Math.min(c,r*e),u=Math.max(0,r*e-t+l+e);switch(a===Ru&&(i>=u-t&&i<=d+t?a=oo:a=Uo),a){case Kl:return d;case jl:return u;case Uo:{const f=Math.round(u+(d-u)/2);return f<Math.ceil(t/2)?0:f>c+Math.floor(t/2)?c:f}case oo:default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:o},r,a)=>{const i=r*e,s=Math.ceil((o+a-i)/e);return Math.max(0,Math.min(t-1,r+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:o},r,a)=>{const i=r*e,s=Math.ceil((o+a-i)/e);return Math.max(0,Math.min(t-1,r+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});const{max:zu,min:FS,floor:zS}=Math,mhe={column:"columnWidth",row:"rowHeight"},S0={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Sr=(e,t,o,r)=>{const[a,i,s]=[o[r],e[mhe[r]],o[S0[r]]];if(t>s){let l=0;if(s>=0){const c=a[s];l=c.offset+c.size}for(let c=s+1;c<=t;c++){const d=i(c);a[c]={offset:l,size:d},l+=d}o[S0[r]]=t}return a[t]},HS=(e,t,o,r,a,i)=>{for(;o<=r;){const s=o+zS((r-o)/2),l=Sr(e,s,t,i).offset;if(l===a)return s;l<a?o=s+1:r=s-1}return zu(0,o-1)},ghe=(e,t,o,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let s=1;for(;o<i&&Sr(e,o,t,a).offset<r;)o+=s,s*=2;return HS(e,t,zS(o/2),FS(o,i-1),r,a)},WS=(e,t,o,r)=>{const[a,i]=[t[r],t[S0[r]]];return(i>0?a[i].offset:0)>=o?HS(e,t,0,i,o,r):ghe(e,t,zu(0,i),o,r)},KS=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:o,row:r})=>{let a=0;if(o>=e&&(o=e-1),o>=0){const l=r[o];a=l.offset+l.size}const s=(e-o-1)*t;return a+s},jS=({totalColumn:e},{column:t,estimatedColumnWidth:o,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const l=t[r];a=l.offset+l.size}const s=(e-r-1)*o;return a+s},yhe={column:jS,row:KS},US=(e,t,o,r,a,i,s)=>{const[l,c]=[i==="row"?e.height:e.width,yhe[i]],d=Sr(e,t,a,i),u=c(e,a),f=zu(0,FS(u-l,d.offset)),h=zu(0,d.offset-l+s+d.size);switch(o===Ru&&(r>=h-l&&r<=f+l?o=oo:o=Uo),o){case Kl:return f;case jl:return h;case Uo:return Math.round(h+(f-h)/2);case oo:default:return r>=h&&r<=f?r:h>f||r<h?h:f}};var GS=LS({name:"BDynamicSizeGrid",getColumnPosition:(e,t,o)=>{const r=Sr(e,t,o,"column");return[r.size,r.offset]},getRowPosition:(e,t,o)=>{const r=Sr(e,t,o,"row");return[r.size,r.offset]},getColumnOffset:(e,t,o,r,a,i)=>US(e,t,o,r,a,"column",i),getRowOffset:(e,t,o,r,a,i)=>US(e,t,o,r,a,"row",i),getColumnStartIndexForOffset:(e,t,o)=>WS(e,o,t,"column"),getColumnStopIndexForStartIndex:(e,t,o,r)=>{const a=Sr(e,t,r,"column"),i=o+e.width;let s=a.offset+a.size,l=t;for(;l<e.totalColumn-1&&s<i;)l++,s+=Sr(e,t,r,"column").size;return l},getEstimatedTotalHeight:KS,getEstimatedTotalWidth:jS,getRowStartIndexForOffset:(e,t,o)=>WS(e,o,t,"row"),getRowStopIndexForStartIndex:(e,t,o,r)=>{const{totalRow:a,height:i}=e,s=Sr(e,t,r,"row"),l=o+i;let c=s.size+s.offset,d=t;for(;d<a-1&&c<l;)d++,c+=Sr(e,d,r,"row").size;return d},injectToInstance:(e,t)=>{const o=({columnIndex:i,rowIndex:s},l)=>{l=Vt(l)?!0:l,Se(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),Se(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),e.exposed?.getItemStyleCache.value(-1,null,null),l&&e.proxy?.$forceUpdate()},r=(i,s)=>{o({columnIndex:i},s)},a=(i,s)=>{o({rowIndex:i},s)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:o})},initCache:({estimatedColumnWidth:e=d0,estimatedRowHeight:t=d0})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});const bhe=n.defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:G("select")}}});function Che(e,t,o,r,a,i){return e.item.isTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("group","title")),style:n.normalizeStyle([e.style,{lineHeight:`${e.height}px`}])},n.toDisplayString(e.item.label),7)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("group","split")),style:n.normalizeStyle(e.style)},[n.createElementVNode("span",{class:n.normalizeClass(e.ns.be("group","split-dash")),style:n.normalizeStyle({top:`${e.height/2}px`})},null,6)],6))}var whe=Q(bhe,[["render",Che],["__file","group-item.vue"]]);function $he(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const khe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:fi},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:Ft.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:hi},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:K(String),values:$a,default:"bottom-start"}},She={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Ehe=n.defineComponent({props:She,emits:["select","hover"],setup(e,{emit:t}){const o=G("select"),{hoverItem:r,selectOptionClick:a}=$he(e,{emit:t});return{ns:o,hoverItem:r,selectOptionClick:a}}}),Bhe=["aria-selected"];function Nhe(e,t,o,r,a,i){return n.openBlock(),n.createElementBlock("li",{"aria-selected":e.selected,style:n.normalizeStyle(e.style),class:n.normalizeClass([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=n.withModifiers((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[n.renderSlot(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[n.createElementVNode("span",null,n.toDisplayString(e.item.label),1)])],46,Bhe)}var _he=Q(Ehe,[["render",Nhe],["__file","option-item.vue"]]);const E0="BSelectV2Injection";var The=n.defineComponent({name:"BSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:o}){const r=n.inject(E0),a=G("select"),i=n.ref([]),s=n.ref(),l=n.computed(()=>e.data.length);n.watch(()=>l.value,()=>{r.popper.value.updatePopper?.()});const c=n.computed(()=>Vt(r.props.estimatedOptionHeight)),d=n.computed(()=>c.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:N=>i.value[N]}),u=(N=[],_)=>{const{props:{valueKey:T}}=r;return it(_)?N&&N.some(P=>rt(P,T)===rt(_,T)):N.includes(_)},f=(N,_)=>{if(it(_)){const{valueKey:T}=r.props;return rt(N,T)===rt(_,T)}else return N===_},h=(N,_)=>{const{valueKey:T}=r.props;return r.props.multiple?u(N,rt(_,T)):f(N,rt(_,T))},p=(N,_)=>{const{disabled:T,multiple:P,multipleLimit:x}=r.props;return T||!_&&(P?x>0&&N.length>=x:!1)},m=N=>e.hoveringIndex===N;o({listRef:s,isSized:c,isItemDisabled:p,isItemHovering:m,isItemSelected:h,scrollToItem:N=>{const _=s.value;_&&_.scrollToItem(N)},resetScrollTop:()=>{const N=s.value;N&&N.resetScrollTop()}});const w=N=>{const{index:_,data:T,style:P}=N,x=n.unref(c),{itemSize:v,estimatedSize:O}=n.unref(d),{modelValue:I}=r.props,{onSelect:F,onHover:M}=r,z=T[_];if(z.type==="Group")return n.createVNode(whe,{item:z,style:P,height:x?v:O},null);const B=h(I,z),L=p(I,B),W=m(_);return n.createVNode(_he,n.mergeProps(N,{selected:B,disabled:z.disabled||L,created:!!z.created,hovering:W,item:z,onSelect:F,onHover:M}),{default:R=>t.default?.(R)||n.createVNode("span",null,[z.label])})},{onKeyboardNavigate:$,onKeyboardSelect:C}=r,b=()=>{$("forward")},k=()=>{$("backward")},S=()=>{r.expanded=!1},E=N=>{const{code:_}=N,{tab:T,esc:P,down:x,up:v,enter:O}=de;switch(_!==T&&(N.preventDefault(),N.stopPropagation()),_){case T:case P:{S();break}case x:{b();break}case v:{k();break}case O:{C();break}}};return()=>{const{data:N,width:_}=e,{height:T,multiple:P,scrollbarAlwaysOn:x}=r.props;if(N.length===0)return n.createVNode("div",{class:a.b("dropdown"),style:{width:`${_}px`}},[t.empty?.()]);const v=n.unref(c)?k0:RS;return n.createVNode("div",{class:[a.b("dropdown"),a.is("multiple",P)]},[n.createVNode(v,n.mergeProps({ref:s},n.unref(d),{className:a.be("dropdown","list"),scrollbarAlwaysOn:x,data:N,height:T,width:_,total:N.length,onKeydown:E}),{default:O=>n.createVNode(w,O,null)})])}}});function Ahe(e,t){const o=n.ref(0),r=n.ref(null),a=n.computed(()=>e.allowCreate&&e.filterable);function i(u){const f=h=>h.value===u;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function s(u){!a.value||(e.multiple&&u.created?o.value++:r.value=u)}function l(u){if(a.value)if(u&&u.length>0&&!i(u)){const f={value:u,label:u,created:!0,disabled:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=f:t.createdOptions.push(f)}else if(e.multiple)t.createdOptions.length=o.value;else{const f=r.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function c(u){if(!a.value||!u||!u.created||u.created&&e.reserveKeyword&&t.inputValue===u.label)return;const f=t.createdOptions.findIndex(h=>h.value===u.value);~f&&(t.createdOptions.splice(f,1),o.value--)}function d(){a.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:l,removeNewOption:c,selectNewOption:s,clearAllNewOption:d}}const xhe=e=>{const t=[];return e.forEach(o=>{Me(o.options)?(t.push({label:o.label,isTitle:!0,type:"Group"}),o.options.forEach(r=>{t.push(r)}),t.push({type:"Group"})):t.push(o)}),t};function Mhe(e){const t=n.ref(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const s=i.target.value,l=s[s.length-1]||"";t.value=!jc(l)},handleCompositionEnd:i=>{t.value&&(t.value=!1,nt(e)&&e(i))}}}const YS="",qS=11,Phe={larget:51,default:42,small:33};var vhe=(e,t)=>{const{t:o}=He(),r=G("select-v2"),a=G("input"),{form:i,formItem:s}=mo(),l=n.reactive({inputValue:YS,displayInputValue:YS,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),c=n.ref(-1),d=n.ref(-1),u=n.ref(null),f=n.ref(null),h=n.ref(null),p=n.ref(null),m=n.ref(null),g=n.ref(null),y=n.ref(null),w=n.ref(!1),$=n.computed(()=>e.disabled||i?.disabled),C=n.computed(()=>{const ae=x.value.length*34;return ae>e.height?e.height:ae}),b=n.computed(()=>!xt(e.modelValue)||!rh(e.modelValue)),k=n.computed(()=>{const ae=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:b.value;return e.clearable&&!$.value&&l.comboBoxHovering&&ae}),S=n.computed(()=>e.remote&&e.filterable?"":mC),E=n.computed(()=>S.value&&r.is("reverse",w.value)),N=n.computed(()=>s?.validateState||""),_=n.computed(()=>Uj[N.value]),T=n.computed(()=>e.remote?300:0),P=n.computed(()=>{const ae=x.value;return e.loading?e.loadingText||o("b.select.loading"):e.remote&&l.inputValue===""&&ae.length===0?!1:e.filterable&&l.inputValue&&ae.length>0?e.noMatchText||o("b.select.noMatch"):ae.length===0?e.noDataText||o("b.select.noData"):null}),x=n.computed(()=>{const ae=Oe=>{const Ue=l.inputValue;return Ue?Oe.label?.includes(Ue):!0};return e.loading?[]:xhe(e.options.concat(l.createdOptions).map(Oe=>{if(Me(Oe.options)){const Ue=Oe.options.filter(ae);if(Ue.length>0)return{...Oe,options:Ue}}else if(e.remote||ae(Oe))return Oe;return null}).filter(Oe=>Oe!==null))}),v=n.computed(()=>x.value.every(ae=>ae.disabled)),O=At(),I=n.computed(()=>O.value==="small"?"small":"default"),F=n.computed(()=>{const ae=g.value,Oe=I.value||"default",Ue=ae?Number.parseInt(getComputedStyle(ae).paddingLeft):0,et=ae?Number.parseInt(getComputedStyle(ae).paddingRight):0;return l.selectWidth-et-Ue-Phe[Oe]}),M=()=>{d.value=m.value?.offsetWidth||200},z=n.computed(()=>({width:`${l.calculatedWidth===0?qS:Math.ceil(l.calculatedWidth)+qS}px`})),B=n.computed(()=>Me(e.modelValue)?e.modelValue.length===0&&!l.displayInputValue:e.filterable?l.displayInputValue.length===0:!0),L=n.computed(()=>{const ae=e.placeholder||o("b.select.placeholder");return e.multiple||xt(e.modelValue)||rh(e.modelValue)?ae:l.selectedLabel}),W=n.computed(()=>p.value?.popperRef?.contentRef),R=n.computed(()=>{if(e.multiple){const ae=e.modelValue.length;if(e.modelValue.length>0)return x.value.findIndex(Oe=>Oe.value===e.modelValue[ae-1])}else if(e.modelValue)return x.value.findIndex(ae=>ae.value===e.modelValue);return-1}),H=n.computed({get(){return w.value&&P.value!==!1},set(ae){w.value=ae}}),{createNewOption:j,removeNewOption:U,selectNewOption:re,clearAllNewOption:J}=Ahe(e,l),{handleCompositionStart:Y,handleCompositionUpdate:q,handleCompositionEnd:te}=Mhe(ae=>Dn(ae)),ue=()=>{f.value.focus?.(),p.value?.updatePopper()},ge=()=>{if(!e.automaticDropdown&&!$.value)return l.isComposing&&(l.softFocus=!0),n.nextTick(()=>{w.value=!w.value,f.value?.focus?.()})},Ee=()=>(e.filterable&&l.inputValue!==l.selectedLabel&&(l.query=l.selectedLabel),ye(l.inputValue),n.nextTick(()=>{j(l.inputValue)})),Te=Zt(Ee,T.value),ye=ae=>{l.previousQuery!==ae&&(l.previousQuery=ae,e.filterable&&nt(e.filterMethod)?e.filterMethod(ae):e.filterable&&e.remote&&nt(e.remoteMethod)&&e.remoteMethod(ae))},oe=ae=>{Bn(e.modelValue,ae)||t(ct,ae)},se=ae=>{t(Pe,ae),oe(ae),l.previousValue=ae.toString()},me=(ae=[],Oe)=>{if(!it(Oe))return ae.indexOf(Oe);const Ue=e.valueKey;let et=-1;return ae.some((No,V2e)=>rt(No,Ue)===rt(Oe,Ue)?(et=V2e,!0):!1),et},ee=ae=>it(ae)?rt(ae,e.valueKey):ae,le=ae=>it(ae)?ae.label:ae,Ce=()=>{if(!(e.collapseTags&&!e.filterable))return n.nextTick(()=>{if(!f.value)return;const ae=g.value;m.value.height=ae.offsetHeight,w.value&&P.value!==!1&&p.value?.updatePopper?.()})},X=()=>{if(ie(),M(),p.value?.updatePopper?.(),e.multiple)return Ce()},ie=()=>{const ae=g.value;ae&&(l.selectWidth=ae.getBoundingClientRect().width)},we=(ae,Oe,Ue=!0)=>{if(e.multiple){let et=e.modelValue.slice();const No=me(et,ee(ae));No>-1?(et=[...et.slice(0,No),...et.slice(No+1)],l.cachedOptions.splice(No,1),U(ae)):(e.multipleLimit<=0||et.length<e.multipleLimit)&&(et=[...et,ee(ae)],l.cachedOptions.push(ae),re(ae),Ze(Oe)),se(et),ae.created&&(l.query="",ye(""),l.inputLength=20),e.filterable&&!e.reserveKeyword&&(f.value.focus?.(),Z("")),e.filterable&&(l.calculatedWidth=y.value.getBoundingClientRect().width),Ce(),In()}else c.value=Oe,l.selectedLabel=ae.label,se(ee(ae)),w.value=!1,l.isComposing=!1,l.isSilentBlur=Ue,re(ae),ae.created||J(),Ze(Oe)},fe=(ae,Oe)=>{const{valueKey:Ue}=e,et=e.modelValue.indexOf(rt(Oe,Ue));if(et>-1&&!$.value){const No=[...e.modelValue.slice(0,et),...e.modelValue.slice(et+1)];return l.cachedOptions.splice(et,1),se(No),t("remove-tag",rt(Oe,Ue)),l.softFocus=!0,U(Oe),n.nextTick(ue)}ae.stopPropagation()},$e=ae=>{const Oe=l.isComposing;l.isComposing=!0,l.softFocus?l.softFocus=!1:Oe||t("focus",ae)},ce=ae=>(l.softFocus=!1,n.nextTick(()=>{f.value?.blur?.(),y.value&&(l.calculatedWidth=y.value.getBoundingClientRect().width),l.isSilentBlur?l.isSilentBlur=!1:l.isComposing&&t("blur",ae),l.isComposing=!1})),ke=()=>{l.displayInputValue.length>0?Z(""):w.value=!1},Ae=ae=>{if(l.displayInputValue.length===0){ae.preventDefault();const Oe=e.modelValue.slice();Oe.pop(),U(l.cachedOptions.pop()),se(Oe)}},V=()=>{let ae;return Me(e.modelValue)?ae=[]:ae="",l.softFocus=!0,e.multiple?l.cachedOptions=[]:l.selectedLabel="",w.value=!1,se(ae),t("clear"),J(),n.nextTick(ue)},Z=ae=>{l.displayInputValue=ae,l.inputValue=ae},he=(ae,Oe=void 0)=>{const Ue=x.value;if(!["forward","backward"].includes(ae)||$.value||Ue.length<=0||v.value)return;if(!w.value)return ge();Oe===void 0&&(Oe=l.hoveringIndex);let et=-1;ae==="forward"?(et=Oe+1,et>=Ue.length&&(et=0)):ae==="backward"&&(et=Oe-1,(et<0||et>=Ue.length)&&(et=Ue.length-1));const No=Ue[et];if(No.disabled||No.type==="Group")return he(ae,et);Ze(et),ln(et)},be=()=>{if(w.value)~l.hoveringIndex&&x.value[l.hoveringIndex]&&we(x.value[l.hoveringIndex],l.hoveringIndex,!1);else return ge()},Ze=ae=>{l.hoveringIndex=ae},en=()=>{l.hoveringIndex=-1},In=()=>{const ae=f.value;ae&&ae.focus?.()},Dn=ae=>{const Oe=ae.target.value;if(Z(Oe),l.displayInputValue.length>0&&!w.value&&(w.value=!0),l.calculatedWidth=y.value.getBoundingClientRect().width,e.multiple&&Ce(),e.remote)Te();else return Ee()},qo=()=>(w.value=!1,ce()),Ya=()=>(l.inputValue=l.displayInputValue,n.nextTick(()=>{~R.value&&(Ze(R.value),ln(l.hoveringIndex))})),ln=ae=>{h.value.scrollToItem(ae)},qa=()=>{if(en(),e.multiple)if(e.modelValue.length>0){let ae=!1;l.cachedOptions.length=0,l.previousValue=e.modelValue.toString(),e.modelValue.forEach(Oe=>{const Ue=x.value.findIndex(et=>ee(et)===Oe);~Ue&&(l.cachedOptions.push(x.value[Ue]),ae||Ze(Ue),ae=!0)})}else l.cachedOptions=[],l.previousValue="";else if(b.value){l.previousValue=e.modelValue;const ae=x.value,Oe=ae.findIndex(Ue=>ee(Ue)===ee(e.modelValue));~Oe?(l.selectedLabel=ae[Oe].label,Ze(Oe)):l.selectedLabel=`${e.modelValue}`}else l.selectedLabel="",l.previousValue="";J(),M()};return n.watch(w,ae=>{t("visible-change",ae),ae?p.value.update?.():(l.displayInputValue="",l.previousQuery=null,j(""))}),n.watch(()=>e.modelValue,(ae,Oe)=>{(!ae||ae.toString()!==l.previousValue)&&qa(),!Bn(ae,Oe)&&e.validateEvent&&s?.validate?.("change").catch(Ue=>void 0)},{deep:!0}),n.watch(()=>e.options,()=>{const ae=f.value;(!ae||ae&&document.activeElement!==ae)&&qa()},{deep:!0}),n.watch(x,()=>n.nextTick(h.value.resetScrollTop)),n.onMounted(()=>{qa()}),an(m,X),{collapseTagSize:I,currentPlaceholder:L,expanded:w,emptyText:P,popupHeight:C,debounce:T,filteredOptions:x,iconComponent:S,iconReverse:E,inputWrapperStyle:z,popperSize:d,dropdownMenuVisible:H,hasModelValue:b,shouldShowPlaceholder:B,selectDisabled:$,selectSize:O,showClearBtn:k,states:l,tagMaxWidth:F,nsSelectV2:r,nsInput:a,calculatorRef:y,controlRef:u,inputRef:f,menuRef:h,popper:p,selectRef:m,selectionRef:g,popperRef:W,validateState:N,validateIcon:_,debouncedOnInputChange:Te,deleteTag:fe,getLabel:le,getValueKey:ee,handleBlur:ce,handleClear:V,handleClickOutside:qo,handleDel:Ae,handleEsc:ke,handleFocus:$e,handleMenuEnter:Ya,handleResize:X,toggleMenu:ge,scrollTo:ln,onInput:Dn,onKeyboardNavigate:he,onKeyboardSelect:be,onSelect:we,onHover:Ze,onUpdateInputValue:Z,handleCompositionStart:Y,handleCompositionEnd:te,handleCompositionUpdate:q}};const Ohe=n.defineComponent({name:"BSelectV2",components:{BSelectMenu:The,BTag:Ni,BTooltip:Xt,BIcon:pe},directives:{ClickOutside:Bi,ModelText:n.vModelText},props:khe,emits:[Pe,ct,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=vhe(e,t);return n.provide(E0,{props:n.reactive({...n.toRefs(e),height:o.popupHeight}),popper:o.popper,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect}),o}}),Ihe={key:0},Dhe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Rhe=["textContent"],Lhe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Vhe=["textContent"];function Fhe(e,t,o,r,a,i){const s=n.resolveComponent("b-tag"),l=n.resolveComponent("b-tooltip"),c=n.resolveComponent("b-icon"),d=n.resolveComponent("b-select-menu"),u=n.resolveDirective("model-text"),f=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),"data-test-name":"select-v2","data-test-variant":"","data-test-state":"",onClick:t[25]||(t[25]=n.withModifiers((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"])),onMouseenter:t[26]||(t[26]=h=>e.states.comboBoxHovering=!0),onMouseleave:t[27]||(t[27]=h=>e.states.comboBoxHovering=!1)},[n.createVNode(l,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[24]||(t[24]=h=>e.states.inputValue=e.states.displayInputValue)},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",Ihe,[n.renderSlot(e.$slots,"prefix")])):n.createCommentVNode("v-if",!0),e.multiple?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelectV2.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!e.states.cachedOptions[0]?.disable,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=h=>e.deleteTag(h,e.states.cachedOptions[0]))},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelectV2.e("tags-text")),style:n.normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},n.toDisplayString(e.states.cachedOptions[0]?.label),7)]),_:1},8,["closable","size"]),e.modelValue.length>1?(n.openBlock(),n.createBlock(s,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:n.withCtx(()=>[e.collapseTagsTooltip?(n.openBlock(),n.createBlock(l,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelectV2.e("tags-text")),style:n.normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},"+ "+n.toDisplayString(e.modelValue.length-1),7)]),content:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.nsSelectV2.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.states.cachedOptions.slice(1),(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:n.normalizeClass(e.nsSelectV2.e("selected-item"))},[(n.openBlock(),n.createBlock(s,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:m=>e.deleteTag(m,h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelectV2.e("tags-text")),style:n.normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},n.toDisplayString(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.nsSelectV2.e("tags-text")),style:n.normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},"+ "+n.toDisplayString(e.modelValue.length-1),7))]),_:1},8,["size"])):n.createCommentVNode("v-if",!0)],2)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.states.cachedOptions,(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:n.normalizeClass(e.nsSelectV2.e("selected-item"))},[(n.openBlock(),n.createBlock(s,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:m=>e.deleteTag(m,h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelectV2.e("tags-text")),style:n.normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},n.toDisplayString(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),n.createElementVNode("div",{class:n.normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:n.normalizeStyle(e.inputWrapperStyle)},[n.withDirectives(n.createElementVNode("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:n.normalizeClass([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"on:update:modelValue":t[1]||(t[1]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h)),onFocus:t[2]||(t[2]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[3]||(t[3]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[4]||(t[4]=(...h)=>e.onInput&&e.onInput(...h)),onCompositionstart:t[5]||(t[5]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[6]||(t[6]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[7]||(t[7]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[8]||(t[8]=n.withKeys(n.withModifiers(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[9]||(t[9]=n.withKeys(n.withModifiers(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[10]||(t[10]=n.withKeys(n.withModifiers((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[11]||(t[11]=n.withKeys(n.withModifiers((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[12]||(t[12]=n.withKeys(n.withModifiers((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))]},null,42,Dhe),[[u,e.states.displayInputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelectV2.e("input-calculator")),textContent:n.toDisplayString(e.states.displayInputValue)},null,10,Rhe)):n.createCommentVNode("v-if",!0)],6)],2)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",{class:n.normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[n.withDirectives(n.createElementVNode("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:n.normalizeClass(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[13]||(t[13]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[14]||(t[14]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[15]||(t[15]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onFocus:t[16]||(t[16]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[17]||(t[17]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[18]||(t[18]=(...h)=>e.onInput&&e.onInput(...h)),onKeydown:[t[19]||(t[19]=n.withKeys(n.withModifiers(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[20]||(t[20]=n.withKeys(n.withModifiers(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[21]||(t[21]=n.withKeys(n.withModifiers((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[22]||(t[22]=n.withKeys(n.withModifiers((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"]))],"on:update:modelValue":t[23]||(t[23]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h))},null,42,Lhe),[[u,e.states.displayInputValue]])],2),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:n.toDisplayString(e.states.displayInputValue)},null,10,Vhe)):n.createCommentVNode("v-if",!0)],64)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("span",{key:3,class:n.normalizeClass([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},n.toDisplayString(e.currentPlaceholder),3)):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:n.normalizeClass(e.nsSelectV2.e("suffix"))},[e.iconComponent?n.withDirectives((n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])),[[n.vShow,!e.showClearBtn]]):n.createCommentVNode("v-if",!0),e.showClearBtn&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:n.withModifiers(e.handleClear,["prevent","stop"])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],2)]),content:n.withCtx(()=>[n.createVNode(d,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:n.withCtx(h=>[n.renderSlot(e.$slots,"default",n.normalizeProps(n.guardReactiveProps(h)))]),empty:n.withCtx(()=>[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("p",{class:n.normalizeClass(e.nsSelectV2.e("empty"))},n.toDisplayString(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var Hu=Q(Ohe,[["render",Fhe],["__file","select.vue"]]);Hu.install=e=>{e.component(Hu.name,Hu)};const ZS=Hu,zhe=ne({prefixCls:{type:String},itemClass:{type:K([String,Object,Array]),default:""}});var XS=n.defineComponent({name:"BSpaceItem",props:zhe,setup(e,{slots:t}){const o=G("space"),r=n.computed(()=>`${e.prefixCls||o.b()}__item ${e.itemClass}`);return()=>n.h("div",{class:r.value},n.renderSlot(t,"default"))}});const JS={xxsmall:4,xsmall:8,small:16,default:24,large:32,xlarge:40,"":0};function QS(e){const t=G("space"),o=n.computed(()=>[t.b(),t.m(e.vertical??e.direction==="vertical"?"vertical":"horizontal"),e.class]),r=n.ref(0),a=n.ref(0),i=n.computed(()=>{const l=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`,marginRight:`-${r.value}px`}:{},c={alignItems:e.alignment};return[l,c,e.style]}),s=n.computed(()=>{const l={paddingBottom:`${a.value}px`,paddingRight:`${r.value}px`},c=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[l,c]});return n.watchEffect(()=>{const{size:l="small",gutter:c,wrap:d,direction:u,vertical:f,fill:h}=e;if(Me(l)){const[p=0,m=0]=l;r.value=p*4,a.value=m*4}else{let p;Se(l)?p=l*4:p=JS[l]||JS.small,c>-1&&(p=c*4),(d||h)&&u==="horizontal"&&!f?r.value=a.value=p:u==="horizontal"&&!f?(r.value=p,a.value=0):(a.value=p,r.value=0)}}),{classes:o,containerStyle:i,itemStyle:s}}const eE=ne({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:K([String,Object,Array]),default:""},itemClass:{type:K([String,Object,Array]),default:""},style:{type:K([String,Array,Object]),default:""},alignment:{type:K(String),default:"center"},prefixCls:{type:String},spacer:{type:K([Object,String,Number,Array]),default:null,validator:e=>n.isVNode(e)||Se(e)||De(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ba,validator:e=>Se(e)||Me(e)&&e.length===2&&e.every(Se)},gutter:{type:Number,default:-1},vertical:Boolean});var Hhe=n.defineComponent({name:"BSpace",props:eE,setup(e,{slots:t}){const{classes:o,containerStyle:r,itemStyle:a}=QS(e);function i(s,l="",c=[]){const{prefixCls:d,itemClass:u}=e;return s.forEach((f,h)=>{Rh(f)?Me(f.children)&&f.children.forEach((p,m)=>{Rh(p)&&Me(p.children)?i(p.children,`${l+m}-`,c):c.push(n.createVNode(XS,{style:a.value,prefixCls:d,itemClass:u,key:`nested-${l+m}`},{default:()=>[p]},Gn.PROPS|Gn.STYLE,["style","prefixCls","itemClass"]))}):Zj(f)&&c.push(n.createVNode(XS,{style:a.value,prefixCls:d,itemClass:u,key:`LoopKey${l+h}`},{default:()=>[f]},Gn.PROPS|Gn.STYLE,["style","prefixCls","itemClass"]))}),c}return()=>{const{spacer:s,direction:l,vertical:c}=e,d=n.renderSlot(t,"default",{key:0},()=>[]);if((d.children??[]).length===0)return null;if(Me(d.children)){let u=i(d.children);if(s){const f=u.length-1;u=u.reduce((h,p,m)=>{const g=[...h,p];return m!==f&&g.push(n.createVNode("div",{style:[a.value,l==="vertical"||c?"width: 100%":null],key:m},[n.isVNode(s)?s:n.createTextVNode(s,Gn.TEXT)],Gn.STYLE)),g},[])}return n.createVNode("div",{class:o.value,style:r.value,dataTestName:"space"},u,Gn.STYLE|Gn.CLASS)}return d.children}}});const B0=Ne(Hhe),tE=ne({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number},gutter:{type:Number,default:4}}),nE=ne({variant:{type:String,values:["circle","rect","h2","h3","h4","text","caption","subtile","p","image","button"],default:"text"}}),Whe=n.defineComponent({name:"BSkeletonItem"}),Khe=n.defineComponent({...Whe,props:nE,setup(e){const t=G("skeleton");return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(t).e("item"),n.unref(t).e(o.variant)])},[o.variant==="image"?(n.openBlock(),n.createBlock(n.unref(ZW),{key:0})):n.createCommentVNode("v-if",!0)],2))}});var Zi=Q(Khe,[["__file","skeleton-item.vue"]]);const jhe=n.defineComponent({name:"BSkeleton"}),Uhe=n.defineComponent({...jhe,props:tE,setup(e,{expose:t}){const o=e,r=G("skeleton"),a=FC(n.toRef(o,"loading"),o.throttle);return t({uiLoading:a}),(i,s)=>n.unref(a)?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:[n.unref(r).b(),n.unref(r).is("animated",i.animated)]},i.$attrs,{"data-test-name":"skeleton","data-test-variant":"","data-test-state":""}),[i.count===1?n.renderSlot(i.$slots,"template",{key:0},()=>[n.createVNode(Zi,{class:n.normalizeClass(n.unref(r).is("first")),variant:"p"},null,8,["class"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.rows,l=>(n.openBlock(),n.createBlock(Zi,{key:l,class:n.normalizeClass([n.unref(r).e("paragraph"),n.unref(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):(n.openBlock(),n.createBlock(n.unref(B0),{key:1,wrap:"",gutter:i.gutter},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.count,l=>(n.openBlock(),n.createElementBlock("div",{key:l},[i.loading?n.renderSlot(i.$slots,"template",{key:l},()=>[n.createVNode(Zi,{class:n.normalizeClass(n.unref(r).is("first")),variant:"p"},null,8,["class"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.rows,c=>(n.openBlock(),n.createBlock(Zi,{key:c,class:n.normalizeClass([n.unref(r).e("paragraph"),n.unref(r).is("last",c===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):n.createCommentVNode("v-if",!0)]))),128))]),_:3},8,["gutter"]))],16)):n.renderSlot(i.$slots,"default",n.normalizeProps(n.mergeProps({key:1},i.$attrs)))}});var Ghe=Q(Uhe,[["__file","skeleton.vue"]]);const oE=Ne(Ghe,{SkeletonItem:Zi}),rE=Ge(Zi),aE=ne({modelValue:{type:K([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:It,inputSize:It,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:K(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:K(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:$a,default:"top"},marks:{type:K(Object)},validateEvent:{type:Boolean,default:!0},large:{type:Boolean,default:!1},small:{type:Boolean,default:!1}}),N0=e=>Se(e)||Me(e)&&e.every(Se),iE={[Pe]:N0,[_n]:N0,[ct]:N0},Yhe=(e,t,o)=>{const r=n.ref();return n.onMounted(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Xe(window,"resize",o),await n.nextTick(),o()}),{sliderWrapper:r}},qhe=e=>n.computed(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,r)=>o-r).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]),Zhe=(e,t,o)=>{const{formItem:r}=mo(),a=n.shallowRef(),i=n.ref(),s=n.ref(),l={firstButton:i,secondButton:s},c=n.computed(()=>e.disabled||!1),d=n.computed(()=>Math.min(t.firstValue,t.secondValue)),u=n.computed(()=>Math.max(t.firstValue,t.secondValue)),f=n.computed(()=>e.range?`${100*(u.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=n.computed(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),p=n.computed(()=>e.vertical?{height:e.height}:{}),m=n.computed(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),g=()=>{a.value&&(t.sliderSize=a.value[`client${e.vertical?"Height":"Width"}`])},y=T=>{const P=e.min+T*(e.max-e.min)/100;if(!e.range)return i;let x;return Math.abs(d.value-P)<Math.abs(u.value-P)?x=t.firstValue<t.secondValue?"firstButton":"secondButton":x=t.firstValue>t.secondValue?"firstButton":"secondButton",l[x]},w=T=>{const P=y(T);return P.value.setPosition(T),P},$=T=>{t.firstValue=T,b(e.range?[d.value,u.value]:T)},C=T=>{t.secondValue=T,e.range&&b([d.value,u.value])},b=T=>{o(Pe,T),o(_n,T)},k=async()=>{await n.nextTick(),o(ct,e.range?[d.value,u.value]:e.modelValue)},S=T=>{if(c.value||t.dragging)return;g();let P=0;if(e.vertical){const x=T.touches?.item(0)?.clientY??T.clientY;P=(a.value.getBoundingClientRect().bottom-x)/t.sliderSize*100}else{const x=T.touches?.item(0)?.clientX??T.clientX,v=a.value.getBoundingClientRect().left;P=(x-v)/t.sliderSize*100}if(!(P<0||P>100))return w(P)};return{elFormItem:r,slider:a,firstButton:i,secondButton:s,sliderDisabled:c,minValue:d,maxValue:u,runwayStyle:p,barStyle:m,resetSize:g,setPosition:w,emitChange:k,onSliderWrapperPrevent:T=>{(l.firstButton.value?.dragging||l.secondButton.value?.dragging)&&T.preventDefault()},onSliderClick:T=>{S(T)&&k()},onSliderDown:async T=>{const P=S(T);P&&(await n.nextTick(),P.value.onButtonDown(T))},setFirstValue:$,setSecondValue:C}},{left:Xhe,down:Jhe,right:Qhe,up:epe,home:tpe,end:npe,pageUp:ope,pageDown:rpe}=de,ape=(e,t,o)=>{const r=n.ref(),a=n.ref(!1),i=n.computed(()=>t.value instanceof Function),s=n.computed(()=>i.value&&t.value(e.modelValue)||e.modelValue),l=Zt(()=>{o.value&&(a.value=!0)},50),c=Zt(()=>{o.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:s,displayTooltip:l,hideTooltip:c}},ipe=(e,t,o)=>{const{disabled:r,min:a,max:i,step:s,showTooltip:l,precision:c,sliderSize:d,formatTooltip:u,emitChange:f,resetSize:h,updateDragging:p}=n.inject(Jh),{tooltip:m,tooltipVisible:g,formatValue:y,displayTooltip:w,hideTooltip:$}=ape(e,u,l),C=n.ref(),b=n.computed(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),k=n.computed(()=>e.vertical?{bottom:b.value}:{left:b.value}),S=()=>{t.hovering=!0,w()},E=()=>{t.hovering=!1,t.dragging||$()},N=R=>{r.value||(R.preventDefault(),z(R),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",L),window.addEventListener("touchend",L),window.addEventListener("contextmenu",L),C.value.focus())},_=R=>{r.value||(t.newPosition=Number.parseFloat(b.value)+R/(i.value-a.value)*100,W(t.newPosition),f())},T=()=>{_(-s.value)},P=()=>{_(s.value)},x=()=>{_(-s.value*4)},v=()=>{_(s.value*4)},O=()=>{r.value||(W(0),f())},I=()=>{r.value||(W(100),f())},F=R=>{let H=!0;[Xhe,Jhe].includes(R.key)?T():[Qhe,epe].includes(R.key)?P():R.key===tpe?O():R.key===npe?I():R.key===rpe?x():R.key===ope?v():H=!1,H&&R.preventDefault()},M=R=>{let H,j;return R.type.startsWith("touch")?(j=R.touches[0].clientY,H=R.touches[0].clientX):(j=R.clientY,H=R.clientX),{clientX:H,clientY:j}},z=R=>{t.dragging=!0,t.isClick=!0;const{clientX:H,clientY:j}=M(R);e.vertical?t.startY=j:t.startX=H,t.startPosition=Number.parseFloat(b.value),t.newPosition=t.startPosition},B=R=>{if(t.dragging){t.isClick=!1,w(),h();let H;const{clientX:j,clientY:U}=M(R);e.vertical?(t.currentY=U,H=(t.startY-t.currentY)/d.value*100):(t.currentX=j,H=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+H,W(t.newPosition)}},L=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||$(),t.isClick||W(t.newPosition),f()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",L),window.removeEventListener("touchend",L),window.removeEventListener("contextmenu",L))},W=async R=>{if(R===null||Number.isNaN(+R))return;R<0?R=0:R>100&&(R=100);const H=100/((i.value-a.value)/s.value);let U=Math.round(R/H)*H*(i.value-a.value)*.01+a.value;U=Number.parseFloat(U.toFixed(c.value)),U!==e.modelValue&&o(Pe,U),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await n.nextTick(),t.dragging&&w(),m.value.updatePopper()};return n.watch(()=>t.dragging,R=>{p(R)}),{disabled:r,button:C,tooltip:m,tooltipVisible:g,showTooltip:l,wrapperStyle:k,formatValue:y,handleMouseEnter:S,handleMouseLeave:E,onButtonDown:N,onKeyDown:F,setPosition:W}},spe=(e,t,o,r)=>({stops:n.computed(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,l=100*e.step/(e.max-e.min),c=Array.from({length:s-1}).map((d,u)=>(u+1)*l);return e.range?c.filter(d=>d<100*(o.value-e.min)/(e.max-e.min)||d>100*(r.value-e.min)/(e.max-e.min)):c.filter(d=>d>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),lpe=(e,t,o,r,a)=>{const i=c=>{a(Pe,c),a(_n,c)},s=()=>e.range?![o.value,r.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{if(e.min>e.max){vt("Slider","min should not be greater than max.");return}const c=e.modelValue;e.range&&Array.isArray(c)?c[1]<e.min?i([e.min,e.min]):c[0]>e.max?i([e.max,e.max]):c[0]<e.min?i([e.min,c[1]]):c[1]>e.max?i([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(t.oldValue=c.slice())):!e.range&&typeof c=="number"&&!Number.isNaN(c)&&(c<e.min?i(e.min):c>e.max?i(e.max):(t.firstValue=c,s()&&(t.oldValue=c)))};l(),n.watch(()=>t.dragging,c=>{c||l()}),n.watch(()=>e.modelValue,(c,d)=>{t.dragging||Array.isArray(c)&&Array.isArray(d)&&c.every((u,f)=>u===d[f])&&t.firstValue===c[0]&&t.secondValue===c[1]||l()},{deep:!0}),n.watch(()=>[e.min,e.max],()=>{l()})},cpe=ne({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:$a,default:"top"}}),dpe={[Pe]:e=>Se(e)},upe=["tabindex"],fpe=n.defineComponent({name:"BSliderButton"}),hpe=n.defineComponent({...fpe,props:cpe,emits:dpe,setup(e,{expose:t,emit:o}){const r=e,a=G("slider"),i=n.reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:s,button:l,tooltip:c,showTooltip:d,tooltipVisible:u,wrapperStyle:f,formatValue:h,handleMouseEnter:p,handleMouseLeave:m,onButtonDown:g,onKeyDown:y,setPosition:w}=ipe(r,i,o),{hovering:$,dragging:C}=n.toRefs(i);return t({onButtonDown:g,onKeyDown:y,setPosition:w,hovering:$,dragging:C}),(b,k)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"button",ref:l,class:n.normalizeClass([n.unref(a).e("button-wrapper"),{hover:n.unref($),dragging:n.unref(C)}]),style:n.normalizeStyle(n.unref(f)),tabindex:n.unref(s)?-1:0,onMouseenter:k[0]||(k[0]=(...S)=>n.unref(p)&&n.unref(p)(...S)),onMouseleave:k[1]||(k[1]=(...S)=>n.unref(m)&&n.unref(m)(...S)),onMousedown:k[2]||(k[2]=(...S)=>n.unref(g)&&n.unref(g)(...S)),onTouchstart:k[3]||(k[3]=(...S)=>n.unref(g)&&n.unref(g)(...S)),onFocus:k[4]||(k[4]=(...S)=>n.unref(p)&&n.unref(p)(...S)),onBlur:k[5]||(k[5]=(...S)=>n.unref(m)&&n.unref(m)(...S)),onKeydown:k[6]||(k[6]=(...S)=>n.unref(y)&&n.unref(y)(...S))},[n.createVNode(n.unref(Xt),{ref_key:"tooltip",ref:c,visible:n.unref(u),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!n.unref(d),persistent:""},{content:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(n.unref(h)),1)]),default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass([n.unref(a).e("button"),{hover:n.unref($),dragging:n.unref(C)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,upe))}});var sE=Q(hpe,[["__file","button.vue"]]);const ppe=ne({mark:{type:K([String,Object]),default:void 0}});var mpe=n.defineComponent({name:"BSliderMarker",props:ppe,setup(e){const t=G("slider"),o=n.computed(()=>De(e.mark)?e.mark:e.mark.label),r=n.computed(()=>De(e.mark)?void 0:e.mark.style);return()=>n.h("div",{class:t.e("marks-text"),style:r.value},o.value)}});const gpe=["id","role"],ype={key:1},bpe=n.defineComponent({name:"BSlider"}),Cpe=n.defineComponent({...bpe,props:aE,emits:iE,setup(e,{expose:t,emit:o}){const r=e,a=G("slider"),{t:i}=He(),s=n.reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:c,firstButton:d,secondButton:u,sliderDisabled:f,minValue:h,maxValue:p,runwayStyle:m,barStyle:g,resetSize:y,emitChange:w,onSliderWrapperPrevent:$,onSliderClick:C,onSliderDown:b,setFirstValue:k,setSecondValue:S}=Zhe(r,s,o),{stops:E,getStopStyle:N}=spe(r,s,h,p),{inputId:_}=cr(r,{formItemContext:l}),T=At(),P=n.computed(()=>r.inputSize||T.value),x=n.computed(()=>r.formatValueText?r.formatValueText(B.value):`${B.value}`),v=n.computed(()=>r.rangeEndLabel||i("b.slider.defaultRangeEndLabel")),O=n.computed(()=>r.formatValueText?r.formatValueText(L.value):`${L.value}`),I=n.computed(()=>[a.b(),a.m(T.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),F=qhe(r);lpe(r,s,h,p,o);const M=n.computed(()=>{const H=[r.min,r.max,r.step].map(j=>{const U=`${j}`.split(".")[1];return U?U.length:0});return Math.max.apply(null,H)}),{sliderWrapper:z}=Yhe(r,s,y),{firstValue:B,secondValue:L,sliderSize:W}=n.toRefs(s),R=H=>{s.dragging=H};return n.provide(Jh,{...n.toRefs(r),sliderSize:W,disabled:f,precision:M,emitChange:w,resetSize:y,updateDragging:R}),t({onSliderClick:C}),(H,j)=>(n.openBlock(),n.createElementBlock("div",{id:H.range?n.unref(_):void 0,ref_key:"sliderWrapper",ref:z,class:n.normalizeClass(n.unref(I)),role:H.range?"group":void 0,"data-test-name":"slider","data-test-variant":"","data-test-state":"",onTouchstart:j[2]||(j[2]=(...U)=>n.unref($)&&n.unref($)(...U)),onTouchmove:j[3]||(j[3]=(...U)=>n.unref($)&&n.unref($)(...U))},[n.createElementVNode("div",{ref_key:"slider",ref:c,class:n.normalizeClass([n.unref(a).e("runway"),{"show-input":H.showInput&&!H.range},n.unref(a).is("disabled",n.unref(f))]),style:n.normalizeStyle(n.unref(m)),onMousedown:j[0]||(j[0]=(...U)=>n.unref(b)&&n.unref(b)(...U)),onTouchstart:j[1]||(j[1]=(...U)=>n.unref(b)&&n.unref(b)(...U))},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("bar")),style:n.normalizeStyle(n.unref(g))},null,6),n.createVNode(sE,{id:H.range?void 0:n.unref(_),ref_key:"firstButton",ref:d,"model-value":n.unref(B),vertical:H.vertical,"tooltip-class":H.tooltipClass,placement:H.placement,role:"slider","aria-valuemin":H.min,"aria-valuemax":H.range?n.unref(L):H.max,"aria-valuenow":n.unref(B),"aria-valuetext":n.unref(x),"aria-orientation":H.vertical?"vertical":"horizontal","aria-disabled":n.unref(f),"onUpdate:modelValue":n.unref(k)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),H.range?(n.openBlock(),n.createBlock(sE,{key:0,ref_key:"secondButton",ref:u,"model-value":n.unref(L),vertical:H.vertical,"tooltip-class":H.tooltipClass,placement:H.placement,role:"slider","aria-label":n.unref(v),"aria-valuemin":n.unref(B),"aria-valuemax":H.max,"aria-valuenow":n.unref(L),"aria-valuetext":n.unref(O),"aria-orientation":H.vertical?"vertical":"horizontal","aria-disabled":n.unref(f),"onUpdate:modelValue":n.unref(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):n.createCommentVNode("v-if",!0),H.showStops?(n.openBlock(),n.createElementBlock("div",ype,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(E),(U,re)=>(n.openBlock(),n.createElementBlock("div",{key:re,class:n.normalizeClass(n.unref(a).e("stop")),style:n.normalizeStyle(n.unref(N)(U))},null,6))),128))])):n.createCommentVNode("v-if",!0),n.unref(F).length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(F),(U,re)=>(n.openBlock(),n.createElementBlock("div",{key:re,style:n.normalizeStyle(n.unref(N)(U.position)),class:n.normalizeClass([n.unref(a).e("stop"),n.unref(a).e("marks-stop")])},null,6))),128))]),n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).e("marks"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(F),(U,re)=>(n.openBlock(),n.createBlock(n.unref(mpe),{key:re,mark:U.mark,style:n.normalizeStyle(n.unref(N)(U.position))},null,8,["mark","style"]))),128))],2)],64)):n.createCommentVNode("v-if",!0)],38),H.showInput&&!H.range?(n.openBlock(),n.createBlock(n.unref(E1),{key:0,ref:"input","model-value":n.unref(B),class:n.normalizeClass(n.unref(a).e("input")),step:H.step,disabled:n.unref(f),controls:H.showInputControls,min:H.min,max:H.max,debounce:H.debounce,size:n.unref(P),"onUpdate:modelValue":n.unref(k),onChange:n.unref(w)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):n.createCommentVNode("v-if",!0)],42,gpe))}});var wpe=Q(Cpe,[["__file","slider.vue"]]);const lE=Ne(wpe),cE=ne({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean,default:!0},simple:{type:Boolean},vertical:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"success"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),dE={[ct]:(e,t)=>[e,t].every(Se)},$pe=n.defineComponent({name:"BSteps"}),kpe=n.defineComponent({...$pe,props:cE,emits:dE,setup(e,{emit:t}){const o=e,r=G("steps"),a=n.ref([]);return n.watch(a,()=>{a.value.forEach((i,s)=>{i.setIndex(s)})}),n.provide("BSteps",{props:o,steps:a}),n.watch(()=>o.active,(i,s)=>{t(ct,i,s)}),(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).m(i.vertical?"vertical":"horizontal")]),"data-test-name":"space","data-test-variant":"","data-test-state":""},[n.renderSlot(i.$slots,"default")],2))}});var Spe=Q(kpe,[["__file","steps.vue"]]);const uE=ne({title:{type:String,default:""},icon:{type:Je},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Epe=n.defineComponent({name:"BStep"}),Bpe=n.defineComponent({...Epe,props:uE,setup(e){const t=e,o=G("step"),r=n.ref(-1),a=n.ref({}),i=n.ref(""),s=n.inject("BSteps"),l=n.getCurrentInstance();n.onMounted(()=>{n.watch([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([k])=>{C(k)},{immediate:!0})}),n.onBeforeUnmount(()=>{s.steps.value=s.steps.value.filter(k=>k.uid!==l?.uid)});const c=n.computed(()=>t.status||i.value),d=n.computed(()=>{const k=s.steps.value[r.value-1];return k?k.currentStatus:"wait"}),u=n.computed(()=>s.props.alignCenter),f=n.computed(()=>s.props.vertical===!0||s.props.direction==="vertical"),h=n.computed(()=>s.props.simple),p=n.computed(()=>s.steps.value.length),m=n.computed(()=>s.steps.value[p.value-1]?.uid===l?.uid),g=n.computed(()=>h.value?"":s.props.space),y=n.computed(()=>{const k={flexBasis:typeof g.value=="number"?`${g.value}px`:g.value?g.value:`${100/(p.value-(u.value?0:1))}%`};return f.value||m.value&&(k.maxWidth=`${100/p.value}%`),k}),w=k=>{r.value=k},$=k=>{let S=100;const E={};E.transitionDelay=`${150*r.value}ms`,k===s.props.processStatus?S=0:k==="wait"&&(S=0,E.transitionDelay=`${-150*r.value}ms`),E.borderWidth=S&&!h.value?"1px":0,E[s.props.direction==="vertical"?"height":"width"]=`${S}%`,a.value=E},C=k=>{k>r.value?i.value=s.props.finishStatus:k===r.value&&d.value!=="error"?i.value=s.props.processStatus:i.value="wait";const S=s.steps.value[r.value-1];S&&S.calcProgress(i.value)},b=n.reactive({uid:n.computed(()=>l?.uid),currentStatus:c,setIndex:w,calcProgress:$});return s.steps.value=[...s.steps.value,b],(k,S)=>(n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(n.unref(y)),class:n.normalizeClass([n.unref(o).b(),n.unref(o).is("simple",n.unref(h)),n.unref(o).is(n.unref(f)?"vertical":"horizontal"),n.unref(o).is("flex",n.unref(m)&&!n.unref(g)&&!n.unref(u)),n.unref(o).is("center",n.unref(u)&&!n.unref(f)&&!n.unref(h))]),"data-test-name":"space-item","data-test-variant":"","data-test-state":""},[n.createCommentVNode(" icon & line "),n.createElementVNode("div",{class:n.normalizeClass([n.unref(o).e("head"),n.unref(o).is(n.unref(c))])},[n.unref(h)?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o).e("line"))},[n.createElementVNode("i",{class:n.normalizeClass(n.unref(o).e("line-inner")),style:n.normalizeStyle(a.value)},null,6)],2)),n.createElementVNode("div",{class:n.normalizeClass([n.unref(o).e("icon"),n.unref(o).is(k.icon?"icon":"text")])},[n.unref(c)!=="success"&&n.unref(c)!=="error"?n.renderSlot(k.$slots,"icon",{key:0},()=>[k.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(o).e("icon-inner"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(k.icon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),!k.icon&&!n.unref(h)?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(o).e("icon-inner"))},n.toDisplayString(r.value+1),3)):n.createCommentVNode("v-if",!0)]):(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass([n.unref(o).e("icon-inner"),n.unref(o).is("status")])},{default:n.withCtx(()=>[n.unref(c)==="success"?(n.openBlock(),n.createBlock(n.unref(uo),{key:0})):(n.openBlock(),n.createBlock(n.unref(Nn),{key:1}))]),_:1},8,["class"]))],2)],2),n.createCommentVNode(" title & description "),n.createElementVNode("div",{class:n.normalizeClass(n.unref(o).e("main"))},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(o).e("title"),n.unref(o).is(n.unref(c))])},[n.renderSlot(k.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(k.title),1)])],2),n.unref(h)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o).e("arrow"))},null,2)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(o).e("description"),n.unref(o).is(n.unref(c))])},[n.renderSlot(k.$slots,"description",{},()=>[n.createTextVNode(n.toDisplayString(k.description),1)])],2))],2)],6))}});var fE=Q(Bpe,[["__file","item.vue"]]);const hE=Ne(Spe,{Step:fE}),pE=Ge(fE),mE=ne({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Je},inactiveIcon:{type:Je},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:K(Function)},size:{type:String,validator:hi},small:Boolean,large:Boolean,tabindex:{type:[String,Number]}}),gE={[Pe]:e=>Pt(e)||De(e)||Se(e),[ct]:e=>Pt(e)||De(e)||Se(e),[_n]:e=>Pt(e)||De(e)||Se(e)},Npe=["onClick"],_pe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Tpe=["aria-hidden"],Ape=["aria-hidden"],xpe=["aria-hidden"],Mpe=["aria-hidden"],yE="BSwitch",Ppe=n.defineComponent({name:yE}),vpe=n.defineComponent({...Ppe,props:mE,emits:gE,setup(e,{expose:t,emit:o}){const r=e,{formItem:a}=mo(),i=At(),s=G("switch"),{inputId:l}=cr(r,{formItemContext:a}),c=ho(n.computed(()=>r.loading)),d=n.ref(r.modelValue!==!1),u=n.ref(),f=n.ref(),h=n.computed(()=>[s.b(),s.m(i.value),s.is("disabled",c.value),s.is("checked",g.value)]),p=n.computed(()=>({width:Ot(r.width)}));n.watch(()=>r.modelValue,()=>{d.value=!0}),n.watch(()=>r.value,()=>{d.value=!1});const m=n.computed(()=>d.value?r.modelValue:r.value),g=n.computed(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(o(Pe,r.inactiveValue),o(ct,r.inactiveValue),o(_n,r.inactiveValue)),n.watch(g,b=>{u.value.checked=b});const y=()=>{const b=g.value?r.inactiveValue:r.activeValue;o(Pe,b),o(ct,b),o(_n,b),n.nextTick(()=>{u.value.checked=g.value})},w=()=>{if(c.value)return;const{beforeChange:b}=r;if(!b){y();return}const k=b();[Mh(k),Pt(k)].includes(!0)||vt(yE,"beforeChange must return type `Promise<boolean>` or `boolean`"),Mh(k)?k.then(E=>{E&&y()}).catch(E=>{}):k&&y()},$=n.computed(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),C=()=>{u.value?.focus?.()};return n.onMounted(()=>{u.value.checked=g.value}),t({focus:C,checked:g}),(b,k)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref($)),"data-test-name":"switch","data-test-variant":"","data-test-state":"",onClick:n.withModifiers(w,["prevent"])},[n.createElementVNode("input",{id:n.unref(l),ref_key:"input",ref:u,class:n.normalizeClass(n.unref(s).e("input")),type:"checkbox",role:"switch","aria-checked":n.unref(g),"aria-disabled":n.unref(c),name:b.name,"true-value":b.activeValue,"false-value":b.inactiveValue,disabled:n.unref(c),tabindex:b.tabindex,onChange:y,onKeydown:n.withKeys(w,["enter"])},null,42,_pe),!b.inlinePrompt&&(b.inactiveIcon||b.$slots.inactiveIcon||b.inactiveText)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass([n.unref(s).e("label"),n.unref(s).em("label","left"),n.unref(s).is("active",!n.unref(g))])},[n.renderSlot(b.$slots,"inactiveIcon",{},()=>[b.inactiveIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.inactiveIcon)))]),_:1})):n.createCommentVNode("v-if",!0)]),!b.inactiveIcon&&!b.$slots.inactiveIcon&&b.inactiveText?(n.openBlock(),n.createElementBlock("span",{key:0,"aria-hidden":n.unref(g)},n.toDisplayString(b.inactiveText),9,Tpe)):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default"),n.renderSlot(b.$slots,"left"),n.createElementVNode("span",{ref_key:"core",ref:f,class:n.normalizeClass(n.unref(s).e("core")),style:n.normalizeStyle(n.unref(p))},[b.inlinePrompt?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(s).e("inner"))},[b.activeIcon||b.inactiveIcon||b.$slots.inactiveIcon||b.$slots.activeIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.unref(g)?n.renderSlot(b.$slots,"activeIcon",{key:0},()=>[b.activeIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(s).is("icon"),n.unref(g)?n.unref(s).is("show"):n.unref(s).is("hide")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.activeIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)]):n.renderSlot(b.$slots,"inactiveIcon",{key:1},()=>[b.inactiveIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(s).is("icon"),n.unref(g)?n.unref(s).is("hide"):n.unref(s).is("show")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.inactiveIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)])],64)):b.activeText||b.inactiveIcon||b.$slots.inactiveIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[b.activeText?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass([n.unref(s).is("text"),n.unref(g)?n.unref(s).is("show"):n.unref(s).is("hide")]),"aria-hidden":!n.unref(g)},n.toDisplayString(b.activeText.substring(0,3)),11,Ape)):n.createCommentVNode("v-if",!0),b.inactiveText?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass([n.unref(s).is("text"),n.unref(g)?n.unref(s).is("hide"):n.unref(s).is("show")]),"aria-hidden":n.unref(g)},n.toDisplayString(b.inactiveText.substring(0,3)),11,xpe)):n.createCommentVNode("v-if",!0)],64)):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(s).e("action"))},[b.loading?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(s).is("loading"))},{default:n.withCtx(()=>[n.createVNode(n.unref(Or))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],6),!b.inlinePrompt&&(b.activeIcon||b.$slots.activeIcon||b.activeText)?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass([n.unref(s).e("label"),n.unref(s).em("label","right"),n.unref(s).is("active",n.unref(g))])},[n.renderSlot(b.$slots,"activeIcon",{},()=>[b.activeIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.activeIcon)))]),_:1})):n.createCommentVNode("v-if",!0)]),!b.activeIcon&&!b.$slots.activeIcon&&b.activeText?(n.openBlock(),n.createElementBlock("span",{key:0,"aria-hidden":!n.unref(g)},n.toDisplayString(b.activeText),9,Mpe)):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"right")],14,Npe))}});var Ope=Q(vpe,[["__file","switch.vue"]]);const bE=Ne(Ope);/*!
 * escape-html
 * Copyright(c) 2012-2013 TJ Holowaychuk
 * Copyright(c) 2015 Andreas Lubbe
 * Copyright(c) 2015 Tiancheng "Timothy" Gu
 * MIT Licensed
 */var Ipe=/["'&<>]/,Dpe=Rpe;function Rpe(e){var t=""+e,o=Ipe.exec(t);if(!o)return t;var r,a="",i=0,s=0;for(i=o.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==i&&(a+=t.substring(s,i)),s=i+1,a+=r}return s!==i?a+t.substring(s,i):a}const _0=function(e){return e.target?.closest("td")},CE=function(e){return e!==null&&typeof e=="object"},Lpe=function(e,t,o,r,a){const i=Tn("table",{sort:{ascending:"ascending",descending:"descending"}});if(!t&&!r&&(!a||Array.isArray(a)&&!a.length))return e;typeof o=="string"?o=o===i.value.sort.descending?-1:1:o=o&&o<0?-1:1;const s=r?null:function(c,d){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?rt(c,u):u(c,d,e))):(t!=="$key"&&CE(c)&&"$value"in c&&(c=c.$value),[CE(c)?rt(c,t):c])},l=function(c,d){if(r)return r(c.value,d.value);for(let u=0,f=c.key.length;u<f;u++){if(c.key[u]<d.key[u])return-1;if(c.key[u]>d.key[u])return 1}return 0};return e.map((c,d)=>({value:c,index:d,key:s?s(c,d):null})).sort((c,d)=>{let u=l(c,d);return u||(u=c.index-d.index),u*+o}).map(c=>c.value)},wE=function(e,t){let o=null;return e.columns.forEach(r=>{r.id===t&&(o=r)}),o},Vpe=function(e,t){let o=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){o=a;break}}return o||vt("BTable",`No column matching with column-key: ${t}`),o},$E=function(e,t,o){const r=(t.className||"").match(new RegExp(`${o}-table_[^\\s]+`,"gm"));return r?wE(e,r[0]):null},Yt=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const o=t.split(".");let r=e;for(const a of o)r=r[a];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Wa=function(e,t){const o={};return(e||[]).forEach((r,a)=>{o[Yt(r,t)]={row:r,index:a}}),o};function Fpe(e,t){const o={};let r;for(r in e)o[r]=e[r];for(r in t)if(Kt(t,r)){const a=t[r];typeof a<"u"&&(o[r]=a)}return o}function T0(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function kE(e){return e===""||e!==void 0&&(e=T0(e),Number.isNaN(e)&&(e=80)),e}function zpe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Hpe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...r)=>t(o(...r)))}function Wu(e,t,o){let r=!1;const a=e.indexOf(t),i=a!==-1,s=()=>{e.push(t),r=!0},l=()=>{e.splice(a,1),r=!0};return typeof o=="boolean"?o&&!i?s():!o&&i&&l():i?l():s(),r}function Wpe(e,t,o="children",r="hasChildren"){const a=s=>!(Array.isArray(s)&&s.length);function i(s,l,c){t(s,l,c),l.forEach(d=>{if(d[r]){t(d,null,c+1);return}const u=d[o];a(u)||i(d,u,c+1)})}e.forEach(s=>{if(s[r]){t(s,null,0);return}const l=s[o];a(l)||i(s,l,0)})}let na;function Kpe(e,t,o,r,a){const{nextZIndex:i}=Do(),s=e?.dataset.prefix,l=e?.querySelector(`.${s}-scrollbar__wrap`);function c(){const m=a==="light",g=document.createElement("div");return g.className=`${s}-popper ${m?"is-light":"is-dark"}`,o=Dpe(o),g.innerHTML=o,g.style.zIndex=String(i()),e?.appendChild(g),g}function d(){const m=document.createElement("div");return m.className=`${s}-popper__arrow`,m}function u(){f&&f.update()}na?.(),na=()=>{try{f&&f.destroy(),h&&e?.removeChild(h),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseleave",na),l?.removeEventListener("scroll",na),na=void 0}catch{}};let f=null;const h=c(),p=d();return h.appendChild(p),f=b4(t,h,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:p,padding:10}}],...r}),t.addEventListener("mouseenter",u),t.addEventListener("mouseleave",na),l?.addEventListener("scroll",na),f}const SE=(e,t,o,r)=>{let a=0,i=e;if(r){if(r[e].colSpan>1)return{};for(let c=0;c<e;c++)a+=r[c].colSpan;i=a+r[e].colSpan-1}else a=e;let s;const l=o.states.columns;switch(t){case"left":i<o.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=l.value.length-o.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<o.states.fixedLeafColumnsLength.value?s="left":a>=l.value.length-o.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},A0=(e,t,o,r,a)=>{const i=[],{direction:s,start:l}=SE(t,o,r,a);if(s){const c=s==="left";i.push(`${e}-fixed-column--${s}`),c&&l===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&l===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function EE(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const x0=(e,t,o,r)=>{const{direction:a,start:i=0}=SE(e,t,o,r);if(!a)return;const s={},l=a==="left",c=o.states.columns.value;return l?s.left=c.slice(0,e).reduce(EE,0):s.right=c.slice(i+1).reverse().reduce(EE,0),s},Xi=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function jpe(e){const t=n.getCurrentInstance(),o=n.ref(!1),r=n.ref([]);return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(o.value)r.value=c.slice();else if(d){const u=Wa(r.value,d);r.value=c.reduce((f,h)=>{const p=Yt(h,d);return u[p]&&f.push(h),f},[])}else r.value=[]},toggleRowExpansion:(c,d)=>{Wu(r.value,c,d)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],u=e.rowKey.value,f=Wa(d,u);r.value=c.reduce((h,p)=>{const m=f[p];return m&&h.push(m.row),h},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!Wa(r.value,d)[Yt(c,d)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:o}}}function Upe(e){const t=n.getCurrentInstance(),o=n.ref(null),r=n.ref(null),a=d=>{t.store.assertRowKey(),o.value=d,s(d)},i=()=>{o.value=null},s=d=>{const{data:u,rowKey:f}=e;let h=null;f.value&&(h=(n.unref(u)||[]).find(p=>Yt(p,f.value)===d)),r.value=h,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:s,updateCurrentRow:d=>{const u=r.value;if(d&&d!==u){r.value=d,t.emit("current-change",r.value,u);return}!d&&u&&(r.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const d=e.rowKey.value,u=e.data.value||[],f=r.value;if(!u.includes(f)&&f){if(d){const h=Yt(f,d);s(h)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else o.value&&(s(o.value),i())},states:{_currentRowKey:o,currentRow:r}}}function Gpe(e){const t=n.ref([]),o=n.ref({}),r=n.ref(16),a=n.ref(!1),i=n.ref({}),s=n.ref("hasChildren"),l=n.ref("children"),c=n.getCurrentInstance(),d=n.computed(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return f(w)}),u=n.computed(()=>{const w=e.rowKey.value,$=Object.keys(i.value),C={};return $.length&&$.forEach(b=>{if(i.value[b].length){const k={children:[]};i.value[b].forEach(S=>{const E=Yt(S,w);k.children.push(E),S[s.value]&&!C[E]&&(C[E]={children:[]})}),C[b]=k}}),C}),f=w=>{const $=e.rowKey.value,C={};return Wpe(w,(b,k,S)=>{const E=Yt(b,$);Array.isArray(k)?C[E]={children:k.map(N=>Yt(N,$)),level:S}:a.value&&(C[E]={children:[],lazy:!0,level:S})},l.value,s.value),C},h=(w=!1,$=c.store?.states.defaultExpandAll.value)=>{const C=d.value,b=u.value,k=Object.keys(C),S={};if(k.length){const E=n.unref(o),N=[],_=(P,x)=>{if(w)return t.value?$||t.value.includes(x):!!($||P?.expanded);{const v=$||t.value&&t.value.includes(x);return!!(P?.expanded||v)}};k.forEach(P=>{const x=E[P],v={...C[P]};if(v.expanded=_(x,P),v.lazy){const{loaded:O=!1,loading:I=!1}=x||{};v.loaded=!!O,v.loading=!!I,N.push(P)}S[P]=v});const T=Object.keys(b);a.value&&T.length&&N.length&&T.forEach(P=>{const x=E[P],v=b[P].children;if(N.includes(P)){if(S[P].children.length!==0)throw new Error("[BTable]children must be an empty array.");S[P].children=v}else{const{loaded:O=!1,loading:I=!1}=x||{};S[P]={lazy:!0,loaded:!!O,loading:!!I,expanded:_(x,P),children:v,level:""}}})}o.value=S,c.store?.updateTableScrollY()};n.watch(()=>t.value,()=>{h(!0)}),n.watch(()=>d.value,()=>{h()}),n.watch(()=>u.value,()=>{h()});const p=w=>{t.value=w,h()},m=(w,$)=>{c.store.assertRowKey();const C=e.rowKey.value,b=Yt(w,C),k=b&&o.value[b];if(b&&k&&"expanded"in k){const S=k.expanded;$=typeof $>"u"?!k.expanded:$,o.value[b].expanded=$,S!==$&&c.emit("expand-change",w,$),c.store.updateTableScrollY()}},g=w=>{c.store.assertRowKey();const $=e.rowKey.value,C=Yt(w,$),b=o.value[C];a.value&&b&&"loaded"in b&&!b.loaded?y(w,C,b):m(w,void 0)},y=(w,$,C)=>{const{load:b}=c.props;b&&!o.value[$].loaded&&(o.value[$].loading=!0,b(w,C,k=>{if(!Array.isArray(k))throw new TypeError("[BTable] data must be an array");o.value[$].loading=!1,o.value[$].loaded=!0,o.value[$].expanded=!0,k.length&&(i.value[$]=k),c.emit("expand-change",w,!0)}))};return{loadData:y,loadOrToggle:g,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:h,normalize:f,states:{expandRowKeys:t,treeData:o,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:l}}}const Ype=(e,t)=>{const o=t.sortingColumn;return!o||typeof o.sortable=="string"?e:Lpe(e,t.sortProp,t.sortOrder,o.sortMethod,o.sortBy)},Ku=e=>{const t=[];return e.forEach(o=>{o.children?t.push.apply(t,Ku(o.children)):t.push(o)}),t};function qpe(){const e=n.getCurrentInstance(),{size:t}=n.toRefs(e.proxy?.$props),o=n.ref(null),r=n.ref([]),a=n.ref([]),i=n.ref(!1),s=n.ref([]),l=n.ref([]),c=n.ref([]),d=n.ref([]),u=n.ref([]),f=n.ref([]),h=n.ref([]),p=n.ref([]),m=n.ref(0),g=n.ref(0),y=n.ref(0),w=n.ref(!1),$=n.ref([]),C=n.ref(!1),b=n.ref(!1),k=n.ref(null),S=n.ref({}),E=n.ref(null),N=n.ref(null),_=n.ref(null),T=n.ref(null),P=n.ref(null);n.watch(r,()=>e.state&&O(!1),{deep:!0});const x=()=>{if(!o.value)throw new Error("[BTable] prop row-key is required")},v=()=>{d.value=s.value.filter(Z=>Z.fixed===!0||Z.fixed==="left"),u.value=s.value.filter(Z=>Z.fixed==="right"),d.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,d.value.unshift(s.value[0]));const ce=s.value.filter(Z=>!Z.fixed);l.value=[].concat(d.value).concat(ce).concat(u.value);const ke=Ku(ce),Ae=Ku(d.value),V=Ku(u.value);m.value=ke.length,g.value=Ae.length,y.value=V.length,c.value=[].concat(Ae).concat(ke).concat(V),i.value=d.value.length>0||u.value.length>0},O=(ce,ke=!1)=>{ce&&v(),ke?e.state.doLayout():e.state.debouncedUpdateLayout()},I=ce=>$.value.includes(ce),F=()=>{w.value=!1,$.value.length&&($.value=[],e.emit("selection-change",[]))},M=()=>{let ce;if(o.value){ce=[];const ke=Wa($.value,o.value),Ae=Wa(r.value,o.value);for(const V in ke)Kt(ke,V)&&!Ae[V]&&ce.push(ke[V].row)}else ce=$.value.filter(ke=>!r.value.includes(ke));if(ce.length){const ke=$.value.filter(Ae=>!ce.includes(Ae));$.value=ke,e.emit("selection-change",ke.slice())}},z=()=>($.value||[]).slice(),B=(ce,ke=void 0,Ae=!0)=>{if(Wu($.value,ce,ke)){const Z=($.value||[]).slice();Ae&&e.emit("select",Z,ce),e.emit("selection-change",Z)}},L=()=>{const ce=b.value?!w.value:!(w.value||$.value.length);w.value=ce;let ke=!1,Ae=0;const V=e?.store?.states?.rowKey.value;r.value.forEach((Z,he)=>{const be=he+Ae;k.value?k.value.call(null,Z,be)&&Wu($.value,Z,ce)&&(ke=!0):Wu($.value,Z,ce)&&(ke=!0),Ae+=H(Yt(Z,V))}),ke&&e.emit("selection-change",$.value?$.value.slice():[]),e.emit("select-all",$.value)},W=()=>{const ce=Wa($.value,o.value);r.value.forEach(ke=>{const Ae=Yt(ke,o.value),V=ce[Ae];V&&($.value[V.index]=ke)})},R=()=>{if(r.value?.length===0){w.value=!1;return}let ce;o.value&&(ce=Wa($.value,o.value));const ke=function(he){return ce?!!ce[Yt(he,o.value)]:$.value.includes(he)};let Ae=!0,V=0,Z=0;for(let he=0,be=(r.value||[]).length;he<be;he++){const Ze=e?.store?.states?.rowKey.value,en=he+Z,In=r.value[he],Dn=k.value&&k.value.call(null,In,en);if(ke(In))V++;else if(!k.value||Dn){Ae=!1;break}Z+=H(Yt(In,Ze))}V===0&&(Ae=!1),w.value=Ae},H=ce=>{if(!e||!e.store)return 0;const{treeData:ke}=e.store.states;let Ae=0;const V=ke.value[ce]?.children;return V&&(Ae+=V.length,V.forEach(Z=>{Ae+=H(Z)})),Ae},j=(ce,ke)=>{Array.isArray(ce)||(ce=[ce]);const Ae={};return ce.forEach(V=>{S.value[V.id]=ke,Ae[V.columnKey||V.id]=ke}),Ae},U=(ce,ke,Ae)=>{N.value&&N.value!==ce&&(N.value.order=null),N.value=ce,_.value=ke,T.value=Ae},re=()=>{let ce=n.unref(a);Object.keys(S.value).forEach(ke=>{const Ae=S.value[ke];if(!Ae||Ae.length===0)return;const V=wE({columns:c.value},ke);V&&V.filterMethod&&(ce=ce.filter(Z=>Ae.some(he=>V.filterMethod.call(null,he,Z,V))))}),E.value=ce},J=()=>{r.value=Ype(E.value,{sortingColumn:N.value,sortProp:_.value,sortOrder:T.value})},Y=(ce=void 0)=>{ce&&ce.filter||re(),J()},q=ce=>{const{tableHeaderRef:ke}=e.refs;if(!ke)return;const Ae=Object.assign({},ke.filterPanels),V=Object.keys(Ae);if(!!V.length)if(typeof ce=="string"&&(ce=[ce]),Array.isArray(ce)){const Z=ce.map(he=>Vpe({columns:c.value},he));V.forEach(he=>{const be=Z.find(Ze=>Ze.id===he);be&&(be.filteredValue=[])}),e.store.commit("filterChange",{column:Z,values:[],silent:!0,multi:!0})}else V.forEach(Z=>{const he=c.value.find(be=>be.id===Z);he&&(he.filteredValue=[])}),S.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},te=()=>{!N.value||(U(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ue,toggleRowExpansion:ge,updateExpandRows:Ee,states:Te,isRowExpanded:ye}=jpe({data:r,rowKey:o}),{updateTreeExpandKeys:oe,toggleTreeExpansion:se,updateTreeData:me,loadOrToggle:ee,states:le}=Gpe({data:r,rowKey:o}),{updateCurrentRowData:Ce,updateCurrentRow:X,setCurrentRowKey:ie,states:we}=Upe({data:r,rowKey:o});return{assertRowKey:x,updateColumns:v,scheduleLayout:O,isSelected:I,clearSelection:F,cleanSelection:M,getSelectionRows:z,toggleRowSelection:B,_toggleAllSelection:L,toggleAllSelection:null,updateSelectionByRowKey:W,updateAllSelected:R,updateFilters:j,updateCurrentRow:X,updateSort:U,execFilter:re,execSort:J,execQuery:Y,clearFilter:q,clearSort:te,toggleRowExpansion:ge,setExpandRowKeysAdapter:ce=>{ue(ce),oe(ce)},setCurrentRowKey:ie,toggleRowExpansionAdapter:(ce,ke)=>{c.value.some(({type:V})=>V==="expand")?ge(ce,ke):se(ce,ke)},isRowExpanded:ye,updateExpandRows:Ee,updateCurrentRowData:Ce,loadOrToggle:ee,updateTreeData:me,states:{tableSize:t,rowKey:o,data:r,_data:a,isComplex:i,_columns:s,originColumns:l,columns:c,fixedColumns:d,rightFixedColumns:u,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:p,leafColumnsLength:m,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:w,selection:$,reserveSelection:C,selectOnIndeterminate:b,selectable:k,filters:S,filteredData:E,sortingColumn:N,sortProp:_,sortOrder:T,hoverRow:P,...Te,...le,...we}}}function M0(e,t){return e.map(o=>o.id===t.id?t:(o.children?.length&&(o.children=M0(o.children,t)),o))}function BE(e){e.forEach(t=>{t.no=t.getColumnIndex?.(),t.children?.length&&BE(t.children)}),e.sort((t,o)=>t.no-o.no)}function Zpe(){const e=n.getCurrentInstance(),t=qpe();return{ns:G("table"),...t,mutations:{setData(s,l){const c=n.unref(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),n.unref(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,c){const d=n.unref(s._columns);let u=[];c?(c&&!c.children&&(c.children=[]),c.children.push(l),u=M0(d,c)):(d.push(l),u=d),BE(u),s._columns.value=u,l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(s,l,c){const d=n.unref(s._columns)||[];if(c)c.children.splice(c.children.findIndex(u=>u.id===l.id),1),c.children.length===0&&delete c.children,s._columns.value=M0(d,c);else{const u=d.indexOf(l);u>-1&&(d.splice(u,1),s._columns.value=d)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:c,order:d,init:u}=l;if(c){const f=n.unref(s.columns).find(h=>h.property===c);f&&(f.order=d,e.store.updateSort(f,c,d),e.store.commit("changeSortCondition",{init:u}))}},changeSortCondition(s,l){const{sortingColumn:c,sortProp:d,sortOrder:u}=s,f=n.unref(c),h=n.unref(d),p=n.unref(u);p===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:f,prop:h,order:p}),e.store.updateTableScrollY()},filterChange(s,l){const{column:c,values:d,silent:u}=l,f=e.store.updateFilters(c,d);e.store.execQuery(),u||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){n.nextTick(()=>e.layout.updateScrollY.apply(e.layout))}}}const Gl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function Xpe(e,t){if(!e)throw new Error("Table is required.");const o=Zpe();return o.toggleAllSelection=Zt(o._toggleAllSelection,10),Object.keys(Gl).forEach(r=>{NE(_E(t,r),r,o)}),Jpe(o,t),o}function Jpe(e,t){Object.keys(Gl).forEach(o=>{n.watch(()=>_E(t,o),r=>{NE(r,o,e)})})}function NE(e,t,o){let r=e,a=Gl[t];typeof Gl[t]=="object"&&(a=a.key,r=r||Gl[t].default),o.states[a].value=r}function _E(e,t){if(t.includes(".")){const o=t.split(".");let r=e;return o.forEach(a=>{r=r[a]}),r}else return e[t]}class Qpe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=n.ref(null),this.scrollX=n.ref(!1),this.scrollY=n.ref(!1),this.bodyWidth=n.ref(null),this.fixedWidth=n.ref(null),this.rightFixedWidth=n.ref(null),this.gutterWidth=0;for(const o in t)Kt(t,o)&&(n.isRef(this[o])?this[o].value=t[o]:this[o]=t[o]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const o=this.table.refs.scrollBarRef;if(this.table.vnode.el&&o){let r=!0;const a=this.scrollY.value;return r=o.wrap$.scrollHeight>o.wrap$.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,o="height"){if(!Re)return;const r=this.table.vnode.el;if(t=zpe(t),this.height.value=Number(t),!r&&(t||t===0))return n.nextTick(()=>this.setHeight(t,o));typeof t=="number"?(r.style[o]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[o]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let o=t;for(;o.tagName!=="DIV";){if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}updateColumnsWidth(){if(!Re)return;const t=this.fit,o=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(c=>typeof c.width!="number");if(a.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),i.length>0&&t){if(a.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=o){this.scrollX.value=!1;const c=o-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+c;else{const d=i.reduce((h,p)=>h+Number(p.minWidth||80),0),u=c/d;let f=0;i.forEach((h,p)=>{if(p===0)return;const m=Math.floor(Number(h.minWidth||80)*u);f+=m,h.realWidth=Number(h.minWidth||80)+m}),i[0].realWidth=Number(i[0].minWidth||80)+c-f}}else this.scrollX.value=!0,i.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),r+=c.realWidth}),this.scrollX.value=r>o,this.bodyWidth.value=r;const s=this.store.states.fixedColumns.value;if(s.length>0){let c=0;s.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.fixedWidth.value=c}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let c=0;l.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const o=this.observers.indexOf(t);o!==-1&&this.observers.splice(o,1)}notifyObservers(t){this.observers.forEach(r=>{switch(t){case"columns":r.state?.onColumnsChange(this);break;case"scrollable":r.state?.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var eme=Qpe;const{CheckboxGroup:tme}=xn,nme=n.defineComponent({name:"BTableFilterPanel",components:{BCheckbox:xn,BCheckboxGroup:tme,BScrollbar:bo,BTooltip:Xt,BIcon:pe,ArrowDown:qz,ArrowUp:uH},directives:{ClickOutside:Bi},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=n.getCurrentInstance(),{t:o}=He(),r=G("table-filter"),a=t?.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=n.ref(!1),s=n.ref(null),l=n.computed(()=>e.column&&e.column.filters),c=n.computed({get:()=>(e.column?.filteredValue||[])[0],set:b=>{d.value&&(typeof b<"u"&&b!==null?d.value.splice(0,1,b):d.value.splice(0,1))}}),d=n.computed({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),u=n.computed(()=>e.column?e.column.filterMultiple:!0),f=b=>b.value===c.value,h=()=>{i.value=!1},p=b=>{b.stopPropagation(),i.value=!i.value},m=()=>{i.value=!1},g=()=>{$(d.value),h()},y=()=>{d.value=[],$(d.value),h()},w=b=>{c.value=b,$(typeof b<"u"&&b!==null?d.value:[]),h()},$=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};n.watch(i,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const C=n.computed(()=>s.value?.popperRef?.contentRef);return{tooltipVisible:i,multiple:u,filteredValue:d,filterValue:c,filters:l,handleConfirm:g,handleReset:y,handleSelect:w,isActive:f,t:o,ns:r,showFilterPanel:p,hideFilterPanel:m,popperPaneRef:C,tooltip:s}}}),ome={key:0},rme=["disabled"],ame=["label","onClick"];function ime(e,t,o,r,a,i){const s=n.resolveComponent("b-checkbox"),l=n.resolveComponent("b-checkbox-group"),c=n.resolveComponent("b-scrollbar"),d=n.resolveComponent("arrow-up"),u=n.resolveComponent("arrow-down"),f=n.resolveComponent("b-icon"),h=n.resolveComponent("b-tooltip"),p=n.resolveDirective("click-outside");return n.openBlock(),n.createBlock(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:n.withCtx(()=>[e.multiple?(n.openBlock(),n.createElementBlock("div",ome,[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("content"))},[n.createVNode(c,{"wrap-class":e.ns.e("wrap")},{default:n.withCtx(()=>[n.createVNode(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:n.normalizeClass(e.ns.e("checkbox-group"))},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filters,m=>(n.openBlock(),n.createBlock(s,{key:m.value,label:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("bottom"))},[n.createElementVNode("button",{class:n.normalizeClass({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},n.toDisplayString(e.t("b.table.confirmFilter")),11,rme),n.createElementVNode("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},n.toDisplayString(e.t("b.table.resetFilter")),1)],2)])):(n.openBlock(),n.createElementBlock("ul",{key:1,class:n.normalizeClass(e.ns.e("list"))},[n.createElementVNode("li",{class:n.normalizeClass([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},n.toDisplayString(e.t("b.table.clearFilter")),3),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filters,m=>(n.openBlock(),n.createElementBlock("li",{key:m.value,class:n.normalizeClass([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:g=>e.handleSelect(m.value)},n.toDisplayString(m.text),11,ame))),128))],2))]),default:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[n.createVNode(f,null,{default:n.withCtx(()=>[e.column.filterOpened?(n.openBlock(),n.createBlock(d,{key:0})):(n.openBlock(),n.createBlock(u,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var sme=Q(nme,[["render",ime],["__file","filter-panel.vue"]]);function TE(e){const t=n.getCurrentInstance();n.onBeforeMount(()=>{o.value.addObserver(t)}),n.onMounted(()=>{r(o.value),a(o.value)}),n.onUpdated(()=>{r(o.value),a(o.value)}),n.onUnmounted(()=>{o.value.removeObserver(t)});const o=n.computed(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{const s=e.vnode.el?.querySelectorAll("colgroup > col")||[];if(!s.length)return;const l=i.getFlattenColumns(),c={};l.forEach(d=>{c[d.id]=d});for(let d=0,u=s.length;d<u;d++){const f=s[d],h=f.getAttribute("name"),p=c[h];p&&f.setAttribute("width",p.realWidth||p.width)}},a=i=>{const s=e.vnode.el?.querySelectorAll("colgroup > col[name=gutter]")||[];for(let c=0,d=s.length;c<d;c++)s[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const l=e.vnode.el?.querySelectorAll("th.gutter")||[];for(let c=0,d=l.length;c<d;c++){const u=l[c];u.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",u.style.display=i.scrollY.value?"":"none"}};return{tableLayout:o.value,onColumnsChange:r,onScrollableChange:a}}const Go=Symbol("BTable");function lme(e,t){const o=n.getCurrentInstance(),r=n.inject(Go),a=g=>{g.stopPropagation()},i=(g,y)=>{!y.filters&&y.sortable?m(g,y,!1):y.filterable&&!y.sortable&&a(g),r?.emit("header-click",y,g)},s=(g,y)=>{r?.emit("header-contextmenu",y,g)},l=n.ref(null),c=n.ref(!1),d=n.ref({}),u=(g,y)=>{if(!!Re&&!(y.children&&y.children.length>0)&&l.value&&e.border){c.value=!0;const w=r;t("set-drag-visible",!0);const C=(w?.vnode.el).getBoundingClientRect().left,b=o.vnode.el.querySelector(`th.${y.id}`),k=b.getBoundingClientRect(),S=k.left-C+30;Oo(b,"noclick"),d.value={startMouseLeft:g.clientX,startLeft:k.right-C,startColumnLeft:k.left-C,tableLeft:C};const E=w?.refs.resizeProxy;E.style.left=`${d.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=T=>{const P=T.clientX-d.value.startMouseLeft,x=d.value.startLeft+P;E.style.left=`${Math.max(S,x)}px`},_=()=>{if(c.value){const{startColumnLeft:T,startLeft:P}=d.value,v=Number.parseInt(E.style.left,10)-T;y.width=y.realWidth=v,w?.emit("header-dragend",y.width,P-T,y,g),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,l.value=null,d.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",_),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{fn(b,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",_)}},f=(g,y)=>{if(y.children&&y.children.length>0)return;const w=g.target?.closest("th");if(!(!y||!y.resizable)&&!c.value&&e.border){const $=w.getBoundingClientRect(),C=document.body.style;$.width>12&&$.right-g.pageX<8?(C.cursor="col-resize",lo(w,"is-sortable")&&(w.style.cursor="col-resize"),l.value=y):c.value||(C.cursor="",lo(w,"is-sortable")&&(w.style.cursor="pointer"),l.value=null)}},h=()=>{!Re||(document.body.style.cursor="")},p=({order:g,sortOrders:y})=>{if(g==="")return y[0];const w=y.indexOf(g||null);return y[w>y.length-2?0:w+1]},m=(g,y,w)=>{g.stopPropagation();const $=y.order===w?null:w||p(y),C=g.target?.closest("th");if(C&&lo(C,"noclick")){fn(C,"noclick");return}if(!y.sortable)return;const b=e.store.states;let k=b.sortProp.value,S;const E=b.sortingColumn.value;(E!==y||E===y&&E.order===null)&&(E&&(E.order=null),b.sortingColumn.value=y,k=y.property),$?S=y.order=$:S=y.order=null,b.sortProp.value=k,b.sortOrder.value=S,r?.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:s,handleMouseDown:u,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:a}}function cme(e){const t=n.inject(Go),o=G("table");return{getHeaderRowStyle:l=>{const c=t?.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:l}):c},getHeaderRowClass:l=>{const c=[],d=t?.props.headerRowClassName;return typeof d=="string"?c.push(d):typeof d=="function"&&c.push(d.call(null,{rowIndex:l})),c.join(" ")},getHeaderCellStyle:(l,c,d,u)=>{let f=t?.props.headerCellStyle??{};typeof f=="function"&&(f=f.call(null,{rowIndex:l,columnIndex:c,row:d,column:u}));const h=u.isSubColumn?null:x0(c,u.fixed,e.store,d);return Xi(h,"left"),Xi(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(l,c,d,u)=>{const f=Tn("table",{sort:{ascending:"ascending",descending:"descending"}}),h=u.isSubColumn?[]:A0(o.b(),c,u.fixed,e.store,d),p=[u.id,u.order===f.value.sort.ascending&&"ascending",u.order===f.value.sort.descending&&"descending",u.headerAlign,u.className,u.labelClassName,...h];u.children||p.push("is-leaf"),u.sortable&&p.push("is-sortable");const m=t?.props.headerCellClassName;return typeof m=="string"?p.push(m):typeof m=="function"&&p.push(m.call(null,{rowIndex:l,columnIndex:c,row:d,column:u})),p.push(o.e("cell")),p.filter(g=>Boolean(g)).join(" ")}}}const AE=e=>{const t=[];return e.forEach(o=>{o.children?(t.push(o),t.push.apply(t,AE(o.children))):t.push(o)}),t},dme=e=>{let t=1;const o=(i,s)=>{if(s&&(i.level=s.level+1,t<i.level&&(t=i.level)),i.children){let l=0;i.children.forEach(c=>{o(c,i),l+=c.colSpan}),i.colSpan=l}else i.colSpan=1};e.forEach(i=>{i.level=1,o(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return AE(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(s=>s.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function ume(e){const t=n.inject(Go),o=n.computed(()=>dme(e.store.states.originColumns.value));return{isGroup:n.computed(()=>{const i=o.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:o}}var fme=n.defineComponent({name:"BTableHeader",components:{BCheckbox:xn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const o=n.getCurrentInstance(),r=n.inject(Go),a=G("table"),i=n.ref({}),{onColumnsChange:s,onScrollableChange:l}=TE(r);n.onMounted(async()=>{await n.nextTick(),await n.nextTick();const{prop:S,order:E}=e.defaultSort;r?.store.commit("sort",{prop:S,order:E,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:d,handleMouseDown:u,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:m}=lme(e,t),{getHeaderRowStyle:g,getHeaderRowClass:y,getHeaderCellStyle:w,getHeaderCellClass:$}=cme(e),{isGroup:C,toggleAllSelection:b,columnRows:k}=ume(e);return o.state={onColumnsChange:s,onScrollableChange:l},o.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:s,onScrollableChange:l,columnRows:k,getHeaderRowClass:y,getHeaderRowStyle:g,getHeaderCellClass:$,getHeaderCellStyle:w,handleHeaderClick:c,handleHeaderContextMenu:d,handleMouseDown:u,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:m,isGroup:C,toggleAllSelection:b}},render(){const e=Tn("table",{sort:{ascending:"ascending",descending:"descending"}}),{ns:t,isGroup:o,columnRows:r,getHeaderCellStyle:a,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:l,handleHeaderClick:c,handleHeaderContextMenu:d,handleMouseDown:u,handleMouseMove:f,handleSortClick:h,handleMouseOut:p,store:m,$parent:g}=this;let y=1;return n.h("thead",{class:{[t.is("group")]:o}},r.map((w,$)=>n.h("tr",{class:s($),key:$,style:l($)},w.map((C,b)=>(C.rowSpan>y&&(y=C.rowSpan),n.h("th",{class:i($,b,w,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:a($,b,w,C),onClick:k=>c(k,C),onContextmenu:k=>d(k,C),onMousedown:k=>u(k,C),onMousemove:k=>f(k,C),onMouseout:p},[n.h("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:b,store:m,_self:g}):C.label,C.sortable&&n.h("span",{class:"caret-wrapper"},[![e.value.sort.ascending,e.value.sort.descending].includes(C.order)&&n.h(pe,{onClick:k=>h(k,C),class:"sort-caret"},()=>n.h(aj)),C.order===e.value.sort.descending&&n.h(pe,{onClick:k=>h(k,C,e.value.sort.ascending),class:"sort-caret ascending"},()=>n.h(wC)),C.order===e.value.sort.ascending&&n.h(pe,{onClick:k=>h(k,C,e.value.sort.descending),class:"sort-caret descending"},()=>n.h(CC))]),C.filterable&&n.h(sme,{store:m,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(k,S)=>{C[k]=S}})])]))))))}});function hme(e){const t=n.inject(Go),o=n.ref(""),r=n.ref(n.h("div")),a=(h,p,m)=>{const g=t,y=_0(h);let w;const $=g?.vnode.el?.dataset.prefix;y&&(w=$E({columns:e.store.states.columns.value},y,$),w&&g?.emit(`cell-${m}`,p,w,y,h)),g?.emit(`row-${m}`,p,w,h)},i=(h,p)=>{a(h,p,"dblclick")},s=(h,p)=>{e.store.commit("setCurrentRow",p),a(h,p,"click")},l=(h,p)=>{a(h,p,"contextmenu")},c=Zt(h=>{e.store.commit("setHoverRow",h)},30),d=Zt(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:i,handleClick:s,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:d,handleCellMouseEnter:(h,p,m)=>{const g=t,y=_0(h),w=g?.vnode.el?.dataset.prefix;if(y){const S=$E({columns:e.store.states.columns.value},y,w),E=g.hoverState={cell:y,column:S,row:p};g?.emit("cell-mouse-enter",E.row,E.column,E.cell,h)}const $=h.target.querySelector(".cell");if(!(lo($,`${w}-tooltip`)&&$.childNodes.length))return;const C=document.createRange();C.setStart($,0),C.setEnd($,$.childNodes.length);const b=C.getBoundingClientRect().width,k=(Number.parseInt(ir($,"paddingLeft"),10)||0)+(Number.parseInt(ir($,"paddingRight"),10)||0);(b+k>$.offsetWidth||$.scrollWidth>$.offsetWidth)&&Kpe(t?.refs.tableWrapper,y,y.innerText||y.textContent,{placement:"top",strategy:"fixed"},m)},handleCellMouseLeave:h=>{if(!_0(h))return;const m=t?.hoverState;t?.emit("cell-mouse-leave",m?.row,m?.column,m?.cell,h)},tooltipContent:o,tooltipTrigger:r}}function pme(e){const t=n.inject(Go),o=G("table");return{getRowStyle:(d,u)=>{const f=t?.props.rowStyle;return typeof f=="function"?f.call(null,{row:d,rowIndex:u}):f||null},getRowClass:(d,u)=>{const f=[o.e("row")];t?.props.highlightCurrentRow&&d===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&u%2===1&&f.push(o.em("row","striped"));const h=t?.props.rowClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{row:d,rowIndex:u})),f},getCellStyle:(d,u,f,h)=>{const p=t?.props.cellStyle;let m=p??{};typeof p=="function"&&(m=p.call(null,{rowIndex:d,columnIndex:u,row:f,column:h}));const g=h.isSubColumn?null:x0(u,e?.fixed,e.store);return Xi(g,"left"),Xi(g,"right"),Object.assign({},m,g)},getCellClass:(d,u,f,h)=>{const p=h.isSubColumn?[]:A0(o.b(),u,e?.fixed,e.store),m=[h.id,h.align,h.className,...p],g=t?.props.cellClassName;return typeof g=="string"?m.push(g):typeof g=="function"&&m.push(g.call(null,{rowIndex:d,columnIndex:u,row:f,column:h})),m.push(o.e("cell")),m.filter(y=>Boolean(y)).join(" ")},getSpan:(d,u,f,h)=>{let p=1,m=1;const g=t?.props.spanMethod;if(typeof g=="function"){const y=g({row:d,column:u,rowIndex:f,columnIndex:h});Array.isArray(y)?(p=y[0],m=y[1]):typeof y=="object"&&(p=y.rowspan,m=y.colspan)}return{rowspan:p,colspan:m}},getColspanRealWidth:(d,u,f)=>{if(u<1)return d[f].realWidth;const h=d.map(({realWidth:p,width:m})=>p||m).slice(f,f+u);return Number(h.reduce((p,m)=>Number(p)+Number(m),-1))}}}function mme(e){const t=n.inject(Go),o=G("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:d,tooltipContent:u,tooltipTrigger:f}=hme(e),{getRowStyle:h,getRowClass:p,getCellStyle:m,getCellClass:g,getSpan:y,getColspanRealWidth:w}=pme(e),$=n.computed(()=>e.store.states.columns.value.findIndex(({type:E})=>E==="default")),C=(E,N)=>{const _=t.props.rowKey;return _?Yt(E,_):N},b=(E,N,_,T=!1)=>{const{tooltipEffect:P,store:x}=e,{indent:v,columns:O}=x.states,I=p(E,N);let F=!0;_&&(I.push(o.em("row",`level-${_.level}`)),F=_.display);const M=F?null:{display:"none"};return n.h("tr",{style:[M,h(E,N)],class:I,key:C(E,N),onDblclick:z=>r(z,E),onClick:z=>a(z,E),onContextmenu:z=>i(z,E),onMouseenter:()=>s(N),onMouseleave:l},O.value.map((z,B)=>{const{rowspan:L,colspan:W}=y(E,z,N,B);if(!L||!W)return null;const R={...z};R.realWidth=w(O.value,W,B);const H={store:e.store,_self:e.context||t,column:R,row:E,$index:N,cellIndex:B,expanded:T};B===$.value&&_&&(H.treeNode={indent:_.level*v.value,level:_.level},typeof _.expanded=="boolean"&&(H.treeNode.expanded=_.expanded,"loading"in _&&(H.treeNode.loading=_.loading),"noLazyChildren"in _&&(H.treeNode.noLazyChildren=_.noLazyChildren)));const j=`${N},${B}`,U=R.columnKey||R.rawColumnKey||"",re=k(B,z,H);return n.h("td",{style:m(N,B,E,z),class:g(N,B,E,z),key:`${U}${j}`,rowspan:L,colspan:W,onMouseenter:J=>c(J,E,P),onMouseleave:d},[re])}))},k=(E,N,_)=>N.renderCell(_);return{wrappedRowRender:(E,N)=>{const _=e.store,{isRowExpanded:T,assertRowKey:P}=_,{treeData:x,lazyTreeNodeMap:v,childrenColumnName:O,rowKey:I}=_.states,F=_.states.columns.value;if(F.some(({type:z})=>z==="expand")){const z=T(E),B=b(E,N,void 0,z),L=t.renderExpanded;return z?L?[[B,n.h("tr",{key:`expanded-row__${B.key}`},[n.h("td",{colspan:F.length,class:`${o.e("cell")} ${o.e("expanded-cell")}`},[L({row:E,$index:N,store:_,expanded:z})])])]]:(console.error("[BiginUi Error]renderExpanded is required."),B):[[B]]}else if(Object.keys(x.value).length){P();const z=Yt(E,I.value);let B=x.value[z],L=null;B&&(L={expanded:B.expanded,level:B.level,display:!0},typeof B.lazy=="boolean"&&(typeof B.loaded=="boolean"&&B.loaded&&(L.noLazyChildren=!(B.children&&B.children.length)),L.loading=B.loading));const W=[b(E,N,L)];if(B){let R=0;const H=(U,re)=>{!(U&&U.length&&re)||U.forEach(J=>{const Y={display:re.display&&re.expanded,level:re.level+1,expanded:!1,noLazyChildren:!1,loading:!1},q=Yt(J,I.value);if(q==null)throw new Error("For nested data item, row-key is required.");if(B={...x.value[q]},B&&(Y.expanded=B.expanded,B.level=B.level||Y.level,B.display=!!(B.expanded&&Y.display),typeof B.lazy=="boolean"&&(typeof B.loaded=="boolean"&&B.loaded&&(Y.noLazyChildren=!(B.children&&B.children.length)),Y.loading=B.loading)),R++,W.push(b(J,N+R,Y)),B){const te=v.value[q]||J[O.value];H(te,B)}})};B.display=!0;const j=v.value[z]||E[O.value];H(j,B)}return W}else return b(E,N,void 0)},tooltipContent:u,tooltipTrigger:f}}var gme={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},yme=n.defineComponent({name:"BTableBody",props:gme,setup(e){const t=n.getCurrentInstance(),o=n.inject(Go),r=G("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:s}=mme(e),{onColumnsChange:l,onScrollableChange:c}=TE(o);return n.watch(e.store.states.hoverRow,(d,u)=>{if(!e.store.states.isComplex.value||!Re)return;let f=window.requestAnimationFrame;f||(f=h=>window.setTimeout(h,16)),f(()=>{const h=t?.vnode.el,p=Array.from(h?.children||[]).filter(y=>y?.classList.contains(`${r.e("row")}`)),m=p[u],g=p[d];m&&fn(m,"hover-row"),g&&Oo(g,"hover-row")})}),n.onUnmounted(()=>{na?.()}),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,o=t.states.data.value||[];return n.h("tbody",{},[o.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function P0(e){const t=e.tableLayout==="auto";let o=e.columns||[];t&&o.every(a=>a.width===void 0)&&(o=[]);const r=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return n.h("colgroup",{},o.map(a=>n.h("col",r(a))))}P0.props=["columns","tableLayout"];function bme(){const t=n.inject(Go)?.store,o=n.computed(()=>t.states.fixedLeafColumnsLength.value),r=n.computed(()=>t.states.rightFixedColumns.value.length),a=n.computed(()=>t.states.columns.value.length),i=n.computed(()=>t.states.fixedColumns.value.length),s=n.computed(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:o,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:s,columns:t.states.columns}}function Cme(e){const{columns:t}=bme(),o=G("table");return{getCellClasses:(i,s)=>{const l=i[s],c=[o.e("cell"),l.id,l.align,l.labelClassName,...A0(o.b(),s,l.fixed,e.store)];return l.className&&c.push(l.className),l.children||c.push(o.is("leaf")),c},getCellStyles:(i,s)=>{const l=x0(s,i.fixed,e.store);return Xi(l,"left"),Xi(l,"right"),l},columns:t}}var wme=n.defineComponent({name:"BTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:o,columns:r}=Cme(e);return{ns:G("table"),getCellClasses:t,getCellStyles:o,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:o,summaryMethod:r,sumText:a,ns:i}=this,s=this.store.states.data.value;let l=[];return r?l=r({columns:e,data:s}):e.forEach((c,d)=>{if(d===0){l[d]=a;return}const u=s.map(m=>Number(m[c.property])),f=[];let h=!0;u.forEach(m=>{if(!Number.isNaN(+m)){h=!1;const g=`${m}`.split(".")[1];f.push(g?g.length:0)}});const p=Math.max.apply(null,f);h?l[d]="":l[d]=u.reduce((m,g)=>{const y=Number(g);return Number.isNaN(+y)?m:Number.parseFloat((m+g).toFixed(Math.min(p,20)))},0)}),n.h("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[P0({columns:e}),n.h("tbody",[n.h("tr",{},[...e.map((c,d)=>n.h("td",{key:d,colspan:c.colSpan,rowspan:c.rowSpan,class:o(e,d),style:t(c,d)},[n.h("div",{class:["cell",c.labelClassName]},[l[d]])]))])])])}});function $me(e){return{setCurrentRow:u=>{e.commit("setCurrentRow",u)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(u,f)=>{e.toggleRowSelection(u,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:u=>{e.clearFilter(u)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(u,f)=>{e.toggleRowExpansionAdapter(u,f)},clearSort:()=>{e.clearSort()},sort:(u,f)=>{e.commit("sort",{prop:u,order:f})}}}function kme(e,t,o,r){const a=n.ref(!1),i=n.ref(null),s=n.ref(!1),l=z=>{s.value=z},c=n.ref({width:null,height:null,headerHeight:null}),d=n.ref(!1),u={display:"inline-block",verticalAlign:"middle"},f=n.ref(),h=n.ref(0),p=n.ref(0),m=n.ref(0),g=n.ref(0);n.watchEffect(()=>{t.setHeight(e.height)}),n.watchEffect(()=>{t.setMaxHeight(e.maxHeight)}),n.watch(()=>[e.currentRowKey,o.states.rowKey],([z,B])=>{!n.unref(B)||o.setCurrentRowKey(`${z}`)},{immediate:!0}),n.watch(()=>e.data,z=>{r.store.commit("setData",z)},{immediate:!0,deep:!0}),n.watchEffect(()=>{e.expandRowKeys&&o.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(z,B)=>{const{pixelX:L,pixelY:W}=B;Math.abs(L)>=Math.abs(W)&&(r.refs.bodyWrapper.scrollLeft+=B.pixelX/5)},$=n.computed(()=>e.height||e.maxHeight||o.states.fixedColumns.value.length>0||o.states.rightFixedColumns.value.length>0),C=n.computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{$.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};n.onMounted(async()=>{await n.nextTick(),o.updateColumns(),_(),requestAnimationFrame(b);const z=r.vnode.el,B=r.refs.headerWrapper;e.flexible&&z&&z.parentElement&&(z.parentElement.style.minWidth="0"),c.value={width:f.value=z.offsetWidth,height:z.offsetHeight,headerHeight:e.showHeader&&B?B.offsetHeight:null},o.states.columns.value.forEach(L=>{L.filteredValue&&L.filteredValue.length&&r.store.commit("filterChange",{column:L,values:L.filteredValue,silent:!0})}),r.$ready=!0});const k=(z,B)=>{if(!z)return;const L=Array.from(z.classList).filter(W=>!W.startsWith("is-scrolling-"));L.push(t.scrollX.value?B:"is-scrolling-none"),z.className=L.join(" ")},S=z=>{const{tableWrapper:B}=r.refs;k(B,z)},E=z=>{const{tableWrapper:B}=r.refs;return!!(B&&B.classList.contains(z))},N=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const U="is-scrolling-none";E(U)||S(U);return}const z=r.refs.scrollBarRef.wrap$;if(!z)return;const{scrollLeft:B,offsetWidth:L,scrollWidth:W}=z,{headerWrapper:R,footerWrapper:H}=r.refs;R&&(R.scrollLeft=B),H&&(H.scrollLeft=B);const j=W-L-1;B>=j?S("is-scrolling-right"):S(B===0?"is-scrolling-left":"is-scrolling-middle")},_=()=>{!r.refs.scrollBarRef||(r.refs.scrollBarRef.wrap$&&Xe(r.refs.scrollBarRef.wrap$,"scroll",N,{passive:!0}),e.fit?an(r.vnode.el,T):Xe(window,"resize",T),an(r.refs.bodyWrapper,()=>{T(),r.refs?.scrollBarRef?.update()}))},T=()=>{const z=r.vnode.el;if(!r.$ready||!z)return;let B=!1;const{width:L,height:W,headerHeight:R}=c.value,H=f.value=z.offsetWidth;L!==H&&(B=!0);const j=z.offsetHeight;(e.height||$.value)&&W!==j&&(B=!0);const U=e.tableLayout==="fixed"?r.refs.headerWrapper:r.refs.tableHeaderRef?.$el;e.showHeader&&U?.offsetHeight!==R&&(B=!0),h.value=r.refs.tableWrapper?.scrollHeight||0,m.value=U?.scrollHeight||0,g.value=r.refs.footerWrapper?.offsetHeight||0,p.value=h.value-m.value-g.value,B&&(c.value={width:H,height:j,headerHeight:e.showHeader&&U?.offsetHeight||0},b())},P=At(),x=n.computed(()=>{const{bodyWidth:z,scrollY:B,gutterWidth:L}=t;return z.value?`${z.value-(B.value?L:0)}px`:""}),v=n.computed(()=>e.maxHeight?"fixed":e.tableLayout),O=n.computed(()=>{if(e.data&&e.data.length)return null;let z="100%";e.height&&p.value&&(z=`${p.value}px`);const B=f.value;return{width:B?`${B}px`:"",height:z}}),I=n.computed(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=n.computed(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${m.value+g.value}px)`};{const z=e.maxHeight;if(h.value>=Number(z))return{maxHeight:`${h.value-m.value-g.value}px`}}}return{}});return{isHidden:a,renderExpanded:i,setDragVisible:l,isGroup:d,handleMouseLeave:y,handleHeaderFooterMousewheel:w,tableSize:P,emptyBlockStyle:O,handleFixedMousewheel:(z,B)=>{const L=r.refs.bodyWrapper;if(Math.abs(B.spinY)>0){const W=L.scrollTop;B.pixelY<0&&W!==0&&z.preventDefault(),B.pixelY>0&&L.scrollHeight-L.clientHeight>W&&z.preventDefault(),L.scrollTop+=Math.ceil(B.pixelY/5)}else L.scrollLeft+=Math.ceil(B.pixelX/5)},resizeProxyVisible:s,bodyWidth:x,resizeState:c,doLayout:b,tableBodyStyles:C,tableLayout:v,scrollbarViewStyle:u,tableInnerStyle:I,scrollbarStyle:F}}var Sme={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:{type:Boolean,default:!0},border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const Eme=()=>{const e=n.ref(),t=(i,s)=>{const l=e.value;l&&l.scrollTo(i,s)},o=(i,s)=>{const l=e.value;l&&Se(s)&&["Top","Left"].includes(i)&&l[`setScroll${i}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>o("Top",i),setScrollLeft:i=>o("Left",i)}};let Bme=1;const Nme=n.defineComponent({name:"BTable",directives:{Mousewheel:N8},components:{TableHeader:fme,TableBody:yme,TableFooter:wme,BScrollbar:bo,hColgroup:P0},props:Sme,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=He(),o=G("table"),r=n.getCurrentInstance();n.provide(Go,r);const a=Xpe(r,e);r.store=a;const i=new eme({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const s=n.computed(()=>(a.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:d,clearSelection:u,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:m,sort:g}=$me(a),{isHidden:y,renderExpanded:w,setDragVisible:$,isGroup:C,handleMouseLeave:b,handleHeaderFooterMousewheel:k,tableSize:S,emptyBlockStyle:E,handleFixedMousewheel:N,resizeProxyVisible:_,bodyWidth:T,resizeState:P,doLayout:x,tableBodyStyles:v,tableLayout:O,scrollbarViewStyle:I,tableInnerStyle:F,scrollbarStyle:M}=kme(e,i,a,r),{scrollBarRef:z,scrollTo:B,setScrollLeft:L,setScrollTop:W}=Eme(),R=Zt(x,50),H=`${o.namespace.value}-table_${Bme++}`;r.tableId=H,r.state={isGroup:C,resizeState:P,doLayout:x,debouncedUpdateLayout:R};const j=n.computed(()=>e.sumText||t("b.table.sumText")),U=n.computed(()=>e.emptyText||t("b.table.emptyText"));return{ns:o,layout:i,store:a,handleHeaderFooterMousewheel:k,handleMouseLeave:b,tableId:H,tableSize:S,isHidden:y,isEmpty:s,renderExpanded:w,resizeProxyVisible:_,resizeState:P,isGroup:C,bodyWidth:T,tableBodyStyles:v,emptyBlockStyle:E,debouncedUpdateLayout:R,handleFixedMousewheel:N,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:d,clearSelection:u,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:m,doLayout:x,sort:g,t,setDragVisible:$,context:r,computedSumText:j,computedEmptyText:U,tableLayout:O,scrollbarViewStyle:I,tableInnerStyle:F,scrollbarStyle:M,scrollBarRef:z,scrollTo:B,setScrollLeft:L,setScrollTop:W}}}),_me=["data-prefix"],Tme={ref:"hiddenColumns",class:"hidden-columns"};function Ame(e,t,o,r,a,i){const s=n.resolveComponent("hColgroup"),l=n.resolveComponent("table-header"),c=n.resolveComponent("table-body"),d=n.resolveComponent("b-scrollbar"),u=n.resolveComponent("table-footer"),f=n.resolveDirective("mousewheel");return n.openBlock(),n.createElementBlock("div",{ref:"tableWrapper",class:n.normalizeClass([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:n.normalizeStyle(e.style),"data-prefix":e.ns.namespace.value,"data-test-name":"table","data-test-variant":"","data-test-state":"",onMouseleave:t[0]||(t[0]=h=>e.handleMouseLeave())},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("inner-wrapper")),style:n.normalizeStyle(e.tableInnerStyle)},[n.createElementVNode("div",Tme,[n.renderSlot(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,ref:"headerWrapper",class:n.normalizeClass(e.ns.e("header-wrapper"))},[n.createElementVNode("table",{ref:"tableHeader",class:n.normalizeClass(e.ns.e("header")),style:n.normalizeStyle(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[n.createVNode(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),n.createVNode(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"bodyWrapper",class:n.normalizeClass(e.ns.e("body-wrapper"))},[n.createVNode(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:n.withCtx(()=>[n.createElementVNode("table",{ref:"tableBody",class:n.normalizeClass(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:n.normalizeStyle({width:e.bodyWidth,tableLayout:e.tableLayout})},[n.createVNode(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(n.openBlock(),n.createBlock(l,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):n.createCommentVNode("v-if",!0),n.createVNode(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"emptyBlock",style:n.normalizeStyle(e.emptyBlockStyle),class:n.normalizeClass(e.ns.e("empty-block"))},[n.createElementVNode("span",{class:n.normalizeClass(e.ns.e("empty-text"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(e.computedEmptyText),1)])],2)],6)):n.createCommentVNode("v-if",!0),e.$slots.append?(n.openBlock(),n.createElementBlock("div",{key:1,ref:"appendWrapper",class:n.normalizeClass(e.ns.e("append-wrapper"))},[n.renderSlot(e.$slots,"append")],2)):n.createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:1,ref:"footerWrapper",class:n.normalizeClass(e.ns.e("footer-wrapper"))},[n.createVNode(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:n.normalizeStyle(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[n.vShow,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):n.createCommentVNode("v-if",!0),e.border||e.isGroup?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.ns.e("border-left-patch"))},null,2)):n.createCommentVNode("v-if",!0)],6),n.withDirectives(n.createElementVNode("div",{ref:"resizeProxy",class:n.normalizeClass(e.ns.e("column-resize-proxy"))},null,2),[[n.vShow,e.resizeProxyVisible]])],46,_me)}var xme=Q(Nme,[["render",Ame],["__file","table.vue"]]);const Mme={selection:"table-column--selection",expand:"table__expand-column"},Pme={default:{order:""},selection:{width:64,minWidth:64,realWidth:64,order:""},expand:{width:64,minWidth:64,realWidth:64,order:""},index:{width:64,minWidth:64,realWidth:64,order:""}},vme=e=>Mme[e]||"",Ome={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return n.h(xn,{plain:!0,disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:o,$index:r}){return n.h(xn,{plain:!0,disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:o.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let o=t+1;const r=e.index;return typeof r=="number"?o=t+r:typeof r=="function"&&(o=r(t)),n.h("div",{},[o])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:o}){const{ns:r}=t,a=[r.e("expand-icon")];o&&a.push(r.em("expand-icon","expanded"));const i=function(s){s.stopPropagation(),t.toggleRowExpansion(e)};return n.h("div",{class:a,onClick:i},{default:()=>[n.h(pe,null,{default:()=>[n.h(ui)]})]})},sortable:!1,resizable:!1}};function Ime({row:e,column:t,$index:o}){const r=t.property,a=r&&bz(e,r).value;return t&&t.formatter?t.formatter(e,t,a,o):a?.toString?.()||""}function Dme({row:e,treeNode:t,store:o},r=!1){const{ns:a}=o;if(!t)return r?[n.h("span",{class:a.e("placeholder")})]:null;const i=[],s=function(l){l.stopPropagation(),!t.loading&&o.loadOrToggle(e)};if(t.indent&&i.push(n.h("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let c=ui;t.loading&&(c=Or),i.push(n.h("div",{class:l,onClick:s},{default:()=>[n.h(pe,{class:{[a.is("loading")]:t.loading}},{default:()=>[n.h(c)]})]}))}else i.push(n.h("span",{class:a.e("placeholder")}));return i}function xE(e,t){return e.reduce((o,r)=>(o[r]=r,o),t)}function Rme(e,t){const o=n.getCurrentInstance();return{registerComplexWatchers:()=>{const i=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=xE(i,s);Object.keys(l).forEach(c=>{const d=s[c];Kt(t,d)&&n.watch(()=>t[d],u=>{let f=u;d==="width"&&c==="realWidth"&&(f=T0(u)),d==="minWidth"&&c==="realMinWidth"&&(f=kE(u)),o.columnConfig.value[d]=f,o.columnConfig.value[c]=f;const h=d==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=xE(i,s);Object.keys(l).forEach(c=>{const d=s[c];Kt(t,d)&&n.watch(()=>t[d],u=>{o.columnConfig.value[c]=u})})}}}function Lme(e,t,o){const r=n.getCurrentInstance(),a=n.ref(""),i=n.ref(!1),s=n.ref(),l=n.ref(),c=G("table");n.watchEffect(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),n.watchEffect(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const d=n.computed(()=>{let C=r.vnode.vParent||r.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),u=n.computed(()=>{const{store:C}=r.parent;if(!C)return!1;const{treeData:b}=C.states,k=b.value;return k&&Object.keys(k).length>0}),f=n.ref(T0(e.width)),h=n.ref(kE(e.minWidth)),p=C=>(f.value&&(C.width=f.value),h.value&&(C.minWidth=h.value),!f.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(C.width===void 0?C.minWidth:C.width),C),m=C=>{const b=C.type,k=Ome[b]||{};Object.keys(k).forEach(E=>{const N=k[E];E!=="className"&&N!==void 0&&(C[E]=N)});const S=vme(b);if(S){const E=`${n.unref(c.namespace)}-${S}`;C.className=C.className?`${C.className} ${E}`:E}return C},g=C=>{Array.isArray(C)?C.forEach(k=>b(k)):b(C);function b(k){k?.type?.name==="BTableColumn"&&(k.vParent=r)}};return{columnId:a,realAlign:s,isSubColumn:i,realHeaderAlign:l,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:m,setColumnRenders:C=>{e.renderHeader||C.type!=="selection"&&(C.renderHeader=k=>{r.columnConfig.value.label;const S=t.header;return S?S(k):C.label});let b=C.renderCell;return u.value,C.type==="expand"?(C.renderCell=k=>n.h("div",{class:"cell"},[b(k)]),o.value.renderExpanded=k=>t.default?t.default(k):t.default):(b=b||Ime,C.renderCell=k=>{let S=null;if(t.default){const T=t.default(k);S=T.some(P=>P.type!==n.Comment)?T:b(k)}else S=b(k);const E=u.value&&k.cellIndex===0&&k.column.type!=="selection",N=Dme(k,E),_={class:"cell",style:{}};return C.showOverflowTooltip?(_.class=`${_.class} is-overflow`,n.h("div",_,[N,n.h(Xt,{placement:"top",showAfter:300},{default:()=>[n.h("span",null,S)],content:()=>[n.h("span",null,S)]})])):(g(S),n.h("div",_,[N,S]))}),C},getPropsData:(...C)=>C.reduce((b,k)=>(Array.isArray(k)&&k.forEach(S=>{b[S]=e[S]}),b),{}),getColumnElIndex:(C,b)=>Array.prototype.indexOf.call(C,b)}}var Vme={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Fme=1;var ME=n.defineComponent({name:"BTableColumn",components:{BCheckbox:xn},props:Vme,setup(e,{slots:t}){const o=n.getCurrentInstance(),r=n.ref({}),a=Tn("table",{sort:{ascending:"ascending",descending:"descending"}}),i=n.computed(()=>{let C=o.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:s,registerComplexWatchers:l}=Rme(i,e),{columnId:c,isSubColumn:d,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:m,getPropsData:g,getColumnElIndex:y,realAlign:w}=Lme(e,t,i),$=f.value;c.value=`${$.tableId||$.columnId}_column_${Fme++}`,n.onBeforeMount(()=>{d.value=i.value!==$;const C=e.type||"default",b=e.sortable===""?!0:e.sortable,k={...Pme[C],id:c.value,type:C,property:e.prop||e.property,align:w,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,sortOrders:[a.value.sort.ascending,a.value.sort.descending,null],index:e.index,rawColumnKey:o.vnode.key};let T=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=Fpe(k,T),T=Hpe(m,h,p)(T),r.value=T,s(),l()}),n.onMounted(()=>{const C=f.value,b=d.value?C.vnode.el.children:C.refs.hiddenColumns?.children,k=()=>y(b||[],o.vnode.el);r.value.getColumnIndex=k,k()>-1&&i.value.store.commit("insertColumn",r.value,d.value?C.columnConfig.value:null)}),n.onBeforeUnmount(()=>{i.value.store.commit("removeColumn",r.value,d.value?$.columnConfig.value:null)}),o.columnId=c.value,o.columnConfig=r},render(){try{const e=this.$slots.default?.({row:{},column:{},$index:-1}),t=[];if(Array.isArray(e))for(const r of e)r.type?.name==="BTableColumn"||r.shapeFlag&2?t.push(r):r.type===n.Fragment&&Array.isArray(r.children)&&r.children.forEach(a=>{a?.patchFlag!==1024&&!De(a?.children)&&t.push(a)});return n.h("div",t)}catch{return n.h("div",[])}}});const PE=Ne(xme,{TableColumn:ME}),vE=Ge(ME);var Ji=(e=>(e.ASC="asc",e.DESC="desc",e))(Ji||{}),Qi=(e=>(e.CENTER="center",e.RIGHT="right",e))(Qi||{}),v0=(e=>(e.LEFT="left",e.RIGHT="right",e))(v0||{});const O0={asc:"desc",desc:"asc"},es=Symbol("placeholder"),zme=(e,t,o)=>{const r={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};o||(r.flexShrink=1);const a={...e.style??{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(a.maxWidth=e.maxWidth),e.minWidth&&(a.minWidth=e.minWidth)),a};function Hme(e,t,o){const r=n.computed(()=>n.unref(t).filter(g=>!g.hidden)),a=n.computed(()=>n.unref(r).filter(g=>g.fixed==="left"||g.fixed===!0)),i=n.computed(()=>n.unref(r).filter(g=>g.fixed==="right")),s=n.computed(()=>n.unref(r).filter(g=>!g.fixed)),l=n.computed(()=>{const g=[];return n.unref(a).forEach(y=>{g.push({...y,placeholderSign:es})}),n.unref(s).forEach(y=>{g.push(y)}),n.unref(i).forEach(y=>{g.push({...y,placeholderSign:es})}),g}),c=n.computed(()=>n.unref(a).length||n.unref(i).length),d=n.computed(()=>n.unref(t).reduce((y,w)=>(y[w.key]=zme(w,n.unref(o),e.fixed),y),{})),u=n.computed(()=>n.unref(r).reduce((g,y)=>g+y.width,0)),f=g=>n.unref(t).find(y=>y.key===g),h=g=>n.unref(d)[g],p=(g,y)=>{g.width=y};function m(g){const{key:y}=g.currentTarget.dataset;if(!y)return;const{sortState:w,sortBy:$}=e;let C=Ji.ASC;it(w)?C=O0[w[y]]:C=O0[$.order],e.onColumnSort?.({column:f(y),key:y,order:C})}return{columns:t,columnsStyles:d,columnsTotalWidth:u,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:c,mainColumns:l,normalColumns:s,visibleColumns:r,getColumn:f,getColumnStyle:h,updateColumnWidth:p,onColumnSorted:m}}const Wme=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:a})=>{const i=n.ref({scrollLeft:0,scrollTop:0});function s(p){const{scrollTop:m}=p;t.value?.scrollTo(p),o.value?.scrollToTop(m),r.value?.scrollToTop(m)}function l(p){i.value=p,s(p)}function c(p){i.value.scrollTop=p,s(n.unref(i))}function d(p){i.value.scrollLeft=p,t.value?.scrollTo?.(n.unref(i))}function u(p){l(p),e.onScroll?.(p)}function f({scrollTop:p}){const{scrollTop:m}=n.unref(i);p!==m&&c(p)}function h(p,m="auto"){t.value?.scrollToRow(p,m)}return n.watch(()=>n.unref(i).scrollTop,(p,m)=>{p>m&&a()}),{scrollPos:i,scrollTo:l,scrollToLeft:d,scrollToTop:c,scrollToRow:h,onScroll:u,onVerticalScroll:f}},Kme=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:a})=>{const i=n.getCurrentInstance(),{emit:s}=i,l=n.shallowRef(!1),c=n.shallowRef(null),d=n.ref(e.defaultExpandedRowKeys||[]),u=n.ref(-1),f=n.shallowRef(null),h=n.ref({}),p=n.ref({}),m=n.shallowRef({}),g=n.shallowRef({}),y=n.shallowRef({}),w=n.computed(()=>Se(e.estimatedRowHeight));function $(_){e.onRowsRendered?.(_),_.rowCacheEnd>n.unref(u)&&(u.value=_.rowCacheEnd)}function C({hovered:_,rowKey:T}){c.value=_?T:null}function b({expanded:_,rowData:T,rowIndex:P,rowKey:x}){const v=[...n.unref(d)],O=v.indexOf(x);_?O===-1&&v.push(x):O>-1&&v.splice(O,1),d.value=v,s("update:expandedRowKeys",v),e.onRowExpand?.({expanded:_,rowData:T,rowIndex:P,rowKey:x}),e.onExpandedRowsChange?.(v)}const k=Zt(()=>{l.value=!0,h.value={...n.unref(h),...n.unref(p)},S(n.unref(f),!1),p.value={},f.value=null,t.value?.forceUpdate(),o.value?.forceUpdate(),r.value?.forceUpdate(),i.proxy?.$forceUpdate(),l.value=!1},0);function S(_,T=!1){!n.unref(w)||[t,o,r].forEach(P=>{const x=n.unref(P);x&&x.resetAfterRowIndex(_,T)})}function E(_,T,P){const x=n.unref(f);(x===null||x>P)&&(f.value=P),p.value[_]=T}function N({rowKey:_,height:T,rowIndex:P},x){x?x===v0.RIGHT?y.value[_]=T:m.value[_]=T:g.value[_]=T;const v=Math.max(...[m,y,g].map(O=>O.value[_]||0));n.unref(h)[_]!==v&&(E(_,v,P),k())}return n.watch(u,()=>a()),{hoveringRowKey:c,expandedRowKeys:d,lastRenderedRowIndex:u,isDynamic:w,isResetting:l,rowHeights:h,resetAfterIndex:S,onRowExpanded:b,onRowHovered:C,onRowsRendered:$,onRowHeightChange:N}},jme=(e,{expandedRowKeys:t,lastRenderedRowIndex:o,resetAfterIndex:r})=>{const a=n.ref({}),i=n.computed(()=>{const l={},{data:c,rowKey:d}=e,u=n.unref(t);if(!u||!u.length)return c;const f=[],h=new Set;u.forEach(m=>h.add(m));let p=c.slice();for(p.forEach(m=>l[m[d]]=0);p.length>0;){const m=p.shift();f.push(m),h.has(m[d])&&Array.isArray(m.children)&&m.children.length>0&&(p=[...m.children,...p],m.children.forEach(g=>l[g[d]]=l[m[d]]+1))}return a.value=l,f}),s=n.computed(()=>{const{data:l,expandColumnKey:c}=e;return c?n.unref(i):l});return n.watch(s,(l,c)=>{l!==c&&(o.value=-1,r(0,!0))}),{data:s,depthMap:a}},Ume=(e,t)=>e+t,ju=e=>Me(e)?e.reduce(Ume,0):e,Ka=(e,t,o={})=>nt(e)?e(t):e??o,oa=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Ot(e[t])}),e),OE=e=>n.isVNode(e)?t=>n.h(e,t):e,Gme=(e,{columnsTotalWidth:t,data:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=n.computed(()=>{const{fixed:C,width:b,vScrollbarSize:k}=e,S=b-k;return C?Math.max(Math.round(n.unref(t)),S):S}),s=n.computed(()=>n.unref(i)+(e.fixed?e.vScrollbarSize:0)),l=n.computed(()=>{const{height:C=0,maxHeight:b=0,footerHeight:k,hScrollbarSize:S}=e;if(b>0){const E=n.unref(m),N=n.unref(c),T=n.unref(p)+E+N+S;return Math.min(T,b-k)}return C-k}),c=n.computed(()=>{const{rowHeight:C,estimatedRowHeight:b}=e,k=n.unref(o);return Se(b)?k.length*b:k.length*C}),d=n.computed(()=>{const{maxHeight:C}=e,b=n.unref(l);if(Se(C)&&C>0)return b;const k=n.unref(c)+n.unref(p)+n.unref(m);return Math.min(b,k)}),u=C=>C.width,f=n.computed(()=>ju(n.unref(r).map(u))),h=n.computed(()=>ju(n.unref(a).map(u))),p=n.computed(()=>ju(e.headerHeight)),m=n.computed(()=>(e.fixedData?.length||0)*e.rowHeight),g=n.computed(()=>n.unref(l)-n.unref(p)-n.unref(m)),y=n.computed(()=>{const{style:C={},height:b,width:k}=e;return oa({...C,height:b,width:k})}),w=n.computed(()=>oa({height:e.footerHeight})),$=n.computed(()=>({top:Ot(n.unref(p)),bottom:Ot(e.footerHeight),width:Ot(e.width)}));return{bodyWidth:i,fixedTableHeight:d,mainTableHeight:l,leftTableWidth:f,rightTableWidth:h,headerWidth:s,rowsHeight:c,windowHeight:g,footerHeight:w,emptyStyle:$,rootStyle:y}},Yme=e=>{const t=n.ref(),o=n.ref(0),r=n.ref(0);let a;return n.onMounted(()=>{a=an(t,([i])=>{const{width:s,height:l}=i.contentRect,{paddingLeft:c,paddingRight:d,paddingTop:u,paddingBottom:f}=getComputedStyle(i.target),h=Number.parseInt(c)||0,p=Number.parseInt(d)||0,m=Number.parseInt(u)||0,g=Number.parseInt(f)||0;o.value=s-h-p,r.value=l-m-g}).stop}),n.onBeforeUnmount(()=>{a?.()}),n.watch([o,r],([i,s])=>{e.onResize?.({width:i,height:s})}),{sizer:t,width:o,height:r}};function qme(e){const t=n.ref(),o=n.ref(),r=n.ref(),{columns:a,columnsStyles:i,columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:c,hasFixedColumns:d,mainColumns:u,onColumnSorted:f}=Hme(e,n.toRef(e,"columns"),n.toRef(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:m,scrollToRow:g,onScroll:y,onVerticalScroll:w,scrollPos:$}=Wme(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:ue}),{expandedRowKeys:C,hoveringRowKey:b,lastRenderedRowIndex:k,isDynamic:S,isResetting:E,rowHeights:N,resetAfterIndex:_,onRowExpanded:T,onRowHeightChange:P,onRowHovered:x,onRowsRendered:v}=Kme(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:ue}),{data:O,depthMap:I}=jme(e,{expandedRowKeys:C,lastRenderedRowIndex:k,resetAfterIndex:_}),{bodyWidth:F,fixedTableHeight:M,mainTableHeight:z,leftTableWidth:B,rightTableWidth:L,headerWidth:W,rowsHeight:R,windowHeight:H,footerHeight:j,emptyStyle:U,rootStyle:re}=Gme(e,{columnsTotalWidth:s,data:O,fixedColumnsOnLeft:l,fixedColumnsOnRight:c}),J=n.shallowRef(!1),Y=n.ref(),q=n.computed(()=>{const ge=n.unref(O).length===0;return Me(e.fixedData)?e.fixedData.length===0&&ge:ge});function te(ge){const{estimatedRowHeight:Ee,rowHeight:Te,rowKey:ye}=e;return Ee?n.unref(N)[n.unref(O)[ge][ye]]||Ee:Te}function ue(){const{onEndReached:ge}=e;if(!ge)return;const{scrollTop:Ee}=n.unref($),Te=n.unref(R),ye=n.unref(H),oe=Te-(Ee+ye)+e.hScrollbarSize;n.unref(k)>=0&&Te!==n.unref(R)&&ge(oe)}return n.watch(()=>e.expandedRowKeys,ge=>C.value=ge,{deep:!0}),{columns:a,containerRef:Y,mainTableRef:t,leftTableRef:o,rightTableRef:r,isDynamic:S,isResetting:E,isScrolling:J,hoveringRowKey:b,hasFixedColumns:d,columnsStyles:i,columnsTotalWidth:s,data:O,expandedRowKeys:C,depthMap:I,fixedColumnsOnLeft:l,fixedColumnsOnRight:c,mainColumns:u,bodyWidth:F,emptyStyle:U,rootStyle:re,headerWidth:W,footerHeight:j,mainTableHeight:z,fixedTableHeight:M,leftTableWidth:B,rightTableWidth:L,showEmpty:q,getRowHeight:te,onColumnSorted:f,onRowHovered:x,onRowExpanded:T,onRowsRendered:v,onRowHeightChange:P,scrollTo:h,scrollToLeft:p,scrollToTop:m,scrollToRow:g,onScroll:y,onVerticalScroll:w}}const I0=Symbol("tableV2"),IE=String,Yl={type:K(Array),required:!0},D0={type:K(Array)},DE={...D0,required:!0},Zme=String,RE={type:K(Array),default:()=>st([])},ja={type:Number,required:!0},LE={type:K([String,Number,Symbol]),default:"id"},VE={type:K(Object)},ra=ne({class:String,columns:Yl,columnsStyles:{type:K(Object),required:!0},depth:Number,expandColumnKey:Zme,estimatedRowHeight:{...ta.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:K(Function)},onRowHover:{type:K(Function)},onRowHeightChange:{type:K(Function)},rowData:{type:K(Object),required:!0},rowEventHandlers:{type:K(Object)},rowIndex:{type:Number,required:!0},rowKey:LE,style:{type:K(Object)}}),R0={type:Number,required:!0},L0=ne({class:String,columns:Yl,fixedHeaderData:{type:K(Array)},headerData:{type:K(Array),required:!0},headerHeight:{type:K([Number,Array]),default:50},rowWidth:R0,rowHeight:{type:Number,default:50},height:R0,width:R0}),Uu=ne({columns:Yl,data:DE,fixedData:D0,estimatedRowHeight:ra.estimatedRowHeight,width:ja,height:ja,headerWidth:ja,headerHeight:L0.headerHeight,bodyWidth:ja,rowHeight:ja,cache:b0.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ta.scrollbarAlwaysOn,scrollbarStartGap:ta.scrollbarStartGap,scrollbarEndGap:ta.scrollbarEndGap,class:IE,style:VE,containerStyle:VE,getRowHeight:{type:K(Function),required:!0},rowKey:ra.rowKey,onRowsRendered:{type:K(Function)},onScroll:{type:K(Function)}}),FE=ne({cache:Uu.cache,estimatedRowHeight:ra.estimatedRowHeight,rowKey:LE,headerClass:{type:K([String,Function])},headerProps:{type:K([Object,Function])},headerCellProps:{type:K([Object,Function])},headerHeight:L0.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:K([String,Function])},rowProps:{type:K([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:K([Object,Function])},columns:Yl,data:DE,dataGetter:{type:K(Function)},fixedData:D0,expandColumnKey:ra.expandColumnKey,expandedRowKeys:RE,defaultExpandedRowKeys:RE,class:IE,fixed:Boolean,style:{type:K(Object)},width:ja,height:ja,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ta.hScrollbarSize,vScrollbarSize:ta.vScrollbarSize,scrollbarAlwaysOn:w0.alwaysOn,sortBy:{type:K(Object),default:()=>({})},sortState:{type:K(Object),default:void 0},onColumnSort:{type:K(Function)},onExpandedRowsChange:{type:K(Function)},onEndReached:{type:K(Function)},onRowExpand:ra.onRowExpand,onScroll:Uu.onScroll,onRowsRendered:Uu.onRowsRendered,rowEventHandlers:ra.rowEventHandlers}),V0=(e,{slots:t})=>{const{cellData:o,style:r}=e,a=o?.toString?.()||"";return n.createVNode("div",{class:e.class,title:a,style:r},[t.default?t.default(e):a])};V0.displayName="BTableV2Cell",V0.inheritAttrs=!1;var Xme=V0;const F0=(e,{slots:t})=>t.default?t.default(e):n.createVNode("div",{class:e.class,title:e.column?.title},[e.column?.title]);F0.displayName="BTableV2HeaderCell",F0.inheritAttrs=!1;var Jme=F0;const Qme=ne({class:String,columns:Yl,columnsStyles:{type:K(Object),required:!0},headerIndex:Number,style:{type:K(Object)}});var e1e=n.defineComponent({name:"BTableV2HeaderRow",props:Qme,setup(e,{slots:t}){return()=>{const{columns:o,columnsStyles:r,headerIndex:a,style:i}=e;let s=o.map((l,c)=>t.cell({columns:o,column:l,columnIndex:c,headerIndex:a,style:r[l.key]}));return t.header&&(s=t.header({cells:s.map(l=>Me(l)&&l.length===1?l[0]:l),columns:o,headerIndex:a})),n.createVNode("div",{class:e.class,style:i},[s])}}});const t1e="BTableV2Header";var n1e=n.defineComponent({name:t1e,props:L0,setup(e,{slots:t,expose:o}){const r=G("table-v2"),a=n.ref(),i=n.computed(()=>oa({width:e.width,height:e.height})),s=n.computed(()=>oa({width:e.rowWidth,height:e.height})),l=n.computed(()=>gc(n.unref(e.headerHeight))),c=f=>{const h=n.unref(a);n.nextTick(()=>{h?.scroll&&h.scroll({left:f})})},d=()=>{const f=r.e("fixed-header-row"),{columns:h,fixedHeaderData:p,rowHeight:m}=e;return p?.map((g,y)=>{const w=oa({height:m,width:"100%"});return t.fixed?.({class:f,columns:h,rowData:g,rowIndex:-(y+1),style:w})})},u=()=>{const f=r.e("dynamic-header-row"),{columns:h}=e;return n.unref(l).map((p,m)=>{const g=oa({width:"100%",height:p});return t.dynamic?.({class:f,columns:h,headerIndex:m,style:g})})};return o({scrollToLeft:c}),()=>{if(!(e.height<=0))return n.createVNode("div",{ref:a,class:e.class,style:n.unref(i)},[n.createVNode("div",{style:n.unref(s),class:r.e("header")},[u(),d()])])}}});const o1e=e=>{const{isScrolling:t}=n.inject(I0),o=n.ref(!1),r=n.ref(),a=n.computed(()=>Se(e.estimatedRowHeight)&&e.rowIndex>=0),i=(c=!1)=>{const d=n.unref(r);if(!d)return;const{columns:u,onRowHeightChange:f,rowKey:h,rowIndex:p,style:m}=e,{height:g}=d.getBoundingClientRect();o.value=!0,n.nextTick(()=>{if(c||g!==Number.parseInt(m.height)){const y=u[0],w=y?.placeholderSign===es;f?.({rowKey:h,height:g,rowIndex:p},y&&!w&&y.fixed)}})},s=n.computed(()=>{const{rowData:c,rowIndex:d,rowKey:u,onRowHover:f}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([m,g])=>{nt(g)&&(p[m]=y=>{g({event:y,rowData:c,rowIndex:d,rowKey:u})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:g})=>{const y=p[m];p[m]=w=>{f({event:w,hovered:g,rowData:c,rowIndex:d,rowKey:u}),y?.(w)}}),p}),l=c=>{const{onRowExpand:d,rowData:u,rowIndex:f,rowKey:h}=e;d?.({expanded:c,rowData:u,rowIndex:f,rowKey:h})};return n.onMounted(()=>{n.unref(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:o,rowRef:r,eventHandlers:s,onExpand:l}},r1e="BTableV2TableRow";var a1e=n.defineComponent({name:r1e,props:ra,setup(e,{expose:t,slots:o,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:s,measured:l,rowRef:c,onExpand:d}=o1e(e);return t({onExpand:d}),()=>{const{columns:u,columnsStyles:f,expandColumnKey:h,depth:p,rowData:m,rowIndex:g,style:y}=e;let w=u.map(($,C)=>{const b=Me(m.children)&&m.children.length>0&&$.key===h;return o.cell({column:$,columns:u,columnIndex:C,depth:p,style:f[$.key],rowData:m,rowIndex:g,isScrolling:n.unref(i),expandIconProps:b?{rowData:m,rowIndex:g,onExpand:d}:void 0})});if(o.row&&(w=o.row({cells:w.map($=>Me($)&&$.length===1?$[0]:$),style:y,columns:u,depth:p,rowData:m,rowIndex:g,isScrolling:n.unref(i)})),n.unref(s)){const{height:$,...C}=y||{},b=n.unref(l);return n.createVNode("div",n.mergeProps({ref:c,class:e.class,style:b?y:C},r,n.unref(a)),[w])}return n.createVNode("div",n.mergeProps(r,{ref:c,class:e.class,style:y},n.unref(a)),[w])}}}),i1e=e=>{const{sortOrder:t}=e;return n.createVNode(pe,{size:14,class:e.class},{default:()=>[t===Ji.ASC?n.createVNode(wC,null,null):n.createVNode(CC,null,null)]})},s1e=e=>{const{expanded:t,expandable:o,onExpand:r,style:a,size:i}=e,s={onClick:o?()=>r(!t):void 0,class:e.class};return n.createVNode(pe,n.mergeProps(s,{size:i,style:a}),{default:()=>[n.createVNode(Un,null,null)]})};const l1e="BTableV2Grid",c1e=e=>{const t=n.ref(),o=n.ref(),r=n.computed(()=>{const{data:g,rowHeight:y,estimatedRowHeight:w}=e;if(!w)return g.length*y}),a=n.computed(()=>{const{fixedData:g,rowHeight:y}=e;return(g?.length||0)*y}),i=n.computed(()=>ju(e.headerHeight)),s=n.computed(()=>{const{height:g}=e;return Math.max(0,g-n.unref(i)-n.unref(a))}),l=n.computed(()=>n.unref(i)+n.unref(a)>0),c=({data:g,rowIndex:y})=>g[y][e.rowKey];function d({rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:w,rowVisibleEnd:$}){e.onRowsRendered?.({rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:w,rowVisibleEnd:$})}function u(g,y){o.value?.resetAfterRowIndex(g,y)}function f(g,y){const w=n.unref(t),$=n.unref(o);!w||!$||(it(g)?(w.scrollToLeft(g.scrollLeft),$.scrollTo(g)):(w.scrollToLeft(g),$.scrollTo({scrollLeft:g,scrollTop:y})))}function h(g){n.unref(o)?.scrollTo({scrollTop:g})}function p(g,y){n.unref(o)?.scrollToItem(g,1,y)}function m(){n.unref(o)?.$forceUpdate(),n.unref(t)?.$forceUpdate()}return{bodyRef:o,forceUpdate:m,fixedRowHeight:a,gridHeight:s,hasHeader:l,headerHeight:i,headerRef:t,totalHeight:r,itemKey:c,onItemRendered:d,resetAfterRowIndex:u,scrollTo:f,scrollToTop:h,scrollToRow:p}},z0=n.defineComponent({name:l1e,props:Uu,setup(e,{slots:t,expose:o}){const{ns:r}=n.inject(I0),{bodyRef:a,fixedRowHeight:i,gridHeight:s,hasHeader:l,headerRef:c,headerHeight:d,totalHeight:u,forceUpdate:f,itemKey:h,onItemRendered:p,resetAfterRowIndex:m,scrollTo:g,scrollToTop:y,scrollToRow:w}=c1e(e);o({forceUpdate:f,totalHeight:u,scrollTo:g,scrollToTop:y,scrollToRow:w,resetAfterRowIndex:m});const $=()=>e.bodyWidth;return()=>{const{cache:C,columns:b,data:k,fixedData:S,useIsScrolling:E,scrollbarAlwaysOn:N,scrollbarEndGap:_,scrollbarStartGap:T,style:P,rowHeight:x,bodyWidth:v,estimatedRowHeight:O,headerWidth:I,height:F,width:M,getRowHeight:z,onScroll:B}=e,L=Se(O),W=L?GS:VS,R=n.unref(d);return n.createVNode("div",{role:"table",class:[r.e("table"),e.class],style:P},[n.createVNode(W,{ref:a,data:k,useIsScrolling:E,itemKey:h,columnCache:0,columnWidth:L?$:v,totalColumn:1,totalRow:k.length,rowCache:C,rowHeight:L?z:x,width:M,height:n.unref(s),class:r.e("body"),scrollbarStartGap:T,scrollbarEndGap:_,scrollbarAlwaysOn:N,onScroll:B,onItemRendered:p,perfMode:!1},{default:H=>{const j=k[H.rowIndex];return t.row?.({...H,columns:b,rowData:j})}}),n.unref(l)&&n.createVNode(n1e,{ref:c,class:r.e("header-wrapper"),columns:b,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:I,rowHeight:x,width:M,height:Math.min(R+n.unref(i),F)},{dynamic:t.header,fixed:t.row})])}}});function d1e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const u1e=(e,{slots:t})=>{const{mainTableRef:o,...r}=e;return n.createVNode(z0,n.mergeProps({ref:o},r),d1e(t)?t:{default:()=>[t]})};function f1e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const h1e=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:o,...r}=e;return n.createVNode(z0,n.mergeProps({ref:o},r),f1e(t)?t:{default:()=>[t]})};function p1e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const m1e=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:o,...r}=e;return n.createVNode(z0,n.mergeProps({ref:o},r),p1e(t)?t:{default:()=>[t]})};function g1e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const y1e=(e,{slots:t})=>{const{columns:o,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:s,estimatedRowHeight:l,hasFixedColumns:c,hoveringRowKey:d,rowData:u,rowIndex:f,style:h,isScrolling:p,rowProps:m,rowClass:g,rowKey:y,rowEventHandlers:w,ns:$,onRowHovered:C,onRowExpanded:b}=e,k=Ka(g,{columns:o,rowData:u,rowIndex:f},""),S=Ka(m,{columns:o,rowData:u,rowIndex:f}),E=u[y],N=a[E]||0,_=Boolean(i),T=f<0,P=[$.e("row"),k,{[$.e(`row-depth-${N}`)]:_&&f>=0,[$.is("expanded")]:_&&s.includes(E),[$.is("hovered")]:!p&&E===d,[$.is("fixed")]:!N&&T,[$.is("customized")]:Boolean(t.row)}],x=c?C:void 0,v={...S,columns:o,columnsStyles:r,class:P,depth:N,expandColumnKey:i,estimatedRowHeight:T?void 0:l,isScrolling:p,rowIndex:f,rowData:u,rowKey:E,rowEventHandlers:w,style:h};return n.createVNode(a1e,n.mergeProps(v,{onRowHover:x,onRowExpand:b}),g1e(t)?t:{default:()=>[t]})},H0=({columns:e,column:t,columnIndex:o,depth:r,expandIconProps:a,isScrolling:i,rowData:s,rowIndex:l,style:c,expandedRowKeys:d,ns:u,cellProps:f,expandColumnKey:h,indentSize:p,iconSize:m,rowKey:g},{slots:y})=>{const w=oa(c);if(t.placeholderSign===es)return n.createVNode("div",{class:u.em("row-cell","placeholder"),style:w},null);const{cellRenderer:$,dataKey:C,dataGetter:b}=t,S=OE($)||y.default||(F=>n.createVNode(Xme,F,null)),E=nt(b)?b({columns:e,column:t,columnIndex:o,rowData:s,rowIndex:l}):rt(s,C??""),N=Ka(f,{cellData:E,columns:e,column:t,columnIndex:o,rowIndex:l,rowData:s}),_={class:u.e("cell-text"),columns:e,column:t,columnIndex:o,cellData:E,isScrolling:i,rowData:s,rowIndex:l},T=S(_),P=[u.e("row-cell"),t.align===Qi.CENTER&&u.is("align-center"),t.align===Qi.RIGHT&&u.is("align-right")],x=l>=0&&t.key===h,v=l>=0&&d.includes(s[g]);let O;const I=`margin-inline-start: ${r*p}px;`;return x&&(it(a)?O=n.createVNode(s1e,n.mergeProps(a,{class:[u.e("expand-icon"),u.is("expanded",v)],size:m,expanded:v,style:I,expandable:!0}),null):O=n.createVNode("div",{style:[I,`width: ${m}px; height: ${m}px;`].join(" ")},null)),n.createVNode("div",n.mergeProps({class:P,style:w},N),[O,T])};H0.inheritAttrs=!1;function b1e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const C1e=({columns:e,columnsStyles:t,headerIndex:o,style:r,headerClass:a,headerProps:i,ns:s},{slots:l})=>{const c={columns:e,headerIndex:o},d=[s.e("header-row"),Ka(a,c,""),{[s.is("customized")]:Boolean(l.header)}],u={...Ka(i,c),columnsStyles:t,class:d,columns:e,headerIndex:o,style:r};return n.createVNode(e1e,u,b1e(l)?l:{default:()=>[l]})},zE=(e,{slots:t})=>{const{column:o,ns:r,style:a,onColumnSorted:i}=e,s=oa(a);if(o.placeholderSign===es)return n.createVNode("div",{class:r.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:l,headerClass:c,sortable:d}=o,u={...e,class:r.e("header-cell-text")},h=(OE(l)||t.default||(b=>n.createVNode(Jme,b,null)))(u),{sortBy:p,sortState:m,headerCellProps:g}=e;let y,w;if(m){const b=m[o.key];y=Boolean(O0[b]),w=y?b:Ji.ASC}else y=o.key===p.key,w=y?p.order:Ji.ASC;const $=[r.e("header-cell"),Ka(c,e,""),o.align===Qi.CENTER&&r.is("align-center"),o.align===Qi.RIGHT&&r.is("align-right"),d&&r.is("sortable")],C={...Ka(g,e),onClick:o.sortable?i:void 0,class:$,style:s,["data-key"]:o.key};return n.createVNode("div",C,[h,d&&n.createVNode(i1e,{class:[r.e("sort-icon"),y&&r.is("sorting")],sortOrder:w},null)])},HE=(e,{slots:t})=>n.createVNode("div",{class:e.class,style:e.style},[t.default?.()]);HE.displayName="BTableV2Footer";const WE=(e,{slots:t})=>n.createVNode("div",{class:e.class,style:e.style},[t.default?t.default():n.createVNode($1,null,null)]);WE.displayName="BTableV2Empty";const KE=(e,{slots:t})=>n.createVNode("div",{class:e.class,style:e.style},[t.default?.()]);KE.displayName="BTableV2Overlay";function W0(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const w1e="BTableV2";var jE=n.defineComponent({name:w1e,props:FE,setup(e,{slots:t,expose:o}){const r=G("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:l,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:u,rightTableWidth:f,data:h,depthMap:p,expandedRowKeys:m,hasFixedColumns:g,hoveringRowKey:y,mainTableRef:w,leftTableRef:$,rightTableRef:C,isDynamic:b,isResetting:k,isScrolling:S,bodyWidth:E,emptyStyle:N,rootStyle:_,headerWidth:T,footerHeight:P,showEmpty:x,scrollTo:v,scrollToLeft:O,scrollToTop:I,scrollToRow:F,getRowHeight:M,onColumnSorted:z,onRowHeightChange:B,onRowHovered:L,onRowExpanded:W,onRowsRendered:R,onScroll:H,onVerticalScroll:j}=qme(e);return o({scrollTo:v,scrollToLeft:O,scrollToTop:I,scrollToRow:F}),n.provide(I0,{ns:r,isResetting:k,hoveringRowKey:y,isScrolling:S}),()=>{const{cache:U,cellProps:re,estimatedRowHeight:J,expandColumnKey:Y,fixedData:q,headerHeight:te,headerClass:ue,headerProps:ge,headerCellProps:Ee,sortBy:Te,sortState:ye,rowHeight:oe,rowClass:se,rowEventHandlers:me,rowKey:ee,rowProps:le,scrollbarAlwaysOn:Ce,indentSize:X,iconSize:ie,useIsScrolling:we,vScrollbarSize:fe,width:$e}=e,ce=n.unref(h),ke={cache:U,class:r.e("main"),columns:n.unref(l),data:ce,fixedData:q,estimatedRowHeight:J,bodyWidth:n.unref(E),headerHeight:te,headerWidth:n.unref(T),height:n.unref(c),mainTableRef:w,rowKey:ee,rowHeight:oe,scrollbarAlwaysOn:Ce,scrollbarStartGap:2,scrollbarEndGap:fe,useIsScrolling:we,width:$e,getRowHeight:M,onRowsRendered:R,onScroll:H},Ae=n.unref(u),V=n.unref(d),Z={cache:U,class:r.e("left"),columns:n.unref(i),data:ce,estimatedRowHeight:J,leftTableRef:$,rowHeight:oe,bodyWidth:Ae,headerWidth:Ae,headerHeight:te,height:V,rowKey:ee,scrollbarAlwaysOn:Ce,scrollbarStartGap:2,scrollbarEndGap:fe,useIsScrolling:we,width:Ae,getRowHeight:M,onScroll:j},be=n.unref(f)+fe,Ze={cache:U,class:r.e("right"),columns:n.unref(s),data:ce,estimatedRowHeight:J,rightTableRef:C,rowHeight:oe,bodyWidth:be,headerWidth:be,headerHeight:te,height:V,rowKey:ee,scrollbarAlwaysOn:Ce,scrollbarStartGap:2,scrollbarEndGap:fe,width:be,style:`--${n.unref(r.namespace)}-table-scrollbar-size: ${fe}px`,useIsScrolling:we,getRowHeight:M,onScroll:j},en=n.unref(a),In={ns:r,depthMap:n.unref(p),columnsStyles:en,expandColumnKey:Y,expandedRowKeys:n.unref(m),estimatedRowHeight:J,hasFixedColumns:n.unref(g),hoveringRowKey:n.unref(y),rowProps:le,rowClass:se,rowKey:ee,rowEventHandlers:me,onRowHovered:L,onRowExpanded:W,onRowHeightChange:B},Dn={cellProps:re,expandColumnKey:Y,indentSize:X,iconSize:ie,rowKey:ee,expandedRowKeys:n.unref(m),ns:r},qo={ns:r,headerClass:ue,headerProps:ge,columnsStyles:en},Ya={ns:r,sortBy:Te,sortState:ye,headerCellProps:Ee,onColumnSorted:z},ln={row:Oe=>n.createVNode(y1e,n.mergeProps(Oe,In),{row:t.row,cell:Ue=>t.cell?n.createVNode(H0,n.mergeProps(Ue,Dn,{style:en[Ue.column.key]}),{default:()=>[t.cell]}):n.createVNode(H0,n.mergeProps(Ue,Dn,{style:en[Ue.column.key]}),null)}),header:Oe=>n.createVNode(C1e,n.mergeProps(Oe,qo),{header:t.header,cell:Ue=>t["header-cell"]?n.createVNode(zE,n.mergeProps(Ue,Ya,{style:en[Ue.column.key]}),{default:()=>[t["header-cell"]]}):n.createVNode(zE,n.mergeProps(Ue,Ya,{style:en[Ue.column.key]}),null)})},qa=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:n.unref(b)}],ae={class:r.e("footer"),style:n.unref(P)};return n.createVNode("div",{class:qa,style:n.unref(_),"data-test-name":"table-v2"},[n.createVNode(u1e,ke,W0(ln)?ln:{default:()=>[ln]}),n.createVNode(h1e,Z,W0(ln)?ln:{default:()=>[ln]}),n.createVNode(m1e,Ze,W0(ln)?ln:{default:()=>[ln]}),t.footer&&n.createVNode(HE,ae,{default:t.footer}),n.unref(x)&&n.createVNode(WE,{class:r.e("empty"),style:n.unref(N)},{default:t.empty}),t.overlay&&n.createVNode(KE,{class:r.e("overlay")},{default:t.overlay})])}}});const UE=ne({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:K(Function)}}),$1e=n.defineComponent({name:"BAutoResizer",props:UE,setup(e,{slots:t}){const o=G("auto-resizer"),{height:r,width:a,sizer:i}=Yme(e),s={width:"100%",height:"100%"};return()=>n.createVNode("div",{ref:i,class:o.b(),style:s},[t.default?.({height:r.value,width:a.value})])}}),GE=Ne(jE),YE=Ne($1e),qE=ne({tabs:{type:K(Array),default:()=>st([])}}),ZE="BTabBar",k1e=n.defineComponent({name:ZE}),S1e=n.defineComponent({...k1e,props:qE,setup(e,{expose:t}){const o=e,r=n.getCurrentInstance(),a=n.inject(Ls);a||vt(ZE,"<b-tabs><b-tab-bar /></b-tabs>");const i=G("tabs"),s=n.ref(),l=n.ref(),c=()=>{let u=0,f=0;const h=["top","bottom"].includes(a.props.tabPosition)?"width":"height",p=h==="width"?"x":"y";return o.tabs.every(m=>{const g=r.parent?.refs?.[`tab-${m.uid}`];if(!g)return!1;if(!m.active)return!0;f=g[`client${jn(h)}`];const y=p==="x"?"left":"top";u=g[`offset${jn(y)}`]-(g.parentElement?.[`offset${jn(y)}`]??0);const w=g.closest(".is-scrollable");if(w){const C=window.getComputedStyle(w);u+=Number.parseFloat(C[`padding${jn(y)}`])}const $=window.getComputedStyle(g);return h==="width"&&(o.tabs.length>1&&(f-=Number.parseFloat($.paddingLeft)+Number.parseFloat($.paddingRight)),u+=Number.parseFloat($.paddingLeft)),!1}),{[h]:`${f}px`,transform:`translate${jn(p)}(${u}px)`}},d=()=>l.value=c();return n.watch(()=>o.tabs,async()=>{await n.nextTick(),d()},{immediate:!0}),an(s,()=>d()),t({ref:s,update:d}),(u,f)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"barRef",ref:s,class:n.normalizeClass([n.unref(i).e("active-bar"),n.unref(i).is(n.unref(a).props.tabPosition)]),style:n.normalizeStyle(l.value),"data-test-name":"tab-bar","data-test-variant":"","data-test-state":""},null,6))}});var E1e=Q(S1e,[["__file","tab-bar.vue"]]);const XE=ne({panes:{type:K(Array),default:()=>st([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["separator","segment","large-segment",""],default:""},stretch:Boolean,center:Boolean}),JE={tabClick:(e,t,o)=>o instanceof Event,tabRemove:(e,t)=>t instanceof Event},QE="BTabNav",B1e=n.defineComponent({name:QE,props:XE,emits:JE,setup(e,{expose:t,emit:o}){const r=n.getCurrentInstance(),a=n.inject(Ls);a||vt(QE,"<b-tabs><tab-nav /></b-tabs>");const i=G("tabs"),s=YF(),l=az(),c=n.ref(),d=n.ref(),u=n.ref(),f=n.ref(!1),h=n.ref(0),p=n.ref(!1),m=n.ref(!0),g=n.computed(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=n.computed(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),w=()=>{if(!c.value)return;const N=c.value[`offset${jn(g.value)}`],_=h.value;if(!_)return;const T=_>N?_-N:0;h.value=T},$=()=>{if(!c.value||!d.value)return;const N=d.value[`offset${jn(g.value)}`],_=c.value[`offset${jn(g.value)}`],T=h.value;if(N-T<=_)return;const P=N-T>_*2?T+_:N-_;h.value=P},C=async()=>{const N=d.value;if(!f.value||!u.value||!c.value||!N)return;await n.nextTick();const _=u.value.querySelector(".is-active");if(!_)return;const T=c.value,P=["top","bottom"].includes(a.props.tabPosition),x=_.getBoundingClientRect(),v=T.getBoundingClientRect(),O=P?N.offsetWidth-v.width:N.offsetHeight-v.height,I=h.value;let F=I;P?(x.left<v.left&&(F=I-(v.left-x.left)),x.right>v.right&&(F=I+x.right-v.right)):(x.top<v.top&&(F=I-(v.top-x.top)),x.bottom>v.bottom&&(F=I+(x.bottom-v.bottom))),F=Math.max(F,0),h.value=Math.min(F,O)},b=()=>{if(!d.value||!c.value)return;const N=d.value[`offset${jn(g.value)}`],_=c.value[`offset${jn(g.value)}`],T=h.value;if(_<N){const P=h.value;f.value=f.value||{},f.value.prev=P,f.value.next=P+_<N,N-P<_&&(h.value=N-_)}else f.value=!1,T>0&&(h.value=0)},k=N=>{const _=N.code,{up:T,down:P,left:x,right:v}=de;if(![T,P,x,v].includes(_))return;const O=Array.from(N.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),I=O.indexOf(N.target);let F;_===x||_===T?I===0?F=O.length-1:F=I-1:I<O.length-1?F=I+1:F=0,O[F].focus({preventScroll:!0}),O[F].click(),S()},S=()=>{m.value&&(p.value=!0)},E=()=>p.value=!1;return n.watch(s,N=>{N==="hidden"?m.value=!1:N==="visible"&&setTimeout(()=>m.value=!0,50)}),n.watch(l,N=>{N?setTimeout(()=>m.value=!0,50):m.value=!1}),an(u,b),n.onMounted(()=>setTimeout(()=>C(),0)),n.onUpdated(()=>b()),t({scrollToActiveTab:C,removeFocus:E}),n.watch(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const N=f.value?[n.createVNode("span",{class:[i.e("nav-prev"),i.is("disabled",!f.value.prev)],onClick:w},[n.createVNode(pe,null,{default:()=>[n.createVNode(Os,null,null)]})]),n.createVNode("span",{class:[i.e("nav-next"),i.is("disabled",!f.value.next)],onClick:$},[n.createVNode(pe,null,{default:()=>[n.createVNode(Is,null,null)]})])]:null,_=e.panes.map((T,P)=>{const x=T.uid,v=T.props.disabled,O=T.props.name??T.index??`${P}`,I=!v&&(T.isClosable||e.editable);T.index=`${P}`;const F=I?n.createVNode(ve,{class:"is-icon-close",xxsmall:!0,ghost:!0,icon:Nn,onClick:B=>o("tabRemove",T,B)},null):null,M=T.slots.label?.()||T.props.label,z=!v&&T.active?0:-1;return n.createVNode("div",{ref:`tab-${x}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",T.active),i.is("disabled",v),i.is("closable",I),i.is("focus",p.value)],id:`tab-${O}`,key:`tab-${x}`,"aria-controls":`pane-${O}`,role:"tab","aria-selected":T.active,tabindex:z,onFocus:()=>S(),onBlur:()=>E(),onClick:B=>{E(),o("tabClick",T,O,B)},onKeydown:B=>{I&&(B.code===de.delete||B.code===de.backspace)&&o("tabRemove",T,B)}},[n.createVNode("div",{class:[i.e("item-inner")]},[M,F])])});return n.createVNode("div",{ref:u,class:[i.e("nav-wrap"),i.is("scrollable",!!f.value),i.is(a.props.tabPosition)],"data-test-name":"tab-nav"},[N,n.createVNode("div",{class:i.e("nav-scroll"),ref:c},[n.createVNode("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition)),i.is("center",e.center&&["top","bottom"].includes(a.props.tabPosition))],ref:d,style:y.value,role:"tablist",onKeydown:k},[e.type?null:n.createVNode(E1e,{tabs:[...e.panes]},null),_])])])}}}),N1e=e=>pi(e.subTree).filter(o=>n.isVNode(o)&&o.type?.name==="BTabPane"&&!!o.component),eB=(e,t)=>N1e(e).map(a=>a.component.uid).map(a=>t[a]).filter(a=>!!a),tB=ne({type:{type:String,values:["separator","segment","large-segment",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:K(Function),default:()=>!0},stretch:Boolean,paneless:Boolean,center:Boolean}),K0=e=>De(e)||Se(e),nB={[Pe]:e=>K0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>K0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>K0(e),tabAdd:()=>!0};var _1e=n.defineComponent({name:"BTabs",props:tB,emits:nB,setup(e,{emit:t,slots:o,expose:r}){const a=n.getCurrentInstance(),i=G("tabs"),s=n.ref(),l=n.shallowReactive({}),c=n.shallowRef([]),d=n.ref(e.modelValue??e.activeName??"0"),u=g=>{d.value=g,t(Pe,g),t("tabChange",g)},f=async g=>{if(!(d.value===g||Vt(g)))try{await e.beforeLeave?.(g,d.value)!==!1&&(u(g),s.value?.removeFocus?.())}catch{}},h=(g,y,w)=>{g.props.disabled||(f(y),t("tabClick",g,w))},p=(g,y)=>{g.props.disabled||Vt(g.props.name)||(y.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},m=()=>{t("edit",void 0,"add"),t("tabAdd")};n.watch(()=>e.activeName,g=>f(g)),n.watch(()=>e.modelValue,g=>f(g)),n.watch(d,async()=>{await n.nextTick(),s.value?.scrollToActiveTab()});{const g=w=>{l[w.uid]=w,c.value=eB(a,l)},y=w=>{delete l[w],c.value=eB(a,l)};n.provide(Ls,{props:e,currentName:d,registerPane:g,unregisterPane:y})}return r({currentName:d}),()=>{const g=e.editable||e.addable?n.createVNode("span",{class:i.e("new-tab"),tabindex:"0",onClick:m,onKeydown:$=>{$.code===de.enter&&m()}},[n.createVNode(ve,{class:i.is("icon-plus"),icon:yC,xsmall:!0,ghost:!0},null)]):null,y=n.createVNode("div",{class:[i.e("header"),i.is(e.tabPosition)]},[g,n.createVNode(B1e,{ref:s,currentName:d.value,editable:e.editable,type:e.type,panes:c.value,stretch:e.stretch,center:e.center,onTabClick:h,onTabRemove:p},null)]),w=n.createVNode("div",{class:i.e("content")},[n.renderSlot(o,"default")]);return n.createVNode("div",{class:[i.b(),i.m(e.tabPosition),i.is("paneless",e.paneless),{[i.m(e.type)]:e.type.length}],"data-test-name":"tabs"},[...e.tabPosition!=="bottom"?[y,w]:[w,y]])}}});const oB=ne({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),T1e=["id","aria-hidden","aria-labelledby"],rB="BTabPane",A1e=n.defineComponent({name:rB}),x1e=n.defineComponent({...A1e,props:oB,setup(e){const t=e,o=n.getCurrentInstance(),r=n.useSlots(),a=n.inject(Ls);a||vt(rB,"usage: <b-tabs><b-tab-pane /></b-tabs/>");const i=G("tab-pane"),s=n.ref(),l=n.computed(()=>t.closable||a.props.closable),c=tC(()=>a.currentName.value===(t.name??s.value)),d=n.ref(c.value),u=n.computed(()=>t.name??s.value),f=tC(()=>!t.lazy||d.value||c.value);n.watch(c,p=>{p&&(d.value=!0)});const h=n.reactive({uid:o.uid,slots:r,props:t,paneName:u,active:c,index:s,isClosable:l});return n.onMounted(()=>{a.registerPane(h)}),n.onUnmounted(()=>{a.unregisterPane(h.uid)}),(p,m)=>n.unref(f)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,id:`pane-${n.unref(u)}`,class:n.normalizeClass(n.unref(i).b()),role:"tabpanel","aria-hidden":!n.unref(c),"aria-labelledby":`tab-${n.unref(u)}`,"data-test-name":"tab-pane","data-test-variant":"","data-test-state":""},[n.renderSlot(p.$slots,"default")],10,T1e)),[[n.vShow,n.unref(c)]]):n.createCommentVNode("v-if",!0)}});var aB=Q(x1e,[["__file","tab-pane.vue"]]);const iB=Ne(_1e,{TabPane:aB}),sB=Ge(aB),M1e=ne({modelValue:{type:K(Array),default:[]},size:{type:String,values:ba,default:""},placeholder:{type:String,default:"Enter new item end with comma (,)"},validator:{type:K(Function),default:()=>!0},commitKey:{type:String,default:","},tabIndex:{type:Number,default:0},rounded:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}}),P1e={"update:modelValue":e=>Me(e),changed:e=>Me(e),error:e=>Ns(e)},v1e=["contenteditable","tabindex"],O1e=n.defineComponent({name:"BTagInput"}),I1e=n.defineComponent({...O1e,props:M1e,emits:P1e,setup(e,{emit:t}){const o=e,{formItem:r}=mo(),a=G("tag-input"),i=n.computed(()=>Boolean(r?.error)),s=n.ref(!1),l=n.computed(()=>[a.b(),a.is("rounded",o.rounded),a.is("focus",s.value),a.is("error",i.value)]),c=m=>{const g=m.target;g.innerText="",s.value=!0},d=m=>{t("update:modelValue",o.modelValue.filter(g=>g!==m)),t("changed",o.modelValue.filter(g=>g!==m))},u=m=>{const g=m.innerText;g.length&&o.validator(g)&&!o.modelValue.includes(g)?(t("update:modelValue",[...o.modelValue,g]),t("changed",[...o.modelValue,g]),t("error","none"),m.innerText=""):g.length===0?t("error","required"):o.validator(g)?o.modelValue.includes(g)&&t("error","duplicate"):t("error","validation")},f=m=>{const g=m.target;m.key===o.commitKey&&(m.preventDefault(),u(g))},h=m=>{const g=m.key;["Backspace","Delete"].includes(g)&&m.target.innerText.length===0&&(t("update:modelValue",o.modelValue.slice(0,-1)),t("changed",o.modelValue.slice(0,-1)))},p=m=>{const g=m.target;s.value=!1,u(m.target),g.innerText===""&&o.modelValue.length===0&&(g.innerText=o.placeholder)};return(m,g)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(l))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.modelValue,y=>(n.openBlock(),n.createBlock(n.unref(Ni),{key:y,closable:"","disable-transitions":!1,onClose:w=>d(y)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y),1)]),_:2},1032,["onClose"]))),128)),n.createElementVNode("div",{contenteditable:s.value,tabindex:m.tabIndex,class:n.normalizeClass([n.unref(a).e("textbox"),n.unref(a).is("focus",s.value)]),onKeydown:[f,g[0]||(g[0]=n.withKeys(n.withModifiers(()=>{},["prevent"]),["enter"]))],onKeyup:h,onBlur:p,onFocus:c},n.toDisplayString(m.modelValue.length===0&&!s.value?m.placeholder:""),43,v1e)],2))}});var D1e=Q(I1e,[["__file","tag-input.vue"]]);const R1e=Ne(D1e),L1e=ne({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:It,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:K([String,Object]),default:()=>bC},clearIcon:{type:K([String,Object]),default:()=>fi}}),Er=e=>{const t=(e||"").split(":");if(t.length>=2){let o=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&o===12?o=0:a.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:r}}return null},j0=(e,t)=>{const o=Er(e);if(!o)return-1;const r=Er(t);if(!r)return-1;const a=o.minutes+o.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},lB=e=>`${e}`.padStart(2,"0"),ts=e=>`${lB(e.hours)}:${lB(e.minutes)}`,V1e=(e,t)=>{const o=Er(e);if(!o)return"";const r=Er(t);if(!r)return"";const a={hours:o.hours,minutes:o.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,ts(a)},F1e=n.defineComponent({name:"BTimeSelect"}),z1e=n.defineComponent({...F1e,props:L1e,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const o=e;xe.extend(Ip);const{Option:r}=jo,a=G("input"),i=n.ref(),s=ho(),l=n.computed(()=>o.modelValue),c=n.computed(()=>{const y=Er(o.start);return y?ts(y):null}),d=n.computed(()=>{const y=Er(o.end);return y?ts(y):null}),u=n.computed(()=>{const y=Er(o.step);return y?ts(y):null}),f=n.computed(()=>{const y=Er(o.minTime||"");return y?ts(y):null}),h=n.computed(()=>{const y=Er(o.maxTime||"");return y?ts(y):null}),p=n.computed(()=>{const y=[];if(o.start&&o.end&&o.step){let w=c.value,$;for(;w&&d.value&&j0(w,d.value)<=0;)$=xe(w,"HH:mm").format(o.format),y.push({value:$,disabled:j0(w,f.value||"-1:-1")<=0||j0(w,h.value||"100:100")>=0}),w=V1e(w,u.value)}return y});return t({blur:()=>{i.value?.blur?.()},focus:()=>{i.value?.focus?.()}}),(y,w)=>(n.openBlock(),n.createBlock(n.unref(jo),{ref_key:"select",ref:i,"model-value":n.unref(l),disabled:n.unref(s),clearable:y.clearable,"clear-icon":y.clearIcon,size:y.size,effect:y.effect,placeholder:y.placeholder,"default-first-option":"","data-test-name":"time-select",filterable:y.editable,"onUpdate:modelValue":w[0]||(w[0]=$=>y.$emit("update:modelValue",$)),onChange:w[1]||(w[1]=$=>y.$emit("change",$)),onBlur:w[2]||(w[2]=$=>y.$emit("blur",$)),onFocus:w[3]||(w[3]=$=>y.$emit("focus",$))},{prefix:n.withCtx(()=>[y.prefixIcon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(a).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(y.prefixIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(p),$=>(n.openBlock(),n.createBlock(n.unref(r),{key:$.value,label:$.value,value:$.value,disabled:$.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Gu=Q(z1e,[["__file","time-select.vue"]]);Gu.install=e=>{e.component(Gu.name,Gu)};const cB=Gu;var H1e=n.defineComponent({name:"BTimeline",setup(e,{slots:t}){const o=G("timeline");return n.provide("timeline",t),()=>n.h("ul",{class:[o.b()],dataTestName:"timeline"},[n.renderSlot(t,"default")])}});const dB=ne({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Je},hollow:{type:Boolean,default:!1}}),W1e=n.defineComponent({name:"BTimelineItem"}),K1e=n.defineComponent({...W1e,props:dB,setup(e){const t=G("timeline-item");return(o,r)=>(n.openBlock(),n.createElementBlock("li",{class:n.normalizeClass([n.unref(t).b(),{[n.unref(t).e("center")]:o.center}])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(t).e("tail"))},null,2),o.$slots.dot?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(t).e("node"),n.unref(t).em("node",o.size||""),n.unref(t).em("node",o.type||""),n.unref(t).is("hollow",o.hollow)]),style:n.normalizeStyle({backgroundColor:o.color})},[o.icon?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass(n.unref(t).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.icon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],6)),o.$slots.dot?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(t).e("dot"))},[n.renderSlot(o.$slots,"dot")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(t).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(t).e("timestamp"),n.unref(t).is("top")])},n.toDisplayString(o.timestamp),3)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(t).e("content"))},[n.renderSlot(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(t).e("timestamp"),n.unref(t).is("bottom")])},n.toDisplayString(o.timestamp),3)):n.createCommentVNode("v-if",!0)],2)],2))}});var uB=Q(K1e,[["__file","timeline-item.vue"]]);const fB=Ne(H1e,{TimelineItem:uB}),hB=Ge(uB),pB=ne({nowrap:Boolean});var mB=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(mB||{});const j1e=Object.values(mB),U0=ne({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:K(Object),default:null}}),U1e=ne({side:{type:K(String),values:j1e,required:!0}}),G1e=["absolute","fixed"],Y1e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],G0=ne({ariaLabel:String,arrowPadding:{type:K(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:K(String),values:Y1e,default:"bottom"},reference:{type:K(Object),default:null},offset:{type:Number,default:8},strategy:{type:K(String),values:G1e,default:"absolute"},showArrow:{type:Boolean,default:!1}}),Y0=ne({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:K(Function)},"onUpdate:open":{type:K(Function)}}),ns={type:K(Function)},q0=ne({onBlur:ns,onClick:ns,onFocus:ns,onMouseDown:ns,onMouseEnter:ns,onMouseLeave:ns}),q1e=ne({...Y0,...U0,...q0,...G0,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:K(Object),default:null},teleported:Boolean,to:{type:K(String),default:"body"}}),Z1e=n.defineComponent({name:"BTooltipV2Root"}),X1e=n.defineComponent({...Z1e,props:Y0,setup(e,{expose:t}){const o=e,r=n.ref(o.defaultOpen),a=n.ref(null),i=n.computed({get:()=>mz(o.open)?r.value:o.open,set:y=>{r.value=y,o["onUpdate:open"]?.(y)}}),s=n.computed(()=>Se(o.delayDuration)&&o.delayDuration>0),{start:l,stop:c}=ga(()=>{i.value=!0},n.computed(()=>o.delayDuration),{immediate:!1}),d=G("tooltip-v2"),u=po(),f=()=>{c(),i.value=!0},h=()=>{n.unref(s)?l():f()},p=f,m=()=>{c(),i.value=!1},g=y=>{y&&(document.dispatchEvent(new CustomEvent(Yc)),p()),o.onOpenChange?.(y)};return n.watch(i,g),n.onMounted(()=>{document.addEventListener(Yc,m)}),n.onBeforeUnmount(()=>{c(),document.removeEventListener(Yc,m)}),n.provide(Fs,{contentId:u,triggerRef:a,ns:d,onClose:m,onDelayOpen:h,onOpen:p}),t({onOpen:p,onClose:m}),(y,w)=>n.renderSlot(y.$slots,"default",{open:n.unref(i)})}});var J1e=Q(X1e,[["__file","root.vue"]]);const Q1e=n.defineComponent({name:"BTooltipV2Arrow"}),e0e=n.defineComponent({...Q1e,props:{...U0,...U1e},setup(e){const t=e,{ns:o}=n.inject(Fs),{arrowRef:r}=n.inject(tp),a=n.computed(()=>{const{style:i,width:s,height:l}=t,c=o.namespace.value;return{[`--${c}-tooltip-v2-arrow-width`]:`${s}px`,[`--${c}-tooltip-v2-arrow-height`]:`${l}px`,[`--${c}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${c}-tooltip-v2-arrow-cover-width`]:s/2-1,...i||{}}});return(i,s)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:r,style:n.normalizeStyle(n.unref(a)),class:n.normalizeClass(n.unref(o).e("arrow"))},null,6))}});var gB=Q(e0e,[["__file","arrow.vue"]]);const t0e=ne({style:{type:K([String,Object,Array]),default:()=>({})}}),n0e=n.defineComponent({name:"BVisuallyHidden"}),o0e=n.defineComponent({...n0e,props:t0e,setup(e){const t=e,o=n.computed(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(n.openBlock(),n.createElementBlock("span",n.mergeProps(r.$attrs,{style:n.unref(o),"data-test-name":"visual-hidden","data-test-variant":"","data-test-state":""}),[n.renderSlot(r.$slots,"default")],16))}});var r0e=Q(o0e,[["__file","visual-hidden.vue"]]);const a0e=["data-side"],i0e=n.defineComponent({name:"BTooltipV2Content"}),s0e=n.defineComponent({...i0e,props:{...G0,...pB},setup(e){const t=e,{triggerRef:o,contentId:r}=n.inject(Fs),a=n.ref(t.placement),i=n.ref(t.strategy),s=n.ref(null),{referenceRef:l,contentRef:c,middlewareData:d,x:u,y:f,update:h}=S3({placement:a,strategy:i,middleware:n.computed(()=>{const C=[KU(t.offset)];return t.showArrow&&C.push(E3({arrowRef:s})),C})}),p=Do().nextZIndex(),m=G("tooltip-v2"),g=n.computed(()=>a.value.split("-")[0]),y=n.computed(()=>({position:n.unref(i),top:`${n.unref(f)||0}px`,left:`${n.unref(u)||0}px`,zIndex:p})),w=n.computed(()=>{if(!t.showArrow)return{};const{arrow:C}=n.unref(d);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${C?.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${C?.y}px`||""}}),$=n.computed(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(n.unref(i)),t.contentClass]);return n.watch(s,()=>h()),n.watch(()=>t.placement,C=>a.value=C),n.onMounted(()=>{n.watch(()=>t.reference||o.value,C=>{l.value=C||void 0},{immediate:!0})}),n.provide(tp,{arrowRef:s}),(C,b)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"contentRef",ref:c,style:n.normalizeStyle(n.unref(y)),"data-tooltip-v2-root":""},[C.nowrap?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:0,"data-side":n.unref(g),class:n.normalizeClass(n.unref($))},[n.renderSlot(C.$slots,"default",{contentStyle:n.unref(y),contentClass:n.unref($)}),n.createVNode(n.unref(r0e),{id:n.unref(r),role:"tooltip"},{default:n.withCtx(()=>[C.ariaLabel?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(C.ariaLabel),1)],64)):n.renderSlot(C.$slots,"default",{key:1})]),_:3},8,["id"]),n.renderSlot(C.$slots,"arrow",{style:n.normalizeStyle(n.unref(w)),side:n.unref(g)})],10,a0e))],4))}});var yB=Q(s0e,[["__file","content.vue"]]);const l0e=ne({setRef:{type:K(Function),required:!0},onlyChild:Boolean});var c0e=n.defineComponent({props:l0e,setup(e,{slots:t}){const o=n.ref(),r=Wc(o,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{const[a]=t.default?.()||[],i=e.onlyChild?Jj(a.children):a.children;return n.createVNode(n.Fragment,{ref:r},[i])}}});const d0e=n.defineComponent({name:"BTooltipV2Trigger"}),u0e=n.defineComponent({...d0e,props:{...pB,...q0},setup(e){const t=e,{onClose:o,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:s}=n.inject(Fs);let l=!1;const c=$=>{i.value=$},d=()=>{l=!1},u=pt(t.onMouseEnter,a),f=pt(t.onMouseLeave,o),h=pt(t.onMouseDown,()=>{o(),l=!0,document.addEventListener("mouseup",d,{once:!0})}),p=pt(t.onFocus,()=>{l||r()}),m=pt(t.onBlur,o),g=pt(t.onClick,$=>{$.detail===0&&o()}),y={blur:m,click:g,focus:p,mousedown:h,mouseenter:u,mouseleave:f},w=($,C,b)=>{$&&Object.entries(C).forEach(([k,S])=>{$[b](k,S)})};return n.watch(i,($,C)=>{w($,y,"addEventListener"),w(C,y,"removeEventListener"),$&&$.setAttribute("aria-describedby",s.value)}),n.onBeforeUnmount(()=>{w(i.value,y,"removeEventListener"),document.removeEventListener("mouseup",d)}),($,C)=>$.nowrap?(n.openBlock(),n.createBlock(n.unref(c0e),{key:0,"set-ref":c,"only-child":""},{default:n.withCtx(()=>[n.renderSlot($.$slots,"default")]),_:3})):(n.openBlock(),n.createElementBlock("button",n.mergeProps({key:1,ref_key:"triggerRef",ref:i},$.$attrs),[n.renderSlot($.$slots,"default")],16))}});var f0e=Q(u0e,[["__file","trigger.vue"]]);const h0e=n.defineComponent({name:"BTooltipV2"}),p0e=n.defineComponent({...h0e,props:q1e,setup(e){const t=e,o=Ms(),r=n.toRefs(t),a=n.reactive(Po(r,Object.keys(U0))),i=n.reactive(Po(r,Object.keys(G0))),s=n.reactive(Po(r,Object.keys(Y0))),l=n.reactive(Po(r,Object.keys(q0)));return(c,d)=>(n.openBlock(),n.createBlock(J1e,n.mergeProps(s,{"data-test-name":"tooltip-v2","data-test-variant":"","data-test-state":""}),{default:n.withCtx(({open:u})=>[n.createVNode(f0e,n.mergeProps(l,{nowrap:""}),{default:n.withCtx(()=>[n.renderSlot(c.$slots,"trigger")]),_:3},16),n.unref(o)?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:c.to,disabled:!c.teleported},[c.fullTransition?(n.openBlock(),n.createBlock(n.Transition,n.normalizeProps(n.mergeProps({key:0},c.transitionProps)),{default:n.withCtx(()=>[c.alwaysOn||u?(n.openBlock(),n.createBlock(yB,n.normalizeProps(n.mergeProps({key:0},i)),{arrow:n.withCtx(({style:f,side:h})=>[c.showArrow?(n.openBlock(),n.createBlock(gB,n.mergeProps({key:0},a,{style:f,side:h}),null,16,["style","side"])):n.createCommentVNode("v-if",!0)]),default:n.withCtx(()=>[n.renderSlot(c.$slots,"default")]),_:3},16)):n.createCommentVNode("v-if",!0)]),_:2},1040)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.alwaysOn||u?(n.openBlock(),n.createBlock(yB,n.normalizeProps(n.mergeProps({key:0},i)),{arrow:n.withCtx(({style:f,side:h})=>[c.showArrow?(n.openBlock(),n.createBlock(gB,n.mergeProps({key:0},a,{style:f,side:h}),null,16,["style","side"])):n.createCommentVNode("v-if",!0)]),default:n.withCtx(()=>[n.renderSlot(c.$slots,"default")]),_:3},16)):n.createCommentVNode("v-if",!0)],64))],8,["to","disabled"])):n.createCommentVNode("v-if",!0)]),_:3},16))}});var m0e=Q(p0e,[["__file","tooltip.vue"]]);const g0e=Ne(m0e),Z0="left-check-change",X0="right-check-change",Ua=ne({data:{type:K(Array),default:()=>[]},titles:{type:K(Array),default:()=>[]},buttonTexts:{type:K(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:K(Function)},leftDefaultChecked:{type:K(Array),default:()=>[]},rightDefaultChecked:{type:K(Array),default:()=>[]},renderContent:{type:K(Function)},modelValue:{type:K(Array),default:()=>[]},format:{type:K(Object),default:()=>({})},filterable:Boolean,props:{type:K(Object),default:()=>st({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0},panelWidth:{type:Number,default:240},panelHeight:{type:Number,default:360}}),Yu=(e,t)=>[e,t].every(Me)||Me(e)&&xt(t),bB={[ct]:(e,t,o)=>[e,o].every(Me)&&["left","right"].includes(t),[Pe]:e=>Me(e),[Z0]:Yu,[X0]:Yu},J0="checked-change",y0e=ne({data:Ua.data,optionRender:{type:K(Function)},placeholder:String,title:String,filterable:Boolean,format:Ua.format,filterMethod:Ua.filterMethod,defaultChecked:Ua.leftDefaultChecked,props:Ua.props,width:{type:Number,default:240},height:{type:Number,default:360}}),b0e={[J0]:Yu},ql=e=>{const t={label:"label",key:"key",disabled:"disabled"};return n.computed(()=>({...t,...e.props}))},C0e=(e,t,o)=>{const r=ql(e),a=n.computed(()=>e.data.filter(u=>nt(e.filterMethod)?e.filterMethod(t.query,u):String(u[r.value.label]||u[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=n.computed(()=>a.value.filter(u=>!u[r.value.disabled])),s=n.computed(()=>{const u=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:p}=e.format;return h&&p?u>0?p.replace(/\${checked}/g,u.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${u}/${f}`}),l=n.computed(()=>{const u=t.checked.length;return u>0&&u<i.value.length}),c=()=>{const u=i.value.map(f=>f[r.value.key]);t.allChecked=u.length>0&&u.every(f=>t.checked.includes(f))},d=u=>{t.checked=u?i.value.map(f=>f[r.value.key]):[]};return n.watch(()=>t.checked,(u,f)=>{if(c(),t.checkChangeByUser){const h=u.concat(f).filter(p=>!u.includes(p)||!f.includes(p));o(J0,u,h)}else o(J0,u),t.checkChangeByUser=!0}),n.watch(i,()=>{c()}),n.watch(()=>e.data,()=>{const u=[],f=a.value.map(h=>h[r.value.key]);t.checked.forEach(h=>{f.includes(h)&&u.push(h)}),t.checkChangeByUser=!1,t.checked=u}),n.watch(()=>e.defaultChecked,(u,f)=>{if(f&&u.length===f.length&&u.every(m=>f.includes(m)))return;const h=[],p=i.value.map(m=>m[r.value.key]);u.forEach(m=>{p.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:s,isIndeterminate:l,updateAllChecked:c,handleAllCheckedChange:d}},w0e=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(Z0,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(X0,a,i)}}),$0e=e=>{const t=ql(e),o=n.computed(()=>e.data.reduce((i,s)=>(i[s[t.value.key]]=s)&&i,{})),r=n.computed(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=n.computed(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,s)=>{const l=o.value[s];return l&&i.push(l),i},[]));return{sourceData:r,targetData:a}},k0e=(e,t,o)=>{const r=ql(e),a=(l,c,d)=>{o(Pe,l),o(ct,l,c,d)};return{addToLeft:()=>{const l=e.modelValue.slice();t.rightChecked.forEach(c=>{const d=l.indexOf(c);d>-1&&l.splice(d,1)}),a(l,"left",t.rightChecked)},addToRight:()=>{let l=e.modelValue.slice();const c=e.data.filter(d=>{const u=d[r.value.key];return t.leftChecked.includes(u)&&!e.modelValue.includes(u)}).map(d=>d[r.value.key]);l=e.targetOrder==="unshift"?c.concat(l):l.concat(c),e.targetOrder==="original"&&(l=e.data.filter(d=>l.includes(d[r.value.key])).map(d=>d[r.value.key])),a(l,"right",t.leftChecked)}}},S0e=n.defineComponent({name:"BTransferPanel"}),E0e=n.defineComponent({...S0e,props:y0e,emits:b0e,setup(e,{expose:t,emit:o}){const r=e,a=n.useSlots(),i=({option:k})=>k,{t:s}=He(),l=G("transfer"),c=n.reactive({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),d=ql(r),{filteredData:u,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:p}=C0e(r,c,o),m=n.computed(()=>!Kn(c.query)&&Kn(u.value)),g=n.computed(()=>!Kn(a.default()[0].children)),{checked:y,allChecked:w,query:$,inputHover:C}=n.toRefs(c),b=n.computed(()=>({width:`${r.width}px`,height:`${r.height}px`}));return t({query:$}),(k,S)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(l).b("panel")),style:n.normalizeStyle(n.unref(b)),"data-test-name":"transfer-panel","data-test-variant":"","data-test-state":""},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(l).be("panel","header"))},[n.createVNode(n.unref(xn),{modelValue:n.unref(w),"onUpdate:modelValue":S[0]||(S[0]=E=>n.isRef(w)?w.value=E:null),plain:"",indeterminate:n.unref(h),onChange:n.unref(p)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(k.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createElementVNode("span",null,n.toDisplayString(n.unref(f)),1)],2),k.filterable?(n.openBlock(),n.createBlock(n.unref(hn),{key:0,modelValue:n.unref($),"onUpdate:modelValue":S[1]||(S[1]=E=>n.isRef($)?$.value=E:null),class:n.normalizeClass(n.unref(l).be("panel","filter")),placeholder:k.placeholder,"prefix-icon":n.unref(RK),clearable:"",onMouseenter:S[2]||(S[2]=E=>C.value=!0),onMouseleave:S[3]||(S[3]=E=>C.value=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass([n.unref(l).be("panel","body")])},[n.createElementVNode("div",{class:n.normalizeClass([n.unref(l).be("panel","body-inner")])},[n.withDirectives(n.createVNode(n.unref(nm),{modelValue:n.unref(y),"onUpdate:modelValue":S[4]||(S[4]=E=>n.isRef(y)?y.value=E:null),vertical:"",class:n.normalizeClass([n.unref(l).is("filterable",k.filterable),n.unref(l).be("panel","list")])},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),E=>(n.openBlock(),n.createBlock(n.unref(xn),{key:E[n.unref(d).key],class:n.normalizeClass(n.unref(l).be("panel","item")),value:E[n.unref(d).key],disabled:E[n.unref(d).disabled],plain:""},{default:n.withCtx(()=>[n.createVNode(i,{option:k.optionRender?.(E)},null,8,["option"])]),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[n.vShow,!n.unref(m)&&!n.unref(Kn)(k.data)]]),n.withDirectives(n.createElementVNode("p",{class:n.normalizeClass(n.unref(l).be("panel","empty"))},n.toDisplayString(n.unref(m)?n.unref(s)("b.transfer.noMatch"):n.unref(s)("b.transfer.noData")),3),[[n.vShow,n.unref(m)||n.unref(Kn)(k.data)]])],2)],2),n.unref(g)?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(l).be("panel","footer"))},[n.renderSlot(k.$slots,"default")],2)):n.createCommentVNode("v-if",!0)],6))}});var CB=Q(E0e,[["__file","transfer-panel.vue"]]);const B0e=n.defineComponent({name:"BTransfer"}),N0e=n.defineComponent({...B0e,props:Ua,emits:bB,setup(e,{expose:t,emit:o}){const r=e,a=n.useSlots(),i=n.computed(()=>r.panelWidth),s=n.computed(()=>r.panelHeight),{t:l}=He(),c=G("transfer"),d=n.reactive({leftChecked:[],rightChecked:[]}),u=ql(r),{sourceData:f,targetData:h}=$0e(r),{onSourceCheckedChange:p,onTargetCheckedChange:m}=w0e(d,o),{addToLeft:g,addToRight:y}=k0e(r,d,o),w=n.ref(),$=n.ref(),C=N=>{switch(N){case"left":w.value.query="";break;case"right":$.value.query="";break}},b=n.computed(()=>r.titles[0]||l("b.transfer.titles.0")),k=n.computed(()=>r.titles[1]||l("b.transfer.titles.1")),S=n.computed(()=>r.filterPlaceholder||l("b.transfer.filterPlaceholder")),E=n.computed(()=>N=>r.renderContent?r.renderContent(n.h,N):a.default?a.default({option:N}):n.h("span",N[u.value.label]||N[u.value.key]));return t({clearQuery:C,leftPanel:w,rightPanel:$}),(N,_)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(c).b()),"data-test-name":"transfer","data-test-variant":"","data-test-state":""},[n.createVNode(CB,{ref_key:"leftPanel",ref:w,data:n.unref(f),"option-render":n.unref(E),placeholder:n.unref(S),title:n.unref(b),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:r,width:n.unref(i),height:n.unref(s),onCheckedChange:n.unref(p)},{default:n.withCtx(()=>[n.renderSlot(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","width","height","onCheckedChange"]),n.createElementVNode("div",{class:n.normalizeClass(n.unref(c).e("buttons"))},[n.createVNode(n.unref(ve),{small:"",icon:n.unref(co),disabled:n.unref(Kn)(d.rightChecked),onClick:n.unref(g)},null,8,["icon","disabled","onClick"]),n.createVNode(n.unref(ve),{small:"",icon:n.unref(Un),disabled:n.unref(Kn)(d.leftChecked),onClick:n.unref(y)},null,8,["icon","disabled","onClick"])],2),n.createVNode(CB,{ref_key:"rightPanel",ref:$,data:n.unref(h),"option-render":n.unref(E),placeholder:n.unref(S),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:n.unref(k),"default-checked":N.rightDefaultChecked,props:r,width:n.unref(i),height:n.unref(s),onCheckedChange:n.unref(m)},{default:n.withCtx(()=>[n.renderSlot(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","width","height","onCheckedChange"])],2))}});var _0e=Q(N0e,[["__file","transfer.vue"]]);const wB=Ne(_0e),os="$treeNodeId",$B=function(e,t){!t||t[os]||Object.defineProperty(t,os,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Q0=function(e,t){return e?t[e]:t[os]},eg=(e,t,o)=>{const r=e.value.currentNode;o();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},tg=e=>{let t=!0,o=!0,r=!0;for(let a=0,i=e.length;a<i;a++){const s=e[a];(s.checked!==!0||s.indeterminate)&&(t=!1,s.disabled||(r=!1)),(s.checked!==!1||s.indeterminate)&&(o=!1)}return{all:t,none:o,allWithoutDisable:r,half:!t&&!o}},qu=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:o,half:r}=tg(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):o&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||qu(a)},Zu=function(e,t){const o=e.store.props,r=e.data||{},a=o[t];if(typeof a=="function")return a(r,e);if(typeof a=="string")return r[a];if(typeof a>"u"){const i=r[t];return i===void 0?"":i}};let T0e=0;class Zl{constructor(t){this.id=T0e++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const o in t)Kt(t,o)&&(this[o]=t[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const o=t.props;if(o&&typeof o.isLeaf<"u"){const i=Zu(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||$B(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||$B(this,t),this.data=t,this.childNodes=[];let o;this.level===0&&Array.isArray(this.data)?o=this.data:o=Zu(this,"children")||[];for(let r=0,a=o.length;r<a;r++)this.insertChild({data:o[r]})}get label(){return Zu(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Zu(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return t.childNodes[o+1]}return null}get previousSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return o>0?t.childNodes[o-1]:null}return null}contains(t,o=!0){return(this.childNodes||[]).some(r=>r===t||o&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,o,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Zl)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof o>"u"||o<0?a.push(t.data):a.splice(o,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=n.reactive(new Zl(t)),t instanceof Zl&&t.initialize()}t.level=this.level+1,typeof o>"u"||o<0?this.childNodes.push(t):this.childNodes.splice(o,0,t),this.updateLeafState()}insertBefore(t,o){let r;o&&(r=this.childNodes.indexOf(o)),this.insertChild(t,r)}insertAfter(t,o){let r;o&&(r=this.childNodes.indexOf(o),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const o=this.getChildren()||[],r=o.indexOf(t.data);r>-1&&o.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let o=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){o=this.childNodes[r];break}o&&this.removeChild(o)}expand(t,o){const r=()=>{if(o){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||qu(this),r())}):r()}doCreateChildren(t,o={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},o),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,o,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:l}=tg(this.childNodes);!this.isLeaf&&!s&&l&&(this.checked=!1,t=!1);const c=()=>{if(o){const d=this.childNodes;for(let h=0,p=d.length;h<p;h++){const m=d[h];a=a||t!==!1;const g=m.disabled?m.checked:a;m.setChecked(g,o,!0,a)}const{half:u,all:f}=tg(d);f||(this.checked=f,this.indeterminate=u)}};if(this.shouldLoadData()){this.loadData(()=>{c(),qu(this)},{checked:t!==!1});return}else c()}const i=this.parent;!i||i.level===0||r||qu(i)}getChildren(t=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),o[a]===void 0&&(o[a]=null),t&&!o[a]&&(o[a]=[]),o[a]}updateChildren(){const t=this.getChildren()||[],o=this.childNodes.map(i=>i.data),r={},a=[];t.forEach((i,s)=>{const l=i[os];!!l&&o.findIndex(d=>d[os]===l)>=0?r[l]={index:s,data:i}:a.push({index:s,data:i})}),this.store.lazy||o.forEach(i=>{r[i[os]]||this.removeChildByData(i)}),a.forEach(({index:i,data:s})=>{this.insertChild({data:s},i)}),this.updateLeafState()}loadData(t,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const r=a=>{this.childNodes=[],this.doCreateChildren(a,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,r)}else t&&t.call(this)}}var ng=Zl;class A0e{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const o in t)Kt(t,o)&&(this[o]=t[o]);this.nodesMap={}}initialize(){if(this.root=new ng({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const o=this.filterNodeMethod,r=this.lazy,a=function(i){const s=i.root?i.root.childNodes:i.childNodes;if(s.forEach(l=>{l.visible=o.call(l,t,l.data,l),a(l)}),!i.visible&&s.length){let l=!0;l=!s.some(c=>c.visible),i.root?i.root.visible=l===!1:i.visible=l===!1}!t||i.visible&&!i.isLeaf&&!r&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof ng)return t;const o=it(t)?Q0(this.key,t):t;return this.nodesMap[o]||null}insertBefore(t,o){const r=this.getNode(o);r.parent.insertBefore({data:t},r)}insertAfter(t,o){const r=this.getNode(o);r.parent.insertAfter({data:t},r)}remove(t){const o=this.getNode(t);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(t,o){const r=o?this.getNode(o):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],o=this.nodesMap;t.forEach(r=>{const a=o[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const o=this.key;!t||!t.data||(o?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,o=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(l=>{(l.checked||o&&l.indeterminate)&&(!t||t&&l.isLeaf)&&r.push(l.data),a(l)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const t=[],o=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),o(i)})};return o(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],o=this.nodesMap;for(const r in o)Kt(o,r)&&t.push(o[r]);return t}updateChildren(t,o){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const s=a[i];this.remove(s.data)}for(let i=0,s=o.length;i<s;i++){const l=o[i];this.append(l,r.data)}}_setCheckedKeys(t,o=!1,r){const a=this._getAllNodes().sort((l,c)=>c.level-l.level),i=Object.create(null),s=Object.keys(r);a.forEach(l=>l.setChecked(!1,!1));for(let l=0,c=a.length;l<c;l++){const d=a[l],u=d.data[t].toString();if(!s.includes(u)){d.checked&&!i[u]&&d.setChecked(!1,!1);continue}let h=d.parent;for(;h&&h.level>0;)i[h.data[t]]=!0,h=h.parent;if(d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),o){d.setChecked(!1,!1);const p=function(m){m.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),p(y)})};p(d)}}}setCheckedNodes(t,o=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,o,a)}setCheckedKeys(t,o=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,o,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(o=>{const r=this.getNode(o);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,o,r){const a=this.getNode(t);a&&a.setChecked(!!o,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,o=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,o=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const x0e=n.defineComponent({name:"BTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=G("tree"),o=n.inject("NodeInstance"),r=n.inject("RootTree");return()=>{const a=e.node,{data:i,store:s}=a;return e.renderContent?e.renderContent(n.h,{_self:o,node:a,data:i,store:s}):n.h("span",{class:t.be("node","label")},[r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):a.label])}}});var M0e=Q(x0e,[["__file","tree-node-content.vue"]]);function kB(e){const t=n.inject("TreeNodeMap",null),o={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(o),n.provide("TreeNodeMap",o),{broadcastExpanded:r=>{if(!!e.accordion)for(const a of o.children)a.treeNodeExpand(r)}}}const SB=Symbol("dragEvents");function P0e({props:e,ctx:t,el$:o,dropIndicator$:r,store:a}){const i=G("tree"),s=n.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),l=({event:u,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return u.preventDefault(),!1;u.dataTransfer.effectAllowed="move";try{u.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,u)},c=({event:u,treeNode:f})=>{const h=f,p=s.value.dropNode;p&&p!==h&&fn(p.$el,i.is("drop-inner"));const m=s.value.draggingNode;if(!m||!h)return;let g=!0,y=!0,w=!0,$=!0;typeof e.allowDrop=="function"&&(g=e.allowDrop(m.node,h.node,"prev"),$=y=e.allowDrop(m.node,h.node,"inner"),w=e.allowDrop(m.node,h.node,"next")),u.dataTransfer.dropEffect=y||g||w?"move":"none",(g||y||w)&&p!==h&&(p&&t.emit("node-drag-leave",m.node,p.node,u),t.emit("node-drag-enter",m.node,h.node,u)),(g||y||w)&&(s.value.dropNode=h),h.node.nextSibling===m.node&&(w=!1),h.node.previousSibling===m.node&&(g=!1),h.node.contains(m.node,!1)&&(y=!1),(m.node===h.node||m.node.contains(h.node))&&(g=!1,y=!1,w=!1);const C=h.$el.getBoundingClientRect(),b=o.value.getBoundingClientRect();let k;const S=g?y?.25:w?.45:1:-1,E=w?y?.75:g?.55:0:1;let N=-9999;const _=u.clientY-C.top;_<C.height*S?k="before":_>C.height*E?k="after":y?k="inner":k="none";const T=h.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),P=r.value;k==="before"?N=T.top-b.top:k==="after"&&(N=T.bottom-b.top),P.style.top=`${N}px`,P.style.left=`${T.right-b.left}px`,k==="inner"?Oo(h.$el,i.is("drop-inner")):fn(h.$el,i.is("drop-inner")),s.value.showDropIndicator=k==="before"||k==="after",s.value.allowDrop=s.value.showDropIndicator||$,s.value.dropType=k,t.emit("node-drag-over",m.node,h.node,u)},d=u=>{const{draggingNode:f,dropType:h,dropNode:p}=s.value;if(u.preventDefault(),u.dataTransfer.dropEffect="move",f&&p){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?p.node.parent.insertBefore(m,p.node):h==="after"?p.node.parent.insertAfter(m,p.node):h==="inner"&&p.node.insertChild(m),h!=="none"&&a.value.registerNode(m),fn(p.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,p.node,h,u),h!=="none"&&t.emit("node-drop",f.node,p.node,h,u)}f&&!p&&t.emit("node-drag-end",f.node,null,h,u),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0};return n.provide(SB,{treeNodeDragStart:l,treeNodeDragOver:c,treeNodeDragEnd:d}),{dragState:s}}const v0e=n.defineComponent({name:"BTreeNode",components:{BCollapseTransition:fu,BCheckbox:xn,NodeContent:M0e,BIcon:pe,Loading:Or},props:{node:{type:ng,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const o=G("tree"),{broadcastExpanded:r}=kB(e),a=n.inject("RootTree"),i=n.ref(!1),s=n.ref(!1),l=n.ref(null),c=n.ref(null),d=n.ref(null),u=n.inject(SB),f=n.getCurrentInstance();n.provide("NodeInstance",f),e.node.expanded&&(i.value=!0,s.value=!0);const h=a.props.children||"children";n.watch(()=>{const _=e.node.data[h];return _&&[..._]},()=>{e.node.updateChildren()}),n.watch(()=>e.node.indeterminate,_=>{g(e.node.checked,_)}),n.watch(()=>e.node.checked,_=>{g(_,e.node.indeterminate)}),n.watch(()=>e.node.expanded,_=>{n.nextTick(()=>i.value=_),_&&(s.value=!0)});const p=_=>Q0(a.props.nodeKey,_.data),m=_=>{const T=e.props.class;if(!T)return{};let P;if(nt(T)){const{data:x}=_;P=T(x,_)}else P=T;return De(P)?{[P]:!0}:P},g=(_,T)=>{(l.value!==_||c.value!==T)&&a.ctx.emit("check-change",e.node.data,_,T),l.value=_,c.value=T},y=_=>{eg(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&$(),a.props.checkOnClickNode&&!e.node.disabled&&C(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,_)},w=_=>{a.instance.vnode.props.onNodeContextmenu&&(_.stopPropagation(),_.preventDefault()),a.ctx.emit("node-contextmenu",_,e.node.data,e.node,f)},$=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},C=(_,T)=>{e.node.setChecked(T.target.checked,!a.props.checkStrictly),n.nextTick(()=>{const P=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:P.getCheckedNodes(),checkedKeys:P.getCheckedKeys(),halfCheckedNodes:P.getHalfCheckedNodes(),halfCheckedKeys:P.getHalfCheckedKeys()})})};return{ns:o,node$:d,tree:a,expanded:i,childNodeRendered:s,oldChecked:l,oldIndeterminate:c,getNodeKey:p,getNodeClass:m,handleSelectChange:g,handleClick:y,handleContextMenu:w,handleExpandIconClick:$,handleCheckChange:C,handleChildNodeExpand:(_,T,P)=>{r(T),a.ctx.emit("node-expand",_,T,P)},handleDragStart:_=>{!a.props.draggable||u.treeNodeDragStart({event:_,treeNode:e})},handleDragOver:_=>{_.preventDefault(),a.props.draggable&&u.treeNodeDragOver({event:_,treeNode:{$el:d.value,node:e.node}})},handleDrop:_=>{_.preventDefault()},handleDragEnd:_=>{!a.props.draggable||u.treeNodeDragEnd(_)},ActionRight:ui}}}),O0e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],I0e=["aria-expanded"];function D0e(e,t,o,r,a,i){const s=n.resolveComponent("b-icon"),l=n.resolveComponent("b-checkbox"),c=n.resolveComponent("loading"),d=n.resolveComponent("node-content"),u=n.resolveComponent("b-tree-node"),f=n.resolveComponent("b-collapse-transition");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"node$",class:n.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),"data-test-name":"tree-node","data-test-variant":"","data-test-state":"",onClick:t[1]||(t[1]=n.withModifiers((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=n.withModifiers((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=n.withModifiers((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=n.withModifiers((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=n.withModifiers((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.be("node","content")),style:n.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.ActionRight?(n.openBlock(),n.createBlock(s,{key:0,class:n.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:n.withModifiers(e.handleExpandIconClick,["stop"])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tree.props.icon||e.ActionRight)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.showCheckbox?(n.openBlock(),n.createBlock(l,{key:1,plain:"","model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):n.createCommentVNode("v-if",!0),e.node.loading?(n.openBlock(),n.createBlock(s,{key:2,class:n.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:n.withCtx(()=>[n.createVNode(c)]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.createVNode(d,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),n.createVNode(f,null,{default:n.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.node.childNodes,h=>(n.openBlock(),n.createBlock(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,I0e)),[[n.vShow,e.expanded]]):n.createCommentVNode("v-if",!0)]),_:1})],42,O0e)),[[n.vShow,e.node.visible]])}var R0e=Q(v0e,[["render",D0e],["__file","tree-node.vue"]]);function L0e({el$:e},t){const o=G("tree"),r=n.shallowRef([]),a=n.shallowRef([]);n.onMounted(()=>{s()}),n.onUpdated(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),n.watch(a,l=>{l.forEach(c=>{c.setAttribute("tabindex","-1")})}),Xe(e,"keydown",l=>{const c=l.target;if(!c.className.includes(o.b("node")))return;const d=l.code;r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));const u=r.value.indexOf(c);let f;if([de.up,de.down].includes(d)){if(l.preventDefault(),d===de.up){f=u===-1?0:u!==0?u-1:r.value.length-1;const p=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=u===-1?0:u<r.value.length-1?u+1:0;const p=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[de.left,de.right].includes(d)&&(l.preventDefault(),c.click());const h=c.querySelector('[type="checkbox"]');[de.enter,de.space].includes(d)&&h&&(l.preventDefault(),h.click())});const s=()=>{r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}r.value[0]?.setAttribute("tabindex","0")}}const V0e=n.defineComponent({name:"BTree",components:{BTreeNode:R0e},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Je}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:o}=He(),r=G("tree"),a=n.ref(new A0e({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=n.ref(a.value.root),s=n.ref(null),l=n.ref(null),c=n.ref(null),{broadcastExpanded:d}=kB(e),{dragState:u}=P0e({props:e,ctx:t,el$:l,dropIndicator$:c,store:a});L0e({el$:l},a);const f=n.computed(()=>{const{childNodes:M}=i.value;return!M||M.length===0||M.every(({visible:z})=>!z)});n.watch(()=>e.currentNodeKey,M=>{a.value.setCurrentNodeKey(M)}),n.watch(()=>e.defaultCheckedKeys,M=>{a.value.setDefaultCheckedKey(M)}),n.watch(()=>e.defaultExpandedKeys,M=>{a.value.setDefaultExpandedKeys(M)}),n.watch(()=>e.data,M=>{a.value.setData(M)},{deep:!0}),n.watch(()=>e.checkStrictly,M=>{a.value.checkStrictly=M});const h=M=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(M)},p=M=>Q0(e.nodeKey,M.data),m=M=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=a.value.getNode(M);if(!z)return[];const B=[z.data];let L=z.parent;for(;L&&L!==i.value;)B.push(L.data),L=L.parent;return B.reverse()},g=(M,z)=>a.value.getCheckedNodes(M,z),y=M=>a.value.getCheckedKeys(M),w=()=>{const M=a.value.getCurrentNode();return M?M.data:null},$=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const M=w();return M?M[e.nodeKey]:null},C=(M,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(M,z)},b=(M,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(M,z)},k=(M,z,B)=>{a.value.setChecked(M,z,B)},S=()=>a.value.getHalfCheckedNodes(),E=()=>a.value.getHalfCheckedKeys(),N=(M,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");eg(a,t.emit,()=>a.value.setUserCurrentNode(M,z))},_=(M,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");eg(a,t.emit,()=>a.value.setCurrentNodeKey(M,z))},T=M=>a.value.getNode(M),P=M=>{a.value.remove(M)},x=(M,z)=>{a.value.append(M,z)},v=(M,z)=>{a.value.insertBefore(M,z)},O=(M,z)=>{a.value.insertAfter(M,z)},I=(M,z,B)=>{d(z),t.emit("node-expand",M,z,B)},F=(M,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(M,z)};return n.provide("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:s,instance:n.getCurrentInstance()}),n.provide(Ir,void 0),{ns:r,store:a,root:i,currentNode:s,dragState:u,el$:l,dropIndicator$:c,isEmpty:f,filter:h,getNodeKey:p,getNodePath:m,getCheckedNodes:g,getCheckedKeys:y,getCurrentNode:w,getCurrentKey:$,setCheckedNodes:C,setCheckedKeys:b,setChecked:k,getHalfCheckedNodes:S,getHalfCheckedKeys:E,setCurrentNode:N,setCurrentKey:_,t:o,getNode:T,remove:P,append:x,insertBefore:v,insertAfter:O,handleNodeExpand:I,updateKeyChildren:F}}});function F0e(e,t,o,r,a,i){const s=n.resolveComponent("b-tree-node");return n.openBlock(),n.createElementBlock("div",{ref:"el$",class:n.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree","data-test-name":"tree","data-test-variant":"","data-test-state":""},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.root.childNodes,l=>(n.openBlock(),n.createBlock(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.e("empty-block"))},[n.createElementVNode("span",{class:n.normalizeClass(e.ns.e("empty-text"))},n.toDisplayString(e.emptyText??e.t("b.tree.emptyText")),3)],2)):n.createCommentVNode("v-if",!0),n.withDirectives(n.createElementVNode("div",{ref:"dropIndicator$",class:n.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[n.vShow,e.dragState.showDropIndicator]])],2)}var Xu=Q(V0e,[["render",F0e],["__file","tree.vue"]]);Xu.install=e=>{e.component(Xu.name,Xu)};const Ju=Xu,EB=Ju,z0e=(e,{attrs:t},{tree:o,key:r})=>{const a=G("tree-select"),i={...Po(n.toRefs(e),Object.keys(jo.props)),...t,valueKey:r,popperClass:n.computed(()=>{const s=[a.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),n.nextTick(()=>{o.value?.filter(s)})},onVisibleChange:s=>{t.onVisibleChange?.(s),e.filterable&&s&&i.filterMethod()}};return i};var H0e=n.defineComponent({extends:Fa,setup(e,t){const o=Fa.setup(e,t);delete o.selectOptionClick;const r=n.getCurrentInstance().proxy;return n.nextTick(()=>{o.select.cachedOptions.get(r.value)||o.select.onOptionCreate(r)}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function og(e){return e||e===0}function BB(e){return Array.isArray(e)&&e.length}function rg(e){return Array.isArray(e)?e:og(e)?[e]:[]}function Qu(e,t,o,r,a){for(let i=0;i<e.length;i++){const s=e[i];if(t(s,i,e,a))return r?r(s,i,e,a):s;{const l=o(s);if(BB(l)){const c=Qu(l,t,o,r,s);if(c)return c}}}}const W0e=(e,{attrs:t,slots:o,emit:r},{select:a,tree:i,key:s})=>{n.watch(()=>e.modelValue,()=>{e.showCheckbox&&n.nextTick(()=>{const u=i.value;u&&!Bn(u.getCheckedKeys(),rg(e.modelValue))&&u.setCheckedKeys(rg(e.modelValue))})},{immediate:!0,deep:!0});const l=n.computed(()=>({value:s.value,...e.props})),c=(u,f)=>{const h=l.value[u];return nt(h)?h(f,i.value?.getNode(c("value",f))):f[h]},d=rg(e.modelValue).map(u=>Qu(e.data||[],f=>c("value",f)===u,f=>c("children",f),(f,h,p,m)=>m&&c("value",m))).filter(u=>og(u));return{...Po(n.toRefs(e),Object.keys(Ju.props)),...t,nodeKey:s,expandOnClickNode:n.computed(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:n.computed(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(d):d),renderContent:(u,{node:f,data:h,store:p})=>u(H0e,{value:c("value",h),label:c("label",h),disabled:c("disabled",h)},e.renderContent?()=>e.renderContent(u,{node:f,data:h,store:p}):o.default?()=>o.default({node:f,data:h,store:p}):void 0),filterNodeMethod:(u,f,h)=>e.filterNodeMethod?e.filterNodeMethod(u,f,h):u?c("label",f)?.includes(u):!0,onNodeClick:(u,f,h)=>{if(t.onNodeClick?.(u,f,h),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||f.isLeaf)){if(!c("disabled",u)){const p=a.value?.options.get(c("value",u));a.value?.handleOptionSelect(p,!0)}}else e.expandOnClickNode&&h.proxy.handleExpandIconClick()},onCheck:(u,f)=>{t.onCheck?.(u,f);const h=c("value",u);if(e.checkStrictly)r(Pe,e.multiple?f.checkedKeys:f.checkedKeys.includes(h)?h:void 0);else if(e.multiple)r(Pe,i.value.getCheckedKeys(!0));else{const p=Qu([u],y=>!BB(c("children",y))&&!c("disabled",y),y=>c("children",y)),m=p?c("value",p):void 0,g=og(e.modelValue)&&!!Qu([u],y=>c("value",y)===e.modelValue,y=>c("children",y));r(Pe,m===e.modelValue||g?void 0:m)}}}},K0e=n.defineComponent({name:"BTreeSelect",inheritAttrs:!1,props:{...jo.props,...Ju.props},setup(e,t){const{slots:o,expose:r}=t,a=n.ref(),i=n.ref(),s=n.computed(()=>e.nodeKey||e.valueKey||"value"),l=z0e(e,t,{select:a,tree:i,key:s}),c=W0e(e,t,{select:a,tree:i,key:s}),d=n.reactive({});return r(d),n.onMounted(()=>{Object.assign(d,{...Po(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Po(a.value,["focus","blur"])})}),()=>n.h(jo,n.reactive({...l,ref:u=>a.value=u}),{...o,default:()=>n.h(Ju,n.reactive({...c,ref:u=>i.value=u}))})}});var ef=Q(K0e,[["__file","tree-select.vue"]]);ef.install=e=>{e.component(ef.name,ef)};const NB=ef,ag=Symbol(),j0e={key:-1,level:-1,data:{}};var Xl=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Xl||{}),ig=(e=>(e.ADD="add",e.DELETE="delete",e))(ig||{});const U0e=ne({data:{type:K(Array),default:()=>st([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:K(Object),default:()=>st({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:K(Array),default:()=>st([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:K(Array),default:()=>st([])},indent:{type:Number,default:16},icon:{type:Je},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:K([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:K(Function)},perfMode:{type:Boolean,default:!0}}),G0e=ne({node:{type:K(Object),default:()=>st(j0e)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),Y0e=ne({node:{type:K(Object),required:!0}}),_B="node-click",TB="node-expand",AB="node-collapse",xB="current-change",MB="check",PB="check-change",vB="node-contextmenu",q0e={[_B]:(e,t,o)=>e&&t&&o,[TB]:(e,t)=>e&&t,[AB]:(e,t)=>e&&t,[xB]:(e,t)=>e&&t,[MB]:(e,t)=>e&&t,[PB]:(e,t)=>e&&typeof t=="boolean",[vB]:(e,t,o)=>e&&t&&o},Z0e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function X0e(e,t){const o=n.ref(new Set),r=n.ref(new Set),{emit:a}=n.getCurrentInstance();n.watch([()=>t.value,()=>e.defaultCheckedKeys],()=>n.nextTick(()=>{$(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:C,maxLevel:b}=t.value,k=o.value,S=new Set;for(let E=b-1;E>=1;--E){const N=C.get(E);!N||N.forEach(_=>{const T=_.children;if(T){let P=!0,x=!1;for(const v of T){const O=v.key;if(k.has(O))x=!0;else if(S.has(O)){P=!1,x=!0;break}else P=!1}P?k.add(_.key):x?(S.add(_.key),k.delete(_.key)):(k.delete(_.key),S.delete(_.key))}})}r.value=S},s=C=>o.value.has(C.key),l=C=>r.value.has(C.key),c=(C,b,k=!0)=>{const S=o.value,E=(N,_)=>{S[_?ig.ADD:ig.DELETE](N.key);const T=N.children;!e.checkStrictly&&T&&T.forEach(P=>{P.disabled||E(P,_)})};E(C,b),i(),k&&d(C,b)},d=(C,b)=>{const{checkedNodes:k,checkedKeys:S}=m(),{halfCheckedNodes:E,halfCheckedKeys:N}=g();a(MB,C.data,{checkedKeys:S,checkedNodes:k,halfCheckedKeys:N,halfCheckedNodes:E}),a(PB,C.data,b)};function u(C=!1){return m(C).checkedKeys}function f(C=!1){return m(C).checkedNodes}function h(){return g().halfCheckedKeys}function p(){return g().halfCheckedNodes}function m(C=!1){const b=[],k=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;o.value.forEach(E=>{const N=S.get(E);N&&(!C||C&&N.isLeaf)&&(k.push(E),b.push(N.data))})}return{checkedKeys:k,checkedNodes:b}}function g(){const C=[],b=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;r.value.forEach(S=>{const E=k.get(S);E&&(b.push(S),C.push(E.data))})}return{halfCheckedNodes:C,halfCheckedKeys:b}}function y(C){o.value.clear(),r.value.clear(),$(C)}function w(C,b){if(t?.value&&e.showCheckbox){const k=t.value.treeNodeMap.get(C);k&&c(k,b,!1)}}function $(C){if(t?.value){const{treeNodeMap:b}=t.value;if(e.showCheckbox&&b&&C)for(const k of C){const S=b.get(k);S&&!s(S)&&c(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:c,isChecked:s,isIndeterminate:l,getCheckedKeys:u,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:w,setCheckedKeys:y}}function J0e(e,t){const o=n.ref(new Set([])),r=n.ref(new Set([])),a=n.computed(()=>nt(e.filterMethod));function i(l){if(!a.value)return;const c=new Set,d=r.value,u=o.value,f=[],h=t.value?.treeNodes||[],p=e.filterMethod;u.clear();function m(g){g.forEach(y=>{f.push(y),p?.(l,y.data)?f.forEach($=>{c.add($.key)}):y.isLeaf&&u.add(y.key);const w=y.children;if(w&&m(w),!y.isLeaf){if(!c.has(y.key))u.add(y.key);else if(w){let $=!0;for(const C of w)if(!u.has(C.key)){$=!1;break}$?d.add(y.key):d.delete(y.key)}}f.pop()})}return m(h),c}function s(l){return r.value.has(l.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:o,doFilter:i,isForceHiddenExpandIcon:s}}function Q0e(e,t){const o=n.ref(new Set(e.defaultExpandedKeys)),r=n.ref(),a=n.shallowRef();n.watch(()=>e.currentNodeKey,Y=>{r.value=Y},{immediate:!0}),n.watch(()=>e.data,Y=>{re(Y)},{immediate:!0});const{isIndeterminate:i,isChecked:s,toggleCheckbox:l,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:u,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p}=X0e(e,a),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=J0e(e,a),w=n.computed(()=>e.props?.value||Xl.KEY),$=n.computed(()=>e.props?.children||Xl.CHILDREN),C=n.computed(()=>e.props?.disabled||Xl.DISABLED),b=n.computed(()=>e.props?.label||Xl.LABEL),k=n.computed(()=>{const Y=o.value,q=g.value,te=[],ue=a.value&&a.value.treeNodes||[];function ge(){const Ee=[];for(let Te=ue.length-1;Te>=0;--Te)Ee.push(ue[Te]);for(;Ee.length;){const Te=Ee.pop();if(!!Te&&(q.has(Te.key)||te.push(Te),Y.has(Te.key))){const ye=Te.children;if(ye){const oe=ye.length;for(let se=oe-1;se>=0;--se)Ee.push(ye[se])}}}}return ge(),te}),S=n.computed(()=>k.value.length>0);function E(Y){const q=new Map,te=new Map;let ue=1;function ge(Te,ye=1,oe=void 0){const se=[];for(const me of Te){const ee=T(me),le={level:ye,key:ee,data:me};le.label=x(me),le.parent=oe;const Ce=_(me);le.disabled=P(me),le.isLeaf=!Ce||Ce.length===0,Ce&&Ce.length&&(le.children=ge(Ce,ye+1,le)),se.push(le),q.set(ee,le),te.has(ye)||te.set(ye,[]),te.get(ye)?.push(le)}return ye>ue&&(ue=ye),se}const Ee=ge(Y);return{treeNodeMap:q,levelTreeNodeMap:te,maxLevel:ue,treeNodes:Ee}}function N(Y){const q=m(Y);q&&(o.value=q)}function _(Y){return Y[$.value]}function T(Y){return Y?Y[w.value]:""}function P(Y){return Y[C.value]}function x(Y){return Y[b.value]}function v(Y){o.value.has(Y.key)?B(Y):z(Y)}function O(Y){o.value=new Set(Y)}function I(Y,q){t(_B,Y.data,Y,q),F(Y),e.expandOnClickNode&&v(Y),e.showCheckbox&&e.checkOnClickNode&&!Y.disabled&&l(Y,!s(Y),!0)}function F(Y){R(Y)||(r.value=Y.key,t(xB,Y.data,Y))}function M(Y,q){l(Y,q)}function z(Y){const q=o.value;if(a.value&&e.accordion){const{treeNodeMap:te}=a.value;q.forEach(ue=>{const ge=te.get(ue);Y&&Y.level===ge.level&&q.delete(ue)})}q.add(Y.key),t(TB,Y.data,Y)}function B(Y){o.value.delete(Y.key),t(AB,Y.data,Y)}function L(Y){return o.value.has(Y.key)}function W(Y){return!!Y.disabled}function R(Y){const q=r.value;return!!q&&q===Y.key}function H(){if(!!r.value)return a.value?.treeNodeMap.get(r.value)?.data}function j(){return r.value}function U(Y){r.value=Y}function re(Y){n.nextTick(()=>a.value=E(Y))}function J(Y){const q=it(Y)?T(Y):Y;return a.value?.treeNodeMap.get(q)}return{tree:a,flattenTree:k,isNotEmpty:S,getKey:T,getChildren:_,toggleExpand:v,toggleCheckbox:l,isExpanded:L,isChecked:s,isIndeterminate:i,isDisabled:W,isCurrent:R,isForceHiddenExpandIcon:y,handleNodeClick:I,handleNodeCheck:M,getCurrentNode:H,getCurrentKey:j,setCurrentKey:U,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:u,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p,filter:N,setData:re,getNode:J,expandNode:z,collapseNode:B,setExpandedKeys:O}}var ege=n.defineComponent({name:"BTreeNodeContent",props:Y0e,setup(e){const t=n.inject(ag),o=G("tree");return()=>{const r=e.node,{data:a}=r;return t?.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):n.h("span",{class:o.be("node","label")},[r?.label])}}});const tge="action-right",nge=n.defineComponent({name:"BTreeNode",components:{BIcon:pe,ActionRight:ui,BCheckbox:xn,BNodeContent:ege},props:G0e,emits:Z0e,setup(e,{emit:t}){const o=n.inject(ag),r=G("tree"),a=n.computed(()=>o?.props.indent??16),i=n.computed(()=>o?.props.icon??tge);return{ns:r,indent:a,icon:i,handleClick:u=>{t("click",e.node,u)},handleExpandIconClick:()=>{t("toggle",e.node)},handleCheckChange:u=>{t("check",e.node,u)},handleContextMenu:u=>{o?.instance?.vnode?.props?.onNodeContextmenu&&(u.stopPropagation(),u.preventDefault()),o?.ctx.emit(vB,u,e.node?.data,e.node)}}}}),oge=["aria-expanded","aria-disabled","aria-checked","data-key"];function rge(e,t,o,r,a,i){const s=n.resolveComponent("b-icon"),l=n.resolveComponent("b-checkbox"),c=n.resolveComponent("b-node-content");return n.openBlock(),n.createElementBlock("div",{ref:"node$",class:n.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":e.node?.key,onClick:t[1]||(t[1]=n.withModifiers((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d))},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.be("node","content")),style:n.normalizeStyle({paddingLeft:`${(e.node.level-1)*e.indent}px`})},[e.icon?(n.openBlock(),n.createBlock(s,{key:0,class:n.normalizeClass([e.ns.is("leaf",!!e.node?.isLeaf),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!e.node?.isLeaf&&e.expanded},e.ns.be("node","expand-icon")]),onClick:n.withModifiers(e.handleExpandIconClick,["stop"])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.icon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.showCheckbox?(n.openBlock(),n.createBlock(l,{key:1,plain:"","model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):n.createCommentVNode("v-if",!0),n.createVNode(c,{node:e.node},null,8,["node"])],6)],42,oge)}var age=Q(nge,[["render",rge],["__file","tree-node.vue"]]);const ige=n.defineComponent({name:"BTreeV2",components:{BTreeNode:age,FixedSizeList:k0},props:U0e,emits:q0e,setup(e,t){n.provide(ag,{ctx:t,props:e,instance:n.getCurrentInstance()}),n.provide(Ir,void 0);const{t:o}=He(),r=G("tree"),{flattenTree:a,isNotEmpty:i,toggleExpand:s,isExpanded:l,isIndeterminate:c,isChecked:d,isDisabled:u,isCurrent:f,isForceHiddenExpandIcon:h,toggleCheckbox:p,handleNodeClick:m,handleNodeCheck:g,getCurrentNode:y,getCurrentKey:w,setCurrentKey:$,getCheckedKeys:C,getCheckedNodes:b,getHalfCheckedKeys:k,getHalfCheckedNodes:S,setChecked:E,setCheckedKeys:N,filter:_,setData:T,getNode:P,expandNode:x,collapseNode:v,setExpandedKeys:O}=Q0e(e,t.emit);return t.expose({getCurrentNode:y,getCurrentKey:w,setCurrentKey:$,getCheckedKeys:C,getCheckedNodes:b,getHalfCheckedKeys:k,getHalfCheckedNodes:S,setChecked:E,setCheckedKeys:N,filter:_,setData:T,getNode:P,expandNode:x,collapseNode:v,setExpandedKeys:O}),{t:o,ns:r,flattenTree:a,itemSize:26,isNotEmpty:i,toggleExpand:s,toggleCheckbox:p,isExpanded:l,isIndeterminate:c,isChecked:d,isDisabled:u,isCurrent:f,isForceHiddenExpandIcon:h,handleNodeClick:m,handleNodeCheck:g}}});function sge(e,t,o,r,a,i){const s=n.resolveComponent("b-tree-node"),l=n.resolveComponent("fixed-size-list");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree","data-test-name":"tree-v2","data-test-variant":"","data-test-state":""},[e.isNotEmpty?(n.openBlock(),n.createBlock(l,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:n.withCtx(({data:c,index:d,style:u})=>[(n.openBlock(),n.createBlock(s,{key:c[d].key,style:n.normalizeStyle(u),node:c[d],expanded:e.isExpanded(c[d]),"show-checkbox":e.showCheckbox,checked:e.isChecked(c[d]),indeterminate:e.isIndeterminate(c[d]),disabled:e.isDisabled(c[d]),current:e.isCurrent(c[d]),"hidden-expand-icon":e.isForceHiddenExpandIcon(c[d]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.e("empty-block"))},[n.createElementVNode("span",{class:n.normalizeClass(e.ns.e("empty-text"))},n.toDisplayString(e.emptyText??e.t("b.tree.emptyText")),3)],2))],2)}var lge=Q(ige,[["render",sge],["__file","tree.vue"]]);const OB=Ne(lge),cge="BUpload";class dge extends Error{constructor(t,o,r,a){super(t),this.name="UploadAjaxError",this.status=o,this.method=r,this.url=a}}function IB(e,t,o){let r;return o.response?r=`${o.response.error||o.response}`:o.responseText?r=`${o.responseText}`:r=`fail to ${t.method} ${e} ${o.status}`,new dge(r,o.status,t.method,e)}function uge(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const fge=e=>{typeof XMLHttpRequest>"u"&&vt(cge,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,o=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const s=i;s.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(s)});const r=new FormData;if(e.data)for(const[i,s]of Object.entries(e.data))Array.isArray(s)?r.append(i,...s):r.append(i,s);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(IB(o,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(IB(o,e,t));e.onSuccess(uge(t))}),t.open(e.method,o,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,s)=>t.setRequestHeader(s,i));else for(const[i,s]of Object.entries(a))xt(s)||t.setRequestHeader(i,String(s));return t.send(r),t},sg=["text","picture","picture-card"];let hge=1;const lg=()=>Date.now()+hge++,cg=ne({action:{type:String,default:"#"},headers:{type:K(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>st({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:K(Array),default:()=>st([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:sg,default:"text"},httpRequest:{type:K(Function),default:fge},disabled:Boolean,limit:Number}),DB=ne({...cg,beforeUpload:{type:K(Function),default:mt},beforeRemove:{type:K(Function)},onRemove:{type:K(Function),default:mt},onChange:{type:K(Function),default:mt},onPreview:{type:K(Function),default:mt},onSuccess:{type:K(Function),default:mt},onProgress:{type:K(Function),default:mt},onError:{type:K(Function),default:mt},onExceed:{type:K(Function),default:mt}}),RB=ne({files:{type:K(Array),default:()=>st([])},disabled:{type:Boolean,default:!1},handlePreview:{type:K(Function),default:mt},listType:{type:String,values:sg,default:"text"}}),LB={remove:e=>!!e},pge=["onKeydown"],mge=["src"],gge=["onClick"],yge=["onClick"],bge=["onClick"],Cge=n.defineComponent({name:"BUploadList"}),wge=n.defineComponent({...Cge,props:RB,emits:LB,setup(e,{emit:t}){const{t:o}=He(),r=G("upload"),a=G("icon"),i=G("list"),s=n.ref(!1),l=c=>{t("remove",c)};return(c,d)=>(n.openBlock(),n.createBlock(n.TransitionGroup,{tag:"ul",class:n.normalizeClass([n.unref(r).b("list"),n.unref(r).bm("list",c.listType),n.unref(r).is("disabled",c.disabled)]),name:n.unref(i).b(),"data-test-name":"upload","data-test-variant":"","data-test-state":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.files,u=>(n.openBlock(),n.createElementBlock("li",{key:u.uid||u.name,class:n.normalizeClass([n.unref(r).be("list","item"),n.unref(r).is(u.status),{focusing:s.value}]),tabindex:"0",onKeydown:n.withKeys(f=>!c.disabled&&l(u),["delete"]),onFocus:d[0]||(d[0]=f=>s.value=!0),onBlur:d[1]||(d[1]=f=>s.value=!1),onClick:d[2]||(d[2]=f=>s.value=!1)},[n.renderSlot(c.$slots,"default",{file:u},()=>[c.listType==="picture"||u.status!=="uploading"&&c.listType==="picture-card"?(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(n.unref(r).be("list","item-thumbnail")),src:u.url,alt:""},null,10,mge)):n.createCommentVNode("v-if",!0),u.status==="uploading"||c.listType!=="picture-card"?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(r).be("list","item-info"))},[n.createElementVNode("a",{class:n.normalizeClass(n.unref(r).be("list","item-name")),onClick:n.withModifiers(f=>c.handlePreview(u),["prevent"])},[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(a).m("document"))},{default:n.withCtx(()=>[n.createVNode(n.unref(TW))]),_:1},8,["class"]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).be("list","item-file-name"))},n.toDisplayString(u.name),3)],10,gge),u.status==="uploading"?(n.openBlock(),n.createBlock(n.unref(l0),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(u.percentage),style:n.normalizeStyle(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("label",{class:n.normalizeClass(n.unref(r).be("list","item-status-label"))},[c.listType==="text"?(n.openBlock(),n.createBlock(n.unref(pe),{key:0,class:n.normalizeClass([n.unref(a).m("upload-success"),n.unref(a).m("check")])},{default:n.withCtx(()=>[n.createVNode(n.unref(uo))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,class:n.normalizeClass([n.unref(a).m("upload-success"),n.unref(a).m("check")])},{default:n.withCtx(()=>[n.createVNode(n.unref(uo))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2),c.disabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(pe),{key:2,class:n.normalizeClass(n.unref(a).m("close")),size:20,onClick:f=>l(u)},{default:n.withCtx(()=>[n.createVNode(n.unref(Nn))]),_:2},1032,["class","onClick"])),n.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),n.createCommentVNode(" This is a bug which needs to be fixed "),n.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),c.disabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("i",{key:3,class:n.normalizeClass(n.unref(a).m("close-tip"))},n.toDisplayString(n.unref(o)("b.upload.deleteTip")),3)),c.listType==="picture-card"?(n.openBlock(),n.createElementBlock("span",{key:4,class:n.normalizeClass(n.unref(r).be("list","item-actions"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).be("list","item-preview")),onClick:f=>c.handlePreview(u)},[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(a).m("zoom-in"))},{default:n.withCtx(()=>[n.createVNode(n.unref($C))]),_:1},8,["class"])],10,yge),c.disabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r).be("list","item-delete")),onClick:f=>l(u)},[n.createVNode(n.unref(pe),{class:n.normalizeClass(n.unref(a).m("delete"))},{default:n.withCtx(()=>[n.createVNode(n.unref(kW))]),_:1},8,["class"])],10,bge))],2)):n.createCommentVNode("v-if",!0)])],42,pge))),128)),n.renderSlot(c.$slots,"append")]),_:3},8,["class","name"]))}});var VB=Q(wge,[["__file","upload-list.vue"]]);const FB=ne({disabled:{type:Boolean,default:!1}}),zB={file:e=>Me(e)},$ge=["onDrop","onDragover"],HB="BUploadDrag",kge=n.defineComponent({name:HB}),Sge=n.defineComponent({...kge,props:FB,emits:zB,setup(e,{emit:t}){const o=e,r=n.inject(Qh);r||vt(HB,"usage: <b-upload><b-upload-dragger /></b-upload>");const a=G("upload"),i=n.ref(!1),s=c=>{if(o.disabled)return;i.value=!1;const d=Array.from(c.dataTransfer.files),u=r.accept.value;if(!u){t("file",d);return}const f=d.filter(h=>{const{type:p,name:m}=h,g=m.includes(".")?`.${m.split(".").pop()}`:"",y=p.replace(/\/.*$/,"");return u.split(",").map(w=>w.trim()).filter(w=>w).some(w=>w.startsWith(".")?g===w:/\/\*$/.test(w)?y===w.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(w)?p===w:!1)});t("file",f)},l=()=>{o.disabled||(i.value=!0)};return(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(a).b("dragger"),n.unref(a).is("dragover",i.value)]),onDrop:n.withModifiers(s,["prevent"]),onDragover:n.withModifiers(l,["prevent"]),onDragleave:d[0]||(d[0]=n.withModifiers(u=>i.value=!1,["prevent"]))},[n.renderSlot(c.$slots,"default")],42,$ge))}});var Ege=Q(Sge,[["__file","upload-dragger.vue"]]);const WB=ne({...cg,beforeUpload:{type:K(Function),default:mt},onRemove:{type:K(Function),default:mt},onStart:{type:K(Function),default:mt},onSuccess:{type:K(Function),default:mt},onProgress:{type:K(Function),default:mt},onError:{type:K(Function),default:mt},onExceed:{type:K(Function),default:mt}}),Bge=["onKeydown"],Nge=["name","multiple","accept"],_ge=n.defineComponent({name:"BUploadContent",inheritAttrs:!1}),Tge=n.defineComponent({..._ge,props:WB,setup(e,{expose:t}){const o=e,r=G("upload"),a=n.shallowRef({}),i=n.shallowRef(),s=p=>{if(p.length===0)return;const{autoUpload:m,limit:g,fileList:y,multiple:w,onStart:$,onExceed:C}=o;if(g&&y.length+p.length>g){C(p,y);return}w||(p=p.slice(0,1));for(const b of p){const k=b;k.uid=lg(),$(k),m&&l(k)}},l=async p=>{if(i.value.value="",!o.beforeUpload)return c(p);let m;try{m=await o.beforeUpload(p)}catch{m=!1}if(m===!1){o.onRemove(p);return}let g=p;m instanceof Blob&&(m instanceof File?g=m:g=new File([m],p.name,{type:p.type})),c(Object.assign(g,{uid:p.uid}))},c=p=>{const{headers:m,data:g,method:y,withCredentials:w,name:$,action:C,onProgress:b,onSuccess:k,onError:S,httpRequest:E}=o,{uid:N}=p,_={headers:m||{},withCredentials:w,file:p,data:g,method:y,filename:$,action:C,onProgress:P=>{b(P,p)},onSuccess:P=>{k(P,p),delete a.value[N]},onError:P=>{S(P,p),delete a.value[N]}},T=E(_);a.value[N]=T,T instanceof Promise&&T.then(_.onSuccess,_.onError)},d=p=>{const m=p.target.files;!m||s(Array.from(m))},u=()=>{o.disabled||(i.value.value="",i.value.click())},f=()=>{u()};return t({abort:p=>{yz(a.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete a.value[g]})},upload:l}),(p,m)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(r).b(),n.unref(r).m(p.listType),n.unref(r).is("drag",p.drag)]),tabindex:"0",onClick:u,onKeydown:n.withKeys(n.withModifiers(f,["self"]),["enter","space"])},[p.drag?(n.openBlock(),n.createBlock(Ege,{key:0,disabled:p.disabled,onFile:s},{default:n.withCtx(()=>[n.renderSlot(p.$slots,"default")]),_:3},8,["disabled"])):n.renderSlot(p.$slots,"default",{key:1}),n.createElementVNode("input",{ref_key:"inputRef",ref:i,class:n.normalizeClass(n.unref(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:d,onClick:m[0]||(m[0]=n.withModifiers(()=>{},["stop"]))},null,42,Nge)],42,Bge))}});var KB=Q(Tge,[["__file","upload-content.vue"]]);const jB="BUpload",Age=e=>{e.url?.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xge=(e,t)=>{const o=rz(e,"fileList",void 0,{passive:!0}),r=h=>o.value.find(p=>p.uid===h.uid);function a(h){t.value?.abort(h)}function i(h=["ready","uploading","success","fail"]){o.value=o.value.filter(p=>!h.includes(p.status))}const s=(h,p)=>{const m=r(p);!m||(console.error(h),m.status="fail",o.value.splice(o.value.indexOf(m),1),e.onError(h,m,o.value),e.onChange(m,o.value))},l=(h,p)=>{const m=r(p);!m||(e.onProgress(h,m,o.value),m.status="uploading",m.percentage=Math.round(h.percent))},c=(h,p)=>{const m=r(p);!m||(m.status="success",m.response=h,e.onSuccess(h,m,o.value),e.onChange(m,o.value))},d=h=>{const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(m){m.message,e.onError(m,p,o.value)}o.value=[...o.value,p],e.onChange(p,o.value)},u=async h=>{const p=h instanceof File?r(h):h;p||vt(jB,"file to be removed not found");const m=g=>{a(g);const y=o.value;y.splice(y.indexOf(g),1),e.onRemove(g,y),Age(g)};e.beforeRemove?await e.beforeRemove(p,o.value)!==!1&&m(p):m(p)};function f(){o.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>h&&t.value?.upload(h))}return n.watch(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(o.value=o.value.map(p=>{const{raw:m,url:g}=p;if(!g&&m)try{p.url=URL.createObjectURL(m)}catch(y){e.onError(y,p,o.value)}return p}))}),n.watch(o,h=>{for(const p of h)p.uid||(p.uid=lg()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:a,clearFiles:i,handleError:s,handleProgress:l,handleStart:d,handleSuccess:c,handleRemove:u,submit:f}},Mge=n.defineComponent({name:"BUpload"}),Pge=n.defineComponent({...Mge,props:DB,setup(e,{expose:t}){const o=e,r=n.useSlots(),a=ho(),i=G("upload"),s=n.shallowRef(),{abort:l,submit:c,clearFiles:d,uploadFiles:u,handleStart:f,handleError:h,handleRemove:p,handleSuccess:m,handleProgress:g}=xge(o,s),y=n.computed(()=>o.listType==="picture-card"),w=n.computed(()=>({...o,fileList:u.value,onStart:f,onProgress:g,onSuccess:m,onError:h,onRemove:p}));return n.onBeforeUnmount(()=>{u.value.forEach(({url:$})=>{$?.startsWith("blob:")&&URL.revokeObjectURL($)})}),n.provide(Qh,{accept:n.toRef(o,"accept")}),t({abort:l,submit:c,clearFiles:d,handleStart:f,handleRemove:p}),($,C)=>(n.openBlock(),n.createElementBlock("div",null,[n.unref(y)&&$.showFileList?(n.openBlock(),n.createBlock(VB,{key:0,disabled:n.unref(a),"list-type":$.listType,files:n.unref(u),"handle-preview":$.onPreview,onRemove:n.unref(p)},n.createSlots({append:n.withCtx(()=>[n.createVNode(KB,n.mergeProps({ref_key:"uploadRef",ref:s},n.unref(w)),{default:n.withCtx(()=>[n.unref(r).trigger?n.renderSlot($.$slots,"trigger",{key:0}):n.createCommentVNode("v-if",!0),!n.unref(r).trigger&&n.unref(r).default?n.renderSlot($.$slots,"default",{key:1}):n.createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[$.$slots.file?{name:"default",fn:n.withCtx(({file:b})=>[n.renderSlot($.$slots,"file",{file:b})]),key:"0"}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):n.createCommentVNode("v-if",!0),!n.unref(y)||n.unref(y)&&!$.showFileList?(n.openBlock(),n.createBlock(KB,n.mergeProps({key:1,ref_key:"uploadRef",ref:s},n.unref(w)),{default:n.withCtx(()=>[n.unref(r).trigger?n.renderSlot($.$slots,"trigger",{key:0}):n.createCommentVNode("v-if",!0),!n.unref(r).trigger&&n.unref(r).default?n.renderSlot($.$slots,"default",{key:1}):n.createCommentVNode("v-if",!0)]),_:3},16)):n.createCommentVNode("v-if",!0),$.$slots.trigger?n.renderSlot($.$slots,"default",{key:2}):n.createCommentVNode("v-if",!0),$.$slots.tip?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(n.unref(i).e("tip"))},[n.renderSlot($.$slots,"tip")],2)):n.createCommentVNode("v-if",!0),!n.unref(y)&&$.showFileList?(n.openBlock(),n.createBlock(VB,{key:4,disabled:n.unref(a),"list-type":$.listType,files:n.unref(u),"handle-preview":$.onPreview,onRemove:n.unref(p)},n.createSlots({_:2},[$.$slots.file?{name:"default",fn:n.withCtx(({file:b})=>[n.renderSlot($.$slots,"file",{file:b})]),key:"0"}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):n.createCommentVNode("v-if",!0)]))}});var vge=Q(Pge,[["__file","upload.vue"]]);const UB=Ne(vge);var Oge=[M3,D3,D4,YE,V4,W4,Pp,Y4,q4,ve,Op,M8,v8,V8,F8,c6,s6,X9,J9,Q9,ew,tw,ow,nw,rw,aw,lw,xn,U8,nm,lt,mw,gw,fw,_w,Aw,Iw,Dw,Rw,Lw,Vw,e$,o$,r$,l$,m1,f$,T$,A$,x$,$1,I$,k1,pe,F$,S1,hn,E1,j$,U$,d7,u7,f7,h7,g7,S7,B7,gS,wS,Mp,l0,am,t6,e6,ES,NS,to,bo,jo,Fa,C7,ZS,oE,rE,lE,B0,Ko,hE,pE,bE,PE,vE,GE,iB,sB,Ni,R1e,_8,cB,fB,hB,Xt,g0e,wB,EB,NB,OB,UB];const Eo="BInfiniteScroll",Ige=50,Dge={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},dg=(e,t)=>Object.entries(Dge).reduce((o,[r,a])=>{const{type:i,default:s}=a,l=e.getAttribute(`infinite-scroll-${r}`);let c=t[l]??l??s;return c=c==="false"?!1:c,c=i(c),o[r]=Number.isNaN(c)?s:c,o},{}),GB=e=>{const{observer:t}=e[Eo];t&&(t.disconnect(),delete e[Eo].observer)},Rge=(e,t)=>{const{container:o,containerEl:r,instance:a,observer:i,lastScrollTop:s}=e[Eo],{disabled:l,distance:c}=dg(e,a),{clientHeight:d,scrollHeight:u,scrollTop:f}=r,h=f-s;if(e[Eo].lastScrollTop=f,i||l||h<0)return;let p=!1;if(o===e)p=u-(d+f)<=c;else{const{clientTop:m,scrollHeight:g}=e,y=lz(e,r);p=f+d>=y+m+g-c}p&&t.call(a)};function ug(e,t){const{containerEl:o,instance:r}=e[Eo],{disabled:a}=dg(e,r);a||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?t.call(r):GB(e))}var Lge={async mounted(e,t){const{instance:o,value:r}=t;nt(r)||vt(Eo,"'v-infinite-scroll' binding value must be a function"),await n.nextTick();const{delay:a,immediate:i}=dg(e,o),s=Oh(e,!0),l=s===window?document.documentElement:s,c=Pr(Rge.bind(null,e,r),a);if(!!s){if(e[Eo]={instance:o,container:s,containerEl:l,delay:a,cb:r,onScroll:c,lastScrollTop:l.scrollTop},i){const d=new MutationObserver(Pr(ug.bind(null,e,r),Ige));e[Eo].observer=d,d.observe(e,{childList:!0,subtree:!0}),ug(e,r)}s.addEventListener("scroll",c)}},unmounted(e){const{container:t,onScroll:o}=e[Eo];t?.removeEventListener("scroll",o),GB(e)},async updated(e){e[Eo]||await n.nextTick();const{containerEl:t,cb:o,observer:r}=e[Eo];t.clientHeight&&r&&ug(e,o)}};const fg=Lge;fg.install=e=>{e.directive("InfiniteScroll",fg)};const YB=fg;function Vge(e){let t;const o=G("loading"),r=n.ref(!1),a=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(p){a.text=p}function s(){const p=a.parent;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(fn(p,o.bm("parent","relative")),p.removeAttribute("loading-number")),fn(p,o.bm("parent","hidden"))}l(),f.unmount()}function l(){h.$el?.parentNode?.removeChild(h.$el)}function c(){e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=window.setTimeout(d,400),a.visible=!1,e.closed?.())}function d(){if(!r.value)return;const p=a.parent;r.value=!1,p.vLoadingAddClassList=void 0,s()}const u={name:"BLoading",setup(){return()=>{const p=a.spinner||a.svg,m=n.h("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...p?{innerHTML:p}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),g=a.text?n.h("p",{class:o.b("text")},[a.text]):void 0;return n.h(n.Transition,{name:o.b("fade"),onAfterLeave:d},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:a.background||""},class:[o.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[n.h("div",{class:o.b("spinner")},[m,g])]),[[n.vShow,a.visible]])])})}}},f=n.createApp(u),h=f.mount(document.createElement("div"));return{...n.toRefs(a),setText:i,removeElLoadingChild:l,close:c,handleAfterLeave:d,vm:h,get $el(){return h.$el}}}let tf;const nf=function(e={}){if(!Re)return;const t=Fge(e);if(t.fullscreen&&tf)return tf;const o=Vge({...t,closed:()=>{t.closed?.(),t.fullscreen&&(tf=void 0)}});zge(t,t.parent,o),qB(t,t.parent,o),t.parent.vLoadingAddClassList=()=>qB(t,t.parent,o);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(tf=o),o},Fge=e=>{let t;return De(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,target:t}},zge=async(e,t,o)=>{const{nextZIndex:r}=Do(),a={};if(e.fullscreen)o.originalPosition.value=ir(document.body,"position"),o.originalOverflow.value=ir(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){o.originalPosition.value=ir(document.body,"position"),await n.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(ir(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else o.originalPosition.value=ir(t,"position");for(const[i,s]of Object.entries(a))o.$el.style[i]=s},qB=(e,t,o)=>{const r=G("loading");["absolute","fixed","sticky"].includes(o.originalPosition.value)?fn(t,r.bm("parent","relative")):Oo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Oo(t,r.bm("parent","hidden")):fn(t,r.bm("parent","hidden"))},hg=Symbol("BLoading"),ZB=(e,t)=>{const o=t.instance,r=c=>it(t.value)?t.value[c]:void 0,a=c=>{const d=De(c)&&o?.[c]||c;return d&&n.ref(d)},i=c=>a(r(c)||e.getAttribute(`b-loading-${hz(c)}`)),s=r("fullscreen")??t.modifiers.fullscreen,l={text:i("text"),svg:i("svg"),svgViewBox:i("svgViewBox"),spinner:i("spinner"),background:i("background"),customClass:i("customClass"),fullscreen:s,target:r("target")??(s?void 0:e),body:r("body")??t.modifiers.body,lock:r("lock")??t.modifiers.lock};e[hg]={options:l,instance:nf(l)}},Hge=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},of={mounted(e,t){t.value&&ZB(e,t)},updated(e,t){const o=e[hg];t.oldValue!==t.value&&(t.value&&!t.oldValue?ZB(e,t):t.value&&t.oldValue?it(t.value)&&Hge(t.value,o.options):o?.instance.close())},unmounted(e){e[hg]?.instance.close()}},XB={install(e){e.directive("loading",of),e.config.globalProperties.$loading=nf},directive:of,service:nf},pg=["success","info","warning","error"],sn=st({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Re?document.body:void 0}),JB=ne({customClass:{type:String,default:sn.customClass},center:{type:Boolean,default:sn.center},dangerouslyUseHTMLString:{type:Boolean,default:sn.dangerouslyUseHTMLString},duration:{type:Number,default:sn.duration},icon:{type:Je,default:sn.icon},id:{type:String,default:sn.id},message:{type:K([String,Object,Function]),default:sn.message},onClose:{type:K(Function),required:!1},showClose:{type:Boolean,default:sn.showClose},type:{type:String,values:pg,default:sn.type},offset:{type:Number,default:sn.offset},zIndex:{type:Number,default:sn.zIndex},grouping:{type:Boolean,default:sn.grouping},repeatNum:{type:Number,default:sn.repeatNum}}),QB={destroy:()=>!0},Yo=n.shallowReactive([]),Wge=e=>{const t=Yo.findIndex(a=>a.id===e),o=Yo[t];let r;return t>0&&(r=Yo[t-1]),{current:o,prev:r}},Kge=e=>{const{prev:t}=Wge(e);return t?t.vm.exposed.bottom.value:0},jge=["id"],Uge=["innerHTML"],Gge=n.defineComponent({name:"BMessage"}),Yge=n.defineComponent({...Gge,props:JB,emits:QB,setup(e,{expose:t}){const o=e,{Close:r}=Ih,a=G("message"),i=n.ref(),s=n.ref(!1),l=n.ref(0);let c;const d=n.computed(()=>o.type?o.type==="error"?"danger":o.type:"info"),u=n.computed(()=>{const b=o.type;return{[a.bm("icon",b)]:b&&sr[b]}}),f=n.computed(()=>o.icon||sr[o.type]||""),h=n.computed(()=>Kge(o.id)),p=n.computed(()=>o.offset+h.value),m=n.computed(()=>l.value+p.value),g=n.computed(()=>({top:`${p.value}px`,zIndex:o.zIndex}));function y(){o.duration!==0&&({stop:c}=ga(()=>{$()},o.duration))}function w(){c?.()}function $(){s.value=!1}function C({code:b}){b===de.esc&&$()}return n.onMounted(()=>{y(),s.value=!0}),n.watch(()=>o.repeatNum,()=>{w(),y()}),Xe(document,"keydown",C),an(i,()=>{l.value=i.value.getBoundingClientRect().height}),t({visible:s,bottom:m,close:$}),(b,k)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(a).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:k[0]||(k[0]=S=>b.$emit("destroy")),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{id:b.id,ref_key:"messageRef",ref:i,class:n.normalizeClass([n.unref(a).b(),{[n.unref(a).m(b.type)]:b.type&&!b.icon},n.unref(a).is("center",b.center),n.unref(a).is("closable",b.showClose),b.customClass]),style:n.normalizeStyle(n.unref(g)),role:"alert","data-test-name":"message","data-test-variant":"","data-test-state":"",onMouseenter:w,onMouseleave:y},[b.repeatNum>1?(n.openBlock(),n.createBlock(n.unref(Pp),{key:0,value:b.repeatNum,type:n.unref(d),class:n.normalizeClass(n.unref(a).e("badge"))},null,8,["value","type","class"])):n.createCommentVNode("v-if",!0),n.unref(f)?(n.openBlock(),n.createBlock(n.unref(pe),{key:1,size:20,class:n.normalizeClass([n.unref(a).e("icon"),n.unref(u)])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(f))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),n.createElementVNode("p",{class:n.normalizeClass(n.unref(a).e("content")),innerHTML:b.message},null,10,Uge)],2112)):(n.openBlock(),n.createElementBlock("p",{key:0,class:n.normalizeClass(n.unref(a).e("content"))},n.toDisplayString(b.message),3))]),b.showClose?(n.openBlock(),n.createBlock(n.unref(pe),{key:2,class:n.normalizeClass(n.unref(a).e("closeBtn")),onClick:n.withModifiers($,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(r))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],46,jge),[[n.vShow,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var qge=Q(Yge,[["__file","message.vue"]]);let Zge=1;const eN=e=>{const t=!e||De(e)||n.isVNode(e)||nt(e)?{message:e}:e,o={...sn,...t};if(!o.appendTo)o.appendTo=document.body;else if(De(o.appendTo)){let r=document.querySelector(o.appendTo);ar(r)||(r=document.body),o.appendTo=r}return o},Xge=e=>{const t=Yo.indexOf(e);if(t===-1)return;Yo.splice(t,1);const{handler:o}=e;o.close()},Jge=({appendTo:e,...t},o)=>{const{nextZIndex:r}=Do(),a=`message_${Zge++}`,i=t.onClose,s=document.createElement("div"),l={...t,zIndex:r()+t.zIndex,id:a,onClose:()=>{i?.(),Xge(f)},onDestroy:()=>{n.render(null,s)}},c=n.createVNode(qge,l,nt(l.message)||n.isVNode(l.message)?{default:nt(l.message)?l.message:()=>l.message}:null);c.appContext=o||rs._context,n.render(c,s),e.appendChild(s.firstElementChild);const d=c.component,f={id:a,vnode:c,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:c.component.props};return f},rs=(e={},t)=>{if(!Re)return{close:()=>{}};if(Se(pu.max)&&Yo.length>=pu.max)return{close:()=>{}};const o=eN(e);if(o.grouping&&Yo.length){const a=Yo.find(({vnode:i})=>i.props?.message===o.message);if(a)return a.props.repeatNum+=1,a.props.type=o.type,a.handler}const r=Jge(o,t);return Yo.push(r),r.handler};pg.forEach(e=>{rs[e]=(t={},o)=>{const r=eN(t);return rs({...r,type:e},o)}});function Qge(e){for(const t of Yo)(!e||e===t.props.type)&&t.handler.close()}rs.closeAll=Qge,rs._context=null;var e2e=rs;const tN=EC(e2e,"$message"),t2e=n.defineComponent({name:"BMessageBox",directives:{TrapFocus:p8},components:{BButton:ve,BFocusTrap:ud,BInput:hn,BOverlay:bu,BIcon:pe,BFormItem:k1,...Ih},inheritAttrs:!1,props:{buttonSize:{type:String,validator:hi},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:o}=He(),r=G("message-box"),a=n.ref(!1),{nextZIndex:i}=Do(),s=n.reactive({autofocus:!1,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),l=n.computed(()=>{const v=s.type;return{[r.bm("icon",v)]:v&&sr[v]}}),c=po(),d=po(),u=At(n.computed(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),f=n.computed(()=>s.icon||sr[s.type]||""),h=n.computed(()=>!!s.message),p=n.ref(),m=n.ref(),g=n.ref(),y=n.ref(),w=n.ref(),$=n.computed(()=>s.confirmButtonClass);n.watch(()=>s.inputValue,async v=>{await n.nextTick(),e.boxType==="prompt"&&v!==null&&_()},{immediate:!0}),n.watch(()=>a.value,v=>{v&&(e.boxType!=="prompt"&&(s.autofocus?g.value=w.value?.$el??p.value:g.value=p.value),s.zIndex=i()),e.boxType==="prompt"&&(v?n.nextTick().then(()=>{y.value&&y.value.$el&&(s.autofocus?g.value=T()??p.value:g.value=p.value)}):(s.editorErrorMessage="",s.validateError=!1))});const C=n.computed(()=>e.draggable);op(p,m,C),n.onMounted(async()=>{await n.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",b)}),n.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",b)});function b(){!a.value||(a.value=!1,n.nextTick(()=>{s.action&&t("action",s.action)}))}const k=()=>{e.closeOnClickModal&&N(s.distinguishCancelAndClose?"close":"cancel")},S=Qc(k),E=v=>{if(s.inputType!=="textarea")return v.preventDefault(),N("confirm")},N=v=>{e.boxType==="prompt"&&v==="confirm"&&!_()||(s.action=v,s.beforeClose?s.beforeClose?.(v,s,b):b())},_=()=>{if(e.boxType==="prompt"){const v=s.inputPattern;if(v&&!v.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||o("b.messagebox.error"),s.validateError=!0,!1;const O=s.inputValidator;if(typeof O=="function"){const I=O(s.inputValue);if(I===!1)return s.editorErrorMessage=s.inputErrorMessage||o("b.messagebox.error"),s.validateError=!0,!1;if(typeof I=="string")return s.editorErrorMessage=I,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},T=()=>{const v=y.value.$refs;return v.input||v.textarea},P=()=>{N("close")},x=()=>{e.closeOnPressEscape&&P()};return e.lockScroll&&ap(a),VC(a),{...n.toRefs(s),ns:r,overlayEvent:S,visible:a,hasMessage:h,typeClass:l,contentId:c,inputId:d,btnSize:u,iconComponent:f,confirmButtonClasses:$,rootRef:p,focusStartRef:g,headerRef:m,inputRef:y,confirmRef:w,doClose:b,handleClose:P,onCloseRequested:x,handleWrapperClick:k,handleInputEnter:E,handleAction:N,Close:Nn,t:o}}}),n2e=["aria-label","aria-describedby"],o2e=["id"];function r2e(e,t,o,r,a,i){const s=n.resolveComponent("b-button"),l=n.resolveComponent("b-icon"),c=n.resolveComponent("b-input"),d=n.resolveComponent("b-form-item"),u=n.resolveComponent("b-focus-trap"),f=n.resolveComponent("b-overlay");return n.openBlock(),n.createBlock(n.Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:n.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[n.createVNode(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"rootRef",class:n.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:n.normalizeStyle(e.customStyle),tabindex:"-1","data-test-name":"message-box","data-test-variant":"","data-test-state":"",onClick:t[7]||(t[7]=n.withModifiers(()=>{},["stop"]))},[e.showClose?(n.openBlock(),n.createBlock(s,{key:0,xsmall:"",ghost:"",class:n.normalizeClass(e.ns.e("close")),"aria-label":e.t("b.messagebox.close"),icon:e.Close,onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=n.withKeys(n.withModifiers(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},null,8,["class","aria-label","icon"])):n.createCommentVNode("v-if",!0),e.title!==null&&e.title!==void 0&&e.title.length?(n.openBlock(),n.createElementBlock("h3",{key:1,ref:"headerRef",class:n.normalizeClass(e.ns.e("header"))},n.toDisplayString(e.title),3)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{id:e.contentId,class:n.normalizeClass(e.ns.e("content"))},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("container"))},[e.iconComponent?(n.openBlock(),n.createBlock(l,{key:0,size:48,class:n.normalizeClass([e.ns.e("status"),e.typeClass])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.hasMessage?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.e("message"))},[n.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):n.createCommentVNode("v-if",!0)],2),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("input"))},[n.createVNode(d,{error:e.editorErrorMessage},{default:n.withCtx(()=>[n.createVNode(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,onKeydown:n.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","onKeydown"])]),_:1},8,["error"])],2),[[n.vShow,e.showInput]])],10,o2e),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("actions"))},[n.withDirectives(n.createVNode(s,{ref:"confirmRef",primary:"",size:e.btnSize,loading:e.confirmButtonLoading,class:n.normalizeClass([e.confirmButtonClasses,e.ns.e("btn-confirm")]),disabled:e.confirmButtonDisabled,onClick:t[3]||(t[3]=h=>e.handleAction("confirm")),onKeydown:t[4]||(t[4]=n.withKeys(n.withModifiers(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.confirmButtonText||e.t("b.messagebox.confirm")),1)]),_:1},8,["size","loading","class","disabled"]),[[n.vShow,e.showConfirmButton]]),e.showCancelButton?(n.openBlock(),n.createBlock(s,{key:0,size:e.btnSize,loading:e.cancelButtonLoading,class:n.normalizeClass([e.cancelButtonClass,e.ns.e("btn-cancel")]),onClick:t[5]||(t[5]=h=>e.handleAction("cancel")),onKeydown:t[6]||(t[6]=n.withKeys(n.withModifiers(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.cancelButtonText||e.t("b.messagebox.cancel")),1)]),_:1},8,["size","loading","class"])):n.createCommentVNode("v-if",!0)],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,n2e)]),_:3},8,["z-index","overlay-class","mask"]),[[n.vShow,e.visible]])]),_:3})}var a2e=Q(t2e,[["render",r2e],["__file","index.vue"]]);const Jl=new Map,i2e=(e,t,o=null)=>{const r=n.createVNode(a2e,e,nt(e.message)||n.isVNode(e.message)?{default:nt(e.message)?e.message:()=>e.message}:null);return r.appContext=o,n.render(r,t),document.body.appendChild(t.firstElementChild),r.component},s2e=()=>document.createElement("div"),l2e=(e,t)=>{const o=s2e();e.onVanish=()=>{n.render(null,o),Jl.delete(a)},e.onAction=i=>{const s=Jl.get(a);let l;e.showInput?l={value:a.inputValue,action:i}:l=i,e.callback?e.callback(l,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const r=i2e(e,o,t),a=r.proxy;for(const i in e)Kt(e,i)&&!Kt(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function as(e,t=null){if(!Re)return Promise.reject();let o;return De(e)||n.isVNode(e)?e={message:e}:o=e.callback,new Promise((r,a)=>{const i=l2e(e,t??as._context);Jl.set(i,{options:e,callback:o,resolve:r,reject:a})})}const c2e=["alert","confirm","prompt"],d2e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};c2e.forEach(e=>{as[e]=u2e(e)});function u2e(e){return(t,o,r,a)=>{let i="";return it(o)?(r=o,i=""):Vt(o)?i="":i=o,as(Object.assign({title:i,message:t,type:"",...d2e[e]},r,{boxType:e}),a)}}as.close=()=>{Jl.forEach((e,t)=>{t.doClose()}),Jl.clear()},as._context=null;const aa=as;aa.install=e=>{aa._context=e._context,e.config.globalProperties.$msgbox=aa,e.config.globalProperties.$messageBox=aa,e.config.globalProperties.$alert=aa.alert,e.config.globalProperties.$confirm=aa.confirm,e.config.globalProperties.$prompt=aa.prompt};const nN=aa,mg=["success","info","warning","error"],oN=ne({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Je},id:{type:String,default:""},message:{type:K([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:K(Function),default:()=>{}},onClose:{type:K(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...mg,""],default:""},zIndex:{type:Number,default:0}}),rN={destroy:()=>!0},f2e=["id"],h2e=["textContent"],p2e={key:0},m2e=["innerHTML"],g2e=n.defineComponent({name:"BNotification"}),y2e=n.defineComponent({...g2e,props:oN,emits:rN,setup(e,{expose:t}){const o=e,r=G("notification"),{Close:a}=SC,i=n.ref(!1);let s;const l=n.computed(()=>{const y=o.type;return y&&sr[o.type]?r.m(y):""}),c=n.computed(()=>o.type&&sr[o.type]||o.icon),d=n.computed(()=>o.position.endsWith("right")?"right":"left"),u=n.computed(()=>o.position.startsWith("top")?"top":"bottom"),f=n.computed(()=>({[u.value]:`${o.offset}px`,zIndex:o.zIndex}));function h(){o.duration>0&&({stop:s}=ga(()=>{i.value&&m()},o.duration))}function p(){s?.()}function m(){i.value=!1}function g({code:y}){y===de.delete||y===de.backspace?p():y===de.esc?i.value&&m():h()}return n.onMounted(()=>{h(),i.value=!0}),Xe(document,"keydown",g),t({visible:i,close:m}),(y,w)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(r).b("fade"),onBeforeLeave:y.onClose,onAfterLeave:w[1]||(w[1]=$=>y.$emit("destroy")),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{id:y.id,class:n.normalizeClass([n.unref(r).b(),y.customClass,n.unref(d),n.unref(l)]),style:n.normalizeStyle(n.unref(f)),role:"alert","data-test-name":"notification","data-test-variant":"","data-test-state":"",onMouseenter:p,onMouseleave:h,onClick:w[0]||(w[0]=(...$)=>y.onClick&&y.onClick(...$))},[n.unref(c)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(r).e("icon-wrapper")])},[n.createVNode(n.unref(pe),{class:n.normalizeClass([n.unref(r).e("icon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(c))))]),_:1},8,["class"])],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("group"))},[n.createElementVNode("h5",{class:n.normalizeClass(n.unref(r).e("title")),textContent:n.toDisplayString(y.title)},null,10,h2e),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(n.unref(r).e("content")),style:n.normalizeStyle(y.title?void 0:{marginTop:"4px"})},[n.renderSlot(y.$slots,"default",{},()=>[y.dangerouslyUseHTMLString?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" Caution here, message could've been compromized, nerver use user's input as message "),n.createCommentVNode(" eslint-disable-next-line "),n.createElementVNode("p",{innerHTML:y.message},null,8,m2e)],2112)):(n.openBlock(),n.createElementBlock("p",p2e,n.toDisplayString(y.message),1))])],6),[[n.vShow,y.message]]),y.showClose?(n.openBlock(),n.createBlock(n.unref(ve),{key:0,primary:"",xsmall:"",class:n.normalizeClass(n.unref(r).e("closeBtn")),icon:n.unref(a),onClick:n.withModifiers(m,["stop"])},null,8,["class","icon","onClick"])):n.createCommentVNode("v-if",!0)],2)],46,f2e),[[n.vShow,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});var b2e=Q(y2e,[["__file","notification.vue"]]);const rf={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},gg=16;let C2e=1;const is=function(e={},t=null){if(!Re)return{close:()=>{}};(typeof e=="string"||n.isVNode(e))&&(e={message:e});const o=e.position||"top-right";let r=e.offset||0;rf[o].forEach(({vm:f})=>{r+=(f.el?.offsetHeight||0)+gg}),r+=gg;const{nextZIndex:a}=Do(),i=`notification_${C2e++}`,s=e.onClose,l={...e,zIndex:a(),offset:r,id:i,onClose:()=>{w2e(i,o,s)}};let c=document.body;ar(e.appendTo)?c=e.appendTo:De(e.appendTo)&&(c=document.querySelector(e.appendTo)),ar(c)||(c=document.body);const d=document.createElement("div"),u=n.createVNode(b2e,l,n.isVNode(l.message)?{default:()=>l.message}:null);return u.appContext=t??is._context,u.props.onDestroy=()=>{n.render(null,d)},n.render(u,d),rf[o].push({vm:u}),c.appendChild(d.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};mg.forEach(e=>{is[e]=(t={})=>((typeof t=="string"||n.isVNode(t))&&(t={message:t}),is({...t,type:e}))});function w2e(e,t,o){const r=rf[t],a=r.findIndex(({vm:d})=>d.component?.props.id===e);if(a===-1)return;const{vm:i}=r[a];if(!i)return;o?.(i);const s=i.el.offsetHeight,l=t.split("-")[0];r.splice(a,1);const c=r.length;if(!(c<1))for(let d=a;d<c;d++){const{el:u,component:f}=r[d].vm,h=Number.parseInt(u.style[l],10)-s-gg;f.props.offset=h}}function $2e(){for(const e of Object.values(rf))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}is.closeAll=$2e,is._context=null;var k2e=is;const aN=EC(k2e,"$notify");var S2e=[YB,XB,tN,nN,aN,s0],yg=_3([...Oge,...S2e]);const iN=60,sN=iN*60,lN=sN*24,E2e=lN*7,ss=1e3,bg=iN*ss,cN=sN*ss,B2e=lN*ss,N2e=E2e*ss,Cg="millisecond",ls="second",cs="minute",ds="hour",ia="day",af="week",Bo="month",dN="quarter",sa="year",us="date",_2e="YYYY-MM-DDTHH:mm:ssZ",uN="Invalid Date",T2e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A2e=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var x2e={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")};const wg=(e,t,o)=>{const r=String(e);return!r||r.length>=t?e:`${Array(t+1-r.length).join(o)}${e}`},M2e=e=>{const t=-e.utcOffset(),o=Math.abs(t),r=Math.floor(o/60),a=o%60;return`${t<=0?"+":"-"}${wg(r,2,"0")}:${wg(a,2,"0")}`},fN=(e,t)=>{if(e.date()<t.date())return-fN(t,e);const o=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(o,Bo),a=t-r<0,i=e.clone().add(o+(a?-1:1),Bo);return+(-(o+(t-r)/(a?r-i:i-r))||0)};var P2e={s:wg,z:M2e,m:fN,a:e=>e<0?Math.ceil(e)||0:Math.floor(e),p:e=>({M:Bo,y:sa,w:af,d:ia,D:us,h:ds,m:cs,s:ls,ms:Cg,Q:dN})[e]||String(e||"").toLowerCase().replace(/s$/,""),u:e=>e===void 0};let Ql="en";const Ga={};Ga[Ql]=x2e;const $g=e=>e instanceof sf,ec=(e,t,o)=>{let r;if(!e)return Ql;if(typeof e=="string"){const a=e.toLowerCase();Ga[a]&&(r=a),t&&(Ga[a]=t,r=a);const i=e.split("-");if(!r&&i.length>1)return ec(i[0])}else{const{name:a}=e;Ga[a]=e,r=a}return!o&&r&&(Ql=r),r||!o&&Ql},Ht=function(e,t){if($g(e))return e.clone();const o=typeof t=="object"?t:{};return o.date=e,o.args=arguments,new sf(o)},v2e=(e,t)=>Ht(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset}),ft=P2e;ft.l=ec,ft.i=$g,ft.w=v2e;const O2e=e=>{const{date:t,utc:o}=e;if(t===null)return new Date(NaN);if(ft.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){const r=t.match(T2e);if(r){const a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return o?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)};class sf{constructor(t){this.$L=ec(t.locale,null,!0),this.parse(t)}parse(t){this.$d=O2e(t),this.$x=t.x||{},this.init()}init(){const{$d:t}=this;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()}$utils(){return ft}isValid(){return this.$d.toString()!==uN}isSame(t,o){const r=Ht(t);return this.startOf(o)<=r&&r<=this.endOf(o)}isAfter(t,o){return Ht(t)<this.startOf(o)}isBefore(t,o){return this.endOf(o)<Ht(t)}$g(t,o,r){return ft.u(t)?this[o]:this.set(r,t)}unix(){return Math.floor(this.valueOf()/1e3)}valueOf(){return this.$d.getTime()}startOf(t,o){const r=ft.u(o)?!0:o,a=ft.p(t),i=(f,h)=>{const p=ft.w(this.$u?Date.UTC(this.$y,h,f):new Date(this.$y,h,f),this);return r?p:p.endOf(ia)},s=(f,h)=>{const p=[0,0,0,0],m=[23,59,59,999];return ft.w(this.toDate()[f].apply(this.toDate("s"),(r?p:m).slice(h)),this)},{$W:l,$M:c,$D:d}=this,u=`set${this.$u?"UTC":""}`;switch(a){case sa:return r?i(1,0):i(31,11);case Bo:return r?i(1,c):i(0,c+1);case af:{const f=this.$locale().weekStart||0,h=(l<f?l+7:l)-f;return i(r?d-h:d+(6-h),c)}case ia:case us:return s(`${u}Hours`,0);case ds:return s(`${u}Minutes`,1);case cs:return s(`${u}Seconds`,2);case ls:return s(`${u}Milliseconds`,3);default:return this.clone()}}endOf(t){return this.startOf(t,!1)}$set(t,o){const r=ft.p(t),a=`set${this.$u?"UTC":""}`,i={[ia]:`${a}Date`,[us]:`${a}Date`,[Bo]:`${a}Month`,[sa]:`${a}FullYear`,[ds]:`${a}Hours`,[cs]:`${a}Minutes`,[ls]:`${a}Seconds`,[Cg]:`${a}Milliseconds`}[r],s=r===ia?this.$D+(o-this.$W):o;if(r===Bo||r===sa){const l=this.clone().set(us,1);l.$d[i](s),l.init(),this.$d=l.set(us,Math.min(this.$D,l.daysInMonth())).$d}else i&&this.$d[i](s);return this.init(),this}set(t,o){return this.clone().$set(t,o)}get(t){return this[ft.p(t)]()}add(t,o){t=Number(t);const r=ft.p(o),a=l=>{const c=Ht(this);return ft.w(c.date(c.date()+Math.round(l*t)),this)};if(r===Bo)return this.set(Bo,this.$M+t);if(r===sa)return this.set(sa,this.$y+t);if(r===ia)return a(1);if(r===af)return a(7);const i={[cs]:bg,[ds]:cN,[ls]:ss}[r]||1,s=this.$d.getTime()+t*i;return ft.w(s,this)}subtract(t,o){return this.add(t*-1,o)}format(t){const o=this.$locale();if(!this.isValid())return o.invalidDate||uN;const r=t||_2e,a=ft.z(this),{$H:i,$m:s,$M:l}=this,{weekdays:c,months:d,meridiem:u}=o,f=(g,y,w,$)=>g&&(g[y]||g(this,r))||w[y].slice(0,$),h=g=>ft.s(i%12||12,g,"0"),p=u||((g,y,w)=>{const $=g<12?"AM":"PM";return w?$.toLowerCase():$}),m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:ft.s(l+1,2,"0"),MMM:f(o.monthsShort,l,d,3),MMMM:f(d,l),D:this.$D,DD:ft.s(this.$D,2,"0"),d:String(this.$W),dd:f(o.weekdaysMin,this.$W,c,2),ddd:f(o.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:ft.s(i,2,"0"),h:h(1),hh:h(2),a:p(i,s,!0),A:p(i,s,!1),m:String(s),mm:ft.s(s,2,"0"),s:String(this.$s),ss:ft.s(this.$s,2,"0"),SSS:ft.s(this.$ms,3,"0"),Z:a};return r.replace(A2e,(g,y)=>y||m[g]||a.replace(":",""))}utcOffset(){return-Math.round(this.$d.getTimezoneOffset()/15)*15}diff(t,o,r){const a=ft.p(o),i=Ht(t),s=(i.utcOffset()-this.utcOffset())*bg,l=this-i;let c=ft.m(this,i);return c={[sa]:c/12,[Bo]:c,[dN]:c/3,[af]:(l-s)/N2e,[ia]:(l-s)/B2e,[ds]:l/cN,[cs]:l/bg,[ls]:l/ss}[a]||l,r?c:ft.a(c)}daysInMonth(){return this.endOf(Bo).$D}$locale(){return Ga[this.$L]}locale(t,o){if(!t)return this.$L;const r=this.clone(),a=ec(t,o,!0);return a&&(r.$L=a),r}clone(){return ft.w(this.$d,this)}toDate(){return new Date(this.valueOf())}toJSON(){return this.isValid()?this.toISOString():null}toISOString(){return this.$d.toISOString()}toString(){return this.$d.toUTCString()}}const hN=sf.prototype;Ht.prototype=hN,[["$ms",Cg],["$s",ls],["$m",cs],["$H",ds],["$W",ia],["$M",Bo],["$y",sa],["$D",us]].forEach(e=>{hN[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),Ht.extend=(e,t)=>(e.$i||(e(t,sf,Ht),e.$i=!0),Ht),Ht.locale=ec,Ht.isDayjs=$g,Ht.unix=e=>Ht(e*1e3),Ht.en=Ga[Ql],Ht.Ls=Ga,Ht.p={};const I2e=yg.install,D2e=yg.version;var R2e={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"},L2e=Object.freeze({__proto__:null,default:R2e});A.BAR_MAP=gp,A.BAffix=M3,A.BAlert=D3,A.BAside=Dw,A.BAutoResizer=YE,A.BAutocomplete=D4,A.BAvatar=V4,A.BBacktop=W4,A.BBadge=Pp,A.BBarChart=J9,A.BBreadcrumb=Y4,A.BBreadcrumbItem=q4,A.BBubbleChart=ew,A.BButton=ve,A.BButtonGroup=Op,A.BCalendar=M8,A.BCard=v8,A.BCarousel=V8,A.BCarouselItem=F8,A.BCascader=c6,A.BCascaderPanel=s6,A.BChart=X9,A.BCheckTag=lw,A.BCheckbox=xn,A.BCheckboxButton=U8,A.BCheckboxGroup=nm,A.BCol=lt,A.BCollapse=mw,A.BCollapseItem=gw,A.BCollapseTransition=fw,A.BCollection=$$,A.BCollectionItem=k$,A.BColorPicker=_w,A.BConfigProvider=Aw,A.BContainer=Iw,A.BDataValue=Die,A.BDatePicker=e$,A.BDescriptions=o$,A.BDescriptionsItem=r$,A.BDialog=l$,A.BDivider=m1,A.BDonutChart=ow,A.BDrawer=f$,A.BDropdown=T$,A.BDropdownItem=A$,A.BDropdownMenu=x$,A.BEmpty=$1,A.BFooter=Rw,A.BForm=I$,A.BFormItem=k1,A.BHeader=Lw,A.BIcon=pe,A.BImage=F$,A.BImageViewer=S1,A.BInfiniteScroll=YB,A.BInput=hn,A.BLineChart=Q9,A.BLink=j$,A.BLoading=XB,A.BLoadingDirective=of,A.BLoadingService=nf,A.BLottie=U$,A.BMain=Vw,A.BMenu=d7,A.BMenuItem=u7,A.BMenuItemGroup=f7,A.BMenuToggle=h7,A.BMessage=tN,A.BMessageBox=nN,A.BNotification=aN,A.BNumericInput=E1,A.BOption=Fa,A.BOptionGroup=C7,A.BOverlay=bu,A.BPageHeader=g7,A.BPagination=S7,A.BPhoneInput=gS,A.BPieChart=tw,A.BPolarAreaChart=nw,A.BPopconfirm=B7,A.BPopover=wS,A.BPopoverDirective=s0,A.BPopper=Mp,A.BPopperArrow=G3,A.BPopperContent=_4,A.BPopperTrigger=X3,A.BProgress=l0,A.BRadarChart=rw,A.BRadio=am,A.BRadioButton=t6,A.BRadioGroup=e6,A.BRate=ES,A.BResult=NS,A.BRow=to,A.BScatterChart=aw,A.BScrollbar=bo,A.BSelect=jo,A.BSelectV2=ZS,A.BSkeleton=oE,A.BSkeletonItem=rE,A.BSlider=lE,A.BSpace=B0,A.BSpacer=Ko,A.BStep=pE,A.BSteps=hE,A.BSubMenu=Ise,A.BSwitch=bE,A.BTabPane=sB,A.BTable=PE,A.BTableColumn=vE,A.BTableV2=GE,A.BTabs=iB,A.BTag=Ni,A.BTimePicker=_8,A.BTimeSelect=cB,A.BTimeline=fB,A.BTimelineItem=hB,A.BTooltip=Xt,A.BTransfer=wB,A.BTree=EB,A.BTreeSelect=NB,A.BTreeV2=OB,A.BUpload=UB,A.CASCADER_PANEL_INJECTION_KEY=Ed,A.CHANGE_EVENT=ct,A.ChartUtils=Coe,A.ClickOutside=Bi,A.CommonPicker=Hp,A.CommonProps=lm,A.DEFAULT_FORMATS_DATE=Sa,A.DEFAULT_FORMATS_DATEPICKER=o8,A.DEFAULT_FORMATS_TIME=pd,A.DROPDOWN_COLLECTION_INJECTION_KEY=S$,A.DROPDOWN_COLLECTION_ITEM_INJECTION_KEY=E$,A.DROPDOWN_INJECTION_KEY=Il,A.DefaultProps=o6,A.DynamicSizeGrid=GS,A.DynamicSizeList=RS,A.EVENT_CODE=de,A.Effect=j3,A.FIRST_KEYS=C$,A.FIRST_LAST_KEYS=w$,A.FORWARD_REF_INJECTION_KEY=cp,A.FixedSizeGrid=VS,A.FixedSizeList=k0,A.GAP=wa,A.ID_INJECTION_KEY=xC,A.INPUT_EVENT=_n,A.INSTALLED_KEY=Dh,A.IconComponentMap=c0,A.IconMap=za,A.LAST_KEYS=w1,A.LEFT_CHECK_CHANGE_EVENT=Z0,A.Mousewheel=N8,A.POPPER_CONTAINER_ID=sp,A.POPPER_CONTAINER_SELECTOR=lp,A.POPPER_CONTENT_INJECTION_KEY=ep,A.POPPER_INJECTION_KEY=Gc,A.RIGHT_CHECK_CHANGE_EVENT=X0,A.ROOT_PICKER_INJECTION_KEY=qc,A.RowAlign=Gw,A.RowJustify=Uw,A.TOOLTIP_INJECTION_KEY=Vs,A.TOOLTIP_V2_OPEN=Yc,A.TableV2=jE,A.TableV2Alignment=Qi,A.TableV2FixedDir=v0,A.TableV2Placeholder=es,A.TableV2SortOrder=Ji,A.TimePickPanel=el,A.TrapFocus=p8,A.UPDATE_MODEL_EVENT=Pe,A.WEEK_DAYS=Kc,A.affixEmits=A3,A.affixProps=T3,A.alertEffects=v3,A.alertEmits=I3,A.alertProps=O3,A.arrowMiddleware=E3,A.autoResizerProps=UE,A.autocompleteEmits=O4,A.autocompleteProps=v4,A.avatarEmits=L4,A.avatarProps=R4,A.bPaginationKey=Yh,A.backtopEmits=z4,A.backtopProps=F4,A.badgeProps=K4,A.breadcrumbItemProps=U4,A.breadcrumbKey=zh,A.breadcrumbProps=j4,A.buildLocaleContext=vC,A.buildTimeList=md,A.buildTranslator=MC,A.buttonEmits=X4,A.buttonGroupContextKey=Hh,A.buttonNativeTypes=Z4,A.buttonProps=hd,A.buttonTypes=vp,A.calendarEmits=x8,A.calendarProps=A8,A.cardProps=P8,A.carouselContextKey=Wh,A.carouselEmits=I8,A.carouselItemProps=R8,A.carouselProps=O8,A.checkTagEmits=sw,A.checkTagProps=iw,A.checkboxEmits=tm,A.checkboxGroupContextKey=Rs,A.checkboxGroupEmits=K8,A.checkboxGroupProps=W8,A.checkboxProps=em,A.colProps=cw,A.collapseContextKey=Kh,A.collapseEmits=uw,A.collapseItemProps=hw,A.collapseProps=dw,A.colorPickerContextKey=a1,A.colorPickerEmits=ww,A.colorPickerProps=Cw,A.componentSizeMap=NC,A.componentSizes=ba,A.configProviderContextKey=jh,A.configProviderProps=Tw,A.createModelToggleComposable=ip,A.dateEquals=Lp,A.datePickTypes=BC,A.dayjs=Ht,A.default=yg,A.defaultNamespace=Hs,A.descriptionProps=t$,A.dialogEmits=h1,A.dialogInjectionKey=Uh,A.dialogProps=f1,A.dividerProps=c$,A.drawerEmits=u$,A.drawerProps=d$,A.dropdownItemProps=C1,A.dropdownMenuProps=b$,A.dropdownProps=Ol,A.emitChangeFn=o1,A.emptyProps=M$,A.extractDateFormat=r8,A.extractTimeFormat=Rp,A.formContextKey=Gh,A.formItemContextKey=Ir,A.formItemProps=P$,A.formatter=zp,A.genFileId=lg,A.getPositionDataWithUnit=aG,A.iconProps=P3,A.imageEmits=V$,A.imageProps=L$,A.imageViewerEmits=R$,A.imageViewerProps=D$,A.inputEmits=V3,A.inputProps=L3,A.install=I2e,A.linkEmits=K$,A.linkProps=W$,A.lottieProps=ose,A.makeInstaller=_3,A.makeList=gd,A.menuEmits=n7,A.menuItemEmits=r7,A.menuItemGroupProps=i7,A.menuItemProps=o7,A.menuProps=t7,A.menuToggleProps=l7,A.messageConfig=pu,A.messageDefaults=sn,A.messageEmits=QB,A.messageProps=JB,A.messageTypes=pg,A.notificationEmits=rN,A.notificationProps=oN,A.notificationTypes=mg,A.numericInputEmits=H$,A.numericInputProps=z$,A.overlayEmits=i$,A.overlayProps=a$,A.pageHeaderEmits=m7,A.pageHeaderProps=p7,A.paginationEmits=$7,A.paginationProps=w7,A.parseDate=Fp,A.phoneInputEmits=mS,A.phoneInputProps=pS,A.popconfirmProps=E7,A.popoverEmits=bS,A.popoverProps=yS,A.popperArrowProps=ad,A.popperContentEmits=xp,A.popperContentProps=fd,A.popperCoreConfigProps=Ap,A.popperProps=rd,A.popperTriggerProps=id,A.progressProps=$S,A.provideGlobalConfig=np,A.radioButtonProps=q8,A.radioEmits=rm,A.radioGroupEmits=J8,A.radioGroupKey=qh,A.radioGroupProps=X8,A.radioProps=G8,A.radioPropsBase=om,A.rangeArr=fr,A.rateEmits=SS,A.rateProps=kS,A.renderThumbStyle=F3,A.resultProps=BS,A.roleTypes=U3,A.rowContextKey=Zh,A.rowProps=Yw,A.scrollbarContextKey=Xh,A.scrollbarEmits=K3,A.scrollbarProps=W3,A.selectGroupKey=v1,A.selectKey=Dl,A.selectV2InjectionKey=E0,A.skeletonItemProps=nE,A.skeletonProps=tE,A.sliderContextKey=Jh,A.sliderEmits=iE,A.sliderProps=aE,A.spaceProps=eE,A.stepProps=uE,A.stepsEmits=dE,A.stepsProps=cE,A.subMenuProps=e7,A.switchEmits=gE,A.switchProps=mE,A.tabBarProps=qE,A.tabNavEmits=JE,A.tabNavProps=XE,A.tabPaneProps=oB,A.tableV2Props=FE,A.tableV2RowProps=ra,A.tabsEmits=nB,A.tabsProps=tB,A.tabsRootContextKey=Ls,A.tagEmits=l6,A.tagProps=_d,A.thumbProps=z3,A.timePickerDefaultProps=yd,A.timeUnits=Dp,A.timelineItemProps=dB,A.tooltipEmits=P4,A.tooltipV2ContentKey=tp,A.tooltipV2RootKey=Fs,A.transferCheckedChangeFn=Yu,A.transferEmits=bB,A.transferProps=Ua,A.translate=PC,A.uploadBaseProps=cg,A.uploadContentProps=WB,A.uploadContextKey=Qh,A.uploadDraggerEmits=zB,A.uploadDraggerProps=FB,A.uploadListEmits=LB,A.uploadListProps=RB,A.uploadListTypes=sg,A.uploadProps=DB,A.useAttrs=Uc,A.useCascaderConfig=r6,A.useCursor=B3,A.useDelayedRender=IU,A.useDelayedToggle=o3,A.useDelayedToggleProps=n3,A.useDeprecated=oU,A.useDialog=p1,A.useDisabled=ho,A.useDraggable=op,A.useEscapeKeydown=QC,A.useFloating=S3,A.useFloatingProps=oG,A.useFocus=AC,A.useFormItem=mo,A.useFormItemInputId=cr,A.useForwardRef=r3,A.useForwardRefDirective=a3,A.useGlobalConfig=Tn,A.useId=po,A.useLocale=He,A.useLockscreen=ap,A.useModal=SU,A.useModelToggle=NU,A.useModelToggleEmits=TU,A.useModelToggleProps=_U,A.useNamespace=G,A.useOrderedChildren=N3,A.usePopperArrowProps=LG,A.usePopperContainer=t3,A.usePopperContentEmits=nq,A.usePopperContentProps=tq,A.usePopperCoreConfigProps=eq,A.usePopperProps=OG,A.usePopperTriggerProps=HG,A.usePreventGlobal=AU,A.useProp=zs,A.useRestoreActive=VC,A.useSameTarget=Qc,A.useSize=At,A.useSizeProp=It,A.useSpace=QS,A.useTeleport=xU,A.useThrottleRender=FC,A.useTimeout=zC,A.useTooltipContentProps=Ft,A.useTooltipModelToggle=x4,A.useTooltipModelToggleEmits=A4,A.useTooltipModelToggleProps=T4,A.useTooltipProps=M4,A.useTooltipTriggerProps=Si,A.useTransitionFallthrough=vU,A.useTransitionFallthroughEmits=PU,A.useZIndex=Do,A.vLoading=of,A.vRepeatClick=Ea,A.valueEquals=Vp,A.version=D2e,A.virtualizedGridProps=ta,A.virtualizedListProps=b0,A.virtualizedProps=y0,A.virtualizedScrollbarProps=w0,Object.defineProperty(A,"__esModule",{value:!0})});
//# sourceMappingURL=index.full.min.js.map
