@opengis/filter 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Et={class:"flex items-center w-full rounded-lg group hover:bg-gray-100"},Bt={class:"flex items-center justify-between w-full text-sm"},Ct={class:"flex items-center cursor-pointer w-full"},Vt={key:0,width:"16",height:"auto",src:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGZpbGw9J3doaXRlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00xMi4yMDcgNC43OTNhMSAxIDAgMDEwIDEuNDE0bC01IDVhMSAxIDAgMDEtMS40MTQgMGwtMi0yYTEgMSAwIDAxMS40MTQtMS40MTRMNi41IDkuMDg2bDQuMjkzLTQuMjkzYTEgMSAwIDAxMS40MTQgMHonLz48L3N2Zz4="},Nt=["value"],St={class:"w-[calc(100%-18px)] flex flex-row items-center justify-between pl-[10px]"},Rt={class:"flex flex-row items-center font-normal text-gray-800 gap-x-1"},_t={key:0,class:"text-xs text-gray-500 dark:text-neutral-500"},Ie=e.defineComponent({__name:"list-item",props:{layout:{},count:{},type:{},label:{},value:{},isSelected:{type:Boolean},color:{}},emits:["itemClick"],setup(t,{emit:n}){const r=t,o=n;function l(){o("itemClick",r.value)}return(s,a)=>(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",Bt,[e.createElementVNode("div",Ct,[e.createElementVNode("label",{for:"radio-9740",class:e.normalizeClass(["inline","popover"].includes(s.layout)?"text-sm text-gray-500 px-2 w-full py-2 cursor-pointer !flex flex-row items-center":"flex flex-row items-center w-full px-2 py-2 text-sm text-gray-500 cursor-pointer"),onClick:e.withModifiers(l,["stop","prevent"])},[e.createElementVNode("div",{class:e.normalizeClass(["w-[18px] h-[18px] border rounded-[4px] flex items-center justify-center",[s.type==="checkbox"?"rounded-[4px]":"rounded-full",s.color?`bg-[${s.color}] border-[#ffffff]`:s.isSelected?"bg-[#2563eb] border-[#ffffff]":"bg-[#ffffff] border-[#d9d9d9]"]])},[s.isSelected?(e.openBlock(),e.createElementBlock("img",Vt)):e.createCommentVNode("",!0)],2),e.createElementVNode("input",{type:"checkbox",class:"hidden",id:"radio-9740",value:s.value},null,8,Nt),e.createElementVNode("div",St,[e.createElementVNode("span",Rt,e.toDisplayString(s.label??"Відсутні данні"),1),s.count?(e.openBlock(),e.createElementBlock("div",_t," ("+e.toDisplayString(s.count)+") ",1)):e.createCommentVNode("",!0)])],2)])])]))}});function qe(t,n){return function(){return t.apply(n,arguments)}}const{toString:Tt}=Object.prototype,{getPrototypeOf:xe}=Object,{iterator:oe,toStringTag:He}=Symbol,re=(t=>n=>{const r=Tt.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),O=t=>(t=t.toLowerCase(),n=>re(n)===t),le=t=>n=>typeof n===t,{isArray:q}=Array,J=le("undefined");function W(t){return t!==null&&!J(t)&&t.constructor!==null&&!J(t.constructor)&&_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ke=O("ArrayBuffer");function At(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Ke(t.buffer),n}const Ot=le("string"),_=le("function"),Je=le("number"),Y=t=>t!==null&&typeof t=="object",Ft=t=>t===!0||t===!1,X=t=>{if(re(t)!=="object")return!1;const n=xe(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(He in t)&&!(oe in t)},Dt=t=>{if(!Y(t)||W(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},$t=O("Date"),Mt=O("File"),Lt=O("Blob"),jt=O("FileList"),Pt=t=>Y(t)&&_(t.pipe),Ut=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||_(t.append)&&((n=re(t))==="formdata"||n==="object"&&_(t.toString)&&t.toString()==="[object FormData]"))},zt=O("URLSearchParams"),[It,qt,Ht,Kt]=["ReadableStream","Request","Response","Headers"].map(O),Jt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Q(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let o,l;if(typeof t!="object"&&(t=[t]),q(t))for(o=0,l=t.length;o<l;o++)n.call(null,t[o],o,t);else{if(W(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let u;for(o=0;o<a;o++)u=s[o],n.call(null,t[u],u,t)}}function We(t,n){if(W(t))return null;n=n.toLowerCase();const r=Object.keys(t);let o=r.length,l;for(;o-- >0;)if(l=r[o],n===l.toLowerCase())return l;return null}const P=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ye=t=>!J(t)&&t!==P;function pe(){const{caseless:t}=Ye(this)&&this||{},n={},r=(o,l)=>{const s=t&&We(n,l)||l;X(n[s])&&X(o)?n[s]=pe(n[s],o):X(o)?n[s]=pe({},o):q(o)?n[s]=o.slice():n[s]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&Q(arguments[o],r);return n}const Wt=(t,n,r,{allOwnKeys:o}={})=>(Q(n,(l,s)=>{r&&_(l)?t[s]=qe(l,r):t[s]=l},{allOwnKeys:o}),t),Yt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Qt=(t,n,r,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},Gt=(t,n,r,o)=>{let l,s,a;const u={};if(n=n||{},t==null)return n;do{for(l=Object.getOwnPropertyNames(t),s=l.length;s-- >0;)a=l[s],(!o||o(a,t,n))&&!u[a]&&(n[a]=t[a],u[a]=!0);t=r!==!1&&xe(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},Xt=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const o=t.indexOf(n,r);return o!==-1&&o===r},Zt=t=>{if(!t)return null;if(q(t))return t;let n=t.length;if(!Je(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},en=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&xe(Uint8Array)),tn=(t,n)=>{const o=(t&&t[oe]).call(t);let l;for(;(l=o.next())&&!l.done;){const s=l.value;n.call(t,s[0],s[1])}},nn=(t,n)=>{let r;const o=[];for(;(r=t.exec(n))!==null;)o.push(r);return o},on=O("HTMLFormElement"),rn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Ve=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),ln=O("RegExp"),Qe=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),o={};Q(r,(l,s)=>{let a;(a=n(l,s,t))!==!1&&(o[s]=a||l)}),Object.defineProperties(t,o)},sn=t=>{Qe(t,(n,r)=>{if(_(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=t[r];if(_(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},an=(t,n)=>{const r={},o=l=>{l.forEach(s=>{r[s]=!0})};return q(t)?o(t):o(String(t).split(n)),r},un=()=>{},cn=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function dn(t){return!!(t&&_(t.append)&&t[He]==="FormData"&&t[oe])}const fn=t=>{const n=new Array(10),r=(o,l)=>{if(Y(o)){if(n.indexOf(o)>=0)return;if(W(o))return o;if(!("toJSON"in o)){n[l]=o;const s=q(o)?[]:{};return Q(o,(a,u)=>{const f=r(a,l+1);!J(f)&&(s[u]=f)}),n[l]=void 0,s}}return o};return r(t,0)},pn=O("AsyncFunction"),mn=t=>t&&(Y(t)||_(t))&&_(t.then)&&_(t.catch),Ge=((t,n)=>t?setImmediate:n?((r,o)=>(P.addEventListener("message",({source:l,data:s})=>{l===P&&s===r&&o.length&&o.shift()()},!1),l=>{o.push(l),P.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_(P.postMessage)),hn=typeof queueMicrotask<"u"?queueMicrotask.bind(P):typeof process<"u"&&process.nextTick||Ge,gn=t=>t!=null&&_(t[oe]),m={isArray:q,isArrayBuffer:Ke,isBuffer:W,isFormData:Ut,isArrayBufferView:At,isString:Ot,isNumber:Je,isBoolean:Ft,isObject:Y,isPlainObject:X,isEmptyObject:Dt,isReadableStream:It,isRequest:qt,isResponse:Ht,isHeaders:Kt,isUndefined:J,isDate:$t,isFile:Mt,isBlob:Lt,isRegExp:ln,isFunction:_,isStream:Pt,isURLSearchParams:zt,isTypedArray:en,isFileList:jt,forEach:Q,merge:pe,extend:Wt,trim:Jt,stripBOM:Yt,inherits:Qt,toFlatObject:Gt,kindOf:re,kindOfTest:O,endsWith:Xt,toArray:Zt,forEachEntry:tn,matchAll:nn,isHTMLForm:on,hasOwnProperty:Ve,hasOwnProp:Ve,reduceDescriptors:Qe,freezeMethods:sn,toObjectSet:an,toCamelCase:rn,noop:un,toFiniteNumber:cn,findKey:We,global:P,isContextDefined:Ye,isSpecCompliantForm:dn,toJSONObject:fn,isAsyncFn:pn,isThenable:mn,setImmediate:Ge,asap:hn,isIterable:gn};function C(t,n,r,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}m.inherits(C,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=C.prototype,Ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ze[t]={value:t}});Object.defineProperties(C,Ze);Object.defineProperty(Xe,"isAxiosError",{value:!0});C.from=(t,n,r,o,l,s)=>{const a=Object.create(Xe);return m.toFlatObject(t,a,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),C.call(a,t.message,n,r,o,l),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const yn=null;function me(t){return m.isPlainObject(t)||m.isArray(t)}function et(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function Ne(t,n,r){return t?t.concat(n).map(function(l,s){return l=et(l),!r&&s?"["+l+"]":l}).join(r?".":""):n}function bn(t){return m.isArray(t)&&!t.some(me)}const vn=m.toFlatObject(m,{},null,function(n){return/^is[A-Z]/.test(n)});function se(t,n,r){if(!m.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!m.isUndefined(w[v])});const o=r.metaTokens,l=r.visitor||i,s=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(n);if(!m.isFunction(l))throw new TypeError("visitor must be a function");function p(y){if(y===null)return"";if(m.isDate(y))return y.toISOString();if(m.isBoolean(y))return y.toString();if(!f&&m.isBlob(y))throw new C("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(y)||m.isTypedArray(y)?f&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function i(y,v,w){let x=y;if(y&&!w&&typeof y=="object"){if(m.endsWith(v,"{}"))v=o?v:v.slice(0,-2),y=JSON.stringify(y);else if(m.isArray(y)&&bn(y)||(m.isFileList(y)||m.endsWith(v,"[]"))&&(x=m.toArray(y)))return v=et(v),x.forEach(function(g,k){!(m.isUndefined(g)||g===null)&&n.append(a===!0?Ne([v],k,s):a===null?v:v+"[]",p(g))}),!1}return me(y)?!0:(n.append(Ne(w,v,s),p(y)),!1)}const c=[],h=Object.assign(vn,{defaultVisitor:i,convertValue:p,isVisitable:me});function E(y,v){if(!m.isUndefined(y)){if(c.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(y),m.forEach(y,function(x,d){(!(m.isUndefined(x)||x===null)&&l.call(n,x,m.isString(d)?d.trim():d,v,h))===!0&&E(x,v?v.concat(d):[d])}),c.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return E(t),n}function Se(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function we(t,n){this._pairs=[],t&&se(t,this,n)}const tt=we.prototype;tt.append=function(n,r){this._pairs.push([n,r])};tt.toString=function(n){const r=n?function(o){return n.call(this,o,Se)}:Se;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function xn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,n,r){if(!n)return t;const o=r&&r.encode||xn;m.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let s;if(l?s=l(n,r):s=m.isURLSearchParams(n)?n.toString():new we(n,r).toString(o),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Re{constructor(){this.handlers=[]}use(n,r,o){return this.handlers.push({fulfilled:n,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){m.forEach(this.handlers,function(o){o!==null&&n(o)})}}const ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wn=typeof URLSearchParams<"u"?URLSearchParams:we,kn=typeof FormData<"u"?FormData:null,En=typeof Blob<"u"?Blob:null,Bn={isBrowser:!0,classes:{URLSearchParams:wn,FormData:kn,Blob:En},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,Cn=ke&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),Vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nn=ke&&window.location.href||"http://localhost",Sn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Cn,hasStandardBrowserWebWorkerEnv:Vn,navigator:he,origin:Nn},Symbol.toStringTag,{value:"Module"})),R={...Sn,...Bn};function Rn(t,n){return se(t,new R.classes.URLSearchParams,{visitor:function(r,o,l,s){return R.isNode&&m.isBuffer(r)?(this.append(o,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...n})}function _n(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Tn(t){const n={},r=Object.keys(t);let o;const l=r.length;let s;for(o=0;o<l;o++)s=r[o],n[s]=t[s];return n}function rt(t){function n(r,o,l,s){let a=r[s++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),f=s>=r.length;return a=!a&&m.isArray(l)?l.length:a,f?(m.hasOwnProp(l,a)?l[a]=[l[a],o]:l[a]=o,!u):((!l[a]||!m.isObject(l[a]))&&(l[a]=[]),n(r,o,l[a],s)&&m.isArray(l[a])&&(l[a]=Tn(l[a])),!u)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(o,l)=>{n(_n(o),l,r,0)}),r}return null}function An(t,n,r){if(m.isString(t))try{return(n||JSON.parse)(t),m.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(t)}const G={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,s=m.isObject(n);if(s&&m.isHTMLForm(n)&&(n=new FormData(n)),m.isFormData(n))return l?JSON.stringify(rt(n)):n;if(m.isArrayBuffer(n)||m.isBuffer(n)||m.isStream(n)||m.isFile(n)||m.isBlob(n)||m.isReadableStream(n))return n;if(m.isArrayBufferView(n))return n.buffer;if(m.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let u;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Rn(n,this.formSerializer).toString();if((u=m.isFileList(n))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return se(u?{"files[]":n}:n,f&&new f,this.formSerializer)}}return s||l?(r.setContentType("application/json",!1),An(n)):n}],transformResponse:[function(n){const r=this.transitional||G.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(m.isResponse(n)||m.isReadableStream(n))return n;if(n&&m.isString(n)&&(o&&!this.responseType||l)){const a=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(n)}catch(u){if(a)throw u.name==="SyntaxError"?C.from(u,C.ERR_BAD_RESPONSE,this,null,this.response):u}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],t=>{G.headers[t]={}});const On=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fn=t=>{const n={};let r,o,l;return t&&t.split(`
2
- `).forEach(function(a){l=a.indexOf(":"),r=a.substring(0,l).trim().toLowerCase(),o=a.substring(l+1).trim(),!(!r||n[r]&&On[r])&&(r==="set-cookie"?n[r]?n[r].push(o):n[r]=[o]:n[r]=n[r]?n[r]+", "+o:o)}),n},_e=Symbol("internals");function K(t){return t&&String(t).trim().toLowerCase()}function Z(t){return t===!1||t==null?t:m.isArray(t)?t.map(Z):String(t)}function Dn(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(t);)n[o[1]]=o[2];return n}const $n=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ce(t,n,r,o,l){if(m.isFunction(o))return o.call(this,n,r);if(l&&(n=r),!!m.isString(n)){if(m.isString(o))return n.indexOf(o)!==-1;if(m.isRegExp(o))return o.test(n)}}function Mn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,o)=>r.toUpperCase()+o)}function Ln(t,n){const r=m.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+r,{value:function(l,s,a){return this[o].call(this,n,l,s,a)},configurable:!0})})}let T=class{constructor(n){n&&this.set(n)}set(n,r,o){const l=this;function s(u,f,p){const i=K(f);if(!i)throw new Error("header name must be a non-empty string");const c=m.findKey(l,i);(!c||l[c]===void 0||p===!0||p===void 0&&l[c]!==!1)&&(l[c||f]=Z(u))}const a=(u,f)=>m.forEach(u,(p,i)=>s(p,i,f));if(m.isPlainObject(n)||n instanceof this.constructor)a(n,r);else if(m.isString(n)&&(n=n.trim())&&!$n(n))a(Fn(n),r);else if(m.isObject(n)&&m.isIterable(n)){let u={},f,p;for(const i of n){if(!m.isArray(i))throw TypeError("Object iterator must return a key-value pair");u[p=i[0]]=(f=u[p])?m.isArray(f)?[...f,i[1]]:[f,i[1]]:i[1]}a(u,r)}else n!=null&&s(r,n,o);return this}get(n,r){if(n=K(n),n){const o=m.findKey(this,n);if(o){const l=this[o];if(!r)return l;if(r===!0)return Dn(l);if(m.isFunction(r))return r.call(this,l,o);if(m.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=K(n),n){const o=m.findKey(this,n);return!!(o&&this[o]!==void 0&&(!r||ce(this,this[o],o,r)))}return!1}delete(n,r){const o=this;let l=!1;function s(a){if(a=K(a),a){const u=m.findKey(o,a);u&&(!r||ce(o,o[u],u,r))&&(delete o[u],l=!0)}}return m.isArray(n)?n.forEach(s):s(n),l}clear(n){const r=Object.keys(this);let o=r.length,l=!1;for(;o--;){const s=r[o];(!n||ce(this,this[s],s,n,!0))&&(delete this[s],l=!0)}return l}normalize(n){const r=this,o={};return m.forEach(this,(l,s)=>{const a=m.findKey(o,s);if(a){r[a]=Z(l),delete r[s];return}const u=n?Mn(s):String(s).trim();u!==s&&delete r[s],r[u]=Z(l),o[u]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return m.forEach(this,(o,l)=>{o!=null&&o!==!1&&(r[l]=n&&m.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const o=new this(n);return r.forEach(l=>o.set(l)),o}static accessor(n){const o=(this[_e]=this[_e]={accessors:{}}).accessors,l=this.prototype;function s(a){const u=K(a);o[u]||(Ln(l,a),o[u]=!0)}return m.isArray(n)?n.forEach(s):s(n),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);m.reduceDescriptors(T.prototype,({value:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[r]=o}}});m.freezeMethods(T);function de(t,n){const r=this||G,o=n||r,l=T.from(o.headers);let s=o.data;return m.forEach(t,function(u){s=u.call(r,s,l.normalize(),n?n.status:void 0)}),l.normalize(),s}function lt(t){return!!(t&&t.__CANCEL__)}function H(t,n,r){C.call(this,t??"canceled",C.ERR_CANCELED,n,r),this.name="CanceledError"}m.inherits(H,C,{__CANCEL__:!0});function st(t,n,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new C("Request failed with status code "+r.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function jn(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Pn(t,n){t=t||10;const r=new Array(t),o=new Array(t);let l=0,s=0,a;return n=n!==void 0?n:1e3,function(f){const p=Date.now(),i=o[s];a||(a=p),r[l]=f,o[l]=p;let c=s,h=0;for(;c!==l;)h+=r[c++],c=c%t;if(l=(l+1)%t,l===s&&(s=(s+1)%t),p-a<n)return;const E=i&&p-i;return E?Math.round(h*1e3/E):void 0}}function Un(t,n){let r=0,o=1e3/n,l,s;const a=(p,i=Date.now())=>{r=i,l=null,s&&(clearTimeout(s),s=null),t(...p)};return[(...p)=>{const i=Date.now(),c=i-r;c>=o?a(p,i):(l=p,s||(s=setTimeout(()=>{s=null,a(l)},o-c)))},()=>l&&a(l)]}const te=(t,n,r=3)=>{let o=0;const l=Pn(50,250);return Un(s=>{const a=s.loaded,u=s.lengthComputable?s.total:void 0,f=a-o,p=l(f),i=a<=u;o=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:p||void 0,estimated:p&&u&&i?(u-a)/p:void 0,event:s,lengthComputable:u!=null,[n?"download":"upload"]:!0};t(c)},r)},Te=(t,n)=>{const r=t!=null;return[o=>n[0]({lengthComputable:r,total:t,loaded:o}),n[1]]},Ae=t=>(...n)=>m.asap(()=>t(...n)),zn=R.hasStandardBrowserEnv?((t,n)=>r=>(r=new URL(r,R.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,In=R.hasStandardBrowserEnv?{write(t,n,r,o,l,s){const a=[t+"="+encodeURIComponent(n)];m.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),m.isString(o)&&a.push("path="+o),m.isString(l)&&a.push("domain="+l),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Hn(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function at(t,n,r){let o=!qn(n);return t&&(o||r==!1)?Hn(t,n):n}const Oe=t=>t instanceof T?{...t}:t;function z(t,n){n=n||{};const r={};function o(p,i,c,h){return m.isPlainObject(p)&&m.isPlainObject(i)?m.merge.call({caseless:h},p,i):m.isPlainObject(i)?m.merge({},i):m.isArray(i)?i.slice():i}function l(p,i,c,h){if(m.isUndefined(i)){if(!m.isUndefined(p))return o(void 0,p,c,h)}else return o(p,i,c,h)}function s(p,i){if(!m.isUndefined(i))return o(void 0,i)}function a(p,i){if(m.isUndefined(i)){if(!m.isUndefined(p))return o(void 0,p)}else return o(void 0,i)}function u(p,i,c){if(c in n)return o(p,i);if(c in t)return o(void 0,p)}const f={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(p,i,c)=>l(Oe(p),Oe(i),c,!0)};return m.forEach(Object.keys({...t,...n}),function(i){const c=f[i]||l,h=c(t[i],n[i],i);m.isUndefined(h)&&c!==u||(r[i]=h)}),r}const it=t=>{const n=z({},t);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:s,headers:a,auth:u}=n;n.headers=a=T.from(a),n.url=nt(at(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(m.isFormData(r)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[p,...i]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...i].join("; "))}}if(R.hasStandardBrowserEnv&&(o&&m.isFunction(o)&&(o=o(n)),o||o!==!1&&zn(n.url))){const p=l&&s&&In.read(s);p&&a.set(l,p)}return n},Kn=typeof XMLHttpRequest<"u",Jn=Kn&&function(t){return new Promise(function(r,o){const l=it(t);let s=l.data;const a=T.from(l.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:p}=l,i,c,h,E,y;function v(){E&&E(),y&&y(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let w=new XMLHttpRequest;w.open(l.method.toUpperCase(),l.url,!0),w.timeout=l.timeout;function x(){if(!w)return;const g=T.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),b={data:!u||u==="text"||u==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:g,config:t,request:w};st(function(A){r(A),v()},function(A){o(A),v()},b),w=null}"onloadend"in w?w.onloadend=x:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(x)},w.onabort=function(){w&&(o(new C("Request aborted",C.ECONNABORTED,t,w)),w=null)},w.onerror=function(){o(new C("Network Error",C.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let k=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const b=l.transitional||ot;l.timeoutErrorMessage&&(k=l.timeoutErrorMessage),o(new C(k,b.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,t,w)),w=null},s===void 0&&a.setContentType(null),"setRequestHeader"in w&&m.forEach(a.toJSON(),function(k,b){w.setRequestHeader(b,k)}),m.isUndefined(l.withCredentials)||(w.withCredentials=!!l.withCredentials),u&&u!=="json"&&(w.responseType=l.responseType),p&&([h,y]=te(p,!0),w.addEventListener("progress",h)),f&&w.upload&&([c,E]=te(f),w.upload.addEventListener("progress",c),w.upload.addEventListener("loadend",E)),(l.cancelToken||l.signal)&&(i=g=>{w&&(o(!g||g.type?new H(null,t,w):g),w.abort(),w=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));const d=jn(l.url);if(d&&R.protocols.indexOf(d)===-1){o(new C("Unsupported protocol "+d+":",C.ERR_BAD_REQUEST,t));return}w.send(s||null)})},Wn=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let o=new AbortController,l;const s=function(p){if(!l){l=!0,u();const i=p instanceof Error?p:this.reason;o.abort(i instanceof C?i:new H(i instanceof Error?i.message:i))}};let a=n&&setTimeout(()=>{a=null,s(new C(`timeout ${n} of ms exceeded`,C.ETIMEDOUT))},n);const u=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),t=null)};t.forEach(p=>p.addEventListener("abort",s));const{signal:f}=o;return f.unsubscribe=()=>m.asap(u),f}},Yn=function*(t,n){let r=t.byteLength;if(r<n){yield t;return}let o=0,l;for(;o<r;)l=o+n,yield t.slice(o,l),o=l},Qn=async function*(t,n){for await(const r of Gn(t))yield*Yn(r,n)},Gn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:r,value:o}=await n.read();if(r)break;yield o}}finally{await n.cancel()}},Fe=(t,n,r,o)=>{const l=Qn(t,n);let s=0,a,u=f=>{a||(a=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:i}=await l.next();if(p){u(),f.close();return}let c=i.byteLength;if(r){let h=s+=c;r(h)}f.enqueue(new Uint8Array(i))}catch(p){throw u(p),p}},cancel(f){return u(f),l.return()}},{highWaterMark:2})},ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ut=ae&&typeof ReadableStream=="function",Xn=ae&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ct=(t,...n)=>{try{return!!t(...n)}catch{return!1}},Zn=ut&&ct(()=>{let t=!1;const n=new Request(R.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),De=64*1024,ge=ut&&ct(()=>m.isReadableStream(new Response("").body)),ne={stream:ge&&(t=>t.body)};ae&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!ne[n]&&(ne[n]=m.isFunction(t[n])?r=>r[n]():(r,o)=>{throw new C(`Response type '${n}' is not supported`,C.ERR_NOT_SUPPORT,o)})})})(new Response);const eo=async t=>{if(t==null)return 0;if(m.isBlob(t))return t.size;if(m.isSpecCompliantForm(t))return(await new Request(R.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(m.isArrayBufferView(t)||m.isArrayBuffer(t))return t.byteLength;if(m.isURLSearchParams(t)&&(t=t+""),m.isString(t))return(await Xn(t)).byteLength},to=async(t,n)=>{const r=m.toFiniteNumber(t.getContentLength());return r??eo(n)},no=ae&&(async t=>{let{url:n,method:r,data:o,signal:l,cancelToken:s,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:p,headers:i,withCredentials:c="same-origin",fetchOptions:h}=it(t);p=p?(p+"").toLowerCase():"text";let E=Wn([l,s&&s.toAbortSignal()],a),y;const v=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let w;try{if(f&&Zn&&r!=="get"&&r!=="head"&&(w=await to(i,o))!==0){let b=new Request(n,{method:"POST",body:o,duplex:"half"}),B;if(m.isFormData(o)&&(B=b.headers.get("content-type"))&&i.setContentType(B),b.body){const[A,I]=Te(w,te(Ae(f)));o=Fe(b.body,De,A,I)}}m.isString(c)||(c=c?"include":"omit");const x="credentials"in Request.prototype;y=new Request(n,{...h,signal:E,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:o,duplex:"half",credentials:x?c:void 0});let d=await fetch(y,h);const g=ge&&(p==="stream"||p==="response");if(ge&&(u||g&&v)){const b={};["status","statusText","headers"].forEach(V=>{b[V]=d[V]});const B=m.toFiniteNumber(d.headers.get("content-length")),[A,I]=u&&Te(B,te(Ae(u),!0))||[];d=new Response(Fe(d.body,De,A,()=>{I&&I(),v&&v()}),b)}p=p||"text";let k=await ne[m.findKey(ne,p)||"text"](d,t);return!g&&v&&v(),await new Promise((b,B)=>{st(b,B,{data:k,headers:T.from(d.headers),status:d.status,statusText:d.statusText,config:t,request:y})})}catch(x){throw v&&v(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,t,y),{cause:x.cause||x}):C.from(x,x&&x.code,t,y)}}),ye={http:yn,xhr:Jn,fetch:no};m.forEach(ye,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const $e=t=>`- ${t}`,oo=t=>m.isFunction(t)||t===null||t===!1,dt={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:n}=t;let r,o;const l={};for(let s=0;s<n;s++){r=t[s];let a;if(o=r,!oo(r)&&(o=ye[(a=String(r)).toLowerCase()],o===void 0))throw new C(`Unknown adapter '${a}'`);if(o)break;l[a||"#"+s]=o}if(!o){const s=Object.entries(l).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
4
- `+s.map($e).join(`
5
- `):" "+$e(s[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:ye};function fe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new H(null,t)}function Me(t){return fe(t),t.headers=T.from(t.headers),t.data=de.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),dt.getAdapter(t.adapter||G.adapter)(t).then(function(o){return fe(t),o.data=de.call(t,t.transformResponse,o),o.headers=T.from(o.headers),o},function(o){return lt(o)||(fe(t),o&&o.response&&(o.response.data=de.call(t,t.transformResponse,o.response),o.response.headers=T.from(o.response.headers))),Promise.reject(o)})}const ft="1.11.0",ie={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{ie[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});const Le={};ie.transitional=function(n,r,o){function l(s,a){return"[Axios v"+ft+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,u)=>{if(n===!1)throw new C(l(a," has been removed"+(r?" in "+r:"")),C.ERR_DEPRECATED);return r&&!Le[a]&&(Le[a]=!0,console.warn(l(a," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(s,a,u):!0}};ie.spelling=function(n){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function ro(t,n,r){if(typeof t!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let l=o.length;for(;l-- >0;){const s=o[l],a=n[s];if(a){const u=t[s],f=u===void 0||a(u,s,t);if(f!==!0)throw new C("option "+s+" must be "+f,C.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new C("Unknown option "+s,C.ERR_BAD_OPTION)}}const ee={assertOptions:ro,validators:ie},D=ee.validators;let U=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Re,response:new Re}}async request(n,r){try{return await this._request(n,r)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const s=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
- `+s):o.stack=s}catch{}}throw o}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=z(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:s}=r;o!==void 0&&ee.assertOptions(o,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),l!=null&&(m.isFunction(l)?r.paramsSerializer={serialize:l}:ee.assertOptions(l,{encode:D.function,serialize:D.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ee.assertOptions(r,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&m.merge(s.common,s[r.method]);s&&m.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=T.concat(a,s);const u=[];let f=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(f=f&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const p=[];this.interceptors.response.forEach(function(v){p.push(v.fulfilled,v.rejected)});let i,c=0,h;if(!f){const y=[Me.bind(this),void 0];for(y.unshift(...u),y.push(...p),h=y.length,i=Promise.resolve(r);c<h;)i=i.then(y[c++],y[c++]);return i}h=u.length;let E=r;for(c=0;c<h;){const y=u[c++],v=u[c++];try{E=y(E)}catch(w){v.call(this,w);break}}try{i=Me.call(this,E)}catch(y){return Promise.reject(y)}for(c=0,h=p.length;c<h;)i=i.then(p[c++],p[c++]);return i}getUri(n){n=z(this.defaults,n);const r=at(n.baseURL,n.url,n.allowAbsoluteUrls);return nt(r,n.params,n.paramsSerializer)}};m.forEach(["delete","get","head","options"],function(n){U.prototype[n]=function(r,o){return this.request(z(o||{},{method:n,url:r,data:(o||{}).data}))}});m.forEach(["post","put","patch"],function(n){function r(o){return function(s,a,u){return this.request(z(u||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}U.prototype[n]=r(),U.prototype[n+"Form"]=r(!0)});let lo=class pt{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const o=this;this.promise.then(l=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](l);o._listeners=null}),this.promise.then=l=>{let s;const a=new Promise(u=>{o.subscribe(u),s=u}).then(l);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s,a,u){o.reason||(o.reason=new H(s,a,u),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=o=>{n.abort(o)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new pt(function(l){n=l}),cancel:n}}};function so(t){return function(r){return t.apply(null,r)}}function ao(t){return m.isObject(t)&&t.isAxiosError===!0}const be={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(be).forEach(([t,n])=>{be[n]=t});function mt(t){const n=new U(t),r=qe(U.prototype.request,n);return m.extend(r,U.prototype,n,{allOwnKeys:!0}),m.extend(r,n,null,{allOwnKeys:!0}),r.create=function(l){return mt(z(t,l))},r}const S=mt(G);S.Axios=U;S.CanceledError=H;S.CancelToken=lo;S.isCancel=lt;S.VERSION=ft;S.toFormData=se;S.AxiosError=C;S.Cancel=S.CanceledError;S.all=function(n){return Promise.all(n)};S.spread=so;S.isAxiosError=ao;S.mergeConfig=z;S.AxiosHeaders=T;S.formToJSON=t=>rt(m.isHTMLForm(t)?new FormData(t):t);S.getAdapter=dt.getAdapter;S.HttpStatusCode=be;S.default=S;const{Axios:vl,AxiosError:xl,CanceledError:wl,isCancel:kl,CancelToken:El,VERSION:Bl,all:Cl,Cancel:Vl,isAxiosError:Nl,spread:Sl,toFormData:Rl,AxiosHeaders:_l,HttpStatusCode:Tl,formToJSON:Al,getAdapter:Ol,mergeConfig:Fl}=S;function ht(t,n){const{api:r,options:o=[],limit:l=20,dataKey:s="data"}=t,a=t.type==="checkbox";function u(V){return a?Array.isArray(V)?V:V?[V]:[]:V??""}const f=e.ref(u(t.modelValue)),p=e.ref(""),i=e.ref(!1),c=e.ref([]),h=e.ref("id"),E=e.ref("text"),y=e.ref(!1),v=e.ref(t.layout!=="popover"&&o.length>l);function w(V){const F=V.find(Boolean)??{},M=["id","value","code","key"].find(ue=>ue in F)??"id",kt=["text","label","name","title"].find(ue=>ue in F)??"text";return{autoValueKey:M,autoLabelKey:kt}}if(o.length>0){const V=w(o);h.value=V.autoValueKey,E.value=V.autoLabelKey}const x=e.computed(()=>{if(r)return c.value;const V=c.value;if(t.layout==="popover")return V;if(!p.value)return y.value?V:V.slice(0,l);const F=p.value.toLowerCase();return V.filter(M=>M[E.value].toLowerCase().includes(F))});let d=null;async function g(V){if(r){i.value=!0;try{const F=await S.get(r,{params:{json:1,key:V,limit:l}});if(c.value=F.data[s],c.value.length>0){const M=w(c.value);h.value=M.autoValueKey,E.value=M.autoLabelKey}}catch(F){console.error("Failed to fetch remote options:",F)}finally{i.value=!1}}}e.watch(p,V=>{r&&(d&&clearTimeout(d),d=setTimeout(()=>{g(V)},200))}),e.watch(()=>t.modelValue,V=>{f.value=u(V)},{immediate:!0}),r?g(""):c.value=o;function k(V){return a&&Array.isArray(f.value)?f.value.includes(V[h.value]):f.value===V[h.value]}function b(V){if(a&&!Array.isArray(f.value)&&(f.value=[]),a&&Array.isArray(f.value)){const F=f.value.includes(V[h.value]);f.value=F?f.value.filter(M=>M!==V[h.value]):[...f.value,V[h.value]]}else f.value=V[h.value];n("update:modelValue",f.value),n("change",{name:t.name,value:f.value})}function B(){a?f.value=[]:f.value=void 0,n("update:modelValue",f.value),n("clear",t.name)}function A(){d&&clearTimeout(d),p.value="",y.value=!1}function I(){y.value=!y.value}return e.onBeforeUnmount(()=>{d&&clearTimeout(d)}),{innerValue:f,searchTerm:p,filteredOptions:x,isSelected:k,selectItem:b,clear:B,resetSearch:A,toggleShowAll:I,isReqProc:i,showAll:y,isEnableShowAll:v,labelKey:E,valueKey:h,allOptions:c}}const $=(t,n)=>{const r=t.__vccOpts||t;for(const[o,l]of n)r[o]=l;return r},io={},uo={class:"w-48 mx-auto",viewBox:"0 0 178 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function co(t,n){return e.openBlock(),e.createElementBlock("svg",uo,n[0]||(n[0]=[e.createStaticVNode('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>',12)]))}const gt=$(io,[["render",co]]),fo={},po={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down w-[14px] rotate"};function mo(t,n){return e.openBlock(),e.createElementBlock("svg",po,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const Ee=$(fo,[["render",mo]]),ho={},go={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down w-[14px] rotate-[180deg]"};function yo(t,n){return e.openBlock(),e.createElementBlock("svg",go,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const yt=$(ho,[["render",yo]]),bo={key:0,class:"h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relative justify-center"},vo={key:1,class:"w-full"},xo={class:"flex flex-col items-center justify-center p-5 text-center"},wo={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},ko=["disabled"],Eo={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Bo=["disabled"],je=e.defineComponent({__name:"radio",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(null),s=r,{innerValue:a,searchTerm:u,filteredOptions:f,isSelected:p,selectItem:i,clear:c,resetSearch:h,toggleShowAll:E,isReqProc:y,showAll:v,isEnableShowAll:w,labelKey:x,valueKey:d,allOptions:g}=ht({...o,modelValue:o.modelValue??o.default??""},s);return e.onMounted(()=>{h()}),n({clear:c,inputTextRef:l}),e.watch(()=>o.modelValue,k=>{k===void 0&&(a.value=void 0)}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([k.layout==="popover"?"flex flex-col h-full":"flex flex-col vs-filter-checkbox space-y-0.5"])},[k.type==="select"?(e.openBlock(),e.createElementBlock("div",bo,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=B=>e.isRef(u)?u.value=B:null),class:"w-full h-full text-[13px] px-4 border rounded-sm pl-9 focus:outline-none focus:ring-ring focus:ring-1 focus:ring-blue-500",placeholder:"Пошук",type:"text",ref_key:"inputTextRef",ref:l},null,512),[[e.vModelText,e.unref(u)]]),b[7]||(b[7]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search absolute text-gray-400 -translate-y-1/2 left-4 top-1/2"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),e.createElementVNode("path",{d:"M21 21l-6 -6"})],-1)),(e.openBlock(),e.createElementBlock("svg",{onClick:b[1]||(b[1]=B=>u.value=""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x absolute text-gray-400 -translate-y-1/2 cursor-pointer hover:text-red-500 right-4 top-1/2",height:"16",width:"16"},b[6]||(b[6]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([k.layout==="popover"?"flex-1 overflow-y-auto mb-4 max-h-64":"",k.layout==="inline"?"flex-1 overflow-y-auto mb-4 max-h-80 pr-1":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),B=>(e.openBlock(),e.createBlock(Ie,{layout:k.layout,key:B.id,count:B.count,label:B[e.unref(x)],color:B.color,type:"radio",value:B[e.unref(d)],"is-selected":e.unref(p)(B),onItemClick:A=>e.unref(i)(B)},null,8,["layout","count","label","color","value","is-selected","onItemClick"]))),128))],2),k.type==="select"&&e.unref(f).length===0&&!e.unref(y)?(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("div",xo,[e.createVNode(gt),b[8]||(b[8]=e.createElementVNode("div",{class:"max-w-sm mx-auto mt-6"},[e.createElementVNode("p",{class:"font-medium text-gray-800 dark:text-neutral-200"},"За вашим запитом нічого не знайдено"),e.createElementVNode("p",{class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"})],-1))])])):e.createCommentVNode("",!0),k.layout!=="popover"&&k.type!=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[!e.unref(v)&&e.unref(w)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:b[2]||(b[2]=(...B)=>e.unref(E)&&e.unref(E)(...B)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[9]||(b[9]=e.createTextVNode(" Показати більше ")),e.createVNode(Ee)])):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:b[3]||(b[3]=(...B)=>e.unref(E)&&e.unref(E)(...B)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[10]||(b[10]=e.createTextVNode(" Показати менше ")),e.createVNode(yt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),k.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k.layout==="inline"?(e.openBlock(),e.createElementBlock("div",wo,[e.createTextVNode(e.toDisplayString(e.unref(a)?1:0)+" з "+e.toDisplayString(e.unref(g).length)+" обрано ",1),e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a)===void 0,onClick:b[4]||(b[4]=(...B)=>e.unref(c)&&e.unref(c)(...B))}," Очистити ",8,ko)])):e.createCommentVNode("",!0),k.layout==="popover"?(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a)===void 0,onClick:b[5]||(b[5]=(...B)=>e.unref(c)&&e.unref(c)(...B))}," Очистити ",8,Bo),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)?1:0)+" з "+e.toDisplayString(e.unref(g).length)+" обрано",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2))}}),Co={key:0,class:"h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relative justify-center"},Vo={key:1,class:"w-full"},No={class:"flex flex-col items-center justify-center p-5 text-center"},So={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},Ro=["disabled"],_o={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},To=["disabled"],ve=e.defineComponent({__name:"checkbox",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(null),{innerValue:a,filteredOptions:u,isSelected:f,selectItem:p,clear:i,resetSearch:c,toggleShowAll:h,isReqProc:E,showAll:y,isEnableShowAll:v,searchTerm:w,labelKey:x,valueKey:d,allOptions:g}=ht({...o,type:"checkbox",modelValue:o.modelValue},l);return e.onMounted(()=>{c()}),e.watch(()=>o.modelValue,k=>{k===void 0&&(a.value=[])}),n({clear:i,inputTextRef:s}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([k.layout==="popover"?"flex flex-col h-full":"flex flex-col vs-filter-checkbox space-y-0.5"])},[k.type==="select"?(e.openBlock(),e.createElementBlock("div",Co,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=B=>e.isRef(w)?w.value=B:null),class:"w-full h-full text-[13px] px-4 border rounded-sm pl-9 focus:outline-none focus:ring-ring focus:ring-1 focus:ring-blue-500",placeholder:"Пошук",type:"text",ref_key:"inputTextRef",ref:s},null,512),[[e.vModelText,e.unref(w)]]),b[7]||(b[7]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search absolute text-gray-400 -translate-y-1/2 left-4 top-1/2"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),e.createElementVNode("path",{d:"M21 21l-6 -6"})],-1)),(e.openBlock(),e.createElementBlock("svg",{onClick:b[1]||(b[1]=B=>w.value=""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x absolute text-gray-400 -translate-y-1/2 cursor-pointer hover:text-red-500 right-4 top-1/2",height:"16",width:"16"},b[6]||(b[6]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([k.layout==="popover"?"flex-1 overflow-y-auto mb-4 max-h-64":"",k.layout==="inline"?"flex-1 overflow-y-auto mb-4 max-h-80 pr-1":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),B=>(e.openBlock(),e.createBlock(Ie,{layout:k.layout,count:B.count,label:B[e.unref(x)],color:B.color,type:"checkbox",value:B[e.unref(d)],"is-selected":e.unref(f)(B),onItemClick:A=>e.unref(p)(B)},null,8,["layout","count","label","color","value","is-selected","onItemClick"]))),256))],2),k.type==="select"&&e.unref(u).length===0&&!e.unref(E)?(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",No,[e.createVNode(gt),b[8]||(b[8]=e.createElementVNode("div",{class:"max-w-sm mx-auto mt-6"},[e.createElementVNode("p",{class:"font-medium text-gray-800 dark:text-neutral-200"},"За вашим запитом нічого не знайдено"),e.createElementVNode("p",{class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"})],-1))])])):e.createCommentVNode("",!0),k.layout!=="popover"&&k.type!=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[!e.unref(y)&&e.unref(v)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:b[2]||(b[2]=(...B)=>e.unref(h)&&e.unref(h)(...B)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[9]||(b[9]=e.createTextVNode(" Показати більше ")),e.createVNode(Ee)])):e.createCommentVNode("",!0),e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:b[3]||(b[3]=(...B)=>e.unref(h)&&e.unref(h)(...B)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[10]||(b[10]=e.createTextVNode(" Показати менше ")),e.createVNode(yt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),k.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k.layout==="inline"?(e.openBlock(),e.createElementBlock("div",So,[e.createTextVNode(e.toDisplayString(e.unref(a).length)+" з "+e.toDisplayString(e.unref(g).length)+" обрано ",1),e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a).length===0,onClick:b[4]||(b[4]=(...B)=>e.unref(i)&&e.unref(i)(...B))}," Очистити ",8,Ro)])):e.createCommentVNode("",!0),k.layout==="popover"?(e.openBlock(),e.createElementBlock("div",_o,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a).length===0,onClick:b[5]||(b[5]=(...B)=>e.unref(i)&&e.unref(i)(...B))}," Очистити ",8,To),e.createElementVNode("span",null,e.toDisplayString(e.unref(a).length)+" з "+e.toDisplayString(e.unref(g).length)+" обрано",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2))}}),Ao={},Oo={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"};function Fo(t,n){return e.openBlock(),e.createElementBlock("svg",Oo,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},null,-1),e.createElementVNode("path",{d:"M21 21l-6 -6"},null,-1)]))}const Do=$(Ao,[["render",Fo]]),$o={},Mo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x stroke-gray-500 hover:stroke-red-500 transition-all",width:"15px",height:"15px"};function Lo(t,n){return e.openBlock(),e.createElementBlock("svg",Mo,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)]))}const jo=$($o,[["render",Lo]]);class bt{static getWidthClass(n){return typeof n=="number"?`w-[${n}px]`:typeof n=="string"?n.endsWith("%")||n.endsWith("px")?`w-[${n}]`:`w-${n}`:"w-full"}}const Po={class:"absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3"},Uo=["placeholder"],zo=e.defineComponent({__name:"text-input",props:{id:{},name:{},type:{},label:{},width:{default:220},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{emit:n}){const r=t,o=e.ref((r.placeHolder||r.label).toString()),l=n,s=e.ref(r.modelValue??"");e.watch(()=>r.modelValue,f=>{f!==s.value&&(s.value=f??"")});function a(){l("update:modelValue",s.value),l("change",{name:r.name,value:s.value})}function u(){s.value="",l("update:modelValue",""),l("clear",r.name)}return(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vs-form-text relative bg-white rounded-lg [&>input]:py-[7px] [&>input]:max-h-[38px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600",f.layout==="inline"?e.unref(bt).getWidthClass(f.width):"w-full mb-2"])},[e.createElementVNode("div",Po,[e.createVNode(Do)]),s.value!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:u,class:"absolute bottom-2/4 translate-y-2/4 right-3 cursor-pointer"},[e.createVNode(jo)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":p[0]||(p[0]=i=>s.value=i),onInput:a,placeholder:o.value,class:"!pr-7 !pl-8 bg-white h-[38px] text-sm py-2 px-3 block w-full border border-solid placeholder:text-nowrap border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-400 focus:border-2 focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"},null,40,Uo),[[e.vModelText,s.value]])],2))}}),Io={class:"p-1"},qo=["placeholder","disabled"],Ho=["placeholder","disabled"],Ko={key:0,class:"border-t p-1"},Jo={class:"grid grid-cols-2 gap-2"},Wo=["onClick"],Yo={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},Qo=["disabled"],Go={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Xo=["disabled"],Zo=e.defineComponent({__name:"range-input",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(o.modelValue??o.default??[]),s=r,a=e.computed({get:()=>o.modelValue??l.value,set:i=>{o.modelValue!==void 0?s("update:modelValue",i):l.value=i}});function u(){a.value=l.value,s("change",{name:o.name,value:l.value})}function f(){l.value=[],a.value=l.value,s("clear",o.name)}function p(i,c){l.value=[i,c],a.value=l.value,s("change",{name:o.name,value:l.value})}return e.watch(()=>o.modelValue,i=>{i!==void 0?(l.value=i,s("update:modelValue",i)):l.value=[]}),n({clear:f,currentValue:a}),(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Io,[e.createElementVNode("div",{class:e.normalizeClass(["flex justify-between gap-4",i.layout==="popover"?"flex-col":""])},[e.createElementVNode("label",{for:"FilterFrom",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full",i.layout==="popover"?"":"flex"])},[i.layout==="popover"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Від ")],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:"FilterFrom",type:"number",class:"vs-filter-range py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",placeholder:i.placeHolder?.[0]??"min",step:"1",style:{outline:"none"},"onUpdate:modelValue":c[0]||(c[0]=h=>l.value[0]=h),onInput:c[1]||(c[1]=h=>u()),disabled:i.disabled},null,40,qo),[[e.vModelText,l.value[0]]])],2),e.createElementVNode("label",{for:"FilterTo",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full",i.layout==="popover"?"":"flex"])},[i.layout==="popover"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" До ")],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:"FilterTo",type:"number",class:"vs-filter-range py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",placeholder:i.placeHolder?.[1]??"max",min:"0",max:"1000000000000000",step:"1",style:{outline:"none"},"onUpdate:modelValue":c[2]||(c[2]=h=>l.value[1]=h),onInput:c[3]||(c[3]=h=>u()),disabled:i.disabled},null,40,Ho),[[e.vModelText,l.value[1]]])],2)],2)]),o.quickRange?(e.openBlock(),e.createElementBlock("div",Ko,[c[4]||(c[4]=e.createElementVNode("label",{class:"block text-xs font-medium text-gray-600 mb-2"}," Проміжки ",-1)),e.createElementVNode("div",Jo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickRange,h=>(e.openBlock(),e.createElementBlock("button",{onClick:E=>p(h[0],h[1]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border h-9 rounded-md px-3 text-xs"},[h.length===1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h[0]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h[0])+" - "+e.toDisplayString(h[1]),1)],64))],8,Wo))),256))])])):e.createCommentVNode("",!0),i.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.layout==="inline"?(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:l.value.length===0,onClick:f}," Очистити ",8,Qo)])):e.createCommentVNode("",!0),i.layout==="popover"?(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:l.value.length===0,onClick:f}," Очистити ",8,Xo)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))}}),er=["disabled"],tr={key:0,class:"absolute top-0 end-0 inline-flex min-h-[10px] min-w-[10px] z-10 items-center py-0.5 rounded-full text-xs font-medium transform -translate-y-1/2 translate-x-1/2 bg-blue-600 text-white px-1"},nr={class:"w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full"},or={class:"w-[300px] max-h-[500px] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 before:w-full"},vt=e.defineComponent({__name:"popover-field",props:{disabled:{type:Boolean,default:!1},label:{},currentValue:{},fieldRef:{},width:{},layout:{}},emits:["clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(!1),s=e.ref({top:0,left:0}),a=e.ref(null),u=e.ref(null),f=e.ref(null);function p(){const y=u.value,v=f.value;if(!y||!v)return;const w=y.getBoundingClientRect();s.value={top:w.bottom+8,left:w.left}}function i(){l.value=!l.value,l.value&&e.nextTick(()=>{p(),o.fieldRef?.inputTextRef&&o.fieldRef?.inputTextRef.focus()})}function c(y){!a.value?.contains(y.target)&&!f.value?.contains(y.target)&&(l.value=!1)}function h(y){y.key==="Escape"&&(l.value=!1)}e.onMounted(()=>{document.addEventListener("click",c,!0),document.addEventListener("keydown",h),window.addEventListener("scroll",p,!0)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",c,!0),document.removeEventListener("keydown",h),window.removeEventListener("scroll",p,!0)});function E(){l.value=!1}return n({close:E}),(y,v)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:i,disabled:y.disabled,ref_key:"triggerRef",ref:u,class:e.normalizeClass(["relative ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input hover:bg-accent hover:text-accent-foreground border px-4 py-2 gap-2 bg-transparent h-[38px]",y.width?e.unref(bt).getWidthClass(y.width):"w-full"])},[e.createTextVNode(e.toDisplayString(y.label)+" ",1),e.createVNode(Ee,{class:"h-4 w-4"}),(Array.isArray(y.currentValue)?y.currentValue===null||y.currentValue.length>0:y.currentValue)&&y.layout==="inline"?(e.openBlock(),e.createElementBlock("span",tr)):e.createCommentVNode("",!0)],10,er),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{ref_key:"popperRef",ref:f,class:"vsTailwind vs-popover__content bottom-right w-fit fixed z-[1000]",style:e.normalizeStyle({top:`${s.value.top}px`,left:`${s.value.left}px`}),"data-inside-popover":""},[e.createElementVNode("div",nr,[e.createElementVNode("div",or,[e.renderSlot(y.$slots,"default")])])],4),[[e.vShow,l.value]])]))]))}});class N{static format(n){const r=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0");return`${r}-${o}-${l}`}static getShiftedDay(n,r=0){const o=n?new Date(n):new Date;return o.setDate(o.getDate()+r),this.format(o)}static getLastWeekRange(n,r,o=0){if(n&&r){const p=new Date(n),i=new Date(r);return p.setDate(p.getDate()+o*7),i.setDate(i.getDate()+o*7),[this.format(p),this.format(i)]}const l=new Date,s=l.getDay(),a=s===0?13:s-1+7,u=new Date(l);u.setDate(l.getDate()-a+o*7);const f=new Date(u);return f.setDate(u.getDate()+6),[this.format(u),this.format(f)]}static getMonthRange(n,r,o=0){let l;n?l=new Date(n):l=new Date,l=new Date(l.getFullYear(),l.getMonth()+o,1);const s=l,a=new Date(l.getFullYear(),l.getMonth()+1,0);return[this.format(s),this.format(a)]}static getQuarterRange(n,r,o=0){const l=n||r,s=l?new Date(l):new Date;let a=Math.floor(s.getMonth()/3);a+=o;const u=(a%4+4)%4*3,f=s.getFullYear()+Math.floor(a/4),p=new Date(f,u,1),i=new Date(f,u+3,0);return[this.format(p),this.format(i)]}static getYear(n,r=0){let o;return n&&/^\d{4}$/.test(n)?o=parseInt(n,10):n?o=new Date(n).getFullYear():o=new Date().getFullYear(),String(o+r)}static getRangeFromDaysBefore(n){const r=new Date,o=new Date(r.getTime());return o.setDate(r.getDate()-n),[this.format(o),this.format(r)]}}const rr={},lr={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-blue-600 w-[16px] h-[16px]"};function sr(t,n){return e.openBlock(),e.createElementBlock("svg",lr,n[0]||(n[0]=[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))}const j=$(rr,[["render",sr]]),ar={},ir={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down text-gray-800 rotate-[90deg]"};function ur(t,n){return e.openBlock(),e.createElementBlock("svg",ir,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const cr=$(ar,[["render",ur]]),dr={},fr={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down text-gray-800 rotate-[270deg]"};function pr(t,n){return e.openBlock(),e.createElementBlock("svg",fr,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const mr=$(dr,[["render",pr]]),hr={class:""},gr={class:""},yr={class:""},br={class:""},vr={class:""},xr={class:""},wr={class:""},kr={class:"inline-flex rounded-lg shrink-0 pl-1"},Er={class:"inline-flex rounded-lg shrink-0 pl-1"},Br={key:1,class:"flex gap-1 !w-[75%] rounded-lg"},Cr=["max","disabled"],Vr=["min","disabled"],Nr={key:2,class:"ml-1"},Sr=["disabled"],Rr=["max","disabled"],_r=["min","disabled"],Tr={key:2,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Ar=["disabled"],Or=e.defineComponent({__name:"date-input",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{emit:n}){const r=t,o=n,l=e.ref(null),s=e.ref(r.modelValue??r.default??[]),a=e.ref(""),u=e.ref(0);function f(){const x=N.getRangeFromDaysBefore(u.value);return s.value=[a.value,...x],o("change",{name:r.name,value:s}),o("update:modelValue",s.value),x}function p(x){a.value=x,l.value?.close();const d=[];switch(a.value){case"today":d.push(N.getShiftedDay());break;case"week":d.push(...N.getLastWeekRange());break;case"month":d.push(...N.getMonthRange());break;case"quarter":d.push(...N.getQuarterRange());break;case"year":d.push(N.getYear());break;case"last_7_days":u.value=7,f();break;case"range":u.value=7,d.push(...f());break}s.value=[a.value,...d],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}function i(){const x=[];switch(a.value){case"today":x.push(N.getShiftedDay(s.value[1],1));break;case"week":x.push(...N.getLastWeekRange(s.value[1],s.value[2],1));break;case"month":x.push(...N.getMonthRange(s.value[1],s.value[2],1));break;case"quarter":x.push(...N.getQuarterRange(s.value[1],s.value[2],1));break;case"year":x.push(N.getYear(s.value[1],1));break}s.value=[a.value,...x],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}function c(){const x=[];switch(a.value){case"today":x.push(N.getShiftedDay(s.value[1],-1));break;case"week":x.push(...N.getLastWeekRange(s.value[1],s.value[2],-1));break;case"month":x.push(...N.getMonthRange(s.value[1],s.value[2],-1));break;case"quarter":x.push(...N.getQuarterRange(s.value[1],s.value[2],-1));break;case"year":x.push(N.getYear(s.value[1],-1));break}s.value=[a.value,...x],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}e.onMounted(()=>{let x=[];if(Array.isArray(r.modelValue)?x=r.modelValue:Array.isArray(r.default)&&(x=r.default),x.length===0)return;const[d,...g]=x;a.value=d;let k=[];switch(d){case"today":k.push(N.getShiftedDay(g[0]));break;case"week":k=N.getLastWeekRange(g[0],g[1]);break;case"month":k=N.getMonthRange(g[0],g[1]);break;case"quarter":k=N.getQuarterRange(g[0],g[1]);break;case"year":k.push(N.getYear(g[0]));break;case"last_7_days":u.value=Number(g[0]??7);return;case"range":s.value=[d,g[0]??"",g[1]??""];return;default:return}s.value=[d,...k],o("update:modelValue",s.value)});const h=["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"];function E(x){const[d,g,k]=x.split("-");return`${k}.${g}.${d}`}function y(x){const{value:d}=s;switch(x){case"today":return E(d[1]);case"range":return"Період";case"week":return d[1]&&d[2]?`${E(d[1])} – ${E(d[2])}`:"";case"quarter":if(d[1]){const g=new Date(d[1]),k=g.getFullYear(),b=g.getMonth();return`${Math.floor(b/3)+1} квартал ${k}`}return"";case"month":if(d[1]){const[g,k]=d[1].split("-");return`${h[parseInt(k,10)-1]} ${g}`}return"";case"year":return d[1]||"";case"last_7_days":return"За останні дні";default:return r.label??""}}const v=e.computed(()=>a.value?y(a.value):r.label??"");function w(){a.value="",s.value=[],o("update:modelValue",[])}return e.watch(()=>r.modelValue,x=>{x!==void 0?(s.value=x,o("update:modelValue",x)):(a.value="",s.value=[])}),(x,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.layout==="inline"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["",x.layout!="inline"?"relative flex w-full h-auto gap-2 filter-date m-2 flex-wrap":"flex"])},[e.createVNode(vt,{ref_key:"popoverRef",ref:l,label:v.value,"current-value":s.value,onClear:w,layout:x.layout},{default:e.withCtx(()=>[e.createElementVNode("div",hr,[e.createElementVNode("button",{type:"button",onClick:d[0]||(d[0]=g=>p("range")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[12]||(d[12]=e.createTextVNode(" Період ")),a.value==="range"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),d[19]||(d[19]=e.createElementVNode("div",{class:""},[e.createElementVNode("div",{class:"pt-2 mt-2 border-t"})],-1)),e.createElementVNode("div",gr,[e.createElementVNode("button",{type:"button",onClick:d[1]||(d[1]=g=>p("today")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[13]||(d[13]=e.createTextVNode(" Сьогодні ")),a.value==="today"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",yr,[e.createElementVNode("button",{type:"button",onClick:d[2]||(d[2]=g=>p("week")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[14]||(d[14]=e.createTextVNode(" Тиждень ")),a.value==="week"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",br,[e.createElementVNode("button",{type:"button",onClick:d[3]||(d[3]=g=>p("month")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[15]||(d[15]=e.createTextVNode(" Місяць ")),a.value==="month"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",vr,[e.createElementVNode("button",{type:"button",onClick:d[4]||(d[4]=g=>p("quarter")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[16]||(d[16]=e.createTextVNode(" Квартал ")),a.value==="quarter"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xr,[e.createElementVNode("button",{type:"button",onClick:d[5]||(d[5]=g=>p("year")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[17]||(d[17]=e.createTextVNode(" Рік ")),a.value==="year"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])]),d[20]||(d[20]=e.createElementVNode("div",{class:""},[e.createElementVNode("div",{class:"pt-2 mt-2 border-t"})],-1)),e.createElementVNode("div",wr,[e.createElementVNode("button",{type:"button",onClick:d[6]||(d[6]=g=>p("last_7_days")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[d[18]||(d[18]=e.createTextVNode(" Останні 7 днів ")),a.value==="last_7_days"?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0)])])]),_:1,__:[19,20]},8,["label","current-value","layout"]),a.value!==""&&a.value!=="range"&&a.value!=="last_7_days"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",kr,[e.createElementVNode("button",{type:"button",title:"Попередній період",class:"inline-flex h-[38px] items-center px-2 text-sm text-gray-800 bg-gray-100 gap-x-2 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg focus:z-10 hover:bg-gray-200 focus:bg-gray-200 duration-300",onClick:c},[e.createVNode(cr)])]),e.createElementVNode("div",Er,[e.createElementVNode("button",{type:"button",title:"Наступний період",class:"inline-flex h-[38px] items-center px-2 text-sm text-gray-800 gap-x-2 bg-gray-100 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg focus:z-10 hover:bg-gray-200 focus:bg-gray-200 duration-300",onClick:i},[e.createVNode(mr)])])],64)):e.createCommentVNode("",!0),a.value!==""&&a.value==="range"?(e.openBlock(),e.createElementBlock("div",Br,[e.withDirectives(e.createElementVNode("input",{type:"date",max:s.value[2],locale:"uk-UA","onUpdate:modelValue":d[7]||(d[7]=g=>s.value[1]=g),class:"px-2 p-0 border text-[12px] max-w-[calc(50%-5px)] h-[38px] rounded-lg focus:outline-blue-600",disabled:x.disabled},null,8,Cr),[[e.vModelText,s.value[1]]]),e.withDirectives(e.createElementVNode("input",{type:"date",min:s.value[1],locale:"uk-UA","onUpdate:modelValue":d[8]||(d[8]=g=>s.value[2]=g),class:"px-2 p-0 border text-[12px] max-w-[calc(50%-5px)] h-[38px] rounded-lg focus:outline-blue-600 appearance-auto",disabled:x.disabled},null,8,Vr),[[e.vModelText,s.value[2]]])])):e.createCommentVNode("",!0),a.value!==""&&a.value==="last_7_days"?(e.openBlock(),e.createElementBlock("div",Nr,[e.withDirectives(e.createElementVNode("input",{type:"number","onUpdate:modelValue":d[9]||(d[9]=g=>u.value=g),onInput:f,class:"h-[38px] w-[60px] border rounded-lg focus:outline-blue-600 px-[10px]",disabled:x.disabled},null,40,Sr),[[e.vModelText,u.value]])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),x.layout!=="inline"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-between gap-4 p-1",x.layout==="popover"?"flex-col":""])},[e.createElementVNode("label",{for:"FilterFrom",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full gap-1",x.layout==="popover"?"":"flex"])},[d[21]||(d[21]=e.createTextVNode(" Від ")),e.withDirectives(e.createElementVNode("input",{type:"date",max:s.value[2],locale:"uk-UA","onUpdate:modelValue":d[10]||(d[10]=g=>s.value[1]=g),class:"py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",disabled:x.disabled},null,8,Rr),[[e.vModelText,s.value[1]]])],2),e.createElementVNode("label",{for:"FilterTo",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full gap-1",x.layout==="popover"?"":"flex"])},[d[22]||(d[22]=e.createTextVNode(" До ")),e.withDirectives(e.createElementVNode("input",{type:"date",min:s.value[1],locale:"uk-UA","onUpdate:modelValue":d[11]||(d[11]=g=>s.value[2]=g),class:"py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",disabled:x.disabled},null,8,_r),[[e.vModelText,s.value[2]]])],2)],2)):e.createCommentVNode("",!0),x.layout==="popover"&&x.cleanable?(e.openBlock(),e.createElementBlock("div",Tr,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:s.value.length===0,onClick:w}," Clear ",8,Ar)])):e.createCommentVNode("",!0)],64))}}),Pe={radio:je,checkbox:ve,check:ve,text:zo,range:Zo,date:Or,select:je};function Be(t,n=!1){let r;switch(t.toLowerCase()){case"autocomplete":r="select";break;case"check":r="checkbox";break;default:r=t.toString().toLowerCase()}return["select"].includes(r)&&n?{component:ve,type:"select"}:{component:Pe[r]||Pe.text,type:r}}const Fr={},Dr={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-reload absolute inline mr-1 text-gray-800 transition-all cursor-pointer active:rotate-90 right-1 top-1 hover:text-blue-500"};function $r(t,n){return e.openBlock(),e.createElementBlock("svg",Dr,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"},null,-1),e.createElementVNode("path",{d:"M20 4v5h-5"},null,-1)]))}const Mr=$(Fr,[["render",$r]]),Lr={style:{display:"inline-flex",margin:"0px",width:"100%"}},jr={class:"relative w-full mb-2 p-4 bg-white rounded-lg shadow-sm"},Pr={class:"block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200"},Ur={class:"flex items-center"},zr={class:"text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1"},Ir={class:"filter-layout__body"},qr=e.defineComponent({__name:"vertical-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=Be(o.type,o.multi),u=e.computed({get:()=>o.modelValue,set:c=>l("update:modelValue",c)});function f(c){l("clear",c)}function p(c,h){l("change",{name:c,value:h}),o.modelValue!==void 0&&l("update:modelValue",h)}function i(){s.value&&s.value.clear(),l("clear",o.name)}return e.watch(()=>o.default,c=>{u.value=c}),e.watch(()=>o.modelValue,c=>{u.value=c}),n({filterRef:s}),(c,h)=>(e.openBlock(),e.createElementBlock("div",Lr,[e.createElementVNode("div",jr,[e.createElementVNode("div",Pr,[e.createElementVNode("div",Ur,[e.createElementVNode("span",zr,e.toDisplayString(c.label),1)]),typeof u.value=="string"&&u.value.trim()!==""||Array.isArray(u.value)&&u.value.length>0&&u.value.some(E=>E!=null&&String(E).trim()!=="")?(e.openBlock(),e.createBlock(Mr,{key:0,onClick:i})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ir,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps(o,{type:e.unref(a)?.type,onChange:h[0]||(h[0]=E=>p(E.name,E.value)),onClear:h[1]||(h[1]=E=>f(E)),ref_key:"filterRef",ref:s}),null,16,["type"]))])])]))}}),Ue=e.defineComponent({__name:"inline-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=Be(o.type,o.multi),u=e.computed({get:()=>o.modelValue,set:c=>l("update:modelValue",c)});function f(c){l("clear",c)}function p(c,h){l("change",{name:c,value:h}),o.modelValue!==void 0&&l("update:modelValue",h)}function i(){s.value&&s.value.clear(),l("clear",o.name)}return e.watch(()=>o.default,c=>{u.value=c}),e.watch(()=>o.modelValue,c=>{u.value=c}),n({filterRef:s}),(c,h)=>["text","date"].includes(c.type.toLocaleLowerCase())?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps({key:0},o,{type:e.unref(a)?.type,onChange:h[0]||(h[0]=E=>p(E.name,E.value)),onClear:h[1]||(h[1]=E=>f(E)),disabled:c.disabled}),null,16,["type","disabled"])):(e.openBlock(),e.createBlock(vt,{key:1,"current-value":u.value,label:c.label,onClear:i,fieldRef:s.value,width:c.width,disabled:c.disabled},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps({ref_key:"filterRef",ref:s},o,{type:e.unref(a)?.type,onChange:h[2]||(h[2]=E=>p(E.name,E.value)),onClear:h[3]||(h[3]=E=>f(E))}),null,16,["type"]))]),_:1},8,["current-value","label","fieldRef","width","disabled"]))}}),Hr=e.defineComponent({__name:"popover-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=e.ref(Be(o.type,o.multi)),u=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)});function f(i){l("clear",i)}function p(i,c){l("change",{name:i,value:c}),o.modelValue!==void 0&&l("update:modelValue",c)}return e.watch(()=>o.default,i=>{u.value=i}),e.watch(()=>o.modelValue,i=>{u.value=i}),e.watch(()=>o,i=>{u.value=i}),n({filterRef:s}),(i,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value?.component),e.mergeProps(o,{type:a.value?.type,modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=h=>u.value=h),onChange:c[1]||(c[1]=h=>p(h.name,h.value)),onClear:c[2]||(c[2]=h=>f(h)),ref_key:"filterRef",ref:s}),null,16,["type","modelValue"]))}}),L=e.defineComponent({__name:"filter-field",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean,default:!0},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)});function u(i){l("clear",i)}function f(i,c){l("change",{name:i,value:c}),o.modelValue!==void 0&&l("update:modelValue",c)}e.watch(()=>o.default,i=>{a.value=i}),e.watch(()=>o.modelValue,i=>{a.value=i}),n({filterRef:s});function p(){switch(o.layout){case"inline":return Ue;case"vertical":return qr;case"popover":return Hr;default:return Ue}}return(i,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p()),e.mergeProps(o,{onChange:c[0]||(c[0]=h=>f(h.name,h.value)),onClear:c[1]||(c[1]=h=>u(h)),modelValue:a.value,"onUpdate:modelValue":c[2]||(c[2]=h=>a.value=h)}),null,16,["modelValue"]))}});function Ce(t,n){const{slots:r}=t,o=e.ref(t.value??{}),l=e.computed(()=>(e.toRaw(r?.default?.())??[]).flatMap(g=>Array.isArray(g.children)?g.children:[g]));function s(d){delete o.value[d],n("clear",{data:e.toRaw(o.value),name:d})}function a(d,g){o.value={...o.value,[d]:g},n("change",{data:e.toRaw(o.value),name:d,value:g})}const u=e.computed(()=>l.value.map(d=>{const g=d.props?.name;return e.cloneVNode(d,{...d.props,layout:t.view,showClean:!0,modelValue:o[g],"onUpdate:modelValue":k=>{a(g,k)},onClear:()=>s(g)})})),f=e.computed(()=>new Map(u.value.map(d=>{const g=d.props?.name;return g?[g,d]:null}).filter(d=>d!==null)));function p(){o.value={},n("clearAll",{data:e.toRaw(o.value),name:"ALL"})}const i=e.ref(""),c=e.computed(()=>Object.values(o.value).filter(d=>Array.isArray(d)?d.some(g=>g!==""&&g!==null&&g!==void 0):d!==""&&d!==null&&d!==void 0).length),h=e.ref();e.watch(i,async()=>{await e.nextTick(),h?.value?.filterRef?.inputTextRef&&h.value.filterRef.inputTextRef.focus()});const E=e.computed(()=>t.schema?.value?Object.fromEntries(Object.entries(t.schema?.value).slice(0,t.limit)):{}),y=e.computed(()=>t.schema?.value?t.view!=="inline"?t.schema?.value:Object.fromEntries(Object.entries(t.schema?.value).slice(t.limit)):{}),v=e.computed(()=>{if(u.value.length===0)return[];let d=0;if(t.schema?.value){const g=Object.entries(t.schema.value).length;g<t.limit?d=t.limit-g:d=0}return u.value.slice(0,d)}),w=e.computed(()=>u.value.length===0?[]:t.view!=="inline"?u.value:u.value.slice(v.value.length));function x(){if(y.value){const[d]=Object.keys(y.value);i.value=d}else w.value.length>0?i.value=w.value[0].props.name:i.value=""}return{activeFilter:o,activeFilterCount:c,onFilterChange:a,clearFilter:s,clearAllFilters:p,limitedSchema:E,popoverSchema:y,filtersSlot:u,limitedFiltersSlot:v,popoverFiltersSlot:w,vnodeMap:f,onPopoverOpen:x,selectedFilter:i,filterRef:h}}const Kr=e.defineComponent({__name:"popover",emits:["open","close"],setup(t,{emit:n}){const r=e.ref(!1),o=e.ref(null),l=e.ref(null),s=e.ref(null),a=e.ref({top:"0px",left:"0px",position:"absolute"});function u(){r.value=!r.value}function f(){const c=s.value,h=o.value;if(!c||!h)return;const E=c.getBoundingClientRect();a.value={position:"absolute",top:`${E.bottom+window.scrollY+8}px`,left:`${E.left+window.scrollX}px`}}function p(c){const h=c.target;!s.value?.contains(c.target)&&!o.value?.contains(c.target)&&!h.closest("[data-inside-popover]")&&(r.value=!1)}e.onMounted(()=>{s.value=l.value?.querySelector("[data-popover-trigger]")||null,s.value?.addEventListener("click",u),document.addEventListener("click",p),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0)}),e.onBeforeUnmount(()=>{s.value?.removeEventListener("click",u),document.removeEventListener("click",p),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)});const i=n;return e.watch(r,async c=>{c?(await e.nextTick(f),i("open")):i("close")}),(c,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:l},[e.renderSlot(c.$slots,"trigger"),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:o,class:"absolute z-[50] w-[600px] rounded-md border bg-white shadow-md",style:e.normalizeStyle(a.value)},[e.renderSlot(c.$slots,"default")],4)):e.createCommentVNode("",!0)]))],512))}}),Jr={},Wr={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-filter h-4 w-4"};function Yr(t,n){return e.openBlock(),e.createElementBlock("svg",Wr,n[0]||(n[0]=[e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1)]))}const Qr=$(Jr,[["render",Yr]]),Gr={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-500 text-white text-xs px-1.5 py-0.5"},Xr={class:"flex"},Zr={class:"w-64 border-r border-gray-200"},el={class:"p-2"},tl=["onClick"],nl={class:"flex items-center gap-2"},ol={class:"text-sm font-medium"},rl={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-100 text-blue-700 text-xs p-2"},ll=["onClick"],sl={class:"flex items-center gap-2"},al={class:"text-sm font-medium"},il={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-100 text-blue-700 text-xs p-2"},ul={key:0,class:"p-2 border-t"},cl={class:"flex-1 min-h-[300px] overflow-y-auto"},dl={key:0,class:"flex items-center justify-center h-full text-gray-500"},xt=e.defineComponent({__name:"popover-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{expose:n,emit:r}){const o=t,l=e.useSlots(),s=r,a=e.ref({}),{activeFilter:u,activeFilterCount:f,onFilterChange:p,clearFilter:i,clearAllFilters:c,popoverSchema:h,popoverFiltersSlot:E,onPopoverOpen:y,selectedFilter:v,filterRef:w}=Ce({...o,schema:a,slots:l},s);return e.watch(()=>o.schema,x=>{a.value=x},{deep:!0,immediate:!0}),n({clearFilter:i,clearAllFilters:c}),(x,d)=>(e.openBlock(),e.createBlock(Kr,{onOpen:e.unref(y),onClose:d[5]||(d[5]=g=>v.value="")},{trigger:e.withCtx(()=>[e.createElementVNode("button",{"data-popover-trigger":"","aria-haspopup":"dialog","aria-expanded":"false",class:e.normalizeClass(["ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input hover:bg-accent hover:text-accent-foreground border px-4 py-2 gap-2 bg-transparent h-[38px]",e.unref(f)>0?"bg-blue-50 border-blue-200 text-blue-700 hover:bg-blue-100":"text-gray-800 hover:bg-gray-200 focus:bg-gray-200"]),type:"button"},[e.createVNode(Qr),d[6]||(d[6]=e.createTextVNode(" Фільтр ")),e.unref(f)>0?(e.openBlock(),e.createElementBlock("div",Gr,e.toDisplayString(e.unref(f)),1)):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Xr,[e.createElementVNode("div",Zr,[d[7]||(d[7]=e.createElementVNode("div",{class:"p-4 border-b"},[e.createElementVNode("p",{class:"text-sm text-gray-600"},"Select a field to start creating a filter.")],-1)),e.createElementVNode("div",el,[x.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(h)),([g,k])=>(e.openBlock(),e.createElementBlock("button",{key:g,onClick:()=>{v.value=g,console.log(e.unref(v))},class:e.normalizeClass(["w-full flex items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors",e.unref(v)===g?"bg-blue-50 text-blue-700 border-l-2 border-blue-500":""])},[e.createElementVNode("div",nl,[e.createElementVNode("span",ol,e.toDisplayString(k.label),1)]),(Array.isArray(e.unref(u)[g])?e.unref(u)[g].length>0:e.unref(u)[g])?(e.openBlock(),e.createElementBlock("div",rl)):e.createCommentVNode("",!0)],10,tl))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(g,k)=>(e.openBlock(),e.createElementBlock("button",{key:"slot-"+k,onClick:b=>v.value=g.props.name,class:e.normalizeClass(["w-full flex items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors",e.unref(v)===g.props.name?"bg-blue-50 text-blue-700 border-l-2 border-blue-500":""])},[e.createElementVNode("div",sl,[e.createElementVNode("span",al,e.toDisplayString(g.props.label),1)]),e.unref(u)[g.props.name]?.length>0?(e.openBlock(),e.createElementBlock("div",il)):e.createCommentVNode("",!0)],10,ll))),128))]),e.unref(f)>0?(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("button",{class:"w-full px-3 py-2 text-left text-sm text-gray-600 hover:bg-gray-50 transition-colors",onClick:d[0]||(d[0]=(...g)=>e.unref(c)&&e.unref(c)(...g)),"data-inside-popover":""}," Очистити всі ")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",cl,[e.unref(v)===""?(e.openBlock(),e.createElementBlock("div",dl,d[8]||(d[8]=[e.createElementVNode("p",{class:"text-sm"},"Select a field to start creating a filter.",-1)]))):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(h)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(h)),([g,k])=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(v)===g?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0,name:g,layout:"popover",ref_for:!0,ref_key:"filterRef",ref:w},{ref_for:!0},k,{onChange:d[1]||(d[1]=b=>e.unref(p)(b.name,b.value)),onClear:d[2]||(d[2]=b=>e.unref(i)(b)),modelValue:e.unref(u)[g],"onUpdate:modelValue":b=>e.unref(u)[g]=b,cleanable:!0}),null,16,["name","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(g,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"slot-"+k},[e.unref(v)===g.props.name?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0,layout:"popover"},{ref_for:!0},g.props,{ref_for:!0,ref_key:"filterRef",ref:w,onChange:d[3]||(d[3]=b=>e.unref(p)(b.name,b.value)),onClear:d[4]||(d[4]=b=>e.unref(i)(b)),modelValue:e.unref(u)[g.props.name],"onUpdate:modelValue":b=>e.unref(u)[g.props.name]=b,cleanable:!0}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),128))],64)):e.createCommentVNode("",!0)])])]),_:1},8,["onOpen"]))}}),fl={class:"flex gap-1 items-center flex-wrap"},ze=e.defineComponent({__name:"inline-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=n,l=e.useSlots(),s=e.ref({}),{activeFilter:a,activeFilterCount:u,onFilterChange:f,clearFilter:p,clearAllFilters:i,limitedSchema:c,popoverSchema:h,filtersSlot:E,limitedFiltersSlot:y,popoverFiltersSlot:v}=Ce({...r,schema:s,slots:l},o),w=e.ref();function x(){w.value&&(w.value.clearAllFilters(),i())}return e.watch(()=>r.schema,d=>{s.value=d},{deep:!0,immediate:!0}),(d,g)=>(e.openBlock(),e.createElementBlock("div",fl,[d.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(c)),([k,b])=>(e.openBlock(),e.createBlock(L,e.mergeProps({key:k,name:k},{ref_for:!0},b,{onChange:g[0]||(g[0]=B=>e.unref(f)(B.name,B.value)),onClear:g[1]||(g[1]=B=>e.unref(p)(B)),layout:"inline",cleanable:!0,modelValue:e.unref(a)[k],"onUpdate:modelValue":B=>e.unref(a)[k]=B}),null,16,["name","modelValue","onUpdate:modelValue"]))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(k,b)=>(e.openBlock(),e.createBlock(L,e.mergeProps({key:"slot-"+b,layout:"vertical"},{ref_for:!0},k.props,{onChange:g[2]||(g[2]=B=>e.unref(f)(B.name,B.value)),onClear:g[3]||(g[3]=B=>e.unref(p)(B)),cleanable:!0,modelValue:e.unref(a)[k.props.name],"onUpdate:modelValue":B=>e.unref(a)[k.props.name]=B}),null,16,["modelValue","onUpdate:modelValue"]))),128)),Object.entries(e.unref(h)).length>0||e.unref(v).length>0?(e.openBlock(),e.createBlock(xt,e.mergeProps({key:1},r,{onChange:g[4]||(g[4]=k=>e.unref(f)(k.name,k.value)),onClearAll:e.unref(i),onClear:g[5]||(g[5]=k=>e.unref(p)(k.name)),ref_key:"popoverRef",ref:w,cleanable:!0}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),(k,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k),e.mergeProps({key:"slot-"+b,layout:"inline"},{ref_for:!0},k.props,{cleanable:!0}),null,16))),128))]),_:1},16,["onClearAll"])):e.createCommentVNode("",!0),e.unref(u)>0?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:x,class:"relative py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 border border-transparent text-gray-800 hover:bg-gray-200 focus:bg-gray-200"}," Очистити ")):e.createCommentVNode("",!0)]))}}),pl={key:0,class:"p-2 overflow-y-auto overflow-hidden [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 max-h-[calc(100%-142px)] h-full bg-gray-100"},ml={class:"flex items-center vst-filters vsTailwind flex-col w-full"},hl=e.defineComponent({__name:"vertical-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=n,l=e.useSlots(),{activeFilter:s,activeFilterCount:a,onFilterChange:u,clearFilter:f,clearAllFilters:p,filtersSlot:i}=Ce({...r,slots:l},o);return(c,h)=>c.view==="vertical"?(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",ml,[e.unref(a)>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:h[0]||(h[0]=(...E)=>e.unref(p)&&e.unref(p)(...E)),"data-popover-trigger":"","aria-haspopup":"dialog","aria-expanded":"false",class:"w-full ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:text-accent-foreground border h-10 px-4 py-2 gap-2 m-2 bg-white text-gray-800 hover:bg-gray-200 focus:bg-gray-200",type:"button"}," Очистити ")):e.createCommentVNode("",!0),c.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Object.entries(c.schema),([E,y])=>(e.openBlock(),e.createBlock(L,e.mergeProps({name:E,layout:"vertical"},{ref_for:!0},y,{onChange:h[1]||(h[1]=v=>e.unref(u)(v.name,v.value)),onClear:h[2]||(h[2]=v=>e.unref(f)(v)),modelValue:e.unref(s)[E],"onUpdate:modelValue":v=>e.unref(s)[E]=v,showClean:!0}),null,16,["name","modelValue","onUpdate:modelValue"]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(E,y)=>(e.openBlock(),e.createBlock(L,e.mergeProps({key:"slot-"+y,layout:"vertical"},{ref_for:!0},E.props,{onChange:h[3]||(h[3]=v=>e.unref(u)(v.name,v.value)),onClear:h[4]||(h[4]=v=>e.unref(f)(v)),modelValue:e.unref(s)[E.props.name],"onUpdate:modelValue":v=>e.unref(s)[E.props.name]=v,showClean:!0}),null,16,["modelValue","onUpdate:modelValue"]))),128))])])):e.createCommentVNode("",!0)}}),wt=e.defineComponent({__name:"filter",props:{schema:{},view:{default:"inline"},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=e.ref(r.value??{}),l=n;function s(i,c){o.value={...o.value,[i]:c},l("change",{data:e.toRaw(o.value),name:i,value:c})}function a(i){delete o.value[i],l("clear",{data:e.toRaw(o.value),name:i})}function u(){o.value={},l("clear",{data:e.toRaw(o.value),name:"ALL"}),l("change",{data:e.toRaw(o.value),name:"ALL",value:null})}const f=e.ref({});function p(){switch(r.view){case"inline":return ze;case"vertical":return hl;case"popover":return xt;default:return ze}}return e.watch(()=>r.schema,i=>{if(!i){f.value={};return}Array.isArray(i)?f.value=i.reduce((c,h)=>(h.name?c[h.name]=h:h.id&&(c[h.id]=h),c),{}):f.value={...i}},{immediate:!0,deep:!0}),(i,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p()),e.mergeProps(r,{schema:f.value,onChange:c[0]||(c[0]=h=>s(h.name,h.value)),onClear:c[1]||(c[1]=h=>a(h.name)),onClearAll:u}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["schema"]))}}),gl={install(t){t.component("Filter",wt),t.component("FilterField",L)}};exports.Filter=wt;exports.FilterField=L;exports.default=gl;
@@ -1,6 +0,0 @@
1
- (function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.FilterLib={},L.Vue))})(this,function(L,e){"use strict";const Bt={class:"flex items-center w-full rounded-lg group hover:bg-gray-100"},Ct={class:"flex items-center justify-between w-full text-sm"},Vt={class:"flex items-center cursor-pointer w-full"},Nt={key:0,width:"16",height:"auto",src:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGZpbGw9J3doaXRlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxwYXRoIGQ9J00xMi4yMDcgNC43OTNhMSAxIDAgMDEwIDEuNDE0bC01IDVhMSAxIDAgMDEtMS40MTQgMGwtMi0yYTEgMSAwIDAxMS40MTQtMS40MTRMNi41IDkuMDg2bDQuMjkzLTQuMjkzYTEgMSAwIDAxMS40MTQgMHonLz48L3N2Zz4="},St=["value"],Rt={class:"w-[calc(100%-18px)] flex flex-row items-center justify-between pl-[10px]"},_t={class:"flex flex-row items-center font-normal text-gray-800 gap-x-1"},Tt={key:0,class:"text-xs text-gray-500 dark:text-neutral-500"},Se=e.defineComponent({__name:"list-item",props:{layout:{},count:{},type:{},label:{},value:{},isSelected:{type:Boolean},color:{}},emits:["itemClick"],setup(t,{emit:n}){const r=t,o=n;function l(){o("itemClick",r.value)}return(s,a)=>(e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",Ct,[e.createElementVNode("div",Vt,[e.createElementVNode("label",{for:"radio-9740",class:e.normalizeClass(["inline","popover"].includes(s.layout)?"text-sm text-gray-500 px-2 w-full py-2 cursor-pointer !flex flex-row items-center":"flex flex-row items-center w-full px-2 py-2 text-sm text-gray-500 cursor-pointer"),onClick:e.withModifiers(l,["stop","prevent"])},[e.createElementVNode("div",{class:e.normalizeClass(["w-[18px] h-[18px] border rounded-[4px] flex items-center justify-center",[s.type==="checkbox"?"rounded-[4px]":"rounded-full",s.color?`bg-[${s.color}] border-[#ffffff]`:s.isSelected?"bg-[#2563eb] border-[#ffffff]":"bg-[#ffffff] border-[#d9d9d9]"]])},[s.isSelected?(e.openBlock(),e.createElementBlock("img",Nt)):e.createCommentVNode("",!0)],2),e.createElementVNode("input",{type:"checkbox",class:"hidden",id:"radio-9740",value:s.value},null,8,St),e.createElementVNode("div",Rt,[e.createElementVNode("span",_t,e.toDisplayString(s.label??"Відсутні данні"),1),s.count?(e.openBlock(),e.createElementBlock("div",Tt," ("+e.toDisplayString(s.count)+") ",1)):e.createCommentVNode("",!0)])],2)])])]))}});function Re(t,n){return function(){return t.apply(n,arguments)}}const{toString:At}=Object.prototype,{getPrototypeOf:de}=Object,{iterator:v,toStringTag:_e}=Symbol,ee=(t=>n=>{const r=At.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),O=t=>(t=t.toLowerCase(),n=>ee(n)===t),te=t=>n=>typeof n===t,{isArray:H}=Array,W=te("undefined");function Y(t){return t!==null&&!W(t)&&t.constructor!==null&&!W(t.constructor)&&T(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Te=O("ArrayBuffer");function Ot(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&Te(t.buffer),n}const Ft=te("string"),T=te("function"),Ae=te("number"),Q=t=>t!==null&&typeof t=="object",Dt=t=>t===!0||t===!1,ne=t=>{if(ee(t)!=="object")return!1;const n=de(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(_e in t)&&!(v in t)},$t=t=>{if(!Q(t)||Y(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Mt=O("Date"),Lt=O("File"),jt=O("Blob"),Pt=O("FileList"),Ut=t=>Q(t)&&T(t.pipe),zt=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||T(t.append)&&((n=ee(t))==="formdata"||n==="object"&&T(t.toString)&&t.toString()==="[object FormData]"))},It=O("URLSearchParams"),[qt,Ht,Kt,Jt]=["ReadableStream","Request","Response","Headers"].map(O),Wt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function G(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let o,l;if(typeof t!="object"&&(t=[t]),H(t))for(o=0,l=t.length;o<l;o++)n.call(null,t[o],o,t);else{if(Y(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(o=0;o<a;o++)c=s[o],n.call(null,t[c],c,t)}}function Oe(t,n){if(Y(t))return null;n=n.toLowerCase();const r=Object.keys(t);let o=r.length,l;for(;o-- >0;)if(l=r[o],n===l.toLowerCase())return l;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=t=>!W(t)&&t!==U;function ue(){const{caseless:t}=Fe(this)&&this||{},n={},r=(o,l)=>{const s=t&&Oe(n,l)||l;ne(n[s])&&ne(o)?n[s]=ue(n[s],o):ne(o)?n[s]=ue({},o):H(o)?n[s]=o.slice():n[s]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&G(arguments[o],r);return n}const Yt=(t,n,r,{allOwnKeys:o}={})=>(G(n,(l,s)=>{r&&T(l)?t[s]=Re(l,r):t[s]=l},{allOwnKeys:o}),t),Qt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gt=(t,n,r,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},Xt=(t,n,r,o)=>{let l,s,a;const c={};if(n=n||{},t==null)return n;do{for(l=Object.getOwnPropertyNames(t),s=l.length;s-- >0;)a=l[s],(!o||o(a,t,n))&&!c[a]&&(n[a]=t[a],c[a]=!0);t=r!==!1&&de(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},Zt=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const o=t.indexOf(n,r);return o!==-1&&o===r},vt=t=>{if(!t)return null;if(H(t))return t;let n=t.length;if(!Ae(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},en=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&de(Uint8Array)),tn=(t,n)=>{const o=(t&&t[v]).call(t);let l;for(;(l=o.next())&&!l.done;){const s=l.value;n.call(t,s[0],s[1])}},nn=(t,n)=>{let r;const o=[];for(;(r=t.exec(n))!==null;)o.push(r);return o},on=O("HTMLFormElement"),rn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),De=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),ln=O("RegExp"),$e=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),o={};G(r,(l,s)=>{let a;(a=n(l,s,t))!==!1&&(o[s]=a||l)}),Object.defineProperties(t,o)},sn=t=>{$e(t,(n,r)=>{if(T(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=t[r];if(T(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},an=(t,n)=>{const r={},o=l=>{l.forEach(s=>{r[s]=!0})};return H(t)?o(t):o(String(t).split(n)),r},cn=()=>{},dn=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function un(t){return!!(t&&T(t.append)&&t[_e]==="FormData"&&t[v])}const fn=t=>{const n=new Array(10),r=(o,l)=>{if(Q(o)){if(n.indexOf(o)>=0)return;if(Y(o))return o;if(!("toJSON"in o)){n[l]=o;const s=H(o)?[]:{};return G(o,(a,c)=>{const f=r(a,l+1);!W(f)&&(s[c]=f)}),n[l]=void 0,s}}return o};return r(t,0)},pn=O("AsyncFunction"),mn=t=>t&&(Q(t)||T(t))&&T(t.then)&&T(t.catch),Me=((t,n)=>t?setImmediate:n?((r,o)=>(U.addEventListener("message",({source:l,data:s})=>{l===U&&s===r&&o.length&&o.shift()()},!1),l=>{o.push(l),U.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",T(U.postMessage)),hn=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Me,m={isArray:H,isArrayBuffer:Te,isBuffer:Y,isFormData:zt,isArrayBufferView:Ot,isString:Ft,isNumber:Ae,isBoolean:Dt,isObject:Q,isPlainObject:ne,isEmptyObject:$t,isReadableStream:qt,isRequest:Ht,isResponse:Kt,isHeaders:Jt,isUndefined:W,isDate:Mt,isFile:Lt,isBlob:jt,isRegExp:ln,isFunction:T,isStream:Ut,isURLSearchParams:It,isTypedArray:en,isFileList:Pt,forEach:G,merge:ue,extend:Yt,trim:Wt,stripBOM:Qt,inherits:Gt,toFlatObject:Xt,kindOf:ee,kindOfTest:O,endsWith:Zt,toArray:vt,forEachEntry:tn,matchAll:nn,isHTMLForm:on,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:$e,freezeMethods:sn,toObjectSet:an,toCamelCase:rn,noop:cn,toFiniteNumber:dn,findKey:Oe,global:U,isContextDefined:Fe,isSpecCompliantForm:un,toJSONObject:fn,isAsyncFn:pn,isThenable:mn,setImmediate:Me,asap:hn,isIterable:t=>t!=null&&T(t[v])};function V(t,n,r,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}m.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const Le=V.prototype,je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{je[t]={value:t}}),Object.defineProperties(V,je),Object.defineProperty(Le,"isAxiosError",{value:!0}),V.from=(t,n,r,o,l,s)=>{const a=Object.create(Le);return m.toFlatObject(t,a,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),V.call(a,t.message,n,r,o,l),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const gn=null;function fe(t){return m.isPlainObject(t)||m.isArray(t)}function Pe(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function Ue(t,n,r){return t?t.concat(n).map(function(l,s){return l=Pe(l),!r&&s?"["+l+"]":l}).join(r?".":""):n}function yn(t){return m.isArray(t)&&!t.some(fe)}const bn=m.toFlatObject(m,{},null,function(n){return/^is[A-Z]/.test(n)});function oe(t,n,r){if(!m.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!m.isUndefined(k[x])});const o=r.metaTokens,l=r.visitor||i,s=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(n);if(!m.isFunction(l))throw new TypeError("visitor must be a function");function p(y){if(y===null)return"";if(m.isDate(y))return y.toISOString();if(m.isBoolean(y))return y.toString();if(!f&&m.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(y)||m.isTypedArray(y)?f&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function i(y,x,k){let w=y;if(y&&!k&&typeof y=="object"){if(m.endsWith(x,"{}"))x=o?x:x.slice(0,-2),y=JSON.stringify(y);else if(m.isArray(y)&&yn(y)||(m.isFileList(y)||m.endsWith(x,"[]"))&&(w=m.toArray(y)))return x=Pe(x),w.forEach(function(g,E){!(m.isUndefined(g)||g===null)&&n.append(a===!0?Ue([x],E,s):a===null?x:x+"[]",p(g))}),!1}return fe(y)?!0:(n.append(Ue(k,x,s),p(y)),!1)}const d=[],h=Object.assign(bn,{defaultVisitor:i,convertValue:p,isVisitable:fe});function B(y,x){if(!m.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(y),m.forEach(y,function(w,u){(!(m.isUndefined(w)||w===null)&&l.call(n,w,m.isString(u)?u.trim():u,x,h))===!0&&B(w,x?x.concat(u):[u])}),d.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return B(t),n}function ze(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function pe(t,n){this._pairs=[],t&&oe(t,this,n)}const Ie=pe.prototype;Ie.append=function(n,r){this._pairs.push([n,r])},Ie.toString=function(n){const r=n?function(o){return n.call(this,o,ze)}:ze;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function xn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qe(t,n,r){if(!n)return t;const o=r&&r.encode||xn;m.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let s;if(l?s=l(n,r):s=m.isURLSearchParams(n)?n.toString():new pe(n,r).toString(o),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class He{constructor(){this.handlers=[]}use(n,r,o){return this.handlers.push({fulfilled:n,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){m.forEach(this.handlers,function(o){o!==null&&n(o)})}}const Ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pe,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},me=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,kn=me&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),En=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bn=me&&window.location.href||"http://localhost",_={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:me,hasStandardBrowserEnv:kn,hasStandardBrowserWebWorkerEnv:En,navigator:he,origin:Bn},Symbol.toStringTag,{value:"Module"})),...wn};function Cn(t,n){return oe(t,new _.classes.URLSearchParams,{visitor:function(r,o,l,s){return _.isNode&&m.isBuffer(r)?(this.append(o,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...n})}function Vn(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Nn(t){const n={},r=Object.keys(t);let o;const l=r.length;let s;for(o=0;o<l;o++)s=r[o],n[s]=t[s];return n}function Je(t){function n(r,o,l,s){let a=r[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),f=s>=r.length;return a=!a&&m.isArray(l)?l.length:a,f?(m.hasOwnProp(l,a)?l[a]=[l[a],o]:l[a]=o,!c):((!l[a]||!m.isObject(l[a]))&&(l[a]=[]),n(r,o,l[a],s)&&m.isArray(l[a])&&(l[a]=Nn(l[a])),!c)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(o,l)=>{n(Vn(o),l,r,0)}),r}return null}function Sn(t,n,r){if(m.isString(t))try{return(n||JSON.parse)(t),m.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(t)}const X={transitional:Ke,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,s=m.isObject(n);if(s&&m.isHTMLForm(n)&&(n=new FormData(n)),m.isFormData(n))return l?JSON.stringify(Je(n)):n;if(m.isArrayBuffer(n)||m.isBuffer(n)||m.isStream(n)||m.isFile(n)||m.isBlob(n)||m.isReadableStream(n))return n;if(m.isArrayBufferView(n))return n.buffer;if(m.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Cn(n,this.formSerializer).toString();if((c=m.isFileList(n))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return oe(c?{"files[]":n}:n,f&&new f,this.formSerializer)}}return s||l?(r.setContentType("application/json",!1),Sn(n)):n}],transformResponse:[function(n){const r=this.transitional||X.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(m.isResponse(n)||m.isReadableStream(n))return n;if(n&&m.isString(n)&&(o&&!this.responseType||l)){const a=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(n)}catch(c){if(a)throw c.name==="SyntaxError"?V.from(c,V.ERR_BAD_RESPONSE,this,null,this.response):c}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],t=>{X.headers[t]={}});const Rn=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_n=t=>{const n={};let r,o,l;return t&&t.split(`
2
- `).forEach(function(a){l=a.indexOf(":"),r=a.substring(0,l).trim().toLowerCase(),o=a.substring(l+1).trim(),!(!r||n[r]&&Rn[r])&&(r==="set-cookie"?n[r]?n[r].push(o):n[r]=[o]:n[r]=n[r]?n[r]+", "+o:o)}),n},We=Symbol("internals");function Z(t){return t&&String(t).trim().toLowerCase()}function re(t){return t===!1||t==null?t:m.isArray(t)?t.map(re):String(t)}function Tn(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(t);)n[o[1]]=o[2];return n}const An=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ge(t,n,r,o,l){if(m.isFunction(o))return o.call(this,n,r);if(l&&(n=r),!!m.isString(n)){if(m.isString(o))return n.indexOf(o)!==-1;if(m.isRegExp(o))return o.test(n)}}function On(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,o)=>r.toUpperCase()+o)}function Fn(t,n){const r=m.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+r,{value:function(l,s,a){return this[o].call(this,n,l,s,a)},configurable:!0})})}let A=class{constructor(n){n&&this.set(n)}set(n,r,o){const l=this;function s(c,f,p){const i=Z(f);if(!i)throw new Error("header name must be a non-empty string");const d=m.findKey(l,i);(!d||l[d]===void 0||p===!0||p===void 0&&l[d]!==!1)&&(l[d||f]=re(c))}const a=(c,f)=>m.forEach(c,(p,i)=>s(p,i,f));if(m.isPlainObject(n)||n instanceof this.constructor)a(n,r);else if(m.isString(n)&&(n=n.trim())&&!An(n))a(_n(n),r);else if(m.isObject(n)&&m.isIterable(n)){let c={},f,p;for(const i of n){if(!m.isArray(i))throw TypeError("Object iterator must return a key-value pair");c[p=i[0]]=(f=c[p])?m.isArray(f)?[...f,i[1]]:[f,i[1]]:i[1]}a(c,r)}else n!=null&&s(r,n,o);return this}get(n,r){if(n=Z(n),n){const o=m.findKey(this,n);if(o){const l=this[o];if(!r)return l;if(r===!0)return Tn(l);if(m.isFunction(r))return r.call(this,l,o);if(m.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=Z(n),n){const o=m.findKey(this,n);return!!(o&&this[o]!==void 0&&(!r||ge(this,this[o],o,r)))}return!1}delete(n,r){const o=this;let l=!1;function s(a){if(a=Z(a),a){const c=m.findKey(o,a);c&&(!r||ge(o,o[c],c,r))&&(delete o[c],l=!0)}}return m.isArray(n)?n.forEach(s):s(n),l}clear(n){const r=Object.keys(this);let o=r.length,l=!1;for(;o--;){const s=r[o];(!n||ge(this,this[s],s,n,!0))&&(delete this[s],l=!0)}return l}normalize(n){const r=this,o={};return m.forEach(this,(l,s)=>{const a=m.findKey(o,s);if(a){r[a]=re(l),delete r[s];return}const c=n?On(s):String(s).trim();c!==s&&delete r[s],r[c]=re(l),o[c]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return m.forEach(this,(o,l)=>{o!=null&&o!==!1&&(r[l]=n&&m.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const o=new this(n);return r.forEach(l=>o.set(l)),o}static accessor(n){const o=(this[We]=this[We]={accessors:{}}).accessors,l=this.prototype;function s(a){const c=Z(a);o[c]||(Fn(l,a),o[c]=!0)}return m.isArray(n)?n.forEach(s):s(n),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.reduceDescriptors(A.prototype,({value:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(o){this[r]=o}}}),m.freezeMethods(A);function ye(t,n){const r=this||X,o=n||r,l=A.from(o.headers);let s=o.data;return m.forEach(t,function(c){s=c.call(r,s,l.normalize(),n?n.status:void 0)}),l.normalize(),s}function Ye(t){return!!(t&&t.__CANCEL__)}function K(t,n,r){V.call(this,t??"canceled",V.ERR_CANCELED,n,r),this.name="CanceledError"}m.inherits(K,V,{__CANCEL__:!0});function Qe(t,n,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Dn(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function $n(t,n){t=t||10;const r=new Array(t),o=new Array(t);let l=0,s=0,a;return n=n!==void 0?n:1e3,function(f){const p=Date.now(),i=o[s];a||(a=p),r[l]=f,o[l]=p;let d=s,h=0;for(;d!==l;)h+=r[d++],d=d%t;if(l=(l+1)%t,l===s&&(s=(s+1)%t),p-a<n)return;const B=i&&p-i;return B?Math.round(h*1e3/B):void 0}}function Mn(t,n){let r=0,o=1e3/n,l,s;const a=(p,i=Date.now())=>{r=i,l=null,s&&(clearTimeout(s),s=null),t(...p)};return[(...p)=>{const i=Date.now(),d=i-r;d>=o?a(p,i):(l=p,s||(s=setTimeout(()=>{s=null,a(l)},o-d)))},()=>l&&a(l)]}const le=(t,n,r=3)=>{let o=0;const l=$n(50,250);return Mn(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,f=a-o,p=l(f),i=a<=c;o=a;const d={loaded:a,total:c,progress:c?a/c:void 0,bytes:f,rate:p||void 0,estimated:p&&c&&i?(c-a)/p:void 0,event:s,lengthComputable:c!=null,[n?"download":"upload"]:!0};t(d)},r)},Ge=(t,n)=>{const r=t!=null;return[o=>n[0]({lengthComputable:r,total:t,loaded:o}),n[1]]},Xe=t=>(...n)=>m.asap(()=>t(...n)),Ln=_.hasStandardBrowserEnv?((t,n)=>r=>(r=new URL(r,_.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)))(new URL(_.origin),_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent)):()=>!0,jn=_.hasStandardBrowserEnv?{write(t,n,r,o,l,s){const a=[t+"="+encodeURIComponent(n)];m.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),m.isString(o)&&a.push("path="+o),m.isString(l)&&a.push("domain="+l),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Un(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function Ze(t,n,r){let o=!Pn(n);return t&&(o||r==!1)?Un(t,n):n}const ve=t=>t instanceof A?{...t}:t;function z(t,n){n=n||{};const r={};function o(p,i,d,h){return m.isPlainObject(p)&&m.isPlainObject(i)?m.merge.call({caseless:h},p,i):m.isPlainObject(i)?m.merge({},i):m.isArray(i)?i.slice():i}function l(p,i,d,h){if(m.isUndefined(i)){if(!m.isUndefined(p))return o(void 0,p,d,h)}else return o(p,i,d,h)}function s(p,i){if(!m.isUndefined(i))return o(void 0,i)}function a(p,i){if(m.isUndefined(i)){if(!m.isUndefined(p))return o(void 0,p)}else return o(void 0,i)}function c(p,i,d){if(d in n)return o(p,i);if(d in t)return o(void 0,p)}const f={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(p,i,d)=>l(ve(p),ve(i),d,!0)};return m.forEach(Object.keys({...t,...n}),function(i){const d=f[i]||l,h=d(t[i],n[i],i);m.isUndefined(h)&&d!==c||(r[i]=h)}),r}const et=t=>{const n=z({},t);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:s,headers:a,auth:c}=n;n.headers=a=A.from(a),n.url=qe(Ze(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(m.isFormData(r)){if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[p,...i]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...i].join("; "))}}if(_.hasStandardBrowserEnv&&(o&&m.isFunction(o)&&(o=o(n)),o||o!==!1&&Ln(n.url))){const p=l&&s&&jn.read(s);p&&a.set(l,p)}return n},zn=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,o){const l=et(t);let s=l.data;const a=A.from(l.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:p}=l,i,d,h,B,y;function x(){B&&B(),y&&y(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let k=new XMLHttpRequest;k.open(l.method.toUpperCase(),l.url,!0),k.timeout=l.timeout;function w(){if(!k)return;const g=A.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),b={data:!c||c==="text"||c==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:g,config:t,request:k};Qe(function(F){r(F),x()},function(F){o(F),x()},b),k=null}"onloadend"in k?k.onloadend=w:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(w)},k.onabort=function(){k&&(o(new V("Request aborted",V.ECONNABORTED,t,k)),k=null)},k.onerror=function(){o(new V("Network Error",V.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const b=l.transitional||Ke;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),o(new V(E,b.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,k)),k=null},s===void 0&&a.setContentType(null),"setRequestHeader"in k&&m.forEach(a.toJSON(),function(E,b){k.setRequestHeader(b,E)}),m.isUndefined(l.withCredentials)||(k.withCredentials=!!l.withCredentials),c&&c!=="json"&&(k.responseType=l.responseType),p&&([h,y]=le(p,!0),k.addEventListener("progress",h)),f&&k.upload&&([d,B]=le(f),k.upload.addEventListener("progress",d),k.upload.addEventListener("loadend",B)),(l.cancelToken||l.signal)&&(i=g=>{k&&(o(!g||g.type?new K(null,t,k):g),k.abort(),k=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));const u=Dn(l.url);if(u&&_.protocols.indexOf(u)===-1){o(new V("Unsupported protocol "+u+":",V.ERR_BAD_REQUEST,t));return}k.send(s||null)})},In=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let o=new AbortController,l;const s=function(p){if(!l){l=!0,c();const i=p instanceof Error?p:this.reason;o.abort(i instanceof V?i:new K(i instanceof Error?i.message:i))}};let a=n&&setTimeout(()=>{a=null,s(new V(`timeout ${n} of ms exceeded`,V.ETIMEDOUT))},n);const c=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),t=null)};t.forEach(p=>p.addEventListener("abort",s));const{signal:f}=o;return f.unsubscribe=()=>m.asap(c),f}},qn=function*(t,n){let r=t.byteLength;if(r<n){yield t;return}let o=0,l;for(;o<r;)l=o+n,yield t.slice(o,l),o=l},Hn=async function*(t,n){for await(const r of Kn(t))yield*qn(r,n)},Kn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:r,value:o}=await n.read();if(r)break;yield o}}finally{await n.cancel()}},tt=(t,n,r,o)=>{const l=Hn(t,n);let s=0,a,c=f=>{a||(a=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:i}=await l.next();if(p){c(),f.close();return}let d=i.byteLength;if(r){let h=s+=d;r(h)}f.enqueue(new Uint8Array(i))}catch(p){throw c(p),p}},cancel(f){return c(f),l.return()}},{highWaterMark:2})},se=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nt=se&&typeof ReadableStream=="function",Jn=se&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ot=(t,...n)=>{try{return!!t(...n)}catch{return!1}},Wn=nt&&ot(()=>{let t=!1;const n=new Request(_.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),rt=64*1024,be=nt&&ot(()=>m.isReadableStream(new Response("").body)),ae={stream:be&&(t=>t.body)};se&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!ae[n]&&(ae[n]=m.isFunction(t[n])?r=>r[n]():(r,o)=>{throw new V(`Response type '${n}' is not supported`,V.ERR_NOT_SUPPORT,o)})})})(new Response);const Yn=async t=>{if(t==null)return 0;if(m.isBlob(t))return t.size;if(m.isSpecCompliantForm(t))return(await new Request(_.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(m.isArrayBufferView(t)||m.isArrayBuffer(t))return t.byteLength;if(m.isURLSearchParams(t)&&(t=t+""),m.isString(t))return(await Jn(t)).byteLength},Qn=async(t,n)=>{const r=m.toFiniteNumber(t.getContentLength());return r??Yn(n)},xe={http:gn,xhr:zn,fetch:se&&(async t=>{let{url:n,method:r,data:o,signal:l,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:f,responseType:p,headers:i,withCredentials:d="same-origin",fetchOptions:h}=et(t);p=p?(p+"").toLowerCase():"text";let B=In([l,s&&s.toAbortSignal()],a),y;const x=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let k;try{if(f&&Wn&&r!=="get"&&r!=="head"&&(k=await Qn(i,o))!==0){let b=new Request(n,{method:"POST",body:o,duplex:"half"}),C;if(m.isFormData(o)&&(C=b.headers.get("content-type"))&&i.setContentType(C),b.body){const[F,J]=Ge(k,le(Xe(f)));o=tt(b.body,rt,F,J)}}m.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;y=new Request(n,{...h,signal:B,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:o,duplex:"half",credentials:w?d:void 0});let u=await fetch(y,h);const g=be&&(p==="stream"||p==="response");if(be&&(c||g&&x)){const b={};["status","statusText","headers"].forEach(N=>{b[N]=u[N]});const C=m.toFiniteNumber(u.headers.get("content-length")),[F,J]=c&&Ge(C,le(Xe(c),!0))||[];u=new Response(tt(u.body,rt,F,()=>{J&&J(),x&&x()}),b)}p=p||"text";let E=await ae[m.findKey(ae,p)||"text"](u,t);return!g&&x&&x(),await new Promise((b,C)=>{Qe(b,C,{data:E,headers:A.from(u.headers),status:u.status,statusText:u.statusText,config:t,request:y})})}catch(w){throw x&&x(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,t,y),{cause:w.cause||w}):V.from(w,w&&w.code,t,y)}})};m.forEach(xe,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const lt=t=>`- ${t}`,Gn=t=>m.isFunction(t)||t===null||t===!1,st={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:n}=t;let r,o;const l={};for(let s=0;s<n;s++){r=t[s];let a;if(o=r,!Gn(r)&&(o=xe[(a=String(r)).toLowerCase()],o===void 0))throw new V(`Unknown adapter '${a}'`);if(o)break;l[a||"#"+s]=o}if(!o){const s=Object.entries(l).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
4
- `+s.map(lt).join(`
5
- `):" "+lt(s[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:xe};function we(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new K(null,t)}function at(t){return we(t),t.headers=A.from(t.headers),t.data=ye.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),st.getAdapter(t.adapter||X.adapter)(t).then(function(o){return we(t),o.data=ye.call(t,t.transformResponse,o),o.headers=A.from(o.headers),o},function(o){return Ye(o)||(we(t),o&&o.response&&(o.response.data=ye.call(t,t.transformResponse,o.response),o.response.headers=A.from(o.response.headers))),Promise.reject(o)})}const it="1.11.0",ie={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{ie[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});const ct={};ie.transitional=function(n,r,o){function l(s,a){return"[Axios v"+it+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(n===!1)throw new V(l(a," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!ct[a]&&(ct[a]=!0,console.warn(l(a," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(s,a,c):!0}},ie.spelling=function(n){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${n}`),!0)};function Xn(t,n,r){if(typeof t!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let l=o.length;for(;l-- >0;){const s=o[l],a=n[s];if(a){const c=t[s],f=c===void 0||a(c,s,t);if(f!==!0)throw new V("option "+s+" must be "+f,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}}const ce={assertOptions:Xn,validators:ie},D=ce.validators;let I=class{constructor(n){this.defaults=n||{},this.interceptors={request:new He,response:new He}}async request(n,r){try{return await this._request(n,r)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const s=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
6
- `+s):o.stack=s}catch{}}throw o}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=z(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:s}=r;o!==void 0&&ce.assertOptions(o,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),l!=null&&(m.isFunction(l)?r.paramsSerializer={serialize:l}:ce.assertOptions(l,{encode:D.function,serialize:D.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ce.assertOptions(r,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&m.merge(s.common,s[r.method]);s&&m.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=A.concat(a,s);const c=[];let f=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(f=f&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const p=[];this.interceptors.response.forEach(function(x){p.push(x.fulfilled,x.rejected)});let i,d=0,h;if(!f){const y=[at.bind(this),void 0];for(y.unshift(...c),y.push(...p),h=y.length,i=Promise.resolve(r);d<h;)i=i.then(y[d++],y[d++]);return i}h=c.length;let B=r;for(d=0;d<h;){const y=c[d++],x=c[d++];try{B=y(B)}catch(k){x.call(this,k);break}}try{i=at.call(this,B)}catch(y){return Promise.reject(y)}for(d=0,h=p.length;d<h;)i=i.then(p[d++],p[d++]);return i}getUri(n){n=z(this.defaults,n);const r=Ze(n.baseURL,n.url,n.allowAbsoluteUrls);return qe(r,n.params,n.paramsSerializer)}};m.forEach(["delete","get","head","options"],function(n){I.prototype[n]=function(r,o){return this.request(z(o||{},{method:n,url:r,data:(o||{}).data}))}}),m.forEach(["post","put","patch"],function(n){function r(o){return function(s,a,c){return this.request(z(c||{},{method:n,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}I.prototype[n]=r(),I.prototype[n+"Form"]=r(!0)});let Zn=class Et{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const o=this;this.promise.then(l=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](l);o._listeners=null}),this.promise.then=l=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(l);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s,a,c){o.reason||(o.reason=new K(s,a,c),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=o=>{n.abort(o)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new Et(function(l){n=l}),cancel:n}}};function vn(t){return function(r){return t.apply(null,r)}}function eo(t){return m.isObject(t)&&t.isAxiosError===!0}const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach(([t,n])=>{ke[n]=t});function dt(t){const n=new I(t),r=Re(I.prototype.request,n);return m.extend(r,I.prototype,n,{allOwnKeys:!0}),m.extend(r,n,null,{allOwnKeys:!0}),r.create=function(l){return dt(z(t,l))},r}const S=dt(X);S.Axios=I,S.CanceledError=K,S.CancelToken=Zn,S.isCancel=Ye,S.VERSION=it,S.toFormData=oe,S.AxiosError=V,S.Cancel=S.CanceledError,S.all=function(n){return Promise.all(n)},S.spread=vn,S.isAxiosError=eo,S.mergeConfig=z,S.AxiosHeaders=A,S.formToJSON=t=>Je(m.isHTMLForm(t)?new FormData(t):t),S.getAdapter=st.getAdapter,S.HttpStatusCode=ke,S.default=S;const{Axios:yl,AxiosError:bl,CanceledError:xl,isCancel:wl,CancelToken:kl,VERSION:El,all:Bl,Cancel:Cl,isAxiosError:Vl,spread:Nl,toFormData:Sl,AxiosHeaders:Rl,HttpStatusCode:_l,formToJSON:Tl,getAdapter:Al,mergeConfig:Ol}=S;function ut(t,n){const{api:r,options:o=[],limit:l=20,dataKey:s="data"}=t,a=t.type==="checkbox";function c(N){return a?Array.isArray(N)?N:N?[N]:[]:N??""}const f=e.ref(c(t.modelValue)),p=e.ref(""),i=e.ref(!1),d=e.ref([]),h=e.ref("id"),B=e.ref("text"),y=e.ref(!1),x=e.ref(t.layout!=="popover"&&o.length>l);function k(N){const M=N.find(Boolean)??{},P=["id","value","code","key"].find(Ne=>Ne in M)??"id",cl=["text","label","name","title"].find(Ne=>Ne in M)??"text";return{autoValueKey:P,autoLabelKey:cl}}if(o.length>0){const N=k(o);h.value=N.autoValueKey,B.value=N.autoLabelKey}const w=e.computed(()=>{if(r)return d.value;const N=d.value;if(t.layout==="popover")return N;if(!p.value)return y.value?N:N.slice(0,l);const M=p.value.toLowerCase();return N.filter(P=>P[B.value].toLowerCase().includes(M))});let u=null;async function g(N){if(r){i.value=!0;try{const M=await S.get(r,{params:{json:1,key:N,limit:l}});if(d.value=M.data[s],d.value.length>0){const P=k(d.value);h.value=P.autoValueKey,B.value=P.autoLabelKey}}catch(M){console.error("Failed to fetch remote options:",M)}finally{i.value=!1}}}e.watch(p,N=>{r&&(u&&clearTimeout(u),u=setTimeout(()=>{g(N)},200))}),e.watch(()=>t.modelValue,N=>{f.value=c(N)},{immediate:!0}),r?g(""):d.value=o;function E(N){return a&&Array.isArray(f.value)?f.value.includes(N[h.value]):f.value===N[h.value]}function b(N){if(a&&!Array.isArray(f.value)&&(f.value=[]),a&&Array.isArray(f.value)){const M=f.value.includes(N[h.value]);f.value=M?f.value.filter(P=>P!==N[h.value]):[...f.value,N[h.value]]}else f.value=N[h.value];n("update:modelValue",f.value),n("change",{name:t.name,value:f.value})}function C(){a?f.value=[]:f.value=void 0,n("update:modelValue",f.value),n("clear",t.name)}function F(){u&&clearTimeout(u),p.value="",y.value=!1}function J(){y.value=!y.value}return e.onBeforeUnmount(()=>{u&&clearTimeout(u)}),{innerValue:f,searchTerm:p,filteredOptions:w,isSelected:E,selectItem:b,clear:C,resetSearch:F,toggleShowAll:J,isReqProc:i,showAll:y,isEnableShowAll:x,labelKey:B,valueKey:h,allOptions:d}}const $=(t,n)=>{const r=t.__vccOpts||t;for(const[o,l]of n)r[o]=l;return r},to={},no={class:"w-48 mx-auto",viewBox:"0 0 178 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oo(t,n){return e.openBlock(),e.createElementBlock("svg",no,n[0]||(n[0]=[e.createStaticVNode('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>',12)]))}const ft=$(to,[["render",oo]]),ro={},lo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down w-[14px] rotate"};function so(t,n){return e.openBlock(),e.createElementBlock("svg",lo,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const Ee=$(ro,[["render",so]]),ao={},io={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down w-[14px] rotate-[180deg]"};function co(t,n){return e.openBlock(),e.createElementBlock("svg",io,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const pt=$(ao,[["render",co]]),uo={key:0,class:"h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relative justify-center"},fo={key:1,class:"w-full"},po={class:"flex flex-col items-center justify-center p-5 text-center"},mo={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},ho=["disabled"],go={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},yo=["disabled"],mt=e.defineComponent({__name:"radio",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(null),s=r,{innerValue:a,searchTerm:c,filteredOptions:f,isSelected:p,selectItem:i,clear:d,resetSearch:h,toggleShowAll:B,isReqProc:y,showAll:x,isEnableShowAll:k,labelKey:w,valueKey:u,allOptions:g}=ut({...o,modelValue:o.modelValue??o.default??""},s);return e.onMounted(()=>{h()}),n({clear:d,inputTextRef:l}),e.watch(()=>o.modelValue,E=>{E===void 0&&(a.value=void 0)}),(E,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([E.layout==="popover"?"flex flex-col h-full":"flex flex-col vs-filter-checkbox space-y-0.5"])},[E.type==="select"?(e.openBlock(),e.createElementBlock("div",uo,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=C=>e.isRef(c)?c.value=C:null),class:"w-full h-full text-[13px] px-4 border rounded-sm pl-9 focus:outline-none focus:ring-ring focus:ring-1 focus:ring-blue-500",placeholder:"Пошук",type:"text",ref_key:"inputTextRef",ref:l},null,512),[[e.vModelText,e.unref(c)]]),b[7]||(b[7]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search absolute text-gray-400 -translate-y-1/2 left-4 top-1/2"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),e.createElementVNode("path",{d:"M21 21l-6 -6"})],-1)),(e.openBlock(),e.createElementBlock("svg",{onClick:b[1]||(b[1]=C=>c.value=""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x absolute text-gray-400 -translate-y-1/2 cursor-pointer hover:text-red-500 right-4 top-1/2",height:"16",width:"16"},b[6]||(b[6]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([E.layout==="popover"?"flex-1 overflow-y-auto mb-4 max-h-64":"",E.layout==="inline"?"flex-1 overflow-y-auto mb-4 max-h-80 pr-1":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),C=>(e.openBlock(),e.createBlock(Se,{layout:E.layout,key:C.id,count:C.count,label:C[e.unref(w)],color:C.color,type:"radio",value:C[e.unref(u)],"is-selected":e.unref(p)(C),onItemClick:F=>e.unref(i)(C)},null,8,["layout","count","label","color","value","is-selected","onItemClick"]))),128))],2),E.type==="select"&&e.unref(f).length===0&&!e.unref(y)?(e.openBlock(),e.createElementBlock("div",fo,[e.createElementVNode("div",po,[e.createVNode(ft),b[8]||(b[8]=e.createElementVNode("div",{class:"max-w-sm mx-auto mt-6"},[e.createElementVNode("p",{class:"font-medium text-gray-800 dark:text-neutral-200"},"За вашим запитом нічого не знайдено"),e.createElementVNode("p",{class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"})],-1))])])):e.createCommentVNode("",!0),E.layout!=="popover"&&E.type!=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[!e.unref(x)&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:b[2]||(b[2]=(...C)=>e.unref(B)&&e.unref(B)(...C)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[9]||(b[9]=e.createTextVNode(" Показати більше ")),e.createVNode(Ee)])):e.createCommentVNode("",!0),e.unref(x)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:b[3]||(b[3]=(...C)=>e.unref(B)&&e.unref(B)(...C)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[10]||(b[10]=e.createTextVNode(" Показати менше ")),e.createVNode(pt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),E.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[E.layout==="inline"?(e.openBlock(),e.createElementBlock("div",mo,[e.createTextVNode(e.toDisplayString(e.unref(a)?1:0)+" з "+e.toDisplayString(e.unref(g).length)+" обрано ",1),e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a)===void 0,onClick:b[4]||(b[4]=(...C)=>e.unref(d)&&e.unref(d)(...C))}," Очистити ",8,ho)])):e.createCommentVNode("",!0),E.layout==="popover"?(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a)===void 0,onClick:b[5]||(b[5]=(...C)=>e.unref(d)&&e.unref(d)(...C))}," Очистити ",8,yo),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)?1:0)+" з "+e.toDisplayString(e.unref(g).length)+" обрано",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2))}}),bo={key:0,class:"h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relative justify-center"},xo={key:1,class:"w-full"},wo={class:"flex flex-col items-center justify-center p-5 text-center"},ko={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},Eo=["disabled"],Bo={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Co=["disabled"],Be=e.defineComponent({__name:"checkbox",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(null),{innerValue:a,filteredOptions:c,isSelected:f,selectItem:p,clear:i,resetSearch:d,toggleShowAll:h,isReqProc:B,showAll:y,isEnableShowAll:x,searchTerm:k,labelKey:w,valueKey:u,allOptions:g}=ut({...o,type:"checkbox",modelValue:o.modelValue},l);return e.onMounted(()=>{d()}),e.watch(()=>o.modelValue,E=>{E===void 0&&(a.value=[])}),n({clear:i,inputTextRef:s}),(E,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([E.layout==="popover"?"flex flex-col h-full":"flex flex-col vs-filter-checkbox space-y-0.5"])},[E.type==="select"?(e.openBlock(),e.createElementBlock("div",bo,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":b[0]||(b[0]=C=>e.isRef(k)?k.value=C:null),class:"w-full h-full text-[13px] px-4 border rounded-sm pl-9 focus:outline-none focus:ring-ring focus:ring-1 focus:ring-blue-500",placeholder:"Пошук",type:"text",ref_key:"inputTextRef",ref:s},null,512),[[e.vModelText,e.unref(k)]]),b[7]||(b[7]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search absolute text-gray-400 -translate-y-1/2 left-4 top-1/2"},[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}),e.createElementVNode("path",{d:"M21 21l-6 -6"})],-1)),(e.openBlock(),e.createElementBlock("svg",{onClick:b[1]||(b[1]=C=>k.value=""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x absolute text-gray-400 -translate-y-1/2 cursor-pointer hover:text-red-500 right-4 top-1/2",height:"16",width:"16"},b[6]||(b[6]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)])))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([E.layout==="popover"?"flex-1 overflow-y-auto mb-4 max-h-64":"",E.layout==="inline"?"flex-1 overflow-y-auto mb-4 max-h-80 pr-1":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),C=>(e.openBlock(),e.createBlock(Se,{layout:E.layout,count:C.count,label:C[e.unref(w)],color:C.color,type:"checkbox",value:C[e.unref(u)],"is-selected":e.unref(f)(C),onItemClick:F=>e.unref(p)(C)},null,8,["layout","count","label","color","value","is-selected","onItemClick"]))),256))],2),E.type==="select"&&e.unref(c).length===0&&!e.unref(B)?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",wo,[e.createVNode(ft),b[8]||(b[8]=e.createElementVNode("div",{class:"max-w-sm mx-auto mt-6"},[e.createElementVNode("p",{class:"font-medium text-gray-800 dark:text-neutral-200"},"За вашим запитом нічого не знайдено"),e.createElementVNode("p",{class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"})],-1))])])):e.createCommentVNode("",!0),E.layout!=="popover"&&E.type!=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[!e.unref(y)&&e.unref(x)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:b[2]||(b[2]=(...C)=>e.unref(h)&&e.unref(h)(...C)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[9]||(b[9]=e.createTextVNode(" Показати більше ")),e.createVNode(Ee)])):e.createCommentVNode("",!0),e.unref(y)?(e.openBlock(),e.createElementBlock("div",{key:1,onClick:b[3]||(b[3]=(...C)=>e.unref(h)&&e.unref(h)(...C)),class:"inline-flex cursor-pointer items-center gap-x-1.5 text-[13px] text-gray-800 underline underline-offset-4 hover:text-blue-600 focus:outline-none focus:text-blue-600 mt-1 px-2"},[b[10]||(b[10]=e.createTextVNode(" Показати менше ")),e.createVNode(pt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),E.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[E.layout==="inline"?(e.openBlock(),e.createElementBlock("div",ko,[e.createTextVNode(e.toDisplayString(e.unref(a).length)+" з "+e.toDisplayString(e.unref(g).length)+" обрано ",1),e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a).length===0,onClick:b[4]||(b[4]=(...C)=>e.unref(i)&&e.unref(i)(...C))}," Очистити ",8,Eo)])):e.createCommentVNode("",!0),E.layout==="popover"?(e.openBlock(),e.createElementBlock("div",Bo,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:e.unref(a).length===0,onClick:b[5]||(b[5]=(...C)=>e.unref(i)&&e.unref(i)(...C))}," Очистити ",8,Co),e.createElementVNode("span",null,e.toDisplayString(e.unref(a).length)+" з "+e.toDisplayString(e.unref(g).length)+" обрано",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2))}}),Vo={},No={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"};function So(t,n){return e.openBlock(),e.createElementBlock("svg",No,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},null,-1),e.createElementVNode("path",{d:"M21 21l-6 -6"},null,-1)]))}const Ro=$(Vo,[["render",So]]),_o={},To={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-x stroke-gray-500 hover:stroke-red-500 transition-all",width:"15px",height:"15px"};function Ao(t,n){return e.openBlock(),e.createElementBlock("svg",To,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M18 6l-12 12"},null,-1),e.createElementVNode("path",{d:"M6 6l12 12"},null,-1)]))}const Oo=$(_o,[["render",Ao]]);class ht{static getWidthClass(n){return typeof n=="number"?`w-[${n}px]`:typeof n=="string"?n.endsWith("%")||n.endsWith("px")?`w-[${n}]`:`w-${n}`:"w-full"}}const Fo={class:"absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3"},Do=["placeholder"],$o=e.defineComponent({__name:"text-input",props:{id:{},name:{},type:{},label:{},width:{default:220},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{emit:n}){const r=t,o=e.ref((r.placeHolder||r.label).toString()),l=n,s=e.ref(r.modelValue??"");e.watch(()=>r.modelValue,f=>{f!==s.value&&(s.value=f??"")});function a(){l("update:modelValue",s.value),l("change",{name:r.name,value:s.value})}function c(){s.value="",l("update:modelValue",""),l("clear",r.name)}return(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vs-form-text relative bg-white rounded-lg [&>input]:py-[7px] [&>input]:max-h-[38px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600",f.layout==="inline"?e.unref(ht).getWidthClass(f.width):"w-full mb-2"])},[e.createElementVNode("div",Fo,[e.createVNode(Ro)]),s.value!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:c,class:"absolute bottom-2/4 translate-y-2/4 right-3 cursor-pointer"},[e.createVNode(Oo)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":p[0]||(p[0]=i=>s.value=i),onInput:a,placeholder:o.value,class:"!pr-7 !pl-8 bg-white h-[38px] text-sm py-2 px-3 block w-full border border-solid placeholder:text-nowrap border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-400 focus:border-2 focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"},null,40,Do),[[e.vModelText,s.value]])],2))}}),Mo={class:"p-1"},Lo=["placeholder","disabled"],jo=["placeholder","disabled"],Po={key:0,class:"border-t p-1"},Uo={class:"grid grid-cols-2 gap-2"},zo=["onClick"],Io={key:0,class:"flex justify-between p-3 border-t bg-gray-50 text-xs text-gray-500"},qo=["disabled"],Ho={key:1,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Ko=["disabled"],Jo=e.defineComponent({__name:"range-input",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(o.modelValue??o.default??[]),s=r,a=e.computed({get:()=>o.modelValue??l.value,set:i=>{o.modelValue!==void 0?s("update:modelValue",i):l.value=i}});function c(){a.value=l.value,s("change",{name:o.name,value:l.value})}function f(){l.value=[],a.value=l.value,s("clear",o.name)}function p(i,d){l.value=[i,d],a.value=l.value,s("change",{name:o.name,value:l.value})}return e.watch(()=>o.modelValue,i=>{i!==void 0?(l.value=i,s("update:modelValue",i)):l.value=[]}),n({clear:f,currentValue:a}),(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Mo,[e.createElementVNode("div",{class:e.normalizeClass(["flex justify-between gap-4",i.layout==="popover"?"flex-col":""])},[e.createElementVNode("label",{for:"FilterFrom",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full",i.layout==="popover"?"":"flex"])},[i.layout==="popover"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Від ")],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:"FilterFrom",type:"number",class:"vs-filter-range py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",placeholder:i.placeHolder?.[0]??"min",step:"1",style:{outline:"none"},"onUpdate:modelValue":d[0]||(d[0]=h=>l.value[0]=h),onInput:d[1]||(d[1]=h=>c()),disabled:i.disabled},null,40,Lo),[[e.vModelText,l.value[0]]])],2),e.createElementVNode("label",{for:"FilterTo",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full",i.layout==="popover"?"":"flex"])},[i.layout==="popover"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" До ")],64)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:"FilterTo",type:"number",class:"vs-filter-range py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",placeholder:i.placeHolder?.[1]??"max",min:"0",max:"1000000000000000",step:"1",style:{outline:"none"},"onUpdate:modelValue":d[2]||(d[2]=h=>l.value[1]=h),onInput:d[3]||(d[3]=h=>c()),disabled:i.disabled},null,40,jo),[[e.vModelText,l.value[1]]])],2)],2)]),o.quickRange?(e.openBlock(),e.createElementBlock("div",Po,[d[4]||(d[4]=e.createElementVNode("label",{class:"block text-xs font-medium text-gray-600 mb-2"}," Проміжки ",-1)),e.createElementVNode("div",Uo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickRange,h=>(e.openBlock(),e.createElementBlock("button",{onClick:B=>p(h[0],h[1]),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border h-9 rounded-md px-3 text-xs"},[h.length===1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h[0]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h[0])+" - "+e.toDisplayString(h[1]),1)],64))],8,zo))),256))])])):e.createCommentVNode("",!0),i.cleanable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.layout==="inline"?(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:l.value.length===0,onClick:f}," Очистити ",8,qo)])):e.createCommentVNode("",!0),i.layout==="popover"?(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:l.value.length===0,onClick:f}," Очистити ",8,Ko)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))}}),Wo=["disabled"],Yo={key:0,class:"absolute top-0 end-0 inline-flex min-h-[10px] min-w-[10px] z-10 items-center py-0.5 rounded-full text-xs font-medium transform -translate-y-1/2 translate-x-1/2 bg-blue-600 text-white px-1"},Qo={class:"w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full"},Go={class:"w-[300px] max-h-[500px] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 before:w-full"},gt=e.defineComponent({__name:"popover-field",props:{disabled:{type:Boolean,default:!1},label:{},currentValue:{},fieldRef:{},width:{},layout:{}},emits:["clear"],setup(t,{expose:n,emit:r}){const o=t,l=e.ref(!1),s=e.ref({top:0,left:0}),a=e.ref(null),c=e.ref(null),f=e.ref(null);function p(){const y=c.value,x=f.value;if(!y||!x)return;const k=y.getBoundingClientRect();s.value={top:k.bottom+8,left:k.left}}function i(){l.value=!l.value,l.value&&e.nextTick(()=>{p(),o.fieldRef?.inputTextRef&&o.fieldRef?.inputTextRef.focus()})}function d(y){!a.value?.contains(y.target)&&!f.value?.contains(y.target)&&(l.value=!1)}function h(y){y.key==="Escape"&&(l.value=!1)}e.onMounted(()=>{document.addEventListener("click",d,!0),document.addEventListener("keydown",h),window.addEventListener("scroll",p,!0)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",d,!0),document.removeEventListener("keydown",h),window.removeEventListener("scroll",p,!0)});function B(){l.value=!1}return n({close:B}),(y,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:i,disabled:y.disabled,ref_key:"triggerRef",ref:c,class:e.normalizeClass(["relative ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input hover:bg-accent hover:text-accent-foreground border px-4 py-2 gap-2 bg-transparent h-[38px]",y.width?e.unref(ht).getWidthClass(y.width):"w-full"])},[e.createTextVNode(e.toDisplayString(y.label)+" ",1),e.createVNode(Ee,{class:"h-4 w-4"}),(Array.isArray(y.currentValue)?y.currentValue===null||y.currentValue.length>0:y.currentValue)&&y.layout==="inline"?(e.openBlock(),e.createElementBlock("span",Yo)):e.createCommentVNode("",!0)],10,Wo),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{ref_key:"popperRef",ref:f,class:"vsTailwind vs-popover__content bottom-right w-fit fixed z-[1000]",style:e.normalizeStyle({top:`${s.value.top}px`,left:`${s.value.left}px`}),"data-inside-popover":""},[e.createElementVNode("div",Qo,[e.createElementVNode("div",Go,[e.renderSlot(y.$slots,"default")])])],4),[[e.vShow,l.value]])]))]))}});class R{static format(n){const r=n.getFullYear(),o=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0");return`${r}-${o}-${l}`}static getShiftedDay(n,r=0){const o=n?new Date(n):new Date;return o.setDate(o.getDate()+r),this.format(o)}static getLastWeekRange(n,r,o=0){if(n&&r){const p=new Date(n),i=new Date(r);return p.setDate(p.getDate()+o*7),i.setDate(i.getDate()+o*7),[this.format(p),this.format(i)]}const l=new Date,s=l.getDay(),a=s===0?13:s-1+7,c=new Date(l);c.setDate(l.getDate()-a+o*7);const f=new Date(c);return f.setDate(c.getDate()+6),[this.format(c),this.format(f)]}static getMonthRange(n,r,o=0){let l;n?l=new Date(n):l=new Date,l=new Date(l.getFullYear(),l.getMonth()+o,1);const s=l,a=new Date(l.getFullYear(),l.getMonth()+1,0);return[this.format(s),this.format(a)]}static getQuarterRange(n,r,o=0){const l=n||r,s=l?new Date(l):new Date;let a=Math.floor(s.getMonth()/3);a+=o;const c=(a%4+4)%4*3,f=s.getFullYear()+Math.floor(a/4),p=new Date(f,c,1),i=new Date(f,c+3,0);return[this.format(p),this.format(i)]}static getYear(n,r=0){let o;return n&&/^\d{4}$/.test(n)?o=parseInt(n,10):n?o=new Date(n).getFullYear():o=new Date().getFullYear(),String(o+r)}static getRangeFromDaysBefore(n){const r=new Date,o=new Date(r.getTime());return o.setDate(r.getDate()-n),[this.format(o),this.format(r)]}}const Xo={},Zo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-blue-600 w-[16px] h-[16px]"};function vo(t,n){return e.openBlock(),e.createElementBlock("svg",Zo,n[0]||(n[0]=[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)]))}const q=$(Xo,[["render",vo]]),er={},tr={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down text-gray-800 rotate-[90deg]"};function nr(t,n){return e.openBlock(),e.createElementBlock("svg",tr,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const or=$(er,[["render",nr]]),rr={},lr={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down text-gray-800 rotate-[270deg]"};function sr(t,n){return e.openBlock(),e.createElementBlock("svg",lr,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M6 9l6 6l6 -6"},null,-1)]))}const ar=$(rr,[["render",sr]]),ir={class:""},cr={class:""},dr={class:""},ur={class:""},fr={class:""},pr={class:""},mr={class:""},hr={class:"inline-flex rounded-lg shrink-0 pl-1"},gr={class:"inline-flex rounded-lg shrink-0 pl-1"},yr={key:1,class:"flex gap-1 !w-[75%] rounded-lg"},br=["max","disabled"],xr=["min","disabled"],wr={key:2,class:"ml-1"},kr=["disabled"],Er=["max","disabled"],Br=["min","disabled"],Cr={key:2,class:"flex justify-between items-center text-xs text-gray-500 p-1 border-t"},Vr=["disabled"],yt={radio:mt,checkbox:Be,check:Be,text:$o,range:Jo,date:e.defineComponent({__name:"date-input",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{default:"inline"},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{emit:n}){const r=t,o=n,l=e.ref(null),s=e.ref(r.modelValue??r.default??[]),a=e.ref(""),c=e.ref(0);function f(){const w=R.getRangeFromDaysBefore(c.value);return s.value=[a.value,...w],o("change",{name:r.name,value:s}),o("update:modelValue",s.value),w}function p(w){a.value=w,l.value?.close();const u=[];switch(a.value){case"today":u.push(R.getShiftedDay());break;case"week":u.push(...R.getLastWeekRange());break;case"month":u.push(...R.getMonthRange());break;case"quarter":u.push(...R.getQuarterRange());break;case"year":u.push(R.getYear());break;case"last_7_days":c.value=7,f();break;case"range":c.value=7,u.push(...f());break}s.value=[a.value,...u],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}function i(){const w=[];switch(a.value){case"today":w.push(R.getShiftedDay(s.value[1],1));break;case"week":w.push(...R.getLastWeekRange(s.value[1],s.value[2],1));break;case"month":w.push(...R.getMonthRange(s.value[1],s.value[2],1));break;case"quarter":w.push(...R.getQuarterRange(s.value[1],s.value[2],1));break;case"year":w.push(R.getYear(s.value[1],1));break}s.value=[a.value,...w],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}function d(){const w=[];switch(a.value){case"today":w.push(R.getShiftedDay(s.value[1],-1));break;case"week":w.push(...R.getLastWeekRange(s.value[1],s.value[2],-1));break;case"month":w.push(...R.getMonthRange(s.value[1],s.value[2],-1));break;case"quarter":w.push(...R.getQuarterRange(s.value[1],s.value[2],-1));break;case"year":w.push(R.getYear(s.value[1],-1));break}s.value=[a.value,...w],o("change",{name:r.name,value:s}),o("update:modelValue",s.value)}e.onMounted(()=>{let w=[];if(Array.isArray(r.modelValue)?w=r.modelValue:Array.isArray(r.default)&&(w=r.default),w.length===0)return;const[u,...g]=w;a.value=u;let E=[];switch(u){case"today":E.push(R.getShiftedDay(g[0]));break;case"week":E=R.getLastWeekRange(g[0],g[1]);break;case"month":E=R.getMonthRange(g[0],g[1]);break;case"quarter":E=R.getQuarterRange(g[0],g[1]);break;case"year":E.push(R.getYear(g[0]));break;case"last_7_days":c.value=Number(g[0]??7);return;case"range":s.value=[u,g[0]??"",g[1]??""];return;default:return}s.value=[u,...E],o("update:modelValue",s.value)});const h=["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"];function B(w){const[u,g,E]=w.split("-");return`${E}.${g}.${u}`}function y(w){const{value:u}=s;switch(w){case"today":return B(u[1]);case"range":return"Період";case"week":return u[1]&&u[2]?`${B(u[1])} – ${B(u[2])}`:"";case"quarter":if(u[1]){const g=new Date(u[1]),E=g.getFullYear(),b=g.getMonth();return`${Math.floor(b/3)+1} квартал ${E}`}return"";case"month":if(u[1]){const[g,E]=u[1].split("-");return`${h[parseInt(E,10)-1]} ${g}`}return"";case"year":return u[1]||"";case"last_7_days":return"За останні дні";default:return r.label??""}}const x=e.computed(()=>a.value?y(a.value):r.label??"");function k(){a.value="",s.value=[],o("update:modelValue",[])}return e.watch(()=>r.modelValue,w=>{w!==void 0?(s.value=w,o("update:modelValue",w)):(a.value="",s.value=[])}),(w,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.layout==="inline"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["",w.layout!="inline"?"relative flex w-full h-auto gap-2 filter-date m-2 flex-wrap":"flex"])},[e.createVNode(gt,{ref_key:"popoverRef",ref:l,label:x.value,"current-value":s.value,onClear:k,layout:w.layout},{default:e.withCtx(()=>[e.createElementVNode("div",ir,[e.createElementVNode("button",{type:"button",onClick:u[0]||(u[0]=g=>p("range")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[12]||(u[12]=e.createTextVNode(" Період ")),a.value==="range"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),u[19]||(u[19]=e.createElementVNode("div",{class:""},[e.createElementVNode("div",{class:"pt-2 mt-2 border-t"})],-1)),e.createElementVNode("div",cr,[e.createElementVNode("button",{type:"button",onClick:u[1]||(u[1]=g=>p("today")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[13]||(u[13]=e.createTextVNode(" Сьогодні ")),a.value==="today"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",dr,[e.createElementVNode("button",{type:"button",onClick:u[2]||(u[2]=g=>p("week")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[14]||(u[14]=e.createTextVNode(" Тиждень ")),a.value==="week"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ur,[e.createElementVNode("button",{type:"button",onClick:u[3]||(u[3]=g=>p("month")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[15]||(u[15]=e.createTextVNode(" Місяць ")),a.value==="month"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",fr,[e.createElementVNode("button",{type:"button",onClick:u[4]||(u[4]=g=>p("quarter")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[16]||(u[16]=e.createTextVNode(" Квартал ")),a.value==="quarter"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",pr,[e.createElementVNode("button",{type:"button",onClick:u[5]||(u[5]=g=>p("year")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[17]||(u[17]=e.createTextVNode(" Рік ")),a.value==="year"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])]),u[20]||(u[20]=e.createElementVNode("div",{class:""},[e.createElementVNode("div",{class:"pt-2 mt-2 border-t"})],-1)),e.createElementVNode("div",mr,[e.createElementVNode("button",{type:"button",onClick:u[6]||(u[6]=g=>p("last_7_days")),class:"flex items-center justify-between w-full px-4 py-2 text-sm text-left rounded-lg cursor-pointer filter-date__item hs-selected:bg-stone-100 text-stone-800 hover:bg-stone-100 focus:outline-none focus:bg-stone-100"},[u[18]||(u[18]=e.createTextVNode(" Останні 7 днів ")),a.value==="last_7_days"?(e.openBlock(),e.createBlock(q,{key:0})):e.createCommentVNode("",!0)])])]),_:1,__:[19,20]},8,["label","current-value","layout"]),a.value!==""&&a.value!=="range"&&a.value!=="last_7_days"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",hr,[e.createElementVNode("button",{type:"button",title:"Попередній період",class:"inline-flex h-[38px] items-center px-2 text-sm text-gray-800 bg-gray-100 gap-x-2 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg focus:z-10 hover:bg-gray-200 focus:bg-gray-200 duration-300",onClick:d},[e.createVNode(or)])]),e.createElementVNode("div",gr,[e.createElementVNode("button",{type:"button",title:"Наступний період",class:"inline-flex h-[38px] items-center px-2 text-sm text-gray-800 gap-x-2 bg-gray-100 -ms-px first:rounded-s-lg first:ms-0 last:rounded-e-lg focus:z-10 hover:bg-gray-200 focus:bg-gray-200 duration-300",onClick:i},[e.createVNode(ar)])])],64)):e.createCommentVNode("",!0),a.value!==""&&a.value==="range"?(e.openBlock(),e.createElementBlock("div",yr,[e.withDirectives(e.createElementVNode("input",{type:"date",max:s.value[2],locale:"uk-UA","onUpdate:modelValue":u[7]||(u[7]=g=>s.value[1]=g),class:"px-2 p-0 border text-[12px] max-w-[calc(50%-5px)] h-[38px] rounded-lg focus:outline-blue-600",disabled:w.disabled},null,8,br),[[e.vModelText,s.value[1]]]),e.withDirectives(e.createElementVNode("input",{type:"date",min:s.value[1],locale:"uk-UA","onUpdate:modelValue":u[8]||(u[8]=g=>s.value[2]=g),class:"px-2 p-0 border text-[12px] max-w-[calc(50%-5px)] h-[38px] rounded-lg focus:outline-blue-600 appearance-auto",disabled:w.disabled},null,8,xr),[[e.vModelText,s.value[2]]])])):e.createCommentVNode("",!0),a.value!==""&&a.value==="last_7_days"?(e.openBlock(),e.createElementBlock("div",wr,[e.withDirectives(e.createElementVNode("input",{type:"number","onUpdate:modelValue":u[9]||(u[9]=g=>c.value=g),onInput:f,class:"h-[38px] w-[60px] border rounded-lg focus:outline-blue-600 px-[10px]",disabled:w.disabled},null,40,kr),[[e.vModelText,c.value]])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),w.layout!=="inline"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-between gap-4 p-1",w.layout==="popover"?"flex-col":""])},[e.createElementVNode("label",{for:"FilterFrom",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full gap-1",w.layout==="popover"?"":"flex"])},[u[21]||(u[21]=e.createTextVNode(" Від ")),e.withDirectives(e.createElementVNode("input",{type:"date",max:s.value[2],locale:"uk-UA","onUpdate:modelValue":u[10]||(u[10]=g=>s.value[1]=g),class:"py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",disabled:w.disabled},null,8,Er),[[e.vModelText,s.value[1]]])],2),e.createElementVNode("label",{for:"FilterTo",class:e.normalizeClass(["block text-xs font-medium text-gray-600 mb-1 items-center w-full gap-1",w.layout==="popover"?"":"flex"])},[u[22]||(u[22]=e.createTextVNode(" До ")),e.withDirectives(e.createElementVNode("input",{type:"date",min:s.value[1],locale:"uk-UA","onUpdate:modelValue":u[11]||(u[11]=g=>s.value[2]=g),class:"py-2 px-3 block w-full border h-[38px] border-solid border-stone-200 rounded-lg text-sm text-stone-800 placeholder:text-stone-500 focus:z-10 focus:border-blue-600 focus:border-2 focus:ring-blue-500",disabled:w.disabled},null,8,Br),[[e.vModelText,s.value[2]]])],2)],2)):e.createCommentVNode("",!0),w.layout==="popover"&&w.cleanable?(e.openBlock(),e.createElementBlock("div",Cr,[e.createElementVNode("button",{class:"text-gray-600 hover:text-gray-800",disabled:s.value.length===0,onClick:k}," Clear ",8,Vr)])):e.createCommentVNode("",!0)],64))}}),select:mt};function Ce(t,n=!1){let r;switch(t.toLowerCase()){case"autocomplete":r="select";break;case"check":r="checkbox";break;default:r=t.toString().toLowerCase()}return["select"].includes(r)&&n?{component:Be,type:"select"}:{component:yt[r]||yt.text,type:r}}const Nr={},Sr={xmlns:"http://www.w3.org/2000/svg",width:"15px",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-reload absolute inline mr-1 text-gray-800 transition-all cursor-pointer active:rotate-90 right-1 top-1 hover:text-blue-500"};function Rr(t,n){return e.openBlock(),e.createElementBlock("svg",Sr,n[0]||(n[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),e.createElementVNode("path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"},null,-1),e.createElementVNode("path",{d:"M20 4v5h-5"},null,-1)]))}const _r=$(Nr,[["render",Rr]]),Tr={style:{display:"inline-flex",margin:"0px",width:"100%"}},Ar={class:"relative w-full mb-2 p-4 bg-white rounded-lg shadow-sm"},Or={class:"block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200"},Fr={class:"flex items-center"},Dr={class:"text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1"},$r={class:"filter-layout__body"},Mr=e.defineComponent({__name:"vertical-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=Ce(o.type,o.multi),c=e.computed({get:()=>o.modelValue,set:d=>l("update:modelValue",d)});function f(d){l("clear",d)}function p(d,h){l("change",{name:d,value:h}),o.modelValue!==void 0&&l("update:modelValue",h)}function i(){s.value&&s.value.clear(),l("clear",o.name)}return e.watch(()=>o.default,d=>{c.value=d}),e.watch(()=>o.modelValue,d=>{c.value=d}),n({filterRef:s}),(d,h)=>(e.openBlock(),e.createElementBlock("div",Tr,[e.createElementVNode("div",Ar,[e.createElementVNode("div",Or,[e.createElementVNode("div",Fr,[e.createElementVNode("span",Dr,e.toDisplayString(d.label),1)]),typeof c.value=="string"&&c.value.trim()!==""||Array.isArray(c.value)&&c.value.length>0&&c.value.some(B=>B!=null&&String(B).trim()!=="")?(e.openBlock(),e.createBlock(_r,{key:0,onClick:i})):e.createCommentVNode("",!0)]),e.createElementVNode("div",$r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps(o,{type:e.unref(a)?.type,onChange:h[0]||(h[0]=B=>p(B.name,B.value)),onClear:h[1]||(h[1]=B=>f(B)),ref_key:"filterRef",ref:s}),null,16,["type"]))])])]))}}),bt=e.defineComponent({__name:"inline-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=Ce(o.type,o.multi),c=e.computed({get:()=>o.modelValue,set:d=>l("update:modelValue",d)});function f(d){l("clear",d)}function p(d,h){l("change",{name:d,value:h}),o.modelValue!==void 0&&l("update:modelValue",h)}function i(){s.value&&s.value.clear(),l("clear",o.name)}return e.watch(()=>o.default,d=>{c.value=d}),e.watch(()=>o.modelValue,d=>{c.value=d}),n({filterRef:s}),(d,h)=>["text","date"].includes(d.type.toLocaleLowerCase())?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps({key:0},o,{type:e.unref(a)?.type,onChange:h[0]||(h[0]=B=>p(B.name,B.value)),onClear:h[1]||(h[1]=B=>f(B)),disabled:d.disabled}),null,16,["type","disabled"])):(e.openBlock(),e.createBlock(gt,{key:1,"current-value":c.value,label:d.label,onClear:i,fieldRef:s.value,width:d.width,disabled:d.disabled},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)?.component),e.mergeProps({ref_key:"filterRef",ref:s},o,{type:e.unref(a)?.type,onChange:h[2]||(h[2]=B=>p(B.name,B.value)),onClear:h[3]||(h[3]=B=>f(B))}),null,16,["type"]))]),_:1},8,["current-value","label","fieldRef","width","disabled"]))}}),Lr=e.defineComponent({__name:"popover-layout",props:{id:{},name:{},type:{},label:{},width:{},options:{},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean},layout:{},cleanable:{type:Boolean},limit:{},multi:{type:Boolean},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=e.ref(Ce(o.type,o.multi)),c=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)});function f(i){l("clear",i)}function p(i,d){l("change",{name:i,value:d}),o.modelValue!==void 0&&l("update:modelValue",d)}return e.watch(()=>o.default,i=>{c.value=i}),e.watch(()=>o.modelValue,i=>{c.value=i}),e.watch(()=>o,i=>{c.value=i}),n({filterRef:s}),(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value?.component),e.mergeProps(o,{type:a.value?.type,modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=h=>c.value=h),onChange:d[1]||(d[1]=h=>p(h.name,h.value)),onClear:d[2]||(d[2]=h=>f(h)),ref_key:"filterRef",ref:s}),null,16,["type","modelValue"]))}}),j=e.defineComponent({__name:"filter-field",props:{id:{},name:{},type:{},label:{},width:{},options:{default:()=>[]},placeHolder:{},api:{},default:{},modelValue:{},disabled:{type:Boolean,default:!1},layout:{default:"inline"},cleanable:{type:Boolean},limit:{default:10},multi:{type:Boolean,default:!0},dataKey:{},valueKey:{},labelKey:{}},emits:["update:modelValue","change","clear"],setup(t,{expose:n,emit:r}){const o=t,l=r,s=e.ref(),a=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)});function c(i){l("clear",i)}function f(i,d){l("change",{name:i,value:d}),o.modelValue!==void 0&&l("update:modelValue",d)}e.watch(()=>o.default,i=>{a.value=i}),e.watch(()=>o.modelValue,i=>{a.value=i}),n({filterRef:s});function p(){switch(o.layout){case"inline":return bt;case"vertical":return Mr;case"popover":return Lr;default:return bt}}return(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p()),e.mergeProps(o,{onChange:d[0]||(d[0]=h=>f(h.name,h.value)),onClear:d[1]||(d[1]=h=>c(h)),modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h)}),null,16,["modelValue"]))}});function Ve(t,n){const{slots:r}=t,o=e.ref(t.value??{}),l=e.computed(()=>(e.toRaw(r?.default?.())??[]).flatMap(g=>Array.isArray(g.children)?g.children:[g]));function s(u){delete o.value[u],n("clear",{data:e.toRaw(o.value),name:u})}function a(u,g){o.value={...o.value,[u]:g},n("change",{data:e.toRaw(o.value),name:u,value:g})}const c=e.computed(()=>l.value.map(u=>{const g=u.props?.name;return e.cloneVNode(u,{...u.props,layout:t.view,showClean:!0,modelValue:o[g],"onUpdate:modelValue":E=>{a(g,E)},onClear:()=>s(g)})})),f=e.computed(()=>new Map(c.value.map(u=>{const g=u.props?.name;return g?[g,u]:null}).filter(u=>u!==null)));function p(){o.value={},n("clearAll",{data:e.toRaw(o.value),name:"ALL"})}const i=e.ref(""),d=e.computed(()=>Object.values(o.value).filter(u=>Array.isArray(u)?u.some(g=>g!==""&&g!==null&&g!==void 0):u!==""&&u!==null&&u!==void 0).length),h=e.ref();e.watch(i,async()=>{await e.nextTick(),h?.value?.filterRef?.inputTextRef&&h.value.filterRef.inputTextRef.focus()});const B=e.computed(()=>t.schema?.value?Object.fromEntries(Object.entries(t.schema?.value).slice(0,t.limit)):{}),y=e.computed(()=>t.schema?.value?t.view!=="inline"?t.schema?.value:Object.fromEntries(Object.entries(t.schema?.value).slice(t.limit)):{}),x=e.computed(()=>{if(c.value.length===0)return[];let u=0;if(t.schema?.value){const g=Object.entries(t.schema.value).length;g<t.limit?u=t.limit-g:u=0}return c.value.slice(0,u)}),k=e.computed(()=>c.value.length===0?[]:t.view!=="inline"?c.value:c.value.slice(x.value.length));function w(){if(y.value){const[u]=Object.keys(y.value);i.value=u}else k.value.length>0?i.value=k.value[0].props.name:i.value=""}return{activeFilter:o,activeFilterCount:d,onFilterChange:a,clearFilter:s,clearAllFilters:p,limitedSchema:B,popoverSchema:y,filtersSlot:c,limitedFiltersSlot:x,popoverFiltersSlot:k,vnodeMap:f,onPopoverOpen:w,selectedFilter:i,filterRef:h}}const jr=e.defineComponent({__name:"popover",emits:["open","close"],setup(t,{emit:n}){const r=e.ref(!1),o=e.ref(null),l=e.ref(null),s=e.ref(null),a=e.ref({top:"0px",left:"0px",position:"absolute"});function c(){r.value=!r.value}function f(){const d=s.value,h=o.value;if(!d||!h)return;const B=d.getBoundingClientRect();a.value={position:"absolute",top:`${B.bottom+window.scrollY+8}px`,left:`${B.left+window.scrollX}px`}}function p(d){const h=d.target;!s.value?.contains(d.target)&&!o.value?.contains(d.target)&&!h.closest("[data-inside-popover]")&&(r.value=!1)}e.onMounted(()=>{s.value=l.value?.querySelector("[data-popover-trigger]")||null,s.value?.addEventListener("click",c),document.addEventListener("click",p),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0)}),e.onBeforeUnmount(()=>{s.value?.removeEventListener("click",c),document.removeEventListener("click",p),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)});const i=n;return e.watch(r,async d=>{d?(await e.nextTick(f),i("open")):i("close")}),(d,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:l},[e.renderSlot(d.$slots,"trigger"),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:o,class:"absolute z-[50] w-[600px] rounded-md border bg-white shadow-md",style:e.normalizeStyle(a.value)},[e.renderSlot(d.$slots,"default")],4)):e.createCommentVNode("",!0)]))],512))}}),Pr={},Ur={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-filter h-4 w-4"};function zr(t,n){return e.openBlock(),e.createElementBlock("svg",Ur,n[0]||(n[0]=[e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1)]))}const Ir=$(Pr,[["render",zr]]),qr={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-500 text-white text-xs px-1.5 py-0.5"},Hr={class:"flex"},Kr={class:"w-64 border-r border-gray-200"},Jr={class:"p-2"},Wr=["onClick"],Yr={class:"flex items-center gap-2"},Qr={class:"text-sm font-medium"},Gr={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-100 text-blue-700 text-xs p-2"},Xr=["onClick"],Zr={class:"flex items-center gap-2"},vr={class:"text-sm font-medium"},el={key:0,class:"inline-flex items-center rounded-full border font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-secondary/80 bg-blue-100 text-blue-700 text-xs p-2"},tl={key:0,class:"p-2 border-t"},nl={class:"flex-1 min-h-[300px] overflow-y-auto"},ol={key:0,class:"flex items-center justify-center h-full text-gray-500"},xt=e.defineComponent({__name:"popover-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{expose:n,emit:r}){const o=t,l=e.useSlots(),s=r,a=e.ref({}),{activeFilter:c,activeFilterCount:f,onFilterChange:p,clearFilter:i,clearAllFilters:d,popoverSchema:h,popoverFiltersSlot:B,onPopoverOpen:y,selectedFilter:x,filterRef:k}=Ve({...o,schema:a,slots:l},s);return e.watch(()=>o.schema,w=>{a.value=w},{deep:!0,immediate:!0}),n({clearFilter:i,clearAllFilters:d}),(w,u)=>(e.openBlock(),e.createBlock(jr,{onOpen:e.unref(y),onClose:u[5]||(u[5]=g=>x.value="")},{trigger:e.withCtx(()=>[e.createElementVNode("button",{"data-popover-trigger":"","aria-haspopup":"dialog","aria-expanded":"false",class:e.normalizeClass(["ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input hover:bg-accent hover:text-accent-foreground border px-4 py-2 gap-2 bg-transparent h-[38px]",e.unref(f)>0?"bg-blue-50 border-blue-200 text-blue-700 hover:bg-blue-100":"text-gray-800 hover:bg-gray-200 focus:bg-gray-200"]),type:"button"},[e.createVNode(Ir),u[6]||(u[6]=e.createTextVNode(" Фільтр ")),e.unref(f)>0?(e.openBlock(),e.createElementBlock("div",qr,e.toDisplayString(e.unref(f)),1)):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.createElementVNode("div",Hr,[e.createElementVNode("div",Kr,[u[7]||(u[7]=e.createElementVNode("div",{class:"p-4 border-b"},[e.createElementVNode("p",{class:"text-sm text-gray-600"},"Select a field to start creating a filter.")],-1)),e.createElementVNode("div",Jr,[w.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(h)),([g,E])=>(e.openBlock(),e.createElementBlock("button",{key:g,onClick:()=>{x.value=g,console.log(e.unref(x))},class:e.normalizeClass(["w-full flex items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors",e.unref(x)===g?"bg-blue-50 text-blue-700 border-l-2 border-blue-500":""])},[e.createElementVNode("div",Yr,[e.createElementVNode("span",Qr,e.toDisplayString(E.label),1)]),(Array.isArray(e.unref(c)[g])?e.unref(c)[g].length>0:e.unref(c)[g])?(e.openBlock(),e.createElementBlock("div",Gr)):e.createCommentVNode("",!0)],10,Wr))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),(g,E)=>(e.openBlock(),e.createElementBlock("button",{key:"slot-"+E,onClick:b=>x.value=g.props.name,class:e.normalizeClass(["w-full flex items-center justify-between px-3 py-2 text-left hover:bg-gray-50 transition-colors",e.unref(x)===g.props.name?"bg-blue-50 text-blue-700 border-l-2 border-blue-500":""])},[e.createElementVNode("div",Zr,[e.createElementVNode("span",vr,e.toDisplayString(g.props.label),1)]),e.unref(c)[g.props.name]?.length>0?(e.openBlock(),e.createElementBlock("div",el)):e.createCommentVNode("",!0)],10,Xr))),128))]),e.unref(f)>0?(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("button",{class:"w-full px-3 py-2 text-left text-sm text-gray-600 hover:bg-gray-50 transition-colors",onClick:u[0]||(u[0]=(...g)=>e.unref(d)&&e.unref(d)(...g)),"data-inside-popover":""}," Очистити всі ")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nl,[e.unref(x)===""?(e.openBlock(),e.createElementBlock("div",ol,u[8]||(u[8]=[e.createElementVNode("p",{class:"text-sm"},"Select a field to start creating a filter.",-1)]))):e.createCommentVNode("",!0),e.unref(x)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(h)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(h)),([g,E])=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(x)===g?(e.openBlock(),e.createBlock(j,e.mergeProps({key:0,name:g,layout:"popover",ref_for:!0,ref_key:"filterRef",ref:k},{ref_for:!0},E,{onChange:u[1]||(u[1]=b=>e.unref(p)(b.name,b.value)),onClear:u[2]||(u[2]=b=>e.unref(i)(b)),modelValue:e.unref(c)[g],"onUpdate:modelValue":b=>e.unref(c)[g]=b,cleanable:!0}),null,16,["name","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),(g,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"slot-"+E},[e.unref(x)===g.props.name?(e.openBlock(),e.createBlock(j,e.mergeProps({key:0,layout:"popover"},{ref_for:!0},g.props,{ref_for:!0,ref_key:"filterRef",ref:k,onChange:u[3]||(u[3]=b=>e.unref(p)(b.name,b.value)),onClear:u[4]||(u[4]=b=>e.unref(i)(b)),modelValue:e.unref(c)[g.props.name],"onUpdate:modelValue":b=>e.unref(c)[g.props.name]=b,cleanable:!0}),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),128))],64)):e.createCommentVNode("",!0)])])]),_:1},8,["onOpen"]))}}),rl={class:"flex gap-1 items-center flex-wrap"},wt=e.defineComponent({__name:"inline-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=n,l=e.useSlots(),s=e.ref({}),{activeFilter:a,activeFilterCount:c,onFilterChange:f,clearFilter:p,clearAllFilters:i,limitedSchema:d,popoverSchema:h,filtersSlot:B,limitedFiltersSlot:y,popoverFiltersSlot:x}=Ve({...r,schema:s,slots:l},o),k=e.ref();function w(){k.value&&(k.value.clearAllFilters(),i())}return e.watch(()=>r.schema,u=>{s.value=u},{deep:!0,immediate:!0}),(u,g)=>(e.openBlock(),e.createElementBlock("div",rl,[u.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Object.entries(e.unref(d)),([E,b])=>(e.openBlock(),e.createBlock(j,e.mergeProps({key:E,name:E},{ref_for:!0},b,{onChange:g[0]||(g[0]=C=>e.unref(f)(C.name,C.value)),onClear:g[1]||(g[1]=C=>e.unref(p)(C)),layout:"inline",cleanable:!0,modelValue:e.unref(a)[E],"onUpdate:modelValue":C=>e.unref(a)[E]=C}),null,16,["name","modelValue","onUpdate:modelValue"]))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(E,b)=>(e.openBlock(),e.createBlock(j,e.mergeProps({key:"slot-"+b,layout:"vertical"},{ref_for:!0},E.props,{onChange:g[2]||(g[2]=C=>e.unref(f)(C.name,C.value)),onClear:g[3]||(g[3]=C=>e.unref(p)(C)),cleanable:!0,modelValue:e.unref(a)[E.props.name],"onUpdate:modelValue":C=>e.unref(a)[E.props.name]=C}),null,16,["modelValue","onUpdate:modelValue"]))),128)),Object.entries(e.unref(h)).length>0||e.unref(x).length>0?(e.openBlock(),e.createBlock(xt,e.mergeProps({key:1},r,{onChange:g[4]||(g[4]=E=>e.unref(f)(E.name,E.value)),onClearAll:e.unref(i),onClear:g[5]||(g[5]=E=>e.unref(p)(E.name)),ref_key:"popoverRef",ref:k,cleanable:!0}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),(E,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E),e.mergeProps({key:"slot-"+b,layout:"inline"},{ref_for:!0},E.props,{cleanable:!0}),null,16))),128))]),_:1},16,["onClearAll"])):e.createCommentVNode("",!0),e.unref(c)>0?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:w,class:"relative py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 border border-transparent text-gray-800 hover:bg-gray-200 focus:bg-gray-200"}," Очистити ")):e.createCommentVNode("",!0)]))}}),ll={key:0,class:"p-2 overflow-y-auto overflow-hidden [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 max-h-[calc(100%-142px)] h-full bg-gray-100"},sl={class:"flex items-center vst-filters vsTailwind flex-col w-full"},al=e.defineComponent({__name:"vertical-filter-layout",props:{schema:{},view:{},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=n,l=e.useSlots(),{activeFilter:s,activeFilterCount:a,onFilterChange:c,clearFilter:f,clearAllFilters:p,filtersSlot:i}=Ve({...r,slots:l},o);return(d,h)=>d.view==="vertical"?(e.openBlock(),e.createElementBlock("div",ll,[e.createElementVNode("div",sl,[e.unref(a)>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:h[0]||(h[0]=(...B)=>e.unref(p)&&e.unref(p)(...B)),"data-popover-trigger":"","aria-haspopup":"dialog","aria-expanded":"false",class:"w-full ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:text-accent-foreground border h-10 px-4 py-2 gap-2 m-2 bg-white text-gray-800 hover:bg-gray-200 focus:bg-gray-200",type:"button"}," Очистити ")):e.createCommentVNode("",!0),d.schema?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Object.entries(d.schema),([B,y])=>(e.openBlock(),e.createBlock(j,e.mergeProps({name:B,layout:"vertical"},{ref_for:!0},y,{onChange:h[1]||(h[1]=x=>e.unref(c)(x.name,x.value)),onClear:h[2]||(h[2]=x=>e.unref(f)(x)),modelValue:e.unref(s)[B],"onUpdate:modelValue":x=>e.unref(s)[B]=x,showClean:!0}),null,16,["name","modelValue","onUpdate:modelValue"]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(B,y)=>(e.openBlock(),e.createBlock(j,e.mergeProps({key:"slot-"+y,layout:"vertical"},{ref_for:!0},B.props,{onChange:h[3]||(h[3]=x=>e.unref(c)(x.name,x.value)),onClear:h[4]||(h[4]=x=>e.unref(f)(x)),modelValue:e.unref(s)[B.props.name],"onUpdate:modelValue":x=>e.unref(s)[B.props.name]=x,showClean:!0}),null,16,["modelValue","onUpdate:modelValue"]))),128))])])):e.createCommentVNode("",!0)}}),kt=e.defineComponent({__name:"filter",props:{schema:{},view:{default:"inline"},value:{},history:{type:Boolean},limit:{default:3}},emits:["change","clear","clearAll"],setup(t,{emit:n}){const r=t,o=e.ref(r.value??{}),l=n;function s(i,d){o.value={...o.value,[i]:d},l("change",{data:e.toRaw(o.value),name:i,value:d})}function a(i){delete o.value[i],l("clear",{data:e.toRaw(o.value),name:i})}function c(){o.value={},l("clear",{data:e.toRaw(o.value),name:"ALL"}),l("change",{data:e.toRaw(o.value),name:"ALL",value:null})}const f=e.ref({});function p(){switch(r.view){case"inline":return wt;case"vertical":return al;case"popover":return xt;default:return wt}}return e.watch(()=>r.schema,i=>{if(!i){f.value={};return}Array.isArray(i)?f.value=i.reduce((d,h)=>(h.name?d[h.name]=h:h.id&&(d[h.id]=h),d),{}):f.value={...i}},{immediate:!0,deep:!0}),(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p()),e.mergeProps(r,{schema:f.value,onChange:d[0]||(d[0]=h=>s(h.name,h.value)),onClear:d[1]||(d[1]=h=>a(h.name)),onClearAll:c}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["schema"]))}}),il={install(t){t.component("Filter",kt),t.component("FilterField",j)}};L.Filter=kt,L.FilterField=j,L.default=il,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});