From b79de9c81b9e75258d95d55f0c3d915b61fe4f76 Mon Sep 17 00:00:00 2001 From: adams549659584 <13760614423@163.com> Date: Thu, 18 May 2023 12:06:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B1=8F=E8=94=BD=E6=9C=80=E5=A4=96?= =?UTF-8?q?=E5=B1=82=E6=BB=9A=E5=8A=A8=E6=9D=A1=E3=80=81=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=B1=8F=E8=94=BD=E8=8E=B7=E5=8F=96=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/assets/css/main.css | 6 +++++- .../src/views/chat/components/ChatPrompt/ChatPrompt.vue | 4 ++-- frontend/types/global.d.ts | 4 ++++ web/assets/{index-0b2cc67d.js => index-6982f66e.js} | 2 +- web/assets/{index-3b84657c.css => index-9d6f4de0.css} | 2 +- web/assets/{index-cb246388.js => index-d9a4ae7e.js} | 6 +++--- web/index.html | 4 ++-- web/sw.js | 2 +- 9 files changed, 20 insertions(+), 12 deletions(-) rename web/assets/{index-0b2cc67d.js => index-6982f66e.js} (99%) rename web/assets/{index-3b84657c.css => index-9d6f4de0.css} (88%) rename web/assets/{index-cb246388.js => index-d9a4ae7e.js} (98%) diff --git a/frontend/package.json b/frontend/package.json index 44725a3f03..b28eb4fa69 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "go-proxy-bingai", - "version": "1.6.7", + "version": "1.6.8", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/src/assets/css/main.css b/frontend/src/assets/css/main.css index a1e1556c67..3ee192a453 100644 --- a/frontend/src/assets/css/main.css +++ b/frontend/src/assets/css/main.css @@ -1 +1,5 @@ -@import './base.css'; \ No newline at end of file +@import './base.css'; + +.cib-serp-main { + overflow: hidden; +} \ No newline at end of file diff --git a/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue index 5d79e76cc9..a12a18b5b4 100644 --- a/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue +++ b/frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue @@ -34,12 +34,11 @@ const isShowHistory = computed(() => { onMounted(async () => { await initChat(); + checkUserToken(); // show SydneyFullScreenConv.initWithWaitlistUpdate({ cookLoc: {} }, 10); isShowLoading.value = false; - - checkUserToken(); hackStyle(); initChatPrompt(); }); @@ -55,6 +54,7 @@ const checkUserToken = () => { const userCookieVal = cookies.get(userTokenCookieName); if (!userCookieVal) { // 未登录不显示历史记录 + CIB.config.features.enableGetChats = false; CIB.vm.sidePanel.isVisibleMobile = false; CIB.vm.sidePanel.isVisibleDesktop = false; // 创建会话id diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index 9c22c36a9a..3f6b01ce79 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -170,6 +170,10 @@ declare const CIB: { config: { features: { enableThreads: boolean; + /** + * 获取聊天历史 + */ + enableGetChats: boolean; }; sydney: { /** diff --git a/web/assets/index-0b2cc67d.js b/web/assets/index-6982f66e.js similarity index 99% rename from web/assets/index-0b2cc67d.js rename to web/assets/index-6982f66e.js index d9e3684129..411f548454 100644 --- a/web/assets/index-0b2cc67d.js +++ b/web/assets/index-6982f66e.js @@ -648,4 +648,4 @@ ${t} * vue-router v4.2.0 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Pn=typeof window<"u";function Iy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,Ay=/\/$/,ky=e=>e.replace(Ay,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Fy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function By(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Hy(e[n],t[n]))return!1;return!0}function Hy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Fy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Ly(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ky(e)}const jy=/^[^#]+#/;function Dy(e,t){return e.replace(jy,"#")+t}function Ny(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ny(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Uy(e,t){ki.set(e,t)}function Ky(e){const t=ki.get(e);return ki.delete(e),t}let Vy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function qy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Gy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Vy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Xy(e){e=Ly(e);const t=Gy(e),n=qy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Dy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Yy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xy(e)}function Zy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Fn(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Jy={sensitive:!1,strict:!1,start:!0,end:!0},Qy=/[.+*?^${}()[\]/\\]/g;function ex(e,t){const n=ye({},Jy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function nx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const rx={type:0,value:""},ox=/[a-zA-Z0-9_]/;function ix(e){if(!e)return[[]];if(e==="/")return[[rx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:ux(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ax(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:cx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function cx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ux(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,fx=/&/g,dx=/\//g,hx=/=/g,px=/\?/g,pf=/\+/g,gx=/%5B/g,vx=/%5D/g,gf=/%5E/g,mx=/%60/g,vf=/%7B/g,bx=/%7C/g,mf=/%7D/g,yx=/%20/g;function Es(e){return encodeURI(""+e).replace(bx,"|").replace(gx,"[").replace(vx,"]")}function xx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(yx,"+").replace(hf,"%23").replace(fx,"%26").replace(mx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Cx(e){return Bi(e).replace(hx,"%3D")}function wx(e){return Es(e).replace(hf,"%23").replace(px,"%3F")}function Sx(e){return e==null?"":wx(e).replace(dx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function _x(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ex(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const $x=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Fn(4,{from:n,to:t})):f instanceof Error?l(f):Zy(f)?l(Fn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Px(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Iy(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Px(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&zx(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return Ox(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Rx=Ee({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Tx=Rx;function Ox(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ix=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe($x,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ix;function Ax(e){const t=lx(e.routes,e),n=e.parseQuery||_x,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,Sx),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=By(r,ye({},R,{hash:xx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?Ex(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Fn(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&My(r,X,I)&&(O=Fn(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=kx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Pn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Pn&&Uy(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Pn||!pe)return Promise.resolve();const h=!I&&Ky(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(R,U,h)).then(g=>g&&Wy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Tx),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Pn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function kx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Bx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ey),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(yy),null,{default:ro(()=>[Fe(Ct(zy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Mx="modulepreload",Hx=function(e){return"/web/"+e},Oa={},Fx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Hx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Mx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Lx=Ax({history:Yy("/web"),routes:[{path:"/",name:"chat",component:()=>Fx(()=>import("./index-cb246388.js"),["assets/index-cb246388.js","assets/index-0e8bf8a6.css"])}]}),Ps=Gh(Bx);ap(Ps);Ps.use(Lx);Ps.mount("#app");export{wu as $,ou as A,E as B,Mp as C,ag as D,kn as E,ms as F,Un as G,Bm as H,Su as I,ys as J,km as K,dg as L,vo as M,ev as N,Vn as O,db as P,dv as Q,Mr as R,Ou as S,Mn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,yn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,a0 as a3,tv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Zx as aI,F0 as aJ,jg as aK,T0 as aL,Ll as aM,cp as aN,Br as aO,t1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,O0 as aU,wi as aV,Xx as aW,Gx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,Cn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,Qx as ai,Qi as aj,Gt as ak,og as al,cl as am,us as an,xp as ao,Mg as ap,as as aq,yt as ar,Me as as,n1 as at,yp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Np as b1,bp as b2,_y as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,M0 as ba,Ec as bb,Vx as bc,is as bd,Ux as be,jx as bf,qx as bg,Ct as bh,ss as bi,ro as bj,Fe as bk,gy as bl,Tc as bm,dc as bn,vc as bo,gc as bp,Oe as bq,Wx as br,Kx as bs,Wi as bt,Dx as bu,Nx as bv,V as c,bn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Yx as j,ze as k,tg as l,eg as m,Ee as n,Yt as o,ng as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,e1 as x,ko as y,zt as z}; + */const Pn=typeof window<"u";function Iy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,Ay=/\/$/,ky=e=>e.replace(Ay,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Fy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function By(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Hy(e[n],t[n]))return!1;return!0}function Hy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Fy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Ly(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ky(e)}const jy=/^[^#]+#/;function Dy(e,t){return e.replace(jy,"#")+t}function Ny(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ny(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function Uy(e,t){ki.set(e,t)}function Ky(e){const t=ki.get(e);return ki.delete(e),t}let Vy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function qy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(b=>{b(n.value,p,{delta:y,type:Ir.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Gy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Vy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Xy(e){e=Ly(e);const t=Gy(e),n=qy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Dy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Yy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xy(e)}function Zy(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Fn(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function Et(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",Jy={sensitive:!1,strict:!1,start:!0,end:!0},Qy=/[.+*?^${}()[\]/\\]/g;function ex(e,t){const n=ye({},Jy,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function nx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const rx={type:0,value:""},ox=/[a-zA-Z0-9_]/;function ix(e){if(!e)return[[]];if(e==="/")return[[rx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:w,path:p,params:v,matched:y,meta:ux(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ax(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:cx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function cx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ux(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,fx=/&/g,dx=/\//g,hx=/=/g,px=/\?/g,pf=/\+/g,gx=/%5B/g,vx=/%5D/g,gf=/%5E/g,mx=/%60/g,vf=/%7B/g,bx=/%7C/g,mf=/%7D/g,yx=/%20/g;function Es(e){return encodeURI(""+e).replace(bx,"|").replace(gx,"[").replace(vx,"]")}function xx(e){return Es(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return Es(e).replace(pf,"%2B").replace(yx,"+").replace(hf,"%23").replace(fx,"%26").replace(mx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Cx(e){return Bi(e).replace(hx,"%3D")}function wx(e){return Es(e).replace(hf,"%23").replace(px,"%3F")}function Sx(e){return e==null?"":wx(e).replace(dx,"%2F")}function yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function _x(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ex(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const $x=Symbol(""),Ea=Symbol(""),$s=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Fn(4,{from:n,to:t})):f instanceof Error?l(f):Zy(f)?l(Fn(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Px(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=Iy(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Px(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=ze($s),n=ze(bf),r=V(()=>t.resolve(Ct(e.to))),o=V(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=V(()=>o.value>-1&&zx(n.params,r.value.params)),s=V(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return Ox(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Rx=Ee({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Xt($a(e)),{options:r}=ze($s),o=V(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Tx=Rx;function Ox(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Ix=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=V(()=>e.route||r.value),i=ze(Ea,0),s=V(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=V(()=>o.value.matched[s.value]);qe(Ea,V(()=>s.value+1)),qe($x,l),qe(Mi,o);const a=se();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=E(d,ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Ix;function Ax(e){const t=lx(e.routes,e),n=e.parseQuery||_x,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,Sx),d=ri.bind(null,yo);function v(R,U){let I,X;return uf(R)?(I=t.getRecordMatcher(R),X=U):X=R,t.addRoute(X,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function b(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),$=t.resolve({path:x.path},U),O=o.createHref(x.fullPath);return ye(x,$,{params:d($.params),hash:yo(x.hash),redirectedFrom:void 0,href:O})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const $ in x)x[$]==null&&delete x[$];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const X=t.resolve(I,U),pe=R.hash||"";X.params=u(d(X.params));const h=By(r,ye({},R,{hash:xx(pe),path:X.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?Ex(R.query):R.query||{}},X,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Fn(8,{from:U,to:R})}function _(R){return m(R)}function P(R){return _(ye(S(R),{replace:!0}))}function z(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let X=typeof I=="function"?I(R):I;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),ye({query:R.query,hash:R.hash,params:"path"in X?{}:R.params},X)}}function m(R,U){const I=c=b(R),X=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=z(I);if(x)return m(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const $=I;$.redirectedFrom=U;let O;return!h&&My(r,X,I)&&(O=Fn(16,{to:$,from:X}),Se(X,X,!0,!1)),(O?Promise.resolve(O):j($,X)).catch(B=>Et(B)?Et(B,2)?B:we(B):re(B,$,X)).then(B=>{if(B){if(Et(B,2))return m(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||$)}else B=k($,X,!0,g,pe);return W($,X,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function A(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function j(R,U){let I;const[X,pe,h]=kx(R,U);I=ii(X.reverse(),"beforeRouteLeave",R,U);for(const x of X)x.leaveGuards.forEach($=>{I.push(Wt($,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach($=>{I.push(Wt($,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const $ of x.beforeEnter)I.push(Wt($,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>Et(x,8)?x:Promise.reject(x))}function W(R,U,I){for(const X of l.list())A(()=>X(R,U,I))}function k(R,U,I,X,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Pn?history.state:{};I&&(X||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let Q;function te(){Q||(Q=o.listen((R,U,I)=>{if(!Xe.listening)return;const X=b(R),pe=z(X);if(pe){m(ye(pe,{replace:!0}),X).catch(gr);return}c=X;const h=a.value;Pn&&Uy(va(h.fullPath,I.delta),Do()),j(X,h).catch(g=>Et(g,12)?g:Et(g,2)?(m(g.to,X).then(x=>{Et(x,20)&&!I.delta&&I.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),re(g,X,h))).then(g=>{g=g||k(X,h,!1),g&&(I.delta&&!Et(g,8)?o.go(-I.delta,!1):I.type===Ir.pop&&Et(g,20)&&o.go(-1,!1)),W(X,h,g)}).catch(gr)}))}let ne=nr(),oe=nr(),K;function re(R,U,I){we(R);const X=oe.list();return X.length?X.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ne.add([R,U])})}function we(R){return K||(K=!R,te(),ne.list().forEach(([U,I])=>R?I(R):U()),ne.reset()),R}function Se(R,U,I,X){const{scrollBehavior:pe}=e;if(!Pn||!pe)return Promise.resolve();const h=!I&&Ky(va(R.fullPath,0))||(X||!I)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(R,U,h)).then(g=>g&&Wy(g)).catch(g=>re(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:b,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:oe.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Tx),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Pn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=V(()=>a.value[pe]);R.provide($s,U),R.provide(bf,Xt(I)),R.provide(Mi,a);const X=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,Q&&Q(),Q=null,a.value=Lt,rt=!1,K=!1),X()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>A(I)),Promise.resolve())}return Xe}function kx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Bx=Ee({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ey),{"theme-overrides":t},{default:ro(()=>[Fe(Ct(yy),null,{default:ro(()=>[Fe(Ct(zy),null,{default:ro(()=>[Fe(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Mx="modulepreload",Hx=function(e){return"/web/"+e},Oa={},Fx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Hx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Mx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Lx=Ax({history:Yy("/web"),routes:[{path:"/",name:"chat",component:()=>Fx(()=>import("./index-d9a4ae7e.js"),["assets/index-d9a4ae7e.js","assets/index-0e8bf8a6.css"])}]}),Ps=Gh(Bx);ap(Ps);Ps.use(Lx);Ps.mount("#app");export{wu as $,ou as A,E as B,Mp as C,ag as D,kn as E,ms as F,Un as G,Bm as H,Su as I,ys as J,km as K,dg as L,vo as M,ev as N,Vn as O,db as P,dv as Q,Mr as R,Ou as S,Mn as T,Bo as U,aa as V,$u as W,qn as X,Ru as Y,Kn as Z,yn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,a0 as a3,tv as a4,mn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,bo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,Zx as aI,F0 as aJ,jg as aK,T0 as aL,Ll as aM,cp as aN,Br as aO,t1 as aP,fs as aQ,hc as aR,go as aS,tn as aT,O0 as aU,wi as aV,Xx as aW,Gx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,Cn as ab,nt as ac,Gn as ad,Cs as ae,ie as af,_i as ag,de as ah,Qx as ai,Qi as aj,Gt as ak,og as al,cl as am,us as an,xp as ao,Mg as ap,as as aq,yt as ar,Me as as,n1 as at,yp as au,It as av,Er as aw,po as ax,un as ay,Vr as az,Xt as b,Zc as b0,Np as b1,bp as b2,_y as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,M0 as ba,Ec as bb,Vx as bc,is as bd,Ux as be,jx as bf,qx as bg,Ct as bh,ss as bi,ro as bj,Fe as bk,gy as bl,Tc as bm,dc as bn,vc as bo,gc as bp,Oe as bq,Wx as br,Kx as bs,Wi as bt,Dx as bu,Nx as bv,V as c,bn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,Yx as j,ze as k,tg as l,eg as m,Ee as n,Yt as o,ng as p,qe as q,se as r,Ar as s,$l as t,Ei as u,fi as v,ut as w,e1 as x,ko as y,zt as z}; diff --git a/web/assets/index-3b84657c.css b/web/assets/index-9d6f4de0.css similarity index 88% rename from web/assets/index-3b84657c.css rename to web/assets/index-9d6f4de0.css index 16961a5bd0..02eb77568e 100644 --- a/web/assets/index-3b84657c.css +++ b/web/assets/index-9d6f4de0.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.bottom-\[110px\]{bottom:110px}.right-4{right:1rem}.right-6{right:1.5rem}.top-6{top:1.5rem}.float-right{float:right}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[40vh\]{height:40vh}.h-\[60vh\]{height:60vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-auto{width:auto}.w-full{width:100%}.max-w-\[1060px\]{max-width:1060px}.max-w-\[150px\]{max-width:150px}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1280px){.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[680px\]{max-width:680px}.xl\:basis-0{flex-basis:0px}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.bottom-\[110px\]{bottom:110px}.right-4{right:1rem}.right-6{right:1.5rem}.top-6{top:1.5rem}.float-right{float:right}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[40vh\]{height:40vh}.h-\[60vh\]{height:60vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-auto{width:auto}.w-full{width:100%}.max-w-\[1060px\]{max-width:1060px}.max-w-\[150px\]{max-width:150px}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1280px){.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[680px\]{max-width:680px}.xl\:basis-0{flex-basis:0px}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-cb246388.js b/web/assets/index-d9a4ae7e.js similarity index 98% rename from web/assets/index-cb246388.js rename to web/assets/index-d9a4ae7e.js index 36ede6cba8..e8583bb709 100644 --- a/web/assets/index-cb246388.js +++ b/web/assets/index-d9a4ae7e.js @@ -1,4 +1,4 @@ -import{r as E,w as Ce,o as We,a as Qe,i as Oa,c as F,b as Ba,h as Ma,d as io,e as Se,f as La,g as Te,j as Ve,k as ie,m as Lr,l as Er,p as Qt,u as Me,n as K,q as Pe,s as Ar,t as Ea,v as vt,x as sn,C as Aa,y as Da,z as Z,A as Dr,B as u,D as Fr,L as ao,E as qt,F as er,G as tr,H as Fa,I as Na,J as Nr,K as Ha,M as Je,N as lo,O as Hr,P as jr,Q as mt,R as so,S as Pr,T as dn,U as ja,V as un,W as cn,X as Kt,Y as Wa,Z as fn,_ as Ua,$ as Va,a0 as Ka,a1 as qa,a2 as Ga,a3 as Xa,a4 as Ya,a5 as uo,a6 as Ke,a7 as Oe,a8 as P,a9 as L,aa as H,ab as Ie,ac as re,ad as Fe,ae as fe,af as ne,ag as ze,ah as W,ai as Za,aj as it,ak as $t,al as hn,am as co,an as pn,ao as vn,ap as Ja,aq as _t,ar as Ye,as as De,at as fo,au as gn,av as Qa,aw as he,ax as ho,ay as ce,az as te,aA as Ot,aB as el,aC as mn,aD as po,aE as vo,aF as go,aG as ht,aH as tl,aI as rl,aJ as nl,aK as mo,aL as ol,aM as il,aN as al,aO as Wr,aP as Bt,aQ as Pt,aR as ll,aS as Ur,aT as Gt,aU as bo,aV as sl,aW as dl,aX as bn,aY as ul,aZ as yn,a_ as cl,a$ as kr,b0 as fl,b1 as hl,b2 as bt,b3 as pl,b4 as yo,b5 as wo,b6 as xo,b7 as Co,b8 as So,b9 as be,ba as wn,bb as vl,bc as gl,bd as me,be as Ae,bf as at,bg as Mt,bh as U,bi as je,bj as J,bk as X,bl as zt,bm as Ue,bn as ml,bo as Po,bp as bl,bq as xn,br as yl,bs as Xt,bt as Vr,bu as wl,bv as xl}from"./index-0b2cc67d.js";let Yt=[];const ko=new WeakMap;function Cl(){Yt.forEach(e=>e(...ko.get(e))),Yt=[]}function $o(e,...t){ko.set(e,t),!Yt.includes(e)&&Yt.push(e)===1&&requestAnimationFrame(Cl)}function Cn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Sl(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function Pl(e){return t=>{t?e.value=t.$el:e.value=null}}const kl=/^(\d|\.)+$/,Sn=/(\d|\.)+/;function He(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(kl.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=Sn.exec(e);return o?e.replace(Sn,String((Number(o[0])+r)*t)):e}return e}let dr;function $l(){return dr===void 0&&(dr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),dr}function zl(e,t,r){if(!t)return e;const n=E(e.value);let o=null;return Ce(e,i=>{o!==null&&window.clearTimeout(o),i===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}let pt,Tt;const Tl=()=>{var e,t;pt=Oa?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tt=!1,pt!==void 0?pt.then(()=>{Tt=!0}):Tt=!0};Tl();function Il(e){if(Tt)return;let t=!1;We(()=>{Tt||pt==null||pt.then(()=>{t||e()})}),Qe(()=>{t=!0})}function rr(e,t){return Ce(e,r=>{r!==void 0&&(t.value=r)}),F(()=>e.value===void 0?t.value:e.value)}function Rl(e,t){return F(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function _l(e={},t){const r=Ba({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const c=n[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const c=o[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Te("keydown",document,i),Te("keyup",document,l)),t!==void 0&&Ce(t,a=>{a?(Te("keydown",document,i),Te("keyup",document,l)):(Se("keydown",document,i),Se("keyup",document,l))})};return Ma()?(io(s),Qe(()=>{(t===void 0||t.value)&&(Se("keydown",document,i),Se("keyup",document,l))})):s(),La(r)}const Ol=Ve("n-internal-select-menu-body"),zo="__disabled__";function gt(e){const t=ie(Lr,null),r=ie(Er,null),n=ie(Qt,null),o=ie(Ol,null),i=E();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};We(()=>{Te("fullscreenchange",document,l)}),Qe(()=>{Se("fullscreenchange",document,l)})}return Me(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?zo:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}gt.tdkey=zo;gt.propTo={type:[String,Object,Boolean],default:void 0};let Ze=null;function To(){if(Ze===null&&(Ze=document.getElementById("v-binder-view-measurer"),Ze===null)){Ze=document.createElement("div"),Ze.id="v-binder-view-measurer";const{style:e}=Ze;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ze)}return Ze.getBoundingClientRect()}function Bl(e,t){const r=To();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function ur(e){const t=e.getBoundingClientRect(),r=To();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Ml(e){return e.nodeType===9?null:e.parentNode}function Io(e){if(e===null)return null;const t=Ml(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return Io(t)}const Ll=K({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Pe("VBinder",(t=Ar())===null||t===void 0?void 0:t.proxy);const r=ie("VBinder",null),n=E(null),o=w=>{n.value=w,r&&e.syncTargetWithParent&&r.setTargetRef(w)};let i=[];const l=()=>{let w=n.value;for(;w=Io(w),w!==null;)i.push(w);for(const z of i)Te("scroll",z,f,!0)},s=()=>{for(const w of i)Se("scroll",w,f,!0);i=[]},a=new Set,d=w=>{a.size===0&&l(),a.has(w)||a.add(w)},c=w=>{a.has(w)&&a.delete(w),a.size===0&&s()},f=()=>{$o(h)},h=()=>{a.forEach(w=>w())},p=new Set,y=w=>{p.size===0&&Te("resize",window,m),p.has(w)||p.add(w)},C=w=>{p.has(w)&&p.delete(w),p.size===0&&Se("resize",window,m)},m=()=>{p.forEach(w=>w())};return Qe(()=>{Se("resize",window,m),s()}),{targetRef:n,setTargetRef:o,addScrollListener:d,removeScrollListener:c,addResizeListener:y,removeResizeListener:C}},render(){return Ea("binder",this.$slots)}}),Ro=Ll,_o=K({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ie("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?vt(sn("follower",this.$slots),[[t]]):sn("follower",this.$slots)}}),st="@@mmoContext",El={mounted(e,{value:t}){e[st]={handler:void 0},typeof t=="function"&&(e[st].handler=t,Te("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[st];typeof t=="function"?r.handler?r.handler!==t&&(Se("mousemoveoutside",e,r.handler),r.handler=t,Te("mousemoveoutside",e,t)):(e[st].handler=t,Te("mousemoveoutside",e,t)):r.handler&&(Se("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[st];t&&Se("mousemoveoutside",e,t),e[st].handler=void 0}},Al=El,{c:Ft}=Aa(),Dl="vueuc-style",Nt={top:"bottom",bottom:"top",left:"right",right:"left"},Pn={start:"end",center:"center",end:"start"},cr={top:"height",bottom:"height",left:"width",right:"width"},Fl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Nl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},kn={top:!0,bottom:!1,left:!0,right:!1},$n={top:"end",bottom:"start",left:"end",right:"start"};function jl(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const c=(p,y,C)=>{let m=0,w=0;const z=r[p]-t[y]-t[p];return z>0&&n&&(C?w=kn[y]?z:-z:m=kn[y]?z:-z),{left:m,top:w}},f=l==="left"||l==="right";if(a!=="center"){const p=Hl[e],y=Nt[p],C=cr[p];if(r[C]>t[C]){if(t[p]+t[C]t[y]&&(a=Pn[s])}else{const p=l==="bottom"||l==="top"?"left":"top",y=Nt[p],C=cr[p],m=(r[C]-t[C])/2;(t[p]t[y]?(a=$n[p],d=c(C,p,f)):(a=$n[y],d=c(C,y,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Oo=K({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ie("VBinder"),r=Me(()=>e.enabled!==void 0?e.enabled:e.show),n=E(null),o=E(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};We(()=>{r.value&&(a(),i())});const s=Da();Vl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Dl,ssr:s}),Qe(()=>{l()}),Il(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const p=t.targetRef,{x:y,y:C,overlap:m}=e,w=y!==void 0&&C!==void 0?Bl(y,C):ur(p);h.style.setProperty("--v-target-width",`${Math.round(w.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(w.height)}px`);const{width:z,minWidth:_,placement:b,internalShift:g,flip:M}=e;h.setAttribute("v-placement",b),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;z==="target"?k.width=`${w.width}px`:z!==void 0?k.width=z:k.width="",_==="target"?k.minWidth=`${w.width}px`:_!==void 0?k.minWidth=_:k.minWidth="";const A=ur(h),$=ur(o.value),{left:B,top:R,placement:O}=jl(b,w,A,g,M,m),I=Wl(O,m),{left:x,top:S,transform:N}=Ul(O,$,w,R,B,m);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(R)}px`),h.style.transform=`translateX(${x}) translateY(${S}) ${N}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Ce(r,h=>{h?(i(),d()):l()});const d=()=>{qt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ce(Z(e,h),a)}),["teleportDisabled"].forEach(h=>{Ce(Z(e,h),d)}),Ce(Z(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const c=Dr(),f=Me(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:a}},render(){return u(ao,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?vt(r,[[Fr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Kl=er(tr,"WeakMap");const $r=Kl;var ql=Fa(Object.keys,Object);const Gl=ql;var Xl=Object.prototype,Yl=Xl.hasOwnProperty;function Zl(e){if(!Na(e))return Gl(e);var t=[];for(var r in Object(e))Yl.call(e,r)&&r!="constructor"&&t.push(r);return t}function Kr(e){return Nr(e)?Ha(e):Zl(e)}var Jl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ql=/^\w*$/;function qr(e,t){if(Je(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:Ql.test(e)||!Jl.test(e)||t!=null&&e in Object(t)}var es="Expected a function";function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(es);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var l=e.apply(this,n);return r.cache=i.set(o,l)||i,l};return r.cache=new(Gr.Cache||Hr),r}Gr.Cache=Hr;var ts=500;function rs(e){var t=Gr(e,function(n){return r.size===ts&&r.clear(),n}),r=t.cache;return t}var ns=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,os=/\\(\\)?/g,is=rs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ns,function(r,n,o,i){t.push(o?i.replace(os,"$1"):n||r)}),t});const as=is;function Bo(e,t){return Je(e)?e:qr(e,t)?[e]:as(jr(e))}var ls=1/0;function nr(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-ls?"-0":t}function Mo(e,t){t=Bo(t,e);for(var r=0,n=t.length;e!=null&&rs))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,p=r&Cd?new Zt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},gu=vu;function hr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Ct(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return o[d]}}function St(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?bu(s,function(f){return f.test(l)}):mu(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var c=t.slice(l.length);return{value:d,rest:c}}}function mu(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function bu(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(o.length);return{value:l,rest:s}}}var wu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xu=function(t,r,n){var o,i=wu[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const Cu=xu;var Su={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ku={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$u={date:hr({formats:Su,defaultWidth:"full"}),time:hr({formats:Pu,defaultWidth:"full"}),dateTime:hr({formats:ku,defaultWidth:"full"})};const zu=$u;var Tu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Iu=function(t,r,n,o){return Tu[t]};const Ru=Iu;var _u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ou={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mu={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Lu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Eu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Au=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Du={ordinalNumber:Au,era:Ct({values:_u,defaultWidth:"wide"}),quarter:Ct({values:Ou,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ct({values:Bu,defaultWidth:"wide"}),day:Ct({values:Mu,defaultWidth:"wide"}),dayPeriod:Ct({values:Lu,defaultWidth:"wide",formattingValues:Eu,defaultFormattingWidth:"wide"})};const Fu=Du;var Nu=/^(\d+)(th|st|nd|rd)?/i,Hu=/\d+/i,ju={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wu={any:[/^b/i,/^(a|c)/i]},Uu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vu={any:[/1/i,/2/i,/3/i,/4/i]},Ku={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ju={ordinalNumber:yu({matchPattern:Nu,parsePattern:Hu,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:ju,defaultMatchWidth:"wide",parsePatterns:Wu,defaultParseWidth:"any"}),quarter:St({matchPatterns:Uu,defaultMatchWidth:"wide",parsePatterns:Vu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Ku,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),day:St({matchPatterns:Gu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:Yu,defaultMatchWidth:"any",parsePatterns:Zu,defaultParseWidth:"any"})};const Qu=Ju;var ec={code:"en-US",formatDistance:Cu,formatLong:zu,formatRelative:Ru,localize:Fu,match:Qu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const tc=ec,rc={name:"en-US",locale:tc},nc=rc;function Yr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ie(uo,null)||{},n=F(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:gu[e]});return{dateLocaleRef:F(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:nc}),localeRef:n}}const oc=K({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ic=Ke("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),ac=K({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Zo=K({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),lc=K({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),sc=Ke("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),dc=Ke("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),uc=K({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),cc=Ke("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),fc=K({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),hc=Ke("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),pc=Ke("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),vc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),gc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),mc=Ke("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),bc=Ke("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),yc=K({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Wn(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function Jo(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(n=>Jo(n,t))}function wc(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(o)}return i(e),n}function xc(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function Cc(e){return e.children}function Sc(e){return e.key}function Pc(){return!1}function kc(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function $c(e){return e.disabled===!0}function zc(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function vr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Tc(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function Ic(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function Rc(e){return(e==null?void 0:e.type)==="group"}class _c extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Oc(e,t,r,n){return Jt(t.concat(e),r,n,!1)}function Bc(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Mc(e,t,r,n){const o=Jt(t,r,n,!1),i=Jt(e,r,n,!0),l=Bc(e,r),s=[];return o.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>o.delete(a)),o}function gr(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return n!==void 0?{checkedKeys:Tc(r,n),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:Ic(r,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let f;o!==void 0?f=Mc(o,r,t,d):n!==void 0?f=Oc(n,r,t,d):f=Jt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,y=f,C=new Set,m=Math.max.apply(null,Array.from(c.keys()));for(let w=m;w>=0;w-=1){const z=w===0,_=c.get(w);for(const b of _){if(b.isLeaf)continue;const{key:g,shallowLoaded:M}=b;if(p&&M&&b.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&y.has(B.key)&&y.delete(B.key)}),b.disabled||!M)continue;let k=!0,A=!1,$=!0;for(const B of b.children){const R=B.key;if(!B.disabled){if($&&($=!1),y.has(R))A=!0;else if(C.has(R)){A=!0,k=!1;break}else if(k=!1,A)break}}k&&!$?(h&&b.children.forEach(B=>{!B.disabled&&y.has(B.key)&&y.delete(B.key)}),y.add(g)):A&&C.add(g),z&&p&&y.has(g)&&y.delete(g)}}return{checkedKeys:Array.from(y),indeterminateKeys:Array.from(C)}}function Jt(e,t,r,n){const{treeNodeMap:o,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=o.get(a);d!==void 0&&Jo(d,c=>{if(c.disabled)return Rr.STOP;const{key:f}=c;if(!l.has(f)&&(l.add(f),s.add(f),zc(c.rawNode,i))){if(n)return Rr.STOP;if(!r)throw new _c}})}),s}function Lc(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const i=n.treeNodeMap;let l=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Ec(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ac(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function Un(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?Dc:Ac,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||n)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const c=Zr(d,i);c!==null?s=c:a(o(d,r))}else{const c=o(d,!1);if(c!==null)a(c);else{const f=Fc(d);f!=null&&f.isGroup?a(o(f,r)):r&&a(o(d,!0))}}}}return a(e),s}function Dc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function Fc(e){return e.parent}function Zr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,i=r?o-1:0,l=r?-1:o,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=n[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const c=Zr(d,t);if(c!==null)return c}else return d}}return null}const Nc={getChild(){return this.ignored?null:Zr(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Un(this,"next",e)},getPrev(e={}){return Un(this,"prev",e)}};function Hc(e,t){const r=t?new Set(t):void 0,n=[];function o(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&o(l.children)})}return o(e),n}function jc(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Qo(e,t,r,n,o,i=null,l=0){const s=[];return e.forEach((a,d)=>{var c;const f=Object.create(n);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=o(a);Array.isArray(h)&&(f.children=Qo(h,t,r,n,o,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(c=r.get(l))===null||c===void 0||c.push(f)}),s}function Wc(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:i=$c,getIgnored:l=Pc,getIsGroup:s=Rc,getKey:a=Sc}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:Cc,c=t.ignoreEmptyChildren?b=>{const g=d(b);return Array.isArray(g)?g.length?g:null:g}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return xc(this.rawNode,c)},get shallowLoaded(){return kc(this.rawNode,c)},get ignored(){return l(this.rawNode)},contains(b){return jc(this,b)}},Nc),h=Qo(e,n,o,f,c);function p(b){if(b==null)return null;const g=n.get(b);return g&&!g.isGroup&&!g.ignored?g:null}function y(b){if(b==null)return null;const g=n.get(b);return g&&!g.ignored?g:null}function C(b,g){const M=y(b);return M?M.getPrev(g):null}function m(b,g){const M=y(b);return M?M.getNext(g):null}function w(b){const g=y(b);return g?g.getParent():null}function z(b){const g=y(b);return g?g.getChild():null}const _={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(b){return Hc(h,b)},getNode:p,getPrev:C,getNext:m,getParent:w,getChild:z,getFirstAvailableNode(){return Ec(h)},getPath(b,g={}){return Lc(b,g,_)},getCheckedKeys(b,g={}){const{cascade:M=!0,leafOnly:k=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=g;return gr({checkedKeys:pr(b),indeterminateKeys:vr(b),cascade:M,leafOnly:k,checkStrategy:A,allowNotLoaded:$},_)},check(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToCheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},uncheck(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToUncheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},getNonLeafKeys(b={}){return wc(h,b)}};return _}const Uc={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Vc=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Uc),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},Kc={name:"Empty",common:Oe,self:Vc},qc=Kc,Gc=P("empty",` +import{r as E,w as Ce,o as We,a as Qe,i as Oa,c as F,b as Ba,h as Ma,d as io,e as Se,f as La,g as Te,j as Ve,k as ie,m as Lr,l as Er,p as Qt,u as Me,n as K,q as Pe,s as Ar,t as Ea,v as vt,x as sn,C as Aa,y as Da,z as Z,A as Dr,B as u,D as Fr,L as ao,E as qt,F as er,G as tr,H as Fa,I as Na,J as Nr,K as Ha,M as Je,N as lo,O as Hr,P as jr,Q as mt,R as so,S as Pr,T as dn,U as ja,V as un,W as cn,X as Kt,Y as Wa,Z as fn,_ as Ua,$ as Va,a0 as Ka,a1 as qa,a2 as Ga,a3 as Xa,a4 as Ya,a5 as uo,a6 as Ke,a7 as Oe,a8 as P,a9 as L,aa as H,ab as Ie,ac as re,ad as Fe,ae as fe,af as ne,ag as ze,ah as W,ai as Za,aj as it,ak as $t,al as hn,am as co,an as pn,ao as vn,ap as Ja,aq as _t,ar as Ye,as as De,at as fo,au as gn,av as Qa,aw as he,ax as ho,ay as ce,az as te,aA as Ot,aB as el,aC as mn,aD as po,aE as vo,aF as go,aG as ht,aH as tl,aI as rl,aJ as nl,aK as mo,aL as ol,aM as il,aN as al,aO as Wr,aP as Bt,aQ as Pt,aR as ll,aS as Ur,aT as Gt,aU as bo,aV as sl,aW as dl,aX as bn,aY as ul,aZ as yn,a_ as cl,a$ as kr,b0 as fl,b1 as hl,b2 as bt,b3 as pl,b4 as yo,b5 as wo,b6 as xo,b7 as Co,b8 as So,b9 as be,ba as wn,bb as vl,bc as gl,bd as me,be as Ae,bf as at,bg as Mt,bh as U,bi as je,bj as J,bk as X,bl as zt,bm as Ue,bn as ml,bo as Po,bp as bl,bq as xn,br as yl,bs as Xt,bt as Vr,bu as wl,bv as xl}from"./index-6982f66e.js";let Yt=[];const ko=new WeakMap;function Cl(){Yt.forEach(e=>e(...ko.get(e))),Yt=[]}function $o(e,...t){ko.set(e,t),!Yt.includes(e)&&Yt.push(e)===1&&requestAnimationFrame(Cl)}function Cn(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Sl(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function Pl(e){return t=>{t?e.value=t.$el:e.value=null}}const kl=/^(\d|\.)+$/,Sn=/(\d|\.)+/;function He(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(kl.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=Sn.exec(e);return o?e.replace(Sn,String((Number(o[0])+r)*t)):e}return e}let dr;function $l(){return dr===void 0&&(dr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),dr}function zl(e,t,r){if(!t)return e;const n=E(e.value);let o=null;return Ce(e,i=>{o!==null&&window.clearTimeout(o),i===!0?r&&!r.value?n.value=!0:o=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}let pt,Tt;const Tl=()=>{var e,t;pt=Oa?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tt=!1,pt!==void 0?pt.then(()=>{Tt=!0}):Tt=!0};Tl();function Il(e){if(Tt)return;let t=!1;We(()=>{Tt||pt==null||pt.then(()=>{t||e()})}),Qe(()=>{t=!0})}function rr(e,t){return Ce(e,r=>{r!==void 0&&(t.value=r)}),F(()=>e.value===void 0?t.value:e.value)}function Rl(e,t){return F(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function _l(e={},t){const r=Ba({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:o}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==a.key)return;const c=n[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}o!==void 0&&Object.keys(o).forEach(d=>{if(d!==a.key)return;const c=o[d];if(typeof c=="function")c(a);else{const{stop:f=!1,prevent:h=!1}=c;f&&a.stopPropagation(),h&&a.preventDefault(),c.handler(a)}})},s=()=>{(t===void 0||t.value)&&(Te("keydown",document,i),Te("keyup",document,l)),t!==void 0&&Ce(t,a=>{a?(Te("keydown",document,i),Te("keyup",document,l)):(Se("keydown",document,i),Se("keyup",document,l))})};return Ma()?(io(s),Qe(()=>{(t===void 0||t.value)&&(Se("keydown",document,i),Se("keyup",document,l))})):s(),La(r)}const Ol=Ve("n-internal-select-menu-body"),zo="__disabled__";function gt(e){const t=ie(Lr,null),r=ie(Er,null),n=ie(Qt,null),o=ie(Ol,null),i=E();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};We(()=>{Te("fullscreenchange",document,l)}),Qe(()=>{Se("fullscreenchange",document,l)})}return Me(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?zo:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}gt.tdkey=zo;gt.propTo={type:[String,Object,Boolean],default:void 0};let Ze=null;function To(){if(Ze===null&&(Ze=document.getElementById("v-binder-view-measurer"),Ze===null)){Ze=document.createElement("div"),Ze.id="v-binder-view-measurer";const{style:e}=Ze;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ze)}return Ze.getBoundingClientRect()}function Bl(e,t){const r=To();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function ur(e){const t=e.getBoundingClientRect(),r=To();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Ml(e){return e.nodeType===9?null:e.parentNode}function Io(e){if(e===null)return null;const t=Ml(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return Io(t)}const Ll=K({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Pe("VBinder",(t=Ar())===null||t===void 0?void 0:t.proxy);const r=ie("VBinder",null),n=E(null),o=w=>{n.value=w,r&&e.syncTargetWithParent&&r.setTargetRef(w)};let i=[];const l=()=>{let w=n.value;for(;w=Io(w),w!==null;)i.push(w);for(const z of i)Te("scroll",z,f,!0)},s=()=>{for(const w of i)Se("scroll",w,f,!0);i=[]},a=new Set,d=w=>{a.size===0&&l(),a.has(w)||a.add(w)},c=w=>{a.has(w)&&a.delete(w),a.size===0&&s()},f=()=>{$o(h)},h=()=>{a.forEach(w=>w())},p=new Set,y=w=>{p.size===0&&Te("resize",window,m),p.has(w)||p.add(w)},C=w=>{p.has(w)&&p.delete(w),p.size===0&&Se("resize",window,m)},m=()=>{p.forEach(w=>w())};return Qe(()=>{Se("resize",window,m),s()}),{targetRef:n,setTargetRef:o,addScrollListener:d,removeScrollListener:c,addResizeListener:y,removeResizeListener:C}},render(){return Ea("binder",this.$slots)}}),Ro=Ll,_o=K({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ie("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?vt(sn("follower",this.$slots),[[t]]):sn("follower",this.$slots)}}),st="@@mmoContext",El={mounted(e,{value:t}){e[st]={handler:void 0},typeof t=="function"&&(e[st].handler=t,Te("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[st];typeof t=="function"?r.handler?r.handler!==t&&(Se("mousemoveoutside",e,r.handler),r.handler=t,Te("mousemoveoutside",e,t)):(e[st].handler=t,Te("mousemoveoutside",e,t)):r.handler&&(Se("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[st];t&&Se("mousemoveoutside",e,t),e[st].handler=void 0}},Al=El,{c:Ft}=Aa(),Dl="vueuc-style",Nt={top:"bottom",bottom:"top",left:"right",right:"left"},Pn={start:"end",center:"center",end:"start"},cr={top:"height",bottom:"height",left:"width",right:"width"},Fl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Nl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},kn={top:!0,bottom:!1,left:!0,right:!1},$n={top:"end",bottom:"start",left:"end",right:"start"};function jl(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let a=s??"center",d={top:0,left:0};const c=(p,y,C)=>{let m=0,w=0;const z=r[p]-t[y]-t[p];return z>0&&n&&(C?w=kn[y]?z:-z:m=kn[y]?z:-z),{left:m,top:w}},f=l==="left"||l==="right";if(a!=="center"){const p=Hl[e],y=Nt[p],C=cr[p];if(r[C]>t[C]){if(t[p]+t[C]t[y]&&(a=Pn[s])}else{const p=l==="bottom"||l==="top"?"left":"top",y=Nt[p],C=cr[p],m=(r[C]-t[C])/2;(t[p]t[y]?(a=$n[p],d=c(C,p,f)):(a=$n[y],d=c(C,y,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Oo=K({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ie("VBinder"),r=Me(()=>e.enabled!==void 0?e.enabled:e.show),n=E(null),o=E(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};We(()=>{r.value&&(a(),i())});const s=Da();Vl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Dl,ssr:s}),Qe(()=>{l()}),Il(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const p=t.targetRef,{x:y,y:C,overlap:m}=e,w=y!==void 0&&C!==void 0?Bl(y,C):ur(p);h.style.setProperty("--v-target-width",`${Math.round(w.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(w.height)}px`);const{width:z,minWidth:_,placement:b,internalShift:g,flip:M}=e;h.setAttribute("v-placement",b),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;z==="target"?k.width=`${w.width}px`:z!==void 0?k.width=z:k.width="",_==="target"?k.minWidth=`${w.width}px`:_!==void 0?k.minWidth=_:k.minWidth="";const A=ur(h),$=ur(o.value),{left:B,top:R,placement:O}=jl(b,w,A,g,M,m),I=Wl(O,m),{left:x,top:S,transform:N}=Ul(O,$,w,R,B,m);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(R)}px`),h.style.transform=`translateX(${x}) translateY(${S}) ${N}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Ce(r,h=>{h?(i(),d()):l()});const d=()=>{qt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ce(Z(e,h),a)}),["teleportDisabled"].forEach(h=>{Ce(Z(e,h),d)}),Ce(Z(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const c=Dr(),f=Me(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:a}},render(){return u(ao,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?vt(r,[[Fr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Kl=er(tr,"WeakMap");const $r=Kl;var ql=Fa(Object.keys,Object);const Gl=ql;var Xl=Object.prototype,Yl=Xl.hasOwnProperty;function Zl(e){if(!Na(e))return Gl(e);var t=[];for(var r in Object(e))Yl.call(e,r)&&r!="constructor"&&t.push(r);return t}function Kr(e){return Nr(e)?Ha(e):Zl(e)}var Jl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ql=/^\w*$/;function qr(e,t){if(Je(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lo(e)?!0:Ql.test(e)||!Jl.test(e)||t!=null&&e in Object(t)}var es="Expected a function";function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(es);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var l=e.apply(this,n);return r.cache=i.set(o,l)||i,l};return r.cache=new(Gr.Cache||Hr),r}Gr.Cache=Hr;var ts=500;function rs(e){var t=Gr(e,function(n){return r.size===ts&&r.clear(),n}),r=t.cache;return t}var ns=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,os=/\\(\\)?/g,is=rs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ns,function(r,n,o,i){t.push(o?i.replace(os,"$1"):n||r)}),t});const as=is;function Bo(e,t){return Je(e)?e:qr(e,t)?[e]:as(jr(e))}var ls=1/0;function nr(e){if(typeof e=="string"||lo(e))return e;var t=e+"";return t=="0"&&1/e==-ls?"-0":t}function Mo(e,t){t=Bo(t,e);for(var r=0,n=t.length;e!=null&&rs))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,p=r&Cd?new Zt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},gu=vu;function hr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Ct(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{var s=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return o[d]}}function St(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?bu(s,function(f){return f.test(l)}):mu(s,function(f){return f.test(l)}),d;d=e.valueCallback?e.valueCallback(a):a,d=r.valueCallback?r.valueCallback(d):d;var c=t.slice(l.length);return{value:d,rest:c}}}function mu(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function bu(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var s=t.slice(o.length);return{value:l,rest:s}}}var wu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xu=function(t,r,n){var o,i=wu[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const Cu=xu;var Su={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ku={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$u={date:hr({formats:Su,defaultWidth:"full"}),time:hr({formats:Pu,defaultWidth:"full"}),dateTime:hr({formats:ku,defaultWidth:"full"})};const zu=$u;var Tu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Iu=function(t,r,n,o){return Tu[t]};const Ru=Iu;var _u={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ou={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mu={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Lu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Eu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Au=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Du={ordinalNumber:Au,era:Ct({values:_u,defaultWidth:"wide"}),quarter:Ct({values:Ou,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ct({values:Bu,defaultWidth:"wide"}),day:Ct({values:Mu,defaultWidth:"wide"}),dayPeriod:Ct({values:Lu,defaultWidth:"wide",formattingValues:Eu,defaultFormattingWidth:"wide"})};const Fu=Du;var Nu=/^(\d+)(th|st|nd|rd)?/i,Hu=/\d+/i,ju={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wu={any:[/^b/i,/^(a|c)/i]},Uu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vu={any:[/1/i,/2/i,/3/i,/4/i]},Ku={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ju={ordinalNumber:yu({matchPattern:Nu,parsePattern:Hu,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:ju,defaultMatchWidth:"wide",parsePatterns:Wu,defaultParseWidth:"any"}),quarter:St({matchPatterns:Uu,defaultMatchWidth:"wide",parsePatterns:Vu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Ku,defaultMatchWidth:"wide",parsePatterns:qu,defaultParseWidth:"any"}),day:St({matchPatterns:Gu,defaultMatchWidth:"wide",parsePatterns:Xu,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:Yu,defaultMatchWidth:"any",parsePatterns:Zu,defaultParseWidth:"any"})};const Qu=Ju;var ec={code:"en-US",formatDistance:Cu,formatLong:zu,formatRelative:Ru,localize:Fu,match:Qu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const tc=ec,rc={name:"en-US",locale:tc},nc=rc;function Yr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ie(uo,null)||{},n=F(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:gu[e]});return{dateLocaleRef:F(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:nc}),localeRef:n}}const oc=K({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ic=Ke("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),ac=K({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Zo=K({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),lc=K({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),sc=Ke("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),dc=Ke("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),uc=K({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),cc=Ke("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),fc=K({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),hc=Ke("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),pc=Ke("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),vc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),gc=Ke("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),mc=Ke("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),bc=Ke("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),yc=K({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Wn(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function Jo(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(n=>Jo(n,t))}function wc(e,t={}){const{preserveGroup:r=!1}=t,n=[],o=r?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(o)}return i(e),n}function xc(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function Cc(e){return e.children}function Sc(e){return e.key}function Pc(){return!1}function kc(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function $c(e){return e.disabled===!0}function zc(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function vr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Tc(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)||r.add(n)}),Array.from(r)}function Ic(e,t){const r=new Set(e);return t.forEach(n=>{r.has(n)&&r.delete(n)}),Array.from(r)}function Rc(e){return(e==null?void 0:e.type)==="group"}class _c extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Oc(e,t,r,n){return Jt(t.concat(e),r,n,!1)}function Bc(e,t){const r=new Set;return e.forEach(n=>{const o=t.treeNodeMap.get(n);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Mc(e,t,r,n){const o=Jt(t,r,n,!1),i=Jt(e,r,n,!0),l=Bc(e,r),s=[];return o.forEach(a=>{(i.has(a)||l.has(a))&&s.push(a)}),s.forEach(a=>o.delete(a)),o}function gr(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:o,indeterminateKeys:i,cascade:l,leafOnly:s,checkStrategy:a,allowNotLoaded:d}=e;if(!l)return n!==void 0?{checkedKeys:Tc(r,n),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:Ic(r,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let f;o!==void 0?f=Mc(o,r,t,d):n!==void 0?f=Oc(n,r,t,d):f=Jt(r,t,d,!1);const h=a==="parent",p=a==="child"||s,y=f,C=new Set,m=Math.max.apply(null,Array.from(c.keys()));for(let w=m;w>=0;w-=1){const z=w===0,_=c.get(w);for(const b of _){if(b.isLeaf)continue;const{key:g,shallowLoaded:M}=b;if(p&&M&&b.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&y.has(B.key)&&y.delete(B.key)}),b.disabled||!M)continue;let k=!0,A=!1,$=!0;for(const B of b.children){const R=B.key;if(!B.disabled){if($&&($=!1),y.has(R))A=!0;else if(C.has(R)){A=!0,k=!1;break}else if(k=!1,A)break}}k&&!$?(h&&b.children.forEach(B=>{!B.disabled&&y.has(B.key)&&y.delete(B.key)}),y.add(g)):A&&C.add(g),z&&p&&y.has(g)&&y.delete(g)}}return{checkedKeys:Array.from(y),indeterminateKeys:Array.from(C)}}function Jt(e,t,r,n){const{treeNodeMap:o,getChildren:i}=t,l=new Set,s=new Set(e);return e.forEach(a=>{const d=o.get(a);d!==void 0&&Jo(d,c=>{if(c.disabled)return Rr.STOP;const{key:f}=c;if(!l.has(f)&&(l.add(f),s.add(f),zc(c.rawNode,i))){if(n)return Rr.STOP;if(!r)throw new _c}})}),s}function Lc(e,{includeGroup:t=!1,includeSelf:r=!0},n){var o;const i=n.treeNodeMap;let l=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return s.treeNode=null,s;for(;l;)!l.ignored&&(t||!l.isGroup)&&s.treeNodePath.push(l),l=l.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(a=>a.key),s}function Ec(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ac(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o+1)%n]:o===r.length-1?null:r[o+1]}function Un(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const o=t==="prev"?Dc:Ac,i={reverse:t==="prev"};let l=!1,s=null;function a(d){if(d!==null){if(d===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!d.disabled||n)&&!d.ignored&&!d.isGroup){s=d;return}if(d.isGroup){const c=Zr(d,i);c!==null?s=c:a(o(d,r))}else{const c=o(d,!1);if(c!==null)a(c);else{const f=Fc(d);f!=null&&f.isGroup?a(o(f,r)):r&&a(o(d,!0))}}}}return a(e),s}function Dc(e,t){const r=e.siblings,n=r.length,{index:o}=e;return t?r[(o-1+n)%n]:o===0?null:r[o-1]}function Fc(e){return e.parent}function Zr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:o}=n,i=r?o-1:0,l=r?-1:o,s=r?-1:1;for(let a=i;a!==l;a+=s){const d=n[a];if(!d.disabled&&!d.ignored)if(d.isGroup){const c=Zr(d,t);if(c!==null)return c}else return d}}return null}const Nc={getChild(){return this.ignored?null:Zr(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Un(this,"next",e)},getPrev(e={}){return Un(this,"prev",e)}};function Hc(e,t){const r=t?new Set(t):void 0,n=[];function o(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&o(l.children)})}return o(e),n}function jc(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Qo(e,t,r,n,o,i=null,l=0){const s=[];return e.forEach((a,d)=>{var c;const f=Object.create(n);if(f.rawNode=a,f.siblings=s,f.level=l,f.index=d,f.isFirstChild=d===0,f.isLastChild=d+1===e.length,f.parent=i,!f.ignored){const h=o(a);Array.isArray(h)&&(f.children=Qo(h,t,r,n,o,f,l+1))}s.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(c=r.get(l))===null||c===void 0||c.push(f)}),s}function Wc(e,t={}){var r;const n=new Map,o=new Map,{getDisabled:i=$c,getIgnored:l=Pc,getIsGroup:s=Rc,getKey:a=Sc}=t,d=(r=t.getChildren)!==null&&r!==void 0?r:Cc,c=t.ignoreEmptyChildren?b=>{const g=d(b);return Array.isArray(g)?g.length?g:null:g}:d,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return xc(this.rawNode,c)},get shallowLoaded(){return kc(this.rawNode,c)},get ignored(){return l(this.rawNode)},contains(b){return jc(this,b)}},Nc),h=Qo(e,n,o,f,c);function p(b){if(b==null)return null;const g=n.get(b);return g&&!g.isGroup&&!g.ignored?g:null}function y(b){if(b==null)return null;const g=n.get(b);return g&&!g.ignored?g:null}function C(b,g){const M=y(b);return M?M.getPrev(g):null}function m(b,g){const M=y(b);return M?M.getNext(g):null}function w(b){const g=y(b);return g?g.getParent():null}function z(b){const g=y(b);return g?g.getChild():null}const _={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:c,getFlattenedNodes(b){return Hc(h,b)},getNode:p,getPrev:C,getNext:m,getParent:w,getChild:z,getFirstAvailableNode(){return Ec(h)},getPath(b,g={}){return Lc(b,g,_)},getCheckedKeys(b,g={}){const{cascade:M=!0,leafOnly:k=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=g;return gr({checkedKeys:pr(b),indeterminateKeys:vr(b),cascade:M,leafOnly:k,checkStrategy:A,allowNotLoaded:$},_)},check(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToCheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},uncheck(b,g,M={}){const{cascade:k=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=M;return gr({checkedKeys:pr(g),indeterminateKeys:vr(g),keysToUncheck:b==null?[]:Wn(b),cascade:k,leafOnly:A,checkStrategy:$,allowNotLoaded:B},_)},getNonLeafKeys(b={}){return wc(h,b)}};return _}const Uc={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Vc=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},Uc),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},Kc={name:"Empty",common:Oe,self:Vc},qc=Kc,Gc=P("empty",` display: flex; flex-direction: column; align-items: center; @@ -1141,7 +1141,7 @@ import{r as E,w as Ce,o as We,a as Qe,i as Oa,c as F,b as Ba,h as Ma,d as io,e a width: 0; height: 0; opacity: 0; - `)]);var Qn=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function s(c){try{d(n.next(c))}catch(f){l(f)}}function a(c){try{d(n.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,a)}d((n=n.apply(e,t||[])).next())})};function np(e,t,r){const{doChange:n,xhrMap:o}=e;let i=0;function l(a){var d;let c=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),c=Rt(((d=e.onError)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}function s(a){var d;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let c=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),c=Rt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const c=Math.ceil(a.loaded/a.total*100);d.percentage=c,i=c}n(d,a)}}}function op(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:n,headers:o,withCredentials:i,action:l,onProgress(c){const f=Object.assign({},r,{status:"uploading"}),h=c.percent;f.percentage=h,d=h,a(f)},onFinish(){var c;let f=Object.assign({},r,{status:"finished",percentage:d});f=Rt(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)},onError(){var c;let f=Object.assign({},r,{status:"error",percentage:d});f=Rt(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)}})}function ip(e,t,r){const n=np(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function Si(e,t){return typeof e=="function"?e({file:t}):e||{}}function ap(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function lp(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function sp(e,t,r,{method:n,action:o,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const c=new FormData;if(lp(c,a,r),c.append(t,r.file),ip(e,r,d),o!==void 0){d.open(n.toUpperCase(),o),ap(d,s,r),d.send(c);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const dp=Object.assign(Object.assign({},re.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Uh?xi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),up=K({name:"Upload",props:dp,setup(e){e.abstract&&e.listType==="image-card"&&bt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Upload","-upload",rp,wh,e,t),o=mo(e),i=F(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=E(e.defaultFileList),s=Z(e,"fileList"),a=E(null),d={value:!1},c=E(!1),f=new Map,h=rr(s,l),p=F(()=>h.value.map(Rt));function y(){var $;($=a.value)===null||$===void 0||$.click()}function C($){const B=$.target;z(B.files?Array.from(B.files).map(R=>({file:R,entry:null,source:"input"})):null,$),B.value=""}function m($){const{"onUpdate:fileList":B,onUpdateFileList:R}=e;B&&ce(B,$),R&&ce(R,$),l.value=$}const w=F(()=>e.multiple||e.directory);function z($,B){if(!$||$.length===0)return;const{onBeforeUpload:R}=e;$=w.value?$:[$[0]];const{max:O,accept:I}=e;$=$.filter(({file:S,source:N})=>N==="dnd"&&(I!=null&&I.trim())?Gh(S.name,S.type,I):!0),O&&($=$.slice(0,O-p.value.length));const x=kr();Promise.all($.map(({file:S,entry:N})=>Qn(this,void 0,void 0,function*(){var D;const q={id:kr(),batchId:x,name:S.name,status:"pending",percentage:0,file:S,url:null,type:S.type,thumbnailUrl:null,fullPath:(D=N==null?void 0:N.fullPath)!==null&&D!==void 0?D:`/${S.webkitRelativePath||S.name}`};return!R||(yield R({file:q,fileList:p.value}))!==!1?q:null}))).then(S=>Qn(this,void 0,void 0,function*(){let N=Promise.resolve();return S.forEach(D=>{N=N.then(qt).then(()=>{D&&b(D,B,{append:!0})})}),yield N})).then(()=>{e.defaultUpload&&_()})}function _($){const{method:B,action:R,withCredentials:O,headers:I,data:x,name:S}=e,N=$!==void 0?p.value.filter(q=>q.id===$):p.value,D=$!==void 0;N.forEach(q=>{const{status:Q}=q;(Q==="pending"||Q==="error"&&D)&&(e.customRequest?op({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:q,action:R,withCredentials:O,headers:I,data:x,customRequest:e.customRequest}):sp({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},S,q,{method:B,action:R,withCredentials:O,responseType:e.responseType,headers:I,data:x}))})}const b=($,B,R={append:!1,remove:!1})=>{const{append:O,remove:I}=R,x=Array.from(p.value),S=x.findIndex(N=>N.id===$.id);if(O||I||~S){O?x.push($):I?x.splice(S,1):x.splice(S,1,$);const{onChange:N}=e;N&&N({file:$,fileList:x,event:B}),m(x)}};function g($){var B;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:R}=e;return R?(B=R($.file,$))!==null&&B!==void 0?B:$.url||"":$.url?$.url:$.file?Wh($.file):""}const M=F(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:B,draggerBorder:R,draggerBorderHover:O,itemColorHover:I,itemColorHoverError:x,itemTextColorError:S,itemTextColorSuccess:N,itemTextColor:D,itemIconColor:q,itemDisabledOpacity:Q,lineHeight:ae,borderRadius:pe,fontSize:ve,itemBorderImageCardError:Re,itemBorderImageCard:oe}}=n.value;return{"--n-bezier":$,"--n-border-radius":pe,"--n-dragger-border":R,"--n-dragger-border-hover":O,"--n-dragger-color":B,"--n-font-size":ve,"--n-item-color-hover":I,"--n-item-color-hover-error":x,"--n-item-disabled-opacity":Q,"--n-item-icon-color":q,"--n-item-text-color":D,"--n-item-text-color-error":S,"--n-item-text-color-success":N,"--n-line-height":ae,"--n-item-border-image-card-error":Re,"--n-item-border-image-card":oe}}),k=r?Fe("upload",void 0,M,e):void 0;Pe(yt,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Z(e,"showCancelButton"),showDownloadButtonRef:Z(e,"showDownloadButton"),showRemoveButtonRef:Z(e,"showRemoveButton"),showRetryButtonRef:Z(e,"showRetryButton"),onRemoveRef:Z(e,"onRemove"),onDownloadRef:Z(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:Z(e,"triggerStyle"),shouldUseThumbnailUrlRef:Z(e,"shouldUseThumbnailUrl"),renderIconRef:Z(e,"renderIcon"),xhrMap:f,submit:_,doChange:b,showPreviewButtonRef:Z(e,"showPreviewButton"),onPreviewRef:Z(e,"onPreview"),getFileThumbnailUrlResolver:g,listTypeRef:Z(e,"listType"),dragOverRef:c,openOpenFileDialog:y,draggerInsideRef:d,handleFileAddition:z,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:Z(e,"fileListStyle"),abstractRef:Z(e,"abstract"),acceptRef:Z(e,"accept"),cssVarsRef:r?void 0:M,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:Z(e,"showTrigger"),imageGroupPropsRef:Z(e,"imageGroupProps"),mergedDirectoryDndRef:F(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:_,openOpenFileDialog:y};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:n,dragOver:c,mergedMultiple:w,cssVars:r?void 0:M,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:C},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:l}=this;if(o.default&&!this.abstract){const a=o.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[bi]&&(r.value=!0)}const s=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(De,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(vl,{to:"body"},s)):(l==null||l(),u("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&u(Ci,null,o),this.showFileList&&u(tp,null,o)))}}),eo="/web/assets/setting-c6ca7b14.svg";function cp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function fp(e,t,r=0,n="/",o=""){let i=e+"="+t+";path="+n;if(o&&(i+=";domain="+o),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const ct={get:cp,set:fp},Lt=gl("prompt-store",()=>{const e=E([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=E(!1),r=E(!1),n=E([]),o=E(""),i=E(0),l=E({isShow:!1,newPrompt:{act:"",prompt:""}}),s=F(()=>{var d;return o.value?(d=n.value)==null?void 0:d.filter(c=>c.act.includes(o.value)||c.prompt.includes(o.value)):n.value});function a(d){if(d instanceof Array&&d.every(c=>c.act&&c.prompt)){if(n.value.length===0)return n.value.push(...d),{result:!0,data:{successCount:d.length}};const c=d.filter(f=>{var h;return(h=n.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return n.value.push(...c),{result:!0,data:{successCount:c.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:n,keyword:o,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),hp=["href"],pp={key:1},vp=K({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(me(),Ae("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},at(t.navConfig.label),9,hp)):(me(),Ae("div",pp,at(t.navConfig.label),1))}}),gp=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),mp=e=>new Promise((t,r)=>setTimeout(t,e)),bp=Ue("div",{class:"text-3xl py-2"},"设置用户",-1),yp=Ue("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Sr="_U",wp="BingAI_Rand_IP",xp=K({__name:"ChatNav",setup(e){const t=E(!1),r=E(!1),n=E(""),o=rn(),i=Lt(),{isShowPromptSotre:l}=Mt(i),s=E(!1),a={github:"github",setToken:"setToken",compose:"compose",promptStore:"promptStore",reset:"reset",version:"version"},d=[{key:a.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:a.version,label:"版本信息"},{key:a.promptStore,label:"提示词库"},{key:a.setToken,label:"设置用户"},{key:a.compose,label:"撰写文章",url:"/web/compose.html"},{key:a.reset,label:"一键重置"}],c=C=>u(vp,{navConfig:C}),f=C=>{switch(C){case a.version:o.success("当前版本号为:1.6.7");break;case a.promptStore:l.value=!0;break;case a.setToken:n.value=ct.get(Sr)||"",r.value=!0;break;case a.reset:s.value=!0;break}},h=async()=>{s.value=!1,ct.set(Sr,"",-1),ct.set(wp,"",-1),await y(),o.success("清理完成"),window.location.reload()},p=()=>{if(!n.value){o.warning("请先填入用户 Cookie");return}ct.set(Sr,n.value,7*24*60,"/"),r.value=!1},y=async()=>{localStorage.clear(),sessionStorage.clear();const C=await caches.keys();for(const m of C)await caches.open(m).then(async w=>{const z=await w.keys();return await Promise.all(z.map(_=>(console.log("del cache : ",_.url),w.delete(_))))})};return(C,m)=>(me(),Ae(De,null,[U(gp)()?(me(),je(U(Xn),{key:0,class:"select-none",show:t.value,options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-4 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0,onClick:m[0]||(m[0]=w=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(me(),je(U(Xn),{key:1,class:"select-none",trigger:"hover",options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-6 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),X(U(zt),{show:r.value,"onUpdate:show":m[3]||(m[3]=w=>r.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[bp]),action:J(()=>[X(U(be),{size:"large",onClick:m[2]||(m[2]=w=>r.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),default:J(()=>[X(U(kt),{size:"large",value:n.value,"onUpdate:value":m[1]||(m[1]=w=>n.value=w),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),X(U(zt),{show:s.value,"onUpdate:show":m[5]||(m[5]=w=>s.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[yp]),action:J(()=>[X(U(be),{size:"large",onClick:m[4]||(m[4]=w=>s.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"error",onClick:h},{default:J(()=>[he("确定")]),_:1})]),_:1},8,["show"])],64))}});function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=300){l(a);return}let c=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),c=Rt(((d=e.onFinish)===null||d===void 0?void 0:d.call(e,{file:c,event:a}))||c),n(c,a)}return{handleXHRLoad:s,handleXHRError:l,handleXHRAbort(a){const d=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(d,a)},handleXHRProgress(a){const d=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const c=Math.ceil(a.loaded/a.total*100);d.percentage=c,i=c}n(d,a)}}}function op(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:l,customRequest:s}=e,{doChange:a}=e.inst;let d=0;s({file:r,data:n,headers:o,withCredentials:i,action:l,onProgress(c){const f=Object.assign({},r,{status:"uploading"}),h=c.percent;f.percentage=h,d=h,a(f)},onFinish(){var c;let f=Object.assign({},r,{status:"finished",percentage:d});f=Rt(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)},onError(){var c;let f=Object.assign({},r,{status:"error",percentage:d});f=Rt(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:f}))||f),a(f)}})}function ip(e,t,r){const n=np(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function Si(e,t){return typeof e=="function"?e({file:t}):e||{}}function ap(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function lp(e,t,r){const n=Si(t,r);n&&Object.keys(n).forEach(o=>{e.append(o,n[o])})}function sp(e,t,r,{method:n,action:o,withCredentials:i,responseType:l,headers:s,data:a}){const d=new XMLHttpRequest;d.responseType=l,e.xhrMap.set(r.id,d),d.withCredentials=i;const c=new FormData;if(lp(c,a,r),c.append(t,r.file),ip(e,r,d),o!==void 0){d.open(n.toUpperCase(),o),ap(d,s,r),d.send(c);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const dp=Object.assign(Object.assign({},re.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Uh?xi(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),up=K({name:"Upload",props:dp,setup(e){e.abstract&&e.listType==="image-card"&&bt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ie(e),n=re("Upload","-upload",rp,wh,e,t),o=mo(e),i=F(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=E(e.defaultFileList),s=Z(e,"fileList"),a=E(null),d={value:!1},c=E(!1),f=new Map,h=rr(s,l),p=F(()=>h.value.map(Rt));function y(){var $;($=a.value)===null||$===void 0||$.click()}function C($){const B=$.target;z(B.files?Array.from(B.files).map(R=>({file:R,entry:null,source:"input"})):null,$),B.value=""}function m($){const{"onUpdate:fileList":B,onUpdateFileList:R}=e;B&&ce(B,$),R&&ce(R,$),l.value=$}const w=F(()=>e.multiple||e.directory);function z($,B){if(!$||$.length===0)return;const{onBeforeUpload:R}=e;$=w.value?$:[$[0]];const{max:O,accept:I}=e;$=$.filter(({file:S,source:N})=>N==="dnd"&&(I!=null&&I.trim())?Gh(S.name,S.type,I):!0),O&&($=$.slice(0,O-p.value.length));const x=kr();Promise.all($.map(({file:S,entry:N})=>Qn(this,void 0,void 0,function*(){var D;const q={id:kr(),batchId:x,name:S.name,status:"pending",percentage:0,file:S,url:null,type:S.type,thumbnailUrl:null,fullPath:(D=N==null?void 0:N.fullPath)!==null&&D!==void 0?D:`/${S.webkitRelativePath||S.name}`};return!R||(yield R({file:q,fileList:p.value}))!==!1?q:null}))).then(S=>Qn(this,void 0,void 0,function*(){let N=Promise.resolve();return S.forEach(D=>{N=N.then(qt).then(()=>{D&&b(D,B,{append:!0})})}),yield N})).then(()=>{e.defaultUpload&&_()})}function _($){const{method:B,action:R,withCredentials:O,headers:I,data:x,name:S}=e,N=$!==void 0?p.value.filter(q=>q.id===$):p.value,D=$!==void 0;N.forEach(q=>{const{status:Q}=q;(Q==="pending"||Q==="error"&&D)&&(e.customRequest?op({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:q,action:R,withCredentials:O,headers:I,data:x,customRequest:e.customRequest}):sp({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},S,q,{method:B,action:R,withCredentials:O,responseType:e.responseType,headers:I,data:x}))})}const b=($,B,R={append:!1,remove:!1})=>{const{append:O,remove:I}=R,x=Array.from(p.value),S=x.findIndex(N=>N.id===$.id);if(O||I||~S){O?x.push($):I?x.splice(S,1):x.splice(S,1,$);const{onChange:N}=e;N&&N({file:$,fileList:x,event:B}),m(x)}};function g($){var B;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:R}=e;return R?(B=R($.file,$))!==null&&B!==void 0?B:$.url||"":$.url?$.url:$.file?Wh($.file):""}const M=F(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:B,draggerBorder:R,draggerBorderHover:O,itemColorHover:I,itemColorHoverError:x,itemTextColorError:S,itemTextColorSuccess:N,itemTextColor:D,itemIconColor:q,itemDisabledOpacity:Q,lineHeight:ae,borderRadius:pe,fontSize:ve,itemBorderImageCardError:Re,itemBorderImageCard:oe}}=n.value;return{"--n-bezier":$,"--n-border-radius":pe,"--n-dragger-border":R,"--n-dragger-border-hover":O,"--n-dragger-color":B,"--n-font-size":ve,"--n-item-color-hover":I,"--n-item-color-hover-error":x,"--n-item-disabled-opacity":Q,"--n-item-icon-color":q,"--n-item-text-color":D,"--n-item-text-color-error":S,"--n-item-text-color-success":N,"--n-line-height":ae,"--n-item-border-image-card-error":Re,"--n-item-border-image-card":oe}}),k=r?Fe("upload",void 0,M,e):void 0;Pe(yt,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:Z(e,"showCancelButton"),showDownloadButtonRef:Z(e,"showDownloadButton"),showRemoveButtonRef:Z(e,"showRemoveButton"),showRetryButtonRef:Z(e,"showRetryButton"),onRemoveRef:Z(e,"onRemove"),onDownloadRef:Z(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:Z(e,"triggerStyle"),shouldUseThumbnailUrlRef:Z(e,"shouldUseThumbnailUrl"),renderIconRef:Z(e,"renderIcon"),xhrMap:f,submit:_,doChange:b,showPreviewButtonRef:Z(e,"showPreviewButton"),onPreviewRef:Z(e,"onPreview"),getFileThumbnailUrlResolver:g,listTypeRef:Z(e,"listType"),dragOverRef:c,openOpenFileDialog:y,draggerInsideRef:d,handleFileAddition:z,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:Z(e,"fileListStyle"),abstractRef:Z(e,"abstract"),acceptRef:Z(e,"accept"),cssVarsRef:r?void 0:M,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:Z(e,"showTrigger"),imageGroupPropsRef:Z(e,"imageGroupProps"),mergedDirectoryDndRef:F(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:_,openOpenFileDialog:y};return Object.assign({mergedClsPrefix:t,draggerInsideRef:d,inputElRef:a,mergedTheme:n,dragOver:c,mergedMultiple:w,cssVars:r?void 0:M,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:C},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:l}=this;if(o.default&&!this.abstract){const a=o.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[bi]&&(r.value=!0)}const s=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(De,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(vl,{to:"body"},s)):(l==null||l(),u("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&u(Ci,null,o),this.showFileList&&u(tp,null,o)))}}),eo="/web/assets/setting-c6ca7b14.svg";function cp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function fp(e,t,r=0,n="/",o=""){let i=e+"="+t+";path="+n;if(o&&(i+=";domain="+o),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const ct={get:cp,set:fp},Lt=gl("prompt-store",()=>{const e=E([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=E(!1),r=E(!1),n=E([]),o=E(""),i=E(0),l=E({isShow:!1,newPrompt:{act:"",prompt:""}}),s=F(()=>{var d;return o.value?(d=n.value)==null?void 0:d.filter(c=>c.act.includes(o.value)||c.prompt.includes(o.value)):n.value});function a(d){if(d instanceof Array&&d.every(c=>c.act&&c.prompt)){if(n.value.length===0)return n.value.push(...d),{result:!0,data:{successCount:d.length}};const c=d.filter(f=>{var h;return(h=n.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return n.value.push(...c),{result:!0,data:{successCount:c.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:n,keyword:o,searchPromptList:s,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),hp=["href"],pp={key:1},vp=K({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(me(),Ae("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},at(t.navConfig.label),9,hp)):(me(),Ae("div",pp,at(t.navConfig.label),1))}}),gp=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),mp=e=>new Promise((t,r)=>setTimeout(t,e)),bp=Ue("div",{class:"text-3xl py-2"},"设置用户",-1),yp=Ue("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Sr="_U",wp="BingAI_Rand_IP",xp=K({__name:"ChatNav",setup(e){const t=E(!1),r=E(!1),n=E(""),o=rn(),i=Lt(),{isShowPromptSotre:l}=Mt(i),s=E(!1),a={github:"github",setToken:"setToken",compose:"compose",promptStore:"promptStore",reset:"reset",version:"version"},d=[{key:a.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:a.version,label:"版本信息"},{key:a.promptStore,label:"提示词库"},{key:a.setToken,label:"设置用户"},{key:a.compose,label:"撰写文章",url:"/web/compose.html"},{key:a.reset,label:"一键重置"}],c=C=>u(vp,{navConfig:C}),f=C=>{switch(C){case a.version:o.success("当前版本号为:1.6.8");break;case a.promptStore:l.value=!0;break;case a.setToken:n.value=ct.get(Sr)||"",r.value=!0;break;case a.reset:s.value=!0;break}},h=async()=>{s.value=!1,ct.set(Sr,"",-1),ct.set(wp,"",-1),await y(),o.success("清理完成"),window.location.reload()},p=()=>{if(!n.value){o.warning("请先填入用户 Cookie");return}ct.set(Sr,n.value,7*24*60,"/"),r.value=!1},y=async()=>{localStorage.clear(),sessionStorage.clear();const C=await caches.keys();for(const m of C)await caches.open(m).then(async w=>{const z=await w.keys();return await Promise.all(z.map(_=>(console.log("del cache : ",_.url),w.delete(_))))})};return(C,m)=>(me(),Ae(De,null,[U(gp)()?(me(),je(U(Xn),{key:0,class:"select-none",show:t.value,options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-4 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0,onClick:m[0]||(m[0]=w=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(me(),je(U(Xn),{key:1,class:"select-none",trigger:"hover",options:d,"render-label":c,onSelect:f},{default:J(()=>[X(U(Br),{class:"fixed top-6 right-6 cursor-pointer",src:U(eo),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),X(U(zt),{show:r.value,"onUpdate:show":m[3]||(m[3]=w=>r.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[bp]),action:J(()=>[X(U(be),{size:"large",onClick:m[2]||(m[2]=w=>r.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),default:J(()=>[X(U(kt),{size:"large",value:n.value,"onUpdate:value":m[1]||(m[1]=w=>n.value=w),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),X(U(zt),{show:s.value,"onUpdate:show":m[5]||(m[5]=w=>s.value=w),preset:"dialog","show-icon":!1},{header:J(()=>[yp]),action:J(()=>[X(U(be),{size:"large",onClick:m[4]||(m[4]=w=>s.value=!1)},{default:J(()=>[he("取消")]),_:1}),X(U(be),{ghost:"",size:"large",type:"error",onClick:h},{default:J(()=>[he("确定")]),_:1})]),_:1},8,["show"])],64))}});function to(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rthis.range.start)){var n=Math.max(r-this.param.buffer,0);this.checkRange(n,this.getEndByStart(n))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=o-1)}return n>0?--n:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var n=0,o=0,i=0;i=N&&n("tobottom")},w=function(x){var S=p(),N=y(),D=C();S<0||S+N>D+1||!D||(f.handleScroll(S),m(S,N,D,x))},z=function(){var x=t.dataKey,S=t.dataSources,N=S===void 0?[]:S;return N.map(function(D){return typeof x=="function"?x(D):D[x]})},_=function(x){a.value=x},b=function(){f=new Rp({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:z()},_),a.value=f.getRange()},g=function(x){if(x>=t.dataSources.length-1)B();else{var S=f.getOffset(x);M(S)}},M=function(x){t.pageMode?(document.body[s]=x,document.documentElement[s]=x):d.value&&(d.value[s]=x)},k=function(){for(var x=[],S=a.value,N=S.start,D=S.end,q=t.dataSources,Q=t.dataKey,ae=t.itemClass,pe=t.itemTag,ve=t.itemStyle,Re=t.extraProps,oe=t.dataComponent,ke=t.itemScopedSlots,we=N;we<=D;we++){var ee=q[we];if(ee){var Le=typeof Q=="function"?Q(ee):ee[Q];typeof Le=="string"||typeof Le=="number"?x.push(X(Mp,{index:we,tag:pe,event:It.ITEM,horizontal:l,uniqueKey:Le,source:ee,extraProps:Re,component:oe,scopedSlots:ke,style:ve,class:"".concat(ae).concat(t.itemClassAdd?" "+t.itemClassAdd(we):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(Q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(we,"' from data-sources."))}return x},A=function(x,S){f.saveSize(x,S),n("resized",x,S)},$=function(x,S,N){x===ft.HEADER?f.updateParam("slotHeaderSize",S):x===ft.FOOTER&&f.updateParam("slotFooterSize",S),N&&f.handleSlotSizeChange()},B=function I(){if(c.value){var x=c.value[l?"offsetLeft":"offsetTop"];M(x),setTimeout(function(){p()+y(){n.value=n.value.filter(a=>a.act!==s.act&&a.prompt!==s.prompt),t.success("删除提示词成功")},l=s=>{o.value.isShow=!0,o.value.type="edit",o.value.title="编辑提示词",o.value.tmpPrompt=s,o.value.newPrompt={...s}};return(s,a)=>(me(),je(U(mi),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:J(()=>[X(U(oi),{class:"max-w-[150px] xl:max-w-[680px] overflow-ellipsis overflow-hidden",type:"info"},{default:J(()=>[he(at(s.source.act),1)]),_:1}),Ue("div",Lp,[X(U(be),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=d=>l(s.source))},{default:J(()=>[he("编辑")]),_:1}),X(U(be),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=d=>i(s.source))},{default:J(()=>[he("删除")]),_:1})])]),default:J(()=>[X(U(li),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(at(s.source.prompt),1)]),_:1})]),_:1}))}}),Ap={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},Dp=["href"],Fp={class:"flex justify-center gap-5"},Np=["href"],Hp=K({__name:"ChatPromptStore",setup(e){const t=rn(),r=Lt(),{promptDownloadConfig:n,isShowPromptSotre:o,promptList:i,keyword:l,searchPromptList:s,optPromptConfig:a}=Mt(r),d=E(!1),c=E(!1),f=E(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:_,tmpPrompt:b,newPrompt:g}=a.value;if(!g.act)return t.error("提示词标题不能为空");if(!g.prompt)return t.error("提示词描述不能为空");if(_==="add")i.value=[g,...i.value],t.success("添加提示词成功");else if(_==="edit"){if(g.act===(b==null?void 0:b.act)&&g.prompt===(b==null?void 0:b.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const M=i.value.findIndex(k=>k.act===(b==null?void 0:b.act)&&k.prompt===(b==null?void 0:b.prompt));M>-1?(i.value[M]=g,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},y=_=>new Promise((b,g)=>{const M=new FileReader;M.onload=function(k){var A;b((A=k.target)==null?void 0:A.result)},M.onerror=g,M.readAsText(_)}),C=async _=>{var b;if(_.file.file){c.value=!0;const g=await y(_.file.file),M=JSON.parse(g),k=r.addPrompt(M);k.result?(t.info(`上传文件含 ${M.length} 条数据`),t.success(`成功导入 ${(b=k.data)==null?void 0:b.successCount} 条有效数据`)):t.error(k.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},m=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const _=JSON.stringify(i.value),b=new Blob([_],{type:"application/json"}),g=URL.createObjectURL(b),M=document.createElement("a");M.href=g,M.download="BingAIPrompts.json",M.click(),URL.revokeObjectURL(g),t.success("导出提示词库成功"),f.value=!1},w=()=>{i.value=[],t.success("清空提示词库成功")},z=async _=>{var M;if(!_.url)return t.error("请先输入下载链接");_.isDownloading=!0;let b;if(_.url.endsWith(".json"))b=await fetch(_.url).then(k=>k.json());else if(_.url.endsWith(".csv")){const k=await fetch(_.url).then(A=>A.text());console.log(k),b=k.split(` `).filter(A=>A).map(A=>{var B;const $=A.split('","');return{act:$[0].slice(1),prompt:(B=$[1])==null?void 0:B.slice(1)}}),b.shift()}else return _.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");_.isDownloading=!1;const g=r.addPrompt(b);g.result?(t.info(`下载文件含 ${b.length} 条数据`),t.success(`成功导入 ${(M=g.data)==null?void 0:M.successCount} 条有效数据`)):t.error(g.msg||"提示词格式有误")};return(_,b)=>(me(),Ae(De,null,[X(U(zt),{class:"w-11/12 xl:w-[900px]",show:U(o),"onUpdate:show":b[3]||(b[3]=g=>xn(o)?o.value=g:null),preset:"card",title:"提示词库"},{default:J(()=>[Ue("div",Ap,[X(U(kt),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:U(l),"onUpdate:value":b[0]||(b[0]=g=>xn(l)?l.value=g:null),clearable:!0},null,8,["value"]),X(U(be),{secondary:"",type:"info",onClick:b[1]||(b[1]=g=>d.value=!0)},{default:J(()=>[he("下载")]),_:1}),X(U(be),{secondary:"",type:"info",onClick:h},{default:J(()=>[he("添加")]),_:1}),X(U(up),{class:"w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:C},{default:J(()=>[X(U(be),{secondary:"",type:"success",loading:c.value},{default:J(()=>[he("导入")]),_:1},8,["loading"])]),_:1}),X(U(be),{secondary:"",type:"success",onClick:m,loading:f.value},{default:J(()=>[he("导出")]),_:1},8,["loading"]),X(U(be),{secondary:"",type:"error",onClick:w},{default:J(()=>[he("清空")]),_:1})]),U(s).length>0?(me(),je(U(ki),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Ep,keeps:10},null,8,["data-sources"])):(me(),je(U(ei),{key:1,class:"h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:J(()=>[X(U(be),{secondary:"",type:"info",onClick:b[2]||(b[2]=g=>d.value=!0)},{default:J(()=>[he("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),X(U(zt),{class:"w-11/12 xl:w-[600px]",show:U(a).isShow,"onUpdate:show":b[6]||(b[6]=g=>U(a).isShow=g),preset:"card",title:U(a).title},{default:J(()=>[X(U(lh),{vertical:""},{default:J(()=>[he(" 标题 "),X(U(kt),{placeholder:"请输入标题",value:U(a).newPrompt.act,"onUpdate:value":b[4]||(b[4]=g=>U(a).newPrompt.act=g)},null,8,["value"]),he(" 描述 "),X(U(kt),{placeholder:"请输入描述",type:"textarea",value:U(a).newPrompt.prompt,"onUpdate:value":b[5]||(b[5]=g=>U(a).newPrompt.prompt=g)},null,8,["value"]),X(U(be),{block:"",secondary:"",type:"info",onClick:p},{default:J(()=>[he("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),X(U(zt),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":b[7]||(b[7]=g=>d.value=g),preset:"card",title:"下载提示词"},{default:J(()=>[X(U(Rh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:J(()=>[(me(!0),Ae(De,null,yl(U(n),(g,M)=>(me(),je(U(_h),{key:M},{suffix:J(()=>[Ue("div",Fp,[g.type===1?(me(),Ae("a",{key:0,class:"no-underline",href:g.refer,target:"_blank",rel:"noopener noreferrer"},[X(U(be),{secondary:""},{default:J(()=>[he("来源")]),_:1})],8,Np)):Xt("",!0),X(U(be),{secondary:"",type:"info",onClick:k=>z(g),loading:g.isDownloading},{default:J(()=>[he("下载")]),_:2},1032,["onClick","loading"])])]),default:J(()=>[g.type===1?(me(),Ae("a",{key:0,class:"no-underline text-blue-500",href:g.url,target:"_blank",rel:"noopener noreferrer"},at(g.name),9,Dp)):g.type===2?(me(),je(U(kt),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:g.url,"onUpdate:value":k=>g.url=k},null,8,["value","onUpdate:value"])):Xt("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),jp=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r @@ -1157,4 +1157,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .scroller .side-panel {\r position: fixed;\r right: 10px;\r -}`,Wp=K({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=Lt(),{selectedPromptIndex:r,isShowChatPrompt:n,keyword:o}=Mt(t),i=l=>{l&&(o.value="",CIB.vm.actionBar.inputText=l.prompt,CIB.vm.actionBar.input.focus(),n.value=!1)};return(l,s)=>(me(),je(U(mi),{class:Vr(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===U(r)}]),onClick:s[0]||(s[0]=a=>i(l.source))},{description:J(()=>[X(U(oi),{type:"info"},{default:J(()=>[he(at(l.source.act),1)]),_:1})]),default:J(()=>[X(U(li),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(at(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),nn=e=>(wl("data-v-aff729bc"),e=e(),xl(),e),Up=nn(()=>Ue("div",{class:"bounce1"},null,-1)),Vp=nn(()=>Ue("div",{class:"bounce2"},null,-1)),Kp=nn(()=>Ue("div",{class:"bounce3"},null,-1)),qp=[Up,Vp,Kp],Gp=K({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){const t=E(!1),r=E();return We(()=>{r.value&&r.value.addEventListener("transitionend",()=>{t.value=!0})}),(n,o)=>t.value?Xt("",!0):(me(),Ae("div",{key:0,ref_key:"loadingRef",ref:r,class:Vr(["loading-spinner",{hidden:!n.isShow}])},qp,2))}});const Xp=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Yp=Xp(Gp,[["__scopeId","data-v-aff729bc"]]),Zp=Ue("div",{class:"w-0 md:w-[60px]"},null,-1),Jp=10,Qp="_U",ev="BingAI_Rand_IP",tv=130,rv=K({__name:"ChatPrompt",setup(e){const t=E(!0),r=Lt(),{isShowPromptSotre:n,isShowChatPrompt:o,keyword:i,promptList:l,searchPromptList:s,selectedPromptIndex:a}=Mt(r),d=E(),c=E(!1),f=E(!1),h=F(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);We(async()=>{await p(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),t.value=!1,y(),w(),z()});const p=async()=>new Promise((R,O)=>{sj_evt.bind("sydFSC.init",R,!0),sj_evt.fire("showSydFSC")}),y=()=>{ct.get(Qp)||(CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,m())},C=()=>{const R=new Date;return R.setMinutes(R.getMinutes()+CIB.config.sydney.expiryInMinutes),R},m=async(R=0)=>{var I;if(R>=Jp){console.log(`已重试 ${R} 次,自动创建停止`);return}const O=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((I=O==null?void 0:O.result)==null?void 0:I.value)==="Success"?(console.log("成功创建会话ID : ",O.conversationId),CIB.manager.conversation.updateId(O.conversationId,C(),O.clientId,O.conversationSignature)):(await mp(300),R+=1,console.log(`开始第 ${R} 次重试创建会话ID`),ct.set(ev,"",-1),m(R))},w=()=>{var x,S,N,D,q,Q,ae,pe;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(ve=>ve!==location.hostname));const R=document.querySelector("cib-serp");R==null||R.setAttribute("alignment","center");const O=(x=R==null?void 0:R.shadowRoot)==null?void 0:x.querySelector("cib-conversation");(q=(D=(N=(S=O==null?void 0:O.shadowRoot)==null?void 0:S.querySelector("cib-welcome-container"))==null?void 0:N.shadowRoot)==null?void 0:D.querySelector(".learn-tog-item"))==null||q.remove(),(ae=(Q=R==null?void 0:R.shadowRoot)==null?void 0:Q.querySelector("cib-serp-feedback"))==null||ae.remove();const I=document.createElement("style");I.innerText=jp,(pe=O.shadowRoot)==null||pe.append(I)},z=()=>{var I,x;const R=(x=(I=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:I.shadowRoot)==null?void 0:x.querySelector("#cib-action-bar-main"),O=R.handleInputTextKey;R.handleInputTextKey=function(S){if(!(S.key==="Enter"&&o.value))return O.apply(this,[S])},CIB.vm.actionBar.input.addEventListener("compositionstart",_),CIB.vm.actionBar.input.addEventListener("compositionend",b),CIB.vm.actionBar.input.addEventListener("change",g),CIB.vm.actionBar.input.addEventListener("input",g),CIB.vm.actionBar.input.addEventListener("keydown",A),CIB.vm.actionBar.input.addEventListener("focus",M),CIB.vm.actionBar.input.addEventListener("blur",k)},_=R=>{c.value=!0},b=R=>{c.value=!1,g(R)},g=R=>{var O;c.value||(R instanceof InputEvent||R instanceof CompositionEvent)&&R.target instanceof HTMLTextAreaElement&&((O=R.target.value)!=null&&O.startsWith("/")?(o.value=!0,i.value=R.target.value.slice(1),a.value=0):(i.value="",o.value=!1))},M=R=>{},k=R=>{setTimeout(()=>{o.value=!1},200)},A=R=>{switch(R.key){case"ArrowUp":a.value>0&&(a.value--,d.value&&d.value.scrollToIndex(a.value));break;case"ArrowDown":a.value{R&&(i.value="",CIB.vm.actionBar.inputText=R.prompt,o.value=!1)},B=()=>{f.value=!0,setTimeout(()=>{var R;if(f.value===!0){f.value=!1;const O=((R=d.value)==null?void 0:R.getOffset())||0;a.value=Math.round(O/tv)}},100)};return(R,O)=>(me(),Ae(De,null,[X(Yp,{"is-show":t.value},null,8,["is-show"]),Ue("main",null,[U(o)?(me(),Ae("div",{key:0,class:Vr(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":h.value,"xl:px-[220px]":h.value}])},[Zp,U(l).length>0?(me(),je(U(ki),{key:0,ref_key:"scrollbarRef",ref:d,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Wp,keeps:10,onScroll:B},null,8,["data-sources"])):(me(),je(U(ei),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:J(()=>[X(U(be),{secondary:"",type:"info",onClick:O[0]||(O[0]=I=>n.value=!0)},{default:J(()=>[he("去提示词库添加")]),_:1})]),_:1}))],2)):Xt("",!0)])],64))}}),ov=K({__name:"index",setup(e){return(t,r)=>(me(),Ae("main",null,[X(xp),X(Hp),X(rv)]))}});export{ov as default}; +}`,Wp=K({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=Lt(),{selectedPromptIndex:r,isShowChatPrompt:n,keyword:o}=Mt(t),i=l=>{l&&(o.value="",CIB.vm.actionBar.inputText=l.prompt,CIB.vm.actionBar.input.focus(),n.value=!1)};return(l,s)=>(me(),je(U(mi),{class:Vr(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===U(r)}]),onClick:s[0]||(s[0]=a=>i(l.source))},{description:J(()=>[X(U(oi),{type:"info"},{default:J(()=>[he(at(l.source.act),1)]),_:1})]),default:J(()=>[X(U(li),{tooltip:!1,"line-clamp":2},{default:J(()=>[he(at(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),nn=e=>(wl("data-v-aff729bc"),e=e(),xl(),e),Up=nn(()=>Ue("div",{class:"bounce1"},null,-1)),Vp=nn(()=>Ue("div",{class:"bounce2"},null,-1)),Kp=nn(()=>Ue("div",{class:"bounce3"},null,-1)),qp=[Up,Vp,Kp],Gp=K({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){const t=E(!1),r=E();return We(()=>{r.value&&r.value.addEventListener("transitionend",()=>{t.value=!0})}),(n,o)=>t.value?Xt("",!0):(me(),Ae("div",{key:0,ref_key:"loadingRef",ref:r,class:Vr(["loading-spinner",{hidden:!n.isShow}])},qp,2))}});const Xp=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Yp=Xp(Gp,[["__scopeId","data-v-aff729bc"]]),Zp=Ue("div",{class:"w-0 md:w-[60px]"},null,-1),Jp=10,Qp="_U",ev="BingAI_Rand_IP",tv=130,rv=K({__name:"ChatPrompt",setup(e){const t=E(!0),r=Lt(),{isShowPromptSotre:n,isShowChatPrompt:o,keyword:i,promptList:l,searchPromptList:s,selectedPromptIndex:a}=Mt(r),d=E(),c=E(!1),f=E(!1),h=F(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);We(async()=>{await p(),y(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),t.value=!1,w(),z()});const p=async()=>new Promise((R,O)=>{sj_evt.bind("sydFSC.init",R,!0),sj_evt.fire("showSydFSC")}),y=()=>{ct.get(Qp)||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1,m())},C=()=>{const R=new Date;return R.setMinutes(R.getMinutes()+CIB.config.sydney.expiryInMinutes),R},m=async(R=0)=>{var I;if(R>=Jp){console.log(`已重试 ${R} 次,自动创建停止`);return}const O=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((I=O==null?void 0:O.result)==null?void 0:I.value)==="Success"?(console.log("成功创建会话ID : ",O.conversationId),CIB.manager.conversation.updateId(O.conversationId,C(),O.clientId,O.conversationSignature)):(await mp(300),R+=1,console.log(`开始第 ${R} 次重试创建会话ID`),ct.set(ev,"",-1),m(R))},w=()=>{var x,S,N,D,q,Q,ae,pe;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(ve=>ve!==location.hostname));const R=document.querySelector("cib-serp");R==null||R.setAttribute("alignment","center");const O=(x=R==null?void 0:R.shadowRoot)==null?void 0:x.querySelector("cib-conversation");(q=(D=(N=(S=O==null?void 0:O.shadowRoot)==null?void 0:S.querySelector("cib-welcome-container"))==null?void 0:N.shadowRoot)==null?void 0:D.querySelector(".learn-tog-item"))==null||q.remove(),(ae=(Q=R==null?void 0:R.shadowRoot)==null?void 0:Q.querySelector("cib-serp-feedback"))==null||ae.remove();const I=document.createElement("style");I.innerText=jp,(pe=O.shadowRoot)==null||pe.append(I)},z=()=>{var I,x;const R=(x=(I=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:I.shadowRoot)==null?void 0:x.querySelector("#cib-action-bar-main"),O=R.handleInputTextKey;R.handleInputTextKey=function(S){if(!(S.key==="Enter"&&o.value))return O.apply(this,[S])},CIB.vm.actionBar.input.addEventListener("compositionstart",_),CIB.vm.actionBar.input.addEventListener("compositionend",b),CIB.vm.actionBar.input.addEventListener("change",g),CIB.vm.actionBar.input.addEventListener("input",g),CIB.vm.actionBar.input.addEventListener("keydown",A),CIB.vm.actionBar.input.addEventListener("focus",M),CIB.vm.actionBar.input.addEventListener("blur",k)},_=R=>{c.value=!0},b=R=>{c.value=!1,g(R)},g=R=>{var O;c.value||(R instanceof InputEvent||R instanceof CompositionEvent)&&R.target instanceof HTMLTextAreaElement&&((O=R.target.value)!=null&&O.startsWith("/")?(o.value=!0,i.value=R.target.value.slice(1),a.value=0):(i.value="",o.value=!1))},M=R=>{},k=R=>{setTimeout(()=>{o.value=!1},200)},A=R=>{switch(R.key){case"ArrowUp":a.value>0&&(a.value--,d.value&&d.value.scrollToIndex(a.value));break;case"ArrowDown":a.value{R&&(i.value="",CIB.vm.actionBar.inputText=R.prompt,o.value=!1)},B=()=>{f.value=!0,setTimeout(()=>{var R;if(f.value===!0){f.value=!1;const O=((R=d.value)==null?void 0:R.getOffset())||0;a.value=Math.round(O/tv)}},100)};return(R,O)=>(me(),Ae(De,null,[X(Yp,{"is-show":t.value},null,8,["is-show"]),Ue("main",null,[U(o)?(me(),Ae("div",{key:0,class:Vr(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":h.value,"xl:px-[220px]":h.value}])},[Zp,U(l).length>0?(me(),je(U(ki),{key:0,ref_key:"scrollbarRef",ref:d,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":U(s),"data-component":Wp,keeps:10,onScroll:B},null,8,["data-sources"])):(me(),je(U(ei),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:J(()=>[X(U(be),{secondary:"",type:"info",onClick:O[0]||(O[0]=I=>n.value=!0)},{default:J(()=>[he("去提示词库添加")]),_:1})]),_:1}))],2)):Xt("",!0)])],64))}}),ov=K({__name:"index",setup(e){return(t,r)=>(me(),Ae("main",null,[X(xp),X(Hp),X(rv)]))}});export{ov as default}; diff --git a/web/index.html b/web/index.html index 5920cfa5c4..98df52879f 100644 --- a/web/index.html +++ b/web/index.html @@ -37,8 +37,8 @@ - - + + diff --git a/web/sw.js b/web/sw.js index 87dbd06518..a41bb0d7e2 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,c)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(s[a])return;let r={};const o=e=>i(e,a),f={module:{uri:a},exports:r,require:o};s[a]=Promise.all(n.map((e=>f[e]||o(e)))).then((e=>(c(...e),r)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-0b2cc67d.js",revision:null},{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-3b84657c.css",revision:null},{url:"assets/index-cb246388.js",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"2c3f93033c3f4cef8136ff5a993a087b"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"f2e19567ff3345db676dde8836dbd728"},{url:"js/bing/chat/amd.js",revision:"8d773dc8f2e78b9d29e990aed7821774"},{url:"js/bing/chat/config.js",revision:"3bd7b84479a1f1dcc850abdd4d383a3c"},{url:"js/bing/chat/core.js",revision:"8c11521fd9f049b6ac91e5ad415c2db1"},{url:"js/bing/chat/global.js",revision:"43fd640c3a3021437b9b2955e8f2d1ad"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,a)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let r={};const o=e=>i(e,c),d={module:{uri:c},exports:r,require:o};s[c]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(a(...e),r)))}}define(["./workbox-118fddf1"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-0e8bf8a6.css",revision:null},{url:"assets/index-6982f66e.js",revision:null},{url:"assets/index-9d6f4de0.css",revision:null},{url:"assets/index-d9a4ae7e.js",revision:null},{url:"assets/setting-c6ca7b14.svg",revision:null},{url:"compose.html",revision:"2c3f93033c3f4cef8136ff5a993a087b"},{url:"favicon.ico",revision:"1272c70e1b86b8956598a0349d2f193c"},{url:"img/compose.svg",revision:"4242b76bb8f4da0baf7a75edab0c6754"},{url:"img/logo.svg",revision:"1da58864f14c1a8c28f8587d6dcbc5d0"},{url:"img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"index.html",revision:"d6935acee73a321a65682b2d82148d21"},{url:"js/bing/chat/amd.js",revision:"8d773dc8f2e78b9d29e990aed7821774"},{url:"js/bing/chat/config.js",revision:"3bd7b84479a1f1dcc850abdd4d383a3c"},{url:"js/bing/chat/core.js",revision:"8c11521fd9f049b6ac91e5ad415c2db1"},{url:"js/bing/chat/global.js",revision:"43fd640c3a3021437b9b2955e8f2d1ad"},{url:"js/bing/chat/lib.js",revision:"1a0f8f43cc025b7b5995e885fed1a3e6"},{url:"registerSW.js",revision:"bf6c2f29aef95e09b1f72cf59f427a55"},{url:"./img/pwa/logo-192.png",revision:"be40443731d9d4ead5e9b1f1a6070135"},{url:"./img/pwa/logo-512.png",revision:"1217f1c90acb9f231e3135fa44af7efc"},{url:"manifest.webmanifest",revision:"ae4ef030ae5d2d4894669fd82aac028d"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps|ico)/,new e.CacheFirst({cacheName:"image-cache",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")}));