import{M as h,V as d}from"./index.17037962789732.js";import{i as S}from"./isArray.1703796278973.js";const T="http://119.45.226.246:8848",u="X-Access-Token",A="version_code",E=r=>new URL("/images"+r,import.meta.url).href,f={set(r,e){localStorage.setItem(r,typeof e=="string"?e:JSON.stringify(e))},get(r){const e=localStorage.getItem(r);try{if(e){const n=JSON.parse(e);return n&&typeof n=="object"?n:e}else return e}catch{return e}},remove(r){localStorage.removeItem(r)},removeAll(){localStorage.clear()}},I=()=>f.get(u),_=()=>{f.remove(u)},K=(r,e,n="label")=>{var t;return(t=e[n])==null?void 0:t.includes(r)},N=(r,e)=>(r.terms.forEach(n=>{n.terms.forEach(t=>{e[t.column]&&(t.column=e[t.column])})}),r),v=(r,e="success")=>{h[e]({content:r,key:e})},O=(r=[])=>{const e=[{terms:[null,null,null]},{terms:[null,null,null],type:"and"}];let n=0,t=0;return r.forEach((l,s)=>{s>2&&(n=1,t=4),e[n].terms[s-t]=l}),JSON.stringify({terms:e})},g=(r,e,n="name")=>r?r.filter(t=>t.children&&t.children.length?(t.children=g(t.children||[],e,n),!!t.children.length):t[n]===e):[],V=(r,e,n="id",t="id")=>{if(!r||r&&!S(r))return[];const l=d(r),s=g(l,e,n),a=[],i=m=>{for(let c=0;c