diff --git a/assets/index-4-M5B1rm.css b/assets/index-4-M5B1rm.css new file mode 100644 index 0000000..535258c --- /dev/null +++ b/assets/index-4-M5B1rm.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.loader[data-v-b5765931]{width:60px;aspect-ratio:2;--_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);background:var(--_g) 0% 50%,var(--_g) 50% 50%,var(--_g) 100% 50%;background-size:calc(100% / 3) 50%;animation:l3-b5765931 1s infinite linear}@keyframes l3-b5765931{20%{background-position:0% 0%,50% 50%,100% 50%}40%{background-position:0% 100%,50% 0%,100% 50%}60%{background-position:0% 50%,50% 100%,100% 0%}80%{background-position:0% 50%,50% 50%,100% 100%}}em{background-color:rgb(var(--text-highlight-color))}.scrollbar-gutter-stable{scrollbar-gutter:stable both-edges}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,: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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.left-1\/2{left:50%}.top-0{top:0}.top-1\/2{top:50%}.z-0{z-index:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-3{height:.75rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.h-screen{height:100vh}.w-20{width:5rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-7xl{max-width:80rem}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;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))}.translate-x-0{--tw-translate-x: 0px;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))}.scale-50{--tw-scale-x: .5;--tw-scale-y: .5;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))}.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}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-base-border{--tw-border-opacity: 1;border-color:rgba(var(--base-border-color),var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-color{--tw-border-opacity: 1;border-color:rgba(var(--primary-color),var(--tw-border-opacity))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity))}.bg-primary-color{--tw-bg-opacity: 1;background-color:rgba(var(--primary-color),var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.bg-opacity-100{--tw-bg-opacity: 1}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#4679a4\]{--tw-gradient-from: #4679a4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(70 121 164 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-primary-color{--tw-gradient-to: rgb(var(--primary-color)) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.font-main{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-\[\#ffc081\]{--tw-text-opacity: 1;color:rgb(255 192 129 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-primary-color{--tw-text-opacity: 1;color:rgba(var(--primary-color),var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity: 1;color:rgba(var(--primary-text-color),var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:border-gray-400:disabled{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.disabled\:bg-gray-300:disabled{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:relative{position:relative}.sm\:hidden{display:none}.sm\:w-96{width:24rem}}:root{--base-background-color: 255, 255, 255;--base-border-color: 156, 163, 175;--btn-disabled-color: 148, 163, 184;--primary-color: 61, 144, 200;--primary-text-color: 255, 255, 255;--secondary-color: 246, 237, 226;--text-color: 33, 53, 71;--text-highlight-color: 241, 228, 215;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-height:100vh;color:--text-color}#app{width:100%;height:100vh} diff --git a/assets/index-95mgP9ML.js b/assets/index-95mgP9ML.js new file mode 100644 index 0000000..9d4ba1a --- /dev/null +++ b/assets/index-95mgP9ML.js @@ -0,0 +1,18 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Gn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const K={},ct=[],me=()=>{},To=()=>!1,sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jn=e=>e.startsWith("onUpdate:"),se=Object.assign,Yn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,k=(e,t)=>Io.call(e,t),S=Array.isArray,ut=e=>Mt(e)==="[object Map]",rn=e=>Mt(e)==="[object Set]",ws=e=>Mt(e)==="[object Date]",M=e=>typeof e=="function",J=e=>typeof e=="string",Ue=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",sr=e=>(W(e)||M(e))&&M(e.then)&&M(e.catch),rr=Object.prototype.toString,Mt=e=>rr.call(e),$o=e=>Mt(e).slice(8,-1),or=e=>Mt(e)==="[object Object]",Qn=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dt=Gn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),on=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},So=/-(\w)/g,ve=on(e=>e.replace(So,(t,n)=>n?n.toUpperCase():"")),Oo=/\B([A-Z])/g,Ke=on(e=>e.replace(Oo,"-$1").toLowerCase()),ln=on(e=>e.charAt(0).toUpperCase()+e.slice(1)),$n=on(e=>e?`on${ln(e)}`:""),Oe=(e,t)=>!Object.is(e,t),zt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Cs;const ir=()=>Cs||(Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pe(e){if(S(e)){const t={};for(let n=0;n{if(n){const s=n.split(Mo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function cn(e){let t="";if(J(e))t=e;else if(S(e))for(let n=0;nun(n,t))}const Tt=e=>J(e)?e:e==null?"":S(e)||W(e)&&(e.toString===rr||!M(e.toString))?JSON.stringify(e,ur,2):String(e),ur=(e,t)=>t&&t.__v_isRef?ur(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Sn(s,o)+" =>"]=r,n),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Sn(n))}:Ue(t)?Sn(t):W(t)&&!S(t)&&!or(t)?String(t):t,Sn=(e,t="")=>{var n;return Ue(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let he;class Ho{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=he;try{return he=this,t()}finally{he=n}}}on(){he=this}off(){he=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),rt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ne,n=Ze;try{return Ne=!0,Ze=this,this._runnings++,Es(this),this.fn()}finally{Ts(this),this._runnings--,Ze=n,Ne=t}}stop(){var t;this.active&&(Es(this),Ts(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Uo(e){return e.value}function Es(e){e._trackId++,e._depsLength=0}function Ts(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Yt=new WeakMap,et=Symbol(""),Nn=Symbol("");function fe(e,t,n){if(Ne&&Ze){let s=Yt.get(e);s||Yt.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=mr(()=>s.delete(n))),hr(Ze,r)}}function Ae(e,t,n,s,r,o){const i=Yt.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&S(e)){const c=Number(s);i.forEach((a,d)=>{(d==="length"||!Ue(d)&&d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":S(e)?Qn(n)&&l.push(i.get("length")):(l.push(i.get(et)),ut(e)&&l.push(i.get(Nn)));break;case"delete":S(e)||(l.push(i.get(et)),ut(e)&&l.push(i.get(Nn)));break;case"set":ut(e)&&l.push(i.get(et));break}Zn();for(const c of l)c&&pr(c,2);es()}function Bo(e,t){var n;return(n=Yt.get(e))==null?void 0:n.get(t)}const Ko=Gn("__proto__,__v_isRef,__isVue"),_r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue)),Is=Wo();function Wo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=F(this);for(let o=0,i=this.length;o{e[t]=function(...n){st(),Zn();const s=F(this)[t].apply(this,n);return es(),rt(),s}}),e}function Do(e){const t=F(this);return fe(t,"has",e),t.hasOwnProperty(e)}class yr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ri:wr:o?xr:vr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=S(t);if(!r){if(i&&k(Is,n))return Reflect.get(Is,n,s);if(n==="hasOwnProperty")return Do}const l=Reflect.get(t,n,s);return(Ue(n)?_r.has(n):Ko(n))||(r||fe(t,"get",n),o)?l:te(l)?i&&Qn(n)?l:l.value:W(l)?r?Cr(l):an(l):l}}class br extends yr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const c=pt(o);if(!Qt(s)&&!pt(s)&&(o=F(o),s=F(s)),!S(t)&&te(o)&&!te(s))return c?!1:(o.value=s,!0)}const i=S(t)&&Qn(n)?Number(n)e,fn=e=>Reflect.getPrototypeOf(e);function Nt(e,t,n=!1,s=!1){e=e.__v_raw;const r=F(e),o=F(t);n||(Oe(t,o)&&fe(r,"get",t),fe(r,"get",o));const{has:i}=fn(r),l=s?ts:n?rs:It;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function jt(e,t=!1){const n=this.__v_raw,s=F(n),r=F(e);return t||(Oe(e,r)&&fe(s,"has",e),fe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ut(e,t=!1){return e=e.__v_raw,!t&&fe(F(e),"iterate",et),Reflect.get(e,"size",e)}function $s(e){e=F(e);const t=F(this);return fn(t).has.call(t,e)||(t.add(e),Ae(t,"add",e,e)),this}function Ss(e,t){t=F(t);const n=F(this),{has:s,get:r}=fn(n);let o=s.call(n,e);o||(e=F(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Oe(t,i)&&Ae(n,"set",e,t):Ae(n,"add",e,t),this}function Os(e){const t=F(this),{has:n,get:s}=fn(t);let r=n.call(t,e);r||(e=F(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ae(t,"delete",e,void 0),o}function Rs(){const e=F(this),t=e.size!==0,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}function Bt(e,t){return function(s,r){const o=this,i=o.__v_raw,l=F(i),c=t?ts:e?rs:It;return!e&&fe(l,"iterate",et),i.forEach((a,d)=>s.call(r,c(a),c(d),o))}}function Kt(e,t,n){return function(...s){const r=this.__v_raw,o=F(r),i=ut(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),d=n?ts:t?rs:It;return!t&&fe(o,"iterate",c?Nn:et),{next(){const{value:h,done:y}=a.next();return y?{value:h,done:y}:{value:l?[d(h[0]),d(h[1])]:d(h),done:y}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yo(){const e={get(o){return Nt(this,o)},get size(){return Ut(this)},has:jt,add:$s,set:Ss,delete:Os,clear:Rs,forEach:Bt(!1,!1)},t={get(o){return Nt(this,o,!1,!0)},get size(){return Ut(this)},has:jt,add:$s,set:Ss,delete:Os,clear:Rs,forEach:Bt(!1,!0)},n={get(o){return Nt(this,o,!0)},get size(){return Ut(this,!0)},has(o){return jt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Bt(!0,!1)},s={get(o){return Nt(this,o,!0,!0)},get size(){return Ut(this,!0)},has(o){return jt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Bt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Kt(o,!1,!1),n[o]=Kt(o,!0,!1),t[o]=Kt(o,!1,!0),s[o]=Kt(o,!0,!0)}),[e,n,t,s]}const[Qo,Xo,Zo,ei]=Yo();function ns(e,t){const n=t?e?ei:Zo:e?Xo:Qo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(k(n,r)&&r in s?n:s,r,o)}const ti={get:ns(!1,!1)},ni={get:ns(!1,!0)},si={get:ns(!0,!1)},vr=new WeakMap,xr=new WeakMap,wr=new WeakMap,ri=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ii(e){return e.__v_skip||!Object.isExtensible(e)?0:oi($o(e))}function an(e){return pt(e)?e:ss(e,!1,qo,ti,vr)}function li(e){return ss(e,!1,Jo,ni,xr)}function Cr(e){return ss(e,!0,Go,si,wr)}function ss(e,t,n,s,r){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ii(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ft(e){return pt(e)?ft(e.__v_raw):!!(e&&e.__v_isReactive)}function pt(e){return!!(e&&e.__v_isReadonly)}function Qt(e){return!!(e&&e.__v_isShallow)}function Er(e){return ft(e)||pt(e)}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function Tr(e){return Jt(e,"__v_skip",!0),e}const It=e=>W(e)?an(e):e,rs=e=>W(e)?Cr(e):e;class Ir{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xn(()=>t(this._value),()=>xt(this,1),()=>this.dep&&gr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=F(this);return(!t._cacheable||t.effect.dirty)&&Oe(t._value,t._value=t.effect.run())&&xt(t,2),os(t),t.effect._dirtyLevel>=1&&xt(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ci(e,t,n=!1){let s,r;const o=M(e);return o?(s=e,r=me):(s=e.get,r=e.set),new Ir(s,r,o||!r,n)}function os(e){Ne&&Ze&&(e=F(e),hr(Ze,e.dep||(e.dep=mr(()=>e.dep=void 0,e instanceof Ir?e:void 0))))}function xt(e,t=2,n){e=F(e);const s=e.dep;s&&pr(s,t)}function te(e){return!!(e&&e.__v_isRef===!0)}function X(e){return $r(e,!1)}function ui(e){return $r(e,!0)}function $r(e,t){return te(e)?e:new fi(e,t)}class fi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:F(t),this._value=n?t:It(t)}get value(){return os(this),this._value}set value(t){const n=this.__v_isShallow||Qt(t)||pt(t);t=n?t:F(t),Oe(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:It(t),xt(this,2))}}function re(e){return te(e)?e.value:e}const ai={get:(e,t,n)=>re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return te(r)&&!te(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Sr(e){return ft(e)?e:new Proxy(e,ai)}class di{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>os(this),()=>xt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function hi(e){return new di(e)}function pi(e){const t=S(e)?new Array(e.length):{};for(const n in e)t[n]=mi(e,n);return t}class gi{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Bo(F(this._object),this._key)}}function mi(e,t,n){const s=e[t];return te(s)?s:new gi(e,t,n)}/** +* @vue/runtime-core v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function je(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){dn(o,t,n)}return r}function be(e,t,n,s){if(M(e)){const o=je(e,t,n,s);return o&&sr(o)&&o.catch(i=>{dn(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=oe[s],o=Ot(r);oIe&&oe.splice(t,1)}function vi(e){S(e)?at.push(...e):(!ke||!ke.includes(e,e.allowRecurse?Je+1:Je))&&at.push(e),Rr()}function Ms(e,t,n=$t?Ie+1:0){for(;nOt(n)-Ot(s));if(at.length=0,ke){ke.push(...t);return}for(ke=t,Je=0;Jee.id==null?1/0:e.id,xi=(e,t)=>{const n=Ot(e)-Ot(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pr(e){jn=!1,$t=!0,oe.sort(xi);try{for(Ie=0;IeJ(E)?E.trim():E)),h&&(r=n.map(kn))}let l,c=s[l=$n(t)]||s[l=$n(ve(t))];!c&&o&&(c=s[l=$n(Ke(t))]),c&&be(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Ar(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!M(e)){const c=a=>{const d=Ar(a,t,!0);d&&(l=!0,se(i,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(W(e)&&s.set(e,null),null):(S(o)?o.forEach(c=>i[c]=null):se(i,o),W(e)&&s.set(e,i),i)}function hn(e,t){return!e||!sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,Ke(t))||k(e,t))}let Q=null,Lr=null;function Xt(e){const t=Q;return Q=e,Lr=e&&e.type.__scopeId||null,t}function cs(e,t=Q,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Bs(-1);const o=Xt(t);let i;try{i=e(...r)}finally{Xt(o),s._d&&Bs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function On(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:c,emit:a,render:d,renderCache:h,data:y,setupState:E,ctx:P,inheritAttrs:A}=e;let N,q;const ce=Xt(e);try{if(n.shapeFlag&4){const Z=r||s,ge=Z;N=Te(d.call(ge,Z,h,o,E,y,P)),q=c}else{const Z=t;N=Te(Z.length>1?Z(o,{attrs:c,slots:l,emit:a}):Z(o,null)),q=t.props?c:Ci(c)}}catch(Z){Et.length=0,dn(Z,e,1),N=z(Be)}let U=N;if(q&&A!==!1){const Z=Object.keys(q),{shapeFlag:ge}=U;Z.length&&ge&7&&(i&&Z.some(Jn)&&(q=Ei(q,i)),U=gt(U,q))}return n.dirs&&(U=gt(U),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),N=U,Xt(ce),N}const Ci=e=>{let t;for(const n in e)(n==="class"||n==="style"||sn(n))&&((t||(t={}))[n]=e[n]);return t},Ei=(e,t)=>{const n={};for(const s in e)(!Jn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ti(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ps(s,i,a):!!i;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Oi(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):vi(e)}const Ri=Symbol.for("v-scx"),Mi=()=>qt(Ri);function Pi(e,t){return pn(e,null,t)}function Ai(e,t){return pn(e,null,{flush:"sync"})}const Wt={};function $e(e,t,n){return pn(e,t,n)}function pn(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=K){if(t&&o){const H=t;t=(...Re)=>{H(...Re),ge()}}const c=ne,a=H=>s===!0?H:Qe(H,s===!1?1:void 0);let d,h=!1,y=!1;if(te(e)?(d=()=>e.value,h=Qt(e)):ft(e)?(d=()=>a(e),h=!0):S(e)?(y=!0,h=e.some(H=>ft(H)||Qt(H)),d=()=>e.map(H=>{if(te(H))return H.value;if(ft(H))return a(H);if(M(H))return je(H,c,2)})):M(e)?t?d=()=>je(e,c,2):d=()=>(E&&E(),be(e,c,3,[P])):d=me,t&&s){const H=d;d=()=>Qe(H())}let E,P=H=>{E=U.onStop=()=>{je(H,c,4),E=U.onStop=void 0}},A;if(bn)if(P=me,t?n&&be(t,c,3,[d(),y?[]:void 0,P]):d(),r==="sync"){const H=Mi();A=H.__watcherHandles||(H.__watcherHandles=[])}else return me;let N=y?new Array(e.length).fill(Wt):Wt;const q=()=>{if(!(!U.active||!U.dirty))if(t){const H=U.run();(s||h||(y?H.some((Re,xe)=>Oe(Re,N[xe])):Oe(H,N)))&&(E&&E(),be(t,c,3,[H,N===Wt?void 0:y&&N[0]===Wt?[]:N,P]),N=H)}else U.run()};q.allowRecurse=!!t;let ce;r==="sync"?ce=q:r==="post"?ce=()=>ue(q,c&&c.suspense):(q.pre=!0,c&&(q.id=c.uid),ce=()=>ls(q));const U=new Xn(d,me,ce),Z=fr(),ge=()=>{U.stop(),Z&&Yn(Z.effects,U)};return t?n?q():N=U.run():r==="post"?ue(U.run.bind(U),c&&c.suspense):U.run(),A&&A.push(ge),ge}function Li(e,t,n){const s=this.proxy,r=J(e)?e.includes(".")?Hr(s,e):()=>s[e]:e.bind(s,s);let o;M(t)?o=t:(o=t.handler,n=t);const i=At(this),l=pn(r,o.bind(s),n);return i(),l}function Hr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),te(e))Qe(e.value,t,n,s);else if(S(e))for(let r=0;r{Qe(r,t,n,s)});else if(or(e))for(const r in e)Qe(e[r],t,n,s);return e}function dt(e,t){if(Q===null)return e;const n=vn(Q)||Q.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Nr=e=>e.type.__isKeepAlive;function Vi(e,t){jr(e,"a",t)}function ki(e,t){jr(e,"da",t)}function jr(e,t,n=ne){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(gn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Nr(r.parent.vnode)&&Fi(s,t,n,r),r=r.parent}}function Fi(e,t,n,s){const r=gn(t,e,s,!0);Kr(()=>{Yn(s[t],r)},n)}function gn(e,t,n=ne,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;st();const l=At(n),c=be(t,n,e,i);return l(),rt(),c});return s?r.unshift(o):r.push(o),o}}const Le=e=>(t,n=ne)=>(!bn||e==="sp")&&gn(e,(...s)=>t(...s),n),Ur=Le("bm"),mn=Le("m"),Hi=Le("bu"),Ni=Le("u"),Br=Le("bum"),Kr=Le("um"),ji=Le("sp"),Ui=Le("rtg"),Bi=Le("rtc");function Ki(e,t=ne){gn("ec",e,t)}function Pt(e,t,n,s){let r;const o=n&&n[s];if(S(e)||J(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;lto(t)?!(t.type===Be||t.type===Y&&!Wr(t.children)):!0)?e:null}const Un=e=>e?oo(e)?vn(e)||e.proxy:Un(e.parent):null,Ct=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ls(e.update)}),$nextTick:e=>e.n||(e.n=St.bind(e.proxy)),$watch:e=>Li.bind(e)}),Rn=(e,t)=>e!==K&&!e.__isScriptSetup&&k(e,t),Di={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const E=i[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(r!==K&&k(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&k(a,t))return i[t]=3,o[t];if(n!==K&&k(n,t))return i[t]=4,n[t];Bn&&(i[t]=0)}}const d=Ct[t];let h,y;if(d)return t==="$attrs"&&fe(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==K&&k(n,t))return i[t]=4,n[t];if(y=c.config.globalProperties,k(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Rn(r,t)?(r[t]=n,!0):s!==K&&k(s,t)?(s[t]=n,!0):k(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==K&&k(e,i)||Rn(t,i)||(l=o[0])&&k(l,i)||k(s,i)||k(Ct,i)||k(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return S(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Bn=!0;function zi(e){const t=us(e),n=e.proxy,s=e.ctx;Bn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:a,created:d,beforeMount:h,mounted:y,beforeUpdate:E,updated:P,activated:A,deactivated:N,beforeDestroy:q,beforeUnmount:ce,destroyed:U,unmounted:Z,render:ge,renderTracked:H,renderTriggered:Re,errorCaptured:xe,serverPrefetch:wn,expose:We,inheritAttrs:_t,components:Vt,directives:kt,filters:Cn}=t;if(a&&qi(a,s,null),i)for(const G in i){const B=i[G];M(B)&&(s[G]=B.bind(n))}if(r){const G=r.call(n,n);W(G)&&(e.data=an(G))}if(Bn=!0,o)for(const G in o){const B=o[G],De=M(B)?B.bind(n,n):M(B.get)?B.get.bind(n,n):me,Ft=!M(B)&&M(B.set)?B.set.bind(n):me,ze=ae({get:De,set:Ft});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>ze.value,set:we=>ze.value=we})}if(l)for(const G in l)Dr(l[G],s,n,G);if(c){const G=M(c)?c.call(n):c;Reflect.ownKeys(G).forEach(B=>{Zi(B,G[B])})}d&&Vs(d,e,"c");function ie(G,B){S(B)?B.forEach(De=>G(De.bind(n))):B&&G(B.bind(n))}if(ie(Ur,h),ie(mn,y),ie(Hi,E),ie(Ni,P),ie(Vi,A),ie(ki,N),ie(Ki,xe),ie(Bi,H),ie(Ui,Re),ie(Br,ce),ie(Kr,Z),ie(ji,wn),S(We))if(We.length){const G=e.exposed||(e.exposed={});We.forEach(B=>{Object.defineProperty(G,B,{get:()=>n[B],set:De=>n[B]=De})})}else e.exposed||(e.exposed={});ge&&e.render===me&&(e.render=ge),_t!=null&&(e.inheritAttrs=_t),Vt&&(e.components=Vt),kt&&(e.directives=kt)}function qi(e,t,n=me){S(e)&&(e=Kn(e));for(const s in e){const r=e[s];let o;W(r)?"default"in r?o=qt(r.from||s,r.default,!0):o=qt(r.from||s):o=qt(r),te(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Vs(e,t,n){be(S(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dr(e,t,n,s){const r=s.includes(".")?Hr(n,s):()=>n[s];if(J(e)){const o=t[e];M(o)&&$e(r,o)}else if(M(e))$e(r,e.bind(n));else if(W(e))if(S(e))e.forEach(o=>Dr(o,t,n,s));else{const o=M(e.handler)?e.handler.bind(n):t[e.handler];M(o)&&$e(r,o,e)}}function us(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Zt(c,a,i,!0)),Zt(c,t,i)),W(t)&&o.set(t,c),c}function Zt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Zt(e,o,n,!0),r&&r.forEach(i=>Zt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Gi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Gi={data:ks,props:Fs,emits:Fs,methods:vt,computed:vt,beforeCreate:le,created:le,beforeMount:le,mounted:le,beforeUpdate:le,updated:le,beforeDestroy:le,beforeUnmount:le,destroyed:le,unmounted:le,activated:le,deactivated:le,errorCaptured:le,serverPrefetch:le,components:vt,directives:vt,watch:Yi,provide:ks,inject:Ji};function ks(e,t){return t?e?function(){return se(M(e)?e.call(this,this):e,M(t)?t.call(this,this):t)}:t:e}function Ji(e,t){return vt(Kn(e),Kn(t))}function Kn(e){if(S(e)){const t={};for(let n=0;n1)return n&&M(t)?t.call(s&&s.proxy):t}}function el(e,t,n,s=!1){const r={},o={};Jt(o,yn,1),e.propsDefaults=Object.create(null),qr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:li(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function tl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=F(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[y,E]=Gr(h,t,!0);se(i,y),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return W(e)&&s.set(e,ct),ct;if(S(o))for(let d=0;d-1,E[1]=A<0||P-1||k(E,"default"))&&l.push(h)}}}const a=[i,l];return W(e)&&s.set(e,a),a}function Hs(e){return e[0]!=="$"}function Ns(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function js(e,t){return Ns(e)===Ns(t)}function Us(e,t){return S(t)?t.findIndex(n=>js(n,e)):M(t)&&js(t,e)?0:-1}const Jr=e=>e[0]==="_"||e==="$stable",fs=e=>S(e)?e.map(Te):[Te(e)],nl=(e,t,n)=>{if(t._n)return t;const s=cs((...r)=>fs(t(...r)),n);return s._c=!1,s},Yr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Jr(r))continue;const o=e[r];if(M(o))t[r]=nl(r,o,s);else if(o!=null){const i=fs(o);t[r]=()=>i}}},Qr=(e,t)=>{const n=fs(t);e.slots.default=()=>n},sl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=F(t),Jt(t,"_",n)):Yr(t,e.slots={})}else e.slots={},t&&Qr(e,t);Jt(e.slots,yn,1)},rl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=K;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(se(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Yr(t,r)),i=t}else t&&(Qr(e,t),i={default:1});if(o)for(const l in r)!Jr(l)&&i[l]==null&&delete r[l]};function Dn(e,t,n,s,r=!1){if(S(e)){e.forEach((y,E)=>Dn(y,t&&(S(t)?t[E]:t),n,s,r));return}if(wt(s)&&!r)return;const o=s.shapeFlag&4?vn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,a=t&&t.r,d=l.refs===K?l.refs={}:l.refs,h=l.setupState;if(a!=null&&a!==c&&(J(a)?(d[a]=null,k(h,a)&&(h[a]=null)):te(a)&&(a.value=null)),M(c))je(c,l,12,[i,d]);else{const y=J(c),E=te(c),P=e.f;if(y||E){const A=()=>{if(P){const N=y?k(h,c)?h[c]:d[c]:c.value;r?S(N)&&Yn(N,o):S(N)?N.includes(o)||N.push(o):y?(d[c]=[o],k(h,c)&&(h[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else y?(d[c]=i,k(h,c)&&(h[c]=i)):E&&(c.value=i,e.k&&(d[e.k]=i))};r||P?A():(A.id=-1,ue(A,n))}}}const ue=Oi;function ol(e){return il(e)}function il(e,t){const n=ir();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:d,parentNode:h,nextSibling:y,setScopeId:E=me,insertStaticContent:P}=e,A=(u,f,p,g=null,m=null,v=null,w=void 0,b=null,x=!!f.dynamicChildren)=>{if(u===f)return;u&&!bt(u,f)&&(g=Ht(u),we(u,m,v,!0),u=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:_,ref:C,shapeFlag:$}=f;switch(_){case _n:N(u,f,p,g);break;case Be:q(u,f,p,g);break;case Pn:u==null&&ce(f,p,g,w);break;case Y:Vt(u,f,p,g,m,v,w,b,x);break;default:$&1?ge(u,f,p,g,m,v,w,b,x):$&6?kt(u,f,p,g,m,v,w,b,x):($&64||$&128)&&_.process(u,f,p,g,m,v,w,b,x,it)}C!=null&&m&&Dn(C,u&&u.ref,v,f||u,!f)},N=(u,f,p,g)=>{if(u==null)s(f.el=l(f.children),p,g);else{const m=f.el=u.el;f.children!==u.children&&a(m,f.children)}},q=(u,f,p,g)=>{u==null?s(f.el=c(f.children||""),p,g):f.el=u.el},ce=(u,f,p,g)=>{[u.el,u.anchor]=P(u.children,f,p,g,u.el,u.anchor)},U=({el:u,anchor:f},p,g)=>{let m;for(;u&&u!==f;)m=y(u),s(u,p,g),u=m;s(f,p,g)},Z=({el:u,anchor:f})=>{let p;for(;u&&u!==f;)p=y(u),r(u),u=p;r(f)},ge=(u,f,p,g,m,v,w,b,x)=>{f.type==="svg"?w="svg":f.type==="math"&&(w="mathml"),u==null?H(f,p,g,m,v,w,b,x):wn(u,f,m,v,w,b,x)},H=(u,f,p,g,m,v,w,b)=>{let x,_;const{props:C,shapeFlag:$,transition:I,dirs:R}=u;if(x=u.el=i(u.type,v,C&&C.is,C),$&8?d(x,u.children):$&16&&xe(u.children,x,null,g,m,Mn(u,v),w,b),R&&qe(u,null,g,"created"),Re(x,u,u.scopeId,w,g),C){for(const j in C)j!=="value"&&!Dt(j)&&o(x,j,null,C[j],v,u.children,g,m,Me);"value"in C&&o(x,"value",null,C.value,v),(_=C.onVnodeBeforeMount)&&Ee(_,g,u)}R&&qe(u,null,g,"beforeMount");const L=ll(m,I);L&&I.beforeEnter(x),s(x,f,p),((_=C&&C.onVnodeMounted)||L||R)&&ue(()=>{_&&Ee(_,g,u),L&&I.enter(x),R&&qe(u,null,g,"mounted")},m)},Re=(u,f,p,g,m)=>{if(p&&E(u,p),g)for(let v=0;v{for(let _=x;_{const b=f.el=u.el;let{patchFlag:x,dynamicChildren:_,dirs:C}=f;x|=u.patchFlag&16;const $=u.props||K,I=f.props||K;let R;if(p&&Ge(p,!1),(R=I.onVnodeBeforeUpdate)&&Ee(R,p,f,u),C&&qe(f,u,p,"beforeUpdate"),p&&Ge(p,!0),_?We(u.dynamicChildren,_,b,p,g,Mn(f,m),v):w||B(u,f,b,null,p,g,Mn(f,m),v,!1),x>0){if(x&16)_t(b,f,$,I,p,g,m);else if(x&2&&$.class!==I.class&&o(b,"class",null,I.class,m),x&4&&o(b,"style",$.style,I.style,m),x&8){const L=f.dynamicProps;for(let j=0;j{R&&Ee(R,p,f,u),C&&qe(f,u,p,"updated")},g)},We=(u,f,p,g,m,v,w)=>{for(let b=0;b{if(p!==g){if(p!==K)for(const b in p)!Dt(b)&&!(b in g)&&o(u,b,p[b],null,w,f.children,m,v,Me);for(const b in g){if(Dt(b))continue;const x=g[b],_=p[b];x!==_&&b!=="value"&&o(u,b,_,x,w,f.children,m,v,Me)}"value"in g&&o(u,"value",p.value,g.value,w)}},Vt=(u,f,p,g,m,v,w,b,x)=>{const _=f.el=u?u.el:l(""),C=f.anchor=u?u.anchor:l("");let{patchFlag:$,dynamicChildren:I,slotScopeIds:R}=f;R&&(b=b?b.concat(R):R),u==null?(s(_,p,g),s(C,p,g),xe(f.children||[],p,C,m,v,w,b,x)):$>0&&$&64&&I&&u.dynamicChildren?(We(u.dynamicChildren,I,p,m,v,w,b),(f.key!=null||m&&f===m.subTree)&&Xr(u,f,!0)):B(u,f,p,C,m,v,w,b,x)},kt=(u,f,p,g,m,v,w,b,x)=>{f.slotScopeIds=b,u==null?f.shapeFlag&512?m.ctx.activate(f,p,g,w,x):Cn(f,p,g,m,v,w,x):ms(u,f,x)},Cn=(u,f,p,g,m,v,w)=>{const b=u.component=pl(u,g,m);if(Nr(u)&&(b.ctx.renderer=it),gl(b),b.asyncDep){if(m&&m.registerDep(b,ie),!u.el){const x=b.subTree=z(Be);q(null,x,f,p)}}else ie(b,u,f,p,m,v,w)},ms=(u,f,p)=>{const g=f.component=u.component;if(Ti(u,f,p))if(g.asyncDep&&!g.asyncResolved){G(g,f,p);return}else g.next=f,bi(g.update),g.effect.dirty=!0,g.update();else f.el=u.el,g.vnode=f},ie=(u,f,p,g,m,v,w)=>{const b=()=>{if(u.isMounted){let{next:C,bu:$,u:I,parent:R,vnode:L}=u;{const lt=Zr(u);if(lt){C&&(C.el=L.el,G(u,C,w)),lt.asyncDep.then(()=>{u.isUnmounted||b()});return}}let j=C,D;Ge(u,!1),C?(C.el=L.el,G(u,C,w)):C=L,$&&zt($),(D=C.props&&C.props.onVnodeBeforeUpdate)&&Ee(D,R,C,L),Ge(u,!0);const ee=On(u),_e=u.subTree;u.subTree=ee,A(_e,ee,h(_e.el),Ht(_e),u,m,v),C.el=ee.el,j===null&&Ii(u,ee.el),I&&ue(I,m),(D=C.props&&C.props.onVnodeUpdated)&&ue(()=>Ee(D,R,C,L),m)}else{let C;const{el:$,props:I}=f,{bm:R,m:L,parent:j}=u,D=wt(f);if(Ge(u,!1),R&&zt(R),!D&&(C=I&&I.onVnodeBeforeMount)&&Ee(C,j,f),Ge(u,!0),$&&In){const ee=()=>{u.subTree=On(u),In($,u.subTree,u,m,null)};D?f.type.__asyncLoader().then(()=>!u.isUnmounted&&ee()):ee()}else{const ee=u.subTree=On(u);A(null,ee,p,g,u,m,v),f.el=ee.el}if(L&&ue(L,m),!D&&(C=I&&I.onVnodeMounted)){const ee=f;ue(()=>Ee(C,j,ee),m)}(f.shapeFlag&256||j&&wt(j.vnode)&&j.vnode.shapeFlag&256)&&u.a&&ue(u.a,m),u.isMounted=!0,f=p=g=null}},x=u.effect=new Xn(b,me,()=>ls(_),u.scope),_=u.update=()=>{x.dirty&&x.run()};_.id=u.uid,Ge(u,!0),_()},G=(u,f,p)=>{f.component=u;const g=u.vnode.props;u.vnode=f,u.next=null,tl(u,f.props,g,p),rl(u,f.children,p),st(),Ms(u),rt()},B=(u,f,p,g,m,v,w,b,x=!1)=>{const _=u&&u.children,C=u?u.shapeFlag:0,$=f.children,{patchFlag:I,shapeFlag:R}=f;if(I>0){if(I&128){Ft(_,$,p,g,m,v,w,b,x);return}else if(I&256){De(_,$,p,g,m,v,w,b,x);return}}R&8?(C&16&&Me(_,m,v),$!==_&&d(p,$)):C&16?R&16?Ft(_,$,p,g,m,v,w,b,x):Me(_,m,v,!0):(C&8&&d(p,""),R&16&&xe($,p,g,m,v,w,b,x))},De=(u,f,p,g,m,v,w,b,x)=>{u=u||ct,f=f||ct;const _=u.length,C=f.length,$=Math.min(_,C);let I;for(I=0;I<$;I++){const R=f[I]=x?Fe(f[I]):Te(f[I]);A(u[I],R,p,null,m,v,w,b,x)}_>C?Me(u,m,v,!0,!1,$):xe(f,p,g,m,v,w,b,x,$)},Ft=(u,f,p,g,m,v,w,b,x)=>{let _=0;const C=f.length;let $=u.length-1,I=C-1;for(;_<=$&&_<=I;){const R=u[_],L=f[_]=x?Fe(f[_]):Te(f[_]);if(bt(R,L))A(R,L,p,null,m,v,w,b,x);else break;_++}for(;_<=$&&_<=I;){const R=u[$],L=f[I]=x?Fe(f[I]):Te(f[I]);if(bt(R,L))A(R,L,p,null,m,v,w,b,x);else break;$--,I--}if(_>$){if(_<=I){const R=I+1,L=RI)for(;_<=$;)we(u[_],m,v,!0),_++;else{const R=_,L=_,j=new Map;for(_=L;_<=I;_++){const de=f[_]=x?Fe(f[_]):Te(f[_]);de.key!=null&&j.set(de.key,_)}let D,ee=0;const _e=I-L+1;let lt=!1,bs=0;const yt=new Array(_e);for(_=0;_<_e;_++)yt[_]=0;for(_=R;_<=$;_++){const de=u[_];if(ee>=_e){we(de,m,v,!0);continue}let Ce;if(de.key!=null)Ce=j.get(de.key);else for(D=L;D<=I;D++)if(yt[D-L]===0&&bt(de,f[D])){Ce=D;break}Ce===void 0?we(de,m,v,!0):(yt[Ce-L]=_+1,Ce>=bs?bs=Ce:lt=!0,A(de,f[Ce],p,null,m,v,w,b,x),ee++)}const vs=lt?cl(yt):ct;for(D=vs.length-1,_=_e-1;_>=0;_--){const de=L+_,Ce=f[de],xs=de+1{const{el:v,type:w,transition:b,children:x,shapeFlag:_}=u;if(_&6){ze(u.component.subTree,f,p,g);return}if(_&128){u.suspense.move(f,p,g);return}if(_&64){w.move(u,f,p,it);return}if(w===Y){s(v,f,p);for(let $=0;$b.enter(v),m);else{const{leave:$,delayLeave:I,afterLeave:R}=b,L=()=>s(v,f,p),j=()=>{$(v,()=>{L(),R&&R()})};I?I(v,L,j):j()}else s(v,f,p)},we=(u,f,p,g=!1,m=!1)=>{const{type:v,props:w,ref:b,children:x,dynamicChildren:_,shapeFlag:C,patchFlag:$,dirs:I}=u;if(b!=null&&Dn(b,null,p,u,!0),C&256){f.ctx.deactivate(u);return}const R=C&1&&I,L=!wt(u);let j;if(L&&(j=w&&w.onVnodeBeforeUnmount)&&Ee(j,f,u),C&6)Eo(u.component,p,g);else{if(C&128){u.suspense.unmount(p,g);return}R&&qe(u,null,f,"beforeUnmount"),C&64?u.type.remove(u,f,p,m,it,g):_&&(v!==Y||$>0&&$&64)?Me(_,f,p,!1,!0):(v===Y&&$&384||!m&&C&16)&&Me(x,f,p),g&&_s(u)}(L&&(j=w&&w.onVnodeUnmounted)||R)&&ue(()=>{j&&Ee(j,f,u),R&&qe(u,null,f,"unmounted")},p)},_s=u=>{const{type:f,el:p,anchor:g,transition:m}=u;if(f===Y){Co(p,g);return}if(f===Pn){Z(u);return}const v=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:w,delayLeave:b}=m,x=()=>w(p,v);b?b(u.el,v,x):x()}else v()},Co=(u,f)=>{let p;for(;u!==f;)p=y(u),r(u),u=p;r(f)},Eo=(u,f,p)=>{const{bum:g,scope:m,update:v,subTree:w,um:b}=u;g&&zt(g),m.stop(),v&&(v.active=!1,we(w,u,f,p)),b&&ue(b,f),ue(()=>{u.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Me=(u,f,p,g=!1,m=!1,v=0)=>{for(let w=v;wu.shapeFlag&6?Ht(u.component.subTree):u.shapeFlag&128?u.suspense.next():y(u.anchor||u.el);let En=!1;const ys=(u,f,p)=>{u==null?f._vnode&&we(f._vnode,null,null,!0):A(f._vnode||null,u,f,null,null,null,p),En||(En=!0,Ms(),Mr(),En=!1),f._vnode=u},it={p:A,um:we,m:ze,r:_s,mt:Cn,mc:xe,pc:B,pbc:We,n:Ht,o:e};let Tn,In;return t&&([Tn,In]=t(it)),{render:ys,hydrate:Tn,createApp:Xi(ys,Tn)}}function Mn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ll(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xr(e,t,n=!1){const s=e.children,r=t.children;if(S(s)&&S(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Zr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zr(t)}const ul=e=>e.__isTeleport,Y=Symbol.for("v-fgt"),_n=Symbol.for("v-txt"),Be=Symbol.for("v-cmt"),Pn=Symbol.for("v-stc"),Et=[];let ye=null;function O(e=!1){Et.push(ye=e?null:[])}function fl(){Et.pop(),ye=Et[Et.length-1]||null}let Rt=1;function Bs(e){Rt+=e}function eo(e){return e.dynamicChildren=Rt>0?ye||ct:null,fl(),Rt>0&&ye&&ye.push(e),e}function V(e,t,n,s,r,o){return eo(T(e,t,n,s,r,o,!0))}function Se(e,t,n,s,r){return eo(z(e,t,n,s,r,!0))}function to(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const yn="__vInternal",no=({key:e})=>e??null,Gt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||te(e)||M(e)?{i:Q,r:e,k:t,f:!!n}:e:null);function T(e,t=null,n=null,s=0,r=null,o=e===Y?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&Gt(t),scopeId:Lr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Q};return l?(as(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),Rt>0&&!i&&ye&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ye.push(c),c}const z=al;function al(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===kr)&&(e=Be),to(e)){const l=gt(e,t,!0);return n&&as(l,n),Rt>0&&!o&&ye&&(l.shapeFlag&6?ye[ye.indexOf(e)]=l:ye.push(l)),l.patchFlag|=-2,l}if(vl(e)&&(e=e.__vccOpts),t){t=so(t);let{class:l,style:c}=t;l&&!J(l)&&(t.class=cn(l)),W(c)&&(Er(c)&&!S(c)&&(c=se({},c)),t.style=Pe(c))}const i=J(e)?1:Si(e)?128:ul(e)?64:W(e)?4:M(e)?2:0;return T(e,t,n,s,r,i,o,!0)}function so(e){return e?Er(e)||yn in e?se({},e):e:null}function gt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?ro(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&no(l),ref:t&&t.ref?n&&r?S(r)?r.concat(Gt(t)):[r,Gt(t)]:Gt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&>(e.ssContent),ssFallback:e.ssFallback&>(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return z(_n,null,e,t)}function nt(e="",t=!1){return t?(O(),Se(Be,null,e)):z(Be,null,e)}function Te(e){return e==null||typeof e=="boolean"?z(Be):S(e)?z(Y,null,e.slice()):typeof e=="object"?Fe(e):z(_n,null,String(e))}function Fe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gt(e)}function as(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(S(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),as(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(yn in t)?t._ctx=Q:r===3&&Q&&(Q.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else M(t)?(t={default:t,_ctx:Q},n=32):(t=String(t),s&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ro(...e){const t={};for(let n=0;nne||Q;let tn,zn;{const e=ir(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};tn=t("__VUE_INSTANCE_SETTERS__",n=>ne=n),zn=t("__VUE_SSR_SETTERS__",n=>bn=n)}const At=e=>{const t=ne;return tn(e),e.scope.on(),()=>{e.scope.off(),tn(t)}},Ks=()=>{ne&&ne.scope.off(),tn(null)};function oo(e){return e.vnode.shapeFlag&4}let bn=!1;function gl(e,t=!1){t&&zn(t);const{props:n,children:s}=e.vnode,r=oo(e);el(e,n,r,t),sl(e,s);const o=r?ml(e,t):void 0;return t&&zn(!1),o}function ml(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tr(new Proxy(e.ctx,Di));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?yl(e):null,o=At(e);st();const i=je(s,e,0,[e.props,r]);if(rt(),o(),sr(i)){if(i.then(Ks,Ks),t)return i.then(l=>{Ws(e,l,t)}).catch(l=>{dn(l,e,0)});e.asyncDep=i}else Ws(e,i,t)}else io(e,t)}function Ws(e,t,n){M(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=Sr(t)),io(e,n)}let Ds;function io(e,t,n){const s=e.type;if(!e.render){if(!t&&Ds&&!s.render){const r=s.template||us(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=se(se({isCustomElement:o,delimiters:l},i),c);s.render=Ds(r,a)}}e.render=s.render||me}{const r=At(e);st();try{zi(e)}finally{rt(),r()}}}function _l(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fe(e,"get","$attrs"),t[n]}}))}function yl(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return _l(e)},slots:e.slots,emit:e.emit,expose:t}}function vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Sr(Tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ct)return Ct[n](e)},has(t,n){return n in t||n in Ct}}))}function bl(e,t=!0){return M(e)?e.displayName||e.name:e.name||t&&e.__name}function vl(e){return M(e)&&"__vccOpts"in e}const ae=(e,t)=>ci(e,t,bn);function lo(e,t,n=K){const s=ds(),r=ve(t),o=Ke(t),i=hi((c,a)=>{let d;return Ai(()=>{const h=e[t];Oe(d,h)&&(d=h,a())}),{get(){return c(),n.get?n.get(d):d},set(h){const y=s.vnode.props;!(y&&(t in y||r in y||o in y)&&(`onUpdate:${t}`in y||`onUpdate:${r}`in y||`onUpdate:${o}`in y))&&Oe(h,d)&&(d=h,a()),s.emit(`update:${t}`,n.set?n.set(h):h)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?e[l]||{}:i,done:!1}:{done:!0}}}},i}const xl="3.4.15";/** +* @vue/runtime-dom v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const wl="http://www.w3.org/2000/svg",Cl="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,zs=He&&He.createElement("template"),El={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?He.createElementNS(wl,e):t==="mathml"?He.createElementNS(Cl,e):He.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{zs.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=zs.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tl=Symbol("_vtc");function Il(e,t,n){const s=e[Tl];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $l=Symbol("_vod"),Sl=Symbol("");function Ol(e,t,n){const s=e.style,r=s.display,o=J(n);if(n&&!o){if(t&&!J(t))for(const i in t)n[i]==null&&qn(s,i,"");for(const i in n)qn(s,i,n[i])}else if(o){if(t!==n){const i=s[Sl];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");$l in e&&(s.display=r)}const qs=/\s*!important$/;function qn(e,t,n){if(S(n))n.forEach(s=>qn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Rl(e,t);qs.test(n)?e.setProperty(Ke(s),n.replace(qs,""),"important"):e[s]=n}}const Gs=["Webkit","Moz","ms"],An={};function Rl(e,t){const n=An[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return An[t]=s;s=ln(s);for(let r=0;rLn||(kl.then(()=>Ln=0),Ln=Date.now());function Hl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;be(Nl(s,n.value),t,5,[s])};return n.value=e,n.attached=Fl(),n}function Nl(e,t){if(S(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jl=(e,t,n,s,r,o,i,l,c)=>{const a=r==="svg";t==="class"?Il(e,s,a):t==="style"?Ol(e,n,s):sn(t)?Jn(t)||Ll(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ul(e,t,s,a))?Pl(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ml(e,t,s,a))};function Ul(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xs(t)&&M(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Xs(t)&&J(n)?!1:t in e}const nn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return S(t)?n=>zt(t,n):t};function Bl(e){e.target.composing=!0}function Zs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ht=Symbol("_assign"),hs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ht]=nn(r);const o=s||r.props&&r.props.type==="number";Ye(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=kn(l)),e[ht](l)}),n&&Ye(e,"change",()=>{e.value=e.value.trim()}),t||(Ye(e,"compositionstart",Bl),Ye(e,"compositionend",Zs),Ye(e,"change",Zs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[ht]=nn(o),e.composing)return;const i=r||e.type==="number"?kn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Vn={deep:!0,created(e,t,n){e[ht]=nn(n),Ye(e,"change",()=>{const s=e._modelValue,r=Kl(e),o=e.checked,i=e[ht];if(S(s)){const l=cr(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const a=[...s];a.splice(l,1),i(a)}}else if(rn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(co(e,o))})},mounted:er,beforeUpdate(e,t,n){e[ht]=nn(n),er(e,t,n)}};function er(e,{value:t,oldValue:n},s){e._modelValue=t,S(t)?e.checked=cr(t,s.props.value)>-1:rn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=un(t,co(e,!0)))}function Kl(e){return"_value"in e?e._value:e.value}function co(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Wl=["ctrl","shift","alt","meta"],Dl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wl.some(n=>e[`${n}Key`]&&!t.includes(n))},zl=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=Ke(r.key);if(t.some(i=>i===o||ql[i]===o))return e(r)})},Jl=se({patchProp:jl},El);let tr;function Yl(){return tr||(tr=ol(Jl))}const Ql=(...e)=>{const t=Yl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Zl(s);if(!r)return;const o=t._component;!M(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Xl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zl(e){return J(e)?document.querySelector(e):e}function ec(e){return{ask:e.ask,"max-results":e.maxResults,"score-threshold":e.scoreThreshold}}var mt=(e=>(e.User="User",e.IA="IA",e))(mt||{});function tc(e){var t;return{type:mt.IA,summary:e.summary,date:+new Date,references:(t=e.results)==null?void 0:t.map(n=>({link:n.outlink,text:n.text,title:n.reference,pageId:n.pageId,pageIndex:n.pageIndex,pages:n.pages.map(s=>({id:s.id,pageNumber:s.pageNum}))}))}}function nc(e){return{type:mt.User,date:+new Date,parameters:e}}function sc(e,t){const n=new URL(e);return t&&Object.entries(t).forEach(([s,r])=>{n.searchParams.append(s,r.toString())}),n.toString()}async function rc(e,{method:t,data:n,parameters:s}={}){try{const r={method:t||"GET",headers:{"Content-Type":"application/json"},body:n?JSON.stringify(n):void 0},o=await fetch(sc(e,s),r);if(!o.ok)throw new Error(`Error response: ${o.statusText}`);return await o.json()}catch(r){throw console.error("Error:",r),r}}class oc{static ask(t){const{ask:n,...s}=t;return rc(`https://bhlquest.globalnames.org/api/v1/ask/${t.ask}`,{parameters:s})}}const ic=an({keepChat:!1,openSettings:!0,referenceExpanded:!0,referencePreformattedText:!0,parameters:{scoreThreshold:.65,maxResults:5}});function xn(){return{...pi(ic)}}const ot=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},lc={},cc={class:"border p-4 rounded-lg border-base-border"};function uc(e,t){return O(),V("div",cc,[Wi(e.$slots,"default")])}const uo=ot(lc,[["render",uc]]),fc=T("h2",{class:"text-2xl font-semibold mb-4"},"Hello there!",-1),ac=T("p",{class:"my-4"}," Ask a question about birds and see links to relevant BHL pages. ",-1),dc={class:"grid grid-cols-2 gap-4"},hc=pe({__name:"EmptyContainer",emits:["select"],setup(e,{emit:t}){const n=["Do Bald Eagles migrate?","Do woodpeckers suffer from concussions?","What does a cassowary eat?","What adaptations allow humming birds to hover?"],s=t;return(r,o)=>(O(),V("div",null,[fc,ac,T("div",dc,[(O(),V(Y,null,Pt(n,i=>z(uo,{key:i,class:"cursor-pointer",onClick:l=>s("select",i)},{default:cs(()=>[tt(Tt(i),1)]),_:2},1032,["onClick"])),64))])]))}}),pc={},gc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},mc=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},null,-1),_c=[mc];function yc(e,t){return O(),V("svg",gc,_c)}const bc=ot(pc,[["render",yc]]),vc=T("div",{class:"font-bold text-lg"},"You",-1),xc={class:"whitespace-pre-wrap font-semibold text-2xl flex items-center"},wc=["href"],Cc=pe({__name:"ChatUserMessage",props:{message:{}},setup(e){const t=e,n=ae(()=>{const s=new URLSearchParams;return Object.entries(t.message.parameters).forEach(([r,o])=>{s.set(r,o.toString())}),"?"+s.toString()});return(s,r)=>(O(),V("div",null,[vc,T("div",xc,[tt(Tt(s.message.parameters.ask)+" ",1),T("a",{href:n.value},[z(bc,{class:"w-6 h-6 text-primary-color"})],8,wc)])]))}}),Ec={},Tc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ic=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1),$c=[Ic];function Sc(e,t){return O(),V("svg",Tc,$c)}const Oc=ot(Ec,[["render",Sc]]),Rc={},Mc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Pc=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1),Ac=[Pc];function Lc(e,t){return O(),V("svg",Mc,Ac)}const Vc=ot(Rc,[["render",Lc]]);function ps(e){return fr()?(jo(e),!0):!1}function gs(e){return typeof e=="function"?e():re(e)}const kc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fc=Object.prototype.toString,Hc=e=>Fc.call(e)==="[object Object]",Nc=()=>{};function jc(e){return e||ds()}function fo(e,t=!0,n){jc()?mn(e,n):t?e():St(e)}function Xe(e){var t;const n=gs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lt=kc?window:void 0;function Uc(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=Lt):[t,n,s,r]=e,!t)return Nc;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,y,E)=>(d.addEventListener(h,y,E),()=>d.removeEventListener(h,y,E)),c=$e(()=>[Xe(t),gs(r)],([d,h])=>{if(i(),!d)return;const y=Hc(h)?{...h}:h;o.push(...n.flatMap(E=>s.map(P=>l(d,E,P,y))))},{immediate:!0,flush:"post"}),a=()=>{c(),i()};return ps(a),a}function Bc(){const e=X(!1);return ds()&&mn(()=>{e.value=!0}),e}function ao(e){const t=Bc();return ae(()=>(t.value,!!e()))}function Kc(e,t={}){const{window:n=Lt}=t,s=ao(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=X(!1),i=a=>{o.value=a.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i))},c=Pi(()=>{s.value&&(l(),r=n.matchMedia(gs(e)),"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),o.value=r.matches)});return ps(()=>{c(),l(),r=void 0}),o}function Wc(e,t,n={}){const{window:s=Lt,...r}=n;let o;const i=ao(()=>s&&"ResizeObserver"in s),l=()=>{o&&(o.disconnect(),o=void 0)},c=ae(()=>Array.isArray(e)?e.map(h=>Xe(h)):[Xe(e)]),a=$e(c,h=>{if(l(),i.value&&s){o=new ResizeObserver(t);for(const y of h)y&&o.observe(y,r)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),a()};return ps(d),{isSupported:i,stop:d}}function Dc(e,t={width:0,height:0},n={}){const{window:s=Lt,box:r="content-box"}=n,o=ae(()=>{var h,y;return(y=(h=Xe(e))==null?void 0:h.namespaceURI)==null?void 0:y.includes("svg")}),i=X(t.width),l=X(t.height),{stop:c}=Wc(e,([h])=>{const y=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(s&&o.value){const E=Xe(e);if(E){const P=s.getComputedStyle(E);i.value=Number.parseFloat(P.width),l.value=Number.parseFloat(P.height)}}else if(y){const E=Array.isArray(y)?y:[y];i.value=E.reduce((P,{inlineSize:A})=>P+A,0),l.value=E.reduce((P,{blockSize:A})=>P+A,0)}else i.value=h.contentRect.width,l.value=h.contentRect.height},n);fo(()=>{const h=Xe(e);h&&(i.value="offsetWidth"in h?h.offsetWidth:t.width,l.value="offsetHeight"in h?h.offsetHeight:t.height)});const a=$e(()=>Xe(e),h=>{i.value=h?t.width:0,l.value=h?t.height:0});function d(){c(),a()}return{width:i,height:l,stop:d}}function zc(e,t){const{containerStyle:n,wrapperProps:s,scrollTo:r,calculateRange:o,currentList:i,containerRef:l}="itemHeight"in t?Jc(t,e):Gc(t,e);return{list:i,scrollTo:r,containerProps:{ref:l,onScroll:()=>{o()},style:n},wrapperProps:s}}function ho(e){const t=X(null),n=Dc(t),s=X([]),r=ui(e);return{state:X({start:0,end:10}),source:r,currentList:s,size:n,containerRef:t}}function po(e,t,n){return s=>{if(typeof n=="number")return Math.ceil(s/n);const{start:r=0}=e.value;let o=0,i=0;for(let l=r;ls)break}return i-r}}function go(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let s=0,r=0;for(let o=0;o=n){r=o;break}}return r+1}}function mo(e,t,n,s,{containerRef:r,state:o,currentList:i,source:l}){return()=>{const c=r.value;if(c){const a=n(e==="vertical"?c.scrollTop:c.scrollLeft),d=s(e==="vertical"?c.clientHeight:c.clientWidth),h=a-t,y=a+d+t;o.value={start:h<0?0:h,end:y>l.value.length?l.value.length:y},i.value=l.value.slice(o.value.start,o.value.end).map((E,P)=>({data:E,index:P+o.value.start}))}}}function _o(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,o,i)=>r+e(i),0)}function yo(e,t,n){$e([e.width,e.height,t],()=>{n()})}function bo(e,t){return ae(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,s,r)=>n+e(r),0))}const qc={horizontal:"scrollLeft",vertical:"scrollTop"};function vo(e,t,n,s){return r=>{s.value&&(s.value[qc[e]]=n(r),t())}}function Gc(e,t){const n=ho(t),{state:s,source:r,currentList:o,size:i,containerRef:l}=n,c={overflowX:"auto"},{itemWidth:a,overscan:d=5}=e,h=po(s,r,a),y=go(r,a),E=mo("horizontal",d,y,h,n),P=_o(a,r),A=ae(()=>P(s.value.start)),N=bo(a,r);yo(i,t,E);const q=vo("horizontal",E,P,l),ce=ae(()=>({style:{height:"100%",width:`${N.value-A.value}px`,marginLeft:`${A.value}px`,display:"flex"}}));return{scrollTo:q,calculateRange:E,wrapperProps:ce,containerStyle:c,currentList:o,containerRef:l}}function Jc(e,t){const n=ho(t),{state:s,source:r,currentList:o,size:i,containerRef:l}=n,c={overflowY:"auto"},{itemHeight:a,overscan:d=5}=e,h=po(s,r,a),y=go(r,a),E=mo("vertical",d,y,h,n),P=_o(a,r),A=ae(()=>P(s.value.start)),N=bo(a,r);yo(i,t,E);const q=vo("vertical",E,P,l),ce=ae(()=>({style:{width:"100%",height:`${N.value-A.value}px`,marginTop:`${A.value}px`}}));return{calculateRange:E,scrollTo:q,containerStyle:c,wrapperProps:ce,currentList:o,containerRef:l}}function Yc(e={}){const{window:t=Lt,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:o=!0}=e,i=X(n),l=X(s),c=()=>{t&&(o?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),fo(c),Uc("resize",c,{passive:!0}),r){const a=Kc("(orientation: portrait)");$e(a,()=>c())}return{width:i,height:l}}const Qc={},Xc={class:"loader"};function Zc(e,t){return O(),V("div",Xc)}const xo=ot(Qc,[["render",Zc],["__scopeId","data-v-b5765931"]]),eu=["width","src"],tu={class:"absolute top-1/2 left-1/2 -translate-x-1/2"},nu={class:"flex flex-col justify-center gap-4 items-center"},su={class:"text-xl"},ru=pe({__name:"ImagePage",props:{pageIndex:{},pageId:{},imageWidth:{default:500},imageHeight:{default:300}},setup(e){const t=e,n=X(!0),s=X(!1),r=setTimeout(()=>{s.value=!0},500);return Br(()=>{clearTimeout(r)}),(o,i)=>(O(),V("div",{class:"relative",style:Pe({width:o.imageWidth+"px"})},[s.value?(O(),V("img",{key:0,class:"object-contain",style:Pe({"max-height":o.imageHeight+"px","max-width":o.imageWidth}),width:o.imageWidth,src:`https://www.biodiversitylibrary.org/pagethumb/${o.pageId},${o.imageWidth},${o.imageHeight}`,onLoad:i[0]||(i[0]=()=>{n.value=!1})},null,44,eu)):nt("",!0),n.value?(O(),V("div",{key:1,class:"bg-white absolute min-w-fit h-full left-0 top-0",style:Pe({"min-height":o.imageHeight+"px","min-width":o.imageWidth+"px",height:t.imageHeight+"px",left:0,top:0})},[T("div",tu,[T("div",nu,[T("span",su,"Loading page "+Tt(o.pageIndex+1),1),z(xo)])])],4)):nt("",!0)],4))}}),ou=pe({__name:"ImageViewer",props:{pageIds:{},pageIndex:{}},setup(e){const t=e,{height:n}=Yc(),s=ae(()=>n.value-250),r=ae(()=>Math.trunc(s.value*.75)),{list:o,containerProps:i,wrapperProps:l,scrollTo:c}=zc(t.pageIds,{itemHeight:s.value});return mn(()=>{c(t.pageIndex)}),(a,d)=>(O(),Se(uo,{class:"bg- bg-zinc-700 p-4 flex flex-col gap-4"},{default:cs(()=>[T("div",ro(re(i),{style:{height:s.value+"px"}}),[T("div",Lo(so(re(l))),[(O(!0),V(Y,null,Pt(re(o),h=>(O(),V("div",{key:h.index,class:"my-2 flex justify-center",style:Pe({height:s.value+"px"})},[z(ru,{"image-height":s.value,"image-width":r.value,"page-index":h.index,height:s.value+"px",style:Pe({"max-height":s.value+"px"}),"page-id":h.data},null,8,["image-height","image-width","page-index","height","style","page-id"])],4))),128))],16)],16)]),_:1}))}}),iu=["href"],lu={class:"py-4 px-8"},cu=["href"],uu={key:0,class:"mt-2"},fu=pe({__name:"BHLQuestReference",props:{index:{},reference:{}},setup(e){const t=X(null),{referencePreformattedText:n,referenceExpanded:s}=xn(),r=ae(()=>n.value?"pre":"p"),o=X(!0),i=X(!1);function l(c){return c.replaceAll("\r\r","\r").trim()}return $e(s,c=>{o.value=c},{immediate:!0}),(c,a)=>(O(),V("div",null,[T("div",{ref_key:"referenceRef",ref:t,class:"flex gap-2 items-center"},[T("button",{type:"button",class:"rounded-full bg-primary-color text-primary-text p-1.5",onClick:a[0]||(a[0]=()=>o.value=!o.value)},[o.value?(O(),Se(Vc,{key:0,class:"w-3 h-3"})):(O(),Se(Oc,{key:1,class:"w-3 h-3"}))]),T("a",{href:c.reference.link,target:"_blank",class:"text-primary-color break-all"},Tt(c.reference.title),9,iu)],512),o.value?(O(),V(Y,{key:0},[(O(!0),V(Y,null,Pt(c.reference.text,(d,h)=>(O(),V("div",lu,[T("a",{class:"text-primary-color",href:`https://www.biodiversitylibrary.org/page/${c.reference.pages[c.reference.pageIndex+h].id}`},"Page #"+Tt(c.reference.pages[c.reference.pageIndex+h].pageNumber),9,cu),(O(),Se(Fr(r.value),{class:"text-wrap font-main",innerHTML:l(d)},null,8,["innerHTML"]))]))),256)),i.value?(O(),V("div",uu,[z(ou,{"page-ids":c.reference.pages,"page-index":c.reference.pageIndex},null,8,["page-ids","page-index"])])):nt("",!0)],64)):nt("",!0)]))}}),au=T("div",{class:"font-bold text-lg text-primary-color"},"BHL Quest",-1),du=["innerHTML"],hu={key:1},pu=T("h3",{class:"my-2 font-semibold"},"References",-1),gu=pe({__name:"BHLQuestMessage",props:{message:{}},setup(e){return(t,n)=>(O(),V("div",null,[au,t.message.summary?(O(),V("div",{key:0,class:"whitespace-pre-wrap",innerHTML:t.message.summary},null,8,du)):(O(),V("div",hu,"I cannot provide an answer to your question.")),t.message.references?(O(),V(Y,{key:2},[pu,T("ul",null,[(O(!0),V(Y,null,Pt(t.message.references,(s,r)=>(O(),V("li",{key:t.message.date,class:"my-2"},[z(fu,{reference:s,index:r},null,8,["reference","index"])]))),128))])],64)):nt("",!0)]))}}),mu=T("div",{class:"font-bold text-lg text-primary-color"},"BHL Quest",-1),_u={__name:"LoadingMessage",setup(e){return(t,n)=>(O(),V("div",null,[mu,z(xo,{class:"scale-50 origin-left"})]))}},yu={class:"flex flex-col gap-10 h-full"},bu=pe({__name:"ChatView",props:{messages:{},isLoading:{type:Boolean}},setup(e){const t={[mt.User]:Cc,[mt.IA]:gu};return(n,s)=>(O(),V("div",yu,[(O(!0),V(Y,null,Pt(n.messages,r=>(O(),Se(Fr(t[r.type]),{key:r.uuid,message:r},null,8,["message"]))),128)),n.isLoading?(O(),Se(_u,{key:0})):nt("",!0)]))}}),vu={class:"flex flex-row pb-8"},xu=["rows","disabled","onKeydown"],wu=["disabled"],nr=5,Cu=pe({__name:"ChatUserInput",props:{disabled:{type:Boolean}},emits:["submit"],setup(e,{emit:t}){const n=e,s=t,r=X(null),o=X(""),i=ae(()=>{const c=o.value.split(` +`).length||1;return cn.disabled,c=>{c||St(()=>{r.value.focus()})}),(c,a)=>(O(),V("div",vu,[dt(T("textarea",{ref_key:"promptInput",ref:r,class:"p-4 rounded-l-xl border border-base-border w-full resize-none focus:outline-none",type:"text","onUpdate:modelValue":a[0]||(a[0]=d=>o.value=d),rows:i.value,disabled:c.disabled,placeholder:"Ask something...",autofocus:"",onKeydown:Gl(zl(l,["exact","prevent"]),["enter"])},null,40,xu),[[hs,o.value]]),T("button",{class:"btn-send bg-primary-color text-primary-text px-4 rounded-r-xl disabled:bg-gray-300 border-primary-color border disabled:border-gray-400",type:"button",disabled:c.disabled,onClick:l}," Send ",8,wu)]))}}),Eu={},Tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Iu=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"},null,-1),$u=[Iu];function Su(e,t){return O(),V("svg",Tu,$u)}const Ou=ot(Eu,[["render",Su]]),Ru={class:"max-w-7xl container mx-auto flex justify-between items-center px-4"},Mu=T("h1",{class:"text-3xl py-4 font-semibold bg-gradient-to-r from-[#4679a4] to-primary-color bg-clip-text text-transparent"},[tt(" BHL Quest "),T("span",{class:"text-[#ffc081]"},"AI")],-1),Pu=640,Au=pe({__name:"Navbar",setup(e){const{openSettings:t}=xn();return window.innerWidth(O(),V("div",Ru,[Mu,T("button",{type:"button",class:"rounded-full bg-primary-color text-primary-text p-2",title:"New chat",onClick:s[0]||(s[0]=()=>t.value=!re(t))},[z(Ou,{class:"w-5 h-5"})])]))}}),wo={mounted:(e,t,n)=>{const[s,r]=t.value;e.handler=()=>{const{value:o}=e;or&&(e.value=r,n.el.dispatchEvent(new CustomEvent("input")))},e.addEventListener("change",e.handler)},unmounted:e=>{e.removeEventListener("change",e.handler)}},Lu=T("label",{class:"block"},"Score threshold",-1),Vu=pe({__name:"SettingScoreThreshold",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=lo(e,"modelValue");return(n,s)=>(O(),V(Y,null,[Lu,dt(T("input",{class:"text-black rounded-sm py-1 px-4 w-20",type:"number",step:"0.05",min:"0.1",max:"1.0","onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r)},null,512),[[re(wo),[.1,1]],[hs,t.value,void 0,{number:!0}]])],64))}}),ku=T("label",{class:"block"},"Max results",-1),Fu=pe({__name:"SettingMaxResults",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=lo(e,"modelValue");return(n,s)=>(O(),V("div",null,[ku,dt(T("input",{class:"text-black rounded-sm py-1 px-4 w-20",type:"number","onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r)},null,512),[[re(wo),[1,5]],[hs,t.value]])]))}}),Hu={},Nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},ju=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"},null,-1),Uu=[ju];function Bu(e,t){return O(),V("svg",Nu,Uu)}const Ku=ot(Hu,[["render",Bu]]),Wu={key:0,class:"h-screen w-full fixed sm:relative sm:w-96 text-white bg-zinc-700 bg-opacity-100 transform translate-x-0 transition-transform duration-300 ease-in-out"},Du={class:"border-b border-zinc-500 flex justify-between items-center py-5 px-6"},zu=T("h1",{class:"text-xl"},"Settings",-1),qu={class:"px-6 py-4"},Gu={class:"mb-6"},Ju=T("h2",{class:"text-lg font-semibold my-2"},"Chat",-1),Yu={class:"mb-6"},Qu=T("h2",{class:"text-lg font-semibold my-2"},"References",-1),Xu={class:"mb-4"},Zu=T("h2",{class:"text-lg font-semibold my-2"},"Request",-1),ef=pe({__name:"PanelSettings",setup(e){const{keepChat:t,openSettings:n,referenceExpanded:s,referencePreformattedText:r,parameters:o}=xn();return(i,l)=>re(n)?(O(),V("div",Wu,[T("div",Du,[zu,z(Ku,{class:"w-6 h-6 text-white sm:hidden",onClick:l[0]||(l[0]=()=>n.value=!1)})]),T("div",qu,[T("div",Gu,[Ju,T("ul",null,[T("li",null,[T("label",null,[dt(T("input",{type:"checkbox","onUpdate:modelValue":l[1]||(l[1]=c=>te(t)?t.value=c:null)},null,512),[[Vn,re(t)]]),tt(" Keep chat history ")])])])]),T("div",Yu,[Qu,T("ul",null,[T("li",null,[T("label",null,[dt(T("input",{type:"checkbox","onUpdate:modelValue":l[2]||(l[2]=c=>te(s)?s.value=c:null)},null,512),[[Vn,re(s)]]),tt(" Expand ")])]),T("li",null,[T("label",null,[dt(T("input",{type:"checkbox","onUpdate:modelValue":l[3]||(l[3]=c=>te(r)?r.value=c:null)},null,512),[[Vn,re(r)]]),tt(" Preformatted text ")])])])]),T("div",Xu,[Zu,z(Fu,{modelValue:re(o).maxResults,"onUpdate:modelValue":l[4]||(l[4]=c=>re(o).maxResults=c)},null,8,["modelValue"]),z(Vu,{modelValue:re(o).scoreThreshold,"onUpdate:modelValue":l[5]||(l[5]=c=>re(o).scoreThreshold=c)},null,8,["modelValue"])])])])):nt("",!0)}}),tf={class:"relative z-0 flex h-full w-full overflow-hidden"},nf={class:"flex flex-col h-full justify-between w-full"},sf={class:"w-full"},rf=pe({name:"ChatBHL",__name:"App",setup(e){const t=X([]),n=X(!1),s=X(null),{keepChat:r,parameters:o}=xn();async function i(c){const a=nc({ask:c,...o.value});t.value=r.value?[...t.value,a]:[a],St(l),n.value=!0;try{const d=ec(a.parameters),h=await oc.ask(d);t.value.push(tc(h)),St(l)}catch(d){console.log(d)}n.value=!1}function l(){if(s.value){const c=t.value.findLastIndex(h=>h.type===mt.User),d=s.value.firstChild.children[c].offsetTop-s.value.offsetTop-16;s.value.scrollTop=d}}return Ur(()=>{const c=window.location.search,a=new URLSearchParams(c),d=a.get("ask"),h=a.get("scoreThreshold"),y=a.get("maxResults");y&&(o.value.maxResults=+y),h&&(o.value.scoreThreshold=+h),d&&i(d)}),(c,a)=>(O(),V("div",tf,[z(ef),T("div",nf,[T("div",sf,[z(Au)]),T("div",{ref_key:"chatContainer",ref:s,class:"overflow-y-auto h-full border-t border-gray-300 scroll scrollbar-gutter-stable"},[t.value.length?(O(),Se(bu,{key:0,class:"max-w-7xl container mx-auto px-6 py-4",messages:t.value,"is-loading":n.value},null,8,["messages","is-loading"])):(O(),Se(hc,{key:1,class:"max-w-7xl container mx-auto h-full flex-col flex justify-center px-4",onSelect:i}))],512),z(Cu,{class:"max-w-7xl container mx-auto px-4",disabled:n.value,onSubmit:i},null,8,["disabled"])])]))}}),of=Ql(rf);of.mount("#app"); diff --git a/assets/index-oxR9oZ3J.js b/assets/index-oxR9oZ3J.js deleted file mode 100644 index 40a40b8..0000000 --- a/assets/index-oxR9oZ3J.js +++ /dev/null @@ -1,18 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** -* @vue/shared v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Gn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const B={},lt=[],ge=()=>{},To=()=>!1,sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jn=e=>e.startsWith("onUpdate:"),se=Object.assign,Yn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,F=(e,t)=>Io.call(e,t),$=Array.isArray,ct=e=>Pt(e)==="[object Map]",rn=e=>Pt(e)==="[object Set]",ws=e=>Pt(e)==="[object Date]",P=e=>typeof e=="function",J=e=>typeof e=="string",Ue=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",sr=e=>(W(e)||P(e))&&P(e.then)&&P(e.catch),rr=Object.prototype.toString,Pt=e=>rr.call(e),So=e=>Pt(e).slice(8,-1),or=e=>Pt(e)==="[object Object]",Qn=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dt=Gn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),on=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$o=/-(\w)/g,ve=on(e=>e.replace($o,(t,n)=>n?n.toUpperCase():"")),Oo=/\B([A-Z])/g,Be=on(e=>e.replace(Oo,"-$1").toLowerCase()),ln=on(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sn=on(e=>e?`on${ln(e)}`:""),Oe=(e,t)=>!Object.is(e,t),zt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Fn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Es;const ir=()=>Es||(Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Me(e){if($(e)){const t={};for(let n=0;n{if(n){const s=n.split(Po);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function cn(e){let t="";if(J(e))t=e;else if($(e))for(let n=0;nun(n,t))}const Tt=e=>J(e)?e:e==null?"":$(e)||W(e)&&(e.toString===rr||!P(e.toString))?JSON.stringify(e,ur,2):String(e),ur=(e,t)=>t&&t.__v_isRef?ur(e,t.value):ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[$n(s,o)+" =>"]=r,n),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$n(n))}:Ue(t)?$n(t):W(t)&&!$(t)&&!or(t)?String(t):t,$n=(e,t="")=>{var n;return Ue(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let he;class ko{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=he;try{return he=this,t()}finally{he=n}}}on(){he=this}off(){he=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),rt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=He,n=Ze;try{return He=!0,Ze=this,this._runnings++,Cs(this),this.fn()}finally{Ts(this),this._runnings--,Ze=n,He=t}}stop(){var t;this.active&&(Cs(this),Ts(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Uo(e){return e.value}function Cs(e){e._trackId++,e._depsLength=0}function Ts(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Yt=new WeakMap,et=Symbol(""),Hn=Symbol("");function fe(e,t,n){if(He&&Ze){let s=Yt.get(e);s||Yt.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=mr(()=>s.delete(n))),hr(Ze,r)}}function Ae(e,t,n,s,r,o){const i=Yt.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&$(e)){const c=Number(s);i.forEach((a,d)=>{(d==="length"||!Ue(d)&&d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":$(e)?Qn(n)&&l.push(i.get("length")):(l.push(i.get(et)),ct(e)&&l.push(i.get(Hn)));break;case"delete":$(e)||(l.push(i.get(et)),ct(e)&&l.push(i.get(Hn)));break;case"set":ct(e)&&l.push(i.get(et));break}Zn();for(const c of l)c&&pr(c,2);es()}function Ko(e,t){var n;return(n=Yt.get(e))==null?void 0:n.get(t)}const Bo=Gn("__proto__,__v_isRef,__isVue"),_r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue)),Is=Wo();function Wo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=N(this);for(let o=0,i=this.length;o{e[t]=function(...n){st(),Zn();const s=N(this)[t].apply(this,n);return es(),rt(),s}}),e}function Do(e){const t=N(this);return fe(t,"has",e),t.hasOwnProperty(e)}class yr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ri:wr:o?xr:vr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=$(t);if(!r){if(i&&F(Is,n))return Reflect.get(Is,n,s);if(n==="hasOwnProperty")return Do}const l=Reflect.get(t,n,s);return(Ue(n)?_r.has(n):Bo(n))||(r||fe(t,"get",n),o)?l:te(l)?i&&Qn(n)?l:l.value:W(l)?r?Er(l):an(l):l}}class br extends yr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const c=ht(o);if(!Qt(s)&&!ht(s)&&(o=N(o),s=N(s)),!$(t)&&te(o)&&!te(s))return c?!1:(o.value=s,!0)}const i=$(t)&&Qn(n)?Number(n)e,fn=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n=!1,s=!1){e=e.__v_raw;const r=N(e),o=N(t);n||(Oe(t,o)&&fe(r,"get",t),fe(r,"get",o));const{has:i}=fn(r),l=s?ts:n?rs:It;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function jt(e,t=!1){const n=this.__v_raw,s=N(n),r=N(e);return t||(Oe(e,r)&&fe(s,"has",e),fe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ut(e,t=!1){return e=e.__v_raw,!t&&fe(N(e),"iterate",et),Reflect.get(e,"size",e)}function Ss(e){e=N(e);const t=N(this);return fn(t).has.call(t,e)||(t.add(e),Ae(t,"add",e,e)),this}function $s(e,t){t=N(t);const n=N(this),{has:s,get:r}=fn(n);let o=s.call(n,e);o||(e=N(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Oe(t,i)&&Ae(n,"set",e,t):Ae(n,"add",e,t),this}function Os(e){const t=N(this),{has:n,get:s}=fn(t);let r=n.call(t,e);r||(e=N(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ae(t,"delete",e,void 0),o}function Rs(){const e=N(this),t=e.size!==0,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}function Kt(e,t){return function(s,r){const o=this,i=o.__v_raw,l=N(i),c=t?ts:e?rs:It;return!e&&fe(l,"iterate",et),i.forEach((a,d)=>s.call(r,c(a),c(d),o))}}function Bt(e,t,n){return function(...s){const r=this.__v_raw,o=N(r),i=ct(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),d=n?ts:t?rs:It;return!t&&fe(o,"iterate",c?Hn:et),{next(){const{value:h,done:y}=a.next();return y?{value:h,done:y}:{value:l?[d(h[0]),d(h[1])]:d(h),done:y}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yo(){const e={get(o){return Ht(this,o)},get size(){return Ut(this)},has:jt,add:Ss,set:$s,delete:Os,clear:Rs,forEach:Kt(!1,!1)},t={get(o){return Ht(this,o,!1,!0)},get size(){return Ut(this)},has:jt,add:Ss,set:$s,delete:Os,clear:Rs,forEach:Kt(!1,!0)},n={get(o){return Ht(this,o,!0)},get size(){return Ut(this,!0)},has(o){return jt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Kt(!0,!1)},s={get(o){return Ht(this,o,!0,!0)},get size(){return Ut(this,!0)},has(o){return jt.call(this,o,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:Kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Bt(o,!1,!1),n[o]=Bt(o,!0,!1),t[o]=Bt(o,!1,!0),s[o]=Bt(o,!0,!0)}),[e,n,t,s]}const[Qo,Xo,Zo,ei]=Yo();function ns(e,t){const n=t?e?ei:Zo:e?Xo:Qo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(F(n,r)&&r in s?n:s,r,o)}const ti={get:ns(!1,!1)},ni={get:ns(!1,!0)},si={get:ns(!0,!1)},vr=new WeakMap,xr=new WeakMap,wr=new WeakMap,ri=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ii(e){return e.__v_skip||!Object.isExtensible(e)?0:oi(So(e))}function an(e){return ht(e)?e:ss(e,!1,qo,ti,vr)}function li(e){return ss(e,!1,Jo,ni,xr)}function Er(e){return ss(e,!0,Go,si,wr)}function ss(e,t,n,s,r){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ii(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ut(e){return ht(e)?ut(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Qt(e){return!!(e&&e.__v_isShallow)}function Cr(e){return ut(e)||ht(e)}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function Tr(e){return Jt(e,"__v_skip",!0),e}const It=e=>W(e)?an(e):e,rs=e=>W(e)?Er(e):e;class Ir{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xn(()=>t(this._value),()=>xt(this,1),()=>this.dep&&gr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=N(this);return(!t._cacheable||t.effect.dirty)&&Oe(t._value,t._value=t.effect.run())&&xt(t,2),os(t),t.effect._dirtyLevel>=1&&xt(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ci(e,t,n=!1){let s,r;const o=P(e);return o?(s=e,r=ge):(s=e.get,r=e.set),new Ir(s,r,o||!r,n)}function os(e){He&&Ze&&(e=N(e),hr(Ze,e.dep||(e.dep=mr(()=>e.dep=void 0,e instanceof Ir?e:void 0))))}function xt(e,t=2,n){e=N(e);const s=e.dep;s&&pr(s,t)}function te(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Sr(e,!1)}function ui(e){return Sr(e,!0)}function Sr(e,t){return te(e)?e:new fi(e,t)}class fi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:N(t),this._value=n?t:It(t)}get value(){return os(this),this._value}set value(t){const n=this.__v_isShallow||Qt(t)||ht(t);t=n?t:N(t),Oe(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:It(t),xt(this,2))}}function re(e){return te(e)?e.value:e}const ai={get:(e,t,n)=>re(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return te(r)&&!te(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function $r(e){return ut(e)?e:new Proxy(e,ai)}class di{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>os(this),()=>xt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function hi(e){return new di(e)}function pi(e){const t=$(e)?new Array(e.length):{};for(const n in e)t[n]=mi(e,n);return t}class gi{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ko(N(this._object),this._key)}}function mi(e,t,n){const s=e[t];return te(s)?s:new gi(e,t,n)}/** -* @vue/runtime-core v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function je(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){dn(o,t,n)}return r}function be(e,t,n,s){if(P(e)){const o=je(e,t,n,s);return o&&sr(o)&&o.catch(i=>{dn(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=oe[s],o=Ot(r);oIe&&oe.splice(t,1)}function vi(e){$(e)?ft.push(...e):(!Fe||!Fe.includes(e,e.allowRecurse?Je+1:Je))&&ft.push(e),Rr()}function Ps(e,t,n=St?Ie+1:0){for(;nOt(n)-Ot(s));if(ft.length=0,Fe){Fe.push(...t);return}for(Fe=t,Je=0;Jee.id==null?1/0:e.id,xi=(e,t)=>{const n=Ot(e)-Ot(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Mr(e){jn=!1,St=!0,oe.sort(xi);try{for(Ie=0;IeJ(C)?C.trim():C)),h&&(r=n.map(Fn))}let l,c=s[l=Sn(t)]||s[l=Sn(ve(t))];!c&&o&&(c=s[l=Sn(Be(t))]),c&&be(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Ar(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!P(e)){const c=a=>{const d=Ar(a,t,!0);d&&(l=!0,se(i,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(W(e)&&s.set(e,null),null):($(o)?o.forEach(c=>i[c]=null):se(i,o),W(e)&&s.set(e,i),i)}function hn(e,t){return!e||!sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),F(e,t[0].toLowerCase()+t.slice(1))||F(e,Be(t))||F(e,t))}let Q=null,Lr=null;function Xt(e){const t=Q;return Q=e,Lr=e&&e.type.__scopeId||null,t}function cs(e,t=Q,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ks(-1);const o=Xt(t);let i;try{i=e(...r)}finally{Xt(o),s._d&&Ks(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function On(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:c,emit:a,render:d,renderCache:h,data:y,setupState:C,ctx:M,inheritAttrs:A}=e;let H,z;const ce=Xt(e);try{if(n.shapeFlag&4){const Z=r||s,pe=Z;H=Te(d.call(pe,Z,h,o,C,y,M)),z=c}else{const Z=t;H=Te(Z.length>1?Z(o,{attrs:c,slots:l,emit:a}):Z(o,null)),z=t.props?c:Ei(c)}}catch(Z){Ct.length=0,dn(Z,e,1),H=G(Ke)}let U=H;if(z&&A!==!1){const Z=Object.keys(z),{shapeFlag:pe}=U;Z.length&&pe&7&&(i&&Z.some(Jn)&&(z=Ci(z,i)),U=pt(U,z))}return n.dirs&&(U=pt(U),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),H=U,Xt(ce),H}const Ei=e=>{let t;for(const n in e)(n==="class"||n==="style"||sn(n))&&((t||(t={}))[n]=e[n]);return t},Ci=(e,t)=>{const n={};for(const s in e)(!Jn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ti(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ms(s,i,a):!!i;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Oi(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):vi(e)}const Ri=Symbol.for("v-scx"),Pi=()=>qt(Ri);function Mi(e,t){return pn(e,null,t)}function Ai(e,t){return pn(e,null,{flush:"sync"})}const Wt={};function Se(e,t,n){return pn(e,t,n)}function pn(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=B){if(t&&o){const k=t;t=(...Re)=>{k(...Re),pe()}}const c=ne,a=k=>s===!0?k:Qe(k,s===!1?1:void 0);let d,h=!1,y=!1;if(te(e)?(d=()=>e.value,h=Qt(e)):ut(e)?(d=()=>a(e),h=!0):$(e)?(y=!0,h=e.some(k=>ut(k)||Qt(k)),d=()=>e.map(k=>{if(te(k))return k.value;if(ut(k))return a(k);if(P(k))return je(k,c,2)})):P(e)?t?d=()=>je(e,c,2):d=()=>(C&&C(),be(e,c,3,[M])):d=ge,t&&s){const k=d;d=()=>Qe(k())}let C,M=k=>{C=U.onStop=()=>{je(k,c,4),C=U.onStop=void 0}},A;if(bn)if(M=ge,t?n&&be(t,c,3,[d(),y?[]:void 0,M]):d(),r==="sync"){const k=Pi();A=k.__watcherHandles||(k.__watcherHandles=[])}else return ge;let H=y?new Array(e.length).fill(Wt):Wt;const z=()=>{if(!(!U.active||!U.dirty))if(t){const k=U.run();(s||h||(y?k.some((Re,xe)=>Oe(Re,H[xe])):Oe(k,H)))&&(C&&C(),be(t,c,3,[k,H===Wt?void 0:y&&H[0]===Wt?[]:H,M]),H=k)}else U.run()};z.allowRecurse=!!t;let ce;r==="sync"?ce=z:r==="post"?ce=()=>ue(z,c&&c.suspense):(z.pre=!0,c&&(z.id=c.uid),ce=()=>ls(z));const U=new Xn(d,ge,ce),Z=fr(),pe=()=>{U.stop(),Z&&Yn(Z.effects,U)};return t?n?z():H=U.run():r==="post"?ue(U.run.bind(U),c&&c.suspense):U.run(),A&&A.push(pe),pe}function Li(e,t,n){const s=this.proxy,r=J(e)?e.includes(".")?kr(s,e):()=>s[e]:e.bind(s,s);let o;P(t)?o=t:(o=t.handler,n=t);const i=At(this),l=pn(r,o.bind(s),n);return i(),l}function kr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),te(e))Qe(e.value,t,n,s);else if($(e))for(let r=0;r{Qe(r,t,n,s)});else if(or(e))for(const r in e)Qe(e[r],t,n,s);return e}function at(e,t){if(Q===null)return e;const n=vn(Q)||Q.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Hr=e=>e.type.__isKeepAlive;function Vi(e,t){jr(e,"a",t)}function Fi(e,t){jr(e,"da",t)}function jr(e,t,n=ne){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(gn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Hr(r.parent.vnode)&&Ni(s,t,n,r),r=r.parent}}function Ni(e,t,n,s){const r=gn(t,e,s,!0);Br(()=>{Yn(s[t],r)},n)}function gn(e,t,n=ne,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;st();const l=At(n),c=be(t,n,e,i);return l(),rt(),c});return s?r.unshift(o):r.push(o),o}}const Le=e=>(t,n=ne)=>(!bn||e==="sp")&&gn(e,(...s)=>t(...s),n),Ur=Le("bm"),mn=Le("m"),ki=Le("bu"),Hi=Le("u"),Kr=Le("bum"),Br=Le("um"),ji=Le("sp"),Ui=Le("rtg"),Ki=Le("rtc");function Bi(e,t=ne){gn("ec",e,t)}function Mt(e,t,n,s){let r;const o=n&&n[s];if($(e)||J(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;lto(t)?!(t.type===Ke||t.type===Y&&!Wr(t.children)):!0)?e:null}const Un=e=>e?oo(e)?vn(e)||e.proxy:Un(e.parent):null,Et=se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ls(e.update)}),$nextTick:e=>e.n||(e.n=$t.bind(e.proxy)),$watch:e=>Li.bind(e)}),Rn=(e,t)=>e!==B&&!e.__isScriptSetup&&F(e,t),Di={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const C=i[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(r!==B&&F(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&F(a,t))return i[t]=3,o[t];if(n!==B&&F(n,t))return i[t]=4,n[t];Kn&&(i[t]=0)}}const d=Et[t];let h,y;if(d)return t==="$attrs"&&fe(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==B&&F(n,t))return i[t]=4,n[t];if(y=c.config.globalProperties,F(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Rn(r,t)?(r[t]=n,!0):s!==B&&F(s,t)?(s[t]=n,!0):F(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==B&&F(e,i)||Rn(t,i)||(l=o[0])&&F(l,i)||F(s,i)||F(Et,i)||F(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:F(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return $(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Kn=!0;function zi(e){const t=us(e),n=e.proxy,s=e.ctx;Kn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:a,created:d,beforeMount:h,mounted:y,beforeUpdate:C,updated:M,activated:A,deactivated:H,beforeDestroy:z,beforeUnmount:ce,destroyed:U,unmounted:Z,render:pe,renderTracked:k,renderTriggered:Re,errorCaptured:xe,serverPrefetch:wn,expose:We,inheritAttrs:_t,components:Vt,directives:Ft,filters:En}=t;if(a&&qi(a,s,null),i)for(const q in i){const K=i[q];P(K)&&(s[q]=K.bind(n))}if(r){const q=r.call(n,n);W(q)&&(e.data=an(q))}if(Kn=!0,o)for(const q in o){const K=o[q],De=P(K)?K.bind(n,n):P(K.get)?K.get.bind(n,n):ge,Nt=!P(K)&&P(K.set)?K.set.bind(n):ge,ze=ae({get:De,set:Nt});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>ze.value,set:we=>ze.value=we})}if(l)for(const q in l)Dr(l[q],s,n,q);if(c){const q=P(c)?c.call(n):c;Reflect.ownKeys(q).forEach(K=>{Zi(K,q[K])})}d&&Vs(d,e,"c");function ie(q,K){$(K)?K.forEach(De=>q(De.bind(n))):K&&q(K.bind(n))}if(ie(Ur,h),ie(mn,y),ie(ki,C),ie(Hi,M),ie(Vi,A),ie(Fi,H),ie(Bi,xe),ie(Ki,k),ie(Ui,Re),ie(Kr,ce),ie(Br,Z),ie(ji,wn),$(We))if(We.length){const q=e.exposed||(e.exposed={});We.forEach(K=>{Object.defineProperty(q,K,{get:()=>n[K],set:De=>n[K]=De})})}else e.exposed||(e.exposed={});pe&&e.render===ge&&(e.render=pe),_t!=null&&(e.inheritAttrs=_t),Vt&&(e.components=Vt),Ft&&(e.directives=Ft)}function qi(e,t,n=ge){$(e)&&(e=Bn(e));for(const s in e){const r=e[s];let o;W(r)?"default"in r?o=qt(r.from||s,r.default,!0):o=qt(r.from||s):o=qt(r),te(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Vs(e,t,n){be($(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dr(e,t,n,s){const r=s.includes(".")?kr(n,s):()=>n[s];if(J(e)){const o=t[e];P(o)&&Se(r,o)}else if(P(e))Se(r,e.bind(n));else if(W(e))if($(e))e.forEach(o=>Dr(o,t,n,s));else{const o=P(e.handler)?e.handler.bind(n):t[e.handler];P(o)&&Se(r,o,e)}}function us(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Zt(c,a,i,!0)),Zt(c,t,i)),W(t)&&o.set(t,c),c}function Zt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Zt(e,o,n,!0),r&&r.forEach(i=>Zt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Gi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Gi={data:Fs,props:Ns,emits:Ns,methods:vt,computed:vt,beforeCreate:le,created:le,beforeMount:le,mounted:le,beforeUpdate:le,updated:le,beforeDestroy:le,beforeUnmount:le,destroyed:le,unmounted:le,activated:le,deactivated:le,errorCaptured:le,serverPrefetch:le,components:vt,directives:vt,watch:Yi,provide:Fs,inject:Ji};function Fs(e,t){return t?e?function(){return se(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function Ji(e,t){return vt(Bn(e),Bn(t))}function Bn(e){if($(e)){const t={};for(let n=0;n1)return n&&P(t)?t.call(s&&s.proxy):t}}function el(e,t,n,s=!1){const r={},o={};Jt(o,yn,1),e.propsDefaults=Object.create(null),qr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:li(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function tl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=N(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[y,C]=Gr(h,t,!0);se(i,y),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return W(e)&&s.set(e,lt),lt;if($(o))for(let d=0;d-1,C[1]=A<0||M-1||F(C,"default"))&&l.push(h)}}}const a=[i,l];return W(e)&&s.set(e,a),a}function ks(e){return e[0]!=="$"}function Hs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function js(e,t){return Hs(e)===Hs(t)}function Us(e,t){return $(t)?t.findIndex(n=>js(n,e)):P(t)&&js(t,e)?0:-1}const Jr=e=>e[0]==="_"||e==="$stable",fs=e=>$(e)?e.map(Te):[Te(e)],nl=(e,t,n)=>{if(t._n)return t;const s=cs((...r)=>fs(t(...r)),n);return s._c=!1,s},Yr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Jr(r))continue;const o=e[r];if(P(o))t[r]=nl(r,o,s);else if(o!=null){const i=fs(o);t[r]=()=>i}}},Qr=(e,t)=>{const n=fs(t);e.slots.default=()=>n},sl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=N(t),Jt(t,"_",n)):Yr(t,e.slots={})}else e.slots={},t&&Qr(e,t);Jt(e.slots,yn,1)},rl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=B;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(se(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Yr(t,r)),i=t}else t&&(Qr(e,t),i={default:1});if(o)for(const l in r)!Jr(l)&&i[l]==null&&delete r[l]};function Dn(e,t,n,s,r=!1){if($(e)){e.forEach((y,C)=>Dn(y,t&&($(t)?t[C]:t),n,s,r));return}if(wt(s)&&!r)return;const o=s.shapeFlag&4?vn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,a=t&&t.r,d=l.refs===B?l.refs={}:l.refs,h=l.setupState;if(a!=null&&a!==c&&(J(a)?(d[a]=null,F(h,a)&&(h[a]=null)):te(a)&&(a.value=null)),P(c))je(c,l,12,[i,d]);else{const y=J(c),C=te(c),M=e.f;if(y||C){const A=()=>{if(M){const H=y?F(h,c)?h[c]:d[c]:c.value;r?$(H)&&Yn(H,o):$(H)?H.includes(o)||H.push(o):y?(d[c]=[o],F(h,c)&&(h[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else y?(d[c]=i,F(h,c)&&(h[c]=i)):C&&(c.value=i,e.k&&(d[e.k]=i))};r||M?A():(A.id=-1,ue(A,n))}}}const ue=Oi;function ol(e){return il(e)}function il(e,t){const n=ir();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:d,parentNode:h,nextSibling:y,setScopeId:C=ge,insertStaticContent:M}=e,A=(u,f,p,g=null,m=null,v=null,w=void 0,b=null,x=!!f.dynamicChildren)=>{if(u===f)return;u&&!bt(u,f)&&(g=kt(u),we(u,m,v,!0),u=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:_,ref:E,shapeFlag:S}=f;switch(_){case _n:H(u,f,p,g);break;case Ke:z(u,f,p,g);break;case Mn:u==null&&ce(f,p,g,w);break;case Y:Vt(u,f,p,g,m,v,w,b,x);break;default:S&1?pe(u,f,p,g,m,v,w,b,x):S&6?Ft(u,f,p,g,m,v,w,b,x):(S&64||S&128)&&_.process(u,f,p,g,m,v,w,b,x,ot)}E!=null&&m&&Dn(E,u&&u.ref,v,f||u,!f)},H=(u,f,p,g)=>{if(u==null)s(f.el=l(f.children),p,g);else{const m=f.el=u.el;f.children!==u.children&&a(m,f.children)}},z=(u,f,p,g)=>{u==null?s(f.el=c(f.children||""),p,g):f.el=u.el},ce=(u,f,p,g)=>{[u.el,u.anchor]=M(u.children,f,p,g,u.el,u.anchor)},U=({el:u,anchor:f},p,g)=>{let m;for(;u&&u!==f;)m=y(u),s(u,p,g),u=m;s(f,p,g)},Z=({el:u,anchor:f})=>{let p;for(;u&&u!==f;)p=y(u),r(u),u=p;r(f)},pe=(u,f,p,g,m,v,w,b,x)=>{f.type==="svg"?w="svg":f.type==="math"&&(w="mathml"),u==null?k(f,p,g,m,v,w,b,x):wn(u,f,m,v,w,b,x)},k=(u,f,p,g,m,v,w,b)=>{let x,_;const{props:E,shapeFlag:S,transition:I,dirs:O}=u;if(x=u.el=i(u.type,v,E&&E.is,E),S&8?d(x,u.children):S&16&&xe(u.children,x,null,g,m,Pn(u,v),w,b),O&&qe(u,null,g,"created"),Re(x,u,u.scopeId,w,g),E){for(const j in E)j!=="value"&&!Dt(j)&&o(x,j,null,E[j],v,u.children,g,m,Pe);"value"in E&&o(x,"value",null,E.value,v),(_=E.onVnodeBeforeMount)&&Ce(_,g,u)}O&&qe(u,null,g,"beforeMount");const L=ll(m,I);L&&I.beforeEnter(x),s(x,f,p),((_=E&&E.onVnodeMounted)||L||O)&&ue(()=>{_&&Ce(_,g,u),L&&I.enter(x),O&&qe(u,null,g,"mounted")},m)},Re=(u,f,p,g,m)=>{if(p&&C(u,p),g)for(let v=0;v{for(let _=x;_{const b=f.el=u.el;let{patchFlag:x,dynamicChildren:_,dirs:E}=f;x|=u.patchFlag&16;const S=u.props||B,I=f.props||B;let O;if(p&&Ge(p,!1),(O=I.onVnodeBeforeUpdate)&&Ce(O,p,f,u),E&&qe(f,u,p,"beforeUpdate"),p&&Ge(p,!0),_?We(u.dynamicChildren,_,b,p,g,Pn(f,m),v):w||K(u,f,b,null,p,g,Pn(f,m),v,!1),x>0){if(x&16)_t(b,f,S,I,p,g,m);else if(x&2&&S.class!==I.class&&o(b,"class",null,I.class,m),x&4&&o(b,"style",S.style,I.style,m),x&8){const L=f.dynamicProps;for(let j=0;j{O&&Ce(O,p,f,u),E&&qe(f,u,p,"updated")},g)},We=(u,f,p,g,m,v,w)=>{for(let b=0;b{if(p!==g){if(p!==B)for(const b in p)!Dt(b)&&!(b in g)&&o(u,b,p[b],null,w,f.children,m,v,Pe);for(const b in g){if(Dt(b))continue;const x=g[b],_=p[b];x!==_&&b!=="value"&&o(u,b,_,x,w,f.children,m,v,Pe)}"value"in g&&o(u,"value",p.value,g.value,w)}},Vt=(u,f,p,g,m,v,w,b,x)=>{const _=f.el=u?u.el:l(""),E=f.anchor=u?u.anchor:l("");let{patchFlag:S,dynamicChildren:I,slotScopeIds:O}=f;O&&(b=b?b.concat(O):O),u==null?(s(_,p,g),s(E,p,g),xe(f.children||[],p,E,m,v,w,b,x)):S>0&&S&64&&I&&u.dynamicChildren?(We(u.dynamicChildren,I,p,m,v,w,b),(f.key!=null||m&&f===m.subTree)&&Xr(u,f,!0)):K(u,f,p,E,m,v,w,b,x)},Ft=(u,f,p,g,m,v,w,b,x)=>{f.slotScopeIds=b,u==null?f.shapeFlag&512?m.ctx.activate(f,p,g,w,x):En(f,p,g,m,v,w,x):ms(u,f,x)},En=(u,f,p,g,m,v,w)=>{const b=u.component=pl(u,g,m);if(Hr(u)&&(b.ctx.renderer=ot),gl(b),b.asyncDep){if(m&&m.registerDep(b,ie),!u.el){const x=b.subTree=G(Ke);z(null,x,f,p)}}else ie(b,u,f,p,m,v,w)},ms=(u,f,p)=>{const g=f.component=u.component;if(Ti(u,f,p))if(g.asyncDep&&!g.asyncResolved){q(g,f,p);return}else g.next=f,bi(g.update),g.effect.dirty=!0,g.update();else f.el=u.el,g.vnode=f},ie=(u,f,p,g,m,v,w)=>{const b=()=>{if(u.isMounted){let{next:E,bu:S,u:I,parent:O,vnode:L}=u;{const it=Zr(u);if(it){E&&(E.el=L.el,q(u,E,w)),it.asyncDep.then(()=>{u.isUnmounted||b()});return}}let j=E,D;Ge(u,!1),E?(E.el=L.el,q(u,E,w)):E=L,S&&zt(S),(D=E.props&&E.props.onVnodeBeforeUpdate)&&Ce(D,O,E,L),Ge(u,!0);const ee=On(u),_e=u.subTree;u.subTree=ee,A(_e,ee,h(_e.el),kt(_e),u,m,v),E.el=ee.el,j===null&&Ii(u,ee.el),I&&ue(I,m),(D=E.props&&E.props.onVnodeUpdated)&&ue(()=>Ce(D,O,E,L),m)}else{let E;const{el:S,props:I}=f,{bm:O,m:L,parent:j}=u,D=wt(f);if(Ge(u,!1),O&&zt(O),!D&&(E=I&&I.onVnodeBeforeMount)&&Ce(E,j,f),Ge(u,!0),S&&In){const ee=()=>{u.subTree=On(u),In(S,u.subTree,u,m,null)};D?f.type.__asyncLoader().then(()=>!u.isUnmounted&&ee()):ee()}else{const ee=u.subTree=On(u);A(null,ee,p,g,u,m,v),f.el=ee.el}if(L&&ue(L,m),!D&&(E=I&&I.onVnodeMounted)){const ee=f;ue(()=>Ce(E,j,ee),m)}(f.shapeFlag&256||j&&wt(j.vnode)&&j.vnode.shapeFlag&256)&&u.a&&ue(u.a,m),u.isMounted=!0,f=p=g=null}},x=u.effect=new Xn(b,ge,()=>ls(_),u.scope),_=u.update=()=>{x.dirty&&x.run()};_.id=u.uid,Ge(u,!0),_()},q=(u,f,p)=>{f.component=u;const g=u.vnode.props;u.vnode=f,u.next=null,tl(u,f.props,g,p),rl(u,f.children,p),st(),Ps(u),rt()},K=(u,f,p,g,m,v,w,b,x=!1)=>{const _=u&&u.children,E=u?u.shapeFlag:0,S=f.children,{patchFlag:I,shapeFlag:O}=f;if(I>0){if(I&128){Nt(_,S,p,g,m,v,w,b,x);return}else if(I&256){De(_,S,p,g,m,v,w,b,x);return}}O&8?(E&16&&Pe(_,m,v),S!==_&&d(p,S)):E&16?O&16?Nt(_,S,p,g,m,v,w,b,x):Pe(_,m,v,!0):(E&8&&d(p,""),O&16&&xe(S,p,g,m,v,w,b,x))},De=(u,f,p,g,m,v,w,b,x)=>{u=u||lt,f=f||lt;const _=u.length,E=f.length,S=Math.min(_,E);let I;for(I=0;IE?Pe(u,m,v,!0,!1,S):xe(f,p,g,m,v,w,b,x,S)},Nt=(u,f,p,g,m,v,w,b,x)=>{let _=0;const E=f.length;let S=u.length-1,I=E-1;for(;_<=S&&_<=I;){const O=u[_],L=f[_]=x?Ne(f[_]):Te(f[_]);if(bt(O,L))A(O,L,p,null,m,v,w,b,x);else break;_++}for(;_<=S&&_<=I;){const O=u[S],L=f[I]=x?Ne(f[I]):Te(f[I]);if(bt(O,L))A(O,L,p,null,m,v,w,b,x);else break;S--,I--}if(_>S){if(_<=I){const O=I+1,L=OI)for(;_<=S;)we(u[_],m,v,!0),_++;else{const O=_,L=_,j=new Map;for(_=L;_<=I;_++){const de=f[_]=x?Ne(f[_]):Te(f[_]);de.key!=null&&j.set(de.key,_)}let D,ee=0;const _e=I-L+1;let it=!1,bs=0;const yt=new Array(_e);for(_=0;_<_e;_++)yt[_]=0;for(_=O;_<=S;_++){const de=u[_];if(ee>=_e){we(de,m,v,!0);continue}let Ee;if(de.key!=null)Ee=j.get(de.key);else for(D=L;D<=I;D++)if(yt[D-L]===0&&bt(de,f[D])){Ee=D;break}Ee===void 0?we(de,m,v,!0):(yt[Ee-L]=_+1,Ee>=bs?bs=Ee:it=!0,A(de,f[Ee],p,null,m,v,w,b,x),ee++)}const vs=it?cl(yt):lt;for(D=vs.length-1,_=_e-1;_>=0;_--){const de=L+_,Ee=f[de],xs=de+1{const{el:v,type:w,transition:b,children:x,shapeFlag:_}=u;if(_&6){ze(u.component.subTree,f,p,g);return}if(_&128){u.suspense.move(f,p,g);return}if(_&64){w.move(u,f,p,ot);return}if(w===Y){s(v,f,p);for(let S=0;Sb.enter(v),m);else{const{leave:S,delayLeave:I,afterLeave:O}=b,L=()=>s(v,f,p),j=()=>{S(v,()=>{L(),O&&O()})};I?I(v,L,j):j()}else s(v,f,p)},we=(u,f,p,g=!1,m=!1)=>{const{type:v,props:w,ref:b,children:x,dynamicChildren:_,shapeFlag:E,patchFlag:S,dirs:I}=u;if(b!=null&&Dn(b,null,p,u,!0),E&256){f.ctx.deactivate(u);return}const O=E&1&&I,L=!wt(u);let j;if(L&&(j=w&&w.onVnodeBeforeUnmount)&&Ce(j,f,u),E&6)Co(u.component,p,g);else{if(E&128){u.suspense.unmount(p,g);return}O&&qe(u,null,f,"beforeUnmount"),E&64?u.type.remove(u,f,p,m,ot,g):_&&(v!==Y||S>0&&S&64)?Pe(_,f,p,!1,!0):(v===Y&&S&384||!m&&E&16)&&Pe(x,f,p),g&&_s(u)}(L&&(j=w&&w.onVnodeUnmounted)||O)&&ue(()=>{j&&Ce(j,f,u),O&&qe(u,null,f,"unmounted")},p)},_s=u=>{const{type:f,el:p,anchor:g,transition:m}=u;if(f===Y){Eo(p,g);return}if(f===Mn){Z(u);return}const v=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:w,delayLeave:b}=m,x=()=>w(p,v);b?b(u.el,v,x):x()}else v()},Eo=(u,f)=>{let p;for(;u!==f;)p=y(u),r(u),u=p;r(f)},Co=(u,f,p)=>{const{bum:g,scope:m,update:v,subTree:w,um:b}=u;g&&zt(g),m.stop(),v&&(v.active=!1,we(w,u,f,p)),b&&ue(b,f),ue(()=>{u.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Pe=(u,f,p,g=!1,m=!1,v=0)=>{for(let w=v;wu.shapeFlag&6?kt(u.component.subTree):u.shapeFlag&128?u.suspense.next():y(u.anchor||u.el);let Cn=!1;const ys=(u,f,p)=>{u==null?f._vnode&&we(f._vnode,null,null,!0):A(f._vnode||null,u,f,null,null,null,p),Cn||(Cn=!0,Ps(),Pr(),Cn=!1),f._vnode=u},ot={p:A,um:we,m:ze,r:_s,mt:En,mc:xe,pc:K,pbc:We,n:kt,o:e};let Tn,In;return t&&([Tn,In]=t(ot)),{render:ys,hydrate:Tn,createApp:Xi(ys,Tn)}}function Pn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ll(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xr(e,t,n=!1){const s=e.children,r=t.children;if($(s)&&$(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Zr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zr(t)}const ul=e=>e.__isTeleport,Y=Symbol.for("v-fgt"),_n=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),Mn=Symbol.for("v-stc"),Ct=[];let ye=null;function R(e=!1){Ct.push(ye=e?null:[])}function fl(){Ct.pop(),ye=Ct[Ct.length-1]||null}let Rt=1;function Ks(e){Rt+=e}function eo(e){return e.dynamicChildren=Rt>0?ye||lt:null,fl(),Rt>0&&ye&&ye.push(e),e}function V(e,t,n,s,r,o){return eo(T(e,t,n,s,r,o,!0))}function $e(e,t,n,s,r){return eo(G(e,t,n,s,r,!0))}function to(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const yn="__vInternal",no=({key:e})=>e??null,Gt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||te(e)||P(e)?{i:Q,r:e,k:t,f:!!n}:e:null);function T(e,t=null,n=null,s=0,r=null,o=e===Y?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&Gt(t),scopeId:Lr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Q};return l?(as(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),Rt>0&&!i&&ye&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ye.push(c),c}const G=al;function al(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Fr)&&(e=Ke),to(e)){const l=pt(e,t,!0);return n&&as(l,n),Rt>0&&!o&&ye&&(l.shapeFlag&6?ye[ye.indexOf(e)]=l:ye.push(l)),l.patchFlag|=-2,l}if(vl(e)&&(e=e.__vccOpts),t){t=so(t);let{class:l,style:c}=t;l&&!J(l)&&(t.class=cn(l)),W(c)&&(Cr(c)&&!$(c)&&(c=se({},c)),t.style=Me(c))}const i=J(e)?1:$i(e)?128:ul(e)?64:W(e)?4:P(e)?2:0;return T(e,t,n,s,r,i,o,!0)}function so(e){return e?Cr(e)||yn in e?se({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?ro(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&no(l),ref:t&&t.ref?n&&r?$(r)?r.concat(Gt(t)):[r,Gt(t)]:Gt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return G(_n,null,e,t)}function nt(e="",t=!1){return t?(R(),$e(Ke,null,e)):G(Ke,null,e)}function Te(e){return e==null||typeof e=="boolean"?G(Ke):$(e)?G(Y,null,e.slice()):typeof e=="object"?Ne(e):G(_n,null,String(e))}function Ne(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function as(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if($(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),as(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(yn in t)?t._ctx=Q:r===3&&Q&&(Q.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:Q},n=32):(t=String(t),s&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ro(...e){const t={};for(let n=0;nne||Q;let tn,zn;{const e=ir(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};tn=t("__VUE_INSTANCE_SETTERS__",n=>ne=n),zn=t("__VUE_SSR_SETTERS__",n=>bn=n)}const At=e=>{const t=ne;return tn(e),e.scope.on(),()=>{e.scope.off(),tn(t)}},Bs=()=>{ne&&ne.scope.off(),tn(null)};function oo(e){return e.vnode.shapeFlag&4}let bn=!1;function gl(e,t=!1){t&&zn(t);const{props:n,children:s}=e.vnode,r=oo(e);el(e,n,r,t),sl(e,s);const o=r?ml(e,t):void 0;return t&&zn(!1),o}function ml(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tr(new Proxy(e.ctx,Di));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?yl(e):null,o=At(e);st();const i=je(s,e,0,[e.props,r]);if(rt(),o(),sr(i)){if(i.then(Bs,Bs),t)return i.then(l=>{Ws(e,l,t)}).catch(l=>{dn(l,e,0)});e.asyncDep=i}else Ws(e,i,t)}else io(e,t)}function Ws(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=$r(t)),io(e,n)}let Ds;function io(e,t,n){const s=e.type;if(!e.render){if(!t&&Ds&&!s.render){const r=s.template||us(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=se(se({isCustomElement:o,delimiters:l},i),c);s.render=Ds(r,a)}}e.render=s.render||ge}{const r=At(e);st();try{zi(e)}finally{rt(),r()}}}function _l(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fe(e,"get","$attrs"),t[n]}}))}function yl(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return _l(e)},slots:e.slots,emit:e.emit,expose:t}}function vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($r(Tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Et)return Et[n](e)},has(t,n){return n in t||n in Et}}))}function bl(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function vl(e){return P(e)&&"__vccOpts"in e}const ae=(e,t)=>ci(e,t,bn);function lo(e,t,n=B){const s=ds(),r=ve(t),o=Be(t),i=hi((c,a)=>{let d;return Ai(()=>{const h=e[t];Oe(d,h)&&(d=h,a())}),{get(){return c(),n.get?n.get(d):d},set(h){const y=s.vnode.props;!(y&&(t in y||r in y||o in y)&&(`onUpdate:${t}`in y||`onUpdate:${r}`in y||`onUpdate:${o}`in y))&&Oe(h,d)&&(d=h,a()),s.emit(`update:${t}`,n.set?n.set(h):h)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?e[l]||{}:i,done:!1}:{done:!0}}}},i}const xl="3.4.15";/** -* @vue/runtime-dom v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const wl="http://www.w3.org/2000/svg",El="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,zs=ke&&ke.createElement("template"),Cl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ke.createElementNS(wl,e):t==="mathml"?ke.createElementNS(El,e):ke.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{zs.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=zs.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tl=Symbol("_vtc");function Il(e,t,n){const s=e[Tl];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Sl=Symbol("_vod"),$l=Symbol("");function Ol(e,t,n){const s=e.style,r=s.display,o=J(n);if(n&&!o){if(t&&!J(t))for(const i in t)n[i]==null&&qn(s,i,"");for(const i in n)qn(s,i,n[i])}else if(o){if(t!==n){const i=s[$l];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");Sl in e&&(s.display=r)}const qs=/\s*!important$/;function qn(e,t,n){if($(n))n.forEach(s=>qn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Rl(e,t);qs.test(n)?e.setProperty(Be(s),n.replace(qs,""),"important"):e[s]=n}}const Gs=["Webkit","Moz","ms"],An={};function Rl(e,t){const n=An[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return An[t]=s;s=ln(s);for(let r=0;rLn||(Fl.then(()=>Ln=0),Ln=Date.now());function kl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;be(Hl(s,n.value),t,5,[s])};return n.value=e,n.attached=Nl(),n}function Hl(e,t){if($(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jl=(e,t,n,s,r,o,i,l,c)=>{const a=r==="svg";t==="class"?Il(e,s,a):t==="style"?Ol(e,n,s):sn(t)?Jn(t)||Ll(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ul(e,t,s,a))?Ml(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Pl(e,t,s,a))};function Ul(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xs(t)&&P(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Xs(t)&&J(n)?!1:t in e}const nn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?n=>zt(t,n):t};function Kl(e){e.target.composing=!0}function Zs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dt=Symbol("_assign"),hs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[dt]=nn(r);const o=s||r.props&&r.props.type==="number";Ye(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Fn(l)),e[dt](l)}),n&&Ye(e,"change",()=>{e.value=e.value.trim()}),t||(Ye(e,"compositionstart",Kl),Ye(e,"compositionend",Zs),Ye(e,"change",Zs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[dt]=nn(o),e.composing)return;const i=r||e.type==="number"?Fn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Vn={deep:!0,created(e,t,n){e[dt]=nn(n),Ye(e,"change",()=>{const s=e._modelValue,r=Bl(e),o=e.checked,i=e[dt];if($(s)){const l=cr(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const a=[...s];a.splice(l,1),i(a)}}else if(rn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(co(e,o))})},mounted:er,beforeUpdate(e,t,n){e[dt]=nn(n),er(e,t,n)}};function er(e,{value:t,oldValue:n},s){e._modelValue=t,$(t)?e.checked=cr(t,s.props.value)>-1:rn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=un(t,co(e,!0)))}function Bl(e){return"_value"in e?e._value:e.value}function co(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Wl=["ctrl","shift","alt","meta"],Dl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wl.some(n=>e[`${n}Key`]&&!t.includes(n))},zl=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=Be(r.key);if(t.some(i=>i===o||ql[i]===o))return e(r)})},Jl=se({patchProp:jl},Cl);let tr;function Yl(){return tr||(tr=ol(Jl))}const Ql=(...e)=>{const t=Yl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Zl(s);if(!r)return;const o=t._component;!P(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Xl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zl(e){return J(e)?document.querySelector(e):e}function ec(e){return{ask:e.ask,"max-results":e.maxResults,"score-threshold":e.scoreThreshold}}var gt=(e=>(e.User="User",e.IA="IA",e))(gt||{});function tc(e){var t;return{type:gt.IA,summary:e.summary,date:+new Date,references:(t=e.results)==null?void 0:t.map(n=>({link:n.outlink,text:n.text,title:n.reference,pageId:n.pageId,pageIndex:n.pageIndex,pages:n.pages.map(s=>({id:s.id,pageNumber:s.pageNum}))}))}}function nc(e){return{type:gt.User,date:+new Date,parameters:e}}function sc(e,t){const n=new URL(e);return t&&Object.entries(t).forEach(([s,r])=>{n.searchParams.append(s,r.toString())}),n.toString()}async function rc(e,{method:t,data:n,parameters:s}={}){try{const r={method:t||"GET",headers:{"Content-Type":"application/json"},body:n?JSON.stringify(n):void 0},o=await fetch(sc(e,s),r);if(!o.ok)throw new Error(`Error response: ${o.statusText}`);return await o.json()}catch(r){throw console.error("Error:",r),r}}class oc{static ask(t){const{ask:n,...s}=t;return rc(`https://bhlquest.globalnames.org/api/v1/ask/${t.ask}`,{parameters:s})}}const ic=an({keepChat:!1,openSettings:!0,referenceExpanded:!0,referencePreformattedText:!0,parameters:{scoreThreshold:.65,maxResults:5}});function xn(){return{...pi(ic)}}const mt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},lc={},cc={class:"border p-4 rounded-lg border-base-border"};function uc(e,t){return R(),V("div",cc,[Wi(e.$slots,"default")])}const uo=mt(lc,[["render",uc]]),fc=T("h2",{class:"text-2xl font-semibold mb-4"},"Hello there!",-1),ac=T("p",{class:"my-4"}," Ask a question about birds and see links to relevant BHL pages. ",-1),dc={class:"grid grid-cols-2 gap-4"},hc=me({__name:"EmptyContainer",emits:["select"],setup(e,{emit:t}){const n=["Do Bald Eagles migrate?","Do woodpeckers suffer from concussions?","What does a cassowary eat?","What adaptations allow humming birds to hover?"],s=t;return(r,o)=>(R(),V("div",null,[fc,ac,T("div",dc,[(R(),V(Y,null,Mt(n,i=>G(uo,{key:i,class:"cursor-pointer",onClick:l=>s("select",i)},{default:cs(()=>[tt(Tt(i),1)]),_:2},1032,["onClick"])),64))])]))}}),pc={},gc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},mc=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},null,-1),_c=[mc];function yc(e,t){return R(),V("svg",gc,_c)}const bc=mt(pc,[["render",yc]]),vc=T("div",{class:"font-bold text-lg"},"You",-1),xc={class:"whitespace-pre-wrap font-semibold text-2xl flex items-center"},wc=["href"],Ec=me({__name:"ChatUserMessage",props:{message:{}},setup(e){const t=e,n=ae(()=>{const s=new URLSearchParams;return Object.entries(t.message.parameters).forEach(([r,o])=>{s.set(r,o.toString())}),"?"+s.toString()});return(s,r)=>(R(),V("div",null,[vc,T("div",xc,[tt(Tt(s.message.parameters.ask)+" ",1),T("a",{href:n.value},[G(bc,{class:"w-6 h-6 text-primary-color"})],8,wc)])]))}}),Cc={},Tc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ic=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1),Sc=[Ic];function $c(e,t){return R(),V("svg",Tc,Sc)}const Oc=mt(Cc,[["render",$c]]),Rc={},Pc={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Mc=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1),Ac=[Mc];function Lc(e,t){return R(),V("svg",Pc,Ac)}const Vc=mt(Rc,[["render",Lc]]);function ps(e){return fr()?(jo(e),!0):!1}function gs(e){return typeof e=="function"?e():re(e)}const Fc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nc=Object.prototype.toString,kc=e=>Nc.call(e)==="[object Object]",Hc=()=>{};function jc(e){return e||ds()}function fo(e,t=!0,n){jc()?mn(e,n):t?e():$t(e)}function Xe(e){var t;const n=gs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Lt=Fc?window:void 0;function Uc(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=Lt):[t,n,s,r]=e,!t)return Hc;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],i=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,y,C)=>(d.addEventListener(h,y,C),()=>d.removeEventListener(h,y,C)),c=Se(()=>[Xe(t),gs(r)],([d,h])=>{if(i(),!d)return;const y=kc(h)?{...h}:h;o.push(...n.flatMap(C=>s.map(M=>l(d,C,M,y))))},{immediate:!0,flush:"post"}),a=()=>{c(),i()};return ps(a),a}function Kc(){const e=X(!1);return ds()&&mn(()=>{e.value=!0}),e}function ao(e){const t=Kc();return ae(()=>(t.value,!!e()))}function Bc(e,t={}){const{window:n=Lt}=t,s=ao(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=X(!1),i=a=>{o.value=a.matches},l=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",i):r.removeListener(i))},c=Mi(()=>{s.value&&(l(),r=n.matchMedia(gs(e)),"addEventListener"in r?r.addEventListener("change",i):r.addListener(i),o.value=r.matches)});return ps(()=>{c(),l(),r=void 0}),o}function Wc(e,t,n={}){const{window:s=Lt,...r}=n;let o;const i=ao(()=>s&&"ResizeObserver"in s),l=()=>{o&&(o.disconnect(),o=void 0)},c=ae(()=>Array.isArray(e)?e.map(h=>Xe(h)):[Xe(e)]),a=Se(c,h=>{if(l(),i.value&&s){o=new ResizeObserver(t);for(const y of h)y&&o.observe(y,r)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),a()};return ps(d),{isSupported:i,stop:d}}function Dc(e,t={width:0,height:0},n={}){const{window:s=Lt,box:r="content-box"}=n,o=ae(()=>{var h,y;return(y=(h=Xe(e))==null?void 0:h.namespaceURI)==null?void 0:y.includes("svg")}),i=X(t.width),l=X(t.height),{stop:c}=Wc(e,([h])=>{const y=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(s&&o.value){const C=Xe(e);if(C){const M=s.getComputedStyle(C);i.value=Number.parseFloat(M.width),l.value=Number.parseFloat(M.height)}}else if(y){const C=Array.isArray(y)?y:[y];i.value=C.reduce((M,{inlineSize:A})=>M+A,0),l.value=C.reduce((M,{blockSize:A})=>M+A,0)}else i.value=h.contentRect.width,l.value=h.contentRect.height},n);fo(()=>{const h=Xe(e);h&&(i.value="offsetWidth"in h?h.offsetWidth:t.width,l.value="offsetHeight"in h?h.offsetHeight:t.height)});const a=Se(()=>Xe(e),h=>{i.value=h?t.width:0,l.value=h?t.height:0});function d(){c(),a()}return{width:i,height:l,stop:d}}function zc(e,t){const{containerStyle:n,wrapperProps:s,scrollTo:r,calculateRange:o,currentList:i,containerRef:l}="itemHeight"in t?Jc(t,e):Gc(t,e);return{list:i,scrollTo:r,containerProps:{ref:l,onScroll:()=>{o()},style:n},wrapperProps:s}}function ho(e){const t=X(null),n=Dc(t),s=X([]),r=ui(e);return{state:X({start:0,end:10}),source:r,currentList:s,size:n,containerRef:t}}function po(e,t,n){return s=>{if(typeof n=="number")return Math.ceil(s/n);const{start:r=0}=e.value;let o=0,i=0;for(let l=r;ls)break}return i-r}}function go(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let s=0,r=0;for(let o=0;o=n){r=o;break}}return r+1}}function mo(e,t,n,s,{containerRef:r,state:o,currentList:i,source:l}){return()=>{const c=r.value;if(c){const a=n(e==="vertical"?c.scrollTop:c.scrollLeft),d=s(e==="vertical"?c.clientHeight:c.clientWidth),h=a-t,y=a+d+t;o.value={start:h<0?0:h,end:y>l.value.length?l.value.length:y},i.value=l.value.slice(o.value.start,o.value.end).map((C,M)=>({data:C,index:M+o.value.start}))}}}function _o(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,o,i)=>r+e(i),0)}function yo(e,t,n){Se([e.width,e.height,t],()=>{n()})}function bo(e,t){return ae(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,s,r)=>n+e(r),0))}const qc={horizontal:"scrollLeft",vertical:"scrollTop"};function vo(e,t,n,s){return r=>{s.value&&(s.value[qc[e]]=n(r),t())}}function Gc(e,t){const n=ho(t),{state:s,source:r,currentList:o,size:i,containerRef:l}=n,c={overflowX:"auto"},{itemWidth:a,overscan:d=5}=e,h=po(s,r,a),y=go(r,a),C=mo("horizontal",d,y,h,n),M=_o(a,r),A=ae(()=>M(s.value.start)),H=bo(a,r);yo(i,t,C);const z=vo("horizontal",C,M,l),ce=ae(()=>({style:{height:"100%",width:`${H.value-A.value}px`,marginLeft:`${A.value}px`,display:"flex"}}));return{scrollTo:z,calculateRange:C,wrapperProps:ce,containerStyle:c,currentList:o,containerRef:l}}function Jc(e,t){const n=ho(t),{state:s,source:r,currentList:o,size:i,containerRef:l}=n,c={overflowY:"auto"},{itemHeight:a,overscan:d=5}=e,h=po(s,r,a),y=go(r,a),C=mo("vertical",d,y,h,n),M=_o(a,r),A=ae(()=>M(s.value.start)),H=bo(a,r);yo(i,t,C);const z=vo("vertical",C,M,l),ce=ae(()=>({style:{width:"100%",height:`${H.value-A.value}px`,marginTop:`${A.value}px`}}));return{calculateRange:C,scrollTo:z,containerStyle:c,wrapperProps:ce,currentList:o,containerRef:l}}function Yc(e={}){const{window:t=Lt,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:o=!0}=e,i=X(n),l=X(s),c=()=>{t&&(o?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),fo(c),Uc("resize",c,{passive:!0}),r){const a=Bc("(orientation: portrait)");Se(a,()=>c())}return{width:i,height:l}}const Qc={},Xc={class:"loader"};function Zc(e,t){return R(),V("div",Xc)}const xo=mt(Qc,[["render",Zc],["__scopeId","data-v-b5765931"]]),eu=["width","src"],tu={class:"absolute top-1/2 left-1/2 -translate-x-1/2"},nu={class:"flex flex-col justify-center gap-4 items-center"},su={class:"text-xl"},ru=me({__name:"ImagePage",props:{pageIndex:{},pageId:{},imageWidth:{default:500},imageHeight:{default:300}},setup(e){const t=e,n=X(!0),s=X(!1),r=setTimeout(()=>{s.value=!0},500);return Kr(()=>{clearTimeout(r)}),(o,i)=>(R(),V("div",{class:"relative",style:Me({width:o.imageWidth+"px"})},[s.value?(R(),V("img",{key:0,class:"object-contain",style:Me({"max-height":o.imageHeight+"px","max-width":o.imageWidth}),width:o.imageWidth,src:`https://www.biodiversitylibrary.org/pagethumb/${o.pageId},${o.imageWidth},${o.imageHeight}`,onLoad:i[0]||(i[0]=()=>{n.value=!1})},null,44,eu)):nt("",!0),n.value?(R(),V("div",{key:1,class:"bg-white absolute min-w-fit h-full left-0 top-0",style:Me({"min-height":o.imageHeight+"px","min-width":o.imageWidth+"px",height:t.imageHeight+"px",left:0,top:0})},[T("div",tu,[T("div",nu,[T("span",su,"Loading page "+Tt(o.pageIndex+1),1),G(xo)])])],4)):nt("",!0)],4))}}),ou=me({__name:"ImageViewer",props:{pageIds:{},pageIndex:{}},setup(e){const t=e,{height:n}=Yc(),s=ae(()=>n.value-250),r=ae(()=>Math.trunc(s.value*.75)),{list:o,containerProps:i,wrapperProps:l,scrollTo:c}=zc(t.pageIds,{itemHeight:s.value});return mn(()=>{c(t.pageIndex)}),(a,d)=>(R(),$e(uo,{class:"bg- bg-zinc-700 p-4 flex flex-col gap-4"},{default:cs(()=>[T("div",ro(re(i),{style:{height:s.value+"px"}}),[T("div",Lo(so(re(l))),[(R(!0),V(Y,null,Mt(re(o),h=>(R(),V("div",{key:h.index,class:"my-2 flex justify-center",style:Me({height:s.value+"px"})},[G(ru,{"image-height":s.value,"image-width":r.value,"page-index":h.index,height:s.value+"px",style:Me({"max-height":s.value+"px"}),"page-id":h.data},null,8,["image-height","image-width","page-index","height","style","page-id"])],4))),128))],16)],16)]),_:1}))}}),iu=["href"],lu={class:"py-4 px-8"},cu=["href"],uu={key:0,class:"mt-2"},fu=me({__name:"BHLQuestReference",props:{index:{},reference:{}},setup(e){const t=X(null),{referencePreformattedText:n,referenceExpanded:s}=xn(),r=ae(()=>n.value?"pre":"p"),o=X(!0),i=X(!1);return Se(s,l=>{o.value=l},{immediate:!0}),(l,c)=>(R(),V("div",null,[T("div",{ref_key:"referenceRef",ref:t,class:"flex gap-2 items-center"},[T("button",{type:"button",class:"rounded-full bg-primary-color text-primary-text p-1.5",onClick:c[0]||(c[0]=()=>o.value=!o.value)},[o.value?(R(),$e(Vc,{key:0,class:"w-3 h-3"})):(R(),$e(Oc,{key:1,class:"w-3 h-3"}))]),T("a",{href:l.reference.link,target:"_blank",class:"text-primary-color break-all"},Tt(l.reference.title),9,iu)],512),o.value?(R(),V(Y,{key:0},[(R(!0),V(Y,null,Mt(l.reference.text,(a,d)=>(R(),V("div",lu,[T("a",{class:"text-primary-color",href:`https://www.biodiversitylibrary.org/page/${l.reference.pages[l.reference.pageIndex+d].id}`},"Page #"+Tt(l.reference.pages[l.reference.pageIndex+d].pageNumber),9,cu),(R(),$e(Nr(r.value),{class:"text-wrap font-main",innerHTML:a.trim()},null,8,["innerHTML"]))]))),256)),i.value?(R(),V("div",uu,[G(ou,{"page-ids":l.reference.pages,"page-index":l.reference.pageIndex},null,8,["page-ids","page-index"])])):nt("",!0)],64)):nt("",!0)]))}}),au=T("div",{class:"font-bold text-lg text-primary-color"},"BHL Quest",-1),du=["innerHTML"],hu={key:1},pu=T("h3",{class:"my-2 font-semibold"},"References",-1),gu=me({__name:"BHLQuestMessage",props:{message:{}},setup(e){return(t,n)=>(R(),V("div",null,[au,t.message.summary?(R(),V("div",{key:0,class:"whitespace-pre-wrap",innerHTML:t.message.summary},null,8,du)):(R(),V("div",hu,"I cannot provide an answer to your question.")),t.message.references?(R(),V(Y,{key:2},[pu,T("ul",null,[(R(!0),V(Y,null,Mt(t.message.references,(s,r)=>(R(),V("li",{key:t.message.date,class:"my-2"},[G(fu,{reference:s,index:r},null,8,["reference","index"])]))),128))])],64)):nt("",!0)]))}}),mu=T("div",{class:"font-bold text-lg text-primary-color"},"BHL Quest",-1),_u={__name:"LoadingMessage",setup(e){return(t,n)=>(R(),V("div",null,[mu,G(xo,{class:"scale-50 origin-left"})]))}},yu={class:"flex flex-col gap-10 h-full"},bu=me({__name:"ChatView",props:{messages:{},isLoading:{type:Boolean}},setup(e){const t={[gt.User]:Ec,[gt.IA]:gu};return(n,s)=>(R(),V("div",yu,[(R(!0),V(Y,null,Mt(n.messages,r=>(R(),$e(Nr(t[r.type]),{key:r.uuid,message:r},null,8,["message"]))),128)),n.isLoading?(R(),$e(_u,{key:0})):nt("",!0)]))}}),vu={class:"flex flex-row pb-8"},xu=["rows","disabled","onKeydown"],wu=["disabled"],nr=5,Eu=me({__name:"ChatUserInput",props:{disabled:{type:Boolean}},emits:["submit"],setup(e,{emit:t}){const n=e,s=t,r=X(null),o=X(""),i=ae(()=>{const c=o.value.split(` -`).length||1;return cn.disabled,c=>{c||$t(()=>{r.value.focus()})}),(c,a)=>(R(),V("div",vu,[at(T("textarea",{ref_key:"promptInput",ref:r,class:"p-4 rounded-l-xl border border-base-border w-full resize-none focus:outline-none",type:"text","onUpdate:modelValue":a[0]||(a[0]=d=>o.value=d),rows:i.value,disabled:c.disabled,placeholder:"Ask something...",autofocus:"",onKeydown:Gl(zl(l,["exact","prevent"]),["enter"])},null,40,xu),[[hs,o.value]]),T("button",{class:"btn-send bg-primary-color text-primary-text px-4 rounded-r-xl disabled:bg-gray-300 border-primary-color border disabled:border-gray-400",type:"button",disabled:c.disabled,onClick:l}," Send ",8,wu)]))}}),Cu={},Tu={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Iu=T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"},null,-1),Su=[Iu];function $u(e,t){return R(),V("svg",Tu,Su)}const Ou=mt(Cu,[["render",$u]]),Ru={class:"max-w-7xl container mx-auto flex justify-between items-center px-4"},Pu=T("h1",{class:"text-3xl py-4 font-semibold bg-gradient-to-r from-[#4679a4] to-primary-color bg-clip-text text-transparent"},[tt(" BHL Quest "),T("span",{class:"text-[#ffc081]"},"AI")],-1),Mu={__name:"Navbar",setup(e){const{openSettings:t}=xn();return(n,s)=>(R(),V("div",Ru,[Pu,T("button",{type:"button",class:"rounded-full bg-primary-color text-primary-text p-2",title:"New chat",onClick:s[0]||(s[0]=()=>t.value=!re(t))},[G(Ou,{class:"w-5 h-5"})])]))}},wo={mounted:(e,t,n)=>{const[s,r]=t.value;e.handler=()=>{const{value:o}=e;or&&(e.value=r,n.el.dispatchEvent(new CustomEvent("input")))},e.addEventListener("change",e.handler)},unmounted:e=>{e.removeEventListener("change",e.handler)}},Au=T("label",{class:"block"},"Score threshold",-1),Lu=me({__name:"SettingScoreThreshold",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=lo(e,"modelValue");return(n,s)=>(R(),V(Y,null,[Au,at(T("input",{class:"text-black rounded-sm py-1 px-4 w-20",type:"number",step:"0.05",min:"0.1",max:"1.0","onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r)},null,512),[[re(wo),[.1,1]],[hs,t.value,void 0,{number:!0}]])],64))}}),Vu=T("label",{class:"block"},"Max results",-1),Fu=me({__name:"SettingMaxResults",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=lo(e,"modelValue");return(n,s)=>(R(),V("div",null,[Vu,at(T("input",{class:"text-black rounded-sm py-1 px-4 w-20",type:"number","onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r)},null,512),[[re(wo),[1,5]],[hs,t.value]])]))}}),Nu={key:0,class:"h-screen w-96 text-white bg-zinc-700 bg-opacity-100 transform translate-x-0 transition-transform duration-300 ease-in-out"},ku=T("div",{class:"border-b border-zinc-500"},[T("h1",{class:"text-xl py-5 px-6"},"Settings")],-1),Hu={class:"px-6 py-4"},ju={class:"mb-6"},Uu=T("h2",{class:"text-lg font-semibold my-2"},"Chat",-1),Ku={class:"mb-6"},Bu=T("h2",{class:"text-lg font-semibold my-2"},"References",-1),Wu={class:"mb-4"},Du=T("h2",{class:"text-lg font-semibold my-2"},"Request",-1),zu=me({__name:"PanelSettings",setup(e){const{keepChat:t,openSettings:n,referenceExpanded:s,referencePreformattedText:r,parameters:o}=xn();return(i,l)=>re(n)?(R(),V("div",Nu,[ku,T("div",Hu,[T("div",ju,[Uu,T("ul",null,[T("li",null,[T("label",null,[at(T("input",{type:"checkbox","onUpdate:modelValue":l[0]||(l[0]=c=>te(t)?t.value=c:null)},null,512),[[Vn,re(t)]]),tt(" Keep chat history ")])])])]),T("div",Ku,[Bu,T("ul",null,[T("li",null,[T("label",null,[at(T("input",{type:"checkbox","onUpdate:modelValue":l[1]||(l[1]=c=>te(s)?s.value=c:null)},null,512),[[Vn,re(s)]]),tt(" Expand ")])]),T("li",null,[T("label",null,[at(T("input",{type:"checkbox","onUpdate:modelValue":l[2]||(l[2]=c=>te(r)?r.value=c:null)},null,512),[[Vn,re(r)]]),tt(" Preformatted text ")])])])]),T("div",Wu,[Du,G(Fu,{modelValue:re(o).maxResults,"onUpdate:modelValue":l[3]||(l[3]=c=>re(o).maxResults=c)},null,8,["modelValue"]),G(Lu,{modelValue:re(o).scoreThreshold,"onUpdate:modelValue":l[4]||(l[4]=c=>re(o).scoreThreshold=c)},null,8,["modelValue"])])])])):nt("",!0)}}),qu={class:"relative z-0 flex h-full w-full overflow-hidden"},Gu={class:"flex flex-col h-full justify-between w-full"},Ju={class:"w-full"},Yu=me({name:"ChatBHL",__name:"App",setup(e){const t=X([]),n=X(!1),s=X(null),{keepChat:r,parameters:o}=xn();async function i(c){const a=nc({ask:c,...o.value});t.value=r.value?[...t.value,a]:[a],$t(l),n.value=!0;try{const d=ec(a.parameters),h=await oc.ask(d);t.value.push(tc(h)),$t(l)}catch(d){console.log(d)}n.value=!1}function l(){if(s.value){const c=t.value.findLastIndex(h=>h.type===gt.User),d=s.value.firstChild.children[c].offsetTop-s.value.offsetTop-16;s.value.scrollTop=d}}return Ur(()=>{const c=window.location.search,a=new URLSearchParams(c),d=a.get("ask"),h=a.get("scoreThreshold"),y=a.get("maxResults");y&&(o.value.maxResults=+y),h&&(o.value.scoreThreshold=+h),d&&i(d)}),(c,a)=>(R(),V("div",qu,[G(zu),T("div",Gu,[T("div",Ju,[G(Mu)]),T("div",{ref_key:"chatContainer",ref:s,class:"overflow-y-auto h-full border-t border-gray-300 scroll scrollbar-gutter-stable"},[t.value.length?(R(),$e(bu,{key:0,class:"max-w-7xl container mx-auto px-6 py-4",messages:t.value,"is-loading":n.value},null,8,["messages","is-loading"])):(R(),$e(hc,{key:1,class:"max-w-7xl container mx-auto h-full flex-col flex justify-center px-4",onSelect:i}))],512),G(Eu,{class:"max-w-7xl container mx-auto px-4",disabled:n.value,onSubmit:i},null,8,["disabled"])])]))}}),Qu=Ql(Yu);Qu.mount("#app"); diff --git a/assets/index-xknbJVUm.css b/assets/index-xknbJVUm.css deleted file mode 100644 index 49ffb07..0000000 --- a/assets/index-xknbJVUm.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.loader[data-v-b5765931]{width:60px;aspect-ratio:2;--_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);background:var(--_g) 0% 50%,var(--_g) 50% 50%,var(--_g) 100% 50%;background-size:calc(100% / 3) 50%;animation:l3-b5765931 1s infinite linear}@keyframes l3-b5765931{20%{background-position:0% 0%,50% 50%,100% 50%}40%{background-position:0% 100%,50% 0%,100% 50%}60%{background-position:0% 50%,50% 100%,100% 0%}80%{background-position:0% 50%,50% 50%,100% 100%}}em{background-color:rgb(var(--text-highlight-color))}.scrollbar-gutter-stable{scrollbar-gutter:stable both-edges}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,: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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.left-1\/2{left:50%}.top-0{top:0}.top-1\/2{top:50%}.z-0{z-index:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-3{height:.75rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.h-screen{height:100vh}.w-20{width:5rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-96{width:24rem}.w-full{width:100%}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-7xl{max-width:80rem}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;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))}.translate-x-0{--tw-translate-x: 0px;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))}.scale-50{--tw-scale-x: .5;--tw-scale-y: .5;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))}.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}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-base-border{--tw-border-opacity: 1;border-color:rgba(var(--base-border-color),var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-color{--tw-border-opacity: 1;border-color:rgba(var(--primary-color),var(--tw-border-opacity))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity))}.bg-primary-color{--tw-bg-opacity: 1;background-color:rgba(var(--primary-color),var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.bg-opacity-100{--tw-bg-opacity: 1}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#4679a4\]{--tw-gradient-from: #4679a4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(70 121 164 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-primary-color{--tw-gradient-to: rgb(var(--primary-color)) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.font-main{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-\[\#ffc081\]{--tw-text-opacity: 1;color:rgb(255 192 129 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-primary-color{--tw-text-opacity: 1;color:rgba(var(--primary-color),var(--tw-text-opacity))}.text-primary-text{--tw-text-opacity: 1;color:rgba(var(--primary-text-color),var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:border-gray-400:disabled{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.disabled\:bg-gray-300:disabled{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:root{--base-background-color: 255, 255, 255;--base-border-color: 156, 163, 175;--btn-disabled-color: 148, 163, 184;--primary-color: 61, 144, 200;--primary-text-color: 255, 255, 255;--secondary-color: 246, 237, 226;--text-color: 33, 53, 71;--text-highlight-color: 241, 228, 215;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-height:100vh;color:--text-color}#app{width:100%;height:100vh} diff --git a/index.html b/index.html index 74c3d63..0e87839 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ content="width=device-width, initial-scale=1.0" /> BHLQuest Chat - - + +